@ckeditor/ckeditor5-track-changes 48.5.2-alpha.0 → 48.5.2
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/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 +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x525997();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x3222fb,_0x35cfc2){super(),this['id']=_0x35cfc2['id'],this['type']=_0x35cfc2['type'],this['subType']=_0x35cfc2['subType']||null,this['author']=_0x35cfc2['author'],this['creator']=_0x35cfc2['creator']||_0x35cfc2['author'],this['data']=null,this['_originalSuggestionId']=_0x35cfc2['originalSuggestionId']||null,this['_model']=_0x3222fb,this['_onAccept']=_0x35cfc2['onAccept'],this['_onDiscard']=_0x35cfc2['onDiscard'],this['_onAttributesChange']=_0x35cfc2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x35cfc2['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 _0x1b35b5=this;for(;_0x1b35b5['previous'];)_0x1b35b5=_0x1b35b5['previous'];return _0x1b35b5;}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'](_0x2a2b9b){this['_markerNames']['add'](_0x2a2b9b);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b0809=>this['_model']['markers']['get'](_0x2b0809))['filter'](_0xdfbe04=>_0xdfbe04);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x212abd=>{for(const _0x41960d of this['getMarkers']())_0x212abd['removeMarker'](_0x41960d);}),this['_markerNames']['clear']();}['removeMarker'](_0x56479c){this['_model']['change'](_0x60516=>{_0x60516['removeMarker'](_0x56479c);}),this['_markerNames']['delete'](_0x56479c);}['addRange'](_0x14c076){const _0x4a4e82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4a4e82),this['_model']['change'](_0x42cc80=>{_0x42cc80['addMarker'](_0x4a4e82,{'range':_0x14c076,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x56b301){for(const _0x4b4805 of this['getRanges']())if(_0x4b4805['isIntersecting'](_0x56b301))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x4370aa=>_0x4370aa['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3fac6e,_0x2bc0e6)=>[..._0x3fac6e,..._0x2bc0e6['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x41bb5c=this['getRanges']();if(0x1!=_0x41bb5c['length'])return null;const _0x387417=_0x41bb5c[0x0],_0x2d5599=_0x387417['start']['nodeAfter'],_0xbce3eb=_0x387417['end']['nodeBefore'];return _0x2d5599 instanceof it?_0x2d5599!=_0xbce3eb?null:_0x2d5599: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 _0x543327=[];let _0x587dc2=this['head'];for(;_0x587dc2;)_0x543327['push'](_0x587dc2),_0x587dc2=_0x587dc2['next'];return _0x543327;}setAttribute(_0x14c891,_0x246ae8){const _0x4689d1=at(this['attributes']);ut(_0x4689d1,_0x14c891,_0x246ae8),ct(_0x4689d1,this['attributes'])||(this['attributes']=_0x4689d1,this['_onAttributesChange'](_0x4689d1));}removeAttribute(_0x16fc17){const _0x269fb3=at(this['attributes']);dt(_0x269fb3,_0x16fc17),ct(_0x269fb3,this['attributes'])||(this['attributes']=_0x269fb3,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 _0x38eda5()['substr'](0x1,0x5);}};function Mt(_0x1da21c,_0x31439a,_0x236641){const _0xfdd982=_0x1da21c['t'],t=_0x1da21c['t'];switch(_0x31439a){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',_0x236641);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x236641);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x236641);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x236641);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x236641);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',_0x236641);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x236641);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',_0x236641);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x236641);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x236641);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x236641);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x236641);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x236641);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x236641);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x236641);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x236641);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x236641);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x236641);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x236641);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x236641);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x236641);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x236641);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x236641);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x236641);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x236641);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'},_0x236641);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x236641);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x236641);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x236641);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x236641);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x236641);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x236641);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x236641);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'},_0x236641);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'},_0x236641);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x236641);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x236641);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x236641);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x236641);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'},_0x236641);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x236641);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'},_0x236641);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'},_0x236641);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x236641);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'},_0x236641);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x236641);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'},_0x236641);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x236641);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x236641);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x236641);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x236641);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x236641);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'},_0x236641);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x236641);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 _0xfdd982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x236641);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xfdd982({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x236641);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x236641);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'},_0x236641);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'},_0x236641);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'},_0x236641);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31439a;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x35b059,_0x19eb52){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35b059,this['_locale']=_0x19eb52;}getDescriptions(_0x414b55){const _0x93c0e9=[],_0x1b85a6=new Set(),_0x4b603a=new Set();for(let _0x5a6036=0x0;_0x5a6036<_0x414b55['length'];_0x5a6036++){const _0x33f075=_0x414b55[_0x5a6036];if(!_0x33f075['isInContent'])continue;const _0x1372a3=this['_handleCustomCallbackDescription'](_0x33f075);if(_0x1372a3){if(null!=_0x33f075['subType']){if(_0x1b85a6['has'](_0x33f075['subType']))continue;_0x1b85a6['add'](_0x33f075['subType']);}_0x93c0e9['push'](_0x1372a3);}else{if('attribute'==_0x33f075['type']){const _0x3b5b4d=_0x33f075['data']['key'];if(_0x4b603a['has'](_0x3b5b4d))continue;_0x4b603a['add'](_0x33f075['data']['key']),'$elementName'==_0x3b5b4d?this['_handleRenameSuggestionDescription'](_0x93c0e9,_0x33f075):this['_handleAttributeSuggestionDescription'](_0x93c0e9,_0x33f075);continue;}'insertion'!=_0x33f075['type']&&'deletion'!=_0x33f075['type']||this['_handleInsertRemoveSuggestionDescription'](_0x93c0e9,_0x33f075,_0x414b55[_0x5a6036+0x1]);}}return this['_resolveDescriptionItems'](_0x93c0e9);}registerDescriptionCallback(_0x2d1710){this['_customCallbacks']['push'](_0x2d1710);}registerElementLabel(_0xee0579,_0x106e3f,_0x167687=_0x1f9ee9['normal']){'function'==typeof _0xee0579?_0x2a65fb(this['_itemLabelsCallbacks'],{'matchingCallback':_0xee0579,'label':_0x106e3f,'priority':_0x167687}):this['_itemLabels']['set'](_0xee0579,_0x106e3f);}registerAttributeLabel(_0x4043fa,_0xf9ab03){this['_attributeLabels']['set'](_0x4043fa,_0xf9ab03);}getItemLabel(_0x5a4a8f,_0x362255=0x1){let _0x1435d5;for(const _0x62f480 of this['_itemLabelsCallbacks'])if(_0x62f480['matchingCallback'](_0x5a4a8f)){_0x1435d5=_0x62f480['label'];break;}return _0x1435d5||(_0x1435d5=this['_itemLabels']['get'](_0x5a4a8f['name'])),_0x1435d5?_0x1435d5(_0x362255):0x1!==_0x362255?_0x362255+'\x20'+_0x5a4a8f['name']+'s':''+_0x5a4a8f['name'];}_addDescriptionItems(_0x2c1c6d,_0x12930d){const _0x1f828e=_0x12930d['getFirstRange']()['getWalker'](),_0x203961='insertion'==_0x12930d['type']?'add':'remove';for(const _0x249ebc of _0x1f828e){const _0x3b2832=_0x249ebc['item'],_0xa88760=_0x2c1c6d[_0x2c1c6d['length']-0x1];if(_0x3b2832['is']('$textProxy'))_0xa88760&&_0xa88760['type']['indexOf']('Container')>-0x1&&_0x2c1c6d['pop'](),_0xa88760&&'text'==_0xa88760['type']?_0xa88760[_0x203961]+=_0x3b2832['data']:_0x2c1c6d['push']({'type':'text','add':'add'==_0x203961?_0x3b2832['data']:'','remove':'remove'==_0x203961?_0x3b2832['data']:''});else{if(this['_schema']['isObject'](_0x3b2832)){const _0x4cf5b0=_0x3b2832;if(_0xa88760&&_0xa88760['type']['indexOf']('Container')>-0x1&&_0x2c1c6d['pop'](),'elementEnd'==_0x249ebc['type'])continue;_0xa88760&&_0xa88760['type']==_0x203961+'Object'&&_0xa88760['element']['name']==_0x4cf5b0['name']?_0xa88760['quantity']++:_0x2c1c6d['push']({'type':_0x203961+'Object','element':_0x4cf5b0,'quantity':0x1}),_0x1f828e['skip'](_0x36b56c=>!('elementEnd'==_0x36b56c['type']&&_0x36b56c['item']==_0x3b2832));}else{if(this['_schema']['checkChild'](_0x3b2832,'$text')||_0x3b2832['is']('element','softBreak')){const _0x36e9cd=_0x3b2832;if('add'==_0x203961&&'elementStart'==_0x249ebc['type']||'remove'==_0x203961&&'elementEnd'==_0x249ebc['type'])continue;if(_0xa88760&&-0x1==_0xa88760['type']['indexOf']('Container')){'text'==_0xa88760['type']&&(_0xa88760[_0x203961]+='\x0a');continue;}let _0x2bf25c;if(_0x2bf25c='add'==_0x203961?_0x36e9cd['nextSibling']&&!this['_schema']['isObject'](_0x36e9cd['nextSibling'])?_0x36e9cd['nextSibling']:null:_0x36e9cd['previousSibling']&&!this['_schema']['isObject'](_0x36e9cd['previousSibling'])?_0x36e9cd['previousSibling']:null,_0x36e9cd['isEmpty']||_0x2bf25c&&_0x2bf25c['isEmpty']){const _0x5465df=_0x2bf25c&&_0x2bf25c['isEmpty']?_0x2bf25c:_0x36e9cd;_0xa88760&&_0xa88760['type']==_0x203961+'EmptyContainer'&&_0xa88760['element']['name']==_0x5465df['name']?_0xa88760['quantity']++:_0x2c1c6d['push']({'type':_0x203961+'EmptyContainer','element':_0x5465df,'quantity':0x1});}else _0x2c1c6d['push']({'type':_0x203961+'Container','element':_0x36e9cd});}}}}}_resolveDescriptionItems(_0x424f7c){const _0x58a12e=this['_locale'],_0x1e3037=[],_0x219365=[],_0x59d700=[];for(const _0x3d85e4 of _0x424f7c)switch(_0x3d85e4['type']){case'text':if(_0x3d85e4['add']=_0x3d85e4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3d85e4['remove']=_0x3d85e4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3d85e4['add']&&''!=_0x3d85e4['remove']){_0x1e3037['push']({'type':'replace','content':Mt(_0x58a12e,'REPLACE_TEXT',['\x22'+_0x3d85e4['remove']+'\x22','\x22'+_0x3d85e4['add']+'\x22'])});continue;}if(null!=_0x3d85e4['add']['match'](/^ +$/)){_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0',Mt(_0x58a12e,'ELEMENT_SPACE',_0x3d85e4['add']['length']))});continue;}if(null!=_0x3d85e4['remove']['match'](/^ +$/)){_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0',Mt(_0x58a12e,'ELEMENT_SPACE',_0x3d85e4['remove']['length']))});continue;}if(''!=_0x3d85e4['add']){_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0','\x22'+_0x3d85e4['add']+'\x22')});continue;}_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0','\x22'+_0x3d85e4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Insert:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Remove:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'addContainer':_0x1e3037['push']({'type':'insertion','content':Mt(_0x58a12e,'*Split:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'removeContainer':_0x1e3037['push']({'type':'deletion','content':Mt(_0x58a12e,'*Merge:*\x20%0',this['getItemLabel'](_0x3d85e4['element'],_0x3d85e4['quantity']))});continue;case'addFormat':_0x219365['push'](_0x3d85e4['key']);continue;case'removeFormat':_0x59d700['push'](_0x3d85e4['key']);continue;default:_0x1e3037['push'](_0x3d85e4);}if(_0x219365['length']){const _0x5b8ed5=_0x219365['map'](_0x299700=>this['_attributeLabels']['has'](_0x299700)?this['_attributeLabels']['get'](_0x299700):_0x299700)['join'](',\x20');_0x1e3037['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x5b8ed5)});}if(_0x59d700['length']){const _0x1bd5d7=_0x59d700['map'](_0x39fc3d=>this['_attributeLabels']['has'](_0x39fc3d)?this['_attributeLabels']['get'](_0x39fc3d):_0x39fc3d)['join'](',\x20');_0x1e3037['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x1bd5d7)});}return _0x1e3037;}_handleCustomCallbackDescription(_0x25165a){for(const _0x4705f2 of this['_customCallbacks']){const _0x477164=_0x4705f2(_0x25165a);if(_0x477164&&'type'in _0x477164)return _0x477164;}}_handleAttributeSuggestionDescription(_0x356610,_0x21b668){const _0x341f4f=_0x21b668['data'],_0x17dae9=void 0x0===_0x341f4f['newValue']?'removeFormat':'addFormat';_0x356610['push']({'type':_0x17dae9,'key':_0x341f4f['key']});}_handleRenameSuggestionDescription(_0x49d6cd,_0x299c31){_0x49d6cd['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x299c31['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x16271c,_0x57ab03,_0x2bfd0b){if(this['_addDescriptionItems'](_0x16271c,_0x57ab03),_0x2bfd0b&&_0x2bfd0b['getFirstRange']()&&!_0x57ab03['getFirstRange']()['end']['isEqual'](_0x2bfd0b['getFirstRange']()['start'])){const _0x51047e=_0x16271c[_0x16271c['length']-0x1],_0x626303='insertion'==_0x57ab03['type']?'add':'remove';_0x51047e&&'text'==_0x51047e['type']&&(_0x51047e[_0x626303]+='\x0a');}}},wt=class extends _0x5ba5d4{afterInit(){const _0x40dd49=this['editor'],_0x51ce24=_0x40dd49['plugins']['get']('TrackChangesEditing');_0x40dd49['commands']['get']('showAIAssistant')&&_0x51ce24['enableCommand']('showAIAssistant');}},Ft=class extends _0x5ba5d4{afterInit(){const _0xd13008=this['editor'],_0x18c0b7=_0xd13008['plugins']['get']('TrackChangesEditing');_0xd13008['commands']['get']('toggleAi')&&_0x18c0b7['enableCommand']('toggleAi');}},Bt=class extends _0x5ba5d4{afterInit(){const _0x2a16d5=this['editor'],_0x3b708e=_0x2a16d5['plugins']['get']('TrackChangesEditing');_0x2a16d5['commands']['get']('aiQuickAction')&&_0x3b708e['enableCommand']('aiQuickAction');}},vt=class extends _0x5ba5d4{afterInit(){const _0x34599c=this['editor'],_0x5a647e=_0x34599c['locale'];if(!_0x34599c['plugins']['has']('AlignmentEditing'))return;const _0x5700f7=_0x34599c['plugins']['get']('TrackChangesEditing');_0x5700f7['enableDefaultAttributesIntegration']('alignment'),_0x5700f7['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x5a647e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a8405=this['editor'],_0x2ce361=_0x3a8405['locale'];_0x3a8405['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c34cc=>{if('formatBlock'!=_0x3c34cc['type'])return;const {data:_0x368139}=_0x3c34cc;if(_0x368139&&'alignment'==_0x368139['commandName']){const _0x5c3726=_0x368139['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x2ce361,'*Format:*\x20%0',function(_0xbcd34a){switch(_0xbcd34a){case'left':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x2ce361,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x2ce361,'FORMAT_JUSTIFY_TEXT');}}(_0x5c3726))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5ba5d4{afterInit(){const _0x2a5b65=this['editor'],_0x29c132=_0x2a5b65['plugins']['get']('TrackChangesEditing'),_0x129c14=_0x2a5b65['locale'];for(const _0x1db48e of Dt){if(!_0x2a5b65['plugins']['has'](_0x1db48e))continue;const _0x39bd19=_0x1db48e['slice'](0x0,-0x7)['toLowerCase'](),_0x4ce3dc='FORMAT_'+_0x39bd19['toUpperCase']();_0x29c132['enableDefaultAttributesIntegration'](_0x39bd19),_0x29c132['descriptionFactory']['registerAttributeLabel'](_0x39bd19,Mt(_0x129c14,_0x4ce3dc));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dec7b=this['editor'],_0x12ac5b=_0x2dec7b['locale'],_0x6ad738=_0x2dec7b['plugins']['get']('TrackChangesEditing');function _0x4f2373(_0x2d4086,_0x5951dd){_0x6ad738['descriptionFactory']['registerDescriptionCallback'](_0x100c57=>{if('formatInline'!=_0x100c57['type'])return;const {data:_0x36e08e}=_0x100c57;return _0x36e08e&&_0x36e08e['commandName']===_0x2d4086?_0x36e08e['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x12ac5b,'*Format:*\x20%0',_0x5951dd)}:{'type':'format','content':Mt(_0x12ac5b,'*Remove\x20format:*\x20%0',_0x5951dd)}:void 0x0;});}_0x4f2373('bold',Mt(_0x12ac5b,'FORMAT_BOLD')),_0x4f2373('italic',Mt(_0x12ac5b,'FORMAT_ITALIC')),_0x4f2373('underline',Mt(_0x12ac5b,'FORMAT_UNDERLINE')),_0x4f2373('code',Mt(_0x12ac5b,'FORMAT_CODE')),_0x4f2373('strikethrough',Mt(_0x12ac5b,'FORMAT_STRIKETHROUGH')),_0x4f2373('subscript',Mt(_0x12ac5b,'FORMAT_SUBSCRIPT')),_0x4f2373('superscript',Mt(_0x12ac5b,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5ba5d4{afterInit(){const _0x4fa102=this['editor'],_0x3db31d=_0x4fa102['locale'];if(!_0x4fa102['plugins']['has']('BlockQuoteEditing'))return;const _0x2155e4=_0x4fa102['plugins']['get']('TrackChangesEditing'),_0x4d3878=this['editor']['commands']['get']('blockQuote');_0x2155e4['enableCommand']('blockQuote',(_0x2e3278,_0x424c5e={})=>{const _0x42e206=this['editor']['model']['document']['selection'],_0x2f39e9=_0x424c5e&&void 0x0!==_0x424c5e['forceValue']?_0x424c5e['forceValue']:!_0x4d3878['value'];let _0x4250e5=[];if(_0x2f39e9){const _0x104511=Array['from'](_0x42e206['getSelectedBlocks']())['filter'](_0x1fcf82=>xt(_0x1fcf82)||function(_0x39a09f,_0x33e2c6){const _0x4a5a56=_0x33e2c6['createContext'](_0x39a09f['parent']);return!!_0x33e2c6['checkChild'](_0x4a5a56,'blockQuote')&&!!_0x33e2c6['checkChild'](_0x4a5a56['push']('blockQuote'),_0x39a09f);}(_0x1fcf82,this['editor']['model']['schema']));_0x4250e5=bt(_0x104511,_0x4fa102['model']);}else{const _0x281b87=Array['from'](_0x42e206['getSelectedBlocks']())['filter'](_0x47b76e=>xt(_0x47b76e));_0x4250e5=bt(_0x281b87,_0x4fa102['model']);}_0x4fa102['model']['change'](()=>{for(const _0xf1104f of _0x4250e5)_0x2155e4['markBlockFormat'](_0xf1104f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f39e9}]});});}),_0x2155e4['descriptionFactory']['registerDescriptionCallback'](_0x504819=>{const {data:_0x4f8670}=_0x504819;if(_0x4f8670&&'blockQuote'==_0x4f8670['commandName']){const _0x48e403=Mt(_0x3db31d,'ELEMENT_BLOCK_QUOTE');return _0x4f8670['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3db31d,'*Set\x20format:*\x20%0',_0x48e403)}:{'type':'format','content':Mt(_0x3db31d,'*Remove\x20format:*\x20%0',_0x48e403)};}});}};function xt(_0x58d2c3){return'blockQuote'==_0x58d2c3['parent']['name'];}var Gt=class extends _0x5ba5d4{afterInit(){const _0x49d663=this['editor'],_0x295a4b=_0x49d663['locale'],_0x368038=_0x49d663['plugins']['get']('TrackChangesEditing');_0x49d663['plugins']['has']('BookmarkEditing')&&(_0x368038['enableCommand']('insertBookmark'),_0x368038['enableDefaultAttributesIntegration']('updateBookmark'),_0x368038['descriptionFactory']['registerDescriptionCallback'](_0x1fa394=>{if('insertion'!=_0x1fa394['type']&&'deletion'!=_0x1fa394['type']&&'attribute'!=_0x1fa394['type'])return;const _0xe7efad=_0x1fa394['getContainedElement']();if(null==_0xe7efad)return;if(!_0xe7efad['is']('element','bookmark'))return;const _0xb055a6=_0xe7efad['getAttribute']('bookmarkId');if('insertion'==_0x1fa394['type'])return{'type':'insertion','content':Mt(_0x295a4b,'*Insert:*\x20%0','\x22'+_0xb055a6+'\x22\x20'+Mt(_0x295a4b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1fa394['type'])return{'type':'deletion','content':Mt(_0x295a4b,'*Remove:*\x20%0','\x22'+_0xb055a6+'\x22\x20'+Mt(_0x295a4b,'ELEMENT_BOOKMARK'))};const {data:_0x41cb56}=_0x1fa394;return _0x41cb56&&'bookmarkId'==_0x41cb56['key']?{'type':'format','content':Mt(_0x295a4b,'*Set\x20bookmark:*\x20%0','\x22'+_0x41cb56['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5ba5d4{afterInit(){const _0x4ccf75=this['editor'];_0x4ccf75['plugins']['has']('CaseChange')&&(_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4ccf75['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5ba5d4{afterInit(){const _0x4c0d50=this['editor'];_0x4c0d50['commands']['get']('ckbox')&&_0x4c0d50['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5ba5d4{static get requires(){return[ht,gt];}constructor(_0x204c85){super(_0x204c85),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1a08f4=this['editor'],_0x24d47f=_0x1a08f4['plugins']['get']('ClipboardMarkersUtils'),_0x2c2050=_0x1a08f4['plugins']['get'](gt);_0x24d47f['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2c2050['on']('outputTransformation',(_0x5ad985,_0x41494b)=>{const _0x53389e=this['_getSuggestionEntries'](_0x41494b);for(const [_0x286817,_0x298ebf]of _0x41494b['content']['markers']){const _0xec9ee3=rt['_fromRangeInDocumentFragment'](_0x298ebf,_0x1a08f4['model']);function _0x1dfb34(){_0xec9ee3['detach'](),_0x41494b['content']['markers']['delete'](_0x286817);}_0xec9ee3['on']('change:drop',_0x1dfb34),(_0x286817['startsWith']('suggestion:')||_0x286817['startsWith']('comment:'))&&_0xec9ee3['on']('change:range',()=>{_0xec9ee3['isCollapsed']&&_0x1dfb34();}),_0x41494b['content']['markers']['set'](_0x286817,_0xec9ee3);}const _0x414c55=_0x53389e['filter'](_0x3a1f83=>'deletion'===_0x3a1f83['meta']['type'])['map'](_0x3c6518=>_0x3c6518['modelRange']);if(this['_shouldSkipDeletions'](_0x414c55,_0x41494b['content']))return[..._0x53389e]['forEach'](_0x20dfef=>{_0x41494b['content']['markers']['get'](_0x20dfef['markerName'])['detach'](),_0x41494b['content']['markers']['delete'](_0x20dfef['markerName']);}),void this['_restoreRegularRanges'](_0x41494b['content']['markers']);[..._0x53389e]['forEach'](_0x4e9c7f=>{const _0x2131b2=_0x1a08f4['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4e9c7f['meta']['type'],_0x4e9c7f['meta']['subType'],'accept'),{markerName:_0x1ff4ad,meta:_0x249047}=_0x4e9c7f;if(_0x41494b['content']['markers']['has'](_0x1ff4ad)){switch(_0x249047['type']){case'deletion':if('tableRow'===_0x249047['subType']||'tableColumn'===_0x249047['subType']){if(!_0x1a08f4['plugins']['has']('TableUtils'))break;const _0x15b30e=_0x1a08f4['plugins']['get']('TableUtils'),_0x45baec=_0x15b30e['getSelectionAffectedTableCells'](_0x1a08f4['model']['createSelection'](_0x41494b['content']['markers']['get'](_0x1ff4ad))),_0x38236e=_0x45baec[0x0]['findAncestor']('table');if('tableRow'===_0x249047['subType']){const {first:_0x3e2f1a,last:_0x29496a}=_0x15b30e['getRowIndexes'](_0x45baec);_0x15b30e['removeRows'](_0x38236e,{'at':_0x3e2f1a,'rows':_0x29496a-_0x3e2f1a+0x1});}else{const {first:_0x3f7e4f,last:_0x2313ab}=_0x15b30e['getColumnIndexes'](_0x45baec);_0x15b30e['removeColumns'](_0x38236e,{'at':_0x3f7e4f,'columns':_0x2313ab-_0x3f7e4f+0x1});}break;}_0x2131b2([_0x41494b['content']['markers']['get'](_0x1ff4ad)]);}_0x41494b['content']['markers']['has'](_0x1ff4ad)&&(_0x41494b['content']['markers']['get'](_0x1ff4ad)['detach'](),_0x41494b['content']['markers']['delete'](_0x1ff4ad));}}),this['_restoreRegularRanges'](_0x41494b['content']['markers']);});}_getSuggestionEntries(_0x515a7a){const _0x210ae7=_0x37d43e=>'dragstart'===_0x515a7a['method']?_0x37d43e['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x37d43e;return Array['from'](_0x515a7a['content']['markers'])['map'](([_0x3a0d94,_0x5f3fcf])=>({'markerName':_0x3a0d94,'modelRange':_0x5f3fcf,'meta':tt(_0x210ae7(_0x3a0d94))}))['filter'](({meta:_0x59d400})=>'suggestion'===_0x59d400['group']);}_shouldSkipDeletions(_0x111dab,_0x3fd0d2){if(!_0x111dab['length'])return!0x1;let _0xbb6087=[this['editor']['model']['createRangeIn'](_0x3fd0d2)];for(const _0x2bbd54 of _0x111dab)_0xbb6087=_0xbb6087['flatMap'](_0x32fcb1=>_0x32fcb1['getDifference'](_0x2bbd54));return!_0xbb6087['some'](_0x252efb=>this['editor']['model']['hasContent'](_0x252efb,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2776e8){[..._0x2776e8['keys']()]['forEach'](_0x1e91d2=>{const _0x4488a0=_0x2776e8['get'](_0x1e91d2);_0x4488a0['detach'](),_0x2776e8['set'](_0x1e91d2,_0x4488a0['toRange']());});}},Vt=class extends _0x5ba5d4{afterInit(){const _0x482f9f=this['editor'];if(!_0x482f9f['plugins']['has']('CodeBlock'))return;const _0x5aa429=_0x482f9f['plugins']['get']('TrackChangesEditing'),_0x3f6743=_0x482f9f['locale'],_0x3d407f=_0x482f9f['config']['get']('codeBlock')['languages'],_0x10f1f3=_0x482f9f['commands']['get']('codeBlock');_0x5aa429['enableCommand']('indentCodeBlock'),_0x5aa429['enableCommand']('outdentCodeBlock'),_0x5aa429['enableCommand']('codeBlock',(_0x5e10b5,_0x544d49={})=>{const _0xe3ed9a=_0x482f9f['model'],_0x2a20e5=_0x482f9f['model']['document']['selection'],_0x543b95=_0x544d49&&void 0x0!==_0x544d49['forceValue']?_0x544d49['forceValue']:!_0x10f1f3['value'];let _0x58d6cd;_0x544d49['language']||(_0x544d49['language']=_0x3d407f[0x0]['language']),_0x58d6cd=_0x543b95?Array['from'](_0x2a20e5['getSelectedBlocks']())['filter'](_0x1210e7=>{return jt(_0x1210e7)||(_0x5c4345=_0x1210e7,_0x14ebde=_0xe3ed9a['schema'],!_0x5c4345['is']('rootElement')&&!_0x14ebde['isLimit'](_0x5c4345)&&_0x14ebde['checkChild'](_0x5c4345['parent'],'codeBlock'));var _0x5c4345,_0x14ebde;}):Array['from'](_0x2a20e5['getSelectedBlocks']())['filter'](_0x136c8b=>jt(_0x136c8b));const _0x43706e=bt(_0x58d6cd,_0xe3ed9a);_0xe3ed9a['change'](()=>{for(const _0x11b36b of _0x43706e)_0x5aa429['markBlockFormat'](_0x11b36b,{'commandName':'codeBlock','commandParams':[{..._0x544d49,'forceValue':_0x543b95}],'formatGroupId':'blockName'});});}),(_0x5aa429['descriptionFactory']['registerElementLabel']('codeBlock',_0x54cf4d=>Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',_0x54cf4d)),_0x5aa429['descriptionFactory']['registerDescriptionCallback'](_0x2ae23c=>{if('formatBlock'!=_0x2ae23c['type'])return;const _0x1b9188=_0x3f6743['t'],{data:_0xff480}=_0x2ae23c;if(!_0xff480||'codeBlock'!=_0xff480['commandName'])return;const _0xb5f338=_0xff480['commandParams'][0x0]['language'],_0x226538=_0x1b9188(_0x3d407f['find'](_0x4ba49b=>_0x4ba49b['language']===_0xb5f338)['label'])['toLowerCase']();return _0xff480['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3f6743,'*Set\x20format:*\x20%0',Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x226538+')')}:{'type':'format','content':Mt(_0x3f6743,'*Remove\x20format:*\x20%0',Mt(_0x3f6743,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x2cc8ec){return'codeBlock'==_0x2cc8ec['name'];}var zt=class extends _0x5ba5d4{afterInit(){const _0x55429e=this['editor'];_0x55429e['plugins']['has']('CommentsEditing')&&_0x55429e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5ba5d4{static get requires(){return[ft];}init(){const _0x400200=this['editor'],_0x4dec6b=_0x400200['plugins']['get']('TrackChangesEditing');_0x4dec6b['enableCommand']('delete');const _0x1cdc00=_0x400200['commands']['get']('deleteForward');_0x4dec6b['enableCommand']('deleteForward',(_0x3f8a07,_0x4a5d1c={})=>{const _0x3310f3=_0x400200['model']['createSelection'](_0x400200['model']['document']['selection']);_0x3310f3['isCollapsed']&&_0x400200['model']['modifySelection'](_0x3310f3,{'direction':'forward','unit':_0x4a5d1c['unit']});const _0x21f1ac=_0x3310f3['getFirstRange'](),_0x5cdedc=rt['fromRange'](_0x21f1ac);let _0x168ec6;_0x3f8a07(_0x4a5d1c),_0x168ec6='$graveyard'==_0x5cdedc['root']['rootName']?_0x400200['model']['createRange'](_0x21f1ac['start']):_0x400200['model']['createRange'](_0x5cdedc['start'],_0x5cdedc['end']),_0x5cdedc['detach'](),_0x400200['model']['enqueueChange'](_0x1cdc00['buffer']['batch'],_0x3d96c2=>{_0x1cdc00['buffer']['lock'](),_0x3d96c2['setSelection'](_0x3d96c2['createRange'](_0x168ec6['end'])),_0x1cdc00['buffer']['unlock']();});});}},Xt=class extends _0x5ba5d4{afterInit(){const _0x14493f=this['editor'];if(!_0x14493f['plugins']['has']('ListEditing'))return;const _0x33f1bb=_0x14493f['locale'],_0x4cb29d=_0x14493f['plugins']['get']('TrackChangesEditing'),_0x36bd93=_0x14493f['plugins']['has']('TodoListEditing'),_0x44f4ab=!!_0x14493f['config']['get']('list.multiBlock');function _0x5017b6(_0x2bd930){return{'type':'format','content':''+Mt(_0x33f1bb,'*Set\x20format:*\x20%0',_0x2bd930)};}function _0x25c9a0(_0x31bf29){return{'type':'format','content':''+Mt(_0x33f1bb,'*Remove\x20format:*\x20%0',_0x31bf29)};}_0x4cb29d['enableDefaultAttributesIntegration']('numberedList'),_0x4cb29d['enableDefaultAttributesIntegration']('bulletedList'),_0x4cb29d['enableDefaultAttributesIntegration']('customNumberedList'),_0x4cb29d['enableDefaultAttributesIntegration']('customBulletedList'),_0x4cb29d['enableDefaultAttributesIntegration']('indentList'),_0x4cb29d['enableDefaultAttributesIntegration']('outdentList'),_0x4cb29d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4cb29d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x44f4ab&&(_0x4cb29d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4cb29d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36bd93&&(_0x4cb29d['enableDefaultAttributesIntegration']('todoList'),_0x4cb29d['enableDefaultAttributesIntegration']('checkTodoList'),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x15011c=>{const {data:_0x357fa7}=_0x15011c;if(_0x357fa7&&'todoListChecked'==_0x357fa7['key'])return{'type':'format','content':_0x357fa7['newValue']?Mt(_0x33f1bb,'*Check\x20item*'):Mt(_0x33f1bb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c3286=>{if(_0x4c3286['batch']['isUndo'])return!0x1;let _0x41e97a=!0x1;const _0x5c050b=_0x4cb29d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f4c28=>'todoListChecked'===_0x4cb29d['_getAttributeKey'](_0x3f4c28));for(const _0x35ee45 of _0x5c050b)'todo'!=_0x35ee45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4cb29d['_findSuggestions'](_0x35ee45['getFirstRange'](),'attribute')['find'](_0x5844a5=>'listType'===_0x4cb29d['_getAttributeKey'](_0x5844a5['suggestion']))||(_0x4c3286['removeMarker'](_0x35ee45['getFirstMarker']()),_0x41e97a=!0x0));return _0x41e97a;})),_0x4cb29d['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x33f1bb,'FORMAT_INDENT'));const _0x19d15d={'type':'format','content':''};_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x517d0e=>{const {data:_0x56a44a}=_0x517d0e;if(!_0x56a44a||'listType'!=_0x56a44a['key'])return;let _0xc66436=_0x517d0e['head'];for(;_0xc66436;){if(_0xc66436['data']&&(('listStyle'==_0xc66436['data']['key']||'listMarkerStyle'==_0xc66436['data']['key'])&&(_0xc66436['data']['newValue']&&'default'!=_0xc66436['data']['newValue']||'default'!=_0xc66436['data']['oldValue']&&!_0x56a44a['newValue'])||!_0x44f4ab&&'$elementName'==_0xc66436['data']['key']))return _0x19d15d;_0xc66436=_0xc66436['next'];}if(null==_0x56a44a['newValue'])switch(_0x56a44a['oldValue']){case'bulleted':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25c9a0(Mt(_0x33f1bb,'ELEMENT_TODO_LIST'));}switch(_0x56a44a['newValue']){case'bulleted':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5017b6(Mt(_0x33f1bb,'ELEMENT_TODO_LIST'));}}),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x4a5da5=>{const {data:_0x2b2e53}=_0x4a5da5;if(_0x2b2e53&&'listIndent'==_0x2b2e53['key'])return null==_0x2b2e53['newValue']||null==_0x2b2e53['oldValue']&&0x0==_0x2b2e53['newValue']?_0x19d15d:void 0x0;}),_0x4cb29d['descriptionFactory']['registerDescriptionCallback'](_0x3a8d41=>{if('attribute'!=_0x3a8d41['type'])return;const {data:_0xe71ae6}=_0x3a8d41;if(!_0xe71ae6||'listItemId'!=_0xe71ae6['key'])return;const _0x191ecc=qt(_0x3a8d41);return'newValue'==_0x191ecc?{'type':'format','content':Mt(_0x33f1bb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x191ecc?{'type':'format','content':Mt(_0x33f1bb,'*Split:*\x20list\x20item')}:_0x19d15d;}),_0x14493f['model']['document']['registerPostFixer'](_0x25beb2=>this['listItemIdFixer'](_0x25beb2)),_0x14493f['model']['document']['registerPostFixer'](_0x41684a=>this['noTrackChangesFixer'](_0x41684a)),_0x14493f['model']['document']['on']('change:data',(_0xdabefc,_0x3deb78)=>{if(_0x3deb78['isUndo']||!_0x3deb78['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x5b5aec){if(_0x5b5aec['batch']['isUndo']||!_0x5b5aec['batch']['isLocal'])return!0x1;let _0x636381=!0x1;const _0x383de8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18365e=>_0x18365e['data']&&'listItemId'==_0x18365e['data']['key'])['filter'](_0x4bc3d4=>_0x4bc3d4['data']['newValue']&&_0x4bc3d4['data']['oldValue']);for(const _0x4e51f9 of _0x383de8)qt(_0x4e51f9)||(_0x5b5aec['removeMarker'](_0x4e51f9['getFirstMarker']()),_0x636381=!0x0);return _0x636381;}['noTrackChangesFixer'](_0x29a27b){if(_0x29a27b['batch']['isUndo']||!_0x29a27b['batch']['isLocal'])return!0x1;const _0x53df33=this['editor']['model']['document']['differ'],_0x4b19b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4b19b7['trackChangesCommand']['value'])return!0x1;let _0x3a58fa=!0x1;const _0x2d67a4=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x4f567b=_0x53df33['getChanges']()['filter'](_0x21c305=>'attribute'==_0x21c305['type'])['filter'](_0x25aef2=>_0x2d67a4['has'](_0x25aef2['attributeKey']));if(0x0==_0x4f567b['length'])return _0x3a58fa;const _0x4822b6=new Set(_0x53df33['getMarkersToAdd']()['filter'](_0x4f089e=>{if(!_0x4f089e['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x28476f=tt(_0x4f089e['name'])['subType']['split']('|')[0x0];return _0x2d67a4['has'](_0x28476f);})['map'](_0x275b2e=>tt(_0x275b2e['name'])['id']));for(const _0x2da60e of _0x4f567b){const _0x583ab9=_0x4b19b7['_findSuggestions'](_0x2da60e['range'],'attribute')['filter'](_0x5972bc=>{if(_0x5972bc['meta']['isNextTo'])return!0x1;if(_0x4822b6['has'](_0x5972bc['suggestion']['id']))return!0x1;const _0x9f1791=_0x4b19b7['_getAttributeKey'](_0x5972bc['suggestion']);return _0x2d67a4['has'](_0x9f1791);})['map'](_0x2f17d5=>_0x2f17d5['suggestion']);if(_0x583ab9['length']){for(const _0x56bbb4 of _0x583ab9)_0x29a27b['removeMarker'](_0x56bbb4['getFirstMarker']());_0x3a58fa=!0x0;}}return _0x3a58fa;}['assureChains'](){const _0x3d24ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e7d60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1d5b6e;const _0x331cb6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x524bc6=>{if(_0x524bc6['data']['oldRange']||!_0x524bc6['data']['newRange'])return null;if(!_0x524bc6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2f8b51}=tt(_0x524bc6['name']);if(!_0x3d24ce['hasSuggestion'](_0x2f8b51))return null;const _0x36b92b=_0x3d24ce['getSuggestion'](_0x2f8b51);return _0x4e7d60['includes'](_0x36b92b['data']['key']);})['map'](_0x1b7f21=>{const {id:_0x23d50a}=tt(_0x1b7f21['name']),_0x4612e3=_0x3d24ce['getSuggestion'](_0x23d50a);return _0x1d5b6e=_0x4612e3['attributes']['groupId'],_0x4612e3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x331cb6['size'])return;const _0x438014=_0x3d24ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36753=>'attribute'==_0x36753['type']&&_0x36753['data']&&_0x4e7d60['includes'](_0x36753['data']['key'])&&_0x36753['attributes']['groupId']!=_0x1d5b6e)['map'](_0x14cdff=>({'listItem':_0x14cdff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14cdff['attributes']['groupId']})),_0x516aaa=new Set();for(const {groupId:_0x192440,listItem:_0x32523a}of _0x438014)_0x331cb6['has'](_0x32523a)&&_0x516aaa['add'](_0x192440);for(const _0x2771e5 of _0x3d24ce['getSuggestions']())_0x516aaa['has'](_0x2771e5['attributes']['groupId'])&&_0x2771e5['setAttribute']('groupId',_0x1d5b6e);}_supportLegacySuggestions(){const _0x4297a4=this['editor'],_0x686a30=_0x4297a4['locale'],_0x34f747=_0x4297a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x34f747['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3be4e1,_0x30a24b){const _0x3d30f8=[];for(let _0x3ecc7a of _0x3be4e1)_0x3ecc7a['start']['nodeAfter']===_0x3ecc7a['end']['parent']&&(_0x3ecc7a=_0x4297a4['model']['createRange'](_0x4297a4['model']['createPositionAt'](_0x3ecc7a['start']['nodeAfter'],0x0))),_0x3d30f8['push'](_0x3ecc7a);_0x4297a4['model']['change'](_0x4d1de9=>{const _0x3958d3=_0x4297a4['model']['document']['selection'],_0x1321c9=Array['from'](_0x3958d3['getRanges']())['map'](_0x58294d=>rt['fromRange'](_0x58294d));_0x4d1de9['setSelection'](_0x3d30f8),_0x4297a4['commands']['get'](_0x30a24b['commandName'])['refresh'](),_0x30a24b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4297a4['execute'](_0x30a24b['commandName'],..._0x30a24b['commandParams']),_0x4d1de9['setSelection'](_0x1321c9);for(const _0x476391 of _0x1321c9)_0x476391['detach']();});}),_0x34f747['descriptionFactory']['registerElementLabel'](function(_0x412d9b){const _0x99ca79=!_0x4297a4['model']['schema']['isObject'](_0x412d9b),_0x48f245=_0x412d9b['previousSibling'],_0x156e52=_0x412d9b['nextSibling'],_0x12d8cc=_0x412d9b['getAttribute']('listItemId'),_0x9e93cc=!_0x48f245||_0x48f245['getAttribute']('listItemId')!==_0x12d8cc,_0x121034=!_0x156e52||_0x156e52['getAttribute']('listItemId')!==_0x12d8cc;return _0x99ca79&&Boolean(_0x12d8cc)&&_0x9e93cc&&_0x121034;},_0x192744=>Mt(_0x686a30,'ELEMENT_LIST_ITEM',_0x192744));}_registerLegacyDescription(){const _0x564487=this['editor'],_0x41b03c=_0x564487['locale'];function _0x1bab73(_0x1728de){const _0x125d69=_0x564487['commands']['get']('bulletedList')['value'],_0x159b05=_0x564487['commands']['get']('numberedList')['value'];return'numberedList'===_0x1728de?_0x125d69:_0x159b05;}_0x564487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x19ec72){if('formatBlock'!=_0x19ec72['type'])return;const {data:_0x48bfd6}=_0x19ec72;if(!_0x48bfd6)return;let _0x51c135,_0xe63534,_0x70f975,_0x151d5e;switch(_0x48bfd6['commandName']){case'bulletedList':_0x70f975=_0x48bfd6['commandParams'][0x0]['forceValue'],_0x151d5e=_0x1bab73(_0x48bfd6['commandName']),_0x51c135=_0x70f975?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x151d5e&&_0x564487['config']['get']('list.multiBlock')||(_0x51c135='*Change\x20to:*\x20%0'),_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x70f975=_0x48bfd6['commandParams'][0x0]['forceValue'],_0x151d5e=_0x1bab73(_0x48bfd6['commandName']),_0x51c135=_0x70f975?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x151d5e&&_0x564487['config']['get']('list.multiBlock')||(_0x51c135='*Change\x20to:*\x20%0'),_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51c135='*Indent:*\x20%0',_0xe63534={'type':'format','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51c135=function(_0x15383d){const _0x3fcfc2=_0x15383d['getFirstRange']();let _0x360b81=_0x3fcfc2['start']['nodeAfter'];for(;_0x360b81&&_0x3fcfc2['containsItem'](_0x360b81);){if(_0x360b81['getAttribute']('listIndent')>0x0)return!0x1;_0x360b81=_0x360b81['nextSibling'];}return!0x0;}(_0x19ec72)?Mt(_0x41b03c,'*Format:*\x20remove\x20from\x20%0',Mt(_0x41b03c,function(_0x444208){return'ELEMENT_'+_0x444208['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x19ec72))):Mt(_0x41b03c,'*Outdent:*\x20%0',Mt(_0x41b03c,'ELEMENT_LIST_ITEM')),_0xe63534={'type':'format','content':_0x51c135};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x48bfd6['multipleBlocks']&&(_0x51c135='*Merge:*\x20%0',_0xe63534={'type':'deletion','content':Mt(_0x41b03c,_0x51c135,Mt(_0x41b03c,'ELEMENT_LIST_ITEM'))});}return _0xe63534;});}};function qt(_0x485c29){let _0x5b3725=_0x485c29['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b3725;){const _0x18eb29=_0x5b3725['getAttribute']('listItemId');if(!_0x18eb29)return!0x1;if(_0x18eb29==_0x485c29['data']['newValue'])return'newValue';if(_0x18eb29==_0x485c29['data']['oldValue'])return'oldValue';_0x5b3725=_0x5b3725['previousSibling'];}return!0x1;}var Yt=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x444f97=this['editor']['config']['get']('list.properties'),_0x11f81c=this['editor']['plugins']['get']('TrackChangesEditing');_0x444f97['styles']&&_0x11f81c['enableDefaultAttributesIntegration']('listStyle'),_0x444f97['reversed']&&_0x11f81c['enableDefaultAttributesIntegration']('listReversed'),_0x444f97['startIndex']&&_0x11f81c['enableDefaultAttributesIntegration']('listStart');const _0x545a23={'type':'format','content':''};_0x11f81c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2fa01f=this['editor']['locale'];_0x11f81c['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x2fa01f,'FORMAT_LIST_REVERSED')),_0x11f81c['descriptionFactory']['registerDescriptionCallback'](_0x1d3372=>{const {data:_0x309c36}=_0x1d3372;if(_0x309c36&&'listReversed'==_0x309c36['key'])return null==_0x309c36['newValue']||0x0==_0x309c36['newValue']&&null==_0x309c36['oldValue']?_0x545a23:void 0x0;}),_0x11f81c['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x2fa01f,'FORMAT_LIST_START')),_0x11f81c['descriptionFactory']['registerDescriptionCallback'](_0x20a7e8=>{const {data:_0x4e2c9f}=_0x20a7e8;if(_0x4e2c9f&&'listStart'==_0x4e2c9f['key'])return null==_0x4e2c9f['newValue']||0x1==_0x4e2c9f['newValue']&&null==_0x4e2c9f['oldValue']?_0x545a23:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x558cd6=>{if(_0x558cd6['batch']['isUndo'])return!0x1;let _0x5d030f=!0x1;const _0x6327bd=_0x11f81c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196593=>{const _0x3ef40d=_0x11f81c['_getAttributeKey'](_0x196593);return'listStart'==_0x3ef40d||'listReversed'==_0x3ef40d;});for(const _0x45d343 of _0x6327bd){const _0x1ca0fe=_0x45d343['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1ca0fe&&'customNumbered'!=_0x1ca0fe&&(_0x11f81c['_findSuggestions'](_0x45d343['getFirstRange'](),'attribute')['find'](_0x4bde51=>'listType'==_0x11f81c['_getAttributeKey'](_0x4bde51['suggestion']))||(_0x558cd6['removeMarker'](_0x45d343['getFirstMarker']()),_0x5d030f=!0x0));}return _0x5d030f;}),this['_registerLegacyDescription']();}handleDescriptions(_0x4001f4){const _0x233117=this['editor']['locale'],{data:_0x24ecf8}=_0x4001f4,_0x167075={'type':'format','content':''};if(!_0x24ecf8||'listStyle'!=_0x24ecf8['key'])return;if(!_0x24ecf8['oldValue'])return'default'==_0x24ecf8['newValue']?_0x167075:{'type':'format','content':''+Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['newValue'])))};if(!_0x24ecf8['newValue']){if('default'==_0x24ecf8['oldValue'])return _0x167075;let _0x573da1=_0x4001f4['head'];for(;_0x573da1;){if(_0x573da1['data']&&'listType'==_0x573da1['data']['key']&&_0x573da1['data']['newValue'])return _0x167075;_0x573da1=_0x573da1['next'];}return{'type':'format','content':''+Mt(_0x233117,'*Remove\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['oldValue'])))};}if('default'!=_0x24ecf8['newValue'])return{'type':'format','content':''+Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,this['_getTranslationKeyForListStyle'](_0x24ecf8['newValue'])))};let _0x156d99=_0x4001f4['head'];for(;_0x156d99;){if(_0x156d99['data']&&'listType'==_0x156d99['data']['key']&&_0x156d99['data']['newValue']&&_0x156d99['data']['oldValue'])return _0x167075;_0x156d99=_0x156d99['next'];}return{'type':'format','content':Mt(_0x233117,'*Set\x20format:*\x20%0',Mt(_0x233117,'ELEMENT_'+_0x4001f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x4ef468=this['editor'],_0x48bfe5=_0x4ef468['locale'];_0x4ef468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58e27d=>{if('formatBlock'!=_0x58e27d['type'])return;const {data:_0x1b08eb}=_0x58e27d;if(!_0x1b08eb)return;let _0x31f68c,_0x11fcee;switch(_0x1b08eb['commandName']){case'listStyle':_0x31f68c='*Change\x20to:*\x20%0',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c,Mt(_0x48bfe5,this['_getTranslationKeyForListStyle'](_0x1b08eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31f68c=_0x1b08eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c)};break;case'listStart':_0x31f68c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11fcee={'type':'format','content':Mt(_0x48bfe5,_0x31f68c,_0x1b08eb['commandParams'][0x0]['startIndex'])};}return _0x11fcee;});}_getTranslationKeyForListStyle(_0x3c1a66){return'ELEMENT_'+(_0x20a6b6=_0x3c1a66,Qt['includes'](_0x20a6b6)?'bulleted':Zt['includes'](_0x20a6b6)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3c1a66['toUpperCase']()['replace'](/-/g,'_');var _0x20a6b6;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5ba5d4{afterInit(){const _0x511bf8=this['editor'];_0x511bf8['commands']['get']('emoji')&&_0x511bf8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5ba5d4{static get requires(){return[Et];}init(){const _0x46aa0c=this['editor'],_0x7b66c6=_0x46aa0c['plugins']['get']('TrackChangesEditing'),_0x17412a=_0x46aa0c['commands']['get']('enter');_0x7b66c6['enableCommand']('enter',()=>{_0x46aa0c['model']['change'](_0x4f7fb9=>{const _0x24f5fe=_0x46aa0c['model']['document']['selection'],_0x482d7b=_0x24f5fe['getFirstPosition'](),_0x18e58e=rt['fromRange'](_0x24f5fe['getFirstRange']());if(_0x17412a['enterBlock'](_0x4f7fb9)){const _0x15a7e5=_0x46aa0c['model']['createPositionAt'](_0x482d7b['parent']['nextSibling'],0x0),_0x1409d5=_0x4f7fb9['createRange'](_0x482d7b,_0x15a7e5);_0x7b66c6['markInsertion'](_0x1409d5);}else _0x4f7fb9['setSelection'](_0x4f7fb9['createRange'](_0x18e58e['end']));_0x18e58e['detach'](),_0x17412a['fire']('afterExecute',{'writer':_0x4f7fb9});});});}},ee=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5211bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x5211bc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5211bc['enableCommand']('findNext'),_0x5211bc['enableCommand']('findPrevious'),_0x5211bc['enableCommand']('replace'),_0x5211bc['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a923c,_0x14a95e,_0xfccf92={}){const _0x256e15=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a923c(_0xee8a29=>{let _0x3f240b=('string'==typeof _0x14a95e?_0x256e15['findByTextCallback'](_0x14a95e,_0xfccf92):_0x14a95e)(_0xee8a29);Array['isArray'](_0x3f240b)&&(_0x3f240b={'results':_0x3f240b,'searchText':'string'==typeof _0x14a95e?_0x14a95e:''});const _0x1ff287=_0x3f240b['results']['filter'](_0x1a64cd=>!0x1===this['_isInDeletionRange'](_0x1a64cd,_0xee8a29['item']));return{..._0x3f240b,'results':_0x1ff287};},_0xfccf92);}_isInDeletionRange(_0x4c64c7,_0x1f978a){const _0x447f61=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f978a,_0x4c64c7['start']),this['editor']['model']['createPositionAt'](_0x1f978a,_0x4c64c7['end']));for(const _0x1e738d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x447f61['getIntersection'](_0x1e738d['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 _0x5ba5d4{afterInit(){const _0x266e70=this['editor']['locale'],_0x55dccb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x43202d,commandName:_0x5cd3e1}of ne)this['editor']['plugins']['has'](_0x43202d)&&_0x55dccb['enableDefaultAttributesIntegration'](_0x5cd3e1);_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x266e70,'FORMAT_FONT_SIZE')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x266e70,'FORMAT_FONT_FAMILY')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x266e70,'FORMAT_FONT_COLOR')),_0x55dccb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x266e70,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x26eb09=this['editor'],_0x71afa4=_0x26eb09['locale'];_0x26eb09['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c7e64=>{const _0xaed55e=_0x71afa4['t'];if('formatInline'!=_0x3c7e64['type'])return;const {data:_0x53a2a2}=_0x3c7e64;if(null!=_0x53a2a2){if('fontSize'==_0x53a2a2['commandName']){const _0x32ccbf=_0x53a2a2['commandParams'][0x0]['value'];if(_0x32ccbf){const _0x17f9ff=_0xaed55e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d9735=>_0x4d9735['model']==_0x32ccbf)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20size:*\x20%0',_0x17f9ff)};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53a2a2['commandName']){const _0x2ff85b=_0x53a2a2['commandParams'][0x0]['value'];return _0x2ff85b?{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20family:*\x20%0',_0x2ff85b)}:{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53a2a2['commandName']){const _0x3c7245=_0x53a2a2['commandParams'][0x0]['value'];if(_0x3c7245){const _0x1d5853=_0x582b43(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2080d7=>_0x2080d7['model']==_0x3c7245);let _0x588d24=_0x3c7245,_0x5deacf='';return _0x1d5853&&(_0x588d24=_0x1d5853['label'],_0x5deacf=_0xaed55e(_0x588d24)['toLowerCase']()),{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20color:*\x20%0',_0x5deacf)['trim'](),'color':{'value':_0x3c7245,'title':_0x5deacf||_0x588d24}};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53a2a2['commandName']){const _0x4819a6=_0x53a2a2['commandParams'][0x0]['value'];if(_0x4819a6){const _0x1cab47=_0x582b43(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44b717=>_0x44b717['model']==_0x4819a6);let _0x1c5379=_0x4819a6,_0x24a89c='';return _0x1cab47&&(_0x1c5379=_0x1cab47['label'],_0x24a89c=_0xaed55e(_0x1c5379)['toLowerCase']()),{'type':'format','content':Mt(_0x71afa4,'*Set\x20font\x20background\x20color:*\x20%0',_0x24a89c)['trim'](),'color':{'value':_0x4819a6,'title':_0x24a89c||_0x1c5379}};}return{'type':'format','content':Mt(_0x71afa4,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5ba5d4{afterInit(){const {plugins:_0x3f85d8}=this['editor'];_0x3f85d8['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f85d8['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x27b21b,plugins:_0x4c22bd,commands:_0x342f31}=this['editor'],_0x3f4382=_0x4c22bd['get']('TrackChangesEditing');_0x342f31['get']('footnotesStyle')&&_0x3f4382['enableDefaultAttributesIntegration']('footnotesStyle'),_0x342f31['get']('footnotesStart')&&_0x3f4382['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f4382['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x27b21b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f4382['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x27b21b,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2e27b6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15e9e3,commands:_0x4f5833}=this['editor'];_0x4f5833['get']('insertFootnote')&&_0x2e27b6['enableCommand']('insertFootnote'),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4d0984=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTE_REF',_0x4d0984)),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4b3c74=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTE_DEFINITION',_0x4b3c74)),_0x2e27b6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x323e5d=>Mt(_0x15e9e3,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x323e5d));}},re=class extends _0x5ba5d4{afterInit(){const _0x401d2c=this['editor'],_0x359b59=_0x401d2c['plugins']['get']('TrackChangesEditing'),_0x70ac6a=_0x401d2c['commands']['get']('copyFormat'),_0x473ef6=_0x401d2c['commands']['get']('pasteFormat');_0x70ac6a&&_0x473ef6&&(_0x359b59['enableDefaultAttributesIntegration']('pasteFormat'),_0x359b59['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3adcc9=this['editor'],_0xdec51e=_0x3adcc9['locale'];_0x3adcc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ebbf=>{if('formatBlock'!=_0x51ebbf['type']&&'formatInline'!=_0x51ebbf['type'])return;const {data:_0x5148f4}=_0x51ebbf;if(_0x5148f4&&'pasteFormat'===_0x5148f4['commandName']){const _0x3ccc79=[],_0x10d0f4=_0x5148f4['commandParams'][0x0];for(const [_0x3551a1,_0xe2bb4d]of Object['entries'](_0x10d0f4))_0x3ccc79['push'](oe(_0x3adcc9,_0x3551a1,_0xe2bb4d));return _0x3ccc79['length']?{'type':'format','content':Mt(_0xdec51e,'*Set\x20format\x20to:*\x20%0',_0x3ccc79['join'](',\x20'))}:{'type':'format','content':Mt(_0xdec51e,'*Remove\x20all\x20formatting*')};}});}};function oe(_0xea10c9,_0xff84d1,_0x4290cf){const _0x3afde9=_0xea10c9['locale']['t'],_0x8fb0d8=_0xff84d1['split'](/(?=[A-Z])/)['join']('\x20'),_0x55d24a=_0x3afde9(_0x8fb0d8['charAt'](0x0)['toUpperCase']()+_0x8fb0d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4290cf)return _0x55d24a;if('fontColor'===_0xff84d1||'fontBackgroundColor'===_0xff84d1){const _0xd842a3=_0x582b43(_0xea10c9['config']['get']('fontColor.colors'))['find'](_0x31f037=>_0x31f037['model']==_0x4290cf);return _0x55d24a+'\x20('+(_0xd842a3?_0x3afde9(_0xd842a3['label'])['toLowerCase']():_0x4290cf)+')';}if('fontSize'===_0xff84d1&&isNaN(parseFloat(_0x4290cf))){const _0x3a8281=_0xea10c9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xea10c9['config']['get']('fontSize.options'))['find'](_0x3ff9ce=>_0x3ff9ce['model']==_0x4290cf);return _0x55d24a+'\x20('+(_0x3a8281?_0x3afde9(_0x3a8281['title'])['toLowerCase']():_0x4290cf)+')';}return _0x55d24a+'\x20('+_0x4290cf+')';}var ae=class extends _0x5ba5d4{afterInit(){const _0x1d1308=this['editor'];if(!_0x1d1308['plugins']['has']('GeneralHtmlSupport')||!_0x1d1308['plugins']['has']('DataSchema'))return;const _0x5d6de4=_0x1d1308['plugins']['get']('TrackChangesEditing'),_0x5b8c30=_0x1d1308['plugins']['get']('GeneralHtmlSupport'),_0x230fc6=_0x1d1308['plugins']['get']('DataSchema'),_0x4037e7=_0x1d1308['locale'],_0x2ec7f3=new Set(['htmlContent']);for(const _0x3518ae of _0x230fc6['getDefinitionsForView'](/.*/,!0x1)){const _0x14cd86=_0x3518ae['view'],_0x4baea3=_0x5b8c30['getGhsAttributeNameForElement'](_0x14cd86);_0x2ec7f3['add'](_0x4baea3),!_0x3518ae['isInline']||_0x3518ae['isObject']||'appliesToBlock'in _0x3518ae&&_0x3518ae['appliesToBlock']||_0x5d6de4['descriptionFactory']['registerAttributeLabel'](_0x4baea3,_0x14cd86),_0x3518ae['model']['startsWith']('html')&&_0x5d6de4['descriptionFactory']['registerElementLabel'](_0x3518ae['model'],_0x26058e=>Mt(_0x4037e7,'ELEMENT_HTML_TAG',[_0x26058e,_0x14cd86]));}_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x4037e7,'FORMAT_RAW_HTML_CONTENT')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x4037e7,'FORMAT_HTML_LIST_ITEM')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x4037e7,'FORMAT_HTML_BULLETED_LIST')),_0x5d6de4['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x4037e7,'FORMAT_HTML_NUMBERED_LIST')),_0x5d6de4['descriptionFactory']['registerDescriptionCallback'](_0x1bae49=>{if('attribute'!==_0x1bae49['type'])return;const _0x553a9c=_0x1bae49['data'];if(!_0x553a9c||!_0x2ec7f3['has'](_0x553a9c['key']))return;if('htmlContent'===_0x553a9c['key'])return{'type':'format','content':Mt(_0x4037e7,'*Change\x20%0\x20content*',Mt(_0x4037e7,'ELEMENT_RAW_HTML'))};const {setItems:_0x460d70,removeItems:_0x17055d}=function(_0x2b0f9b,_0x18e17a,_0x2518dd){const _0x1f955b=[],_0x410cca=[],_0x2355c3=_0x2b0f9b['styles']??{},_0x4e1c1a=_0x18e17a['styles']??{};for(const _0x38e740 of new Set([...Object['keys'](_0x2355c3),...Object['keys'](_0x4e1c1a)]))_0x2355c3[_0x38e740]!==_0x4e1c1a[_0x38e740]&&(void 0x0===_0x4e1c1a[_0x38e740]?_0x410cca['push'](_0x38e740):_0x1f955b['push'](_0x38e740+'\x20('+_0x4e1c1a[_0x38e740]+')'));const _0x15a861=Mt(_0x2518dd,'FORMAT_HTML_CLASS'),_0x4d96e0=new Set(_0x2b0f9b['classes']??[]),_0x2c393c=new Set(_0x18e17a['classes']??[]),_0x55a071=[..._0x2c393c]['some'](_0x38849b=>!_0x4d96e0['has'](_0x38849b)),_0x319b40=[..._0x4d96e0]['some'](_0x28877b=>!_0x2c393c['has'](_0x28877b));_0x55a071&&_0x1f955b['push'](_0x15a861),_0x319b40&&_0x410cca['push'](_0x15a861);const _0x526be4=Mt(_0x2518dd,'FORMAT_HTML_ATTRIBUTE'),_0x4b506e=_0x2b0f9b['attributes']??{},_0x3b1e34=_0x18e17a['attributes']??{};let _0x4c014b=!0x1,_0x29e9f0=!0x1;for(const _0x262d9b of new Set([...Object['keys'](_0x4b506e),...Object['keys'](_0x3b1e34)]))_0x4b506e[_0x262d9b]!==_0x3b1e34[_0x262d9b]&&(void 0x0===_0x3b1e34[_0x262d9b]?_0x29e9f0=!0x0:_0x4c014b=!0x0);return _0x4c014b&&_0x1f955b['push'](_0x526be4),_0x29e9f0&&_0x410cca['push'](_0x526be4),{'setItems':_0x1f955b,'removeItems':_0x410cca};}(_0x553a9c['oldValue']??{},_0x553a9c['newValue']??{},_0x4037e7);if(!_0x460d70['length']&&!_0x17055d['length'])return;const _0x2033a5=[];return _0x460d70['length']&&_0x2033a5['push'](Mt(_0x4037e7,'*Set\x20format:*\x20%0',_0x460d70['join'](',\x20'))),_0x17055d['length']&&_0x2033a5['push'](Mt(_0x4037e7,'*Remove\x20format:*\x20%0',_0x17055d['join'](',\x20'))),{'type':'format','content':_0x2033a5['join']('\x0a')};});}},ce=class extends _0x5ba5d4{_headingOptions;afterInit(){const _0x3b1da5=this['editor'];if(!_0x3b1da5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b1da5['config']['get']('heading.options');const _0x3a3a72=_0x3b1da5['locale'],_0x46354f=_0x3b1da5['plugins']['get']('TrackChangesEditing');_0x46354f['enableDefaultAttributesIntegration']('heading');for(const _0x5553b3 of this['_headingOptions'])'paragraph'!=_0x5553b3['model']&&_0x46354f['descriptionFactory']['registerElementLabel'](_0x5553b3['model'],_0x5121a7=>{const _0x5a8027=this['_getHeadingLevel'](_0x5553b3['model']);return null!==_0x5a8027?_0x3da963(_0x5121a7,_0x5a8027):_0x25a711(_0x5121a7,_0x5553b3['title']);});function _0x3da963(_0x848e1f,_0x19849d){return Mt(_0x3a3a72,'ELEMENT_HEADING',[_0x848e1f,_0x19849d]);}function _0x25a711(_0x3b5f6f,_0x3722bd){return Mt(_0x3a3a72,'ELEMENT_HEADING_CUSTOM',[_0x3b5f6f,_0x3722bd]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x10a684=this['editor'],_0x43b9ca=_0x10a684['locale'];function _0x368a34(_0x1241fa,_0x54bb9e){return Mt(_0x43b9ca,'ELEMENT_HEADING_CUSTOM',[_0x1241fa,_0x54bb9e]);}_0x10a684['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf3b3a5=>{if('formatBlock'!=_0xf3b3a5['type'])return;const {data:_0x4c0dc7}=_0xf3b3a5;if(_0x4c0dc7&&'heading'==_0x4c0dc7['commandName']){const _0x34ba81=_0x4c0dc7['commandParams'][0x0]['value'],_0x20ce22=this['_getHeadingLevel'](_0x34ba81);if(null!==_0x20ce22)return{'type':'format','content':Mt(_0x43b9ca,'*Change\x20to:*\x20%0',(_0x1bdc56=0x1,_0x233e83=_0x20ce22,Mt(_0x43b9ca,'ELEMENT_HEADING',[_0x1bdc56,_0x233e83])))};const _0x5476f6=this['_headingOptions']['find'](_0x41307b=>_0x41307b['model']===_0x34ba81)['title'];return{'type':'format','content':Mt(_0x43b9ca,'*Change\x20to:*\x20%0',_0x368a34(0x1,_0x5476f6))};}var _0x1bdc56,_0x233e83;});}_getHeadingLevel(_0x9d627c){const _0xc05920=_0x9d627c['match'](/^heading(\d+)/);if(_0xc05920)return _0xc05920[0x1];const _0x5d73d9=this['_headingOptions']?.['find'](_0x320a93=>_0x320a93['model']==_0x9d627c);if(_0x5d73d9&&_0x5d73d9['view']){const _0x3fb48a=_0x5d73d9['view'],_0x1ff36a=(_0x3fb48a['name']??_0x3fb48a)['match'](/^h(\d+)/);if(_0x1ff36a)return _0x1ff36a[0x1];}return null;}},le=class extends _0x5ba5d4{afterInit(){const _0x1b1b85=this['editor'];if(!_0x1b1b85['plugins']['has']('HighlightEditing'))return;const _0x86608a=_0x1b1b85['plugins']['get']('TrackChangesEditing'),_0x2ec5da=_0x1b1b85['locale'];_0x86608a['enableDefaultAttributesIntegration']('highlight'),_0x86608a['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x2ec5da,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x377149=this['editor'],_0x518b69=_0x377149['locale'];_0x377149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2628ae=>{if('formatInline'!=_0x2628ae['type'])return;const {data:_0x87854}=_0x2628ae;if(_0x87854&&'highlight'==_0x87854['commandName']){const _0x22b65b=_0x518b69['t'],_0x552ff9=_0x87854['commandParams'][0x0]['value'];if(_0x552ff9){const _0x5ef9ff=_0x377149['config']['get']('highlight.options')['find'](_0x4a81db=>_0x4a81db['model']==_0x552ff9),_0x2b3032=_0x22b65b(_0x5ef9ff['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x518b69,'*Set\x20highlight:*\x20%0',_0x2b3032),'color':{'value':_0x5ef9ff['color'],'title':_0x5ef9ff['title']}};}return{'type':'format','content':Mt(_0x518b69,'*Remove\x20highlight*',Mt(_0x518b69,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5ba5d4{afterInit(){const _0x2f298d=this['editor'];if(!_0x2f298d['plugins']['has']('HorizontalLineEditing'))return;_0x2f298d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5da856=_0x2f298d['plugins']['get']('TrackChangesEditing'),_0x4cd3da=_0x2f298d['locale'];_0x5da856['descriptionFactory']['registerElementLabel']('horizontalLine',_0x29fc66=>Mt(_0x4cd3da,'ELEMENT_HORIZONTAL_LINE',_0x29fc66));}},de=class extends _0x5ba5d4{afterInit(){const _0x5c394a=this['editor'];if(!_0x5c394a['plugins']['has']('HtmlEmbed'))return;const _0xf36d39=_0x5c394a['plugins']['get']('TrackChangesEditing'),_0x17cf91=_0x5c394a['locale'];_0xf36d39['descriptionFactory']['registerElementLabel']('rawHtml',_0x4ea93e=>Mt(_0x17cf91,'ELEMENT_HTML_EMBED',_0x4ea93e)),_0xf36d39['enableDefaultAttributesIntegration']('htmlEmbed'),_0xf36d39['descriptionFactory']['registerDescriptionCallback'](_0x47994e=>{if('attribute'!=_0x47994e['type'])return;const {data:_0x5dafb2}=_0x47994e;if(_0x5dafb2&&'value'==_0x5dafb2['key']&&_0x47994e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x213434=Mt(_0x17cf91,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x17cf91,'*Change\x20%0\x20content*',_0x213434)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1fa7ac=this['editor'],_0x1a5f69=_0x1fa7ac['locale'];_0x1fa7ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8fb6=>{if('formatBlock'!=_0x2a8fb6['type'])return;const {data:_0x17260d}=_0x2a8fb6;if(_0x17260d&&'htmlEmbed'==_0x17260d['commandName']){const _0x19fdbe=Mt(_0x1a5f69,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1a5f69,'*Change\x20%0\x20content*',_0x19fdbe)};}});}},he=class extends _0x5ba5d4{afterInit(){const _0x4a72c6=this['editor'];if(!_0x4a72c6['plugins']['has']('ImageEditing'))return;const _0x366a9a=_0x4a72c6['plugins']['get']('TrackChangesEditing'),_0xfb7097=_0x4a72c6['plugins']['get']('ImageUtils'),_0x2f3458=_0x4a72c6['locale'];_0x366a9a['enableCommand']('insertImage'),_0x366a9a['descriptionFactory']['registerElementLabel']('imageBlock',_0x2a8925=>Mt(_0x2f3458,'ELEMENT_IMAGE',_0x2a8925)),_0x366a9a['descriptionFactory']['registerElementLabel']('imageInline',_0x42a1f8=>Mt(_0x2f3458,'ELEMENT_INLINE_IMAGE',_0x42a1f8)),_0x366a9a['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x2f3458,'ELEMENT_CAPTION')),_0x4a72c6['plugins']['has']('ImageUploadEditing')&&_0x366a9a['enableCommand']('uploadImage'),_0x4a72c6['plugins']['has']('ImageBlockEditing')&&_0x4a72c6['plugins']['has']('ImageInlineEditing')&&(_0x366a9a['enableCommand']('imageTypeInline',(_0x5e3c28,_0x5f0acb)=>{const _0x4bf2a9=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']);_0x4a72c6['model']['change'](()=>{_0x366a9a['markBlockFormat'](_0x4bf2a9,{'commandName':'imageTypeInline','commandParams':[_0x5f0acb]},[],'convertBlockImageToInline');});}),_0x366a9a['enableCommand']('imageTypeBlock',(_0x37ab50,_0x2162e4)=>{_0x4a72c6['model']['change'](_0x587e39=>{let _0x2ca463=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x43c6f2=_0x587e39['createRangeOn'](_0x2ca463);const _0x1b1cee=st['fromPosition'](_0x43c6f2['start'],'toPrevious'),_0x3246bc=st['fromPosition'](_0x43c6f2['end'],'toNext');_0x366a9a['forceDefaultExecution'](()=>_0x37ab50(_0x2162e4)),_0x2ca463=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x43c6f2=_0x587e39['createRangeOn'](_0x2ca463);const _0x563cc7=_0x587e39['createRange'](_0x1b1cee,_0x3246bc);_0x1b1cee['detach'](),_0x3246bc['detach'](),_0x366a9a['markBlockFormat'](_0x2ca463,{'commandName':'imageTypeInline','commandParams':[_0x2162e4]},[],'convertInlineImageToBlock'),_0x563cc7['start']['isBefore'](_0x43c6f2['start'])&&_0x366a9a['markInsertion'](_0x587e39['createRange'](_0x563cc7['start'],_0x43c6f2['start']),'convertInlineImageToBlock'),_0x43c6f2['end']['isBefore'](_0x563cc7['end'])&&_0x366a9a['markInsertion'](_0x587e39['createRange'](_0x43c6f2['end'],_0x563cc7['end']),'convertInlineImageToBlock');});}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x366a9a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x518bde])=>{const _0x3f62f2=_0x366a9a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14f46d=_0x518bde['start'],_0x1a3e74=_0x518bde['end'];const _0x25f922=_0x4a72c6['model']['schema']['getNearestSelectionRange'](_0x14f46d,'backward'),_0x544d36=_0x4a72c6['model']['schema']['getNearestSelectionRange'](_0x1a3e74,'forward');_0x25f922['isCollapsed']&&(_0x14f46d=_0x25f922['start']),_0x544d36['isCollapsed']&&(_0x1a3e74=_0x544d36['end']),_0x3f62f2([_0x4a72c6['model']['createRange'](_0x14f46d,_0x1a3e74)]);}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x388a51),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x388a51)),_0x4a72c6['plugins']['has']('ImageCaptionEditing')&&(_0x366a9a['enableCommand']('toggleImageCaption',(_0x265a34,_0x1cc4ae)=>{const _0x596ae5=_0x4a72c6['plugins']['get']('ImageCaptionUtils');let _0x51e707=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x15c621=_0x596ae5['getCaptionFromImageModelElement'](_0x51e707);_0x4a72c6['model']['change'](()=>{if(_0x15c621)return void _0x366a9a['markDeletion'](_0x4a72c6['model']['createRangeOn'](_0x15c621));const _0x2fd4e8=_0xfb7097['isBlockImage'](_0x51e707);_0x265a34(_0x1cc4ae),_0x51e707=_0xfb7097['getClosestSelectedImageElement'](_0x4a72c6['model']['document']['selection']),_0x15c621=_0x596ae5['getCaptionFromImageModelElement'](_0x51e707),_0x366a9a['markInsertion'](_0x4a72c6['model']['createRangeOn'](_0x15c621),_0x2fd4e8?null:'imageCaption');});}),_0x366a9a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x388a51));const _0x126744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f6e68(_0x58e047,_0x242b76){const _0x1639ca=_0x126744['findIndex'](({type:_0x35a763,subType:_0x2e1637})=>_0x58e047['type']==_0x35a763&&_0x58e047['subType']==_0x2e1637),_0x378ba4=_0x126744['findIndex'](({type:_0x189e2f,subType:_0x4d18a1})=>_0x242b76['type']==_0x189e2f&&_0x242b76['subType']==_0x4d18a1);if(_0x1639ca<0x0||_0x378ba4<0x0)return!0x1;const _0x3d61d3=_0x58e047['getFirstRange'](),_0x14d733=_0x242b76['getFirstRange']();if((0x0==_0x1639ca||0x1==_0x1639ca)&&0x2==_0x378ba4&&_0x3d61d3['isIntersecting'](_0x14d733))return!0x0;if(0x2==_0x1639ca&&0x3==_0x378ba4){const _0x370e67=_0x366a9a['_findSuggestions'](_0x3d61d3,'insertion')['filter'](({suggestion:_0x2978d3,meta:_0x1b3247})=>_0x1b3247['isOwn']&&'convertInlineImageToBlock'==_0x2978d3['subType']);if(_0x370e67['length']>0x1&&_0x14d733['end']['isEqual'](_0x3d61d3['start']))return!0x0;if(0x1==_0x370e67['length']&&(_0x3d61d3['start']['isEqual'](_0x14d733['end'])||_0x3d61d3['end']['isEqual'](_0x14d733['start'])))return!0x0;}if(0x3==_0x1639ca&&0x3==_0x378ba4&&_0x3d61d3['start']['isBefore'](_0x14d733['start'])){const _0x36e2f8=_0x3d61d3['end']['nodeAfter'],_0x3c59d1=_0x14d733['start']['nodeBefore'];return _0xfb7097['isBlockImage'](_0x36e2f8)&&_0x36e2f8===_0x3c59d1;}return!0x1;}function _0x388a51(_0x54dfc4,_0x585169){return _0x4f6e68(_0x54dfc4,_0x585169)?[_0x54dfc4,_0x585169]:_0x4f6e68(_0x585169,_0x54dfc4)?[_0x585169,_0x54dfc4]:null;}_0x4a72c6['plugins']['has']('ImageResize')&&(_0x366a9a['enableDefaultAttributesIntegration']('resizeImage'),_0x366a9a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x2f3458,'FORMAT_IMAGE_SIZE'))),_0x4a72c6['plugins']['has']('ImageTextAlternativeEditing')&&_0x366a9a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a72c6['plugins']['has']('PictureEditing')&&_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x918331=>{if('attribute'!=_0x918331['type'])return;const {data:_0x392864}=_0x918331;return _0x392864&&'sources'==_0x392864['key']?{'type':'format','content':''}:void 0x0;}),_0x4a72c6['plugins']['has']('ImageSizeAttributes')&&_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x437b85=>{if('attribute'!=_0x437b85['type'])return;const {data:_0x5cb011}=_0x437b85;return!_0x5cb011||'width'!=_0x5cb011['key']&&'height'!=_0x5cb011['key']?void 0x0:{'type':'format','content':''};}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x9d5244=>{if(_0x126744['find'](({type:_0x11683b,subType:_0x15d48e})=>_0x9d5244['type']==_0x11683b&&_0x9d5244['subType']==_0x15d48e))return _0x9d5244['previous']?{}:void 0x0;}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x45b16b=>{if('insertion'==_0x45b16b['type']||'deletion'==_0x45b16b['type']){const _0xa1b623=_0x45b16b['getContainedElement']();if(_0xa1b623&&_0xa1b623['is']('element','caption'))return{'type':'insertion'==_0x45b16b['type']?'addObject':'removeObject','element':_0xa1b623,'quantity':0x1};}}),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x33d4e9=>'formatBlock'==_0x33d4e9['type']&&'convertInlineImageToBlock'==_0x33d4e9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33d4e9['type']&&'convertBlockImageToInline'==_0x33d4e9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x366a9a['descriptionFactory']['registerDescriptionCallback'](_0x4087ee=>{if('attribute'!=_0x4087ee['type'])return;const {data:_0x3bec52}=_0x4087ee;if(!_0x3bec52||'alt'!=_0x3bec52['key'])return;const _0x34fd55=_0x3bec52['newValue'];return _0x34fd55?{'type':'format','content':Mt(_0x2f3458,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34fd55+'\x22')}:{'type':'format','content':Mt(_0x2f3458,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d1840=this['editor'],_0x121eb7=_0x4d1840['locale'];_0x4d1840['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23b31a=>{if('formatBlock'!=_0x23b31a['type']&&'formatInline'!=_0x23b31a['type'])return;const {data:_0xa0d067}=_0x23b31a;if(_0xa0d067){if('imageTextAlternative'==_0xa0d067['commandName']){const _0x2a70f8=_0xa0d067['commandParams'][0x0]['newValue'];return _0x2a70f8?{'type':'format','content':Mt(_0x121eb7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a70f8+'\x22')}:{'type':'format','content':Mt(_0x121eb7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xa0d067['commandName']){const _0x55bebe=_0xa0d067['commandParams'][0x0]['width'];return _0x55bebe?{'type':'format','content':Mt(_0x121eb7,'*Set\x20image\x20width:*\x20%0',_0x55bebe)}:{'type':'format','content':Mt(_0x121eb7,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3bed21=this['editor']['locale'],_0x1b17cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b17cf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b17cf['descriptionFactory']['registerDescriptionCallback'](_0x523fc3=>{if('attribute'!=_0x523fc3['type'])return;const {data:_0x2b91e5}=_0x523fc3;return _0x2b91e5&&'src'==_0x2b91e5['key']?_0x2b91e5['newValue']&&_0x2b91e5['oldValue']?{'type':'format','content':Mt(_0x3bed21,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4f45e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f45e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4f45e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f45e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4f45e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x415211=this['editor'],_0x11ef74=_0x415211['locale'];_0x415211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x927e41=>{if('formatBlock'!=_0x927e41['type']&&'formatInline'!=_0x927e41['type'])return;const {data:_0x1d9428}=_0x927e41;return _0x1d9428&&'replaceImageSource'==_0x1d9428['commandName']?{'type':'format','content':Mt(_0x11ef74,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5ba5d4{afterInit(){const _0x59aa2d=this['editor'];if(!_0x59aa2d['plugins']['has']('ImageStyleEditing'))return;const _0x3ddedf=_0x59aa2d['plugins']['get']('TrackChangesEditing'),_0x53819c=_0x59aa2d['plugins']['get']('ImageUtils'),_0x5c3661={};_0x3ddedf['enableCommand']('imageStyle',(_0x1faac1,_0x19d579)=>{const _0x430f46=_0x59aa2d['plugins']['get']('Users')['me'],_0x21a35e=_0x59aa2d['commands']['get']('imageStyle');let _0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),_0x5370db=_0x59aa2d['model']['createRangeOn'](_0x194103),_0x3a7068=_0x21a35e['value'];if(_0x3a7068==_0x19d579['value'])return;if(_0x19d579['value']&&_0x53819c['isInlineImage'](_0x194103)&&!_0x21a35e['isStyleEnabled'](_0x19d579['value']))return;const _0x3575f6={'commandName':'imageStyle','commandParams':[_0x19d579],'formatGroupId':_0x38eda5()};_0x59aa2d['model']['change'](()=>{if(_0x3ddedf['getSuggestions']()['filter'](_0x1fbc06=>_0x1fbc06['isInContent']&&_0x430f46==_0x1fbc06['author']&&('formatBlock'==_0x1fbc06['type']||'formatInline'==_0x1fbc06['type'])&&('imageStylePreApply'==_0x1fbc06['subType']||'imageStylePostApply'==_0x1fbc06['subType'])&&_0x1fbc06['getFirstRange']()['isEqual'](_0x5370db))['forEach'](_0x4de01c=>_0x3ddedf['discardSuggestion'](_0x4de01c['head'])),_0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),_0x5370db=_0x59aa2d['model']['createRangeOn'](_0x194103),_0x21a35e['refresh'](),_0x59aa2d['commands']['get']('imageTypeInline')['refresh'](),_0x59aa2d['commands']['get']('imageTypeBlock')['refresh'](),_0x3a7068=_0x21a35e['value'],_0x3a7068!=_0x19d579['value'])return _0x53819c['isInlineImage'](_0x194103)&&_0x21a35e['shouldConvertImageType'](_0x19d579['value'],_0x194103)?(_0x1faac1({..._0x19d579,'setImageSizes':!0x1}),_0x194103=_0x53819c['getClosestSelectedImageElement'](_0x59aa2d['model']['document']['selection']),void _0x3ddedf['markBlockFormat'](_0x194103,{..._0x3575f6,'commandReversedParams':[{'value':_0x3a7068||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x53819c['isBlockImage'](_0x194103)?_0x3ddedf['markBlockFormat'](_0x194103,_0x3575f6,[],'imageStylePostApply'):_0x3ddedf['markInlineFormat'](_0x5370db,_0x3575f6,'imageStylePostApply'));});});for(const _0x5e0c70 of _0x59aa2d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c3661[_0x5e0c70['name']]=_0x5e0c70['title']['toLowerCase']();_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3cef9f])=>{_0x53819c['setImageNaturalSizeAttributes'](_0x3cef9f['getContainedElement']());}),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x432202,_0x2ec5c3)=>{_0x3ddedf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x432202,{'commandName':_0x2ec5c3['commandName'],'commandParams':_0x2ec5c3['commandReversedParams']});}),_0x3ddedf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3112d2,_0x2a4a13){return _0x29dcb0(_0x3112d2,_0x2a4a13)?[_0x3112d2,_0x2a4a13]:_0x29dcb0(_0x2a4a13,_0x3112d2)?[_0x2a4a13,_0x3112d2]:null;});const _0x45aa04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29dcb0(_0x268bc5,_0x257f59){const _0x13d027=_0x45aa04['findIndex'](({type:_0x763599,subType:_0x1572d6})=>_0x268bc5['type']==_0x763599&&_0x268bc5['subType']==_0x1572d6),_0x36725c=_0x45aa04['findIndex'](({type:_0x1033ed,subType:_0x538e56})=>_0x257f59['type']==_0x1033ed&&_0x257f59['subType']==_0x538e56);if(_0x13d027<0x0||_0x36725c<0x0)return!0x1;const _0x569cd6=_0x268bc5['getFirstRange'](),_0x35dba7=_0x257f59['getFirstRange']();if((0x0==_0x13d027||0x1==_0x13d027)&&0x2==_0x36725c&&_0x569cd6['isIntersecting'](_0x35dba7))return!0x0;if(0x2==_0x13d027&&0x3==_0x36725c){const _0x2db0ef=_0x3ddedf['_findSuggestions'](_0x569cd6,'insertion')['filter'](({suggestion:_0x2240da,meta:_0x47298a})=>_0x47298a['isOwn']&&'convertInlineImageToBlock'==_0x2240da['subType']);if(_0x2db0ef['length']>0x1&&_0x35dba7['end']['isEqual'](_0x569cd6['start']))return!0x0;if(0x1==_0x2db0ef['length']&&(_0x569cd6['start']['isEqual'](_0x35dba7['end'])||_0x569cd6['end']['isEqual'](_0x35dba7['start'])))return!0x0;}if(0x3==_0x13d027&&0x3==_0x36725c&&_0x569cd6['start']['isBefore'](_0x35dba7['start'])){const _0x4ac064=_0x569cd6['end']['nodeAfter'],_0xfa60ea=_0x35dba7['start']['nodeBefore'];return _0x53819c['isBlockImage'](_0x4ac064)&&_0x4ac064===_0xfa60ea;}return!0x1;}_0x59aa2d['model']['document']['registerPostFixer'](()=>{let _0x4f0b2a=!0x1;const _0x2033f9=Array['from'](_0x59aa2d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15f901,data:_0x294ee8}of _0x2033f9){const {group:_0x52afba,type:_0x140076,subType:_0x1fbe03,id:_0x2b6605}=tt(_0x15f901);if('suggestion'==_0x52afba&&_0x3ddedf['hasSuggestion'](_0x2b6605)){if('formatBlock'==_0x140076&&('imageStylePreApply'==_0x1fbe03||'imageStylePostApply'==_0x1fbe03)){const _0x2aaf89=_0x3ddedf['getSuggestion'](_0x2b6605);if(_0x294ee8['newRange']){const _0x509647=_0x2aaf89['getFirstRange']()['getContainedElement']();if(_0x53819c['isBlockImage'](_0x509647))continue;_0x3ddedf['discardSuggestion'](_0x2aaf89),_0x4f0b2a=!0x0;}}if('insertion'==_0x140076&&'imageCaption'==_0x1fbe03&&!_0x294ee8['newRange']){const _0x2ab515=_0x3ddedf['getSuggestion'](_0x2b6605);_0x2ab515['next']&&_0x2ab515['next']['isInContent']&&(_0x3ddedf['discardSuggestion'](_0x2ab515['next']),_0x4f0b2a=!0x0);}}}return _0x4f0b2a;}),this['_registerLegacyDescription'](_0x5c3661);}_registerLegacyDescription(_0x5179cc){const _0x5bc394=this['editor'],_0x656008=_0x5bc394['locale'];_0x5bc394['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26d21a=>{if('formatBlock'!=_0x26d21a['type']&&'formatInline'!=_0x26d21a['type'])return;const {data:_0x1dfd3c}=_0x26d21a;if(!_0x1dfd3c||'imageStyle'!=_0x1dfd3c['commandName'])return;const _0x54ea69=_0x1dfd3c['commandParams'][0x0]['value'];return _0x1e2f8d('side'===_0x54ea69?Mt(_0x656008,'FORMAT_SIDE_IMAGE'):_0x5179cc[_0x54ea69]||_0x54ea69);function _0x1e2f8d(_0x47b39a){return{'type':'format','content':Mt(_0x656008,'*Format:*\x20%0',_0x47b39a)};}});}},me=class extends _0x5ba5d4{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x45b2f9){super(_0x45b2f9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x2bbbdb=this['editor'],_0xa73dcc=_0x2bbbdb['commands']['get']('importWord'),_0x5a9d95=_0x2bbbdb['commands']['get']('trackChanges');_0xa73dcc&&(_0xa73dcc['on']('execute',(_0x3f4eda,[,_0x8c1965])=>{this['_trackChangesValueDuringImport']=_0x5a9d95['value'],_0x8c1965['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xa73dcc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xa73dcc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a9d95['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bbbdb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x396cbb,_0x22d87d){const {suggestions:_0x2e77a6}=_0x22d87d,_0xa1ec5c=this['editor']['commands']['get']('trackChanges'),_0x1f1904=_0xa1ec5c['value'];this['_trackChangesValueDuringImport']!==_0x1f1904&&(_0xa1ec5c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2e77a6&&_0x2e77a6['forEach'](({id:_0xaedcd9,type:_0x15f3e4,author:_0x1957bb,created_at:_0x2df07c})=>{const _0x28de40={'id':_0xaedcd9,'type':_0x15f3e4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1957bb,'createdAt':_0x2df07c?new Date(_0x2df07c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x28de40);});}},Ee=class extends _0x5ba5d4{afterInit(){const _0x59059f=this['editor'],_0x377850=_0x59059f['plugins']['get']('TrackChangesEditing');if(_0x59059f['plugins']['has']('IndentEditing')&&(_0x377850['enableCommand']('indent'),_0x377850['enableCommand']('outdent')),_0x59059f['plugins']['has']('IndentBlock')){for(const _0xb7ab4d of['indentBlock','outdentBlock'])_0x377850['enableDefaultAttributesIntegration'](_0xb7ab4d);if(_0x59059f['plugins']['has']('ListEditing')){for(const _0x12408e of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x377850['enableDefaultAttributesIntegration'](_0x12408e);}}const _0x2d4c67=_0x59059f['locale'];_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x2d4c67,'FORMAT_INDENT')),_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x2d4c67,'FORMAT_INDENT')),_0x377850['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x2d4c67,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e4017=this['editor'],_0x1dd682=_0x2e4017['locale'],_0xdd1cf6=_0x2e4017['plugins']['get']('TrackChangesEditing');_0xdd1cf6['descriptionFactory']['registerDescriptionCallback'](_0x2062b1=>{if('formatBlock'!=_0x2062b1['type'])return;const {data:_0x185081}=_0x2062b1;if(!_0x185081)return;if('indentBlock'!=_0x185081['commandName']&&'outdentBlock'!=_0x185081['commandName'])return;const _0xd76445=_0x2062b1['getItems']()[0x0],_0x51e475=_0xdd1cf6['descriptionFactory']['getItemLabel'](_0xd76445);return'indentBlock'==_0x185081['commandName']?{'type':'format','content':Mt(_0x1dd682,'*Indent:*\x20%0',_0x51e475)}:'outdentBlock'==_0x185081['commandName']?{'type':'format','content':Mt(_0x1dd682,'*Outdent:*\x20%0',_0x51e475)}:void 0x0;});}},Te=class extends _0x5ba5d4{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5ba5d4{afterInit(){const _0x3753a4=this['editor'];if(!_0x3753a4['plugins']['has']('LinkEditing'))return;const _0x49bdff=_0x3753a4['plugins']['get']('TrackChangesEditing'),_0x7b371c=_0x3753a4['commands']['get']('link');_0x49bdff['enableDefaultAttributesIntegration']('link'),_0x49bdff['enableDefaultAttributesIntegration']('unlink');for(const _0xb4b4f of _0x7b371c['manualDecorators'])_0x49bdff['descriptionFactory']['registerAttributeLabel'](_0xb4b4f['id'],'link\x20('+_0xb4b4f['label']['toLowerCase']()+')');_0x49bdff['descriptionFactory']['registerDescriptionCallback'](_0x186f8f=>{if('attribute'!=_0x186f8f['type'])return;const {data:_0x3328b6}=_0x186f8f;if(!_0x3328b6||'linkHref'!=_0x3328b6['key'])return;const _0x3e2a4f=_0x3328b6['newValue'],_0x421867=_0x3753a4['locale'];return{'type':'format','content':null==_0x3e2a4f?Mt(_0x421867,'*Remove\x20link*'):Mt(_0x421867,'*Set\x20link:*\x20%0','\x22'+_0x3e2a4f+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3ef82a=this['editor'],_0x4880d1=_0x3ef82a['locale'];_0x3ef82a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aa49e=>{if('formatInline'!=_0x3aa49e['type'])return;const {data:_0x135252}=_0x3aa49e;if(_0x135252){if('link'==_0x135252['commandName']){const _0x131747=_0x135252['commandParams'][0x0];return{'type':'format','content':Mt(_0x4880d1,'*Set\x20link:*\x20%0','\x22'+_0x131747+'\x22')};}return'unlink'==_0x135252['commandName']?{'type':'format','content':Mt(_0x4880d1,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5ba5d4{afterInit(){const _0x2aaeb7=this['editor'],_0x7fb90d=_0x2aaeb7['locale'];if(!_0x2aaeb7['plugins']['has']('LegacyListEditing'))return;const _0x4633b2=_0x2aaeb7['plugins']['get']('TrackChangesEditing'),_0x20ec35=_0x2aaeb7['plugins']['has']('LegacyTodoListEditing');function _0x1e17c6(_0x19453e){return()=>{const _0x114e3a=_0x2aaeb7['model']['document']['selection'],_0xf5a4cc=_0x2aaeb7['commands']['get'](_0x19453e);if(_0xf5a4cc['value'])return void _0x2aaeb7['execute']('paragraph',{});const _0x1ca777=_0x19453e['slice'](0x0,-0x4),_0x3a2f47=function(_0x1eb143,_0x5974aa,_0x983c4b){let _0x2bd3ea=Array['from'](_0x1eb143)['filter'](_0x1fdd70=>function(_0xfdce7a,_0x258e15){return _0x258e15['checkChild'](_0xfdce7a['parent'],'listItem')&&!_0x258e15['isObject'](_0xfdce7a);}(_0x1fdd70,_0x983c4b));_0x2bd3ea=_0x2bd3ea['filter'](_0x26a0a2=>!_0x26a0a2['is']('element','listItem')||_0x26a0a2['getAttribute']('listType')!=_0x5974aa);const _0x57288d=new Set();for(const _0x1eb259 of _0x2bd3ea)_0x1eb259['is']('element','listItem')?_0x57288d['add'](Le(_0x1eb259)):_0x57288d['add'](_0x1eb259);return Array['from'](_0x57288d);}(_0x114e3a['getSelectedBlocks'](),_0x1ca777,_0x2aaeb7['model']['schema']);_0x2aaeb7['model']['change'](()=>{for(const _0x21fc08 of _0x3a2f47)_0x4633b2['markBlockFormat'](_0x21fc08,{'commandName':_0x19453e,'commandParams':[{'forceValue':!_0xf5a4cc['value']}],'formatGroupId':'blockName'},Ie(_0x21fc08));});};}function _0x5ae777(_0x7b53dd){return()=>{const _0x4070e6=function(_0x3b6096){let _0x98996=Array['from'](_0x3b6096);const _0x521f23=_0x98996['findIndex'](_0x24cc83=>'listItem'!=_0x24cc83['name']);return _0x521f23>-0x1&&(_0x98996=_0x98996['slice'](0x0,_0x521f23)),_0x98996;}(_0x2aaeb7['model']['document']['selection']['getSelectedBlocks']()),_0x567eec=_0x2aaeb7['model']['createRange'](_0x2aaeb7['model']['createPositionAt'](_0x4070e6[0x0],'before'),_0x2aaeb7['model']['createPositionAt'](_0x4070e6[_0x4070e6['length']-0x1],'end'));_0x2aaeb7['model']['change'](()=>{_0x4633b2['markBlockFormat'](_0x567eec,{'commandName':_0x7b53dd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x407527){const _0xee4db2=new Set();for(const _0x331dc9 of _0x407527){let _0x258b96=_0x331dc9['nextSibling'];for(;_0x258b96&&_0x258b96['getAttribute']('listIndent')>_0x331dc9['getAttribute']('listIndent');)_0xee4db2['add'](_0x258b96),_0x258b96=_0x258b96['nextSibling'];}return Array['from'](_0xee4db2);}(_0x4070e6));});};}_0x4633b2['enableCommand']('numberedList',_0x1e17c6('numberedList')),_0x4633b2['enableCommand']('bulletedList',_0x1e17c6('bulletedList')),_0x20ec35&&_0x4633b2['enableCommand']('todoList',_0x1e17c6('todoList')),_0x4633b2['enableCommand']('indentList',_0x5ae777('indentList')),_0x4633b2['enableCommand']('outdentList',_0x5ae777('outdentList')),_0x20ec35&&_0x4633b2['enableCommand']('checkTodoList',()=>{const _0x9c881c=_0x2aaeb7['commands']['get']('checkTodoList'),_0x4bc8cd=Array['from'](_0x9c881c['_selectedElements']);_0x4bc8cd['filter'](_0x2f25fc=>_0x2f25fc['getAttribute']('todoListChecked')!=_0x9c881c['value']),_0x2aaeb7['model']['change'](()=>{for(const _0x3c813d of _0x4bc8cd)_0x4633b2['markBlockFormat'](_0x3c813d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9c881c['value']}]});});}),_0x4633b2['descriptionFactory']['registerElementLabel']('listItem',_0x3cf555=>Mt(_0x7fb90d,'ELEMENT_LIST_ITEM',_0x3cf555)),_0x4633b2['descriptionFactory']['registerDescriptionCallback'](_0x4f194e=>{if('formatBlock'!=_0x4f194e['type']&&'formatInline'!=_0x4f194e['type'])return;const {data:_0x15a362}=_0x4f194e;if(_0x15a362){if('numberedList'==_0x15a362['commandName']||'bulletedList'==_0x15a362['commandName']||'todoList'==_0x15a362['commandName'])switch(_0x15a362['commandName']['replace']('List','')){case'bulleted':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3865f7(Mt(_0x7fb90d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15a362['commandName'])return{'type':'format','content':Mt(_0x7fb90d,'*Indent:*\x20%0',Mt(_0x7fb90d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15a362['commandName'])return{'type':'format','content':Mt(_0x7fb90d,'*Outdent:*\x20%0',Mt(_0x7fb90d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15a362['commandName'])return _0x15a362['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x7fb90d,'*Check\x20item*')}:{'type':'format','content':Mt(_0x7fb90d,'*Uncheck\x20item*')};}function _0x3865f7(_0x1dcb75){return{'type':'format','content':Mt(_0x7fb90d,'*Change\x20to:*\x20%0',_0x1dcb75)};}});}};function Le(_0x46bf5b){const _0x4f1f65=_0x46bf5b['getAttribute']('listIndent');if(0x0==_0x4f1f65)return _0x46bf5b;let _0x1cdd1a=_0x46bf5b;for(;_0x46bf5b['previousSibling']&&_0x46bf5b['previousSibling']['is']('element','listItem');){const _0x3c6185=_0x46bf5b['previousSibling']['getAttribute']('listIndent');if(_0x3c6185==_0x4f1f65)_0x1cdd1a=_0x46bf5b['previousSibling'];else{if(_0x3c6185<_0x4f1f65)break;}_0x46bf5b=_0x46bf5b['previousSibling'];}return _0x1cdd1a;}function Ie(_0x316158){const _0x40e6bc=[];if(_0x316158['is']('element','listItem')&&_0x316158['getAttribute']('listIndent')>0x0){let _0x9a3f98=_0x316158['nextSibling'];for(;_0x9a3f98&&'listItem'==_0x9a3f98['name']&&_0x9a3f98['getAttribute']('listIndent')==_0x316158['getAttribute']('listIndent');)_0x40e6bc['push'](_0x9a3f98),_0x9a3f98=_0x9a3f98['nextSibling'];}return _0x40e6bc;}var Ae=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8e0d6a=this['editor']['config']['get']('list.properties'),_0x459840=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e0d6a['styles']&&_0x459840['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8e0d6a['reversed']&&_0x459840['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8e0d6a['startIndex']&&_0x459840['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x459840['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x5ee436,_0x55e7a8={}){const _0x3f0fff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d11a5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3f0fff['markMultiRangeBlockFormat'](_0x3d11a5,{'commandName':'listStyle','commandParams':[{'type':_0x55e7a8['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x242664,_0x37e4e6={}){const _0x1a5a28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x140a8d=this['_getSuggestionBlocks'](_0x3548e3=>_0x3548e3['is']('element','listItem')&&'numbered'===_0x3548e3['getAttribute']('listType'));if(_0x140a8d['length']<0x1)return;const _0x14d7a4=_0x140a8d['map'](_0x30d1da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30d1da,'before'),this['editor']['model']['createPositionAt'](_0x30d1da,0x0)));this['editor']['model']['change'](()=>{_0x1a5a28['markMultiRangeBlockFormat'](_0x14d7a4,{'commandName':'listReversed','commandParams':[{'reversed':_0x37e4e6['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3e9f70,_0x19796d={}){const _0x13e4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1129b4=this['_getSuggestionBlocks'](_0x438dc7=>_0x438dc7['is']('element','listItem')&&'numbered'===_0x438dc7['getAttribute']('listType'));if(_0x1129b4['length']<0x1)return;const _0x5915aa=_0x1129b4['map'](_0x4db231=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db231,'before'),this['editor']['model']['createPositionAt'](_0x4db231,0x0)));this['editor']['model']['change'](()=>{_0x13e4f['markMultiRangeBlockFormat'](_0x5915aa,{'commandName':'listStart','commandParams':[{'startIndex':_0x19796d['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x1f89d2){if('formatBlock'!=_0x1f89d2['type']&&'formatInline'!=_0x1f89d2['type'])return;const _0xf200e2=this['editor']['locale'],{data:_0x511b42}=_0x1f89d2;if(!_0x511b42)return;let _0x25a736,_0x576b81;switch(_0x511b42['commandName']){case'listStyle':_0x25a736='*Change\x20to:*\x20%0',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736,Mt(_0xf200e2,this['_getTranslationKeyForListStyle'](_0x511b42['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25a736=_0x511b42['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736)};break;case'listStart':_0x25a736='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x576b81={'type':'format','content':Mt(_0xf200e2,_0x25a736,_0x511b42['commandParams'][0x0]['startIndex'])};}return _0x576b81;}_getSuggestionBlocksForListStyle(){const _0x47533d=this['editor']['plugins']['get']('LegacyListUtils');let _0x46815f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46815f[0x0]?.['is']('element','listItem')&&_0x46815f['unshift'](..._0x47533d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46815f[_0x46815f['length']-0x1]?.['is']('element','listItem')&&_0x46815f['push'](..._0x47533d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46815f=[...new Set(_0x46815f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46815f=_0x46815f['filter'](_0x17b29b=>_0x17b29b['is']('element','listItem'))),_0x46815f;}_getSuggestionBlocks(_0x569b6e){const _0x3fe2f8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1082e6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x569b6e)['map'](_0x541fdc=>{const _0x155080=this['editor']['model']['createPositionAt'](_0x541fdc,0x0);return[..._0x3fe2f8['getSiblingNodes'](_0x155080,'backward'),..._0x3fe2f8['getSiblingNodes'](_0x155080,'forward')];})['flat']();return _0x1082e6=[...new Set(_0x1082e6)],_0x1082e6;}_getTranslationKeyForListStyle(_0x5b18c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b18c8)||'default')['toUpperCase']()+'_LIST_'+_0x5b18c8['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5ba5d4{afterInit(){const _0x24f6e3=this['editor'];if(!_0x24f6e3['plugins']['has']('MediaEmbedEditing'))return;const _0x1a3366=_0x24f6e3['plugins']['get']('TrackChangesEditing'),_0x368260=_0x24f6e3['locale'];_0x1a3366['enableCommand']('mediaEmbed'),_0x1a3366['descriptionFactory']['registerElementLabel']('media',_0x2c3df6=>Mt(_0x368260,'ELEMENT_MEDIA',_0x2c3df6)),_0x24f6e3['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1a3366['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1a3366['descriptionFactory']['registerDescriptionCallback'](_0x2a7e35=>{if('attribute'!=_0x2a7e35['type'])return;const {data:_0x20f3f0}=_0x2a7e35;if(!_0x20f3f0||'resizedWidth'!=_0x20f3f0['key'])return;const _0x27f584=_0x2a7e35['getContainedElement']();if(!_0x27f584||!_0x27f584['is']('element','media'))return;const _0x45c0bb=Mt(_0x368260,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x368260,'*Set\x20format:*\x20%0',_0x45c0bb)};}));}},ke=class extends _0x5ba5d4{afterInit(){const _0x579c67=this['editor'];if(!_0x579c67['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2d2de5=_0x579c67['plugins']['get']('TrackChangesEditing'),_0x4e22dc=_0x579c67['locale'],_0x173517=_0x579c67['plugins']['get']('MediaEmbedStyleEditing'),_0x51321e={};for(const _0x43e5bb of _0x173517['normalizedStyles'])_0x51321e[_0x43e5bb['name']]=_0x43e5bb['title']['toLowerCase']();const _0x4683ec=_0x173517['normalizedStyles']['find'](_0x5b8e76=>_0x5b8e76['isDefault'])?.['name'];_0x2d2de5['enableCommand']('mediaStyle',(_0x537907,_0xba524d)=>{const _0x144390=_0x579c67['plugins']['get']('Users')['me'],_0xd24b7b=_0x579c67['commands']['get']('mediaStyle'),_0xf1399b=function(_0x4607dc){const _0x1cbf65=_0x4607dc['model']['document']['selection']['getSelectedElement']();return _0x1cbf65&&_0x1cbf65['is']('element','media')?_0x1cbf65:null;}(_0x579c67);if(!_0xf1399b)return;const _0x3538bd=_0x579c67['model']['createRangeOn'](_0xf1399b);let _0x50c08f=_0xd24b7b['value'];if(_0x50c08f==_0xba524d['value'])return;const _0x4d6b50={'commandName':'mediaStyle','commandParams':[_0xba524d],'formatGroupId':_0x38eda5()};_0x579c67['model']['change'](()=>{_0x2d2de5['getSuggestions']()['filter'](_0xe174e3=>_0xe174e3['isInContent']&&_0x144390==_0xe174e3['author']&&'formatBlock'==_0xe174e3['type']&&'mediaStylePostApply'==_0xe174e3['subType']&&_0xe174e3['getFirstRange']()['isEqual'](_0x3538bd))['forEach'](_0xc7ee12=>_0x2d2de5['discardSuggestion'](_0xc7ee12['head'])),_0xd24b7b['refresh'](),_0x50c08f=_0xd24b7b['value'],_0x50c08f!=_0xba524d['value']&&_0x2d2de5['markBlockFormat'](_0xf1399b,{..._0x4d6b50,'commandReversedParams':[{'value':'string'==typeof _0x50c08f?_0x50c08f:null}]},[],'mediaStylePostApply');});}),_0x2d2de5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2d2de5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x515a7e,_0x42d306)=>{_0x2d2de5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x515a7e,{'commandName':_0x42d306['commandName'],'commandParams':_0x42d306['commandReversedParams']});}),_0x2d2de5['descriptionFactory']['registerDescriptionCallback'](_0x5a31b0=>{if('formatBlock'!=_0x5a31b0['type'])return;const {data:_0x3a3711}=_0x5a31b0;if(!_0x3a3711||'mediaStyle'!=_0x3a3711['commandName'])return;const _0x1859e7=_0x3a3711['commandParams'][0x0]['value']||_0x4683ec;if(!_0x1859e7)return;const _0x39f1a6=_0x51321e[_0x1859e7]||_0x1859e7;return{'type':'format','content':Mt(_0x4e22dc,'*Format:*\x20%0',_0x39f1a6)};});}},Ce=class extends _0x5ba5d4{afterInit(){const _0x24019a=this['editor'];_0x24019a['plugins']['has']('MentionEditing')&&_0x24019a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5ba5d4{afterInit(){const _0x33b49c=this['editor'];if(!_0x33b49c['plugins']['has']('MergeFieldsEditing'))return;const _0x3206c9=_0x33b49c['plugins']['get']('TrackChangesEditing'),_0x40494a=_0x33b49c['locale'];_0x3206c9['enableCommand']('insertMergeField'),_0x3206c9['enableCommand']('insertMergeFieldBlock'),_0x3206c9['enableCommand']('insertMergeFieldImage'),_0x3206c9['descriptionFactory']['registerElementLabel']('mergeField',_0x59c1a8=>Mt(_0x40494a,'ELEMENT_MERGE_FIELD',_0x59c1a8)),_0x3206c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3462d1=>Mt(_0x40494a,'ELEMENT_MERGE_FIELD',_0x3462d1)),_0x3206c9['descriptionFactory']['registerDescriptionCallback'](_0x57ada4=>{if('insertion'!=_0x57ada4['type']&&'deletion'!=_0x57ada4['type'])return;const _0x34b3f3=_0x57ada4['getContainedElement']();if(null==_0x34b3f3)return;const _0x3bf6bb=_0x33b49c['plugins']['get']('MergeFieldsEditing');let _0x53097c;switch(_0x3bf6bb['getMergeFieldType'](_0x34b3f3)){case null:return;case'image':{const _0x281e69=_0x3bf6bb['unwrapAffixes'](_0x34b3f3['getAttribute']('src'));_0x53097c=_0x3bf6bb['getLabel'](_0x281e69)||_0x281e69;break;}default:{const _0x15893c=_0x34b3f3['getAttribute']('id');_0x53097c=_0x3bf6bb['getLabel'](_0x15893c)||_0x15893c;break;}}return'insertion'==_0x57ada4['type']?{'type':'insertion','content':Mt(_0x40494a,'*Insert:*\x20%0','\x22'+_0x53097c+'\x22\x20'+Mt(_0x40494a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x40494a,'*Remove:*\x20%0','\x22'+_0x53097c+'\x22\x20'+Mt(_0x40494a,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5ba5d4{afterInit(){const _0x2878ec=this['editor'],_0x248c56=_0x2878ec['plugins']['get']('TrackChangesEditing');_0x2878ec['plugins']['has']('MultiLevelList')&&(_0x248c56['enableDefaultAttributesIntegration']('multiLevelList'),_0x248c56['descriptionFactory']['registerDescriptionCallback'](_0x4efa52=>this['handleDescriptions'](_0x4efa52)));}handleDescriptions(_0x39f444){const _0x54346f=this['editor']['locale'],{data:_0x2d255c}=_0x39f444,_0x27e031={'type':'format','content':''};if(_0x2d255c&&'listMarkerStyle'==_0x2d255c['key']){if(!_0x2d255c['oldValue'])return{'type':'format','content':Mt(_0x54346f,'*Set\x20format:*\x20%0',Mt(_0x54346f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d255c['newValue']+')'};if(!_0x2d255c['newValue']){let _0x180187=_0x39f444['head'];for(;_0x180187;){if(_0x180187['data']&&'listType'==_0x180187['data']['key']&&_0x180187['data']['newValue'])return _0x27e031;_0x180187=_0x180187['next'];}return{'type':'format','content':Mt(_0x54346f,'*Remove\x20format:*\x20%0',Mt(_0x54346f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d255c['oldValue']+')'};}}}},Ne=class extends _0x5ba5d4{afterInit(){const _0x5217ac=this['editor'];if(!_0x5217ac['plugins']['has']('PageBreakEditing'))return;_0x5217ac['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xd469ab=_0x5217ac['plugins']['get']('TrackChangesEditing'),_0x4f5871=_0x5217ac['locale'];_0xd469ab['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a0f1d=>Mt(_0x4f5871,'ELEMENT_PAGE_BREAK',_0x3a0f1d));}},Se=class extends _0x5ba5d4{afterInit(){const _0x39da30=this['editor'];if(!_0x39da30['plugins']['has']('Paragraph'))return;const _0x41d610=_0x39da30['locale'],_0x69eb68=_0x39da30['plugins']['get']('TrackChangesEditing');_0x69eb68['descriptionFactory']['registerElementLabel']('paragraph',_0x2ec1a1=>Mt(_0x41d610,'ELEMENT_PARAGRAPH',_0x2ec1a1)),_0x69eb68['enableDefaultAttributesIntegration']('paragraph'),_0x69eb68['enableCommand']('insertParagraph');const _0x2cfa49=_0x69eb68['descriptionFactory'];_0x2cfa49['registerDescriptionCallback'](_0x57b2e0=>{if('insertion'!==_0x57b2e0['type'])return;const {start:_0x48ce0b,end:_0x29cf2a}=_0x57b2e0['getFirstRange']();if(!_0x48ce0b['isTouching'](_0x29cf2a)||!_0x48ce0b['nodeAfter'])return;const _0x4ab617=_0x39da30['model']['schema'],_0x412772=_0x48ce0b['nodeAfter'];return _0x4ab617['isBlock'](_0x412772)&&!_0x4ab617['isLimit'](_0x412772)&&_0x4ab617['checkChild'](_0x412772,'$text')?{'type':'insertion','content':Mt(_0x41d610,'*Insert:*\x20%0',_0x2cfa49['getItemLabel'](_0x412772,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x12e9d1=this['editor'],_0x158a96=_0x12e9d1['locale'];_0x12e9d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab8c1=>{if('formatBlock'!=_0x3ab8c1['type'])return;const {data:_0x215b7e}=_0x3ab8c1;return _0x215b7e&&'paragraph'==_0x215b7e['commandName']?{'type':'format','content':Mt(_0x158a96,'*Change\x20to:*\x20%0',Mt(_0x158a96,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5ba5d4{afterInit(){const _0x9f530b=this['editor'];_0x9f530b['commands']['get']('replaceSource')&&_0x9f530b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5ba5d4{afterInit(){const _0x5bd09f=this['editor'];_0x5bd09f['plugins']['has']('RemoveFormatEditing')&&(_0x5bd09f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3af949=this['editor'];_0x3af949['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51e9cb=>{if('formatBlock'!=_0x51e9cb['type']&&'formatInline'!=_0x51e9cb['type'])return;const {data:_0x1bf993}=_0x51e9cb;return _0x1bf993&&'removeFormat'==_0x1bf993['commandName']?{'type':'format','content':Mt(_0x3af949['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5ba5d4{afterInit(){const _0x27ac34=this['editor'];if(!_0x27ac34['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36449a=_0x27ac34['plugins']['get']('TrackChangesEditing');_0x36449a['enableCommand']('goToPreviousRestrictedEditingException'),_0x36449a['enableCommand']('goToNextRestrictedEditingException');const _0x49c5e6=_0x27ac34['plugins']['get']('RestrictedEditingModeEditing');_0x49c5e6['enableCommand']('trackChanges'),_0x49c5e6['enableCommand']('acceptSuggestion'),_0x49c5e6['enableCommand']('discardSuggestion'),_0x49c5e6['enableCommand']('acceptAllSuggestions'),_0x49c5e6['enableCommand']('discardAllSuggestions'),_0x49c5e6['enableCommand']('acceptSelectedSuggestions'),_0x49c5e6['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5ba5d4{afterInit(){const _0x58e028=this['editor'];if(!_0x58e028['plugins']['has']('ShiftEnter'))return;const _0x2ed8ca=_0x58e028['plugins']['get']('TrackChangesEditing');_0x2ed8ca['enableCommand']('shiftEnter'),_0x2ed8ca['descriptionFactory']['registerElementLabel']('softBreak',_0x1f34d7=>Mt(_0x58e028['locale'],'ELEMENT_LINE_BREAK',_0x1f34d7));}};function Be(_0x8440b1,_0x40dd6d,_0x5684cc){const _0x47665c=[];for(const _0x4d05bd of _0x40dd6d['getItems']())_0x4d05bd['hasAttribute'](_0x8440b1)&&_0x47665c['push'](_0x5684cc['createRangeOn'](_0x4d05bd));return _0x47665c;}var ve=class extends _0x5ba5d4{afterInit(){const _0x1f2bca=this['editor'],_0x3a240e=_0x1f2bca['plugins']['get']('TrackChangesEditing');_0x1f2bca['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3a240e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x35d6b4=this['editor'],_0x52f48b=_0x35d6b4['model'],_0xf3ff92=_0x35d6b4['locale'],_0x5d4424=_0x35d6b4['plugins']['get']('TrackChangesEditing'),_0x126010='restrictedEditingException',_0x463cdf=_0x35d6b4['commands']['get'](_0x126010);_0x5d4424['enableCommand'](_0x126010,(_0x19f07a,_0x179b6c={})=>{const _0xec0294=_0x52f48b['document']['selection'];if(_0xec0294['isCollapsed'])return void _0x19f07a(_0x179b6c);const _0x49b196=void 0x0!==_0x179b6c['forceValue']?_0x179b6c['forceValue']:!_0x463cdf['value'];_0x52f48b['change'](()=>{const _0x203661=Array['from'](_0xec0294['getRanges']());for(const _0xde6e33 of _0x203661){const _0x1eca08=_0x49b196?[_0xde6e33]:Be(_0x126010,_0xde6e33,_0x52f48b);for(const _0x318d37 of _0x1eca08)_0x5d4424['markInlineFormat'](_0x318d37,{'commandName':_0x126010,'commandParams':[{'forceValue':_0x49b196}]});}});}),_0x5d4424['descriptionFactory']['registerDescriptionCallback'](_0x4cfe59=>{if('formatBlock'!=_0x4cfe59['type']&&'formatInline'!=_0x4cfe59['type'])return;const {data:_0x3199af}=_0x4cfe59;return _0x3199af&&_0x3199af['commandName']==_0x126010?_0x3199af['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xf3ff92,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xf3ff92,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0xf998d1=this['editor'],_0x446fe3=_0xf998d1['locale'],_0x5ae0f3=_0xf998d1['plugins']['get']('TrackChangesEditing'),_0x4f16d9='restrictedEditingExceptionBlock',_0x184d2d=this['editor']['commands']['get'](_0x4f16d9);_0x5ae0f3['enableCommand'](_0x4f16d9,(_0xfefe26,_0x2287fa={})=>{const _0x45fcf4=this['editor']['model']['document']['selection'],_0x20a574=_0x2287fa&&void 0x0!==_0x2287fa['forceValue']?_0x2287fa['forceValue']:!_0x184d2d['value'];let _0x3685f2=[];if(_0x20a574){const _0x263a6e=Array['from'](_0x45fcf4['getSelectedBlocks']())['filter'](_0xa0a833=>function(_0x141b81){return!!_0x141b81['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xa0a833)||function(_0x599136,_0x21a299){const _0x36e86e=_0x21a299['createContext'](_0x599136['parent']);return!!_0x21a299['checkChild'](_0x36e86e,'restrictedEditingException')&&!!_0x21a299['checkChild'](_0x36e86e['push']('restrictedEditingException'),_0x599136);}(_0xa0a833,this['editor']['model']['schema']));_0x3685f2=bt(_0x263a6e,_0xf998d1['model']);}else{const _0x525117=Array['from'](_0x45fcf4['getSelectedBlocks']())['map'](_0x511813=>function(_0x4af8b9){let _0x100033=_0x4af8b9;for(;_0x100033['parent'];){if('restrictedEditingException'==_0x100033['parent']['name'])return _0x100033;_0x100033=_0x100033['parent'];}return null;}(_0x511813))['filter'](_0x4a77e8=>!!_0x4a77e8);_0x3685f2=bt(_0x525117,_0xf998d1['model']);}_0xf998d1['model']['change'](()=>{for(const _0x3cec96 of _0x3685f2)_0x5ae0f3['markBlockFormat'](_0x3cec96,{'commandName':_0x4f16d9,'commandParams':[{'forceValue':_0x20a574}]});});}),_0x5ae0f3['descriptionFactory']['registerDescriptionCallback'](_0x14e3cd=>{const {data:_0x566b70}=_0x14e3cd;if(_0x566b70&&_0x566b70['commandName']==_0x4f16d9)return _0x566b70['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x446fe3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x446fe3,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5ba5d4{afterInit(){const _0x192050=this['editor'];_0x192050['plugins']['has']('Style')&&_0x192050['plugins']['has']('DataSchema')&&(_0x192050['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xf0cde8=this['editor'],_0x4a338d=_0xf0cde8['locale'];_0xf0cde8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x297890=>{if('formatBlock'!=_0x297890['type']&&'formatInline'!=_0x297890['type'])return;const {data:_0x22918d}=_0x297890;return _0x22918d&&'style'===_0x22918d['commandName']?_0x22918d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4a338d,'*Set\x20format:*\x20%0',_0x22918d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4a338d,'*Remove\x20format:*\x20%0',_0x22918d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5ba5d4{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x341f65){super(_0x341f65),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2fac4d=this['editor'],_0x35e9d0=_0x2fac4d['model']['document']['selection'];if(!_0x2fac4d['plugins']['has']('TableEditing'))return;const _0x445816=_0x2fac4d['locale'],_0x3d151a=_0x2fac4d['plugins']['get']('TrackChangesEditing'),_0x20c82a=_0x2fac4d['plugins']['get']('TableUtils');_0x3d151a['descriptionFactory']['registerElementLabel']('table',_0x2e1ea1=>Mt(_0x445816,'ELEMENT_TABLE',_0x2e1ea1)),this['_setupColumnsRowsFixing'](),_0x3d151a['enableCommand']('insertTable'),_0x3d151a['enableCommand']('selectTableRow'),_0x3d151a['enableCommand']('selectTableColumn');for(const _0x5432d9 of['insertTableRowAbove','insertTableRowBelow']){const _0x108110=_0x2fac4d['commands']['get'](_0x5432d9);_0x3d151a['enableCommand'](_0x5432d9,_0x222e78=>{_0x2fac4d['model']['change'](_0x5e1179=>{_0x222e78();const _0xf24764='above'===_0x108110['order'],_0x4c8313=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x2cc634=_0x20c82a['getRowIndexes'](_0x4c8313),_0x30582e=_0xf24764?_0x2cc634['first']-0x1:_0x2cc634['last']+0x1,_0x377fe3=_0x4c8313[0x0]['findAncestor']('table'),_0x39a4e6=_0x20c82a['createTableWalker'](_0x377fe3,{'startRow':_0x30582e,'endRow':_0x30582e}),_0xedcfb8=Array['from'](_0x39a4e6)['map'](_0x1f9b93=>_0x5e1179['createRangeOn'](_0x1f9b93['cell']));_0x3d151a['markMultiRangeInsertion'](_0xedcfb8,'tableRow');});});}for(const _0x2136ee of['insertTableColumnLeft','insertTableColumnRight']){const _0x54a383=_0x2fac4d['commands']['get'](_0x2136ee);_0x3d151a['enableCommand'](_0x2136ee,_0x52a968=>{_0x2fac4d['model']['change'](_0xfa5af7=>{_0x52a968();const _0x88f2b6='left'===_0x54a383['order'],_0x5cb029=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x58b0a4=_0x20c82a['getColumnIndexes'](_0x5cb029),_0x2b7d0d=_0x88f2b6?_0x58b0a4['first']-0x1:_0x58b0a4['last']+0x1,_0x4e1b02=_0x5cb029[0x0]['findAncestor']('table'),_0x44cee1=_0x20c82a['createTableWalker'](_0x4e1b02,{'startRow':0x0,'column':_0x2b7d0d,'includeAllSlots':!0x1}),_0x2852cf=Array['from'](_0x44cee1)['map'](_0x3bde06=>_0xfa5af7['createRangeOn'](_0x3bde06['cell']));_0x3d151a['markMultiRangeInsertion'](_0x2852cf,'tableColumn');});});}for(const _0x4732b7 of['removeTableRow','removeTableColumn']){const _0x1a6b43=_0x4732b7['substr'](0xb),_0x479034=_0x1a6b43['toLowerCase'](),_0x183d12=_0x479034['substr'](0x0,0x3)+'span',_0x3f33e3='table'+_0x1a6b43,_0x58bc81='min'+_0x1a6b43,_0x4a3307='max'+_0x1a6b43;_0x3d151a['enableCommand'](_0x4732b7,()=>{_0x2fac4d['model']['change'](_0xcaa619=>{const _0x5802b7=_0x20c82a['getSelectionAffectedTableCells'](_0x35e9d0),_0x554a61=_0x5802b7[0x0]['findAncestor']('table');let _0x5ab86e;if('removeTableRow'==_0x4732b7){const _0x9c35e=_0x20c82a['getRowIndexes'](_0x5802b7);_0x5ab86e={'startRow':_0x9c35e['first'],'endRow':_0x9c35e['last'],'includeAllSlots':!0x0};}else{const _0x5bfdd7=_0x20c82a['getColumnIndexes'](_0x5802b7);_0x5ab86e={'startColumn':_0x5bfdd7['first'],'endColumn':_0x5bfdd7['last'],'includeAllSlots':!0x0};}const _0x3ce938=_0x20c82a['createTableWalker'](_0x554a61,_0x5ab86e),_0x3f4263=Array['from'](_0x3ce938)['map'](({cell:_0x489a0c})=>_0x489a0c),_0x1f296c=Pe(_0x3f4263['filter'](_0x3efb42=>_0x3efb42['hasAttribute'](_0x183d12))),_0x17af2e=Pe(_0x3f4263['filter'](_0x415869=>!_0x415869['hasAttribute'](_0x183d12)))['map'](_0x4f990e=>_0xcaa619['createRangeOn'](_0x4f990e)),_0x2fd6c3=_0x3d151a['markMultiRangeDeletion'](_0x17af2e,_0x3f33e3);if(_0x2fd6c3&&('tableRow'==_0x2fd6c3['subType']||'tableColumn'==_0x2fd6c3['subType'])){const _0x2ef055=this['_getSuggestionCoords'](_0x2fd6c3);for(const _0x31174a of _0x1f296c){const _0x2d7bb7=_0xcaa619['createRangeOn'](_0x31174a),_0xc5541e=_0x20c82a['getCellLocation'](_0x31174a),_0x1dc192=_0x31174a['getAttribute'](_0x183d12)-0x1,_0x12dcaf=_0x2ef055[_0x58bc81],_0x3595d9=_0x2ef055[_0x4a3307];_0x12dcaf<=_0xc5541e[_0x479034]&&_0xc5541e[_0x479034]+_0x1dc192<=_0x3595d9&&_0x2fd6c3['addRange'](_0x2d7bb7);}}});});}function _0x408813(_0x5bec76){const _0x4dd68c=Array['from'](_0x35e9d0['getRanges']())['map'](_0xa99c8c=>rt['fromRange'](_0xa99c8c));_0x2fac4d['model']['change'](_0x5d3bd7=>{const _0x3cf4f1=_0x5d3bd7['batch'];_0x5bec76=_0x5bec76['filter'](_0x4a11b7=>'$graveyard'!=_0x4a11b7['root']['rootName']),_0x5d3bd7['setSelection'](_0x5bec76),_0x2fac4d['commands']['get']('removeTableRow')['refresh'](),_0x2fac4d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fac4d['model']['enqueueChange'](()=>{_0x2fac4d['model']['enqueueChange'](_0x3cf4f1,_0x552183=>{const _0x11c9e9=_0x4dd68c['filter'](_0x35a1a5=>'$graveyard'!=_0x35a1a5['root']['rootName']);_0x11c9e9['length']>0x0&&_0x552183['setSelection'](_0x11c9e9);for(const _0x2f19f2 of _0x4dd68c)_0x2f19f2['detach']();});});});}function _0x1a2f4c(_0x500768){_0x2fac4d['model']['change'](_0x79014=>{const _0x3247ed=Array['from'](_0x35e9d0['getRanges']())['map'](_0x5de3ee=>rt['fromRange'](_0x5de3ee)),_0x357753=[];for(const _0x1a4582 of _0x500768)for(const _0xf15277 of _0x1a4582['getItems']({'shallow':!0x0}))_0x357753['push'](_0xf15277);for(const _0x3897f6 of _0x357753)'$graveyard'!=_0x3897f6['root']['rootName']&&(_0x79014['setSelection'](_0x79014['createPositionAt'](_0x3897f6,0x0)),_0x2fac4d['commands']['get']('removeTableColumn')['refresh'](),_0x2fac4d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59b864=_0x3247ed['filter'](_0x28201d=>'$graveyard'!=_0x28201d['root']['rootName']);_0x59b864['length']>0x0&&_0x79014['setSelection'](_0x59b864);for(const _0x151e1c of _0x3247ed)_0x151e1c['detach']();});}function _0x1aaede(_0x5f4d61,_0x30da64){return _0x30da64['every'](_0x34fae3=>_0x5f4d61['some'](_0x188f36=>_0x188f36['end']['isEqual'](_0x34fae3['start'])||_0x34fae3['end']['isEqual'](_0x188f36['start'])));}function _0x4f388e(_0x2c2eeb,_0xa7f20a){return!_0x2c2eeb['some'](_0x7a7f69=>_0xa7f20a['some'](_0x255d8d=>_0x7a7f69['isIntersecting'](_0x255d8d)))&&_0x2c2eeb['some'](_0x57bdbc=>_0xa7f20a['some'](_0xcfec19=>_0x57bdbc['end']['isTouching'](_0xcfec19['start'])));}_0x3d151a['descriptionFactory']['registerDescriptionCallback'](_0x3f6453=>{if('insertion'!=_0x3f6453['type']&&'deletion'!=_0x3f6453['type'])return;const _0x319025=_0x3f6453['getContainedElement']();if(null!=_0x319025&&_0x319025['is']('element','table')){if('insertion'==_0x3f6453['type']){const _0x51604e=_0x3f6453['getItems']()['filter'](_0x3c8b42=>_0x3c8b42['is']('$textProxy'))['map'](_0x2652c5=>_0x2652c5['data']);if(_0x51604e['length'])return{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51604e['join']('\x20')+'\x22'))};}if('deletion'==_0x3f6453['type']){const _0x424a24=_0x3f6453['getItems']()['filter'](_0x44b9f3=>_0x44b9f3['is']('$textProxy'))['map'](_0x995943=>_0x995943['data']);if(_0x424a24['length'])return{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x424a24['join']('\x20')+'\x22'))};}}}),_0x3d151a['descriptionFactory']['registerDescriptionCallback'](_0x3a57bd=>{if('tableRow'==_0x3a57bd['subType']){const _0x32839e=_0x3a57bd['getItems']()['filter'](_0x567cbd=>_0x567cbd['is']('$textProxy'))['map'](_0x41b257=>_0x41b257['data']),_0x15ff5a=this['_getSuggestionCoords'](_0x3a57bd),_0x26a7b4=_0x15ff5a['maxRow']-_0x15ff5a['minRow']+0x1;if('insertion'==_0x3a57bd['type'])return _0x32839e['length']?{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26a7b4,'\x22'+_0x32839e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW',_0x26a7b4))};if('deletion'==_0x3a57bd['type'])return _0x32839e['length']?{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26a7b4,'\x22'+_0x32839e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_ROW',_0x26a7b4))};}if('tableColumn'==_0x3a57bd['subType']){const _0xc75833=_0x3a57bd['getItems']()['filter'](_0x5a45d8=>_0x5a45d8['is']('$textProxy'))['map'](_0x4d9db2=>_0x4d9db2['data']),_0x30d632=this['_getSuggestionCoords'](_0x3a57bd),_0x3186d4=_0x30d632['maxColumn']-_0x30d632['minColumn']+0x1;if('insertion'==_0x3a57bd['type'])return _0xc75833['length']?{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3186d4,'\x22'+_0xc75833['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x445816,'*Insert:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN',_0x3186d4))};if('deletion'==_0x3a57bd['type'])return _0xc75833['length']?{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3186d4,'\x22'+_0xc75833['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x445816,'*Remove:*\x20%0',Mt(_0x445816,'ELEMENT_TABLE_COLUMN',_0x3186d4))};}}),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x408813),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x408813),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a2f4c),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a2f4c),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1aaede),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1aaede),_0x3d151a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f388e),_0x3d151a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f388e);}_acceptFormatSuggestionCallbackFactory(){const _0x4b97b1=this['editor'],_0x2c4198=_0x4b97b1['model']['document']['selection'];return(_0x2b8d5f,_0x2d9a6a)=>{_0x4b97b1['model']['change'](_0x272a07=>{const {commandName:_0x18be58,commandParams:_0x52b208}=_0x2d9a6a;let _0x3698e4=_0x2b8d5f[0x0]['end']['nodeBefore'];_0x52b208&&_0x52b208[0x0]&&!0x1===_0x52b208[0x0]['forceValue']&&(_0x3698e4=_0x2b8d5f[0x0]['start']['nodeAfter']);const _0x1dc94a=_0x272a07['createRangeIn'](_0x3698e4);if('$graveyard'==_0x1dc94a['root']['rootName'])return;const _0x568352=Array['from'](_0x2c4198['getRanges']())['map'](_0xf2cb80=>rt['fromRange'](_0xf2cb80));_0x272a07['setSelection'](_0x1dc94a),_0x4b97b1['commands']['get'](_0x18be58)['refresh'](),_0x52b208['push']({'forceDefaultExecution':!0x0}),_0x4b97b1['execute'](_0x18be58,..._0x52b208);const _0x394b0a=_0x568352['filter'](_0x23759b=>'$graveyard'!=_0x23759b['root']['rootName']);_0x394b0a['length']>0x0&&_0x272a07['setSelection'](_0x394b0a);for(const _0x401a18 of _0x568352)_0x401a18['detach']();});};}_getCoordsForCells(_0x140a3e){const _0x989473=this['editor']['plugins']['get']('TableUtils');let _0x33af06=Number['MAX_SAFE_INTEGER'],_0x39db40=Number['MIN_SAFE_INTEGER'],_0x2418c7=Number['MAX_SAFE_INTEGER'],_0x576378=Number['MIN_SAFE_INTEGER'];for(const _0x55360d of _0x140a3e){if('$graveyard'==_0x55360d['root']['rootName'])continue;const {row:_0x508b3a,column:_0x3d38c1}=_0x989473['getCellLocation'](_0x55360d),_0x795c78=_0x55360d['hasAttribute']('rowspan')?_0x55360d['getAttribute']('rowspan')-0x1:0x0,_0x36268c=_0x55360d['hasAttribute']('colspan')?_0x55360d['getAttribute']('colspan')-0x1:0x0;_0x33af06=_0x508b3a<_0x33af06?_0x508b3a:_0x33af06,_0x39db40=_0x508b3a+_0x795c78>_0x39db40?_0x508b3a+_0x795c78:_0x39db40,_0x2418c7=_0x3d38c1<_0x2418c7?_0x3d38c1:_0x2418c7,_0x576378=_0x3d38c1+_0x36268c>_0x576378?_0x3d38c1+_0x36268c:_0x576378;}return{'minRow':_0x33af06,'maxRow':_0x39db40,'minColumn':_0x2418c7,'maxColumn':_0x576378};}_setupColumnsRowsFixing(){const _0x5e45c1=this['editor'],_0x14dbb8=_0x5e45c1['plugins']['get']('TrackChangesEditing'),_0x1cdcaf=_0x5e45c1['plugins']['get']('TableUtils');_0x5e45c1['model']['document']['on']('change:data',()=>{const _0x46763c=Array['from'](_0x5e45c1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42cf16,data:_0x1b768d}of _0x46763c){const {group:_0x4ead31,id:_0x2edcc3,subType:_0x3a2836}=tt(_0x42cf16);if('suggestion'!=_0x4ead31)continue;if(null!=_0x1b768d['oldRange'])continue;const _0x152827=_0x14dbb8['getSuggestion'](_0x2edcc3);this['_tablePostFixingSubtypes']['includes'](_0x3a2836)&&this['_tableSuggestions']['add'](_0x152827);}},{'priority':'low'});const _0x431ce1=(_0x2f9748,_0xe9cdb8)=>{let _0x2b92f5=!0x1;const _0x2e43c3=_0xe9cdb8['createRangeOn'](_0x2f9748),_0xb299c8=_0x2f9748['findAncestor']('table'),_0x39c6cb=_0x1cdcaf['getCellLocation'](_0x2f9748);for(const _0x328658 of this['_tableSuggestions']){const _0x8d5674=_0x328658['subType'],_0x33e69e=_0x8d5674['startsWith']('tablePaste'),_0x53417e=_0x8d5674['substr'](_0x33e69e?0xa:0x5),_0x18a8be=_0x53417e['toLowerCase'](),_0x46a9c7=_0x18a8be['substr'](0x0,0x3)+'span',_0x59e2b2='min'+_0x53417e,_0x361643='max'+_0x53417e;if(!_0x328658['isInContent'])continue;if(_0xb299c8!=_0x328658['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x328658['isIntersectingWithRange'](_0x2e43c3))continue;const _0x292ec9=_0x2f9748['hasAttribute'](_0x46a9c7)?_0x2f9748['getAttribute'](_0x46a9c7)-0x1:0x0,_0x939efd=this['_getSuggestionCoords'](_0x328658),_0x9ead1b=_0x939efd[_0x59e2b2],_0x45980e=_0x939efd[_0x361643];_0x9ead1b<=_0x39c6cb[_0x18a8be]&&_0x39c6cb[_0x18a8be]+_0x292ec9<=_0x45980e&&(_0x328658['addRange'](_0x2e43c3),_0x2b92f5=!0x0);}return _0x2b92f5;};_0x5e45c1['model']['document']['registerPostFixer'](_0x40f055=>{let _0x26fe16=!0x1;for(const _0x595ea7 of _0x5e45c1['model']['document']['differ']['getChanges']())if('insert'==_0x595ea7['type']){if('tableRow'==_0x595ea7['name']){for(const _0x589fd2 of _0x595ea7['position']['nodeAfter']['getChildren']())_0x26fe16=_0x26fe16||_0x431ce1(_0x589fd2,_0x40f055);}else'tableCell'==_0x595ea7['name']&&(_0x26fe16=_0x26fe16||_0x431ce1(_0x595ea7['position']['nodeAfter'],_0x40f055));}return _0x26fe16;});}_getSuggestionCoords(_0x36e0c1){return this['_getCoordsForCells'](_0x36e0c1['getRanges']()['map'](_0xf785d=>_0xf785d['start']['nodeAfter']));}};function Pe(_0x5c7268){return Array['from'](new Set(_0x5c7268)['values']());}var xe=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x2f1a16=this['editor'],_0x38aa15=_0x2f1a16['model']['document']['selection'],_0x55b725=_0x2f1a16['locale'];if(!_0x2f1a16['plugins']['has']('TableEditing'))return;const _0x4d2fc3=_0x2f1a16['plugins']['get']('TrackChangesEditing'),_0x4360f6=_0x2f1a16['plugins']['get']('TableUtils'),_0x555ad0=_0x2f1a16['plugins']['get'](Ue);_0x555ad0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d2fc3['enableCommand']('mergeTableCells',()=>{const _0x124621=_0x4360f6['getSelectionAffectedTableCells'](_0x2f1a16['model']['document']['selection']);_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat'](_0x124621,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f1a16['commands']['get']('mergeTableCells')['on']('execute',(_0x10c7bd,_0x1c3219)=>{_0x2f1a16['commands']['get']('trackChanges')['value']&&(_0x1c3219['length']>0x0&&_0x1c3219[_0x1c3219['length']-0x1]&&_0x1c3219[_0x1c3219['length']-0x1]['forceDefaultExecution']||_0x4d2fc3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x10c7bd['stop']());},{'priority':'highest'});for(const _0x243e07 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x47dad8=_0x2f1a16['commands']['get'](_0x243e07);_0x4d2fc3['enableCommand'](_0x243e07,()=>{const _0x312d98=_0x2f1a16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d5a51=>_0x2d5a51['is']('element','tableCell')),_0x5d18f5=_0x47dad8['value'];_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat']([_0x312d98,_0x5d18f5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x217e1f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5a0313=_0x2f1a16['commands']['get'](_0x217e1f);_0x4d2fc3['enableCommand'](_0x217e1f,()=>{const _0xaab927=_0x4360f6['getSelectionAffectedTableCells'](_0x2f1a16['model']['document']['selection']),_0x1e37d8=_0xaab927[0x0]['findAncestor']('table'),_0x4346d0=new Set();for(const _0x1c7717 of _0xaab927){const {column:_0x484d3c,row:_0x256d15}=_0x4360f6['getCellLocation'](_0x1c7717),_0x43105e='horizontally'==_0x5a0313['direction']?_0x4360f6['createTableWalker'](_0x1e37d8,{'startRow':_0x256d15,'endRow':_0x256d15,'includeAllSlots':!0x0}):_0x4360f6['createTableWalker'](_0x1e37d8,{'column':_0x484d3c,'includeAllSlots':!0x0});for(const {cell:_0x5e447a}of _0x43105e)_0x4346d0['add'](_0x5e447a);}_0x2f1a16['model']['change'](()=>{_0x4d2fc3['markMultiRangeBlockFormat'](_0xaab927,{'commandName':_0x217e1f,'commandParams':[]},Array['from'](_0x4346d0),_0x217e1f);});});}_0x4d2fc3['descriptionFactory']['registerDescriptionCallback'](_0x5945bf=>{if('formatBlock'!=_0x5945bf['type']&&'formatInline'!=_0x5945bf['type'])return;const {data:_0x33c4e8}=_0x5945bf;return _0x33c4e8&&'mergeTableCells'==_0x33c4e8['commandName']?{'type':'format','content':Mt(_0x55b725,'*Merge\x20cells*')}:void 0x0;}),_0x4d2fc3['descriptionFactory']['registerDescriptionCallback'](_0x5520da=>{if('formatBlock'!=_0x5520da['type']&&'formatInline'!=_0x5520da['type'])return;const {data:_0x150660}=_0x5520da;return _0x150660?'splitTableCellVertically'==_0x150660['commandName']?{'type':'format','content':Mt(_0x55b725,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x150660['commandName']?{'type':'format','content':Mt(_0x55b725,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39527e=_0x555ad0['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f2df5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f2df5,'accept',_0x39527e);for(const _0x346817 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x346817,'accept',_0x4b2e5e=>{_0x2f1a16['model']['change'](_0x40d9eb=>{const _0x2e17b5=Array['from'](_0x4b2e5e)['filter'](_0x225ec7=>'$graveyard'!=_0x225ec7['root']['rootName']&&!!_0x225ec7['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x2e17b5['length'])return;const _0x3e0271=Array['from'](_0x38aa15['getRanges']())['map'](_0x3669a7=>rt['fromRange'](_0x3669a7));_0x40d9eb['setSelection'](_0x2e17b5),_0x2f1a16['commands']['get'](_0x346817)['refresh'](),_0x2f1a16['execute'](_0x346817,{'forceDefaultExecution':!0x0});const _0x4b69ab=_0x3e0271['filter'](_0x18e24d=>'$graveyard'!=_0x18e24d['root']['rootName']);_0x4b69ab['length']>0x0&&_0x40d9eb['setSelection'](_0x4b69ab);for(const _0x110359 of _0x3e0271)_0x110359['detach']();});});_0x4d2fc3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16fae3=>{_0x2f1a16['model']['change'](_0x4fa058=>{const _0x4e9c2c=Array['from'](_0x38aa15['getRanges']())['map'](_0x1761fa=>rt['fromRange'](_0x1761fa));_0x4fa058['setSelection'](_0x16fae3),_0x2f1a16['commands']['get']('mergeTableCells')['refresh'](),_0x2f1a16['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1e14af=_0x4e9c2c['filter'](_0x52c98f=>'$graveyard'!=_0x52c98f['root']['rootName']);_0x1e14af['length']>0x0&&_0x4fa058['setSelection'](_0x1e14af);for(const _0x49a9da of _0x4e9c2c)_0x49a9da['detach']();});});for(const _0xf24875 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x33165e=_0x2f1a16['commands']['get'](_0xf24875);_0x33165e['on']('set:isEnabled',(_0x570c31,_0x3b0811,_0x3fa9c0)=>{if(_0x3fa9c0){const _0x1b636e=_0x2f1a16['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x7669f4=>_0x7669f4['is']('element','tableCell'));this['_areMergableCells'](_0x33165e['value'],_0x1b636e)||(_0x570c31['return']=!0x1,_0x570c31['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0xbbd189=this['editor']['commands']['get']('mergeTableCells'),_0x10a7bf=this['editor']['plugins']['get']('TableUtils');if(!_0xbbd189['isEnabled'])return!0x1;const _0x2a6578=_0x10a7bf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x7674e9 of _0x2a6578)for(const _0x1d44c1 of _0x2a6578)if(_0x7674e9!=_0x1d44c1&&!this['_areMergableCells'](_0x7674e9,_0x1d44c1))return!0x1;return!0x0;}['_areMergableCells'](_0x21b2c1,_0x1b89d3){const _0xcf840c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34756e=this['editor']['model']['createRangeOn'](_0x21b2c1),_0x123ecd=this['editor']['model']['createRangeOn'](_0x1b89d3),_0x3c6bbb=new Set(),_0x273467=new Set();for(const _0x2c43ef of _0xcf840c['getSuggestions']())if(('insertion'==_0x2c43ef['type']||'deletion'==_0x2c43ef['type']||'mergeTableCells'==_0x2c43ef['subType'])&&_0x2c43ef['isInContent']){for(const _0x9dc60 of _0x2c43ef['getRanges']())_0x9dc60['containsRange'](_0x34756e,!0x0)&&_0x3c6bbb['add'](_0x2c43ef['type']+':'+_0x2c43ef['author']['id']),_0x9dc60['containsRange'](_0x123ecd,!0x0)&&_0x273467['add'](_0x2c43ef['type']+':'+_0x2c43ef['author']['id']);}if(_0x3c6bbb['size']!=_0x273467['size'])return!0x1;for(const _0x17141d of _0x3c6bbb)if(!_0x273467['has'](_0x17141d))return!0x1;return!0x0;}},Ge=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x40a236=this['editor'];if(!_0x40a236['plugins']['has']('TableEditing'))return;const _0x3e4c0d=_0x40a236['locale'],_0x25e109=_0x40a236['plugins']['get']('TrackChangesEditing');_0x25e109['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e109['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e109['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x3e4c0d,'FORMAT_HEADER_ROW')),_0x25e109['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x3e4c0d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x313c81=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc4a885=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x313c81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc4a885),_0x313c81['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc4a885),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x28892a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ff9fd=this['editor']['plugins']['get']('TableUtils');function _0x3caa11({showActiveMarker:_0x238fee=!0x0,setDataAttribute:_0x4d6523=!0x0}={}){return(_0x56a39f,_0x350997,_0x3386a8)=>{const {type:_0x2aad8a,id:_0x11e5c8}=tt(_0x350997['markerName']);if(!_0x28892a['hasSuggestion'](_0x11e5c8))return;const _0x385ea8=_0x28892a['getSuggestion'](_0x11e5c8),_0x5272bd=_0x385ea8['data'];if('formatBlock'!=_0x385ea8['type']||!_0x5272bd||'setTableColumnHeader'!=_0x5272bd['commandName'])return;if(_0x350997['item'])return void _0x56a39f['stop']();if(!_0x3386a8['consumable']['consume'](_0x350997['markerRange'],_0x56a39f['name']))return;const _0x2c58f0=_0x350997['markerRange']['start']['nodeAfter'],_0x349692=_0x350997['markerRange']['end']['nodeBefore'],_0x43b62a=_0x2c58f0['parent']['parent'],{column:_0x2e1af6}=_0x1ff9fd['getCellLocation'](_0x2c58f0),{column:_0x18b83c}=_0x1ff9fd['getCellLocation'](_0x349692);for(let _0x5b86bb=_0x2e1af6;_0x5b86bb<=_0x18b83c;_0x5b86bb++){const _0x7a95d0=_0x1ff9fd['createTableWalker'](_0x43b62a,{'column':_0x5b86bb,'includeAllSlots':!0x1});for(const _0x1bc035 of _0x7a95d0){const _0x1d8e0e=_0x1bc035['cell'],_0x2696a7=_0x3386a8['mapper']['toViewElement'](_0x1d8e0e);_0x3386a8['writer']['addClass']('ck-suggestion-marker-'+_0x2aad8a,_0x2696a7),_0x4d6523&&_0x3386a8['writer']['setAttribute']('data-suggestion',_0x11e5c8,_0x2696a7),_0x3386a8['mapper']['bindElementToMarker'](_0x2696a7,_0x350997['markerName']),_0x238fee&&(_0x28892a['activeMarkers']['includes'](_0x350997['markerName'])?_0x3386a8['writer']['addClass']('ck-suggestion-marker--active',_0x2696a7):_0x3386a8['writer']['removeClass']('ck-suggestion-marker--active',_0x2696a7));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3caa11(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x243507,_0x1abb5e,_0x45b0ce)=>{_0x45b0ce['options']['showSuggestionHighlights']&&_0x3caa11({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243507,_0x1abb5e,_0x45b0ce);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x393634,_0x138f87,_0x4a0e88)=>{const {type:_0x5992c,id:_0x2f1c38}=tt(_0x138f87['markerName']);if(!_0x28892a['hasSuggestion'](_0x2f1c38))return;const _0x541b4d=_0x28892a['getSuggestion'](_0x2f1c38),_0x19c207=_0x541b4d['data'];if('formatBlock'!=_0x541b4d['type']||!_0x19c207||'setTableColumnHeader'!=_0x19c207['commandName'])return;const _0x16b3ab=_0x4a0e88['mapper']['markerNameToElements'](_0x138f87['markerName']);if(_0x16b3ab){for(const _0x663ee2 of _0x16b3ab)_0x4a0e88['writer']['removeClass']('ck-suggestion-marker-'+_0x5992c,_0x663ee2),_0x4a0e88['writer']['removeClass']('ck-suggestion-marker--active',_0x663ee2),_0x4a0e88['writer']['removeAttribute']('data-suggestion',_0x663ee2),_0x4a0e88['mapper']['unbindElementFromMarkerName'](_0x663ee2,_0x138f87['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x134ce0=this['editor'],_0x1af56b=_0x134ce0['locale'];function _0x1ce2f2(_0x34d3d6){return{'type':'format','content':Mt(_0x1af56b,'*Format:*\x20%0',_0x34d3d6)};}_0x134ce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9926=>{if('formatBlock'!=_0x3e9926['type'])return;const {data:_0x5d227e}=_0x3e9926;return _0x5d227e?'setTableRowHeader'==_0x5d227e['commandName']?_0x5d227e['commandParams'][0x0]['forceValue']?_0x1ce2f2(Mt(_0x1af56b,'FORMAT_HEADER_ROW')):_0x1ce2f2(Mt(_0x1af56b,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x5d227e['commandName']?_0x5d227e['commandParams'][0x0]['forceValue']?_0x1ce2f2(Mt(_0x1af56b,'FORMAT_HEADER_COLUMN')):_0x1ce2f2(Mt(_0x1af56b,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x110263=this['editor'];if(!_0x110263['plugins']['has']('TableEditing')||!_0x110263['config']['get']('table.enableFooters'))return;const _0x2f2315=_0x110263['locale'],_0x4b6dd0=_0x110263['plugins']['get']('TrackChangesEditing');_0x4b6dd0['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4b6dd0['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x2f2315,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5ba5d4{afterInit(){const _0x5044d4=this['editor'],_0x410f5e=_0x5044d4['locale'],_0x5e141b=_0x5044d4['plugins']['get']('TrackChangesEditing');function _0x329466(_0x3e7bab){return{'type':'format','content':''+Mt(_0x410f5e,'*Set\x20table\x20type:*\x20%0',_0x3e7bab)};}_0x5044d4['plugins']['has']('TableLayout')&&(_0x5e141b['enableCommand']('insertTableLayout'),_0x5e141b['enableDefaultAttributesIntegration']('tableType'),_0x5e141b['descriptionFactory']['registerElementLabel'](_0x4407cb=>_0x4407cb['is']('element','table')&&'layout'===_0x4407cb['getAttribute']('tableType'),_0x4a8df6=>Mt(_0x410f5e,'ELEMENT_LAYOUT_TABLE',_0x4a8df6)),_0x5e141b['descriptionFactory']['registerDescriptionCallback'](_0x3cf336=>{const {data:_0x7653ad}=_0x3cf336;if(_0x7653ad&&'tableType'==_0x7653ad['key'])switch(_0x7653ad['newValue']){case'layout':return _0x329466(Mt(_0x410f5e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x329466(Mt(_0x410f5e,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](We['map'](_0x20dadb=>[_0x20dadb,null]));var je=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0xe5ea9a=this['editor'];if(!_0xe5ea9a['plugins']['has']('TableClipboard'))return;const _0x2733a0=_0xe5ea9a['plugins']['get']('TrackChangesEditing'),_0x31d359=_0xe5ea9a['plugins']['get']('TableUtils'),_0x2a3646=_0xe5ea9a['plugins']['get'](Ue),_0x49becb=_0xe5ea9a['plugins']['get']('TableClipboard'),_0xf84366=_0xe5ea9a['plugins']['get']('TableSelection'),_0x17085e=_0xe5ea9a['plugins']['get'](gt);_0x2a3646['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xe5ea9a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xe5ea9a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d65bb=null,_0x4af2bc=!0x1;_0x17085e['on']('contentInsertion',(_0x73a8f0,_0x2bd253)=>{_0x4af2bc='paste'===_0x2bd253['method'];}),_0xe5ea9a['model']['on']('insertContent',(_0xc148a1,_0x4cc5c6)=>{if(!_0x4af2bc&&null===_0xf84366['getSelectedTableCells']())return;const [_0x65bf65,_0x47e8ae]=_0x4cc5c6,_0xe3d86e=_0x4cc5c6[_0x4cc5c6['length']-0x1];_0xe3d86e&&_0xe3d86e['forceDefaultExecution']||_0x2733a0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21b83d,_0x528657,_0x1e002c,_0x57b8b4,_0x4b3eb4){if(_0x528657&&!_0x528657['is']('documentSelection'))return!0x1;const _0x23c001=_0x4b3eb4['getTableIfOnlyTableInContent'](_0x21b83d,_0x1e002c);if(!_0x23c001||!Ke(_0x23c001,void 0x0,_0x57b8b4))return!0x1;const _0x4aba34=_0x57b8b4['getSelectionAffectedTableCells'](_0x1e002c['document']['selection']);if(!_0x4aba34['length'])return!0x1;const _0x8c006a=_0x4aba34[0x0]['findAncestor']('table'),_0x279072=_0x57b8b4['getRowIndexes'](_0x4aba34),_0x54e24f=_0x57b8b4['getColumnIndexes'](_0x4aba34),_0x1885f6={'startRow':_0x279072['first'],'endRow':_0x279072['last'],'startColumn':_0x54e24f['first'],'endColumn':_0x54e24f['last']};return 0x1==_0x4aba34['length']&&(_0x1885f6['endRow']+=_0x57b8b4['getRows'](_0x23c001)-0x1,_0x1885f6['endColumn']+=_0x57b8b4['getColumns'](_0x23c001)-0x1),Ke(_0x8c006a,_0x1885f6,_0x57b8b4);}(_0x65bf65,_0x47e8ae,_0xe5ea9a['model'],_0x31d359,_0x49becb)&&(_0xc148a1['stop'](),_0x1d65bb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xe5ea9a['model']['change'](()=>{_0xe5ea9a['model']['insertContent'](_0x4cc5c6[0x0],_0x4cc5c6[0x1],_0x4cc5c6[0x2],{'forceDefaultExecution':!0x0});const _0xd3213d=_0x38eda5(),{rowInsertionRanges:_0x97148a,columnInsertionRanges:_0x53cd6c,insertionRanges:_0x4cc46f,deletionRanges:_0x2c2d5a,cells:_0x47a62f}=_0x1d65bb;_0x97148a['length']&&_0x2733a0['markMultiRangeInsertion'](_0x97148a,'tablePasteRow',{'tablePasteChainId':_0xd3213d}),_0x53cd6c['length']&&_0x2733a0['markMultiRangeInsertion'](_0x53cd6c,'tablePasteColumn',{'tablePasteChainId':_0xd3213d}),_0x4cc46f['length']&&(_0x2733a0['markMultiRangeInsertion'](_0x4cc46f,'tablePaste',{'tablePasteChainId':_0xd3213d,'skipNestingCheck':!0x0}),_0x4cc46f['forEach'](_0x38bcd0=>_0x38bcd0['detach']?.())),_0x2c2d5a['length']&&(_0x2733a0['markMultiRangeDeletion'](_0x2c2d5a,'tablePaste',{'tablePasteChainId':_0xd3213d,'skipNestingCheck':!0x0}),_0x2c2d5a['forEach'](_0x46485a=>_0x46485a['detach']?.()));const _0x44269d=_0x2733a0['markMultiRangeBlockFormat'](_0x47a62f['map'](({element:_0x3ba526})=>_0x3ba526),{'formatGroupId':_0x38eda5()},[],'tablePasteCell',{'tablePasteChainId':_0xd3213d});if(_0x44269d){const _0x45fa6b=_0x44269d['getMarkers'](),_0xdcb923=[];for(const {element:_0x49b294,attributes:_0x592587}of _0x47a62f){if(!_0x592587)continue;const _0x2e2bee=_0xe5ea9a['model']['createRangeOn'](_0x49b294),_0x380a6e=_0x45fa6b['find'](_0x5d30a6=>_0x5d30a6['getRange']()['isEqual'](_0x2e2bee));_0x380a6e&&_0xdcb923['push']([_0x380a6e['name'],_0x592587]);}_0xdcb923['length']&&_0x44269d['setAttribute']('markerAttributes',Object['fromEntries'](_0xdcb923));}_0x1d65bb=null;}));},{'priority':_0x1f9ee9['high']+0xa}),_0x17085e['on']('contentInsertion',()=>{_0x4af2bc=!0x1;},{'priority':'lowest'}),_0xe5ea9a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ae46e,_0x3c3009)=>{const [_0x4d258d,_0x4d1829,,_0x443cc8]=_0x3c3009;if(!_0x1d65bb)return;_0x2ae46e['stop']();const _0x175fae=_0x4d258d['cell'],_0x3fea98=_0x4d1829,_0x282a40=ze(_0x175fae),_0x27b196=ze(_0x3fea98);_0x2ae46e['return']=_0x175fae;let _0x40289c=null,_0x5f4eb8=null;if(_0x27b196||_0x282a40){if(_0x282a40&&!_0x27b196){_0x443cc8['remove'](_0x175fae['getChild'](0x0));for(const _0x950957 of Array['from'](_0x3fea98['getChildren']()))_0x443cc8['insert'](_0x950957,_0x175fae,'end');const _0xf97c92=_0x1d65bb['rowInsertionIndexes']['includes'](_0x4d258d['row']),_0x5b3506=_0x1d65bb['columnInsertionIndexes']['includes'](_0x4d258d['column']);_0xf97c92||_0x5b3506||(_0x40289c=rt['fromRange'](_0x443cc8['createRangeIn'](_0x175fae)));}else _0x27b196&&!_0x282a40&&(_0x5f4eb8=_0x443cc8['createRangeIn'](_0x175fae));}else{const _0x2bcc11=_0x443cc8['createElement']('tableCellSuggestion'),_0x5d8a60=_0x443cc8['createElement']('tableCellSuggestion');_0x443cc8['wrap'](_0x443cc8['createRangeIn'](_0x175fae),_0x5d8a60),_0x443cc8['insert'](_0x2bcc11,_0x175fae,0x0);for(const _0x3910eb of Array['from'](_0x3fea98['getChildren']()))_0x443cc8['insert'](_0x3910eb,_0x2bcc11,'end');_0x40289c=rt['fromRange'](_0x443cc8['createRangeOn'](_0x2bcc11)),_0x5f4eb8=rt['fromRange'](_0x443cc8['createRangeOn'](_0x5d8a60));}const _0x36b939=Array['from'](_0x3fea98['getAttributes']())['filter'](([_0x48a02d])=>We['includes'](_0x48a02d));_0x1d65bb['cells']['push']({'element':_0x175fae,'attributes':_0x36b939['length']?Object['fromEntries'](_0x36b939):null}),_0x40289c&&_0x1d65bb['insertionRanges']['push'](_0x40289c),_0x5f4eb8&&_0x1d65bb['deletionRanges']['push'](_0x5f4eb8);},{'priority':'high'}),_0x31d359['on']('insertColumns',(_0x549840,_0x20741b)=>{const [_0xc4f653,_0x56f5a7={}]=_0x20741b;if(!_0x1d65bb)return;const _0x1fbe9f=_0x56f5a7['at']||0x0,_0x46c464=_0x56f5a7['columns']||0x1;_0x1d65bb['columnInsertionIndexes']=new Array(_0x46c464)['fill'](_0x1fbe9f)['map']((_0x5dee69,_0x292968)=>_0x5dee69+_0x292968);for(const {cell:_0x4011d4}of _0x31d359['createTableWalker'](_0xc4f653,{'startColumn':_0x1fbe9f,'endColumn':_0x1fbe9f+_0x46c464-0x1}))_0x1d65bb['columnInsertionRanges']['push'](_0xe5ea9a['model']['createRangeOn'](_0x4011d4));},{'priority':'low'}),_0x31d359['on']('insertRows',(_0x58f1d2,_0x5195ee)=>{const [_0x52267d,_0x221f3d={}]=_0x5195ee;if(!_0x1d65bb)return;const _0xed42b4=_0x221f3d['at']||0x0,_0x43b95c=_0x221f3d['rows']||0x1;_0x1d65bb['rowInsertionIndexes']=new Array(_0x43b95c)['fill'](_0xed42b4)['map']((_0x2efc20,_0x410708)=>_0x2efc20+_0x410708);for(const {cell:_0x5617d8}of _0x31d359['createTableWalker'](_0x52267d,{'startRow':_0xed42b4,'endRow':_0xed42b4+_0x43b95c-0x1}))_0x1d65bb['rowInsertionRanges']['push'](_0xe5ea9a['model']['createRangeOn'](_0x5617d8));},{'priority':'low'}),_0x2733a0['descriptionFactory']['registerDescriptionCallback'](_0x1357cf=>{if(_0x1357cf['subType']&&_0x1357cf['subType']['startsWith']('tablePaste'))return _0x1357cf['previous']?{}:{'type':'insertion','content':Mt(_0xe5ea9a['locale'],'*Replace\x20table\x20cells*')};});const _0x3cff1d=()=>!0x1;for(const _0x236276 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion',_0x236276,'join',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('deletion',_0x236276,'join',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x236276,'join',_0x3cff1d);_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3cff1d),_0x2733a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x468df1,_0x4fca03,_0x1c6c01)=>{const _0x1ae44d=_0x468df1['map'](_0x5ccdea=>_0x5ccdea['getContainedElement']())['filter'](_0x14bbba=>_0x14bbba),_0x4d5679=new Map(_0x1ae44d['map'](_0x44d583=>[_0x44d583,null]));if(_0x1d65bb){for(const {element:_0x252685,attributes:_0x29ce06}of _0x1d65bb['cells'])_0x29ce06&&_0x4d5679['set'](_0x252685,_0x29ce06);}else{if(_0x1c6c01&&_0x1c6c01['markerAttributes'])for(const [_0x1164c1,_0x4c6844]of Object['entries'](_0x1c6c01['markerAttributes'])){const _0x1d22a0=_0xe5ea9a['model']['markers']['get'](_0x1164c1),_0xd1d956=_0x1d22a0?_0x1d22a0['getRange']()['getContainedElement']():null;_0xd1d956&&_0x4d5679['set'](_0xd1d956,_0x4c6844);}}_0xe5ea9a['model']['change'](_0x17ef45=>{for(const [_0x2cc88a,_0x3ace31]of _0x4d5679)_0x17ef45['setAttributes']({...Ve,..._0x3ace31},_0x2cc88a);});});const _0x1ff941=(_0x194ba3,_0x22ed5f)=>{_0x2733a0['_suggestionFactory']['registerCustomCallback'](_0x194ba3,'tablePaste',_0x22ed5f,(_0x28d0e3,_0x1c4119,_0x172bec)=>{_0xe5ea9a['model']['change'](_0x118c50=>{const _0x42193a=[];for(const _0x4cd4bf of _0x28d0e3){const _0x3e004a=_0x4cd4bf['start']['nodeAfter'];_0x3e004a['is']('element','tableCellSuggestion')&&_0x42193a['push'](_0x3e004a);}_0x2733a0['_suggestionFactory']['getSuggestionCallback'](_0x194ba3,null,_0x22ed5f)(_0x28d0e3,_0x1c4119,_0x172bec);for(const _0xe2daa5 of _0x42193a)'$graveyard'!=_0xe2daa5['root']['rootName']&&_0x118c50['unwrap'](_0xe2daa5);});});};_0x1ff941('insertion','accept'),_0x1ff941('insertion','discard'),_0x1ff941('deletion','accept'),_0x1ff941('deletion','discard'),_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x170f7b=>{const _0x578730=_0x170f7b['map'](_0x5e4f8b=>_0x5e4f8b['getContainedElement']()),_0x364a3a=_0x578730[0x0]['findAncestor']('table'),{minRow:_0x85a545,maxRow:_0x3f8e48}=_0x2a3646['_getCoordsForCells'](_0x578730);_0x31d359['removeRows'](_0x364a3a,{'at':_0x85a545,'rows':_0x3f8e48-_0x85a545+0x1});}),_0x2733a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2eb0a1=>{const _0x1afa86=_0x2eb0a1['map'](_0xf07f72=>_0xf07f72['getContainedElement']()),_0x48a6d5=_0x1afa86[0x0]['findAncestor']('table'),{minColumn:_0xd2d0e6,maxColumn:_0x237d6c}=_0x2a3646['_getCoordsForCells'](_0x1afa86);_0x31d359['removeColumns'](_0x48a6d5,{'at':_0xd2d0e6,'columns':_0x237d6c-_0xd2d0e6+0x1});});const _0x36aba1=(_0x1a21b9,_0x33c602)=>{if(!_0x33c602['subType']||!_0x33c602['subType']['startsWith']('tablePaste'))return;const _0x15e262=_0x33c602['attributes']['tablePasteChainId'],_0x28b532=_0x2733a0['getSuggestions']()['filter'](_0x41d00e=>_0x41d00e['isInContent']&&_0x41d00e['attributes']&&_0x41d00e['attributes']['tablePasteChainId']==_0x15e262);_0x28b532['length']&&_0x33c602['getAllAdjacentSuggestions']()['length']!=_0x28b532['length']&&_0x28b532['reduce']((_0x5c99a7,_0x1155e8)=>(_0x5c99a7['next']=_0x1155e8,_0x1155e8['previous']=_0x5c99a7,_0x1155e8));};function _0x2abe0a(_0x506199,_0x212df1=!0x0){const {id:_0x5326e1,authorId:_0x4207f2}=tt(_0x506199['markerName']),_0x59a103=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2671a1=_0x2733a0['activeMarkers']['includes'](_0x506199['markerName']);return _0x2671a1&&_0x59a103['push']('ck-suggestion-marker--active'),{'classes':_0x59a103,'attributes':{'data-suggestion':_0x5326e1,'data-author-id':_0x4207f2},'priority':_0x2671a1&&_0x212df1?0xbc2:0xbb8};}_0x2733a0['on']('suggestionLoaded',_0x36aba1,{'priority':'high'}),_0x2733a0['on']('suggestionUnloaded',_0x36aba1,{'priority':'high'}),_0xe5ea9a['model']['document']['registerPostFixer'](()=>{let _0x1010fa=!0x1;const _0x5ae1ea=Array['from'](_0xe5ea9a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37ffd4,data:_0x5c9cec}of _0x5ae1ea){const {group:_0x50820e,type:_0x41267e,id:_0x345243}=tt(_0x37ffd4);if('suggestion'!=_0x50820e||'deletion'!=_0x41267e||_0x5c9cec['oldRange'])continue;if(!_0x2733a0['hasSuggestion'](_0x345243))continue;const _0x4e29c3=_0x2733a0['getSuggestion'](_0x345243)['getRanges'](),_0x168a44=_0xe5ea9a['plugins']['get']('Users')['me'];for(const _0x373799 of _0x2733a0['getSuggestions']())if(_0x373799['isInContent']&&_0x373799['author']==_0x168a44&&'formatBlock'==_0x373799['type']&&'tablePasteCell'==_0x373799['subType']&&_0x373799['getRanges']()['every'](_0x37914d=>_0x4e29c3['some'](_0x3a2bf0=>_0x3a2bf0['containsRange'](_0x37914d,!0x0)))){for(const _0x39300f of _0x373799['getAllAdjacentSuggestions']())_0x39300f['isInContent']&&(_0x39300f['discard'](),_0x1010fa=!0x0);}}return _0x1010fa;}),_0xe5ea9a['model']['document']['registerPostFixer'](_0x56e430=>{const _0x506c8c=_0xe5ea9a['commands']['get']('redo');if(!_0x506c8c||!_0x506c8c['_createdBatches']['has'](_0x56e430['batch']))return!0x1;let _0x19ae42=!0x1;const _0x11eb82=_0xe5ea9a['plugins']['get']('Users')['me'],_0x5949b3=_0xe5ea9a['model']['document']['differ']['getChanges'](),_0x970f17=Array['from'](_0xe5ea9a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2dc7d3,data:_0x169f23})=>{const {group:_0x29d24f,subType:_0x15a00d,authorId:_0x32d5a9}=tt(_0x2dc7d3);return'suggestion'==_0x29d24f&&'tablePaste'==_0x15a00d&&_0x32d5a9==_0x11eb82['id']&&!_0x169f23['oldRange'];});for(const _0x2262ba of _0x5949b3){if('insert'!=_0x2262ba['type']||'tableCellSuggestion'!=_0x2262ba['name']||0x1!=_0x2262ba['length'])continue;const _0x752001=_0x56e430['createRange'](_0x2262ba['position'],_0x2262ba['position']['getShiftedBy'](0x1));if(!_0x970f17['find'](({data:_0x48de30})=>_0x48de30['newRange']['isEqual'](_0x752001))){for(const {name:_0x487617,data:_0x585238}of _0x970f17)if(_0x752001['containsRange'](_0x585238['newRange'])){_0x56e430['updateMarker'](_0x487617,{'range':_0x752001}),_0x19ae42=!0x0;break;}}}return _0x19ae42;}),_0xe5ea9a['model']['document']['registerPostFixer'](_0x4cd797=>{let _0x1f388f=!0x1;const _0x3c6a0a=_0xe5ea9a['plugins']['get']('Users')['me'],_0x73a70=_0x2733a0['getSuggestions']()['filter'](_0xf0570=>_0xf0570['isInContent']&&_0xf0570['author']==_0x3c6a0a),_0x2aae06=new Set(),_0x2eff14=new Set();for(const _0x3d83e7 of _0x73a70)if('tablePaste'==_0x3d83e7['subType'])for(const _0x350aae of _0x3d83e7['getMarkers']()){const _0x2ce3bd=_0x350aae['getRange']()['getContainedElement']();if(_0x2ce3bd){if(_0x2ce3bd['is']('element','tableCellSuggestion')&&ze(_0x2ce3bd)){_0x3d83e7['removeMarker'](_0x350aae['name']),_0x2aae06['add'](_0x2ce3bd),_0x1f388f=!0x0;const _0x1b53eb=_0x2ce3bd['nextSibling'],_0x2909ed=_0x2ce3bd['previousSibling'],_0x32bbd4=_0x1b53eb&&_0x1b53eb['is']('element','tableCellSuggestion'),_0x2fbe2b=_0x2909ed&&_0x2909ed['is']('element','tableCellSuggestion');_0x32bbd4&&!_0x2aae06['has'](_0x1b53eb)&&_0x2eff14['add'](_0x1b53eb),_0x2fbe2b&&!_0x2aae06['has'](_0x2909ed)&&_0x2eff14['add'](_0x2909ed);}else _0x2ce3bd['is']('element','paragraph')&&_0x2ce3bd['isEmpty']&&(_0x3d83e7['removeMarker'](_0x350aae['name']),_0x1f388f=!0x0);}}else{if('tablePasteCell'==_0x3d83e7['subType']){if(!_0x3d83e7['attributes']||!_0x3d83e7['attributes']['tablePasteChainId'])continue;const _0x401da4=_0x3d83e7['attributes']['markerAttributes'];if(_0x401da4&&Object['keys'](_0x401da4)['length'])continue;const _0x528849=_0x3d83e7['attributes']['tablePasteChainId'];let _0x3932af=!0x0,_0x3a08ec=!0x0;for(const _0x3d4ce0 of _0x73a70)if(_0x3d4ce0['subType']&&_0x3d4ce0['subType']['startsWith']('tablePaste')){if(!_0x3d4ce0['attributes']['tablePasteChainId']){_0x3a08ec=!0x1;break;}if(_0x3d4ce0['id']!=_0x3d83e7['id']&&_0x3d4ce0['attributes']['tablePasteChainId']==_0x528849){_0x3932af=!0x1;break;}}_0x3a08ec&&_0x3932af&&(_0x3d83e7['removeMarkers'](),_0x1f388f=!0x0);}}for(const _0x384bba of _0x2aae06)_0x4cd797['remove'](_0x384bba);for(const _0x2756f4 of _0x2eff14)_0x4cd797['unwrap'](_0x2756f4);return _0x1f388f;}),_0xe5ea9a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3e13b1=>_0x2abe0a(_0x3e13b1),'converterPriority':'high'}),_0xe5ea9a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29b22f,_0x556dcd)=>_0x556dcd['options']['showSuggestionHighlights']?_0x2abe0a(_0x29b22f,!0x1):null,'converterPriority':'high'});const _0x33db91=_0xe5ea9a['editing']['view'];this['listenTo'](_0x33db91['document'],'clipboardOutput',(_0x4f69fd,_0x34821e)=>{const _0x4f146b=[];for(const _0x5ddead of _0x33db91['createRangeIn'](_0x34821e['content'])['getItems']())_0x5ddead['is']('element','suggestion-td')&&_0x4f146b['push'](_0x5ddead);_0x33db91['change'](_0x18ef1b=>{for(const _0x2bedde of _0x4f146b)_0x18ef1b['move'](_0x18ef1b['createRangeIn'](_0x2bedde),_0x18ef1b['createPositionBefore'](_0x2bedde)),_0x18ef1b['remove'](_0x2bedde);});});}};function ze(_0x20a8a5){if(_0x20a8a5['isEmpty'])return!0x0;const _0x53d2da=_0x20a8a5['getChild'](0x0);return _0x53d2da['is']('element','paragraph')&&_0x53d2da['isEmpty'];}function Ke(_0x26b8b3,_0x5453c5={},_0x36a6c6){for(const {isAnchor:_0x4f41a8,cellHeight:_0x376b6a,cellWidth:_0xcbab11}of _0x36a6c6['createTableWalker'](_0x26b8b3,{'includeAllSlots':!0x0,..._0x5453c5}))if(!_0x4f41a8||0x1!=_0x376b6a||0x1!=_0xcbab11)return!0x1;return!0x0;}var Xe=class extends _0x5ba5d4{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3cd99b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cd99b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3cd99b['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3cd99b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3cd99b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4bd508=_0x3cd99b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3cd99b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x573a04,_0x4e8a9e)=>{_0x4bd508(_0x573a04,_0x4e8a9e),this['_restoreCellWidths'](_0x573a04[0x0]['start']['nodeAfter'],_0x4e8a9e['commandParams'][0x0]['cellWidths']);}),_0x3cd99b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xde439,_0x1185b8){const _0x2896e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17aeca=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xa39aeb=_0x1185b8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x47959a=_0x17aeca['getColumnGroupElement'](_0xa39aeb);let _0x4dbe4e=_0x47959a?_0x17aeca['getTableColumnsWidths'](_0x47959a):null,_0x307d56=_0xa39aeb['getAttribute']('tableWidth')||null;const _0x15208b=_0x1185b8['tableWidth']||_0x307d56,_0x27c88f=_0x1185b8['columnWidths']||_0x4dbe4e;let _0x55863b=this['_getCellWidths'](_0xa39aeb);const _0xd27744=this['_foldResizeTableSuggestion'](_0xa39aeb);_0xd27744&&(_0x307d56=_0xd27744['tableWidth'],_0x4dbe4e=_0xd27744['columnWidths'],_0x55863b=_0xd27744['cellWidths']||_0x55863b),_0xde439({'table':_0xa39aeb,'tableWidth':_0x15208b,'columnWidths':_0x27c88f}),_0x2896e5['markBlockFormat'](_0xa39aeb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x307d56,'columnWidths':_0x4dbe4e,'cellWidths':_0x55863b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0xf3759e,_0x17208f={}){if(void 0x0===_0x17208f['value']||''===_0x17208f['value'])return void _0xf3759e(_0x17208f);const _0xd6c89d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3211dd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x20d499=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x17208f['batch']||(_0x17208f['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x17208f['batch'],()=>{const _0x3c89a4=_0x3211dd['getColumnGroupElement'](_0x20d499);let _0x501ee3=_0x3c89a4?_0x3211dd['getTableColumnsWidths'](_0x3c89a4):null,_0x64e876=_0x20d499['getAttribute']('tableWidth')||null,_0x18d511=this['_getCellWidths'](_0x20d499);const _0x442120=this['_foldResizeTableSuggestion'](_0x20d499,!0x0);_0x442120&&(_0x64e876=_0x442120['tableWidth'],_0x501ee3=_0x442120['columnWidths'],_0x18d511=_0x442120['cellWidths']||_0x18d511),_0xf3759e(_0x17208f),_0xd6c89d['markBlockFormat'](_0x20d499,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x64e876,'columnWidths':_0x501ee3,'cellWidths':_0x18d511}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x334473,_0x37b8a4=!0x1){const _0x46a7e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x339294=this['editor']['plugins']['get']('Users')['me'];for(const _0x53009f of _0x46a7e4['getSuggestions']({'skipNotAttached':!0x0})){const _0x4cc649=_0x53009f['getContainedElement']();if('resizeTable'===_0x53009f['subType']&&_0x4cc649===_0x334473){_0x53009f['author']!==_0x339294&&(_0x37b8a4?_0x53009f['removeMarkers']():_0x53009f['discard']());const _0x5d34a0=_0x53009f['data']['commandParams'];return{'tableWidth':_0x5d34a0[0x0]['tableWidth'],'columnWidths':_0x5d34a0[0x0]['columnWidths'],'cellWidths':_0x5d34a0[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x15ab12){const _0xe978e2=[];for(const _0x12a752 of _0x15ab12['getChildren']())if(_0x12a752['is']('element','tableRow')){for(const _0x7b08eb of _0x12a752['getChildren']())_0xe978e2['push'](_0x7b08eb['getAttribute']('tableCellWidth')||null);}return _0xe978e2;}_restoreCellWidths(_0x2cdce8,_0x540651){_0x540651&&this['editor']['model']['change'](_0x2677a2=>{let _0x5c5fe5=0x0;for(const _0x301c8e of _0x2cdce8['getChildren']())if(_0x301c8e['is']('element','tableRow'))for(const _0x267c64 of _0x301c8e['getChildren']()){const _0x23ebb2=_0x540651[_0x5c5fe5++];_0x23ebb2&&_0x2677a2['setAttribute']('tableCellWidth',_0x23ebb2,_0x267c64);}});}handleSuggestionDescription(_0x12f53f){if('formatBlock'!=_0x12f53f['type']&&'formatInline'!=_0x12f53f['type'])return;const {data:_0x4de247}=_0x12f53f;return _0x4de247&&'resizeTable'===_0x4de247['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5ba5d4{afterInit(){const _0x62a406=this['editor'];_0x62a406['plugins']['has']('Template')&&_0x62a406['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5ba5d4{afterInit(){const _0xbc3022=this['editor'];if(!_0xbc3022['commands']['get']('insertTableOfContents'))return;_0xbc3022['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42fee1=_0xbc3022['plugins']['get']('TrackChangesEditing'),_0x19880f=_0xbc3022['locale'];_0x42fee1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c9874=>Mt(_0x19880f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c9874));}},Qe=class extends _0x5ba5d4{afterInit(){const _0x1c261b=this['editor'];_0x1c261b['plugins']['has']('Title')&&(_0x1c261b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x1c261b['locale'],'ELEMENT_TITLE')),_0x1c261b['model']['document']['registerPostFixer'](_0x256f91=>{let _0x487b23=!0x1;const _0x131148=Array['from'](_0x1c261b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e5697,data:_0x1474bd}of _0x131148){const {group:_0x4d3c22}=tt(_0x4e5697);if('suggestion'!==_0x4d3c22||!_0x1474bd['newRange'])continue;const _0x5b559d=_0x1474bd['newRange'],_0x13df79=_0x5b559d['end']['nodeBefore'];if(!_0x13df79||!_0x13df79['is']('element','title-content'))continue;if(!_0x5b559d['start']['isTouching'](_0x5b559d['end']))continue;const _0x4a4ff1=_0x1c261b['model']['schema']['getNearestSelectionRange'](_0x5b559d['end'],'forward');if(_0x4a4ff1&&_0x4a4ff1['isCollapsed']){const _0x270e18=_0x256f91['createRange'](_0x5b559d['start'],_0x4a4ff1['start']);_0x270e18['isEqual'](_0x5b559d)||(_0x256f91['updateMarker'](_0x4e5697,{'range':_0x270e18}),_0x487b23=!0x0);}_0x487b23||(_0x256f91['removeMarker'](_0x4e5697),_0x487b23=!0x0);}return _0x487b23;}));}},Ze=class extends _0x5ba5d4{afterInit(){const _0x5118ad=this['editor'],_0x31575c=_0x5118ad['plugins']['get']('TrackChangesEditing');_0x5118ad['plugins']['has']('Uploadcare')&&(_0x31575c['enableCommand']('uploadcare'),_0x5118ad['plugins']['has']('UploadcareImageEdit')&&(_0x31575c['enableCommand']('uploadcareImageEdit'),_0x31575c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x31575c['descriptionFactory']['registerDescriptionCallback'](_0x4716d5=>{if('attribute'!=_0x4716d5['type'])return;const {data:_0x480311}=_0x4716d5;return _0x480311&&'uploadcareImageId'==_0x480311['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5ba5d4{afterInit(){const _0x435442=this['editor'],_0x3fc354=_0x435442['plugins']['get']('TrackChangesEditing');_0x435442['plugins']['has']('UndoEditing')&&(_0x3fc354['enableCommand']('undo'),_0x3fc354['enableCommand']('redo'));}},tn=class extends _0x5ba5d4{static get requires(){return[Ue];}afterInit(){const _0x16357c=this['editor'];_0x16357c['plugins']['has']('TableCaptionEditing')&&_0x16357c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5ba5d4{tableProperties;tableCellProperties;constructor(_0x3dea32){super(_0x3dea32),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 _0xd4a4d2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5876bd of this['tableProperties'])_0xd4a4d2['enableCommand'](_0x5876bd,(_0x247d01,_0x38f87c)=>{const _0x387ee0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5876bd,[_0x387ee0],this['tableProperties'],'tableProperties',_0x247d01,_0x38f87c);});_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd4a4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ee52a,_0x4f1ddc)=>this['handleDiscardAction'](this['tableProperties'],_0x2ee52a,_0x4f1ddc)),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3188d5 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3188d5)&&_0xd4a4d2['enableCommand'](_0x3188d5,(_0x2163a2,_0x47df2c)=>{const _0x402519=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3188d5,_0x402519,this['tableCellProperties'],'tableCellProperties',_0x2163a2,_0x47df2c);});_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd4a4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x115535,_0x4bc37a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x115535,_0x4bc37a)),_0xd4a4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xd4a4d2['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xd4a4d2['descriptionFactory']['registerDescriptionCallback'](_0x46dd18=>this['handleSuggestionDescription'](_0x46dd18)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x5e1edb,_0x395b4e,_0x4d3011,_0x579441,_0x299b35,_0x2a707f){const _0x4fa5b1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2a707f['batch'],()=>{for(const _0x33bd84 of _0x395b4e)if(this['_getSuggestion'](_0x33bd84,_0x579441))_0x299b35(_0x2a707f);else{const _0x237b92={};for(const _0x329e8a of _0x4d3011){const _0x56b86a=_0x33bd84['getAttribute'](_0x329e8a);void 0x0!==_0x56b86a&&(_0x237b92[_0x329e8a]=_0x56b86a);}const _0x30f239=this['_getResizedColumnWidths'](_0x33bd84);_0x30f239&&(_0x237b92['columnWidths']=_0x30f239),_0x299b35(_0x2a707f),_0x4fa5b1['markBlockFormat'](_0x33bd84,{'commandParams':[_0x237b92]},[],_0x579441);}});}handleDiscardAction(_0x327133,_0x1c6d31,_0x213c83){const _0x209b55=_0x1c6d31[0x0]['start']['nodeAfter'],_0x2215d6=_0x213c83['commandParams'][0x0];this['editor']['model']['change'](_0x471d92=>{for(const _0x292efd of _0x327133)void 0x0!==_0x2215d6[_0x292efd]?_0x471d92['setAttribute'](_0x292efd,_0x2215d6[_0x292efd],_0x209b55):_0x471d92['removeAttribute'](_0x292efd,_0x209b55);if(_0x2215d6['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x4112c4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x71812b=_0x4112c4['getColumnGroupElement'](_0x209b55);if(_0x71812b){const _0x5302e6=_0x4112c4['getTableColumnsWidths'](_0x71812b),_0x6f8e26=_0x209b55['getAttribute']('tableWidth');if(('string'==typeof _0x6f8e26&&_0x6f8e26['trim']()['endsWith']('px'))!==_0x5302e6['some'](_0x3d9cf5=>'string'==typeof _0x3d9cf5&&_0x3d9cf5['endsWith']('px'))){const _0x157987=_0x4112c4['getTableColumnElements'](_0x71812b);_0x2215d6['columnWidths']['forEach']((_0x527e22,_0x17af8a)=>{_0x157987[_0x17af8a]&&_0x471d92['setAttribute']('columnWidth',_0x527e22,_0x157987[_0x17af8a]);});}}}});}_getResizedColumnWidths(_0x1062cd){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x1062cd['is']('element','table'))return;const _0x52e18f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10dea0=_0x52e18f['getColumnGroupElement'](_0x1062cd);return _0x10dea0?_0x52e18f['getTableColumnsWidths'](_0x10dea0):void 0x0;}handleSuggestionDescription(_0x232313){if(_0x232313['data'])switch(_0x232313['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(_0x3e5da2,_0x246b4c){const _0x1921a6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4f7e74 of _0x1921a6['getSuggestions']({'skipNotAttached':!0x0})){const _0xc6c5cc=_0x4f7e74['getContainedElement']();if(_0x4f7e74['subType']===_0x246b4c&&_0xc6c5cc===_0x3e5da2)return _0x4f7e74;}return null;}_registerTablePropertiesAttributes(){const _0x10b3c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc7f6=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x44c76d of _0x2cc7f6){const _0x547d78=_0x44c76d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x10b3c9['descriptionFactory']['registerAttributeLabel'](_0x44c76d,Mt(this['editor']['locale'],'FORMAT_'+_0x547d78));}}},nn=class extends _0x5ba5d4{afterInit(){const _0x2fd671=this['editor'];if(!_0x2fd671['plugins']['has']('LineHeight'))return;const _0x502be6=_0x2fd671['plugins']['get']('TrackChangesEditing'),_0x319c7e=_0x2fd671['locale'];_0x502be6['enableDefaultAttributesIntegration']('lineHeight'),_0x502be6['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x319c7e,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x8313be){return'marker'==_0x8313be['type']&&_0x8313be['name']['startsWith']('$markedRemove');}function on(_0x576d63){return _0x576d63?[_0x576d63]:[];}var an=class extends _0x5ba5d4{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5efbfe,_0x5b8360,_0x5d6c79,_0x5b5e96,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(_0x263af7){super(_0x263af7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4418fe,_0x363a4c,_0x2542af,_0x1ba080)=>{this['_model']['change'](()=>{for(const _0x1102ba of[..._0x1ba080,..._0x2542af])this['_model']['markers']['has'](_0x1102ba)&&_0x263af7['editing']['reconvertMarker'](_0x1102ba);});}),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']=_0x263af7['plugins']['get'](_0x5efbfe),this['_suggestionsConversion']=_0x263af7['plugins']['get'](_0x5b8360),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x263af7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x263af7['config']['get']('trackChanges.trackFormatChanges'),_0x263af7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x263af7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x263af7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x289af5=this['editor'];_0x289af5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f3ba8,{writer:_0x2316e2})=>{let _0x129f41='suggestion:'+_0x4f3ba8['getAttribute']('suggestion-type')+':'+_0x4f3ba8['getAttribute']('id');return _0x4f3ba8['getAttribute']('marker-count')&&(_0x129f41+=':'+_0x4f3ba8['getAttribute']('marker-count')),_0x2316e2['createElement']('$marker',{'data-name':_0x129f41});}}),_0x289af5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x289af5['model']['document']['registerPostFixer'](_0x515baf=>{let _0x16eea0=!0x1;const _0x441d15=Array['from'](_0x289af5['model']['document']['differ']['getChangedMarkers']()),_0x5801b6=new Set();for(const {name:_0x4b7a10,data:_0x425359}of _0x441d15){const {group:_0x298dec,type:_0x171425,subType:_0x2a2f2f,id:_0xa64dc9}=tt(_0x4b7a10);if('suggestion'!==_0x298dec)continue;const _0x34078b=_0x2a2f2f?'suggestion:'+_0x171425+':'+_0x2a2f2f+':'+_0xa64dc9:'suggestion:'+_0x171425+':'+_0xa64dc9,_0x2f000e=_0x289af5['model']['markers']['getMarkersGroup'](_0x34078b),_0xee7df3=_0x289af5['model']['markers']['get'](_0x4b7a10),_0x5a17e4=this['_suggestions']['get'](_0xa64dc9);if(null!=_0x425359['newRange']){'formatInline'==_0x171425&&(_0x16eea0=_0x16eea0||dn(_0x425359['newRange'],_0x4b7a10,_0x515baf,_0x289af5['model']['schema']));const _0x2b38fa='attribute'==_0x171425&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x2a2f2f)),_0x278206='attribute'==_0x171425&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x2a2f2f));if(_0x425359['newRange']['isCollapsed']||'$graveyard'==_0x425359['newRange']['root']['rootName']||'formatBlock'==_0x171425&&!gn(_0x425359['newRange'])||_0x2b38fa&&!gn(_0x425359['newRange'])||_0x278206&&fn(_0x425359['newRange'])||'deletion'==_0x171425&&fn(_0x425359['newRange'])||_0xee7df3&&mn(_0xee7df3,_0x2f000e))_0x515baf['removeMarker'](_0x4b7a10),_0x16eea0=!0x0;else{if(!_0x5a17e4||!_0x5a17e4['isInContent'])continue;if(_0x425359['newRange']&&_0x425359['oldRange']&&_0x425359['newRange']['isEqual'](_0x425359['oldRange']))continue;_0x5801b6['add'](_0x5a17e4);}}}return _0x5801b6['size']>0x0&&(_0x16eea0=!!this['_joinWithAdjacentSuggestions'](_0x5801b6)||_0x16eea0),_0x16eea0;}),_0x289af5['model']['document']['registerPostFixer'](_0x4ab918=>{let _0x383b7f=!0x1;for(const _0x4576a0 of _0x289af5['model']['document']['differ']['getChanges']())if('insert'==_0x4576a0['type'])for(const _0x467e2c of this['_suggestions']['values']()){if(_0x467e2c['isMultiRange']||!_0x467e2c['isInContent'])continue;const _0xa813ad='formatBlock'==_0x467e2c['type'],_0x5dd2bb=this['_getAttributeKey'](_0x467e2c),_0x419dd6=_0x5dd2bb&&this['_suggestionsConversion']['isBlockAttribute'](_0x5dd2bb);if(!_0xa813ad&&!_0x419dd6)continue;const _0x4f9958=_0x467e2c['getFirstRange']();if(_0x4f9958['start']['parent']!=_0x4f9958['end']['parent']&&!_0x4f9958['end']['isAtEnd']){const _0x4b002c=_0x289af5['model']['createPositionAt'](_0x4f9958['start']['nodeAfter'],'end'),_0x5307b2=_0x289af5['model']['createRange'](_0x4f9958['start'],_0x4b002c);_0x4ab918['updateMarker'](_0x467e2c['getFirstMarker'](),{'range':_0x5307b2}),_0x383b7f=!0x0;}}return _0x383b7f;}),_0x289af5['model']['document']['registerPostFixer'](_0x5c161f=>this['_processAttributeChanges'](_0x5c161f)),_0x289af5['model']['document']['registerPostFixer'](_0x314a96=>!_0x314a96['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x314a96)),_0x289af5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x289af5['model']['document']['on']('change:data',(_0x3efadb,_0x50fbd4)=>{if(!_0x50fbd4['isLocal']||_0x50fbd4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5df203=_0x289af5['model']['document']['differ']['getChanges']();if(0x0==_0x5df203['length'])return;const _0x575886=[],_0x3403a4=_0x5df203['filter'](_0x1206e5=>'attribute'==_0x1206e5['type']),_0x5799a0=_0x5df203['filter'](_0x46596b=>'insert'==_0x46596b['type']&&'$text'!=_0x46596b['name']);for(const _0x2eb92d of _0x3403a4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x2eb92d['attributeKey'])&&_0x575886['push']({'key':_0x2eb92d['attributeKey'],'newValue':_0x2eb92d['attributeNewValue'],'oldValue':_0x2eb92d['attributeOldValue'],'range':En(_0x2eb92d['range'],_0x289af5['model'])});for(const _0x96bc88 of _0x5799a0){if('rename'!=_0x96bc88['action']&&'refresh'!=_0x96bc88['action'])continue;const _0x6be3ff=Tn(_0x96bc88['position']['nodeAfter'],_0x289af5['model']),_0x3a6446=_0x96bc88['before'];'rename'==_0x96bc88['action']&&_0x575886['push']({'key':sn,'newValue':_0x96bc88['name'],'oldValue':_0x3a6446['name'],'range':_0x6be3ff});for(const [_0x38b889,_0x4c5557]of _0x3a6446['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x38b889))continue;const _0x4ee15a=_0x96bc88['attributes']['get'](_0x38b889);_0x4c5557!==_0x4ee15a&&_0x575886['push']({'key':_0x38b889,'newValue':_0x4ee15a,'oldValue':_0x4c5557,'range':_0x6be3ff});}for(const [_0x2752b6,_0x35717a]of _0x96bc88['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2752b6)&&(_0x3a6446['attributes']['has'](_0x2752b6)||_0x575886['push']({'key':_0x2752b6,'newValue':_0x35717a,'oldValue':null,'range':_0x6be3ff}));}0x0!=_0x575886['length']&&_0x289af5['model']['enqueueChange'](_0x50fbd4,_0x5e5c6d=>{const _0x59bedf=_0x38eda5();for(const {range:_0x5bf45f,key:_0x3357db,oldValue:_0x58ca48,newValue:_0x10a9d2}of _0x575886)this['markAttributeChange'](_0x5bf45f,_0x3357db,_0x58ca48,_0x10a9d2,{'groupId':_0x59bedf});this['_reduceExistingSuggestions'](_0x5e5c6d,_0x575886);});},{'priority':'lowest'}),_0x289af5['model']['markers']['on']('update:suggestion',(_0x2d062a,_0xd496b3,_0x9f4772)=>{if(null==_0x9f4772){const {id:_0x590b7d}=tt(_0xd496b3['name']),_0x310718=this['_suggestions']['get'](_0x590b7d);_0x310718&&_0x310718['addMarkerName'](_0xd496b3['name']);}}),_0x289af5['model']['document']['on']('change:data',()=>{const _0x144983=Array['from'](_0x289af5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x468c9a=>'suggestion'===tt(_0x468c9a['name'])['group']);if(0x0===_0x144983['length'])return;_0x144983['sort']((_0x1267d4,_0x4d7e87)=>{const _0x4862e4=_0x1267d4['data']['oldRange'],_0x317146=_0x4d7e87['data']['oldRange'];return null===_0x4862e4&&null===_0x317146?0x0:null===_0x4862e4&&null!==_0x317146?-0x1:null!==_0x4862e4&&null===_0x317146?0x1:_0x4862e4['start']['isBefore'](_0x317146['start'])?-0x1:0x1;});const _0x54360a=new Set(),_0x30784f=new Set();for(const {name:_0x180868,data:_0x498fcd}of _0x144983){const {id:_0x32f472}=tt(_0x180868);if(null===_0x498fcd['oldRange']){const _0x1a4cd0=this['_handleNewSuggestionMarker'](_0x180868);_0x30784f['add'](_0x1a4cd0);}else{const _0x2738c3=this['_suggestions']['get'](_0x32f472);null!==_0x498fcd['newRange']||_0x2738c3['isInContent']?(_0x54360a['add'](_0x2738c3['head']),_0x30784f['add'](_0x2738c3)):this['_removeSuggestion'](_0x2738c3);}}_0x30784f['size']>0x0&&this['_refreshSuggestionsChain'](_0x30784f);for(const _0x47d056 of _0x54360a)this['fire']('suggestionChanged',_0x47d056);}),_0x289af5['model']['on']('applyOperation',(_0x3c445e,_0x466a59)=>{const _0x26a968=_0x466a59[0x0];if(!this['_suggestions']['size'])return;if(!_0x26a968['isDocumentOperation'])return;if(_0x26a968['batch']['isUndo']||!_0x26a968['batch']['isLocal'])return;let _0x57528b,_0x2627bf;switch(_0x26a968['type']){case'insert':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['position']),_0x2627bf=_0x57528b['getShiftedBy'](_0x26a968['howMany']);break;case'split':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['splitPosition']),_0x2627bf=_0x289af5['model']['createPositionAt'](_0x26a968['moveTargetPosition']);break;case'move':_0x57528b=_0x289af5['model']['createPositionAt'](_0x26a968['targetPosition']),_0x2627bf=_0x57528b['getShiftedBy'](_0x26a968['howMany']);break;default:return;}const _0x4ab180=_0x289af5['model']['createRange'](_0x57528b,_0x2627bf);_0x289af5['model']['change'](()=>{for(const {suggestion:_0x395b77,meta:_0x96885}of this['_findSuggestions'](_0x4ab180)){if(_0x395b77['isMultiRange'])continue;if('formatInline'==_0x395b77['type'])continue;const _0xab8003=this['_getAttributeKey'](_0x395b77);if(_0xab8003&&this['_suggestionsConversion']['isBlockAttribute'](_0xab8003)&&'split'!=_0x26a968['type'])continue;const _0x4c7a13=_0x395b77['data']&&_0x395b77['data']['multipleBlocks'];('formatBlock'!=_0x395b77['type']||'split'==_0x26a968['type']&&!_0x4c7a13)&&(_0x96885['containsRangeInObject']||'insertion'==_0x395b77['type']&&_0x96885['isOwn']||_0x395b77['getFirstRange']()['containsRange'](_0x4ab180)&&this['_breakSuggestionMarker'](_0x395b77,_0x57528b,_0x2627bf));}});},{'priority':'lowest'}),_0x289af5['model']['on']('deleteContent',(_0x57957a,_0x4dbb54)=>{const _0x65f16d=_0x4dbb54[0x0],_0x52cd39=_0x4dbb54[0x1];if(_0x52cd39&&_0x52cd39['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x65f16d['isCollapsed'])return;const _0x3de587=_0x289af5['model']['schema'],{start:_0x138a67,end:_0x390781}=_0x65f16d['getFirstRange'](),_0x4e03cd=_0x138a67['nodeAfter']&&_0x3de587['isLimit'](_0x138a67['nodeAfter'])?null:_0x3de587['getNearestSelectionRange'](_0x138a67,'forward'),_0x333a5e=_0x390781['nodeBefore']&&_0x3de587['isLimit'](_0x390781['nodeBefore'])?null:_0x3de587['getNearestSelectionRange'](_0x390781,'backward'),_0x34fe6b=_0x289af5['model']['createRange'](_0x4e03cd?_0x4e03cd['start']:_0x138a67,_0x333a5e?_0x333a5e['end']:_0x390781);_0x289af5['model']['change'](_0x23cd1e=>{this['markDeletion'](_0x34fe6b);const _0x1c0a8d=_0x289af5['model']['schema']['getNearestSelectionRange'](_0x34fe6b['start']);_0x65f16d['is']('documentSelection')?_0x23cd1e['setSelection'](_0x1c0a8d):_0x65f16d['setTo'](_0x1c0a8d);}),_0x57957a['stop']();},{'priority':_0x1f9ee9['normal']+0xa}),_0x289af5['model']['on']('insertContent',(_0x26b6a6,_0x2278db)=>{const _0x5b954c=_0x2278db[_0x2278db['length']-0x1];_0x5b954c&&_0x5b954c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x289af5['model']['change'](()=>{let _0x45832f=_0x289af5['model']['insertContent'](_0x2278db[0x0],_0x2278db[0x1],_0x2278db[0x2],{'forceDefaultExecution':!0x0});if(!_0x45832f)return;_0x26b6a6['return']=_0x45832f['clone']();const _0x239fe9=_0x45832f['end']['nodeBefore'],_0x1d8c84=_0x289af5['model']['schema'];_0x239fe9&&_0x1d8c84['isBlock'](_0x239fe9)&&!_0x1d8c84['isObject'](_0x239fe9)&&(_0x45832f=_0x289af5['model']['createRange'](_0x45832f['start'],_0x289af5['model']['createPositionAt'](_0x239fe9,'end'))),this['markInsertion'](_0x45832f);}),_0x26b6a6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf3008=new _t(_0x289af5,this['_suggestions']);_0x289af5['commands']['add']('acceptSuggestion',_0xf3008),this['enableCommand']('acceptSuggestion');const _0x5bd809=new pt(_0x289af5,this['_suggestions']);_0x289af5['commands']['add']('discardSuggestion',_0x5bd809),this['enableCommand']('discardSuggestion'),_0x289af5['commands']['add']('acceptAllSuggestions',new Rt(_0x289af5,_0xf3008,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x289af5['commands']['add']('discardAllSuggestions',new Rt(_0x289af5,_0x5bd809,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x289af5['commands']['add']('acceptSelectedSuggestions',new yt(_0x289af5,_0xf3008,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x289af5['commands']['add']('discardSelectedSuggestions',new yt(_0x289af5,_0x5bd809,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d32c5=_0x289af5['plugins']['get'](_0x5efbfe);this['listenTo'](_0x5d32c5,'addComment',(_0x5a86ab,{threadId:_0x1eb109})=>{const _0x42c3fc=this['_suggestions']['get'](_0x1eb109);_0x42c3fc&&_0x42c3fc['commentThread']&&0x1===_0x42c3fc['commentThread']['length']&&this['_updateSuggestionData'](_0x1eb109,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d32c5,'removeComment',(_0x1246bd,{threadId:_0x5e84a4})=>{const _0x292d9e=this['_suggestions']['get'](_0x5e84a4);_0x292d9e&&_0x292d9e['commentThread']&&!_0x292d9e['commentThread']['length']&&this['_updateSuggestionData'](_0x5e84a4,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x24ad14){const _0x40bb60='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x3e98d3=0x79650,_0x5046a4={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x62c16c(_0x1b144e){const _0x24f13f=new window['Promise'](_0x3579bb=>{_0x1b144e['once']('ready',_0x3579bb);}),_0x5537f1=window['Date']['now'](),_0x3c2583=_0x1b144e['config']['get']('licenseKey');async function _0xe5dedd(){let _0x2a63ff,_0x47b2e4=null,_0xdb44ce=null;try{return'GPL'==_0x3c2583?'NotAllowed':(_0x2a63ff=_0x3b5fa5(),_0x2a63ff?(_0x2a63ff['usageEndpoint']&&(_0xdb44ce=_0x550abf(_0x2a63ff['usageEndpoint'],_0x2a63ff['jti'])),await _0x288873()?_0x5774bc()?_0x17b132()?'Expired':_0x3ed8b3()?('evaluation'==_0x2a63ff['licenseType']&&(_0x47b2e4=_0x3aaac3('EvaluationLimit')),await _0xd9193a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x17b132(){const _0x7aa148=['evaluation','trial']['includes'](_0x2a63ff['licenseType'])?_0x5537f1/0x3e8:0xe10*_0x3e98d3;return _0x2a63ff['exp']<_0x7aa148;}function _0x5774bc(){const _0x1060b5=_0x2a63ff['features'];if(!_0x1060b5)return!0x1;if(_0x1060b5['includes']('*'))return!0x0;if(_0x1060b5['includes']('TC'))return!0x0;if(_0x1060b5['includes']('RTC')){if(_0x3afa55())return!0x0;if(_0x26be2e()||_0xe9ac29())return!0x0;}return!0x1;}function _0x3ed8b3(){const _0x2bd5d6=_0x2a63ff['licensedHosts'];if(!_0x2bd5d6||0x0==_0x2bd5d6['length'])return!0x0;const {hostname:_0x3af902}=new URL(window['location']['href']);if(_0x2bd5d6['includes'](_0x3af902))return!0x0;const _0x4f7478=_0x3af902['split']('.');return _0x2bd5d6['filter'](_0x1f165e=>_0x1f165e['includes']('*'))['map'](_0x2d2353=>_0x2d2353['split']('.'))['filter'](_0xb3bdf4=>_0xb3bdf4['length']<=_0x4f7478['length'])['map'](_0x409319=>Array(_0x4f7478['length']-_0x409319['length'])['fill']('*'===_0x409319[0x0]?'*':'')['concat'](_0x409319))['some'](_0x5d7d21=>_0x4f7478['every']((_0x11d8f1,_0x290520)=>_0x5d7d21[_0x290520]===_0x11d8f1||'*'===_0x5d7d21[_0x290520]));}function _0xd9193a(){return _0x47b2e4&&_0xdb44ce?new window['Promise']((_0x25fecb,_0x4ea3c3)=>{_0x47b2e4['then'](_0x25fecb,_0x4ea3c3),_0xdb44ce['then'](_0x493268=>{'Valid'!=_0x493268&&_0x25fecb(_0x493268);},_0x4ea3c3);}):_0x47b2e4||_0xdb44ce||'Valid';}}function _0x550abf(_0x2145ba,_0x201744){return new window['Promise'](_0x1bf833=>{if(_0x5986e4())return _0x1bf833('Valid');_0x5073d9(),_0x1b144e['decorate']('_sendUsageRequest');let _0x3f66e5=!0x1;const _0x4123cc=_0x38eda5();function _0xda999b(_0x21580d){return!!_0x21580d&&('object'==typeof _0x21580d||'function'==typeof _0x21580d)&&'function'==typeof _0x21580d['then']&&'function'==typeof _0x21580d['catch'];}function _0x47ff0c(_0x25d0a6){_0x27775f(_0x25d0a6)['then'](_0x4a74c2=>_0x4a74c2&&'ok'==_0x4a74c2['status']?_0x42ccba(_0xd4f62(_0x4123cc+_0x201744))!=_0x4a74c2['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x233bf9=>(_0x33b895(),_0x233bf9),()=>{const _0x202b10=_0x3831d8();return null==_0x202b10?(_0x33b895(),'Valid'):_0x5537f1-_0x202b10>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1bf833)['catch'](()=>{_0x1bf833('UsageLimit');});const _0x338b82=0x36ee80;function _0x33b895(){const _0x1ca5bd='llct-'+_0x42ccba(_0xd4f62(_0x2145ba)),_0x1febdf=_0xdaec09(_0x42ccba(window['Math']['ceil'](_0x5537f1/_0x338b82)));window['localStorage']['setItem'](_0x1ca5bd,_0x1febdf);}function _0x3831d8(){const _0x43cef0='llct-'+_0x42ccba(_0xd4f62(_0x2145ba)),_0x66b352=window['localStorage']['getItem'](_0x43cef0);return _0x66b352?window['parseInt'](_0xdaec09(_0x66b352),0x10)*_0x338b82:null;}function _0x27775f(_0x13517){return new window['Promise']((_0x4c1e81,_0x1180cb)=>{_0x13517['then'](_0x4c1e81,_0x1180cb),window['setTimeout'](_0x1180cb,0x1d4c0);});}}_0x1b144e['on']('_sendUsageRequest',(_0x54ae1f,_0x3fa49d)=>{if(_0x3fa49d[0x0]!=_0x2145ba)return _0x1bf833('UsageLimit');_0x3fa49d[0x1]={..._0x3fa49d[0x1],'requestId':_0x4123cc};},{'priority':'high'}),_0x1b144e['on']('_sendUsageRequest',_0x2f4ca9=>{_0xda999b(_0x2f4ca9['return'])&&(_0x3f66e5=!0x0,_0x47ff0c(_0x2f4ca9['return']));},{'priority':'low'}),_0x24f13f['then'](()=>{_0x3f66e5||_0x1bf833('UsageLimit');});});function _0x5986e4(){return'auto'==_0x1b144e['editing']['view']['_overlayModeHint'];}function _0x5073d9(){_0x1b144e['editing']['view']['_overlayModeHint']='auto';}}function _0x3aaac3(_0x2c4d05){const _0x10638d=[new window['Promise'](_0x47adb=>setTimeout(_0x47adb,0x93ecc)),_0x24f13f['then'](()=>new window['Promise'](_0x407793=>{let _0x240d36=0x0;_0x1b144e['model']['on']('applyOperation',(_0x283083,_0x326477)=>{_0x326477[0x0]['isDocumentOperation']&&_0x240d36++,0x5e8==_0x240d36&&(_0x407793(),_0x283083['off']());});}))];return window['Promise']['race'](_0x10638d)['then'](()=>_0x2c4d05);}async function _0x1ebd12(){await _0x24f13f,_0x1b144e['model']['change']=_0xf009ee,_0x1b144e['model']['enqueueChange']=_0xf009ee,_0x1b144e['enableReadOnlyMode']('model');}function _0x3afa55(){return _0x488dda('WebSocketGateway')&&'connected'==_0x4ce4f7('WebSocketGateway')['state'];}function _0x26be2e(){return _0x488dda('RevisionViewerIntegration');}function _0xe9ac29(){return _0x488dda('TrackChangesDataGetter');}function _0x3e5d00(_0x4043c4){const _0x1f2678=_0x2c84dc();_0x1b144e[_0x1f2678]='trackChangesLicenseKey'+_0x4043c4,'Valid'!=_0x4043c4&&_0x1ebd12();}function _0x2c84dc(){const _0x37bbb7=window['String'](window['performance']['now']())['replace']('.','');let _0x51fcf9='U';for(let _0x3db5c4=0x0;_0x3db5c4<_0x37bbb7['length'];_0x3db5c4+=0x2){let _0x2e320=window['parseInt'](_0x37bbb7['substring'](_0x3db5c4,_0x3db5c4+0x2));_0x2e320>=0x3e&&(_0x2e320-=0x3e),_0x51fcf9+=_0x40bb60[_0x2e320];}return _0x51fcf9;}function _0x3b5fa5(){const _0x2d4afe=_0x3c2583['split']('.');if(0x3!=_0x2d4afe['length'])return null;return _0x57285c(_0x2d4afe[0x1]);function _0x57285c(_0x2df9b2){const _0x410974=_0x3c35d3(_0x2df9b2);return _0x410974&&_0x16cc56()?_0x410974:null;function _0x16cc56(){const _0x3cda9d=_0x410974['jti'],_0x2f3e8d=window['parseInt'](_0x3cda9d['substring'](_0x3cda9d['length']-0x8),0x10),_0x2c8e54={..._0x410974,'jti':_0x3cda9d['substring'](0x0,_0x3cda9d['length']-0x8)};return delete _0x2c8e54['vc'],_0xd4f62(_0x2c8e54)==_0x2f3e8d;}}}async function _0x288873(){let _0x3a62bf=!0x0;try{const [_0x5f3270,_0x4622d4,_0x132d29]=_0x3c2583['split']('.');return _0x407490(_0x5f3270),await _0x557e70(_0x5f3270,_0x4622d4,_0x132d29),_0x3a62bf;}catch{return!0x1;}function _0x407490(_0x262c5b){const _0x354620=_0x3c35d3(_0x262c5b);_0x354620&&'ES256'==_0x354620['alg']||(_0x3a62bf=!0x1);}async function _0x557e70(_0xa3b5d5,_0x18c65b,_0x5ba4e6){const _0xe84a50=window['Uint8Array']['from'](_0x2a09ef(_0x5ba4e6),_0x2fb357=>_0x2fb357['charCodeAt'](0x0)),_0x1f547e=new window['TextEncoder']()['encode'](_0xa3b5d5+'.'+_0x18c65b),_0x11fadc=window['crypto']['subtle'];if(!_0x11fadc)return;const _0x3b8ede=await _0x11fadc['importKey']('jwk',_0x5046a4,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x11fadc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3b8ede,_0xe84a50,_0x1f547e)||(_0x3a62bf=!0x1);}}function _0x3c35d3(_0x51f909){return _0x51f909['startsWith']('ey')?JSON['parse'](_0x2a09ef(_0x51f909)):null;}function _0x2a09ef(_0x4bc4bd){return window['atob'](_0x4bc4bd['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xd4f62(_0x329aad){let _0x57e072=0x1505;function _0x383091(_0x22a35c){for(let _0x9b3bb4=0x0;_0x9b3bb4<_0x22a35c['length'];_0x9b3bb4++){const _0x4c600b=_0x22a35c['charCodeAt'](_0x9b3bb4);_0x57e072=(_0x57e072<<0x5)+_0x57e072+_0x4c600b,_0x57e072&=_0x57e072;}}function _0x318b5a(_0x448cbe){Array['isArray'](_0x448cbe)?_0x448cbe['forEach'](_0x318b5a):_0x448cbe&&'object'==typeof _0x448cbe?Object['entries'](_0x448cbe)['sort']()['forEach'](([_0x2f042a,_0x46904e])=>{_0x383091(_0x2f042a),_0x318b5a(_0x46904e);}):_0x383091(window['String'](_0x448cbe));}return _0x318b5a(_0x329aad),_0x57e072>>>0x0;}function _0x42ccba(_0x2f1c01){return _0x2f1c01['toString'](0x10)['padStart'](0x8,'0');}function _0xdaec09(_0x3b608d){return _0x3b608d['split']('')['reverse']()['join']('');}function _0x488dda(_0x471824){return _0x1b144e['plugins']['has'](_0x471824);}function _0x4ce4f7(_0x1cd698){return _0x1b144e['plugins']['get'](_0x1cd698);}function _0xf009ee(){}_0x3e5d00(await _0xe5dedd());}_0x62c16c(_0x24ad14['editor']);}(this);}set adapter(_0x462429){if(this['_adapter'])throw new _0x478e8c('track-changes-adapter-already-set',this);this['_adapter']=_0x462429;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x5aba2d=!0x1,toJSON:_0x2cac9e=!0x1}={}){const _0x4212f5=[];for(const _0x300eab of this['_suggestions']['values']())_0x5aba2d&&!_0x300eab['isInContent']||_0x4212f5['push'](_0x300eab);return _0x2cac9e?_0x4212f5['map'](_0xb37c0=>_0xb37c0['toJSON']()):_0x4212f5;}getSuggestion(_0x57d3d5){const _0x595a7e=this['_suggestions']['get'](_0x57d3d5);if(!_0x595a7e)throw new _0x478e8c('track-changes-suggestion-not-found',this);return _0x595a7e;}hasSuggestion(_0x12f185){return this['_suggestions']['has'](_0x12f185);}addSuggestionData(_0x204f70){const {authorId:_0x40292f,id:_0xb57f92,originalSuggestionId:_0xb5eb5a,attributes:_0x5817f6}=_0x204f70,[_0x47fc6c,_0x314e28]=_0x204f70['type']['split'](':'),_0x25f022=this['_suggestions']['get'](_0xb57f92)||this['_createSuggestion'](_0x47fc6c,_0x314e28,_0xb57f92,_0x40292f,_0x5817f6,_0xb5eb5a);if(this['_addThreadToSuggestion'](_0x25f022),this['_checkSuggestionCorrectness'](_0x25f022,_0x47fc6c,_0x314e28||null,_0x40292f),_0x25f022['createdAt']=_0x204f70['createdAt'],_0x25f022['_isDataLoaded']=!0x0,_0x5817f6&&_0x5817f6['@external']){const _0x5b6dc7=_0x5817f6['@external'],_0x1b5392=this['_getExternalAuthor'](_0x5b6dc7['authorName']);_0x25f022['authoredAt']=_0x5b6dc7['createdAt'],_0x25f022['author']=_0x1b5392;}else _0x25f022['authoredAt']=_0x204f70['createdAt'];switch(_0x204f70['data']&&(_0x25f022['data']=_0x204f70['data']),_0x204f70['attributes']&&(_0x25f022['attributes']=_0x204f70['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x25f022['_saved']=!0x0),this['_suggestionState']['get'](_0x25f022)){case'notReady':this['_suggestionState']['set'](_0x25f022,'dataReady');break;case'markerReady':_0x25f022['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x25f022])),this['_refreshSuggestionsChain'](new Set([_0x25f022])),this['_suggestionState']['set'](_0x25f022,'ready'),this['fire']('suggestionLoaded',_0x25f022)):this['_suggestionState']['set'](_0x25f022,'removed');}return _0x25f022;}acceptSuggestion(_0x1b3a27){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5722f3 of _0x1b3a27['getAllAdjacentSuggestions']())_0x5722f3['accept']();});});}discardSuggestion(_0xb6118){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37dab9 of _0xb6118['getAllAdjacentSuggestions']())_0x37dab9['discard']();});});}['enableCommand'](_0x3505b1,_0x513d2c){const _0x5b7878=this['editor']['commands']['get'](_0x3505b1);if(!_0x5b7878)throw new _0x478e8c('track-changes-command-not-found',this,{'commandName':_0x3505b1});if(this['_enabledCommands']['has'](_0x5b7878))throw new _0x478e8c('track-changes-enable-command-twice',this,{'commandName':_0x3505b1});this['_enabledCommands']['add'](_0x5b7878),_0x513d2c&&_0x5b7878['on']('execute',(_0x5e57b2,_0x1b6794)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1b6794['length']>0x0&&_0x1b6794[_0x1b6794['length']-0x1]&&_0x1b6794[_0x1b6794['length']-0x1]['forceDefaultExecution']?_0x1b6794['pop']():(_0x5e57b2['return']=_0x513d2c((..._0x20294e)=>_0x5b7878['execute'](..._0x20294e,{'forceDefaultExecution':!0x0}),..._0x1b6794),_0x5e57b2['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3b29e5){let _0x33b40f,_0x2b95b6;const _0x1060e7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33b40f=_0x3b29e5();}catch(_0x416518){_0x2b95b6=_0x416518;}return _0x1060e7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b95b6&&_0x478e8c['rethrowUnexpectedError'](_0x2b95b6,this),_0x33b40f;}markInsertion(_0x11f6b7,_0x1d7ab7=null,_0x32bbcd={}){if(_0x11f6b7['isCollapsed'])return null;const _0x27a35a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x32bbcd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21dfb7,meta:_0x40721c}of this['_findSuggestions'](_0x11f6b7,'insertion'))if(_0x40721c['isOwn']){if(!_0x40721c['isNextTo']){if(_0x40721c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x21dfb7,_0x32bbcd))continue;return _0x21dfb7;}if(Ln(_0x21dfb7,_0x32bbcd))return _0x21dfb7;this['_breakSuggestionMarker'](_0x21dfb7,_0x11f6b7['start'],_0x11f6b7['end']);break;}if(_0x1d7ab7==_0x21dfb7['subType']&&Ln(_0x21dfb7,_0x32bbcd)){const _0x468c8d=_0x21dfb7['getFirstRange']();return _0x468c8d['start']['isEqual'](_0x11f6b7['end'])?this['_setSuggestionRange'](_0x21dfb7,this['_model']['createRange'](_0x11f6b7['start'],_0x468c8d['end'])):this['_setSuggestionRange'](_0x21dfb7,this['_model']['createRange'](_0x468c8d['start'],_0x11f6b7['end'])),_0x21dfb7;}}const _0x2f9b3a=_0x38eda5(),_0x3a8eb4=_0x27a35a['id'],_0x299dc4=_0x1d7ab7?'insertion:'+_0x1d7ab7:'insertion',_0x688cb9=this['_setSuggestionData']({'id':_0x2f9b3a,'type':_0x299dc4,'createdAt':new Date(),'authorId':_0x3a8eb4,'attributes':_0x32bbcd});return this['_addSuggestionMarker'](_0x299dc4,_0x2f9b3a,_0x3a8eb4,_0x11f6b7),_0x688cb9;}markMultiRangeInsertion(_0x3f87fe,_0xd53297='multi',_0x20a35f={}){const _0x4949db=this['editor']['plugins']['get']('Users')['me'],_0x4e0ba0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd53297,'join');this['_trackingSessionId']&&(_0x20a35f['trackingSessionId']=this['_trackingSessionId']);for(const _0xb12e35 of this['getSuggestions']())if(_0xb12e35['author']['id']==_0x4949db['id']&&'insertion'==_0xb12e35['type']&&_0xb12e35['subType']==_0xd53297&&Ln(_0xb12e35,_0x20a35f)&&(_0x4e0ba0(_0xb12e35['getRanges'](),_0x3f87fe)||_0x4e0ba0(_0x3f87fe,_0xb12e35['getRanges']()))){for(const _0x5d8c0e of _0x3f87fe)_0xb12e35['addRange'](_0x5d8c0e);return _0xb12e35;}for(const {suggestion:_0x5747b5,meta:_0x2bb11a}of this['_findSuggestions'](_0x3f87fe,'insertion')){if(!_0x2bb11a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bb11a['containsRangeInObject'])continue;if(!Ln(_0x5747b5,_0x20a35f))continue;let _0x33021e=!0x0;for(const _0x845390 of _0x5747b5['getRanges']())for(const _0x11446e of _0x3f87fe)if(!_0x845390['containsRange'](_0x11446e)){_0x33021e=!0x1;break;}if(_0x33021e)return _0x5747b5;}const _0x458b61=_0x38eda5(),_0x5491b7=_0x4949db['id'],_0x1e3714='insertion:'+_0xd53297,_0x15f1e8=this['_setSuggestionData']({'id':_0x458b61,'type':_0x1e3714,'createdAt':new Date(),'authorId':_0x5491b7,'attributes':_0x20a35f});for(const _0x45a0e6 of _0x3f87fe)this['_addSuggestionMarker'](_0x1e3714,_0x458b61,_0x5491b7,_0x45a0e6,St['getMultiRangeId']());return _0x15f1e8;}markInlineFormat(_0x4641e4,_0x32a9a6,_0x4a2e47=null,_0x5d195e={}){if(_0x4a2e47=_0x4a2e47||hn(_0x32a9a6),_0x4641e4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5d195e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cb345=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a2e47,'accept');return this['forceDefaultExecution'](()=>_0x3cb345([_0x4641e4],_0x32a9a6,_0x5d195e)),null;}const _0x2b95a9=this['editor']['plugins']['get']('Users')['me'],_0x57e64a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x318264,meta:_0x352134}of this['_findSuggestions'](_0x4641e4,'insertion'))_0x352134['isOwn']&&!_0x352134['isInsideObject']&&_0x57e64a['push'](..._0x318264['getRanges']());}const _0x1fd6fe=function(_0xb2544d,_0x36867d){const _0x325f0c=[];for(const _0x12f8f8 of _0x36867d){const _0x2ca7c1=_0xb2544d['getIntersection'](_0x12f8f8);_0x2ca7c1&&_0x325f0c['push'](_0x2ca7c1);}return _0x325f0c;}(_0x4641e4,_0x57e64a),_0x2e85a5=function(_0x406d94,_0x6eb059){const _0x1ed0b6=[_0x406d94];for(const _0x311fc4 of _0x6eb059){let _0x148381=0x0;for(;_0x148381<_0x1ed0b6['length'];){const _0x2af7a4=_0x1ed0b6[_0x148381]['getDifference'](_0x311fc4);_0x1ed0b6['splice'](_0x148381,0x1,..._0x2af7a4),_0x148381+=_0x2af7a4['length'];}}return _0x1ed0b6;}(_0x4641e4,_0x57e64a);_0x1fd6fe['length']&&this['_model']['change'](()=>{for(const _0x1c0a96 of _0x1fd6fe){const _0x36a2a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a2e47,'accept');this['forceDefaultExecution'](()=>_0x36a2a8([_0x1c0a96],_0x32a9a6,_0x5d195e));}});for(const _0x3e04e3 of _0x2e85a5){let _0x5074b2=null,_0x13770f=_0x3e04e3['start'],_0x34e4f8=_0x3e04e3['end'];for(const {suggestion:_0x283719,meta:_0x4a5115}of this['_findSuggestions'](_0x3e04e3,'formatInline')){if(!_0x4a5115['isOwn'])continue;if(_0x283719['subType']!=_0x4a2e47)continue;if(!Ln(_0x283719,_0x5d195e))continue;const _0x62479d=_0x283719['getFirstRange']();if(_0x62479d['containsRange'](_0x3e04e3,!0x0))return null;_0x13770f=_0x13770f['isBefore'](_0x62479d['start'])?_0x13770f:_0x62479d['start'],_0x34e4f8=_0x34e4f8['isAfter'](_0x62479d['end'])?_0x34e4f8:_0x62479d['end'],_0x5074b2?_0x62479d['start']['isBefore'](_0x5074b2['getFirstRange']()['start'])?(_0x5074b2['removeMarkers'](),_0x5074b2=_0x283719):_0x283719['removeMarkers']():_0x5074b2=_0x283719;}const _0x2c12e1=this['_model']['createRange'](_0x13770f,_0x34e4f8);if(_0x5074b2)this['_setSuggestionRange'](_0x5074b2,_0x2c12e1);else{const _0x17d4fb=_0x38eda5(),_0x5bdfcc=_0x2b95a9['id'];this['_setSuggestionData']({'id':_0x17d4fb,'type':'formatInline:'+_0x4a2e47,'data':_0x32a9a6,'createdAt':new Date(),'authorId':_0x5bdfcc,'attributes':_0x5d195e}),this['_addSuggestionMarker']('formatInline:'+_0x4a2e47,_0x17d4fb,_0x5bdfcc,_0x2c12e1);}}return null;}markBlockFormat(_0x56d0a7,_0x4d091e,_0x568621=[],_0x2bf1d7=null,_0x43e911={}){_0x4d091e['formatGroupId']||(_0x4d091e['formatGroupId']=_0x4d091e['commandName']),_0x4d091e['multipleBlocks']=_0x56d0a7['is']('range'),_0x2bf1d7=_0x2bf1d7||hn(_0x4d091e);const _0x10be18=_0x568621['map'](_0x28ec99=>Tn(_0x28ec99,this['_model'])),_0x79a29c=_0x56d0a7['is']('range')?_0x56d0a7:Tn(_0x56d0a7,this['_model']);if(this['_trackingSessionId']&&(_0x43e911['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53399e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bf1d7,'accept');return this['forceDefaultExecution'](()=>_0x53399e([_0x79a29c],_0x4d091e,_0x43e911)),null;}_0x10be18['push'](_0x79a29c);let _0x3b906f=!0x0;for(const _0x37640b of _0x10be18)if(!this['_rangeIsInLocalUserInsertion'](_0x37640b)){_0x3b906f=!0x1;break;}if(_0x3b906f&&'always'!==this['_trackFormatChanges']){const _0x556fac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bf1d7,'accept');return this['forceDefaultExecution'](()=>_0x556fac([_0x79a29c],_0x4d091e,_0x43e911)),null;}let _0x5cff23=null,_0x3ebd6f=_0x79a29c['start'],_0x2f07a8=_0x79a29c['end'];for(const {suggestion:_0xbb9079,meta:_0x207379}of this['_findSuggestions'](_0x79a29c,'formatBlock')){if(!_0x207379['isOwn'])continue;if(_0x207379['isNextTo']||_0x207379['containsRangeInObject']||_0x207379['isInsideObject'])continue;if(_0xbb9079['data']['formatGroupId']!=_0x4d091e['formatGroupId'])continue;if(!Ln(_0xbb9079,_0x43e911))continue;const _0x513b80=_0xbb9079['getFirstRange']();if(_0xbb9079['subType']==_0x2bf1d7){if(_0x513b80['containsRange'](_0x79a29c,!0x0))return null;_0x3ebd6f=_0x3ebd6f['isBefore'](_0x513b80['start'])?_0x3ebd6f:_0x513b80['start'],_0x2f07a8=_0x2f07a8['isAfter'](_0x513b80['end'])?_0x2f07a8:_0x513b80['end'],_0x5cff23?_0x513b80['start']['isBefore'](_0x5cff23['getFirstRange']()['start'])?(_0x5cff23['removeMarkers'](),_0x5cff23=_0xbb9079):_0xbb9079['removeMarkers']():_0x5cff23=_0xbb9079;}else{const _0x42ec4e=_0x79a29c['getIntersection'](_0x513b80);this['_cutOutSuggestionMarker'](_0xbb9079,_0x42ec4e);}}const _0x46b7c7=this['editor']['plugins']['get']('Users')['me'],_0x45dd15=_0x38eda5(),_0x19d951=_0x46b7c7['id'];if(_0x5cff23)return this['_setSuggestionRange'](_0x5cff23,this['_model']['createRange'](_0x3ebd6f,_0x2f07a8)),_0x5cff23;{const _0x4f32aa=this['_setSuggestionData']({'id':_0x45dd15,'type':'formatBlock:'+_0x2bf1d7,'data':_0x4d091e,'createdAt':new Date(),'authorId':_0x19d951,'attributes':_0x43e911});return this['_addSuggestionMarker']('formatBlock:'+_0x2bf1d7,_0x45dd15,_0x19d951,this['_model']['createRange'](_0x3ebd6f,_0x2f07a8)),_0x4f32aa;}}markMultiRangeBlockFormat(_0x1b1dff,_0x6b6ad1,_0x111305=[],_0x5ee0d5=null,_0x145733={}){_0x6b6ad1['formatGroupId']||(_0x6b6ad1['formatGroupId']=_0x6b6ad1['commandName']);const _0x38d375=_0x1b1dff[0x0];_0x6b6ad1['multipleBlocks']=_0x38d375['is']('range'),_0x5ee0d5=_0x5ee0d5||hn(_0x6b6ad1);const _0x1adb59=_0x111305['map'](_0x5e4301=>Tn(_0x5e4301,this['_model'])),_0x25d599=_0x38d375['is']('range')?_0x1b1dff:_0x1b1dff['map'](_0x117b09=>Tn(_0x117b09,this['_model']));if(this['_trackingSessionId']&&(_0x145733['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4face5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'accept');return this['forceDefaultExecution'](()=>_0x4face5(_0x25d599,_0x6b6ad1,_0x145733)),null;}_0x1adb59['push'](..._0x25d599);let _0x3a00d5=!0x0;for(const _0x318b8f of _0x1adb59)if(!this['_rangeIsInLocalUserInsertion'](_0x318b8f)){_0x3a00d5=!0x1;break;}if(_0x3a00d5&&'always'!==this['_trackFormatChanges']){const _0x4187e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'accept');return this['forceDefaultExecution'](()=>_0x4187e9(_0x25d599,_0x6b6ad1,_0x145733)),null;}const _0x2f6572=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c779b of this['getSuggestions']()){const _0x28bbd4=_0x1c779b['data'];if(_0x1c779b['author']['id']!=_0x2f6572['id'])continue;if('formatBlock'!=_0x1c779b['type']||_0x28bbd4['formatGroupId']!=_0x6b6ad1['formatGroupId'])continue;if(!Ln(_0x1c779b,_0x145733))continue;const _0x5bb14e=_0x1c779b['subType']==_0x5ee0d5;for(let _0x5d0abe=0x0;_0x5d0abe<_0x25d599['length'];_0x5d0abe++){const _0x3e5901=_0x25d599[_0x5d0abe];for(const _0x302186 of _0x1c779b['getMarkers']()){const _0xd2d7ae=_0x302186['getRange']();if(_0x3e5901['isEqual'](_0xd2d7ae)){_0x5bb14e?(_0x25d599['splice'](_0x5d0abe,0x1),_0x5d0abe--):_0x1c779b['removeMarker'](_0x302186['name']);break;}}}}if(0x0==_0x25d599['length'])return null;const _0x2e0ebd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ee0d5,'join');for(const _0x9fea58 of this['getSuggestions']()){const _0x28acfe=_0x9fea58['data'];if(_0x9fea58['author']['id']==_0x2f6572['id']&&('formatBlock'==_0x9fea58['type']&&_0x28acfe['formatGroupId']==_0x6b6ad1['formatGroupId']&&_0x9fea58['subType']==_0x5ee0d5&&Ln(_0x9fea58,_0x145733)&&(_0x2e0ebd(_0x9fea58['getRanges'](),_0x25d599)||_0x2e0ebd(_0x25d599,_0x9fea58['getRanges']())))){for(const _0x30eb3e of _0x25d599)_0x9fea58['addRange'](_0x30eb3e);return _0x9fea58;}}const _0x4732f7=_0x38eda5(),_0xd636fc=_0x2f6572['id'],_0x19b34a='formatBlock:'+_0x5ee0d5,_0x49cc50=this['_setSuggestionData']({'id':_0x4732f7,'type':_0x19b34a,'data':_0x6b6ad1,'createdAt':new Date(),'authorId':_0xd636fc,'attributes':_0x145733});for(const _0x5bdc53 of _0x25d599)this['_addSuggestionMarker'](_0x19b34a,_0x4732f7,_0xd636fc,_0x5bdc53,St['getMultiRangeId']());return _0x49cc50;}markDeletion(_0x98b0bb,_0x56ff95=null,_0x2fffb6={}){if(_0x98b0bb['isCollapsed'])return null;const _0x3b684f=this['editor']['plugins']['get']('Users')['me'],_0x1b1c52=new rt(_0x98b0bb['start'],_0x98b0bb['end']);this['_trackingSessionId']&&(_0x2fffb6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22c6c6,meta:_0x21d183}of this['_findSuggestions'](_0x1b1c52,'insertion'))if(_0x21d183['isOwn']&&!_0x21d183['isNextTo']){if(_0x22c6c6['isMultiRange']){const _0x240e77=_0x22c6c6['getRanges']()['filter'](_0x2249bf=>'$graveyard'!=_0x2249bf['root']['rootName']);if(_0x240e77['every'](_0x231c8f=>_0x1b1c52['containsRange'](_0x231c8f,!0x0))&&_0x22c6c6['discard'](),_0x240e77['some'](_0x27bc12=>_0x27bc12['containsRange'](_0x1b1c52,!0x0))){const _0x3a28df=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56ff95,'accept');return this['forceDefaultExecution'](()=>_0x3a28df([_0x1b1c52],null,_0x2fffb6)),null;}}else{const _0x167deb=_0x1b1c52['getIntersection'](_0x22c6c6['getFirstRange']());null!==_0x167deb&&_0x22c6c6['_onDiscard']([_0x167deb],null,_0x2fffb6);}}if(_0x1b1c52['detach'](),_0x1b1c52['isCollapsed']||'$graveyard'==_0x1b1c52['root']['rootName'])return null;let _0x5a4319=null,_0x32427f=_0x1b1c52['start'],_0x2a6618=_0x1b1c52['end'];const _0x1017dc=this['_findSuggestions'](_0x1b1c52,'deletion');for(const {suggestion:_0x1b2ecd,meta:_0x2446cd}of _0x1017dc){const _0x7c5893=this['_model']['createRange'](_0x32427f,_0x2a6618);if(_0x2446cd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2446cd['containsRangeInObject']&&!_0x2446cd['isInsideObject'])){if(_0x1b2ecd['isMultiRange']){if(!Ln(_0x1b2ecd,_0x2fffb6))continue;let _0x2533a4=!0x0;for(const _0x495c41 of _0x1b2ecd['getRanges']()){if(_0x495c41['containsRange'](_0x7c5893,!0x0))return _0x1b2ecd;_0x7c5893['containsRange'](_0x495c41)||(_0x2533a4=!0x1);}_0x2533a4&&_0x1b2ecd['discard']();}else{const _0x115cd6=_0x1b2ecd['getFirstRange']();if(_0x115cd6['containsRange'](_0x7c5893,!0x0))return _0x1b2ecd;if(!Ln(_0x1b2ecd,_0x2fffb6)){_0x7c5893['containsRange'](_0x115cd6)?_0x1b2ecd['removeMarkers']():_0x115cd6['containsPosition'](_0x32427f)?_0x32427f=_0x115cd6['end']:_0x115cd6['containsPosition'](_0x2a6618)&&(_0x2a6618=_0x115cd6['start']);continue;}_0x32427f=_0x32427f['isBefore'](_0x115cd6['start'])?_0x32427f:_0x115cd6['start'],_0x2a6618=_0x2a6618['isAfter'](_0x115cd6['end'])?_0x2a6618:_0x115cd6['end'],_0x2fffb6=Object['assign']({},_0x1b2ecd['attributes']),_0x5a4319?_0x115cd6['start']['isBefore'](_0x5a4319['getFirstRange']()['start'])?(_0x5a4319['removeMarkers'](),_0x5a4319=_0x1b2ecd):_0x1b2ecd['removeMarkers']():_0x5a4319=_0x1b2ecd;}}}if(_0x5a4319)return this['_setSuggestionRange'](_0x5a4319,this['_model']['createRange'](_0x32427f,_0x2a6618)),_0x5a4319;{const _0x21ea9a=_0x38eda5(),_0x191add=this['_model']['createRange'](_0x32427f,_0x2a6618),_0x356ddb=_0x3b684f['id'],_0x203a54=_0x56ff95?'deletion:'+_0x56ff95:'deletion',_0x579bdc=this['_setSuggestionData']({'id':_0x21ea9a,'type':_0x203a54,'createdAt':new Date(),'authorId':_0x356ddb,'attributes':_0x2fffb6});return this['_addSuggestionMarker'](_0x203a54,_0x21ea9a,_0x356ddb,_0x191add),_0x579bdc;}}markMultiRangeDeletion(_0x3732ed,_0x41b1c3='multi',_0x495b24={}){const _0x1f9304=this['editor']['plugins']['get']('Users')['me'],_0x5315ef=_0x3732ed['map'](_0x47d344=>new rt(_0x47d344['start'],_0x47d344['end'])),_0x32e69a=new Set();this['_trackingSessionId']&&(_0x495b24['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb9afdc,meta:_0x4c14a7}of this['_findSuggestions'](_0x5315ef,'insertion'))_0x4c14a7['isOwn']&&!_0x4c14a7['isNextTo']&&_0x32e69a['add'](_0xb9afdc);for(const _0x5bbf36 of _0x32e69a)if(_0x5bbf36['isMultiRange']){const _0x4a84f2=_0x5bbf36['getRanges']();if(_0x5bbf36['attributes']&&_0x5bbf36['attributes']['skipNestingCheck']||_0x4a84f2['every'](_0x18684e=>_0x5315ef['some'](_0x59c198=>_0x59c198['containsRange'](_0x18684e,!0x0)))&&_0x5bbf36['discard'](),_0x5315ef['every'](_0x1c2287=>_0x4a84f2['some'](_0x1291dd=>_0x1291dd['containsRange'](_0x1c2287,!0x0)))){const _0x2376de=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'accept');return this['forceDefaultExecution'](()=>_0x2376de(_0x3732ed,null,_0x495b24)),null;}}else{const _0x4f3bc9=_0x5bbf36['getFirstRange']();if(_0x5315ef['some'](_0x33c48e=>_0x33c48e['containsRange'](_0x4f3bc9,!0x0))&&_0x5bbf36['discard'](),_0x5315ef['every'](_0x1388c2=>_0x4f3bc9['containsRange'](_0x1388c2,!0x0))){const _0x2070d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'accept');return this['forceDefaultExecution'](()=>_0x2070d7(_0x5315ef,null,_0x495b24)),null;}}const _0x178de2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b1c3,'join');let _0x3e79bc=null;for(const _0x5af674 of this['getSuggestions']())if(_0x5af674['author']['id']==_0x1f9304['id']&&_0x5af674['isInContent']&&'deletion'==_0x5af674['type']&&_0x5af674['subType']==_0x41b1c3&&Ln(_0x5af674,_0x495b24)&&(_0x178de2(_0x5af674['getRanges'](),_0x5315ef)||_0x178de2(_0x5315ef,_0x5af674['getRanges']()))){if(_0x3e79bc){if(_0x5af674['commentThread']&&_0x5af674['commentThread']['length'])continue;for(const _0x594b9c of _0x5af674['getRanges']())_0x3e79bc['isIntersectingWithRange'](_0x594b9c)||_0x3e79bc['addRange'](_0x594b9c);_0x5af674['removeMarkers']();}else{_0x3e79bc=_0x5af674;for(const _0x4ef639 of _0x5315ef)_0x5af674['isIntersectingWithRange'](_0x4ef639)||_0x5af674['addRange'](_0x4ef639);}}if(_0x3e79bc)return _0x3e79bc;_0x32e69a['clear']();for(const {suggestion:_0xb1fbb3,meta:_0x4a6f8f}of this['_findSuggestions'](_0x5315ef,'deletion'))_0x4a6f8f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6f8f['containsRangeInObject']&&!_0x4a6f8f['isInsideObject'])&&Ln(_0xb1fbb3,_0x495b24)&&_0x32e69a['add'](_0xb1fbb3);for(const _0x12d6ee of _0x32e69a){const _0x56ae79=_0x12d6ee['getRanges']();if((!_0x495b24||!_0x495b24['skipNestingCheck'])&&_0x5315ef['every'](_0x523631=>_0x56ae79['some'](_0x545d37=>_0x545d37['containsRange'](_0x523631,!0x0))))return _0x12d6ee;_0x12d6ee['attributes']&&_0x12d6ee['attributes']['skipNestingCheck']||_0x56ae79['every'](_0x466e0a=>_0x5315ef['some'](_0x34640c=>_0x34640c['containsRange'](_0x466e0a,!0x0)))&&_0x12d6ee['discard']();}const _0x43a204=_0x38eda5(),_0x3db7dc=_0x1f9304['id'],_0x65aee2='deletion:'+_0x41b1c3,_0x486375=this['_setSuggestionData']({'id':_0x43a204,'type':_0x65aee2,'createdAt':new Date(),'authorId':_0x3db7dc,'attributes':_0x495b24});for(const _0x14f725 of _0x5315ef)_0x14f725['detach'](),_0x14f725['isCollapsed']||'$graveyard'==_0x14f725['root']['rootName']||this['_addSuggestionMarker'](_0x65aee2,_0x43a204,_0x3db7dc,_0x14f725,St['getMultiRangeId']());return _0x486375;}markAttributeChange(_0x24a002,_0x38e7e5,_0x55deca,_0x26cc64,_0x49696f){if(_0x24a002['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3e7e93=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ac69b=Array['from'](this['_suggestions']['values']())['filter'](_0x173962=>'attribute'==_0x173962['type']&&_0x173962['data']['key']==_0x38e7e5&&_0x173962['isIntersectingWithRange'](_0x24a002));if(this['_trackingSessionId']&&(_0x49696f['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1df3d7=this['_findSuggestions'](_0x24a002,'insertion')['filter'](({meta:_0x114c49})=>_0x114c49['isOwn']&&!_0x114c49['isInsideObject']&&!_0x114c49['isNextTo'])['map'](({suggestion:_0x23d203})=>_0x23d203);_0x1ac69b['unshift'](..._0x1df3d7);}const _0x50f97c=new Map([[_0x24a002,_0x55deca]]);for(const _0x324f96 of _0x1ac69b){const _0x55bb24='attribute'==_0x324f96['type']?_0x324f96['data']['oldValue']:void 0x0,_0x5da42c=_0x324f96['getFirstRange'](),_0x375598=Array['from'](_0x50f97c['keys']())['find'](_0x44778e=>_0x44778e['isIntersecting'](_0x5da42c));if(!_0x375598)continue;const _0x3185c2=_0x375598['getDifference'](_0x5da42c);this['_suggestionsConversion']['isBlockAttribute'](_0x38e7e5)&&'insertion'==_0x324f96['type']&&0x0!=_0x3185c2['length']||(_0x50f97c['delete'](_0x375598),_0x3185c2['forEach'](_0x29215c=>{_0x50f97c['set'](_0x29215c,_0x55deca);}),'insertion'!=_0x324f96['type']&&_0x55bb24!=_0x26cc64&&_0x50f97c['set'](_0x375598['getIntersection'](_0x5da42c),_0x55bb24));}const _0x4d35a9=[];for(const [_0x226c71,_0x303d6c]of _0x50f97c){const _0x43711a=_0x38eda5(),_0x4b481d={'key':_0x38e7e5,'oldValue':_0x303d6c,'newValue':_0x26cc64};_0x38e7e5['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':_0x38e7e5});const _0x142d80=('attribute:'+_0x38e7e5+'|'+hn({'newValue':_0x26cc64}))['substring'](0x0,0x3c),_0x19eca1=this['_setSuggestionData']({'id':_0x43711a,'type':_0x142d80,'data':_0x4b481d,'createdAt':new Date(),'authorId':_0x3e7e93,'attributes':_0x49696f});_0x4d35a9['push'](_0x19eca1),this['_addSuggestionMarker'](_0x142d80,_0x43711a,_0x3e7e93,_0x226c71);}return _0x4d35a9;}enableDefaultAttributesIntegration(_0x23f2e5){this['enableCommand'](_0x23f2e5,(_0x208a9c,..._0x878169)=>{this['recordAttributeChanges'](()=>{_0x208a9c(..._0x878169);});});}startTrackingSession(_0x5a4b29){return this['_trackingSessionId']=void 0x0!==_0x5a4b29?_0x5a4b29:_0x38eda5(),this['_trackingSessionId'];}_getAttributeKey(_0x4df96c){return'attribute'==_0x4df96c['type']?An(_0x4df96c['subType']):null;}_applyOperationsAsSuggestions(_0x55baab){if(0x0==_0x55baab['length'])return;const _0x13a6af=this['editor'],_0x3e912b=[],_0x37244c=_0x37861e=>{const _0x12a55f=_0x37861e['_aiSource'];return _0x12a55f?{'@ai':{'type':_0x12a55f}}:{};},_0x40c63f=(_0x17eb48,_0x3b3e39,_0x49e021,_0x49d206)=>{const _0x18d6ad=new Set(_0x49d206['flatMap'](_0x3761b6=>_0x3761b6['getMarkerNames']()));let _0x3a3cc0=!0x1;for(let _0x50c28e=_0x3b3e39;_0x50c28e<_0x17eb48['operations']['length'];_0x50c28e++){const _0x22dd85=_0x17eb48['operations'][_0x50c28e];if('marker'==_0x22dd85['type']){if(!_0x18d6ad['has'](_0x22dd85['name']))continue;_0x3a3cc0=!0x0;}_0x22dd85['_aiSource']=_0x49e021;}return _0x3a3cc0;};_0x13a6af['model']['change'](_0x9279b4=>{for(let _0x35242e=0x0;_0x35242e<_0x55baab['length'];_0x35242e++){const _0x50e576=_0x55baab[_0x35242e],_0x392b39=_0x50e576['_aiSource'];if(_0x50e576['baseVersion']=_0x13a6af['model']['document']['version'],_0x50e576['isDocumentOperation']=!0x0,_0x5ed10c(_0x50e576))continue;if(rn(_0x50e576)){const _0x53ad0a=_0x586961(_0x50e576['newRange'],_0x13a6af['model']);_0x3e912b['unshift']({'range':rt['fromRange'](_0x53ad0a),'operation':_0x50e576});continue;}const _0x48f48b=_0x9279b4['batch']['operations']['length']+0x1;let _0x27eb61=[];switch(_0x50e576['type']){case'rename':{const _0x5ce640=_0x50e576['oldName'],_0x39a1ed=_0x50e576['newName'];if(_0x5ce640==_0x39a1ed)break;_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0xd7866d='$elementName',_0xc82072=_0x50e576['position'],_0x3d1b67=_0x13a6af['model']['createRange'](_0xc82072,_0x13a6af['model']['createPositionAt'](_0xc82072['nodeAfter'],'end'));_0x27eb61=this['markAttributeChange'](_0x3d1b67,_0xd7866d,_0x5ce640,_0x39a1ed,{..._0x37244c(_0x50e576),'groupId':_0x38eda5()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1cd1be=_0x50e576['oldValue'],_0x3fb72a=_0x50e576['newValue'];if(_0x1cd1be==_0x3fb72a)break;_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0x1ab735=_0x50e576['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1ab735))break;const _0x4efd29=_0x586961(_0x50e576['range'],_0x13a6af['model']);_0x27eb61=this['markAttributeChange'](_0x4efd29,_0x1ab735,_0x1cd1be,_0x3fb72a,{..._0x37244c(_0x50e576),'groupId':_0x38eda5()});break;}case'insert':{if(_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576),_0x55baab[_0x35242e+0x1]&&'move'==_0x55baab[_0x35242e+0x1]['type'])break;const _0x4cf561=_0x50e576['position'],_0x5ce1fd=_0x50e576['howMany'],_0x31fc94=_0x586961(_0x13a6af['model']['createRange'](_0x4cf561,_0x4cf561['getShiftedBy'](_0x5ce1fd)),_0x13a6af['model']);_0x27eb61=on(this['markInsertion'](_0x31fc94,null,{..._0x37244c(_0x50e576)}));break;}case'split':{_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);const _0x147029=_0x50e576['splitPosition'],_0x31ec96=_0x50e576['moveTargetPosition'],_0x114664=_0x13a6af['model']['createRange'](_0x147029,_0x31ec96);_0x27eb61=on(this['markInsertion'](_0x114664,null,{..._0x37244c(_0x50e576)}));break;}case'move':case'remove':_0x9279b4['batch']['addOperation'](_0x50e576),_0x13a6af['model']['applyOperation'](_0x50e576);}_0x392b39&&_0x40c63f(_0x9279b4['batch'],_0x48f48b,_0x392b39,_0x27eb61)&&delete _0x50e576['_aiSource'];}for(const {range:_0x4905d3,operation:_0x53213c}of _0x3e912b){const _0x287cea=_0x53213c['_aiSource'],_0x4a602f=_0x37244c(_0x53213c),_0x35218d=_0x9279b4['batch']['operations']['length'];_0x4905d3['detach']();const _0x16f027=this['markDeletion'](_0x4905d3,null,{..._0x4a602f});_0x287cea&&_0x40c63f(_0x9279b4['batch'],_0x35218d,_0x287cea,on(_0x16f027));}});}_setSuggestionRange(_0x594263,_0x14e9d9){const _0x42164e=_0x594263['getFirstMarker']();this['_model']['change'](_0x4a24a0=>{_0x4a24a0['updateMarker'](_0x42164e,{'range':_0x14e9d9});});}_addThreadToSuggestion(_0x209510){const _0x2a22fc=_0x209510['id'],_0x5ef8b7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a22fc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ef8b7,'threadId':_0x2a22fc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57ad00=this['_commentsRepository']['getCommentThread'](_0x2a22fc);_0x57ad00['unbind']('isRemovable'),_0x57ad00['isRemovable']=!0x1,_0x209510['commentThread']=_0x57ad00;}_checkSuggestionCorrectness(_0x2bb75f,_0x1ca69f,_0x537941,_0x2650c7){if(_0x2bb75f['type']!=_0x1ca69f||_0x2bb75f['subType']!=_0x537941||_0x2bb75f['creator']['id']!=_0x2650c7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x478e8c('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2f822e,_0xdd06d8){const _0x51273d=_0x2f822e['getFirstRange']();if(_0xdd06d8['isEqual'](_0x51273d))_0x2f822e['removeMarkers']();else{if(_0x51273d['containsRange'](_0xdd06d8)){const _0x2727ec=this['_model']['createPositionAt'](_0xdd06d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51273d['start'],_0x2727ec));const _0x16474f=_0x38eda5(),_0x36525c=_0x2f822e['creator']['id'],_0x447c95=_0x2f822e['type']+':'+_0x2f822e['subType'];this['_setSuggestionData']({'id':_0x16474f,'type':_0x447c95,'createdAt':new Date(),'authorId':_0x36525c,'data':_0x2f822e['data'],'attributes':_0x2f822e['attributes']});const _0x577b94=this['_model']['createPositionAt'](_0xdd06d8['end']['parent'],'after'),_0x241ed5=this['_model']['createRange'](_0x577b94,_0x51273d['end']);this['_addSuggestionMarker'](_0x447c95,_0x16474f,_0x36525c,_0x241ed5);}else{if(_0x51273d['containsPosition'](_0xdd06d8['start'])){const _0x386286=this['_model']['createPositionAt'](_0xdd06d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51273d['start'],_0x386286));}else{const _0x51f22e=this['_model']['createPositionAt'](_0xdd06d8['end']['parent'],'after');this['_setSuggestionRange'](_0x2f822e,this['_model']['createRange'](_0x51f22e,_0x51273d['end']));}}}}_rangeIsInLocalUserInsertion(_0x58a1d7){for(const {suggestion:_0x5487c3,meta:_0xbb941}of this['_findSuggestions'](_0x58a1d7,'insertion')){if(!_0xbb941['isOwn'])continue;const _0x3a9e59=_0x5487c3['getRanges']();for(const _0x4ac36c of _0x3a9e59)if(!_0x58a1d7['getDifference'](_0x4ac36c)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x884bff){return this['editor']['plugins']['get']('Users')['getUser'](_0x884bff);}_getExternalAuthor(_0x18aaae){const _0x4c255c=this['editor']['plugins']['get']('Users'),_0x10fb5b=_0x414676('external:'+_0x18aaae),_0x35a250=_0x4c255c['getUser'](_0x10fb5b);return _0x35a250||_0x4c255c['addUser']({'id':_0x10fb5b,'name':_0x18aaae});}_createSuggestion(_0x2376e1,_0x2f315a,_0x155da5,_0x263782,_0x317dde,_0x3bbab5){const _0x29634d=this['_getAuthorFromId'](_0x263782);if(!_0x29634d)throw new _0x478e8c('track-changes-user-not-found',this,{'authorId':_0x263782,'suggestionId':_0x155da5});const _0x4f1ef1=this['_suggestionFactory']['buildSuggestion'](_0x2376e1,_0x2f315a,_0x155da5,_0x29634d,_0x317dde,_0x26897=>{this['_updateSuggestionData'](_0x155da5,{'attributes':_0x26897});const _0x25d136=this['getSuggestion'](_0x155da5);this['_joinWithAdjacentSuggestions'](new Set([_0x25d136])),this['_refreshSuggestionsChain'](new Set([_0x25d136]));},_0x3bbab5);return this['listenTo'](_0x4f1ef1,'accept',()=>{this['_updateSuggestionData'](_0x155da5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f1ef1,'discard',()=>{this['_updateSuggestionData'](_0x155da5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x155da5,_0x4f1ef1),this['_suggestionState']['set'](_0x4f1ef1,'notReady'),_0x4f1ef1;}_breakSuggestionMarker(_0x39009d,_0x51323c,_0xc048b5){const _0x540de8=_0x39009d['getFirstRange'](),_0x2cffff=_0x540de8['start'],_0x3ad4a2=_0x540de8['end'];this['_setSuggestionRange'](_0x39009d,this['_model']['createRange'](_0x2cffff,_0x51323c));const _0x3b3bcb=_0x38eda5(),_0x3f9a38=_0x39009d['creator']['id'],_0x1887f3=_0x39009d['type']+(_0x39009d['subType']?':'+_0x39009d['subType']:'');this['_setSuggestionData']({'id':_0x3b3bcb,'type':_0x1887f3,'createdAt':new Date(),'authorId':_0x3f9a38,'originalSuggestionId':_0x39009d['_originalSuggestionId']||_0x39009d['id'],'attributes':_0x39009d['attributes'],'data':_0x39009d['data']});const _0x51bedd=this['_getAttributeKey'](_0x39009d);('formatBlock'==_0x39009d['type']||_0x51bedd&&this['_suggestionsConversion']['isBlockAttribute'](_0x51bedd))&&(_0xc048b5=this['_model']['createPositionBefore'](_0xc048b5['parent'])),this['_addSuggestionMarker'](_0x1887f3,_0x3b3bcb,_0x3f9a38,this['_model']['createRange'](_0xc048b5,_0x3ad4a2));}_findSuggestions(_0x17eee4,_0x35b050=null){const _0x292be9=[],_0x249b19=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17eee4)||(_0x17eee4=[_0x17eee4]);for(const _0x19828a of this['getSuggestions']()){if(!_0x19828a['isInContent'])continue;if(_0x35b050&&_0x19828a['type']!=_0x35b050)continue;let _0x1f7f44=!0x1;for(const _0x2a8eea of _0x19828a['getRanges']()){for(const _0x4afec3 of _0x17eee4){const _0x2099af=_0x4afec3['start']['isEqual'](_0x2a8eea['end'])||_0x4afec3['end']['isEqual'](_0x2a8eea['start']);if(_0x2099af||_0x4afec3['getIntersection'](_0x2a8eea)){const _0x1b7197=_0x4afec3['containsRange'](_0x2a8eea)&&ln(this['_model']['schema'],_0x2a8eea['start'],_0x4afec3),_0xe8c444=_0x2a8eea['containsRange'](_0x4afec3)&&ln(this['_model']['schema'],_0x4afec3['start'],_0x2a8eea);_0x292be9['push']({'suggestion':_0x19828a,'meta':{'isOwn':_0x249b19==_0x19828a['author'],'isNextTo':_0x2099af,'isInsideObject':_0x1b7197,'containsRangeInObject':_0xe8c444}}),_0x1f7f44=!0x0;break;}}if(_0x1f7f44)break;}}return _0x292be9;}_addSuggestionMarker(_0x299565,_0x3eec13,_0x4bd772,_0x55916f,_0x1b7b0a){this['_model']['change'](_0x341b96=>{let _0x313079='suggestion:'+_0x299565+':'+_0x3eec13+':'+_0x4bd772;_0x1b7b0a&&(_0x313079=_0x313079+':'+_0x1b7b0a),_0x341b96['addMarker'](_0x313079,{'range':_0x55916f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x48a87b){const _0x1bdd85=_0x48a87b['previous'],_0xb60b70=_0x48a87b['next'];_0x48a87b['previous']=null,_0x48a87b['next']=null,null!=_0x1bdd85&&_0x1bdd85['next']==_0x48a87b&&(_0x1bdd85['next']=_0xb60b70),null!=_0xb60b70&&_0xb60b70['previous']==_0x48a87b&&(_0xb60b70['previous']=_0x1bdd85),'ready'==this['_suggestionState']['get'](_0x48a87b)&&(this['_suggestionState']['set'](_0x48a87b,'removed'),this['fire']('suggestionUnloaded',_0x48a87b,_0x1bdd85,_0xb60b70));}_setSuggestionData(_0x42e53f){const _0x1a15fa=_0x42e53f['id'],_0x2a0b86=this['addSuggestionData'](_0x42e53f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42745c=this['editor']['plugins']['get']('PendingActions'),_0x41360f=_0x2a0b86['hasComments'],_0x2a0d32=_0x2a0b86['subType']?_0x2a0b86['type']+':'+_0x2a0b86['subType']:_0x2a0b86['type'],_0x125ccc=this['editor']['locale'],_0x5030b9=_0x42745c['add'](Mt(_0x125ccc,'PENDING_ACTION_SUGGESTION')),_0x11f627={'id':_0x1a15fa,'type':_0x2a0d32,'hasComments':_0x41360f,'data':_0x42e53f['data']||null,'originalSuggestionId':_0x42e53f['originalSuggestionId']||null,'attributes':_0x2a0b86['attributes']};this['_adapter']['addSuggestion'](_0x11f627)['then'](_0x4c0fe6=>{_0x2a0b86['_saved']=!0x0,_0x42745c['remove'](_0x5030b9),_0x4c0fe6&&_0x4c0fe6['createdAt']&&(this['_suggestions']['get'](_0x1a15fa)['createdAt']=_0x4c0fe6['createdAt']);})['catch'](_0x3c1197=>{throw _0x3f9976('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a0b86['discard']();}),_0x2a0b86['stopListening'](),this['_suggestions']['delete'](_0x2a0b86['id']),this['_suggestionState']['delete'](_0x2a0b86),_0x3c1197;});}return _0x2a0b86;}_updateSuggestionData(_0x453556,_0x46c1f2){const _0x25832f=this['editor']['plugins']['get']('PendingActions'),_0x5c8a5a=this['getSuggestion'](_0x453556);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c8a5a['_saved']){const _0x37b819=_0x25832f['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x453556,_0x46c1f2)['then'](()=>{_0x25832f['remove'](_0x37b819);});}else _0x5c8a5a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x453556,_0x46c1f2);});}}_getSuggestionData(_0xd96c42){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x478e8c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xd96c42);}_handleNewSuggestionMarker(_0x21cd8e){const {id:_0x51dab9,type:_0x41b3ff,subType:_0x5ef3d6,authorId:_0x275a48}=tt(_0x21cd8e),_0x26f385=this['_suggestions']['get'](_0x51dab9)||this['_createSuggestion'](_0x41b3ff,_0x5ef3d6,_0x51dab9,_0x275a48,{});switch(this['_checkSuggestionCorrectness'](_0x26f385,_0x41b3ff,_0x5ef3d6,_0x275a48),this['_suggestionState']['get'](_0x26f385)){case'notReady':this['_getSuggestionData'](_0x51dab9)['then'](_0x1ded6b=>{let _0x2c008d=Promise['resolve']();_0x1ded6b['hasComments']&&(_0x2c008d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x51dab9})),_0x2c008d['then'](()=>{this['addSuggestionData'](_0x1ded6b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x26f385,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x51dab9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x26f385,'ready'),this['fire']('suggestionLoaded',_0x26f385);break;case'ready':this['fire']('suggestionChanged',_0x26f385);}return _0x26f385['addMarkerName'](_0x21cd8e),_0x26f385;}_refreshSuggestionsChain(_0x3d0f78){const _0x2f290a=Array['from'](_0x3d0f78),_0x3d2faa=_0x2f290a['filter'](_0x5e273d=>'attribute'==_0x5e273d['type']);this['_refreshAttributeSuggestionsChain'](_0x3d2faa);const _0x23b604=_0x2f290a['filter'](_0x126761=>!_0x126761['isMultiRange']&&'attribute'!=_0x126761['type']),_0x1bf5ec=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4290f2=>!_0x4290f2['isMultiRange']&&'attribute'!=_0x4290f2['type']),_0x502519=_0x1bf5ec['filter'](_0x1bafbb=>!_0x3d0f78['has'](_0x1bafbb)),_0x23d6f4=new Map(_0x1bf5ec['map'](_0x234149=>[_0x234149,this['_suggestionFactory']['getSuggestionCallback'](_0x234149['type'],_0x234149['subType'],'chain')])),_0x3810ee=new Map(_0x1bf5ec['map'](_0x38c821=>[_0x38c821,_0x38c821['getFirstRange']()])),_0x385091=new Set(),_0x250273=new Set();for(let _0x8e89a1=0x0;_0x8e89a1<_0x23b604['length'];_0x8e89a1++)_0x442acb(_0x23b604[_0x8e89a1],_0x23b604,_0x8e89a1+0x1);for(let _0x36bf11=0x0;_0x36bf11<_0x23b604['length'];_0x36bf11++)_0x442acb(_0x23b604[_0x36bf11],_0x502519,0x0);const _0x4046a3=new Set();for(let _0x2ef01d=0x0;_0x2ef01d<_0x23b604['length'];_0x2ef01d++){const _0x5ad5a8=_0x23b604[_0x2ef01d];!_0x250273['has'](_0x5ad5a8)&&_0x5ad5a8['previous']&&(_0x4046a3['add'](_0x5ad5a8['previous']),_0x5ad5a8['previous']['next']===_0x5ad5a8&&(_0x5ad5a8['previous']['next']=null),_0x5ad5a8['previous']=null),!_0x385091['has'](_0x5ad5a8)&&_0x5ad5a8['next']&&(_0x4046a3['add'](_0x5ad5a8['next']),_0x5ad5a8['next']['previous']===_0x5ad5a8&&(_0x5ad5a8['next']['previous']=null),_0x5ad5a8['next']=null);}function _0x442acb(_0x23ae26,_0x45c557,_0x16d7d5){for(let _0x57db73=_0x16d7d5;_0x57db73<_0x45c557['length'];_0x57db73++){const _0x3a2f7e=_0x3e915e(_0x23ae26,_0x45c557[_0x57db73]);_0x3a2f7e&&(_0x3a2f7e[0x0]['next']=_0x3a2f7e[0x1],_0x3a2f7e[0x1]['previous']=_0x3a2f7e[0x0],_0x385091['add'](_0x3a2f7e[0x0]),_0x250273['add'](_0x3a2f7e[0x1]));}}function _0x3e915e(_0x1892b7,_0x470ddc){if(_0x1892b7['author']['id']!==_0x470ddc['author']['id'])return null;const _0x1d7ffd=_0x23d6f4['get'](_0x1892b7)(_0x1892b7,_0x470ddc,_0x3810ee['get'](_0x1892b7),_0x3810ee['get'](_0x470ddc));return _0x1d7ffd&&_0x23d6f4['get'](_0x470ddc)(_0x1892b7,_0x470ddc,_0x3810ee['get'](_0x1892b7),_0x3810ee['get'](_0x470ddc))?_0x1d7ffd[0x1]['commentThread']&&_0x1d7ffd[0x1]['commentThread']['length']?null:_0x1d7ffd:null;}_0x4046a3['size']&&this['_refreshSuggestionsChain'](_0x4046a3);}_refreshAttributeSuggestionsChain(_0x206422){if(0x0==_0x206422['length'])return;const _0x2e4121=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b3fd6=>'attribute'==_0x5b3fd6['type']&&_0x5b3fd6['_isDataLoaded']),_0x4ed2f6=[],_0x302ab3=new Map();for(const _0x45e824 of _0x2e4121){const _0x23b533=_0x414676(_0x45e824['attributes']);_0x302ab3['has'](_0x23b533)||(_0x302ab3['set'](_0x23b533,_0x4ed2f6['length']),_0x4ed2f6['push']([])),_0x4ed2f6[_0x302ab3['get'](_0x23b533)]['push'](_0x45e824);}!(function(){_0x4ed2f6['sort']((_0x1bcbc2,_0x55a8d4)=>{const _0x17d7d8=_0x1bcbc2[0x0]['createdAt'],_0x1c2bd1=_0x55a8d4[0x0]['createdAt'];return _0x17d7d8==_0x1c2bd1?_0x1bcbc2[0x0]['attributes']['groupId']<_0x55a8d4[0x0]['attributes']['groupId']?-0x1:0x1:_0x17d7d8<_0x1c2bd1?-0x1:0x1;});for(const _0x1d30c7 of _0x4ed2f6)_0x1d30c7['sort']((_0x1df1aa,_0x2a4f17)=>_0x1df1aa['id']<_0x2a4f17['id']?-0x1:0x1);}());for(let _0x4bed5e=0x0;_0x4bed5e<_0x4ed2f6['length'];_0x4bed5e++){if(0x0==_0x4ed2f6[_0x4bed5e]['length'])continue;const _0x5e0926=[];for(let _0x3e75bc=_0x4bed5e+0x1;_0x3e75bc<_0x4ed2f6['length'];_0x3e75bc++)0x0!=_0x4ed2f6[_0x3e75bc]['length']&&_0x101807(_0x4ed2f6[_0x4bed5e],_0x4ed2f6[_0x3e75bc])&&_0x5e0926['push'](_0x3e75bc);for(const _0x69ef3e of _0x5e0926)_0x4ed2f6[_0x4bed5e]=_0x4ed2f6[_0x4bed5e]['concat'](_0x4ed2f6[_0x69ef3e]),_0x4ed2f6[_0x69ef3e]=[];}for(const _0x5a4f67 of _0x4ed2f6)for(let _0x568090=0x0;_0x568090<_0x5a4f67['length'];_0x568090++){const _0x216eaf=_0x5a4f67[_0x568090+0x1]||null;_0x5a4f67[_0x568090]['next']!==_0x216eaf&&(_0x5a4f67[_0x568090]['next']=_0x216eaf);}for(const _0x4438bb of _0x4ed2f6)for(let _0x5f1db4=0x0;_0x5f1db4<_0x4438bb['length'];_0x5f1db4++){const _0x286d42=_0x4438bb[_0x5f1db4-0x1]||null;_0x4438bb[_0x5f1db4]['previous']!==_0x286d42&&(_0x4438bb[_0x5f1db4]['previous']=_0x286d42);}function _0x101807(_0x46d2e5,_0xd3885c){if(_0x46d2e5[0x0]['attributes']['groupId']!==_0xd3885c[0x0]['attributes']['groupId']&&_0x46d2e5[0x0]['author']!==_0xd3885c[0x0]['author'])return!0x1;if(!function(_0x3e3618,_0x1c4cad){return!_0x3e3618['hasComments']&&!_0x1c4cad['hasComments']||(!_0x3e3618['hasComments']||!_0x1c4cad['hasComments'])&&(!!(_0x3e3618['hasComments']&&_0x1c4cad['createdAt']<_0x3e3618['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x1c4cad['hasComments']&&_0x3e3618['createdAt']<_0x1c4cad['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x46d2e5[0x0],_0xd3885c[0x0]))return!0x1;const _0x3d1494=lt(_0x46d2e5[0x0]['attributes'],['groupId','trackingSessionId']),_0x31b5c1=lt(_0xd3885c[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x3d1494,_0x31b5c1)&&(_0x46d2e5[0x0]['attributes']['groupId']==_0xd3885c[0x0]['attributes']['groupId']||_0x46d2e5[0x0]['attributes']['trackingSessionId']===_0xd3885c[0x0]['attributes']['trackingSessionId']&&(!!_0x46d2e5['every'](_0x582359=>_0xd3885c['some'](_0x8c9d64=>_0x582359['getFirstRange']()['isEqual'](_0x8c9d64['getFirstRange']())))&&_0xd3885c['every'](_0x17c308=>_0x46d2e5['some'](_0x263a25=>_0x17c308['getFirstRange']()['isEqual'](_0x263a25['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x29fba5){const _0x146624=Array['from'](_0x29fba5),_0x513116=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc846b5=_0x513116['filter'](_0x4efb4f=>!_0x29fba5['has'](_0x4efb4f)),_0x21ae73=new Map(_0x146624['map'](_0x2fdc6c=>[_0x2fdc6c,this['_suggestionFactory']['getSuggestionCallback'](_0x2fdc6c['type'],_0x2fdc6c['subType'],'join')])),_0x377a62=new Map(_0x513116['map'](_0x5ba51f=>[_0x5ba51f,_0x5ba51f['getRanges']()]));for(let _0x50b5a0=0x0;_0x50b5a0<_0x146624['length'];_0x50b5a0++)if(_0x559753(this,_0x146624[_0x50b5a0],_0x146624,_0x50b5a0+0x1))return!0x0;for(let _0x4d579c=0x0;_0x4d579c<_0x146624['length'];_0x4d579c++)if(_0x559753(this,_0x146624[_0x4d579c],_0xc846b5,0x0))return!0x0;return!0x1;function _0x559753(_0x1638fd,_0x4af642,_0x46526d,_0x57126e){for(let _0x4a2b6d=_0x57126e;_0x4a2b6d<_0x46526d['length'];_0x4a2b6d++){const _0x2c8e6b=_0x46526d[_0x4a2b6d];if(_0x2c8e6b['type']!==_0x4af642['type']||_0x2c8e6b['author']['id']!==_0x4af642['author']['id']||_0x2c8e6b['subType']!==_0x4af642['subType'])continue;if(!pn(_0x4af642,_0x2c8e6b))continue;if('attribute'==_0x4af642['type']&&_0x4af642['data']['oldValue']!=_0x2c8e6b['data']['oldValue'])continue;if('attribute'==_0x4af642['type']&&_0x1638fd['_suggestionsConversion']['isBlockAttribute'](_0x4af642['data']['key']))continue;if('formatBlock'==_0x4af642['type']){const _0x402c1a=_0x1638fd['editor']['model'],_0x159ebe=_0x4af642['getContainedElement']();if(_0x159ebe&&(_0x402c1a['schema']['isObject'](_0x159ebe)||_0x402c1a['schema']['isLimit'](_0x159ebe)))continue;}const _0x320a9b=_0x21ae73['get'](_0x4af642),_0x1284ef=_0x377a62['get'](_0x4af642),_0x15e110=_0x377a62['get'](_0x2c8e6b),_0xd61c16=_0x4af642['commentThread']&&_0x4af642['commentThread']['length'],_0x2b6cce=_0x2c8e6b['commentThread']&&_0x2c8e6b['commentThread']['length'];if(!_0xd61c16&&_0x320a9b(_0x15e110,_0x1284ef))return _0x1638fd['_joinSuggestions'](_0x2c8e6b,_0x4af642),_0x377a62['delete'](_0x4af642),!0x0;if(!_0x2b6cce&&_0x320a9b(_0x1284ef,_0x15e110))return _0x1638fd['_joinSuggestions'](_0x4af642,_0x2c8e6b),_0x377a62['delete'](_0x2c8e6b),!0x0;}return!0x1;}}_joinSuggestions(_0x29196d,_0x1b22e9){if(_0x29196d['isMultiRange']){for(const _0x45ffbf of _0x1b22e9['getRanges']())_0x29196d['addRange'](_0x45ffbf);}else{const _0x44240a=_0x1b22e9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x29196d,this['_model']['createRange'](_0x29196d['getFirstRange']()['start'],_0x44240a));}_0x1b22e9['removeMarkers']();}_getMarkerAnnouncementText(_0x373d13,_0x5ce9f2,_0x5e2bac){const _0x38f4f4=_0x373d13['startsWith']('format')||_0x373d13['startsWith']('attribute')?'FORMATTING':_0x373d13['toUpperCase']();return Mt(this['editor']['locale'],_0x5ce9f2+'_'+_0x38f4f4+'_SUGGESTION_ANNOUNCEMENT',_0x5e2bac);}_initAriaMarkerChangeAnnouncements(){const _0x3132b4=this['editor'];if(!_0x3132b4['ui'])return;const {ariaLiveAnnouncer:_0x1159e5}=_0x3132b4['ui'];et(this['_model'],({left:_0x2934bb,entered:_0x434fca})=>{for(const _0x5202ff of _0x2934bb){const {group:_0x1b2cee,type:_0x1d4978}=tt(_0x5202ff['name']);if('suggestion'===_0x1b2cee){_0x1159e5['announce'](this['_getMarkerAnnouncementText'](_0x1d4978,'LEAVE'));break;}}for(const _0x38defd of _0x434fca){const {group:_0x1e4d2b,type:_0x480887}=tt(_0x38defd['name']);if('suggestion'===_0x1e4d2b){_0x1159e5['announce'](this['_getMarkerAnnouncementText'](_0x480887,'ENTER',_0xe73984(_0x58c131)));break;}}});}_processAttributeChanges(_0x4a939c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b4fe3=this['editor'],_0x4a0ed6=_0x3b4fe3['model']['document']['differ']['getChanges']();if(0x0==_0x4a0ed6['length'])return!0x1;const _0x4fad96=[],_0x48c693=_0x4a0ed6['filter'](_0x5e429e=>'attribute'==_0x5e429e['type']),_0x6fb569=_0x4a0ed6['filter'](_0x58b4f0=>'insert'==_0x58b4f0['type']&&'$text'!=_0x58b4f0['name']),_0xcf2870=_0x4a0ed6['filter'](_0x3ed2ba=>'remove'==_0x3ed2ba['type']&&'$text'!=_0x3ed2ba['name']);for(const _0x300d54 of _0x48c693)_0x4fad96['push']({'key':_0x300d54['attributeKey'],'newValue':_0x300d54['attributeNewValue'],'oldValue':_0x300d54['attributeOldValue'],'range':En(_0x300d54['range'],_0x3b4fe3['model'])});for(const _0x12bc6e of _0x6fb569){const _0x134f9d=_0xcf2870['find'](_0x19a50d=>_0x19a50d['position']['isEqual'](_0x12bc6e['position']));_0x134f9d&&_0x4fad96['push']({'key':sn,'newValue':_0x12bc6e['name'],'oldValue':_0x134f9d['name'],'range':_0x3b4fe3['model']['createRangeOn'](_0x12bc6e['position']['nodeAfter'])});}return 0x0!=_0x4fad96['length']&&this['_reduceExistingSuggestions'](_0x4a939c,_0x4fad96);}_processAttributeSuggestions(_0x25f97b){let _0xa4c0c8=!0x1;const _0x4be835=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1199ae=>_0x1199ae['data']['newRange']&&_0x1199ae['name']['startsWith']('suggestion:attribute:'));for(const _0x121eb9 of _0x4be835){const {subType:_0x6936c,id:_0x9ecb62}=tt(_0x121eb9['name']),_0x1904df=_0x6936c['split']('|')[0x0];for(const _0x194138 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x194138['id']!=_0x9ecb62&&'attribute'==_0x194138['type']&&_0x194138['data']&&_0x194138['data']['key']==_0x1904df&&_0x194138['getFirstRange']()['isIntersecting'](_0x121eb9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x194138,_0x121eb9['data']['newRange'],_0x25f97b),_0xa4c0c8=!0x0);}return _0xa4c0c8;}recordAttributeChanges(_0x5a06ae){this['_recordAttributeSuggestions']=!0x0,_0x5a06ae();}_reduceExistingSuggestions(_0x49f310,_0x461478){if(0x0==_0x461478['length'])return!0x1;let _0x3ed22e=!0x1;for(const _0x1b8ac0 of _0x461478){const _0x5d7217=this['_findSuggestions'](_0x1b8ac0['range'],'attribute')['filter'](_0x22be3b=>!_0x22be3b['meta']['isNextTo'])['map'](_0x51940c=>_0x51940c['suggestion']),_0x12bb96=_0x414676({'newValue':_0x1b8ac0['newValue']});_0x5d7217['filter'](_0x10ba7c=>{const [_0x2ef65b,_0x527858]=_0x10ba7c['subType']['split']('|');return _0x2ef65b==_0x1b8ac0['key']&&_0x527858!=_0x12bb96;})['forEach'](_0x5e589b=>{this['_reduceSuggestionAttributeRange'](_0x5e589b,_0x1b8ac0['range'],_0x49f310),_0x3ed22e=!0x0;});}return _0x3ed22e;}_reduceSuggestionAttributeRange(_0x257530,_0x10f4a8,_0x172518){const _0x4e40a8=_0x257530['getFirstRange']()['getDifference'](_0x10f4a8);0x0!==_0x4e40a8['length']?0x1!==_0x4e40a8['length']?this['_breakSuggestionMarker'](_0x257530,_0x10f4a8['start'],_0x10f4a8['end']):this['_setSuggestionRange'](_0x257530,_0x4e40a8[0x0]):_0x172518['removeMarker'](_0x257530['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0xbf09ea){this['_editor']=_0xbf09ea,this['_model']=_0xbf09ea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x235822,_0x23d1be,_0x45a8ae,_0x5d3b74,_0xd5960e,_0x3c4051,_0x267aa5){return new St(this['_model'],{'type':_0x235822,'subType':_0x23d1be,'id':_0x45a8ae,'originalSuggestionId':_0x267aa5,'author':_0x5d3b74,'creator':_0x5d3b74,'attributes':_0xd5960e,'onAttributesChange':_0x3c4051,'onAccept':(..._0x208fc6)=>this['getSuggestionCallback'](_0x235822,_0x23d1be,'accept')(..._0x208fc6),'onDiscard':(..._0x570519)=>this['getSuggestionCallback'](_0x235822,_0x23d1be,'discard')(..._0x570519)});}registerCustomCallback(_0x30ff8b,_0x530b82,_0x2ca7a3,_0x2aa2dc){const _0x1ba099=_0x30ff8b+':'+_0x530b82+':'+_0x2ca7a3;this['_customCallbacks']['set'](_0x1ba099,_0x2aa2dc);}getSuggestionCallback(_0x752a20,_0xa21f6b,_0x5ce9cd){const _0x25a7fd=_0x752a20+':'+_0xa21f6b+':'+_0x5ce9cd;return this['_customCallbacks']['get'](_0x25a7fd)||this['_defaultCallbacks']['get'](_0x752a20+':'+_0x5ce9cd);}_registerDefaultCallbacks(){const _0x52ba65=()=>!0x1,_0x4da9a6=_0x1062b4=>{_0x1062b4['sort']((_0x4e42e1,_0x3370d7)=>_0x4e42e1['start']['isBefore'](_0x3370d7['start'])?0x1:-0x1),this['_model']['change'](_0x29e7dc=>{for(const _0x37cdcd of _0x1062b4){let _0x10b96d;_0x10b96d=_0x37cdcd['end']['isAtEnd']&&_0x37cdcd['end']['parent']==_0x37cdcd['start']['nodeAfter']?_0x29e7dc['createSelection'](_0x37cdcd['start']['nodeAfter'],'on'):_0x29e7dc['createSelection'](_0x37cdcd),this['_model']['deleteContent'](_0x10b96d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xb1029a=(_0x32f2fc,_0x516a0e)=>{_0x516a0e&&this['_model']['change'](_0x3645a6=>{const {commandName:_0x273d64,commandParams:_0x4485c6=[]}=_0x516a0e,_0x4373e2=_0x32f2fc['map'](_0x37150b=>(un(_0x37150b)&&(_0x37150b=this['_model']['createRange'](_0x37150b['end'])),_0x37150b))['filter'](_0x17eb84=>'$graveyard'!==_0x17eb84['root']['rootName']);if(_0x4373e2['length']<0x1)return;const _0x234dd9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd57b66=>rt['fromRange'](_0xd57b66));_0x3645a6['setSelection'](_0x4373e2);for(const _0x2bdfe0 of this['_editor']['commands']['commands']())_0x2bdfe0['refresh']();_0x4485c6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x273d64,..._0x4485c6);const _0x45870c=_0x234dd9['filter'](_0xe3afce=>'$graveyard'!=_0xe3afce['root']['rootName']);_0x45870c['length']>0x0&&_0x3645a6['setSelection'](_0x45870c);for(const _0x4947c9 of _0x234dd9)_0x4947c9['detach']();});},_0x37ea87=(_0x221609,_0x4e8dc0)=>0x1==_0x221609['length']&&0x1==_0x4e8dc0['length']&&_0x221609[0x0]['end']['isEqual'](_0x4e8dc0[0x0]['start']),_0x5cd417=(_0x368deb,_0x424102,_0x5b095c,_0x145275)=>_n(_0x368deb,_0x424102,_0x5b095c,_0x145275)?[_0x368deb,_0x424102]:_n(_0x424102,_0x368deb,_0x145275,_0x5b095c)?[_0x424102,_0x368deb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52ba65),this['_defaultCallbacks']['set']('insertion:discard',_0x4da9a6),this['_defaultCallbacks']['set']('insertion:join',_0x37ea87),this['_defaultCallbacks']['set']('insertion:chain',_0x5cd417),this['_defaultCallbacks']['set']('deletion:accept',_0x4da9a6),this['_defaultCallbacks']['set']('deletion:discard',_0x52ba65),this['_defaultCallbacks']['set']('deletion:join',_0x37ea87),this['_defaultCallbacks']['set']('deletion:chain',_0x5cd417),this['_defaultCallbacks']['set']('formatInline:accept',_0xb1029a),this['_defaultCallbacks']['set']('formatInline:discard',_0x52ba65),this['_defaultCallbacks']['set']('formatInline:join',_0x37ea87),this['_defaultCallbacks']['set']('formatInline:chain',_0x52ba65),this['_defaultCallbacks']['set']('formatBlock:accept',_0xb1029a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52ba65),this['_defaultCallbacks']['set']('formatBlock:join',_0x37ea87),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52ba65),this['_defaultCallbacks']['set']('attribute:accept',_0x52ba65),this['_defaultCallbacks']['set']('attribute:discard',(_0xe19b2,_0x54ebdc)=>{if(!_0x54ebdc)return;const _0x3e9664=this['_editor']['plugins']['get'](_0x5b8360);this['_model']['change'](_0x3e25fe=>{if('$elementName'==_0x54ebdc['key'])for(const _0x5122ff of _0xe19b2){const _0x5e960b=_0x5122ff['start']['nodeAfter'],_0x474a86=_0x54ebdc['oldValue'];_0x3e25fe['rename'](_0x5e960b,_0x474a86);}else{if(_0x3e9664['isBlockAttribute'](_0x54ebdc['key'])){for(const _0x4d707c of _0xe19b2)void 0x0!==_0x54ebdc['oldValue']?_0x3e25fe['setAttribute'](_0x54ebdc['key'],_0x54ebdc['oldValue'],_0x4d707c['start']['nodeAfter']):_0x3e25fe['removeAttribute'](_0x54ebdc['key'],_0x4d707c['start']['nodeAfter']);}else{for(const _0x412f14 of _0xe19b2)_0x54ebdc['oldValue']?_0x3e25fe['setAttribute'](_0x54ebdc['key'],_0x54ebdc['oldValue'],_0x412f14):_0x3e25fe['removeAttribute'](_0x54ebdc['key'],_0x412f14);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x37ea87);}};function ln(_0xf5cda7,_0x15f9d3,_0x5aedd1){for(const _0xde2be4 of _0x15f9d3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xde2be4['root']==_0xde2be4)return!0x1;if(!_0x5aedd1['containsItem'](_0xde2be4))return!0x1;if(_0xf5cda7['isObject'](_0xde2be4)||_0xf5cda7['isLimit'](_0xde2be4))return!0x0;}return!0x1;}function un(_0x2008d8){return _0x2008d8['end']['parent']==_0x2008d8['start']['nodeAfter']&&_0x2008d8['end']['isAtStart'];}function dn(_0x11983e,_0x1ec6e5,_0x462ed0,_0x43eb14){const _0x2f8312=_0x369788=>!_0x369788['item']['is']('$textProxy')&&!_0x43eb14['isObject'](_0x369788['item']),_0x5900e9=_0x11983e['start']['getLastMatchingPosition'](_0x2f8312),_0xdb1431=_0x11983e['end']['getLastMatchingPosition'](_0x2f8312,{'direction':'backward'});return(!_0x11983e['start']['isEqual'](_0x5900e9)||!_0x11983e['end']['isEqual'](_0xdb1431))&&(_0x5900e9['isBefore'](_0xdb1431)?_0x462ed0['updateMarker'](_0x1ec6e5,{'range':_0x462ed0['createRange'](_0x5900e9,_0xdb1431)}):_0x462ed0['removeMarker'](_0x1ec6e5),!0x0);}function hn(_0x522cc3){return _0x414676(_0x522cc3);}function gn(_0x322186){const _0x1b7867=_0x322186['start']['nodeAfter'];return _0x1b7867&&_0x1b7867['is']('element');}function fn(_0x5994a0){return un(_0x5994a0)||function(_0x2d3aa8){return _0x2d3aa8['start']['parent']==_0x2d3aa8['end']['nodeBefore']&&_0x2d3aa8['start']['isAtEnd'];}(_0x5994a0);}function mn(_0x25226a,_0x52fe40){try{const _0x34d0a3=_0x25226a['getRange']();for(const _0x532fd9 of _0x52fe40)if(_0x25226a!==_0x532fd9&&_0x34d0a3&&_0x34d0a3['isIntersecting'](_0x532fd9['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x3ace08,_0x143d55){return null==_0x3ace08['end']['nodeBefore']&&_0x3ace08['end']['parent']==_0x3ace08['start']['nodeAfter']?Tn(_0x3ace08['start']['nodeAfter'],_0x143d55):_0x3ace08;}function Tn(_0x1fc86f,_0x104ea4){const _0x43c2f5=_0x104ea4['schema']['isObject'](_0x1fc86f)||_0x104ea4['schema']['isSelectable'](_0x1fc86f);return _0x104ea4['createRange'](_0x104ea4['createPositionAt'](_0x1fc86f,'before'),_0x43c2f5?_0x104ea4['createPositionAfter'](_0x1fc86f):_0x104ea4['createPositionAt'](_0x1fc86f,'end'));}function _n(_0x3f4fc0,_0x13920a,_0x28946b,_0x1e172c){return!!pn(_0x3f4fc0,_0x13920a)&&_0x28946b['end']['isEqual'](_0x1e172c['start']);}function pn(_0x49e746,_0x21ae0c){if(!_0x49e746['_isDataLoaded']||!_0x21ae0c['_isDataLoaded'])return!0x1;const _0x124f3e=new Set(Object['keys'](_0x49e746['attributes'])),_0x289896=new Set(Object['keys'](_0x21ae0c['attributes']));if(_0x124f3e['delete']('groupId'),_0x289896['delete']('groupId'),0x0==_0x124f3e['size']&&0x0==_0x289896['size'])return!0x0;if(_0x124f3e['size']!=_0x289896['size'])return!0x1;const _0x5c8664={..._0x49e746['attributes']},_0x288e06={..._0x21ae0c['attributes']};return delete _0x5c8664['groupId'],delete _0x288e06['groupId'],JSON['stringify'](_0x5c8664)==JSON['stringify'](_0x288e06);}function Ln(_0x41afea,_0x300473){const _0x426f92=In(_0x41afea['attributes']),_0x3af0ca=In(_0x300473);if(!_0x41afea['_isDataLoaded'])return!0x1;if(!ct(_0x426f92['@ai'],_0x3af0ca['@ai']))return!0x1;for(const _0x1b027f of Object['keys'](_0x3af0ca))if(!ct(_0x426f92[_0x1b027f],_0x3af0ca[_0x1b027f]))return!0x1;return!0x0;}function In(_0x233143){const _0x2b62e5=Object['assign']({},_0x233143);return delete _0x2b62e5['skipNestingCheck'],delete _0x2b62e5['tablePasteChainId'],_0x2b62e5;}function An(_0x3b7edf){return _0x3b7edf['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x525997();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x35ce70,_0x3fbac6,_0x2eb102,_0x449d14){super(),this['model']=_0x3fbac6,this['view']=_0x2eb102,this['commentThreadController']=_0x449d14,this['_editor']=_0x35ce70,this['_acceptCommand']=_0x35ce70['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35ce70['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x353da0,_0x2626cf)=>_0x353da0||_0x2626cf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x91c34e=>_0x91c34e&&this['_editor']['model']['canEditAt'](_0x3fbac6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x238831=>_0x238831&&this['_editor']['model']['canEditAt'](_0x3fbac6['getRanges']())),this['_pendingAction']=null,_0x2eb102['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2eb102,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2eb102,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2eb102,'change:isDirty',()=>{_0x2eb102['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 _0x4a60e7=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a60e7);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x21bd75{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c881f,_0x5e83c3,_0x2ac8e2,_0xe11e13){super(_0x4c881f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x21919c(_0x4c881f,Mt(_0x4c881f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e83c3['authoredAt']),this['bind']('authoredAt')['to'](_0x5e83c3),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',_0x5e83c3,'authoredAt',this,'descriptionParts',(_0x24cf22,_0x434ae9,_0x3b8b85)=>{const _0x54dae7=_0x3b8b85['map'](_0x1844c7=>Lt(_0x1844c7['content']))['join']('.\x20')+'.',_0x2f6676=_0x5e83c3['aiSource']&&'author'===_0xe11e13['showAISource']?_0xe11e13['aiAuthor']['name']:_0x5e83c3['author']['name'],_0x4d6566=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x24cf22-0x1,_0x2f6676,_0x434ae9?_0xe11e13['formatDateTime'](_0x434ae9):'',new DOMParser()['parseFromString'](_0x54dae7,'text/html')['body']['textContent']]);return _0x5e83c3['aiSource']&&'pill'===_0xe11e13['showAISource']?_0x4d6566+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x4d6566;}),this['focusables']=new _0x4dbb2d(),this['focusTracker']=new _0x5a4440(),this['keystrokes']=new _0x9d62cf(),this['focusCycler']=new _0x2f7b83({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3469d3=>_0x3469d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5e83c3,this['_localUser']=_0x2ac8e2,this['_config']=_0xe11e13,_0xe11e13['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x231474(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x49a67f}=this['_config'];this['commentsListView']=new _0x49a67f(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',_0x115c94=>_0x115c94+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x40499e,_0xd43461)=>_0x40499e||!!_0xd43461);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x265a55}=this['_config'],_0x176afa=new _0x265a55(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49f6e7=_0x176afa['commentInputView'];return _0x176afa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49f6e7,'value',(_0x4c2d33,_0x581e88,_0x1bab35)=>!!_0x1bab35||_0x4c2d33&&!_0x581e88),_0x49f6e7['on']('submit',(_0x52801c,_0x452eb8)=>{this['fire']('addComment',_0x452eb8),_0x49f6e7['editor']['setData']('');}),_0x49f6e7['on']('cancel',()=>this['focus']()),_0x49f6e7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176afa;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x574cb0,_0x93a255,_0x62dd4c,_0x104a25){super(_0x574cb0,_0x93a255,_0x62dd4c,_0x104a25),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5f305e=>_0x5f305e&&_0x5f305e[0x0]?_0x5f305e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x34f75d,_0x2ebf17)=>{let _0x3040c0='';for(const _0x20999e of _0x34f75d)_0x3040c0+='<p>'+Lt(_0x20999e['content'],_0x20999e['color'])+'</p>';return _0x2ebf17?_0x3040c0:nt(_0x3040c0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104a25['SuggestionView'](_0x574cb0,_0x93a255,{'formatDateTime':_0x104a25['formatDateTime'],'showAISource':_0x104a25['showAISource'],'aiAuthor':_0x104a25['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 _0x1943d6=this['bindTemplate'],_0x27d9de=[this['suggestionView']];return this['commentsListView']&&_0x27d9de['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27d9de['push'](this['commentThreadInputView']),_0x27d9de['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1943d6['if']('isActive','ck-suggestion-wrapper--active'),_0x1943d6['to']('type',_0x21c0f8=>'ck-suggestion-'+_0x21c0f8),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':_0x1943d6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27d9de};}['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 _0x21bd75{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x315679,_0x55a3f6,_0x36a509){super(_0x315679),this['_model']=_0x55a3f6,this['_config']=_0x36a509,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55a3f6),this['acceptButton']=this['_createButton'](Mt(_0x315679,'Accept\x20suggestion'),_0x4d01a3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x315679,'Discard\x20suggestion'),_0x368046,'ck-suggestion--discard','discardSuggestion','sw');const _0x2ae1a8=!!_0x55a3f6['aiSource']&&'author'===_0x36a509['showAISource'],_0x4ad7f3=_0x2ae1a8?this['_createAIUser'](_0x36a509['aiAuthor']):_0x55a3f6['author'],_0x25de26=_0x2ae1a8&&!_0x36a509['aiAuthor']['avatar']?_0x3c9f84:void 0x0;this['userView']=new _0x19fe81(_0x315679,_0x4ad7f3,this['getUserViewNotificationText'](),_0x25de26),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4dbb2d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a4440(),this['keystrokes']=new _0x9d62cf(),this['focusCycler']=new _0x2f7b83({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1577e5=>_0x1577e5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4e1ef2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4e1ef2['innerHTML']=this['description'],this['on']('change:description',(_0x1e6fde,_0x534441,_0x4f722c)=>{_0x4e1ef2['innerHTML']=_0x4f722c;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x4f2f61=this['bindTemplate'],_0x4d3696=[{'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':_0x4f2f61['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4f2f61['to']('authoredAt',_0x4ecac8=>this['_config']['formatDateTime'](_0x4ecac8))}]}]},{'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']&&_0x4d3696['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x27873b=new _0xccde03(this['locale']);_0x27873b['set']({'icon':_0x482d2e,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4d3696['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x27873b]});}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':_0x4d3696}]};}['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(_0x2e2f2b){return new _0x19710e({'id':'ck-ai-author','name':_0x2e2f2b['name'],'avatar':_0x2e2f2b['avatar'],'color':new _0x25211d(0x0)});}_createButton(_0xb39ebb,_0x3b3faf,_0x5f2619,_0x1abcfc,_0x2f405c){const _0x3fd806=new _0x3afb84(this['locale']);return _0x3fd806['set']({'label':_0xb39ebb,'icon':_0x3b3faf,'tooltip':!0x0,'tooltipPosition':_0x2f405c}),_0x3fd806['extendTemplate']({'attributes':{'class':_0x5f2619}}),_0x3fd806['on']('execute',()=>{this['fire'](_0x1abcfc,this['_model']['id']);}),_0x3fd806;}_setupKeyboardNavigation(){const _0x4097ec=this['element'];this['keystrokes']['listenTo'](_0x4097ec);for(const _0x4e5607 of this['focusables'])this['focusTracker']['add'](_0x4e5607['element']),this['keystrokes']['listenTo'](_0x4e5607['element']);this['keystrokes']['set']('enter',(_0x4696e6,_0x2a8326)=>{_0x4097ec===_0x4696e6['target']&&(this['focusCycler']['focusFirst'](),_0x2a8326());}),this['keystrokes']['set']('esc',(_0x5e393a,_0x3607e6)=>{_0x4097ec!==_0x5e393a['target']&&(this['focus'](),_0x3607e6());});}},Nn=class extends _0x5ba5d4{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x5d6c79,_0x5efbfe,_0x4c867f,_0x1f718d];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x299680){super(_0x299680),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5937d2=this['editor']['config'];_0x5937d2['define']('trackChanges.SuggestionThreadView',Rn),_0x5937d2['define']('trackChanges.SuggestionView',yn),_0x5937d2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5937d2['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x454b98,_0x93345e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bd8e2,_0x419f38]of this['_handleControllerBuffer']){const _0x13951e=this['_suggestionToController']['has'](_0x3bd8e2);_0x13951e||_0x419f38?_0x13951e&&_0x419f38&&this['_destroyController'](_0x3bd8e2):this['_initializeController'](_0x3bd8e2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1f718d)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x454b98,_0x93345e);}init(){const _0x3530bf=this['editor'],_0x2ea222=_0x3530bf['plugins']['get'](an),_0x296865=_0x3530bf['plugins']['get'](_0x4c867f),_0xffa994=_0x3530bf['plugins']['get'](_0x1f718d),_0x57aa1e=_0x3530bf['plugins']['get'](_0x5efbfe);this['_addUIComponentsToFactory'](),_0xffa994['addSourceCollector'](()=>{const _0x388893=[];for(const [_0x276406,_0x5d04e8]of Array['from'](this['_suggestionToController'])){const _0x541f1f=_0x276406['getAllAdjacentSuggestions'](),_0x2dd1ea=[];for(const _0x2bdbdb of _0x541f1f){if(!_0x2bdbdb['isInContent'])continue;if(_0x2bdbdb['isMultiRange']){_0x2dd1ea['push'](..._0x2bdbdb['getRanges']());continue;}const _0xc10cc2=_0x2bdbdb['getFirstRange']();if(_0x2dd1ea['length']>0x0){const _0x1968df=_0x2dd1ea[0x0]['getJoined'](_0xc10cc2);if(_0x1968df){_0x2dd1ea[0x0]=_0x1968df;continue;}}_0x2dd1ea['push'](_0xc10cc2);}_0x388893['push']([_0x5d04e8['view'],_0x2dd1ea]);}return _0x388893;}),this['listenTo'](_0x2ea222,'suggestionLoaded',(_0x3b76d2,_0xf79daf)=>{this['listenTo'](_0xf79daf,'change:previous',(_0x23f1cc,_0x110951,_0x53c3ea,_0x909574)=>{_0xf79daf['isInContent']&&(null==_0x53c3ea?(this['_updateController'](_0x909574['head']),this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x1)):(this['_updateController'](_0x53c3ea['head']),null==_0x909574&&this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x0)));}),null!==_0xf79daf['previous']?this['_updateController'](_0xf79daf['head']):this['_handleSuggestionControllerDelayed'](_0xf79daf,!0x1);}),this['listenTo'](_0x2ea222,'suggestionUnloaded',(_0x2bcd64,_0x281976,_0x4d101f)=>{this['stopListening'](_0x281976,'change:previous'),this['_handleControllerBuffer']['delete'](_0x281976),this['_suggestionToController']['has'](_0x281976)&&this['_destroyController'](_0x281976),_0x4d101f&&this['_updateController'](_0x4d101f['head']);}),this['listenTo'](_0x2ea222,'suggestionChanged',(_0x30b292,_0x1405ce)=>{this['_updateController'](_0x1405ce);}),this['listenTo'](_0x296865,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x57aa1e,'addComment',(_0x596652,{threadId:_0x2c086d,isFromAdapter:_0x59cc8b})=>{if(_0x59cc8b||!_0x2ea222['hasSuggestion'](_0x2c086d))return;const _0x2a6a5e=_0x2ea222['getSuggestion'](_0x2c086d);this['_suggestionToController']['get'](_0x2a6a5e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x33aa9c=[this['editor']];for(const _0x2303ab of _0x33aa9c){let _0x100498;for(const _0x3d2341 in _0x2303ab){const _0x700bc9=_0x3d2341,_0xb209fd=_0x2303ab[_0x700bc9];if('trackChangesLicenseKeyValid'==_0xb209fd||'trackChangesLicenseKeyInvalid'==_0xb209fd||'trackChangesLicenseKeyExpired'==_0xb209fd||'trackChangesLicenseKeyDomainLimit'==_0xb209fd||'trackChangesLicenseKeyNotAllowed'==_0xb209fd||'trackChangesLicenseKeyEvaluationLimit'==_0xb209fd||'trackChangesLicenseKeyUsageLimit'==_0xb209fd){delete _0x2303ab[_0x700bc9],_0x100498=_0xb209fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x100498&&_0x2303ab['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x100498&&_0x2303ab['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x100498&&_0x2303ab['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x100498&&_0x2303ab['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x100498&&_0x2303ab['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x100498&&_0x2303ab['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x2d5b66){const _0x5260ae=this['_suggestionToController']['get'](_0x2d5b66);return _0x5260ae&&this['editor']['plugins']['get'](_0x4c867f)['getByInnerView'](_0x5260ae['view'])||null;}getSuggestionForAnnotation(_0x1d8f1a){const _0x538105=this['_viewToController']['get'](_0x1d8f1a['innerView']);return _0x538105?_0x538105['model']:null;}_refreshActiveMarkers(){const _0x2bef76=this['editor']['plugins']['get'](_0x4c867f),_0x49e0b6=this['editor']['plugins']['get'](an),_0x4eb557=Array['from'](_0x2bef76['activeAnnotations'],_0x175b3b=>_0x175b3b['innerView'])['filter'](_0x750aa6=>this['_viewToController']['has'](_0x750aa6)),_0x4575d1=[];for(const _0xc19e70 of _0x4eb557){const _0x267321=this['_viewToController']['get'](_0xc19e70)['model']['getAllAdjacentSuggestions']();_0x4575d1['push'](..._0x267321['reduce']((_0x56c108,_0x41fe53)=>[..._0x56c108,..._0x41fe53['getMarkerNames']()],[]));}_0x49e0b6['activeMarkers']=_0x4575d1;}_addUIComponentsToFactory(){const _0x2cb060=this['editor'],_0x3ea62c=_0x2cb060['locale'],_0x40ac36=Mt(_0x3ea62c,'Track\x20changes'),_0x37d01e=new _0x290ed9([{'type':'switchbutton','model':new _0x44b220({'withText':!0x0,'isToggleable':!0x0,'label':_0x40ac36,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2cb060['plugins']['has']('TrackChangesPreview')&&_0x37d01e['addMany']([{'type':'separator'},{'type':'button','model':new _0x44b220({'withText':!0x0,'label':Mt(_0x3ea62c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b72ab of _0x37d01e)if(Sn(_0x3b72ab)){const _0x2ff4cb=_0x2cb060['commands']['get'](_0x3b72ab['model']['commandName']);_0x3b72ab['model']['bind']('isOn','isEnabled')['to'](_0x2ff4cb,'value','isEnabled');}_0x2cb060['ui']['componentFactory']['add']('trackChanges',_0x3b9fec=>this['_createToolbarButton'](_0x3b9fec,_0x37d01e,_0x40ac36)),_0x2cb060['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2adff6=>this['_createMenuBarMenu'](_0x2adff6,_0x37d01e,_0x40ac36));}_createToolbarButton(_0x267856,_0xc30def,_0x138741){const _0x17417f=_0x3916a0(_0x267856,_0x50191e),_0x407389=this['editor']['commands']['get']('trackChanges');_0x17417f['buttonView']['set']({'tooltip':_0x138741,'label':_0x138741,'icon':_0x41d7f3}),_0x17417f['buttonView']['bind']('isOn')['to'](_0x407389,'value'),_0x17417f['buttonView']['on']('execute',()=>{_0x407389['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e0e44(_0x17417f,_0xc30def,{'role':'menu'});const _0x21096f=[];for(const _0x4cd7a9 of _0xc30def)Sn(_0x4cd7a9)&&_0x21096f['push'](this['editor']['commands']['get'](_0x4cd7a9['model']['commandName']));const _0x549d54=_0x17417f['buttonView'];return _0x549d54['actionView']['unbind']('isEnabled'),_0x549d54['arrowView']['unbind']('isEnabled'),_0x549d54['actionView']['bind']('isEnabled')['to'](_0x407389,'isEnabled'),_0x549d54['arrowView']['bind']('isEnabled')['toMany'](_0x21096f,'isEnabled',(..._0x586f0f)=>_0x586f0f['some'](_0x3b29c4=>_0x3b29c4)),_0x17417f['on']('execute',_0x2d0d28=>{this['editor']['execute'](_0x2d0d28['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x17417f;}_createMenuBarMenu(_0x52bda8,_0x3d2d24,_0x29d75b){const _0x48fb46=new _0x5afca8(_0x52bda8),_0x37538b=this['editor']['commands']['get']('trackChanges');_0x48fb46['buttonView']['set']({'label':_0x29d75b,'icon':_0x41d7f3});const _0x155eca=new _0x547eb3(_0x52bda8);for(const _0xc248be of _0x3d2d24){if('separator'==_0xc248be['type']){_0x155eca['items']['add'](new _0x348bf4(_0x52bda8));continue;}const _0x30712b=new _0x267cce(_0x52bda8,_0x48fb46),_0x51b52c=new _0x43757c(_0x52bda8),_0x5ad8a3=_0xc248be['model'];_0x51b52c['bind'](...Object['keys'](_0x5ad8a3))['to'](_0x5ad8a3),_0x51b52c['delegate']('execute')['to'](_0x48fb46),_0x51b52c['on']('execute',()=>{this['editor']['execute'](_0x5ad8a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x30712b['children']['add'](_0x51b52c),_0x155eca['items']['add'](_0x30712b);}return _0x48fb46['bind']('isEnabled')['to'](_0x37538b,'isEnabled'),_0x48fb46['panelView']['children']['add'](_0x155eca),_0x48fb46;}_initializeController(_0x1e5764){const _0x18a46f=this['editor'],_0x5caca9=_0x18a46f['config'],_0x215d25=_0x18a46f['plugins']['get'](_0x4c867f),_0x50c250=_0x18a46f['plugins']['get'](_0x5efbfe),_0xbeb306=_0x18a46f['plugins']['get'](_0x1f718d),_0x507b17=_0x18a46f['plugins']['get'](_0x5d6c79)['me'],_0x3f2b8f=_0x5caca9['get']('trackChanges')['SuggestionThreadView'],_0x77d370=_0x5caca9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a5835,CommentThreadInputView:_0x3abb1b}=_0x18a46f['plugins']['get']('CommentsUI');let _0x529bea,_0x3c41db,_0x4ab82a;this['_annotationViews']['has'](_0x1e5764['id'])?(_0x3c41db=this['_annotationViews']['get'](_0x1e5764['id']),_0x529bea=_0x3c41db['mainView']):(_0x529bea=new _0x3f2b8f(_0x18a46f['locale'],_0x1e5764,_0x507b17,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5caca9['get']('comments.editorConfig'),'licenseKey':_0x5caca9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5caca9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5caca9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5caca9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x127f7b(_0x5caca9['get']('locale'),_0x18a46f['locale']),'CommentView':_0x5caca9['get']('comments')['CommentView'],'CommentsListView':_0x2a5835,'CommentThreadInputView':_0x3abb1b,'SuggestionView':_0x77d370,'showAISource':_0x5caca9['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5caca9['get']('trackChanges.aiAuthor'),'name':_0x5caca9['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x18a46f['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x529bea['suggestionView']['acceptButton']['on']('execute',()=>{_0x18a46f['editing']['view']['focus']();}),_0x529bea['suggestionView']['discardButton']['on']('execute',()=>{_0x18a46f['editing']['view']['focus']();}),_0x3c41db=_0x215d25['createAnnotationView'](this['editor']['locale'],_0x529bea),_0x3c41db['bind']('isDirty')['to'](_0x529bea,'isDirty'),_0x3c41db['bind']('length')['to'](_0x529bea),_0x3c41db['bind']('type')['to'](_0x529bea,'type',_0x308d6c=>'suggestion-'+_0x308d6c),_0x529bea['on']('escape',()=>{_0x4ab82a['fire']('escape');}),this['_annotationViews']['set'](_0x1e5764['id'],_0x3c41db));const _0xeb97fb=_0x50c250['createCommentThreadController'](_0x1e5764['commentThread'],_0x529bea),_0x514ba2=new kn(_0x18a46f,_0x1e5764,_0x529bea,_0xeb97fb),_0x2eb7e6=_0x1e5764['getAllAdjacentSuggestions']()['filter'](_0x43fe5f=>_0x43fe5f['isInContent']);_0x529bea['descriptionParts']=_0x18a46f['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x2eb7e6),this['_suggestionToController']['set'](_0x1e5764,_0x514ba2),this['_viewToController']['set'](_0x529bea,_0x514ba2);const _0x4496d2=()=>{const _0x344190=[],_0x7e4417=_0x1e5764['getAllAdjacentSuggestions']()['filter'](_0xadf5ce=>_0xadf5ce['isInContent']);for(const _0x306a01 of _0x7e4417)_0x344190['push'](..._0x306a01['getMarkers']());return _0x406bf9(_0x18a46f['editing'],_0x344190);};_0x4ab82a=_0x215d25['createAnnotation']({'view':_0x3c41db,'target':_0x4496d2,'type':()=>'suggestion-'+_0x514ba2['view']['type'],'isVisible':!!_0x4496d2()}),_0x50c250['_bindAnnotationToEditors'](_0x529bea,_0x4ab82a),_0x215d25['add'](_0x4ab82a),_0xbeb306['registerAnnotation'](_0x4ab82a);}_destroyController(_0x36db40){const _0x428cdb=this['editor']['plugins']['get'](_0x5efbfe),_0x3d3313=this['editor']['plugins']['get'](_0x4c867f),_0x1f63e4=this['_suggestionToController']['get'](_0x36db40),_0x372eb9=_0x1f63e4['view'],_0x1494bb=_0x3d3313['getByInnerView'](_0x372eb9);_0x428cdb['_unbindEditors'](_0x372eb9),_0x1494bb&&_0x3d3313['remove'](_0x1494bb),this['_suggestionToController']['delete'](_0x36db40),this['_viewToController']['delete'](_0x372eb9),_0x1f63e4['destroy']();}_updateController(_0x50c0c4){if(!_0x50c0c4['isInContent']||!this['_suggestionToController']['has'](_0x50c0c4))return;const _0x1777dc=this['editor']['plugins']['get'](an),_0x34b75a=this['_suggestionToController']['get'](_0x50c0c4),_0x144835=_0x50c0c4['getAllAdjacentSuggestions']();_0x34b75a['view']['descriptionParts']=_0x1777dc['descriptionFactory']['getDescriptions'](_0x144835);}destroy(){for(const _0x5e4ce6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5e4ce6);for(const _0xb2f9a5 of this['_annotationViews']['values']())_0xb2f9a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x4c68c8){return'model'in _0x4c68c8;}var Mn=class extends _0x5ba5d4{static get requires(){return[an,Nn,_0x1c4719];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x1c93fd){this['editor']['plugins']['get'](an)['adapter']=_0x1c93fd;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x53b951){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x53b951);}getSuggestions({skipNotAttached:_0x356acc=!0x1,toJSON:_0x3a0087=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x356acc,'toJSON':_0x3a0087});}getSuggestion(_0x5e3fbf){return this['editor']['plugins']['get'](an)['getSuggestion'](_0x5e3fbf);}};const On=['Pagination'];var wn=class extends _0x5ba5d4{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x44e202=this['editor'];if(_0x44e202['config']['define']('trackChangesData.editorCreator',_0x571e3a=>{const _0x30c3b5=_0x44e202['model']['document']['getRootNames']()['reduce']((_0x44b9d4,_0x389f9d)=>(_0x44b9d4[_0x389f9d]='',_0x44b9d4),{});return _0x44e202['constructor']['create'](_0x30c3b5,_0x571e3a);}),'function'!=typeof _0x44e202['config']['get']('trackChangesData')['editorCreator'])throw new _0x478e8c('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2d23b3){return vn(this['editor'],!0x0,_0x2d23b3);}getDataWithDiscardedSuggestions(_0x160e53){return vn(this['editor'],!0x1,_0x160e53);}},Fn=class extends _0x5ba5d4{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350f20){super(_0x350f20),this['result']='end',_0x350f20['editing']['view']['_overlayModeHint']='auto',_0x350f20['_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(_0x4fd66c){return void 0x0!==_0x4fd66c['getRootsAttributes'];}async function vn(_0xcc6f56,_0x55dba6,_0x89bbbe){const _0x1c2675=_0x33e767(_0xcc6f56,On);if(_0x1c2675['plugins']['push'](an,Fn),Bn(_0xcc6f56)){_0x1c2675['roots']=Object['create'](null);for(const _0x2b5c83 of _0xcc6f56['model']['document']['getRootNames']())_0x1c2675['roots'][_0x2b5c83]={'modelAttributes':_0xcc6f56['getRootAttributes'](_0x2b5c83)};}const _0xcb453a=document['createDocumentFragment'](),_0x5db70e=_0xcc6f56['config']['get']('trackChangesData')['editorCreator'],_0x416a5e=await _0x5db70e(_0x1c2675,()=>function(_0x4aba9f){const _0x41b0c0=document['createElement']('div');return _0x4aba9f['appendChild'](_0x41b0c0),_0x41b0c0;}(_0xcb453a));!function(_0x43e32c,_0x3ca2a7){const _0x41e3a6=_0x43e32c['model']['document']['getRootNames']()['reduce']((_0x5e70da,_0x48fbd4)=>(_0x5e70da[_0x48fbd4]=_0x43e32c['data']['get']({'rootName':_0x48fbd4}),_0x5e70da),{}),_0x1e5c9f=_0x43e32c['plugins']['get']('Users')['users']['map'](_0x4a417c=>({'id':_0x4a417c['id'],'name':_0x4a417c['name']})),_0x54e8cb=_0x43e32c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45e10b=_0x43e32c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5ba299=_0x3ca2a7['plugins']['get']('Users'),_0x369aa8=_0x3ca2a7['plugins']['get']('TrackChangesEditing'),_0x164c74=_0x3ca2a7['plugins']['get']('CommentsRepository');for(const _0x3df451 of _0x164c74['getCommentThreads']())_0x3df451['remove']();for(const _0x24faee of _0x1e5c9f)_0x5ba299['getUser'](_0x24faee['id'])||_0x5ba299['addUser'](_0x24faee);_0x5ba299['me']||_0x5ba299['useAnonymousUser']();for(const _0x26b381 of _0x45e10b)_0x164c74['addCommentThread'](_0x26b381);for(const _0x49e8a3 of _0x54e8cb)_0x369aa8['addSuggestionData'](_0x49e8a3);_0x3ca2a7['data']['set'](_0x41e3a6);}(_0xcc6f56,_0x416a5e),_0x416a5e['execute'](_0x55dba6?'acceptAllSuggestions':'discardAllSuggestions');const _0x31a4b3=Bn(_0x416a5e)?_0x416a5e['getFullData'](_0x89bbbe):_0x416a5e['data']['get'](_0x89bbbe);return await _0x416a5e['destroy'](),_0x31a4b3;}var Dn=class extends _0x21bd75{options;constructor(_0x58210a,_0x312610){super(_0x58210a),this['options']=_0x312610,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(_0x3e2426,_0x57c198){if(!this['element'])return;const _0x355ebc=[];for(const [_0x468302,_0x14007f]of _0x3e2426){const _0x33ea96=document['createElement']('div');_0x33ea96['setAttribute']('data-ck-root-name',_0x468302),_0x33ea96['className']=_0x14007f['classes']+'\x20ck-track-changes-preview__root-container',_0x33ea96['innerHTML']=_0x14007f['content'],_0x355ebc['push'](_0x33ea96);}_0x57c198(this['element'],_0x355ebc),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x10f950{constructor(_0x5982f5){super(_0x5982f5),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3e570e=this['editor'],_0x3db8c5=_0x3e570e['locale'],_0x56294b=_0x3e570e['plugins']['get']('Dialog');let _0x4f575d;const _0x2c5329=function(_0x47ce53){const _0x3b078b={};if('editables'in _0x47ce53['ui']['view']){for(const [_0x1b9b8b,_0x4b1583]of Object['entries'](_0x47ce53['ui']['view']['editables']))_0x3b078b[_0x1b9b8b]=_0x4b1583['element'];}else _0x3b078b[_0x47ce53['model']['document']['getRootNames']()[0x0]]=_0x47ce53['ui']['view']['editable']['element'];return _0x3b078b;}(_0x3e570e),_0x392906=function(_0x49fc4f){let _0x179ad5=0x0;for(const _0x5dd2e9 of Object['values'](_0x49fc4f))_0x179ad5=Math['max'](_0x179ad5,_0x5dd2e9['getBoundingClientRect']()['width']);let _0x19db4d=0x0;for(const _0x34d2d3 of Object['values'](_0x49fc4f))_0x19db4d+=_0x34d2d3['getBoundingClientRect']()['height'];const _0xdd0baf=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x179ad5,'height':Math['min'](_0x19db4d,_0xdd0baf)};}(_0x2c5329);_0x56294b['show']({'id':'finalContentPreview','title':Mt(_0x3db8c5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x3db8c5,{'dialogRects':_0x392906}),'onHide':()=>{_0x4f575d['detachFromDom']();},'onShow':()=>{_0x3e570e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x37e41e=>{const _0x58e212=this['_standarizeRootsData'](_0x37e41e,_0x3e570e,_0x2c5329);_0x56294b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x58e212,_0x3e570e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f575d=new _0x3c33e8(_0x3db8c5,[_0x56294b['view']]),_0x4f575d['attachToDom'](),_0x4f575d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e570e['once']('destroy',()=>{_0x4f575d['detachFromDom']();});const _0x23f740=_0x56294b['view']['headerView']['class'];_0x56294b['view']['headerView']['class']=_0x23f740?_0x23f740+'\x20ck-reset_all':'ck-reset_all',_0x56294b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x56294b['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56bfb6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f247d=_0x56bfb6['previewMode'],_0x25dcb6={};if('$labels'===_0x3f247d){for(const _0x40f365 of _0x56bfb6['getMergeFieldsIds']())_0x25dcb6[_0x40f365]=_0x56bfb6['getLabel'](_0x40f365)||_0x40f365;}else{const _0xd8b160='$defaultValues'===_0x3f247d?_0x56bfb6['getDefaultValues']():_0x56bfb6['getDataSetValues'](_0x3f247d,!0x0);for(const _0x2fc530 of Object['entries'](_0xd8b160)){const [_0x4239ec,_0x48c615]=_0x2fc530;_0x25dcb6[_0x4239ec]=null!==_0x48c615?_0x48c615:_0x56bfb6['getLabel'](_0x4239ec)||_0x4239ec;}}return{'mergeFieldsData':_0x25dcb6};}_standarizeRootsData(_0x3b94c7,_0x1ad1e3,_0x2491b8){let _0x4bcdac;_0x4bcdac='string'==typeof _0x3b94c7?{[_0x1ad1e3['model']['document']['getRootNames']()[0x0]]:_0x3b94c7}:_0x3b94c7;const _0xb9140c=this['_fixMediaEmbeds'](_0x4bcdac,_0x1ad1e3);return function(_0x2cfa4e,_0x326e91){for(const [_0x9c0bb5,_0x5f13d5]of _0x2cfa4e)_0x5f13d5['classes']=_0x326e91[_0x9c0bb5]['classList']['value']['replace']('ck-focused','');return _0x2cfa4e;}(this['_sortRoots'](_0x1ad1e3)['reduce']((_0x4e5924,_0x4de03a)=>(_0x4e5924['push']([_0x4de03a,{'content':_0xb9140c[_0x4de03a],'classes':''}]),_0x4e5924),[]),_0x2491b8);}['_fixMediaEmbeds'](_0x151648,_0x2be124){if(!_0x2be124['plugins']['has']('MediaEmbedEditing'))return _0x151648;const _0xfa5506=_0x2be124['plugins']['get']('MediaEmbedEditing');for(const [_0x39ed8f,_0x39d699]of Object['entries'](_0x151648)){const _0x178e58=document['createElement']('div');_0x178e58['innerHTML']=_0x39d699,_0x178e58['querySelectorAll']('figure.media')['forEach'](_0x35bf89=>{const _0x1ecfc8=_0x35bf89['querySelector']('oembed');if(_0x1ecfc8){const _0x37c3eb=_0x1ecfc8['getAttribute']('url');if(_0x37c3eb){const _0xdbb38b=_0xfa5506['registry']['getMediaViewElement'](new ot(_0x2be124['editing']['view']['document']),_0x37c3eb,{'elementName':'','renderForEditingView':!0x0}),_0x13b605=document['createElement']('div');_0x13b605['classList']['add']('ck-media__wrapper'),_0xdbb38b['render'](_0x13b605,_0x2be124['editing']['view']['domConverter']),_0x1ecfc8['replaceWith'](_0x13b605);}}}),_0x151648[_0x39ed8f]=_0x178e58['innerHTML'];}return _0x151648;}_sortRoots(_0x5cb09c){if(!function(_0x551cbf){return void 0x0!==_0x551cbf['getRootsAttributes'];}(_0x5cb09c))return _0x5cb09c['model']['document']['getRootNames']();const _0xb8437=[],_0x5ec422=new Map();for(const _0x1b6a36 of _0x5cb09c['model']['document']['getRootNames']()){const _0x424a8a=_0x5cb09c['editing']['view']['getDomRoot'](_0x1b6a36)['getClientRects']()['item'](0x0);_0xb8437['push'](_0x1b6a36),_0x5ec422['set'](_0x1b6a36,_0x424a8a);}return _0xb8437['sort']((_0x2500f6,_0x3b401d)=>{const _0x2b3abd=_0x5ec422['get'](_0x2500f6),_0x2d9ecf=_0x5ec422['get'](_0x3b401d);return _0x2b3abd['y']-_0x2d9ecf['y']||_0x2b3abd['x']-_0x2d9ecf['x'];}),_0xb8437;}},Pn=class extends _0x5ba5d4{static get requires(){return[wn,_0x4588aa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f1520){super(_0x2f1520),_0x2f1520['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x2f1520['config']['define']('trackChanges.preview.renderFunction',(_0x5900ca,_0x14e906)=>{for(const _0x431614 of _0x14e906)_0x5900ca['appendChild'](_0x431614);});}};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 _0x5240c7,PendingActions as _0x1d0b4b,Plugin as _0x18ca51}from'@ckeditor/ckeditor5-core';import{Annotations as _0x49d8ef,Comments as _0x28eb54,CommentsRepository as _0x460b74,EditorAnnotations as _0xac8168}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2f2b37,Collection as _0x3bac41,FocusTracker as _0x43effe,KeystrokeHandler as _0x1ba41c,ObservableMixin as _0xcf2467,getEnvKeystrokeText as _0x4c674e,insertToPriorityArray as _0x4aa6c4,logWarning as _0x51fc13,priorities as _0x4c920d,uid as _0x3f17ac}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x46eb6d,IconCancel as _0x1268e3,IconCheck as _0x115b3b,IconSparkle as _0x546db2,IconTrackChanges as _0x196b0a}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x38e572,Dialog as _0x501745,FocusCycler as _0x34bd86,ListSeparatorView as _0x4db965,MenuBarMenuListItemButtonView as _0x3df0ff,MenuBarMenuListItemView as _0x5786e0,MenuBarMenuListView as _0x1d0682,MenuBarMenuView as _0x68eb0b,SplitButtonView as _0x1c1982,UIModel as _0x154046,View as _0x14c3e1,ViewCollection as _0x1a2b02,addListToDropdown as _0x1da8f7,createDropdown as _0x4ec29d,normalizeColorOptions as _0x4a32ba}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x3bf644,CollaborationUserColor as _0x19eac1,FOCUS_ANNOTATION_KEYSTROKE as _0x3061c5,LateFocusButtonView as _0x316114,PillView as _0x5893a8,SuggestionsConversion as _0x3af144,User as _0x279dde,UserView as _0x3bcaa8,Users as _0x7b02ea,fixElementSuggestionRange as _0x1a0f4e,getAllMarkersDomElementsSorted as _0x23041e,getDateTimeFormatter as _0x185254,hashObject as _0x3bfe73,isInvalidAttributeOperation as _0x11e8cd,sanitizeEditorConfig as _0x5056f4,setupThreadKeyboardNavigation as _0x462de1,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 _0x5240c7{['_enabledCommands'];constructor(_0x1c9a06,_0x677e9d){super(_0x1c9a06),this['_enabledCommands']=_0x677e9d,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 _0x2c41e2 of this['editor']['commands']['commands']())_0x2c41e2['affectsData']&&!this['_enabledCommands']['has'](_0x2c41e2)&&_0x2c41e2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33964f of this['editor']['commands']['commands']())_0x33964f['affectsData']&&!this['_enabledCommands']['has'](_0x33964f)&&_0x33964f['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x5240c7{_suggestions;constructor(_0x5bf8c0,_0x2b5596){super(_0x5bf8c0),this['_suggestions']=_0x2b5596,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1d8cbf){const _0x4b8d86=this['_suggestions']['get'](_0x1d8cbf);if(!_0x4b8d86)throw new _0x2f2b37('track-changes-accept-suggestion-not-found',this);const _0x287a17=_0x4b8d86['getRanges']();this['editor']['model']['canEditAt'](_0x287a17)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b8d86);}},pt=class extends _0x5240c7{_suggestions;constructor(_0x17f908,_0x1ab323){super(_0x17f908),this['_suggestions']=_0x1ab323,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x138b43){const _0x53743a=this['_suggestions']['get'](_0x138b43);if(!_0x53743a)throw new _0x2f2b37('track-changes-discard-suggestion-not-found',this);const _0x3696c4=_0x53743a['getRanges']();this['editor']['model']['canEditAt'](_0x3696c4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x53743a);}};function Lt(_0x2ce2cc,_0x34ad6f){let _0x5a8611='';return _0x5a8611+=_0x2ce2cc['split']('*')['map']((_0x1da873,_0x4ee22e)=>_0x4ee22e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x1da873)+'</span>':It(_0x1da873))['join'](''),_0x34ad6f&&(_0x5a8611+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x34ad6f['value']+'\x22\x20title=\x22'+_0x34ad6f['title']+'\x22></span>'),_0x5a8611;}function It(_0x5be446){const _0x37452a=document['createElement']('span');return _0x37452a['innerText']=_0x5be446,_0x37452a['innerHTML'];}function At(_0x58e842){return _0x58e842['sort']((_0x3acc91,_0x3b8e7e)=>'attribute'===_0x3acc91['type']&&'attribute'!==_0x3b8e7e['type']?-0x1:'attribute'!==_0x3acc91['type']&&'attribute'===_0x3b8e7e['type']?0x1:'deletion'==_0x3acc91['type']&&'deletion'!=_0x3b8e7e['type']?-0x1:'deletion'!=_0x3acc91['type']&&'deletion'==_0x3b8e7e['type']?0x1:0x0);}function bt(_0x505b26,_0xd533d7){let _0x272a07,_0x190e91=0x0;const _0x464fcf=[],_0x53e8f1=_0xd533d7['schema'];for(;_0x190e91<_0x505b26['length'];){const _0x126a34=_0x505b26[_0x190e91],_0x5464a3=_0x505b26[_0x190e91+0x1];_0x272a07||(_0x272a07=_0xd533d7['createPositionBefore'](_0x126a34)),kt(_0xd533d7,_0x126a34,_0x5464a3)||(_0x464fcf['push'](_0xd533d7['createRange'](_0x272a07,_0x53e8f1['isObject'](_0x126a34)?_0xd533d7['createPositionAfter'](_0x126a34):_0xd533d7['createPositionAt'](_0x126a34,'end'))),_0x272a07=null),_0x190e91++;}return _0x464fcf;}function kt(_0x35173c,_0x5476fd,_0x14a048){if(!_0x14a048)return!0x1;const _0x3a793e=_0x35173c['createPositionAfter'](_0x5476fd),_0x583082=_0x35173c['createPositionBefore'](_0x14a048);return _0x3a793e['isTouching'](_0x583082);}function Ct(_0x476d76,_0xee3935,_0x4dc8f0){for(;_0x4dc8f0['length'];){const _0x4eb56b=_0x4dc8f0['splice'](0x0,0x64);_0x476d76['change'](()=>{for(const _0x44730e of _0x4eb56b)_0x44730e['isInContent']&&_0xee3935['execute'](_0x44730e['id']);});}}var Rt=class extends _0x5240c7{['_command'];_suggestions;constructor(_0x2abd58,_0xeb40fe,_0x2e2cd6){super(_0x2abd58),this['_command']=_0xeb40fe,this['_suggestions']=_0x2e2cd6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e98d0=Array['from'](this['_suggestions']['values']())['some'](_0x3796d1=>_0x3796d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e98d0;}execute(){const _0x2d56d3=At(Array['from'](this['_suggestions']['values']()));for(const _0xd0e4e2 of _0x2d56d3){const _0x49ec95=_0xd0e4e2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49ec95))return;}Ct(this['editor']['model'],this['_command'],_0x2d56d3);}},yt=class extends _0x5240c7{['_command'];_suggestions;_selectedSuggestions;constructor(_0x3a173a,_0x40346e,_0x49b84b){super(_0x3a173a),this['_command']=_0x40346e,this['_suggestions']=_0x49b84b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eead0=this['editor']['model']['document']['selection'],_0x584082=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x590f5e,_0x4a1507){const _0x474f54=Array['from'](_0x590f5e['getRanges']()),_0x212a6b=new Set();for(const _0xbb4c99 of _0x4a1507)if(_0xbb4c99['isInContent']){for(const _0x203e45 of _0x474f54)for(const _0x37148c of _0xbb4c99['getRanges']())(_0x203e45['isIntersecting'](_0x37148c)||_0x590f5e['isCollapsed']&&!_0xbb4c99['isMultiRange']&&_0xbb4c99['next']&&_0x37148c['end']['isTouching'](_0x203e45['start']))&&_0x212a6b['add'](_0xbb4c99);}return _0x212a6b;}(_0x2eead0,_0x584082),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x312ba9=At(Array['from'](this['_selectedSuggestions']));for(const _0x3f081c of _0x312ba9){const _0x1707a7=_0x3f081c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1707a7))return;}Ct(this['editor']['model'],this['_command'],_0x312ba9);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xcf2467();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x16b68e,_0x93b079){super(),this['id']=_0x93b079['id'],this['type']=_0x93b079['type'],this['subType']=_0x93b079['subType']||null,this['author']=_0x93b079['author'],this['creator']=_0x93b079['creator']||_0x93b079['author'],this['data']=null,this['_originalSuggestionId']=_0x93b079['originalSuggestionId']||null,this['_model']=_0x16b68e,this['_onAccept']=_0x93b079['onAccept'],this['_onDiscard']=_0x93b079['onDiscard'],this['_onAttributesChange']=_0x93b079['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x93b079['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 _0x699423=this;for(;_0x699423['previous'];)_0x699423=_0x699423['previous'];return _0x699423;}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'](_0x3ace03){this['_markerNames']['add'](_0x3ace03);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x382c1e=>this['_model']['markers']['get'](_0x382c1e))['filter'](_0x399768=>_0x399768);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x17ec4b=>{for(const _0x405ed2 of this['getMarkers']())_0x17ec4b['removeMarker'](_0x405ed2);}),this['_markerNames']['clear']();}['removeMarker'](_0x53d142){this['_model']['change'](_0xce9710=>{_0xce9710['removeMarker'](_0x53d142);}),this['_markerNames']['delete'](_0x53d142);}['addRange'](_0x5e42fd){const _0x3cc4c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x3cc4c1),this['_model']['change'](_0x1b214c=>{_0x1b214c['addMarker'](_0x3cc4c1,{'range':_0x5e42fd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x51c669){for(const _0x913b23 of this['getRanges']())if(_0x913b23['isIntersecting'](_0x51c669))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x304d4d=>_0x304d4d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x1eae3a,_0x286251)=>[..._0x1eae3a,..._0x286251['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x36a868=this['getRanges']();if(0x1!=_0x36a868['length'])return null;const _0x38079a=_0x36a868[0x0],_0x4dc452=_0x38079a['start']['nodeAfter'],_0x206218=_0x38079a['end']['nodeBefore'];return _0x4dc452 instanceof it?_0x4dc452!=_0x206218?null:_0x4dc452: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 _0x329b37=[];let _0x33602d=this['head'];for(;_0x33602d;)_0x329b37['push'](_0x33602d),_0x33602d=_0x33602d['next'];return _0x329b37;}setAttribute(_0xfd961e,_0x42a49e){const _0x1f03b5=at(this['attributes']);ut(_0x1f03b5,_0xfd961e,_0x42a49e),ct(_0x1f03b5,this['attributes'])||(this['attributes']=_0x1f03b5,this['_onAttributesChange'](_0x1f03b5));}removeAttribute(_0x2031af){const _0x146d05=at(this['attributes']);dt(_0x146d05,_0x2031af),ct(_0x146d05,this['attributes'])||(this['attributes']=_0x146d05,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 _0x3f17ac()['substr'](0x1,0x5);}};function Mt(_0x1910e4,_0x28c1b3,_0x264400){const _0x178d95=_0x1910e4['t'],t=_0x1910e4['t'];switch(_0x28c1b3){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',_0x264400);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x264400);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x264400);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x264400);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x264400);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',_0x264400);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x264400);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',_0x264400);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x264400);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x264400);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x264400);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x264400);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x264400);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x264400);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x264400);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x264400);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x264400);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x264400);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x264400);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x264400);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x264400);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x264400);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x264400);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x264400);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x264400);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'},_0x264400);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x264400);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x264400);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x264400);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x264400);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x264400);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x264400);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x264400);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'},_0x264400);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'},_0x264400);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x264400);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x264400);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x264400);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x264400);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'},_0x264400);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x264400);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'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x264400);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x264400);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x264400);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x264400);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x264400);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'},_0x264400);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x264400);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 _0x178d95({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x264400);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x178d95({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x264400);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x264400);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'},_0x264400);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'},_0x264400);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'},_0x264400);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28c1b3;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x2c184c,_0x4785ba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c184c,this['_locale']=_0x4785ba;}getDescriptions(_0x1ee20c){const _0x3f8418=[],_0x3e75a5=new Set(),_0x2ceb0=new Set();for(let _0x159c1a=0x0;_0x159c1a<_0x1ee20c['length'];_0x159c1a++){const _0x34550f=_0x1ee20c[_0x159c1a];if(!_0x34550f['isInContent'])continue;const _0x2b4c1a=this['_handleCustomCallbackDescription'](_0x34550f);if(_0x2b4c1a){if(null!=_0x34550f['subType']){if(_0x3e75a5['has'](_0x34550f['subType']))continue;_0x3e75a5['add'](_0x34550f['subType']);}_0x3f8418['push'](_0x2b4c1a);}else{if('attribute'==_0x34550f['type']){const _0x42b318=_0x34550f['data']['key'];if(_0x2ceb0['has'](_0x42b318))continue;_0x2ceb0['add'](_0x34550f['data']['key']),'$elementName'==_0x42b318?this['_handleRenameSuggestionDescription'](_0x3f8418,_0x34550f):this['_handleAttributeSuggestionDescription'](_0x3f8418,_0x34550f);continue;}'insertion'!=_0x34550f['type']&&'deletion'!=_0x34550f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f8418,_0x34550f,_0x1ee20c[_0x159c1a+0x1]);}}return this['_resolveDescriptionItems'](_0x3f8418);}registerDescriptionCallback(_0x208212){this['_customCallbacks']['push'](_0x208212);}registerElementLabel(_0x6095e3,_0x5f0ea3,_0xdfa05e=_0x4c920d['normal']){'function'==typeof _0x6095e3?_0x4aa6c4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6095e3,'label':_0x5f0ea3,'priority':_0xdfa05e}):this['_itemLabels']['set'](_0x6095e3,_0x5f0ea3);}registerAttributeLabel(_0xb1f576,_0x5c8613){this['_attributeLabels']['set'](_0xb1f576,_0x5c8613);}getItemLabel(_0x5aa582,_0x3539f0=0x1){let _0x4932e0;for(const _0x5047f9 of this['_itemLabelsCallbacks'])if(_0x5047f9['matchingCallback'](_0x5aa582)){_0x4932e0=_0x5047f9['label'];break;}return _0x4932e0||(_0x4932e0=this['_itemLabels']['get'](_0x5aa582['name'])),_0x4932e0?_0x4932e0(_0x3539f0):0x1!==_0x3539f0?_0x3539f0+'\x20'+_0x5aa582['name']+'s':''+_0x5aa582['name'];}_addDescriptionItems(_0x2b8a6f,_0x196661){const _0x17c441=_0x196661['getFirstRange']()['getWalker'](),_0x1c59ba='insertion'==_0x196661['type']?'add':'remove';for(const _0x2cfa6d of _0x17c441){const _0x47a432=_0x2cfa6d['item'],_0x1d74e5=_0x2b8a6f[_0x2b8a6f['length']-0x1];if(_0x47a432['is']('$textProxy'))_0x1d74e5&&_0x1d74e5['type']['indexOf']('Container')>-0x1&&_0x2b8a6f['pop'](),_0x1d74e5&&'text'==_0x1d74e5['type']?_0x1d74e5[_0x1c59ba]+=_0x47a432['data']:_0x2b8a6f['push']({'type':'text','add':'add'==_0x1c59ba?_0x47a432['data']:'','remove':'remove'==_0x1c59ba?_0x47a432['data']:''});else{if(this['_schema']['isObject'](_0x47a432)){const _0x41cea0=_0x47a432;if(_0x1d74e5&&_0x1d74e5['type']['indexOf']('Container')>-0x1&&_0x2b8a6f['pop'](),'elementEnd'==_0x2cfa6d['type'])continue;_0x1d74e5&&_0x1d74e5['type']==_0x1c59ba+'Object'&&_0x1d74e5['element']['name']==_0x41cea0['name']?_0x1d74e5['quantity']++:_0x2b8a6f['push']({'type':_0x1c59ba+'Object','element':_0x41cea0,'quantity':0x1}),_0x17c441['skip'](_0x5b10ee=>!('elementEnd'==_0x5b10ee['type']&&_0x5b10ee['item']==_0x47a432));}else{if(this['_schema']['checkChild'](_0x47a432,'$text')||_0x47a432['is']('element','softBreak')){const _0x5e5f52=_0x47a432;if('add'==_0x1c59ba&&'elementStart'==_0x2cfa6d['type']||'remove'==_0x1c59ba&&'elementEnd'==_0x2cfa6d['type'])continue;if(_0x1d74e5&&-0x1==_0x1d74e5['type']['indexOf']('Container')){'text'==_0x1d74e5['type']&&(_0x1d74e5[_0x1c59ba]+='\x0a');continue;}let _0x1b79bb;if(_0x1b79bb='add'==_0x1c59ba?_0x5e5f52['nextSibling']&&!this['_schema']['isObject'](_0x5e5f52['nextSibling'])?_0x5e5f52['nextSibling']:null:_0x5e5f52['previousSibling']&&!this['_schema']['isObject'](_0x5e5f52['previousSibling'])?_0x5e5f52['previousSibling']:null,_0x5e5f52['isEmpty']||_0x1b79bb&&_0x1b79bb['isEmpty']){const _0x23b88e=_0x1b79bb&&_0x1b79bb['isEmpty']?_0x1b79bb:_0x5e5f52;_0x1d74e5&&_0x1d74e5['type']==_0x1c59ba+'EmptyContainer'&&_0x1d74e5['element']['name']==_0x23b88e['name']?_0x1d74e5['quantity']++:_0x2b8a6f['push']({'type':_0x1c59ba+'EmptyContainer','element':_0x23b88e,'quantity':0x1});}else _0x2b8a6f['push']({'type':_0x1c59ba+'Container','element':_0x5e5f52});}}}}}_resolveDescriptionItems(_0x1643c0){const _0x5164be=this['_locale'],_0x43d839=[],_0xb067d1=[],_0x1c7940=[];for(const _0x44c85b of _0x1643c0)switch(_0x44c85b['type']){case'text':if(_0x44c85b['add']=_0x44c85b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44c85b['remove']=_0x44c85b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44c85b['add']&&''!=_0x44c85b['remove']){_0x43d839['push']({'type':'replace','content':Mt(_0x5164be,'REPLACE_TEXT',['\x22'+_0x44c85b['remove']+'\x22','\x22'+_0x44c85b['add']+'\x22'])});continue;}if(null!=_0x44c85b['add']['match'](/^ +$/)){_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0',Mt(_0x5164be,'ELEMENT_SPACE',_0x44c85b['add']['length']))});continue;}if(null!=_0x44c85b['remove']['match'](/^ +$/)){_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0',Mt(_0x5164be,'ELEMENT_SPACE',_0x44c85b['remove']['length']))});continue;}if(''!=_0x44c85b['add']){_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0','\x22'+_0x44c85b['add']+'\x22')});continue;}_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0','\x22'+_0x44c85b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'addContainer':_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Split:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'removeContainer':_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Merge:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'addFormat':_0xb067d1['push'](_0x44c85b['key']);continue;case'removeFormat':_0x1c7940['push'](_0x44c85b['key']);continue;default:_0x43d839['push'](_0x44c85b);}if(_0xb067d1['length']){const _0x1addb0=_0xb067d1['map'](_0x3e2375=>this['_attributeLabels']['has'](_0x3e2375)?this['_attributeLabels']['get'](_0x3e2375):_0x3e2375)['join'](',\x20');_0x43d839['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x1addb0)});}if(_0x1c7940['length']){const _0x4608a7=_0x1c7940['map'](_0x99dcaf=>this['_attributeLabels']['has'](_0x99dcaf)?this['_attributeLabels']['get'](_0x99dcaf):_0x99dcaf)['join'](',\x20');_0x43d839['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4608a7)});}return _0x43d839;}_handleCustomCallbackDescription(_0x566006){for(const _0x552552 of this['_customCallbacks']){const _0x22fdb6=_0x552552(_0x566006);if(_0x22fdb6&&'type'in _0x22fdb6)return _0x22fdb6;}}_handleAttributeSuggestionDescription(_0xfc181f,_0xe7b5b6){const _0x5849ab=_0xe7b5b6['data'],_0x3aa424=void 0x0===_0x5849ab['newValue']?'removeFormat':'addFormat';_0xfc181f['push']({'type':_0x3aa424,'key':_0x5849ab['key']});}_handleRenameSuggestionDescription(_0x29ce83,_0x890505){_0x29ce83['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x890505['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x3e1ba8,_0x2249c5,_0x422401){if(this['_addDescriptionItems'](_0x3e1ba8,_0x2249c5),_0x422401&&_0x422401['getFirstRange']()&&!_0x2249c5['getFirstRange']()['end']['isEqual'](_0x422401['getFirstRange']()['start'])){const _0x42ae50=_0x3e1ba8[_0x3e1ba8['length']-0x1],_0x3af2df='insertion'==_0x2249c5['type']?'add':'remove';_0x42ae50&&'text'==_0x42ae50['type']&&(_0x42ae50[_0x3af2df]+='\x0a');}}},wt=class extends _0x18ca51{afterInit(){const _0x66bbd7=this['editor'],_0x8a0f4=_0x66bbd7['plugins']['get']('TrackChangesEditing');_0x66bbd7['commands']['get']('showAIAssistant')&&_0x8a0f4['enableCommand']('showAIAssistant');}},Ft=class extends _0x18ca51{afterInit(){const _0x1da936=this['editor'],_0x5717b8=_0x1da936['plugins']['get']('TrackChangesEditing');_0x1da936['commands']['get']('toggleAi')&&_0x5717b8['enableCommand']('toggleAi');}},Bt=class extends _0x18ca51{afterInit(){const _0x4fdee7=this['editor'],_0x34dda4=_0x4fdee7['plugins']['get']('TrackChangesEditing');_0x4fdee7['commands']['get']('aiQuickAction')&&_0x34dda4['enableCommand']('aiQuickAction');}},vt=class extends _0x18ca51{afterInit(){const _0x352fbc=this['editor'],_0x115726=_0x352fbc['locale'];if(!_0x352fbc['plugins']['has']('AlignmentEditing'))return;const _0x36cda9=_0x352fbc['plugins']['get']('TrackChangesEditing');_0x36cda9['enableDefaultAttributesIntegration']('alignment'),_0x36cda9['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x115726,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d4a1c=this['editor'],_0x307752=_0x5d4a1c['locale'];_0x5d4a1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x356330=>{if('formatBlock'!=_0x356330['type'])return;const {data:_0x111802}=_0x356330;if(_0x111802&&'alignment'==_0x111802['commandName']){const _0x575b40=_0x111802['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x307752,'*Format:*\x20%0',function(_0x215a3b){switch(_0x215a3b){case'left':return Mt(_0x307752,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x307752,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x307752,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x307752,'FORMAT_JUSTIFY_TEXT');}}(_0x575b40))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x18ca51{afterInit(){const _0x37f0d9=this['editor'],_0x13fcf4=_0x37f0d9['plugins']['get']('TrackChangesEditing'),_0x340f7e=_0x37f0d9['locale'];for(const _0x3f1b86 of Dt){if(!_0x37f0d9['plugins']['has'](_0x3f1b86))continue;const _0xa36198=_0x3f1b86['slice'](0x0,-0x7)['toLowerCase'](),_0x5e8d38='FORMAT_'+_0xa36198['toUpperCase']();_0x13fcf4['enableDefaultAttributesIntegration'](_0xa36198),_0x13fcf4['descriptionFactory']['registerAttributeLabel'](_0xa36198,Mt(_0x340f7e,_0x5e8d38));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x28a13c=this['editor'],_0x3dcc56=_0x28a13c['locale'],_0x4f96ae=_0x28a13c['plugins']['get']('TrackChangesEditing');function _0x3d1ea1(_0x198ba2,_0x6d6160){_0x4f96ae['descriptionFactory']['registerDescriptionCallback'](_0x58694b=>{if('formatInline'!=_0x58694b['type'])return;const {data:_0x25a377}=_0x58694b;return _0x25a377&&_0x25a377['commandName']===_0x198ba2?_0x25a377['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3dcc56,'*Format:*\x20%0',_0x6d6160)}:{'type':'format','content':Mt(_0x3dcc56,'*Remove\x20format:*\x20%0',_0x6d6160)}:void 0x0;});}_0x3d1ea1('bold',Mt(_0x3dcc56,'FORMAT_BOLD')),_0x3d1ea1('italic',Mt(_0x3dcc56,'FORMAT_ITALIC')),_0x3d1ea1('underline',Mt(_0x3dcc56,'FORMAT_UNDERLINE')),_0x3d1ea1('code',Mt(_0x3dcc56,'FORMAT_CODE')),_0x3d1ea1('strikethrough',Mt(_0x3dcc56,'FORMAT_STRIKETHROUGH')),_0x3d1ea1('subscript',Mt(_0x3dcc56,'FORMAT_SUBSCRIPT')),_0x3d1ea1('superscript',Mt(_0x3dcc56,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x18ca51{afterInit(){const _0x5d0296=this['editor'],_0x3e7473=_0x5d0296['locale'];if(!_0x5d0296['plugins']['has']('BlockQuoteEditing'))return;const _0xe661c6=_0x5d0296['plugins']['get']('TrackChangesEditing'),_0x3e8c63=this['editor']['commands']['get']('blockQuote');_0xe661c6['enableCommand']('blockQuote',(_0x489dd7,_0x37347b={})=>{const _0x876fea=this['editor']['model']['document']['selection'],_0x3b3965=_0x37347b&&void 0x0!==_0x37347b['forceValue']?_0x37347b['forceValue']:!_0x3e8c63['value'];let _0xec3e65=[];if(_0x3b3965){const _0xf101ca=Array['from'](_0x876fea['getSelectedBlocks']())['filter'](_0x234638=>xt(_0x234638)||function(_0x47b3ea,_0x273431){const _0x57304f=_0x273431['createContext'](_0x47b3ea['parent']);return!!_0x273431['checkChild'](_0x57304f,'blockQuote')&&!!_0x273431['checkChild'](_0x57304f['push']('blockQuote'),_0x47b3ea);}(_0x234638,this['editor']['model']['schema']));_0xec3e65=bt(_0xf101ca,_0x5d0296['model']);}else{const _0xc509ee=Array['from'](_0x876fea['getSelectedBlocks']())['filter'](_0x3c997b=>xt(_0x3c997b));_0xec3e65=bt(_0xc509ee,_0x5d0296['model']);}_0x5d0296['model']['change'](()=>{for(const _0x166689 of _0xec3e65)_0xe661c6['markBlockFormat'](_0x166689,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b3965}]});});}),_0xe661c6['descriptionFactory']['registerDescriptionCallback'](_0x1c16b4=>{const {data:_0x35fa14}=_0x1c16b4;if(_0x35fa14&&'blockQuote'==_0x35fa14['commandName']){const _0x523aa2=Mt(_0x3e7473,'ELEMENT_BLOCK_QUOTE');return _0x35fa14['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3e7473,'*Set\x20format:*\x20%0',_0x523aa2)}:{'type':'format','content':Mt(_0x3e7473,'*Remove\x20format:*\x20%0',_0x523aa2)};}});}};function xt(_0x3758e2){return'blockQuote'==_0x3758e2['parent']['name'];}var Gt=class extends _0x18ca51{afterInit(){const _0xe5a02a=this['editor'],_0x5877d4=_0xe5a02a['locale'],_0x6c4677=_0xe5a02a['plugins']['get']('TrackChangesEditing');_0xe5a02a['plugins']['has']('BookmarkEditing')&&(_0x6c4677['enableCommand']('insertBookmark'),_0x6c4677['enableDefaultAttributesIntegration']('updateBookmark'),_0x6c4677['descriptionFactory']['registerDescriptionCallback'](_0x53771d=>{if('insertion'!=_0x53771d['type']&&'deletion'!=_0x53771d['type']&&'attribute'!=_0x53771d['type'])return;const _0x467308=_0x53771d['getContainedElement']();if(null==_0x467308)return;if(!_0x467308['is']('element','bookmark'))return;const _0x4e9a6d=_0x467308['getAttribute']('bookmarkId');if('insertion'==_0x53771d['type'])return{'type':'insertion','content':Mt(_0x5877d4,'*Insert:*\x20%0','\x22'+_0x4e9a6d+'\x22\x20'+Mt(_0x5877d4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53771d['type'])return{'type':'deletion','content':Mt(_0x5877d4,'*Remove:*\x20%0','\x22'+_0x4e9a6d+'\x22\x20'+Mt(_0x5877d4,'ELEMENT_BOOKMARK'))};const {data:_0x26003f}=_0x53771d;return _0x26003f&&'bookmarkId'==_0x26003f['key']?{'type':'format','content':Mt(_0x5877d4,'*Set\x20bookmark:*\x20%0','\x22'+_0x26003f['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x18ca51{afterInit(){const _0xa54ef5=this['editor'];_0xa54ef5['plugins']['has']('CaseChange')&&(_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x18ca51{afterInit(){const _0x37130e=this['editor'];_0x37130e['commands']['get']('ckbox')&&_0x37130e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x18ca51{static get requires(){return[ht,gt];}constructor(_0x2fd13d){super(_0x2fd13d),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x153c4b=this['editor'],_0x5dee05=_0x153c4b['plugins']['get']('ClipboardMarkersUtils'),_0x4c25c1=_0x153c4b['plugins']['get'](gt);_0x5dee05['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x4c25c1['on']('outputTransformation',(_0x44c878,_0x2798bc)=>{const _0x16e264=this['_getSuggestionEntries'](_0x2798bc);for(const [_0x4b4aa3,_0x408721]of _0x2798bc['content']['markers']){const _0x8f7f50=rt['_fromRangeInDocumentFragment'](_0x408721,_0x153c4b['model']);function _0x4d6330(){_0x8f7f50['detach'](),_0x2798bc['content']['markers']['delete'](_0x4b4aa3);}_0x8f7f50['on']('change:drop',_0x4d6330),(_0x4b4aa3['startsWith']('suggestion:')||_0x4b4aa3['startsWith']('comment:'))&&_0x8f7f50['on']('change:range',()=>{_0x8f7f50['isCollapsed']&&_0x4d6330();}),_0x2798bc['content']['markers']['set'](_0x4b4aa3,_0x8f7f50);}const _0x532f1a=_0x16e264['filter'](_0xa9443=>'deletion'===_0xa9443['meta']['type'])['map'](_0x277c89=>_0x277c89['modelRange']);if(this['_shouldSkipDeletions'](_0x532f1a,_0x2798bc['content']))return[..._0x16e264]['forEach'](_0x5c5598=>{_0x2798bc['content']['markers']['get'](_0x5c5598['markerName'])['detach'](),_0x2798bc['content']['markers']['delete'](_0x5c5598['markerName']);}),void this['_restoreRegularRanges'](_0x2798bc['content']['markers']);[..._0x16e264]['forEach'](_0x1816e1=>{const _0x27d6ba=_0x153c4b['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1816e1['meta']['type'],_0x1816e1['meta']['subType'],'accept'),{markerName:_0x4ac0df,meta:_0x48204b}=_0x1816e1;if(_0x2798bc['content']['markers']['has'](_0x4ac0df)){switch(_0x48204b['type']){case'deletion':if('tableRow'===_0x48204b['subType']||'tableColumn'===_0x48204b['subType']){if(!_0x153c4b['plugins']['has']('TableUtils'))break;const _0x3276c2=_0x153c4b['plugins']['get']('TableUtils'),_0x579078=_0x3276c2['getSelectionAffectedTableCells'](_0x153c4b['model']['createSelection'](_0x2798bc['content']['markers']['get'](_0x4ac0df))),_0x3083ed=_0x579078[0x0]['findAncestor']('table');if('tableRow'===_0x48204b['subType']){const {first:_0x28fd97,last:_0x56052b}=_0x3276c2['getRowIndexes'](_0x579078);_0x3276c2['removeRows'](_0x3083ed,{'at':_0x28fd97,'rows':_0x56052b-_0x28fd97+0x1});}else{const {first:_0x1b9976,last:_0x34a709}=_0x3276c2['getColumnIndexes'](_0x579078);_0x3276c2['removeColumns'](_0x3083ed,{'at':_0x1b9976,'columns':_0x34a709-_0x1b9976+0x1});}break;}_0x27d6ba([_0x2798bc['content']['markers']['get'](_0x4ac0df)]);}_0x2798bc['content']['markers']['has'](_0x4ac0df)&&(_0x2798bc['content']['markers']['get'](_0x4ac0df)['detach'](),_0x2798bc['content']['markers']['delete'](_0x4ac0df));}}),this['_restoreRegularRanges'](_0x2798bc['content']['markers']);});}_getSuggestionEntries(_0x42dd25){const _0xc20b4a=_0x55c857=>'dragstart'===_0x42dd25['method']?_0x55c857['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x55c857;return Array['from'](_0x42dd25['content']['markers'])['map'](([_0xbff953,_0x168965])=>({'markerName':_0xbff953,'modelRange':_0x168965,'meta':tt(_0xc20b4a(_0xbff953))}))['filter'](({meta:_0x52be68})=>'suggestion'===_0x52be68['group']);}_shouldSkipDeletions(_0x4f8bf2,_0x477299){if(!_0x4f8bf2['length'])return!0x1;let _0x2285e6=[this['editor']['model']['createRangeIn'](_0x477299)];for(const _0x3ccd7a of _0x4f8bf2)_0x2285e6=_0x2285e6['flatMap'](_0x285d14=>_0x285d14['getDifference'](_0x3ccd7a));return!_0x2285e6['some'](_0x4e47c0=>this['editor']['model']['hasContent'](_0x4e47c0,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x383d41){[..._0x383d41['keys']()]['forEach'](_0x363351=>{const _0x171b16=_0x383d41['get'](_0x363351);_0x171b16['detach'](),_0x383d41['set'](_0x363351,_0x171b16['toRange']());});}},Vt=class extends _0x18ca51{afterInit(){const _0x470c78=this['editor'];if(!_0x470c78['plugins']['has']('CodeBlock'))return;const _0x1acd59=_0x470c78['plugins']['get']('TrackChangesEditing'),_0x5bc604=_0x470c78['locale'],_0x12355a=_0x470c78['config']['get']('codeBlock')['languages'],_0x23bf5b=_0x470c78['commands']['get']('codeBlock');_0x1acd59['enableCommand']('indentCodeBlock'),_0x1acd59['enableCommand']('outdentCodeBlock'),_0x1acd59['enableCommand']('codeBlock',(_0xb84f7c,_0x319151={})=>{const _0x4072d3=_0x470c78['model'],_0x4402c4=_0x470c78['model']['document']['selection'],_0x53dbb0=_0x319151&&void 0x0!==_0x319151['forceValue']?_0x319151['forceValue']:!_0x23bf5b['value'];let _0x1a2a4d;_0x319151['language']||(_0x319151['language']=_0x12355a[0x0]['language']),_0x1a2a4d=_0x53dbb0?Array['from'](_0x4402c4['getSelectedBlocks']())['filter'](_0x169d01=>{return jt(_0x169d01)||(_0x1ad7e9=_0x169d01,_0x1d977b=_0x4072d3['schema'],!_0x1ad7e9['is']('rootElement')&&!_0x1d977b['isLimit'](_0x1ad7e9)&&_0x1d977b['checkChild'](_0x1ad7e9['parent'],'codeBlock'));var _0x1ad7e9,_0x1d977b;}):Array['from'](_0x4402c4['getSelectedBlocks']())['filter'](_0x284008=>jt(_0x284008));const _0x222461=bt(_0x1a2a4d,_0x4072d3);_0x4072d3['change'](()=>{for(const _0x4c60a8 of _0x222461)_0x1acd59['markBlockFormat'](_0x4c60a8,{'commandName':'codeBlock','commandParams':[{..._0x319151,'forceValue':_0x53dbb0}],'formatGroupId':'blockName'});});}),(_0x1acd59['descriptionFactory']['registerElementLabel']('codeBlock',_0x20bd9a=>Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',_0x20bd9a)),_0x1acd59['descriptionFactory']['registerDescriptionCallback'](_0x273768=>{if('formatBlock'!=_0x273768['type'])return;const _0x2079f3=_0x5bc604['t'],{data:_0x59adc9}=_0x273768;if(!_0x59adc9||'codeBlock'!=_0x59adc9['commandName'])return;const _0x431eee=_0x59adc9['commandParams'][0x0]['language'],_0x33b8dc=_0x2079f3(_0x12355a['find'](_0x47a4e4=>_0x47a4e4['language']===_0x431eee)['label'])['toLowerCase']();return _0x59adc9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5bc604,'*Set\x20format:*\x20%0',Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33b8dc+')')}:{'type':'format','content':Mt(_0x5bc604,'*Remove\x20format:*\x20%0',Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x39b10c){return'codeBlock'==_0x39b10c['name'];}var zt=class extends _0x18ca51{afterInit(){const _0x14c506=this['editor'];_0x14c506['plugins']['has']('CommentsEditing')&&_0x14c506['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x18ca51{static get requires(){return[ft];}init(){const _0xabb812=this['editor'],_0x38ad1a=_0xabb812['plugins']['get']('TrackChangesEditing');_0x38ad1a['enableCommand']('delete');const _0x2f4c0b=_0xabb812['commands']['get']('deleteForward');_0x38ad1a['enableCommand']('deleteForward',(_0x3a2861,_0x100035={})=>{const _0x271a6c=_0xabb812['model']['createSelection'](_0xabb812['model']['document']['selection']);_0x271a6c['isCollapsed']&&_0xabb812['model']['modifySelection'](_0x271a6c,{'direction':'forward','unit':_0x100035['unit']});const _0x395c7c=_0x271a6c['getFirstRange'](),_0x52905e=rt['fromRange'](_0x395c7c);let _0x2615b2;_0x3a2861(_0x100035),_0x2615b2='$graveyard'==_0x52905e['root']['rootName']?_0xabb812['model']['createRange'](_0x395c7c['start']):_0xabb812['model']['createRange'](_0x52905e['start'],_0x52905e['end']),_0x52905e['detach'](),_0xabb812['model']['enqueueChange'](_0x2f4c0b['buffer']['batch'],_0x465e5d=>{_0x2f4c0b['buffer']['lock'](),_0x465e5d['setSelection'](_0x465e5d['createRange'](_0x2615b2['end'])),_0x2f4c0b['buffer']['unlock']();});});}},Xt=class extends _0x18ca51{afterInit(){const _0x53786a=this['editor'];if(!_0x53786a['plugins']['has']('ListEditing'))return;const _0x576094=_0x53786a['locale'],_0x19fd46=_0x53786a['plugins']['get']('TrackChangesEditing'),_0x4c0a1b=_0x53786a['plugins']['has']('TodoListEditing'),_0x3c80dc=!!_0x53786a['config']['get']('list.multiBlock');function _0x646713(_0x1d5de4){return{'type':'format','content':''+Mt(_0x576094,'*Set\x20format:*\x20%0',_0x1d5de4)};}function _0x27be39(_0x2977c0){return{'type':'format','content':''+Mt(_0x576094,'*Remove\x20format:*\x20%0',_0x2977c0)};}_0x19fd46['enableDefaultAttributesIntegration']('numberedList'),_0x19fd46['enableDefaultAttributesIntegration']('bulletedList'),_0x19fd46['enableDefaultAttributesIntegration']('customNumberedList'),_0x19fd46['enableDefaultAttributesIntegration']('customBulletedList'),_0x19fd46['enableDefaultAttributesIntegration']('indentList'),_0x19fd46['enableDefaultAttributesIntegration']('outdentList'),_0x19fd46['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19fd46['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c80dc&&(_0x19fd46['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19fd46['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4c0a1b&&(_0x19fd46['enableDefaultAttributesIntegration']('todoList'),_0x19fd46['enableDefaultAttributesIntegration']('checkTodoList'),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x3df739=>{const {data:_0xd39bd1}=_0x3df739;if(_0xd39bd1&&'todoListChecked'==_0xd39bd1['key'])return{'type':'format','content':_0xd39bd1['newValue']?Mt(_0x576094,'*Check\x20item*'):Mt(_0x576094,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b4d90=>{if(_0x3b4d90['batch']['isUndo'])return!0x1;let _0x4eae87=!0x1;const _0x22de24=_0x19fd46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28d584=>'todoListChecked'===_0x19fd46['_getAttributeKey'](_0x28d584));for(const _0x4bbdf3 of _0x22de24)'todo'!=_0x4bbdf3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19fd46['_findSuggestions'](_0x4bbdf3['getFirstRange'](),'attribute')['find'](_0x5964c7=>'listType'===_0x19fd46['_getAttributeKey'](_0x5964c7['suggestion']))||(_0x3b4d90['removeMarker'](_0x4bbdf3['getFirstMarker']()),_0x4eae87=!0x0));return _0x4eae87;})),_0x19fd46['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x576094,'FORMAT_INDENT'));const _0x1f4dfb={'type':'format','content':''};_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x5845ef=>{const {data:_0x165f8b}=_0x5845ef;if(!_0x165f8b||'listType'!=_0x165f8b['key'])return;let _0x1288f7=_0x5845ef['head'];for(;_0x1288f7;){if(_0x1288f7['data']&&(('listStyle'==_0x1288f7['data']['key']||'listMarkerStyle'==_0x1288f7['data']['key'])&&(_0x1288f7['data']['newValue']&&'default'!=_0x1288f7['data']['newValue']||'default'!=_0x1288f7['data']['oldValue']&&!_0x165f8b['newValue'])||!_0x3c80dc&&'$elementName'==_0x1288f7['data']['key']))return _0x1f4dfb;_0x1288f7=_0x1288f7['next'];}if(null==_0x165f8b['newValue'])switch(_0x165f8b['oldValue']){case'bulleted':return _0x27be39(Mt(_0x576094,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27be39(Mt(_0x576094,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27be39(Mt(_0x576094,'ELEMENT_TODO_LIST'));}switch(_0x165f8b['newValue']){case'bulleted':return _0x646713(Mt(_0x576094,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x646713(Mt(_0x576094,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x646713(Mt(_0x576094,'ELEMENT_TODO_LIST'));}}),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x1ca3ef=>{const {data:_0x4bed22}=_0x1ca3ef;if(_0x4bed22&&'listIndent'==_0x4bed22['key'])return null==_0x4bed22['newValue']||null==_0x4bed22['oldValue']&&0x0==_0x4bed22['newValue']?_0x1f4dfb:void 0x0;}),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x18771d=>{if('attribute'!=_0x18771d['type'])return;const {data:_0x5f52da}=_0x18771d;if(!_0x5f52da||'listItemId'!=_0x5f52da['key'])return;const _0x1ec642=qt(_0x18771d);return'newValue'==_0x1ec642?{'type':'format','content':Mt(_0x576094,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ec642?{'type':'format','content':Mt(_0x576094,'*Split:*\x20list\x20item')}:_0x1f4dfb;}),_0x53786a['model']['document']['registerPostFixer'](_0x434696=>this['listItemIdFixer'](_0x434696)),_0x53786a['model']['document']['registerPostFixer'](_0x182d33=>this['noTrackChangesFixer'](_0x182d33)),_0x53786a['model']['document']['on']('change:data',(_0x35ce8,_0x36458f)=>{if(_0x36458f['isUndo']||!_0x36458f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x3e79dd){if(_0x3e79dd['batch']['isUndo']||!_0x3e79dd['batch']['isLocal'])return!0x1;let _0x3b7d6d=!0x1;const _0x54c50e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2923c4=>_0x2923c4['data']&&'listItemId'==_0x2923c4['data']['key'])['filter'](_0x1c4cb9=>_0x1c4cb9['data']['newValue']&&_0x1c4cb9['data']['oldValue']);for(const _0x55e5de of _0x54c50e)qt(_0x55e5de)||(_0x3e79dd['removeMarker'](_0x55e5de['getFirstMarker']()),_0x3b7d6d=!0x0);return _0x3b7d6d;}['noTrackChangesFixer'](_0x314fec){if(_0x314fec['batch']['isUndo']||!_0x314fec['batch']['isLocal'])return!0x1;const _0x4fc0b1=this['editor']['model']['document']['differ'],_0x314d71=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x314d71['trackChangesCommand']['value'])return!0x1;let _0x42c82b=!0x1;const _0x5d6887=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x443645=_0x4fc0b1['getChanges']()['filter'](_0x81fd11=>'attribute'==_0x81fd11['type'])['filter'](_0x1f93b0=>_0x5d6887['has'](_0x1f93b0['attributeKey']));if(0x0==_0x443645['length'])return _0x42c82b;const _0xd4602f=new Set(_0x4fc0b1['getMarkersToAdd']()['filter'](_0x5b7f04=>{if(!_0x5b7f04['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x13bf81=tt(_0x5b7f04['name'])['subType']['split']('|')[0x0];return _0x5d6887['has'](_0x13bf81);})['map'](_0x525432=>tt(_0x525432['name'])['id']));for(const _0x5cf546 of _0x443645){const _0x39be6e=_0x314d71['_findSuggestions'](_0x5cf546['range'],'attribute')['filter'](_0x183f40=>{if(_0x183f40['meta']['isNextTo'])return!0x1;if(_0xd4602f['has'](_0x183f40['suggestion']['id']))return!0x1;const _0xb4c191=_0x314d71['_getAttributeKey'](_0x183f40['suggestion']);return _0x5d6887['has'](_0xb4c191);})['map'](_0xf6093a=>_0xf6093a['suggestion']);if(_0x39be6e['length']){for(const _0x2a063a of _0x39be6e)_0x314fec['removeMarker'](_0x2a063a['getFirstMarker']());_0x42c82b=!0x0;}}return _0x42c82b;}['assureChains'](){const _0xffd911=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7641bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5bda1b;const _0x2277de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fecd1=>{if(_0x3fecd1['data']['oldRange']||!_0x3fecd1['data']['newRange'])return null;if(!_0x3fecd1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x80a194}=tt(_0x3fecd1['name']);if(!_0xffd911['hasSuggestion'](_0x80a194))return null;const _0x3bea47=_0xffd911['getSuggestion'](_0x80a194);return _0x7641bf['includes'](_0x3bea47['data']['key']);})['map'](_0x5c7453=>{const {id:_0x290e76}=tt(_0x5c7453['name']),_0x283b9c=_0xffd911['getSuggestion'](_0x290e76);return _0x5bda1b=_0x283b9c['attributes']['groupId'],_0x283b9c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2277de['size'])return;const _0x175c17=_0xffd911['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c3d9f=>'attribute'==_0x5c3d9f['type']&&_0x5c3d9f['data']&&_0x7641bf['includes'](_0x5c3d9f['data']['key'])&&_0x5c3d9f['attributes']['groupId']!=_0x5bda1b)['map'](_0xcc206=>({'listItem':_0xcc206['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcc206['attributes']['groupId']})),_0x304d10=new Set();for(const {groupId:_0x28f2f9,listItem:_0x3bfc4a}of _0x175c17)_0x2277de['has'](_0x3bfc4a)&&_0x304d10['add'](_0x28f2f9);for(const _0x36dc7b of _0xffd911['getSuggestions']())_0x304d10['has'](_0x36dc7b['attributes']['groupId'])&&_0x36dc7b['setAttribute']('groupId',_0x5bda1b);}_supportLegacySuggestions(){const _0x46adbb=this['editor'],_0x413bdd=_0x46adbb['locale'],_0x373a95=_0x46adbb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x373a95['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x467ffa,_0x2f26b9){const _0xdc8ba7=[];for(let _0x51d79f of _0x467ffa)_0x51d79f['start']['nodeAfter']===_0x51d79f['end']['parent']&&(_0x51d79f=_0x46adbb['model']['createRange'](_0x46adbb['model']['createPositionAt'](_0x51d79f['start']['nodeAfter'],0x0))),_0xdc8ba7['push'](_0x51d79f);_0x46adbb['model']['change'](_0x96a0ae=>{const _0x55932e=_0x46adbb['model']['document']['selection'],_0x14cbd8=Array['from'](_0x55932e['getRanges']())['map'](_0x584c76=>rt['fromRange'](_0x584c76));_0x96a0ae['setSelection'](_0xdc8ba7),_0x46adbb['commands']['get'](_0x2f26b9['commandName'])['refresh'](),_0x2f26b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46adbb['execute'](_0x2f26b9['commandName'],..._0x2f26b9['commandParams']),_0x96a0ae['setSelection'](_0x14cbd8);for(const _0xc21e9e of _0x14cbd8)_0xc21e9e['detach']();});}),_0x373a95['descriptionFactory']['registerElementLabel'](function(_0x372736){const _0x1e1437=!_0x46adbb['model']['schema']['isObject'](_0x372736),_0x57d1e2=_0x372736['previousSibling'],_0x3be8c5=_0x372736['nextSibling'],_0x247296=_0x372736['getAttribute']('listItemId'),_0xf971c1=!_0x57d1e2||_0x57d1e2['getAttribute']('listItemId')!==_0x247296,_0x363ecf=!_0x3be8c5||_0x3be8c5['getAttribute']('listItemId')!==_0x247296;return _0x1e1437&&Boolean(_0x247296)&&_0xf971c1&&_0x363ecf;},_0xd3bd15=>Mt(_0x413bdd,'ELEMENT_LIST_ITEM',_0xd3bd15));}_registerLegacyDescription(){const _0x20167f=this['editor'],_0x21eb4e=_0x20167f['locale'];function _0x2b2f2d(_0x32227b){const _0x48ef68=_0x20167f['commands']['get']('bulletedList')['value'],_0x3e916a=_0x20167f['commands']['get']('numberedList')['value'];return'numberedList'===_0x32227b?_0x48ef68:_0x3e916a;}_0x20167f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x107a82){if('formatBlock'!=_0x107a82['type'])return;const {data:_0x5440cf}=_0x107a82;if(!_0x5440cf)return;let _0xa04aff,_0x400b92,_0x42fcd0,_0x3b9ae3;switch(_0x5440cf['commandName']){case'bulletedList':_0x42fcd0=_0x5440cf['commandParams'][0x0]['forceValue'],_0x3b9ae3=_0x2b2f2d(_0x5440cf['commandName']),_0xa04aff=_0x42fcd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b9ae3&&_0x20167f['config']['get']('list.multiBlock')||(_0xa04aff='*Change\x20to:*\x20%0'),_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42fcd0=_0x5440cf['commandParams'][0x0]['forceValue'],_0x3b9ae3=_0x2b2f2d(_0x5440cf['commandName']),_0xa04aff=_0x42fcd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b9ae3&&_0x20167f['config']['get']('list.multiBlock')||(_0xa04aff='*Change\x20to:*\x20%0'),_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa04aff='*Indent:*\x20%0',_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa04aff=function(_0x1e7b72){const _0x33a71b=_0x1e7b72['getFirstRange']();let _0x42a4ac=_0x33a71b['start']['nodeAfter'];for(;_0x42a4ac&&_0x33a71b['containsItem'](_0x42a4ac);){if(_0x42a4ac['getAttribute']('listIndent')>0x0)return!0x1;_0x42a4ac=_0x42a4ac['nextSibling'];}return!0x0;}(_0x107a82)?Mt(_0x21eb4e,'*Format:*\x20remove\x20from\x20%0',Mt(_0x21eb4e,function(_0x29c8c4){return'ELEMENT_'+_0x29c8c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x107a82))):Mt(_0x21eb4e,'*Outdent:*\x20%0',Mt(_0x21eb4e,'ELEMENT_LIST_ITEM')),_0x400b92={'type':'format','content':_0xa04aff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5440cf['multipleBlocks']&&(_0xa04aff='*Merge:*\x20%0',_0x400b92={'type':'deletion','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_LIST_ITEM'))});}return _0x400b92;});}};function qt(_0x42c481){let _0x16beb3=_0x42c481['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x16beb3;){const _0x49dc87=_0x16beb3['getAttribute']('listItemId');if(!_0x49dc87)return!0x1;if(_0x49dc87==_0x42c481['data']['newValue'])return'newValue';if(_0x49dc87==_0x42c481['data']['oldValue'])return'oldValue';_0x16beb3=_0x16beb3['previousSibling'];}return!0x1;}var Yt=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c3dc8=this['editor']['config']['get']('list.properties'),_0x303314=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c3dc8['styles']&&_0x303314['enableDefaultAttributesIntegration']('listStyle'),_0x3c3dc8['reversed']&&_0x303314['enableDefaultAttributesIntegration']('listReversed'),_0x3c3dc8['startIndex']&&_0x303314['enableDefaultAttributesIntegration']('listStart');const _0x3ac1c7={'type':'format','content':''};_0x303314['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11f54d=this['editor']['locale'];_0x303314['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x11f54d,'FORMAT_LIST_REVERSED')),_0x303314['descriptionFactory']['registerDescriptionCallback'](_0x28add4=>{const {data:_0x4eb5bf}=_0x28add4;if(_0x4eb5bf&&'listReversed'==_0x4eb5bf['key'])return null==_0x4eb5bf['newValue']||0x0==_0x4eb5bf['newValue']&&null==_0x4eb5bf['oldValue']?_0x3ac1c7:void 0x0;}),_0x303314['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x11f54d,'FORMAT_LIST_START')),_0x303314['descriptionFactory']['registerDescriptionCallback'](_0x4cb8a9=>{const {data:_0x36bf19}=_0x4cb8a9;if(_0x36bf19&&'listStart'==_0x36bf19['key'])return null==_0x36bf19['newValue']||0x1==_0x36bf19['newValue']&&null==_0x36bf19['oldValue']?_0x3ac1c7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24535d=>{if(_0x24535d['batch']['isUndo'])return!0x1;let _0x1d0a55=!0x1;const _0x45083c=_0x303314['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x765097=>{const _0x501f70=_0x303314['_getAttributeKey'](_0x765097);return'listStart'==_0x501f70||'listReversed'==_0x501f70;});for(const _0x1e29e9 of _0x45083c){const _0xdd8e13=_0x1e29e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0xdd8e13&&'customNumbered'!=_0xdd8e13&&(_0x303314['_findSuggestions'](_0x1e29e9['getFirstRange'](),'attribute')['find'](_0x2f3ca9=>'listType'==_0x303314['_getAttributeKey'](_0x2f3ca9['suggestion']))||(_0x24535d['removeMarker'](_0x1e29e9['getFirstMarker']()),_0x1d0a55=!0x0));}return _0x1d0a55;}),this['_registerLegacyDescription']();}handleDescriptions(_0x44b7a6){const _0x41c354=this['editor']['locale'],{data:_0x1c2989}=_0x44b7a6,_0xf8b0d8={'type':'format','content':''};if(!_0x1c2989||'listStyle'!=_0x1c2989['key'])return;if(!_0x1c2989['oldValue'])return'default'==_0x1c2989['newValue']?_0xf8b0d8:{'type':'format','content':''+Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['newValue'])))};if(!_0x1c2989['newValue']){if('default'==_0x1c2989['oldValue'])return _0xf8b0d8;let _0x581b91=_0x44b7a6['head'];for(;_0x581b91;){if(_0x581b91['data']&&'listType'==_0x581b91['data']['key']&&_0x581b91['data']['newValue'])return _0xf8b0d8;_0x581b91=_0x581b91['next'];}return{'type':'format','content':''+Mt(_0x41c354,'*Remove\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['oldValue'])))};}if('default'!=_0x1c2989['newValue'])return{'type':'format','content':''+Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['newValue'])))};let _0x1238f3=_0x44b7a6['head'];for(;_0x1238f3;){if(_0x1238f3['data']&&'listType'==_0x1238f3['data']['key']&&_0x1238f3['data']['newValue']&&_0x1238f3['data']['oldValue'])return _0xf8b0d8;_0x1238f3=_0x1238f3['next'];}return{'type':'format','content':Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,'ELEMENT_'+_0x44b7a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x14376b=this['editor'],_0x598b37=_0x14376b['locale'];_0x14376b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a33a0=>{if('formatBlock'!=_0x2a33a0['type'])return;const {data:_0x24daca}=_0x2a33a0;if(!_0x24daca)return;let _0x11c875,_0x20e8db;switch(_0x24daca['commandName']){case'listStyle':_0x11c875='*Change\x20to:*\x20%0',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875,Mt(_0x598b37,this['_getTranslationKeyForListStyle'](_0x24daca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11c875=_0x24daca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875)};break;case'listStart':_0x11c875='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875,_0x24daca['commandParams'][0x0]['startIndex'])};}return _0x20e8db;});}_getTranslationKeyForListStyle(_0x18a79a){return'ELEMENT_'+(_0x4a260e=_0x18a79a,Qt['includes'](_0x4a260e)?'bulleted':Zt['includes'](_0x4a260e)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x18a79a['toUpperCase']()['replace'](/-/g,'_');var _0x4a260e;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x18ca51{afterInit(){const _0x910db5=this['editor'];_0x910db5['commands']['get']('emoji')&&_0x910db5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x18ca51{static get requires(){return[Et];}init(){const _0x2c8dd7=this['editor'],_0xd52eee=_0x2c8dd7['plugins']['get']('TrackChangesEditing'),_0x38d83f=_0x2c8dd7['commands']['get']('enter');_0xd52eee['enableCommand']('enter',()=>{_0x2c8dd7['model']['change'](_0x4d6684=>{const _0x4c17b2=_0x2c8dd7['model']['document']['selection'],_0x216067=_0x4c17b2['getFirstPosition'](),_0x2e8758=rt['fromRange'](_0x4c17b2['getFirstRange']());if(_0x38d83f['enterBlock'](_0x4d6684)){const _0x232249=_0x2c8dd7['model']['createPositionAt'](_0x216067['parent']['nextSibling'],0x0),_0x32d9a1=_0x4d6684['createRange'](_0x216067,_0x232249);_0xd52eee['markInsertion'](_0x32d9a1);}else _0x4d6684['setSelection'](_0x4d6684['createRange'](_0x2e8758['end']));_0x2e8758['detach'](),_0x38d83f['fire']('afterExecute',{'writer':_0x4d6684});});});}},ee=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x54365c=this['editor']['plugins']['get']('TrackChangesEditing');_0x54365c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x54365c['enableCommand']('findNext'),_0x54365c['enableCommand']('findPrevious'),_0x54365c['enableCommand']('replace'),_0x54365c['enableCommand']('replaceAll');}['handleFindCommand'](_0x514e22,_0x54d732,_0x2de335={}){const _0x1199cc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x514e22(_0x3990bd=>{let _0x25e654=('string'==typeof _0x54d732?_0x1199cc['findByTextCallback'](_0x54d732,_0x2de335):_0x54d732)(_0x3990bd);Array['isArray'](_0x25e654)&&(_0x25e654={'results':_0x25e654,'searchText':'string'==typeof _0x54d732?_0x54d732:''});const _0x39cb7d=_0x25e654['results']['filter'](_0x494861=>!0x1===this['_isInDeletionRange'](_0x494861,_0x3990bd['item']));return{..._0x25e654,'results':_0x39cb7d};},_0x2de335);}_isInDeletionRange(_0x5cd158,_0x14b539){const _0xd48256=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14b539,_0x5cd158['start']),this['editor']['model']['createPositionAt'](_0x14b539,_0x5cd158['end']));for(const _0x3f5677 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd48256['getIntersection'](_0x3f5677['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 _0x18ca51{afterInit(){const _0x16335a=this['editor']['locale'],_0x151bcb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d3079,commandName:_0x556cba}of ne)this['editor']['plugins']['has'](_0x4d3079)&&_0x151bcb['enableDefaultAttributesIntegration'](_0x556cba);_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x16335a,'FORMAT_FONT_SIZE')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x16335a,'FORMAT_FONT_FAMILY')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x16335a,'FORMAT_FONT_COLOR')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x16335a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e2ed8=this['editor'],_0x46ac80=_0x2e2ed8['locale'];_0x2e2ed8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52d7a4=>{const _0x461430=_0x46ac80['t'];if('formatInline'!=_0x52d7a4['type'])return;const {data:_0x1818ae}=_0x52d7a4;if(null!=_0x1818ae){if('fontSize'==_0x1818ae['commandName']){const _0x5841d2=_0x1818ae['commandParams'][0x0]['value'];if(_0x5841d2){const _0x2512e8=_0x461430(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x530792=>_0x530792['model']==_0x5841d2)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20size:*\x20%0',_0x2512e8)};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1818ae['commandName']){const _0x4f581a=_0x1818ae['commandParams'][0x0]['value'];return _0x4f581a?{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20family:*\x20%0',_0x4f581a)}:{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1818ae['commandName']){const _0x4b4a97=_0x1818ae['commandParams'][0x0]['value'];if(_0x4b4a97){const _0x1f2cc2=_0x4a32ba(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbcbd33=>_0xbcbd33['model']==_0x4b4a97);let _0x3d6027=_0x4b4a97,_0x15193a='';return _0x1f2cc2&&(_0x3d6027=_0x1f2cc2['label'],_0x15193a=_0x461430(_0x3d6027)['toLowerCase']()),{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20color:*\x20%0',_0x15193a)['trim'](),'color':{'value':_0x4b4a97,'title':_0x15193a||_0x3d6027}};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1818ae['commandName']){const _0x393ed4=_0x1818ae['commandParams'][0x0]['value'];if(_0x393ed4){const _0x4ec329=_0x4a32ba(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bd512=>_0x2bd512['model']==_0x393ed4);let _0x4df784=_0x393ed4,_0x56fc52='';return _0x4ec329&&(_0x4df784=_0x4ec329['label'],_0x56fc52=_0x461430(_0x4df784)['toLowerCase']()),{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20background\x20color:*\x20%0',_0x56fc52)['trim'](),'color':{'value':_0x393ed4,'title':_0x56fc52||_0x4df784}};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x18ca51{afterInit(){const {plugins:_0x14c5ce}=this['editor'];_0x14c5ce['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x14c5ce['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3677fa,plugins:_0xeadf8c,commands:_0x52d53f}=this['editor'],_0x4e5e5f=_0xeadf8c['get']('TrackChangesEditing');_0x52d53f['get']('footnotesStyle')&&_0x4e5e5f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x52d53f['get']('footnotesStart')&&_0x4e5e5f['enableDefaultAttributesIntegration']('footnotesStart'),_0x4e5e5f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x3677fa,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4e5e5f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x3677fa,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x28d1aa=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x370e77,commands:_0x2dd9fb}=this['editor'];_0x2dd9fb['get']('insertFootnote')&&_0x28d1aa['enableCommand']('insertFootnote'),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4c6acd=>Mt(_0x370e77,'ELEMENT_FOOTNOTE_REF',_0x4c6acd)),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x23704e=>Mt(_0x370e77,'ELEMENT_FOOTNOTE_DEFINITION',_0x23704e)),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x42eb2e=>Mt(_0x370e77,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x42eb2e));}},re=class extends _0x18ca51{afterInit(){const _0x24a4cf=this['editor'],_0x491c8a=_0x24a4cf['plugins']['get']('TrackChangesEditing'),_0x15695d=_0x24a4cf['commands']['get']('copyFormat'),_0x13a2d7=_0x24a4cf['commands']['get']('pasteFormat');_0x15695d&&_0x13a2d7&&(_0x491c8a['enableDefaultAttributesIntegration']('pasteFormat'),_0x491c8a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3e54e9=this['editor'],_0x42b758=_0x3e54e9['locale'];_0x3e54e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1215=>{if('formatBlock'!=_0x2a1215['type']&&'formatInline'!=_0x2a1215['type'])return;const {data:_0x5abc81}=_0x2a1215;if(_0x5abc81&&'pasteFormat'===_0x5abc81['commandName']){const _0x221cc5=[],_0x33fa98=_0x5abc81['commandParams'][0x0];for(const [_0x1a5f69,_0xeeddca]of Object['entries'](_0x33fa98))_0x221cc5['push'](oe(_0x3e54e9,_0x1a5f69,_0xeeddca));return _0x221cc5['length']?{'type':'format','content':Mt(_0x42b758,'*Set\x20format\x20to:*\x20%0',_0x221cc5['join'](',\x20'))}:{'type':'format','content':Mt(_0x42b758,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x587a6c,_0xc23523,_0x116053){const _0x100fa9=_0x587a6c['locale']['t'],_0x19a23b=_0xc23523['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b6ae7=_0x100fa9(_0x19a23b['charAt'](0x0)['toUpperCase']()+_0x19a23b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x116053)return _0x3b6ae7;if('fontColor'===_0xc23523||'fontBackgroundColor'===_0xc23523){const _0x4a361e=_0x4a32ba(_0x587a6c['config']['get']('fontColor.colors'))['find'](_0x40b8a4=>_0x40b8a4['model']==_0x116053);return _0x3b6ae7+'\x20('+(_0x4a361e?_0x100fa9(_0x4a361e['label'])['toLowerCase']():_0x116053)+')';}if('fontSize'===_0xc23523&&isNaN(parseFloat(_0x116053))){const _0x408819=_0x587a6c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x587a6c['config']['get']('fontSize.options'))['find'](_0x178948=>_0x178948['model']==_0x116053);return _0x3b6ae7+'\x20('+(_0x408819?_0x100fa9(_0x408819['title'])['toLowerCase']():_0x116053)+')';}return _0x3b6ae7+'\x20('+_0x116053+')';}var ae=class extends _0x18ca51{afterInit(){const _0x490ba2=this['editor'];if(!_0x490ba2['plugins']['has']('GeneralHtmlSupport')||!_0x490ba2['plugins']['has']('DataSchema'))return;const _0x11e8e8=_0x490ba2['plugins']['get']('TrackChangesEditing'),_0x265565=_0x490ba2['plugins']['get']('GeneralHtmlSupport'),_0x59386b=_0x490ba2['plugins']['get']('DataSchema'),_0x5f00ad=_0x490ba2['locale'],_0x44c54a=new Set(['htmlContent']);for(const _0x22f02a of _0x59386b['getDefinitionsForView'](/.*/,!0x1)){const _0x43d9cb=_0x22f02a['view'],_0x1812f5=_0x265565['getGhsAttributeNameForElement'](_0x43d9cb);_0x44c54a['add'](_0x1812f5),!_0x22f02a['isInline']||_0x22f02a['isObject']||'appliesToBlock'in _0x22f02a&&_0x22f02a['appliesToBlock']||_0x11e8e8['descriptionFactory']['registerAttributeLabel'](_0x1812f5,_0x43d9cb),_0x22f02a['model']['startsWith']('html')&&_0x11e8e8['descriptionFactory']['registerElementLabel'](_0x22f02a['model'],_0x4d240a=>Mt(_0x5f00ad,'ELEMENT_HTML_TAG',[_0x4d240a,_0x43d9cb]));}_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x5f00ad,'FORMAT_RAW_HTML_CONTENT')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x5f00ad,'FORMAT_HTML_LIST_ITEM')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x5f00ad,'FORMAT_HTML_BULLETED_LIST')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x5f00ad,'FORMAT_HTML_NUMBERED_LIST')),_0x11e8e8['descriptionFactory']['registerDescriptionCallback'](_0x1c551f=>{if('attribute'!==_0x1c551f['type'])return;const _0x15a811=_0x1c551f['data'];if(!_0x15a811||!_0x44c54a['has'](_0x15a811['key']))return;if('htmlContent'===_0x15a811['key'])return{'type':'format','content':Mt(_0x5f00ad,'*Change\x20%0\x20content*',Mt(_0x5f00ad,'ELEMENT_RAW_HTML'))};const {setItems:_0x56d24f,removeItems:_0x1ae375}=function(_0x478290,_0x1e908a,_0x94180a){const _0x4fe2f6=[],_0xf523ed=[],_0x50828b=_0x478290['styles']??{},_0x3eb841=_0x1e908a['styles']??{};for(const _0x5dd91d of new Set([...Object['keys'](_0x50828b),...Object['keys'](_0x3eb841)]))_0x50828b[_0x5dd91d]!==_0x3eb841[_0x5dd91d]&&(void 0x0===_0x3eb841[_0x5dd91d]?_0xf523ed['push'](_0x5dd91d):_0x4fe2f6['push'](_0x5dd91d+'\x20('+_0x3eb841[_0x5dd91d]+')'));const _0x1780c9=Mt(_0x94180a,'FORMAT_HTML_CLASS'),_0x3f85fe=new Set(_0x478290['classes']??[]),_0x51a612=new Set(_0x1e908a['classes']??[]),_0x15e0fc=[..._0x51a612]['some'](_0x7bc1b4=>!_0x3f85fe['has'](_0x7bc1b4)),_0x4b1a44=[..._0x3f85fe]['some'](_0x907ac0=>!_0x51a612['has'](_0x907ac0));_0x15e0fc&&_0x4fe2f6['push'](_0x1780c9),_0x4b1a44&&_0xf523ed['push'](_0x1780c9);const _0x4b7286=Mt(_0x94180a,'FORMAT_HTML_ATTRIBUTE'),_0x24af06=_0x478290['attributes']??{},_0x344615=_0x1e908a['attributes']??{};let _0x6f5c5e=!0x1,_0x3fe4b8=!0x1;for(const _0x53345f of new Set([...Object['keys'](_0x24af06),...Object['keys'](_0x344615)]))_0x24af06[_0x53345f]!==_0x344615[_0x53345f]&&(void 0x0===_0x344615[_0x53345f]?_0x3fe4b8=!0x0:_0x6f5c5e=!0x0);return _0x6f5c5e&&_0x4fe2f6['push'](_0x4b7286),_0x3fe4b8&&_0xf523ed['push'](_0x4b7286),{'setItems':_0x4fe2f6,'removeItems':_0xf523ed};}(_0x15a811['oldValue']??{},_0x15a811['newValue']??{},_0x5f00ad);if(!_0x56d24f['length']&&!_0x1ae375['length'])return;const _0x427ee2=[];return _0x56d24f['length']&&_0x427ee2['push'](Mt(_0x5f00ad,'*Set\x20format:*\x20%0',_0x56d24f['join'](',\x20'))),_0x1ae375['length']&&_0x427ee2['push'](Mt(_0x5f00ad,'*Remove\x20format:*\x20%0',_0x1ae375['join'](',\x20'))),{'type':'format','content':_0x427ee2['join']('\x0a')};});}},ce=class extends _0x18ca51{_headingOptions;afterInit(){const _0x382fba=this['editor'];if(!_0x382fba['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x382fba['config']['get']('heading.options');const _0x194f0b=_0x382fba['locale'],_0x5e830a=_0x382fba['plugins']['get']('TrackChangesEditing');_0x5e830a['enableDefaultAttributesIntegration']('heading');for(const _0x471f34 of this['_headingOptions'])'paragraph'!=_0x471f34['model']&&_0x5e830a['descriptionFactory']['registerElementLabel'](_0x471f34['model'],_0x2dca70=>{const _0x2c2f71=this['_getHeadingLevel'](_0x471f34['model']);return null!==_0x2c2f71?_0x35bf64(_0x2dca70,_0x2c2f71):_0x4ab3c5(_0x2dca70,_0x471f34['title']);});function _0x35bf64(_0x55fce0,_0x45c3c0){return Mt(_0x194f0b,'ELEMENT_HEADING',[_0x55fce0,_0x45c3c0]);}function _0x4ab3c5(_0x150cf2,_0x574759){return Mt(_0x194f0b,'ELEMENT_HEADING_CUSTOM',[_0x150cf2,_0x574759]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x12bc48=this['editor'],_0x5a60ee=_0x12bc48['locale'];function _0xcfd230(_0xb1b76d,_0x16949b){return Mt(_0x5a60ee,'ELEMENT_HEADING_CUSTOM',[_0xb1b76d,_0x16949b]);}_0x12bc48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x101bbd=>{if('formatBlock'!=_0x101bbd['type'])return;const {data:_0x1cc8b8}=_0x101bbd;if(_0x1cc8b8&&'heading'==_0x1cc8b8['commandName']){const _0x21751b=_0x1cc8b8['commandParams'][0x0]['value'],_0x13883b=this['_getHeadingLevel'](_0x21751b);if(null!==_0x13883b)return{'type':'format','content':Mt(_0x5a60ee,'*Change\x20to:*\x20%0',(_0x55cbf1=0x1,_0x4c5e36=_0x13883b,Mt(_0x5a60ee,'ELEMENT_HEADING',[_0x55cbf1,_0x4c5e36])))};const _0x43d578=this['_headingOptions']['find'](_0x53b404=>_0x53b404['model']===_0x21751b)['title'];return{'type':'format','content':Mt(_0x5a60ee,'*Change\x20to:*\x20%0',_0xcfd230(0x1,_0x43d578))};}var _0x55cbf1,_0x4c5e36;});}_getHeadingLevel(_0x46e286){const _0x5a416b=_0x46e286['match'](/^heading(\d+)/);if(_0x5a416b)return _0x5a416b[0x1];const _0x431c1d=this['_headingOptions']?.['find'](_0x50f8f7=>_0x50f8f7['model']==_0x46e286);if(_0x431c1d&&_0x431c1d['view']){const _0x54a543=_0x431c1d['view'],_0x1cf5c9=(_0x54a543['name']??_0x54a543)['match'](/^h(\d+)/);if(_0x1cf5c9)return _0x1cf5c9[0x1];}return null;}},le=class extends _0x18ca51{afterInit(){const _0x135eb2=this['editor'];if(!_0x135eb2['plugins']['has']('HighlightEditing'))return;const _0x22270d=_0x135eb2['plugins']['get']('TrackChangesEditing'),_0x441867=_0x135eb2['locale'];_0x22270d['enableDefaultAttributesIntegration']('highlight'),_0x22270d['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x441867,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x442686=this['editor'],_0x142a47=_0x442686['locale'];_0x442686['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8062=>{if('formatInline'!=_0x5d8062['type'])return;const {data:_0x542cc5}=_0x5d8062;if(_0x542cc5&&'highlight'==_0x542cc5['commandName']){const _0x5a519a=_0x142a47['t'],_0x5966d8=_0x542cc5['commandParams'][0x0]['value'];if(_0x5966d8){const _0x2d5a1b=_0x442686['config']['get']('highlight.options')['find'](_0x1a8d9e=>_0x1a8d9e['model']==_0x5966d8),_0x1c9388=_0x5a519a(_0x2d5a1b['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x142a47,'*Set\x20highlight:*\x20%0',_0x1c9388),'color':{'value':_0x2d5a1b['color'],'title':_0x2d5a1b['title']}};}return{'type':'format','content':Mt(_0x142a47,'*Remove\x20highlight*',Mt(_0x142a47,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x18ca51{afterInit(){const _0x5ddfe6=this['editor'];if(!_0x5ddfe6['plugins']['has']('HorizontalLineEditing'))return;_0x5ddfe6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d506f=_0x5ddfe6['plugins']['get']('TrackChangesEditing'),_0x2586d1=_0x5ddfe6['locale'];_0x2d506f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ec94f=>Mt(_0x2586d1,'ELEMENT_HORIZONTAL_LINE',_0x5ec94f));}},de=class extends _0x18ca51{afterInit(){const _0x79a3c7=this['editor'];if(!_0x79a3c7['plugins']['has']('HtmlEmbed'))return;const _0x47c930=_0x79a3c7['plugins']['get']('TrackChangesEditing'),_0x54dad9=_0x79a3c7['locale'];_0x47c930['descriptionFactory']['registerElementLabel']('rawHtml',_0x594b7b=>Mt(_0x54dad9,'ELEMENT_HTML_EMBED',_0x594b7b)),_0x47c930['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47c930['descriptionFactory']['registerDescriptionCallback'](_0x3c0dbe=>{if('attribute'!=_0x3c0dbe['type'])return;const {data:_0x5a3be0}=_0x3c0dbe;if(_0x5a3be0&&'value'==_0x5a3be0['key']&&_0x3c0dbe['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x54f88d=Mt(_0x54dad9,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x54dad9,'*Change\x20%0\x20content*',_0x54f88d)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x445b07=this['editor'],_0x45884d=_0x445b07['locale'];_0x445b07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c4e8=>{if('formatBlock'!=_0x36c4e8['type'])return;const {data:_0x23fd80}=_0x36c4e8;if(_0x23fd80&&'htmlEmbed'==_0x23fd80['commandName']){const _0x593cde=Mt(_0x45884d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x45884d,'*Change\x20%0\x20content*',_0x593cde)};}});}},he=class extends _0x18ca51{afterInit(){const _0x3ee5bd=this['editor'];if(!_0x3ee5bd['plugins']['has']('ImageEditing'))return;const _0x7b03d=_0x3ee5bd['plugins']['get']('TrackChangesEditing'),_0x30c830=_0x3ee5bd['plugins']['get']('ImageUtils'),_0x5f3e25=_0x3ee5bd['locale'];_0x7b03d['enableCommand']('insertImage'),_0x7b03d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c827c=>Mt(_0x5f3e25,'ELEMENT_IMAGE',_0x3c827c)),_0x7b03d['descriptionFactory']['registerElementLabel']('imageInline',_0x4f9b1f=>Mt(_0x5f3e25,'ELEMENT_INLINE_IMAGE',_0x4f9b1f)),_0x7b03d['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x5f3e25,'ELEMENT_CAPTION')),_0x3ee5bd['plugins']['has']('ImageUploadEditing')&&_0x7b03d['enableCommand']('uploadImage'),_0x3ee5bd['plugins']['has']('ImageBlockEditing')&&_0x3ee5bd['plugins']['has']('ImageInlineEditing')&&(_0x7b03d['enableCommand']('imageTypeInline',(_0x30ea97,_0x95c8e4)=>{const _0xcccab0=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']);_0x3ee5bd['model']['change'](()=>{_0x7b03d['markBlockFormat'](_0xcccab0,{'commandName':'imageTypeInline','commandParams':[_0x95c8e4]},[],'convertBlockImageToInline');});}),_0x7b03d['enableCommand']('imageTypeBlock',(_0x198995,_0x5dcf95)=>{_0x3ee5bd['model']['change'](_0x11bbda=>{let _0x2e99b7=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x533208=_0x11bbda['createRangeOn'](_0x2e99b7);const _0x5abbd9=st['fromPosition'](_0x533208['start'],'toPrevious'),_0xecac3b=st['fromPosition'](_0x533208['end'],'toNext');_0x7b03d['forceDefaultExecution'](()=>_0x198995(_0x5dcf95)),_0x2e99b7=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x533208=_0x11bbda['createRangeOn'](_0x2e99b7);const _0x174e34=_0x11bbda['createRange'](_0x5abbd9,_0xecac3b);_0x5abbd9['detach'](),_0xecac3b['detach'](),_0x7b03d['markBlockFormat'](_0x2e99b7,{'commandName':'imageTypeInline','commandParams':[_0x5dcf95]},[],'convertInlineImageToBlock'),_0x174e34['start']['isBefore'](_0x533208['start'])&&_0x7b03d['markInsertion'](_0x11bbda['createRange'](_0x174e34['start'],_0x533208['start']),'convertInlineImageToBlock'),_0x533208['end']['isBefore'](_0x174e34['end'])&&_0x7b03d['markInsertion'](_0x11bbda['createRange'](_0x533208['end'],_0x174e34['end']),'convertInlineImageToBlock');});}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x7b03d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b348])=>{const _0x1ec02c=_0x7b03d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3173b7=_0x23b348['start'],_0x326db5=_0x23b348['end'];const _0x317cbf=_0x3ee5bd['model']['schema']['getNearestSelectionRange'](_0x3173b7,'backward'),_0x10abbd=_0x3ee5bd['model']['schema']['getNearestSelectionRange'](_0x326db5,'forward');_0x317cbf['isCollapsed']&&(_0x3173b7=_0x317cbf['start']),_0x10abbd['isCollapsed']&&(_0x326db5=_0x10abbd['end']),_0x1ec02c([_0x3ee5bd['model']['createRange'](_0x3173b7,_0x326db5)]);}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x264dee),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x264dee)),_0x3ee5bd['plugins']['has']('ImageCaptionEditing')&&(_0x7b03d['enableCommand']('toggleImageCaption',(_0x3887b2,_0x34bf86)=>{const _0x3f2d04=_0x3ee5bd['plugins']['get']('ImageCaptionUtils');let _0x2a25da=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x556738=_0x3f2d04['getCaptionFromImageModelElement'](_0x2a25da);_0x3ee5bd['model']['change'](()=>{if(_0x556738)return void _0x7b03d['markDeletion'](_0x3ee5bd['model']['createRangeOn'](_0x556738));const _0x21cb1f=_0x30c830['isBlockImage'](_0x2a25da);_0x3887b2(_0x34bf86),_0x2a25da=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x556738=_0x3f2d04['getCaptionFromImageModelElement'](_0x2a25da),_0x7b03d['markInsertion'](_0x3ee5bd['model']['createRangeOn'](_0x556738),_0x21cb1f?null:'imageCaption');});}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x264dee));const _0x3881c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e021c(_0x232dd9,_0x8b04fc){const _0x545856=_0x3881c5['findIndex'](({type:_0x45b427,subType:_0x3204c3})=>_0x232dd9['type']==_0x45b427&&_0x232dd9['subType']==_0x3204c3),_0x54a770=_0x3881c5['findIndex'](({type:_0xfd5613,subType:_0x36c59b})=>_0x8b04fc['type']==_0xfd5613&&_0x8b04fc['subType']==_0x36c59b);if(_0x545856<0x0||_0x54a770<0x0)return!0x1;const _0x306f49=_0x232dd9['getFirstRange'](),_0x5a0a1d=_0x8b04fc['getFirstRange']();if((0x0==_0x545856||0x1==_0x545856)&&0x2==_0x54a770&&_0x306f49['isIntersecting'](_0x5a0a1d))return!0x0;if(0x2==_0x545856&&0x3==_0x54a770){const _0x1c4c16=_0x7b03d['_findSuggestions'](_0x306f49,'insertion')['filter'](({suggestion:_0x27cbd0,meta:_0x40a9d2})=>_0x40a9d2['isOwn']&&'convertInlineImageToBlock'==_0x27cbd0['subType']);if(_0x1c4c16['length']>0x1&&_0x5a0a1d['end']['isEqual'](_0x306f49['start']))return!0x0;if(0x1==_0x1c4c16['length']&&(_0x306f49['start']['isEqual'](_0x5a0a1d['end'])||_0x306f49['end']['isEqual'](_0x5a0a1d['start'])))return!0x0;}if(0x3==_0x545856&&0x3==_0x54a770&&_0x306f49['start']['isBefore'](_0x5a0a1d['start'])){const _0x430995=_0x306f49['end']['nodeAfter'],_0x4ca83b=_0x5a0a1d['start']['nodeBefore'];return _0x30c830['isBlockImage'](_0x430995)&&_0x430995===_0x4ca83b;}return!0x1;}function _0x264dee(_0xa5e801,_0x4dda07){return _0x3e021c(_0xa5e801,_0x4dda07)?[_0xa5e801,_0x4dda07]:_0x3e021c(_0x4dda07,_0xa5e801)?[_0x4dda07,_0xa5e801]:null;}_0x3ee5bd['plugins']['has']('ImageResize')&&(_0x7b03d['enableDefaultAttributesIntegration']('resizeImage'),_0x7b03d['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x5f3e25,'FORMAT_IMAGE_SIZE'))),_0x3ee5bd['plugins']['has']('ImageTextAlternativeEditing')&&_0x7b03d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ee5bd['plugins']['has']('PictureEditing')&&_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x72245=>{if('attribute'!=_0x72245['type'])return;const {data:_0x48440a}=_0x72245;return _0x48440a&&'sources'==_0x48440a['key']?{'type':'format','content':''}:void 0x0;}),_0x3ee5bd['plugins']['has']('ImageSizeAttributes')&&_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x3cecdf=>{if('attribute'!=_0x3cecdf['type'])return;const {data:_0x599dde}=_0x3cecdf;return!_0x599dde||'width'!=_0x599dde['key']&&'height'!=_0x599dde['key']?void 0x0:{'type':'format','content':''};}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x48bb97=>{if(_0x3881c5['find'](({type:_0x24e542,subType:_0x55aa5c})=>_0x48bb97['type']==_0x24e542&&_0x48bb97['subType']==_0x55aa5c))return _0x48bb97['previous']?{}:void 0x0;}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x15f77f=>{if('insertion'==_0x15f77f['type']||'deletion'==_0x15f77f['type']){const _0xf8cdc1=_0x15f77f['getContainedElement']();if(_0xf8cdc1&&_0xf8cdc1['is']('element','caption'))return{'type':'insertion'==_0x15f77f['type']?'addObject':'removeObject','element':_0xf8cdc1,'quantity':0x1};}}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x13cde0=>'formatBlock'==_0x13cde0['type']&&'convertInlineImageToBlock'==_0x13cde0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x13cde0['type']&&'convertBlockImageToInline'==_0x13cde0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x60d986=>{if('attribute'!=_0x60d986['type'])return;const {data:_0x3a276b}=_0x60d986;if(!_0x3a276b||'alt'!=_0x3a276b['key'])return;const _0x597057=_0x3a276b['newValue'];return _0x597057?{'type':'format','content':Mt(_0x5f3e25,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x597057+'\x22')}:{'type':'format','content':Mt(_0x5f3e25,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x950276=this['editor'],_0x3eadb3=_0x950276['locale'];_0x950276['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a249=>{if('formatBlock'!=_0x51a249['type']&&'formatInline'!=_0x51a249['type'])return;const {data:_0x4c95a2}=_0x51a249;if(_0x4c95a2){if('imageTextAlternative'==_0x4c95a2['commandName']){const _0x5ac97b=_0x4c95a2['commandParams'][0x0]['newValue'];return _0x5ac97b?{'type':'format','content':Mt(_0x3eadb3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ac97b+'\x22')}:{'type':'format','content':Mt(_0x3eadb3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c95a2['commandName']){const _0x243833=_0x4c95a2['commandParams'][0x0]['width'];return _0x243833?{'type':'format','content':Mt(_0x3eadb3,'*Set\x20image\x20width:*\x20%0',_0x243833)}:{'type':'format','content':Mt(_0x3eadb3,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1eebd9=this['editor']['locale'],_0x437967=this['editor']['plugins']['get']('TrackChangesEditing');_0x437967['enableDefaultAttributesIntegration']('replaceImageSource'),_0x437967['descriptionFactory']['registerDescriptionCallback'](_0x249c49=>{if('attribute'!=_0x249c49['type'])return;const {data:_0x4048e3}=_0x249c49;return _0x4048e3&&'src'==_0x4048e3['key']?_0x4048e3['newValue']&&_0x4048e3['oldValue']?{'type':'format','content':Mt(_0x1eebd9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x203cf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x203cf8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x203cf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x203cf8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x203cf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x25f41b=this['editor'],_0x273871=_0x25f41b['locale'];_0x25f41b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57efdf=>{if('formatBlock'!=_0x57efdf['type']&&'formatInline'!=_0x57efdf['type'])return;const {data:_0x1cd3ca}=_0x57efdf;return _0x1cd3ca&&'replaceImageSource'==_0x1cd3ca['commandName']?{'type':'format','content':Mt(_0x273871,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x18ca51{afterInit(){const _0x180a86=this['editor'];if(!_0x180a86['plugins']['has']('ImageStyleEditing'))return;const _0x41b17b=_0x180a86['plugins']['get']('TrackChangesEditing'),_0x5abefe=_0x180a86['plugins']['get']('ImageUtils'),_0x60ca97={};_0x41b17b['enableCommand']('imageStyle',(_0x2f09d7,_0xe9a3e)=>{const _0x546810=_0x180a86['plugins']['get']('Users')['me'],_0x480f5d=_0x180a86['commands']['get']('imageStyle');let _0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),_0x3d2566=_0x180a86['model']['createRangeOn'](_0x4146cf),_0x1c49d3=_0x480f5d['value'];if(_0x1c49d3==_0xe9a3e['value'])return;if(_0xe9a3e['value']&&_0x5abefe['isInlineImage'](_0x4146cf)&&!_0x480f5d['isStyleEnabled'](_0xe9a3e['value']))return;const _0x1b1712={'commandName':'imageStyle','commandParams':[_0xe9a3e],'formatGroupId':_0x3f17ac()};_0x180a86['model']['change'](()=>{if(_0x41b17b['getSuggestions']()['filter'](_0x222a80=>_0x222a80['isInContent']&&_0x546810==_0x222a80['author']&&('formatBlock'==_0x222a80['type']||'formatInline'==_0x222a80['type'])&&('imageStylePreApply'==_0x222a80['subType']||'imageStylePostApply'==_0x222a80['subType'])&&_0x222a80['getFirstRange']()['isEqual'](_0x3d2566))['forEach'](_0x48af2f=>_0x41b17b['discardSuggestion'](_0x48af2f['head'])),_0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),_0x3d2566=_0x180a86['model']['createRangeOn'](_0x4146cf),_0x480f5d['refresh'](),_0x180a86['commands']['get']('imageTypeInline')['refresh'](),_0x180a86['commands']['get']('imageTypeBlock')['refresh'](),_0x1c49d3=_0x480f5d['value'],_0x1c49d3!=_0xe9a3e['value'])return _0x5abefe['isInlineImage'](_0x4146cf)&&_0x480f5d['shouldConvertImageType'](_0xe9a3e['value'],_0x4146cf)?(_0x2f09d7({..._0xe9a3e,'setImageSizes':!0x1}),_0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),void _0x41b17b['markBlockFormat'](_0x4146cf,{..._0x1b1712,'commandReversedParams':[{'value':_0x1c49d3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5abefe['isBlockImage'](_0x4146cf)?_0x41b17b['markBlockFormat'](_0x4146cf,_0x1b1712,[],'imageStylePostApply'):_0x41b17b['markInlineFormat'](_0x3d2566,_0x1b1712,'imageStylePostApply'));});});for(const _0x2159f2 of _0x180a86['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x60ca97[_0x2159f2['name']]=_0x2159f2['title']['toLowerCase']();_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x310089])=>{_0x5abefe['setImageNaturalSizeAttributes'](_0x310089['getContainedElement']());}),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x222b99,_0x34e101)=>{_0x41b17b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x222b99,{'commandName':_0x34e101['commandName'],'commandParams':_0x34e101['commandReversedParams']});}),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5daa9f,_0x56a6b4){return _0x280f35(_0x5daa9f,_0x56a6b4)?[_0x5daa9f,_0x56a6b4]:_0x280f35(_0x56a6b4,_0x5daa9f)?[_0x56a6b4,_0x5daa9f]:null;});const _0x482bbe=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x280f35(_0x913e65,_0xf2bdc){const _0x530e54=_0x482bbe['findIndex'](({type:_0x22d169,subType:_0x141a8e})=>_0x913e65['type']==_0x22d169&&_0x913e65['subType']==_0x141a8e),_0x1ba37d=_0x482bbe['findIndex'](({type:_0x39b39f,subType:_0x56109d})=>_0xf2bdc['type']==_0x39b39f&&_0xf2bdc['subType']==_0x56109d);if(_0x530e54<0x0||_0x1ba37d<0x0)return!0x1;const _0x442472=_0x913e65['getFirstRange'](),_0x3ed6d4=_0xf2bdc['getFirstRange']();if((0x0==_0x530e54||0x1==_0x530e54)&&0x2==_0x1ba37d&&_0x442472['isIntersecting'](_0x3ed6d4))return!0x0;if(0x2==_0x530e54&&0x3==_0x1ba37d){const _0x1b5821=_0x41b17b['_findSuggestions'](_0x442472,'insertion')['filter'](({suggestion:_0x4655bd,meta:_0x210210})=>_0x210210['isOwn']&&'convertInlineImageToBlock'==_0x4655bd['subType']);if(_0x1b5821['length']>0x1&&_0x3ed6d4['end']['isEqual'](_0x442472['start']))return!0x0;if(0x1==_0x1b5821['length']&&(_0x442472['start']['isEqual'](_0x3ed6d4['end'])||_0x442472['end']['isEqual'](_0x3ed6d4['start'])))return!0x0;}if(0x3==_0x530e54&&0x3==_0x1ba37d&&_0x442472['start']['isBefore'](_0x3ed6d4['start'])){const _0x23d222=_0x442472['end']['nodeAfter'],_0x188c4d=_0x3ed6d4['start']['nodeBefore'];return _0x5abefe['isBlockImage'](_0x23d222)&&_0x23d222===_0x188c4d;}return!0x1;}_0x180a86['model']['document']['registerPostFixer'](()=>{let _0x52b13c=!0x1;const _0x5b35cb=Array['from'](_0x180a86['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5066d0,data:_0x3de4a4}of _0x5b35cb){const {group:_0x19716b,type:_0x40ee20,subType:_0x5870ba,id:_0x504e4a}=tt(_0x5066d0);if('suggestion'==_0x19716b&&_0x41b17b['hasSuggestion'](_0x504e4a)){if('formatBlock'==_0x40ee20&&('imageStylePreApply'==_0x5870ba||'imageStylePostApply'==_0x5870ba)){const _0x102887=_0x41b17b['getSuggestion'](_0x504e4a);if(_0x3de4a4['newRange']){const _0x1d5a91=_0x102887['getFirstRange']()['getContainedElement']();if(_0x5abefe['isBlockImage'](_0x1d5a91))continue;_0x41b17b['discardSuggestion'](_0x102887),_0x52b13c=!0x0;}}if('insertion'==_0x40ee20&&'imageCaption'==_0x5870ba&&!_0x3de4a4['newRange']){const _0x2b4a73=_0x41b17b['getSuggestion'](_0x504e4a);_0x2b4a73['next']&&_0x2b4a73['next']['isInContent']&&(_0x41b17b['discardSuggestion'](_0x2b4a73['next']),_0x52b13c=!0x0);}}}return _0x52b13c;}),this['_registerLegacyDescription'](_0x60ca97);}_registerLegacyDescription(_0x100540){const _0x6dda34=this['editor'],_0x523cea=_0x6dda34['locale'];_0x6dda34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ba406=>{if('formatBlock'!=_0x8ba406['type']&&'formatInline'!=_0x8ba406['type'])return;const {data:_0xfb4597}=_0x8ba406;if(!_0xfb4597||'imageStyle'!=_0xfb4597['commandName'])return;const _0x12db29=_0xfb4597['commandParams'][0x0]['value'];return _0x28dfbc('side'===_0x12db29?Mt(_0x523cea,'FORMAT_SIDE_IMAGE'):_0x100540[_0x12db29]||_0x12db29);function _0x28dfbc(_0x53c511){return{'type':'format','content':Mt(_0x523cea,'*Format:*\x20%0',_0x53c511)};}});}},me=class extends _0x18ca51{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5d276c){super(_0x5d276c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x35b63f=this['editor'],_0x247191=_0x35b63f['commands']['get']('importWord'),_0x538b09=_0x35b63f['commands']['get']('trackChanges');_0x247191&&(_0x247191['on']('execute',(_0x2bbc25,[,_0x342ad3])=>{this['_trackChangesValueDuringImport']=_0x538b09['value'],_0x342ad3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x247191,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x247191,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x538b09['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35b63f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x23ce38,_0x36b236){const {suggestions:_0x54f94c}=_0x36b236,_0x133edd=this['editor']['commands']['get']('trackChanges'),_0x1d0ac3=_0x133edd['value'];this['_trackChangesValueDuringImport']!==_0x1d0ac3&&(_0x133edd['execute'](),this['_trackChangesExecuted']=!0x0),_0x54f94c&&_0x54f94c['forEach'](({id:_0x5bb27d,type:_0x419a66,author:_0x390642,created_at:_0x46aba8})=>{const _0x4955d4={'id':_0x5bb27d,'type':_0x419a66,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x390642,'createdAt':_0x46aba8?new Date(_0x46aba8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4955d4);});}},Ee=class extends _0x18ca51{afterInit(){const _0x305fbe=this['editor'],_0x542e0d=_0x305fbe['plugins']['get']('TrackChangesEditing');if(_0x305fbe['plugins']['has']('IndentEditing')&&(_0x542e0d['enableCommand']('indent'),_0x542e0d['enableCommand']('outdent')),_0x305fbe['plugins']['has']('IndentBlock')){for(const _0x301f16 of['indentBlock','outdentBlock'])_0x542e0d['enableDefaultAttributesIntegration'](_0x301f16);if(_0x305fbe['plugins']['has']('ListEditing')){for(const _0x371155 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x542e0d['enableDefaultAttributesIntegration'](_0x371155);}}const _0x4d8cf4=_0x305fbe['locale'];_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x4d8cf4,'FORMAT_INDENT')),_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x4d8cf4,'FORMAT_INDENT')),_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x4d8cf4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x24e56d=this['editor'],_0x3f5b6e=_0x24e56d['locale'],_0x4d7645=_0x24e56d['plugins']['get']('TrackChangesEditing');_0x4d7645['descriptionFactory']['registerDescriptionCallback'](_0x515871=>{if('formatBlock'!=_0x515871['type'])return;const {data:_0x5b5432}=_0x515871;if(!_0x5b5432)return;if('indentBlock'!=_0x5b5432['commandName']&&'outdentBlock'!=_0x5b5432['commandName'])return;const _0x57345a=_0x515871['getItems']()[0x0],_0x210dda=_0x4d7645['descriptionFactory']['getItemLabel'](_0x57345a);return'indentBlock'==_0x5b5432['commandName']?{'type':'format','content':Mt(_0x3f5b6e,'*Indent:*\x20%0',_0x210dda)}:'outdentBlock'==_0x5b5432['commandName']?{'type':'format','content':Mt(_0x3f5b6e,'*Outdent:*\x20%0',_0x210dda)}:void 0x0;});}},Te=class extends _0x18ca51{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x18ca51{afterInit(){const _0x36e848=this['editor'];if(!_0x36e848['plugins']['has']('LinkEditing'))return;const _0x2c22ea=_0x36e848['plugins']['get']('TrackChangesEditing'),_0x640ba3=_0x36e848['commands']['get']('link');_0x2c22ea['enableDefaultAttributesIntegration']('link'),_0x2c22ea['enableDefaultAttributesIntegration']('unlink');for(const _0x823508 of _0x640ba3['manualDecorators'])_0x2c22ea['descriptionFactory']['registerAttributeLabel'](_0x823508['id'],'link\x20('+_0x823508['label']['toLowerCase']()+')');_0x2c22ea['descriptionFactory']['registerDescriptionCallback'](_0x4270fa=>{if('attribute'!=_0x4270fa['type'])return;const {data:_0x281a15}=_0x4270fa;if(!_0x281a15||'linkHref'!=_0x281a15['key'])return;const _0x5d3631=_0x281a15['newValue'],_0x187912=_0x36e848['locale'];return{'type':'format','content':null==_0x5d3631?Mt(_0x187912,'*Remove\x20link*'):Mt(_0x187912,'*Set\x20link:*\x20%0','\x22'+_0x5d3631+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xa3b4c0=this['editor'],_0x1b939f=_0xa3b4c0['locale'];_0xa3b4c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4864f8=>{if('formatInline'!=_0x4864f8['type'])return;const {data:_0x2a66af}=_0x4864f8;if(_0x2a66af){if('link'==_0x2a66af['commandName']){const _0x429bb1=_0x2a66af['commandParams'][0x0];return{'type':'format','content':Mt(_0x1b939f,'*Set\x20link:*\x20%0','\x22'+_0x429bb1+'\x22')};}return'unlink'==_0x2a66af['commandName']?{'type':'format','content':Mt(_0x1b939f,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x18ca51{afterInit(){const _0x2ac31d=this['editor'],_0x40c376=_0x2ac31d['locale'];if(!_0x2ac31d['plugins']['has']('LegacyListEditing'))return;const _0x5dfd0d=_0x2ac31d['plugins']['get']('TrackChangesEditing'),_0x344834=_0x2ac31d['plugins']['has']('LegacyTodoListEditing');function _0x4ae625(_0x1dd4b1){return()=>{const _0x1f2e52=_0x2ac31d['model']['document']['selection'],_0x5b3eda=_0x2ac31d['commands']['get'](_0x1dd4b1);if(_0x5b3eda['value'])return void _0x2ac31d['execute']('paragraph',{});const _0x2f6782=_0x1dd4b1['slice'](0x0,-0x4),_0x2e1eab=function(_0x1732fe,_0x1e5490,_0x89dac3){let _0x2030a8=Array['from'](_0x1732fe)['filter'](_0x3fee6=>function(_0x1d3f7c,_0x3c26ea){return _0x3c26ea['checkChild'](_0x1d3f7c['parent'],'listItem')&&!_0x3c26ea['isObject'](_0x1d3f7c);}(_0x3fee6,_0x89dac3));_0x2030a8=_0x2030a8['filter'](_0x1ddad9=>!_0x1ddad9['is']('element','listItem')||_0x1ddad9['getAttribute']('listType')!=_0x1e5490);const _0x17c73c=new Set();for(const _0x53a3b0 of _0x2030a8)_0x53a3b0['is']('element','listItem')?_0x17c73c['add'](Le(_0x53a3b0)):_0x17c73c['add'](_0x53a3b0);return Array['from'](_0x17c73c);}(_0x1f2e52['getSelectedBlocks'](),_0x2f6782,_0x2ac31d['model']['schema']);_0x2ac31d['model']['change'](()=>{for(const _0x1bdebc of _0x2e1eab)_0x5dfd0d['markBlockFormat'](_0x1bdebc,{'commandName':_0x1dd4b1,'commandParams':[{'forceValue':!_0x5b3eda['value']}],'formatGroupId':'blockName'},Ie(_0x1bdebc));});};}function _0x4d27bc(_0x28a30f){return()=>{const _0x2fb8d1=function(_0x3c78b8){let _0x1855a1=Array['from'](_0x3c78b8);const _0x26b8d7=_0x1855a1['findIndex'](_0x4242da=>'listItem'!=_0x4242da['name']);return _0x26b8d7>-0x1&&(_0x1855a1=_0x1855a1['slice'](0x0,_0x26b8d7)),_0x1855a1;}(_0x2ac31d['model']['document']['selection']['getSelectedBlocks']()),_0x423c31=_0x2ac31d['model']['createRange'](_0x2ac31d['model']['createPositionAt'](_0x2fb8d1[0x0],'before'),_0x2ac31d['model']['createPositionAt'](_0x2fb8d1[_0x2fb8d1['length']-0x1],'end'));_0x2ac31d['model']['change'](()=>{_0x5dfd0d['markBlockFormat'](_0x423c31,{'commandName':_0x28a30f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d0ba3){const _0x1a82ee=new Set();for(const _0x4bf04c of _0x1d0ba3){let _0xea2171=_0x4bf04c['nextSibling'];for(;_0xea2171&&_0xea2171['getAttribute']('listIndent')>_0x4bf04c['getAttribute']('listIndent');)_0x1a82ee['add'](_0xea2171),_0xea2171=_0xea2171['nextSibling'];}return Array['from'](_0x1a82ee);}(_0x2fb8d1));});};}_0x5dfd0d['enableCommand']('numberedList',_0x4ae625('numberedList')),_0x5dfd0d['enableCommand']('bulletedList',_0x4ae625('bulletedList')),_0x344834&&_0x5dfd0d['enableCommand']('todoList',_0x4ae625('todoList')),_0x5dfd0d['enableCommand']('indentList',_0x4d27bc('indentList')),_0x5dfd0d['enableCommand']('outdentList',_0x4d27bc('outdentList')),_0x344834&&_0x5dfd0d['enableCommand']('checkTodoList',()=>{const _0x34a736=_0x2ac31d['commands']['get']('checkTodoList'),_0x41c600=Array['from'](_0x34a736['_selectedElements']);_0x41c600['filter'](_0x132c3e=>_0x132c3e['getAttribute']('todoListChecked')!=_0x34a736['value']),_0x2ac31d['model']['change'](()=>{for(const _0x2d3ac1 of _0x41c600)_0x5dfd0d['markBlockFormat'](_0x2d3ac1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34a736['value']}]});});}),_0x5dfd0d['descriptionFactory']['registerElementLabel']('listItem',_0x10d552=>Mt(_0x40c376,'ELEMENT_LIST_ITEM',_0x10d552)),_0x5dfd0d['descriptionFactory']['registerDescriptionCallback'](_0x11e80d=>{if('formatBlock'!=_0x11e80d['type']&&'formatInline'!=_0x11e80d['type'])return;const {data:_0x41b8e6}=_0x11e80d;if(_0x41b8e6){if('numberedList'==_0x41b8e6['commandName']||'bulletedList'==_0x41b8e6['commandName']||'todoList'==_0x41b8e6['commandName'])switch(_0x41b8e6['commandName']['replace']('List','')){case'bulleted':return _0x46b37c(Mt(_0x40c376,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46b37c(Mt(_0x40c376,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46b37c(Mt(_0x40c376,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41b8e6['commandName'])return{'type':'format','content':Mt(_0x40c376,'*Indent:*\x20%0',Mt(_0x40c376,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41b8e6['commandName'])return{'type':'format','content':Mt(_0x40c376,'*Outdent:*\x20%0',Mt(_0x40c376,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41b8e6['commandName'])return _0x41b8e6['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x40c376,'*Check\x20item*')}:{'type':'format','content':Mt(_0x40c376,'*Uncheck\x20item*')};}function _0x46b37c(_0x1a5aa5){return{'type':'format','content':Mt(_0x40c376,'*Change\x20to:*\x20%0',_0x1a5aa5)};}});}};function Le(_0x1b199c){const _0x512d7d=_0x1b199c['getAttribute']('listIndent');if(0x0==_0x512d7d)return _0x1b199c;let _0x95e5d5=_0x1b199c;for(;_0x1b199c['previousSibling']&&_0x1b199c['previousSibling']['is']('element','listItem');){const _0x35db36=_0x1b199c['previousSibling']['getAttribute']('listIndent');if(_0x35db36==_0x512d7d)_0x95e5d5=_0x1b199c['previousSibling'];else{if(_0x35db36<_0x512d7d)break;}_0x1b199c=_0x1b199c['previousSibling'];}return _0x95e5d5;}function Ie(_0xb9e51c){const _0x97ca0b=[];if(_0xb9e51c['is']('element','listItem')&&_0xb9e51c['getAttribute']('listIndent')>0x0){let _0x3548a7=_0xb9e51c['nextSibling'];for(;_0x3548a7&&'listItem'==_0x3548a7['name']&&_0x3548a7['getAttribute']('listIndent')==_0xb9e51c['getAttribute']('listIndent');)_0x97ca0b['push'](_0x3548a7),_0x3548a7=_0x3548a7['nextSibling'];}return _0x97ca0b;}var Ae=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d721b=this['editor']['config']['get']('list.properties'),_0x407e54=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d721b['styles']&&_0x407e54['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d721b['reversed']&&_0x407e54['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d721b['startIndex']&&_0x407e54['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x407e54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x5842d6,_0x1ab870={}){const _0x59dfac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x240def=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x59dfac['markMultiRangeBlockFormat'](_0x240def,{'commandName':'listStyle','commandParams':[{'type':_0x1ab870['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x21cb49,_0x1a01c7={}){const _0x3cf7c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25415d=this['_getSuggestionBlocks'](_0x3580db=>_0x3580db['is']('element','listItem')&&'numbered'===_0x3580db['getAttribute']('listType'));if(_0x25415d['length']<0x1)return;const _0x311d87=_0x25415d['map'](_0x141e03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x141e03,'before'),this['editor']['model']['createPositionAt'](_0x141e03,0x0)));this['editor']['model']['change'](()=>{_0x3cf7c5['markMultiRangeBlockFormat'](_0x311d87,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a01c7['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x7c82d7,_0x4e3261={}){const _0x2b8293=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3238=this['_getSuggestionBlocks'](_0x58f8cc=>_0x58f8cc['is']('element','listItem')&&'numbered'===_0x58f8cc['getAttribute']('listType'));if(_0x4c3238['length']<0x1)return;const _0x18decf=_0x4c3238['map'](_0x1cd9e3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1cd9e3,'before'),this['editor']['model']['createPositionAt'](_0x1cd9e3,0x0)));this['editor']['model']['change'](()=>{_0x2b8293['markMultiRangeBlockFormat'](_0x18decf,{'commandName':'listStart','commandParams':[{'startIndex':_0x4e3261['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55d651){if('formatBlock'!=_0x55d651['type']&&'formatInline'!=_0x55d651['type'])return;const _0x4a8818=this['editor']['locale'],{data:_0x71d1d0}=_0x55d651;if(!_0x71d1d0)return;let _0x1b8b1a,_0x4ee813;switch(_0x71d1d0['commandName']){case'listStyle':_0x1b8b1a='*Change\x20to:*\x20%0',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a,Mt(_0x4a8818,this['_getTranslationKeyForListStyle'](_0x71d1d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b8b1a=_0x71d1d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a)};break;case'listStart':_0x1b8b1a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a,_0x71d1d0['commandParams'][0x0]['startIndex'])};}return _0x4ee813;}_getSuggestionBlocksForListStyle(){const _0x281769=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bb1bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bb1bf[0x0]?.['is']('element','listItem')&&_0x2bb1bf['unshift'](..._0x281769['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bb1bf[_0x2bb1bf['length']-0x1]?.['is']('element','listItem')&&_0x2bb1bf['push'](..._0x281769['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bb1bf=[...new Set(_0x2bb1bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bb1bf=_0x2bb1bf['filter'](_0x3a2a82=>_0x3a2a82['is']('element','listItem'))),_0x2bb1bf;}_getSuggestionBlocks(_0x354c5f){const _0x18fdd8=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d2495=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x354c5f)['map'](_0x4a1aa5=>{const _0x192005=this['editor']['model']['createPositionAt'](_0x4a1aa5,0x0);return[..._0x18fdd8['getSiblingNodes'](_0x192005,'backward'),..._0x18fdd8['getSiblingNodes'](_0x192005,'forward')];})['flat']();return _0x3d2495=[...new Set(_0x3d2495)],_0x3d2495;}_getTranslationKeyForListStyle(_0x574178){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x574178)||'default')['toUpperCase']()+'_LIST_'+_0x574178['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x18ca51{afterInit(){const _0xd05141=this['editor'];if(!_0xd05141['plugins']['has']('MediaEmbedEditing'))return;const _0x3da271=_0xd05141['plugins']['get']('TrackChangesEditing'),_0x4ac715=_0xd05141['locale'];_0x3da271['enableCommand']('mediaEmbed'),_0x3da271['descriptionFactory']['registerElementLabel']('media',_0x192d39=>Mt(_0x4ac715,'ELEMENT_MEDIA',_0x192d39)),_0xd05141['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3da271['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3da271['descriptionFactory']['registerDescriptionCallback'](_0x2a4a63=>{if('attribute'!=_0x2a4a63['type'])return;const {data:_0x3a5ff9}=_0x2a4a63;if(!_0x3a5ff9||'resizedWidth'!=_0x3a5ff9['key'])return;const _0x516367=_0x2a4a63['getContainedElement']();if(!_0x516367||!_0x516367['is']('element','media'))return;const _0x271a94=Mt(_0x4ac715,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x4ac715,'*Set\x20format:*\x20%0',_0x271a94)};}));}},ke=class extends _0x18ca51{afterInit(){const _0x55636a=this['editor'];if(!_0x55636a['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x53a6c5=_0x55636a['plugins']['get']('TrackChangesEditing'),_0x948c70=_0x55636a['locale'],_0x5a4c48=_0x55636a['plugins']['get']('MediaEmbedStyleEditing'),_0x28076e={};for(const _0x1c0bcb of _0x5a4c48['normalizedStyles'])_0x28076e[_0x1c0bcb['name']]=_0x1c0bcb['title']['toLowerCase']();const _0x277746=_0x5a4c48['normalizedStyles']['find'](_0x338bfc=>_0x338bfc['isDefault'])?.['name'];_0x53a6c5['enableCommand']('mediaStyle',(_0x176891,_0x378636)=>{const _0x1daadb=_0x55636a['plugins']['get']('Users')['me'],_0x544c5f=_0x55636a['commands']['get']('mediaStyle'),_0x24877e=function(_0xb7cc7e){const _0x25351c=_0xb7cc7e['model']['document']['selection']['getSelectedElement']();return _0x25351c&&_0x25351c['is']('element','media')?_0x25351c:null;}(_0x55636a);if(!_0x24877e)return;const _0x20ea1b=_0x55636a['model']['createRangeOn'](_0x24877e);let _0x333ec9=_0x544c5f['value'];if(_0x333ec9==_0x378636['value'])return;const _0x57c90b={'commandName':'mediaStyle','commandParams':[_0x378636],'formatGroupId':_0x3f17ac()};_0x55636a['model']['change'](()=>{_0x53a6c5['getSuggestions']()['filter'](_0x36f5aa=>_0x36f5aa['isInContent']&&_0x1daadb==_0x36f5aa['author']&&'formatBlock'==_0x36f5aa['type']&&'mediaStylePostApply'==_0x36f5aa['subType']&&_0x36f5aa['getFirstRange']()['isEqual'](_0x20ea1b))['forEach'](_0xe8bc9b=>_0x53a6c5['discardSuggestion'](_0xe8bc9b['head'])),_0x544c5f['refresh'](),_0x333ec9=_0x544c5f['value'],_0x333ec9!=_0x378636['value']&&_0x53a6c5['markBlockFormat'](_0x24877e,{..._0x57c90b,'commandReversedParams':[{'value':'string'==typeof _0x333ec9?_0x333ec9:null}]},[],'mediaStylePostApply');});}),_0x53a6c5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x53a6c5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4c892b,_0x283777)=>{_0x53a6c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c892b,{'commandName':_0x283777['commandName'],'commandParams':_0x283777['commandReversedParams']});}),_0x53a6c5['descriptionFactory']['registerDescriptionCallback'](_0x36421f=>{if('formatBlock'!=_0x36421f['type'])return;const {data:_0x3ad7ab}=_0x36421f;if(!_0x3ad7ab||'mediaStyle'!=_0x3ad7ab['commandName'])return;const _0x26c1b4=_0x3ad7ab['commandParams'][0x0]['value']||_0x277746;if(!_0x26c1b4)return;const _0x2e7a2d=_0x28076e[_0x26c1b4]||_0x26c1b4;return{'type':'format','content':Mt(_0x948c70,'*Format:*\x20%0',_0x2e7a2d)};});}},Ce=class extends _0x18ca51{afterInit(){const _0x557759=this['editor'];_0x557759['plugins']['has']('MentionEditing')&&_0x557759['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x18ca51{afterInit(){const _0x565baf=this['editor'];if(!_0x565baf['plugins']['has']('MergeFieldsEditing'))return;const _0x2b493f=_0x565baf['plugins']['get']('TrackChangesEditing'),_0x236e97=_0x565baf['locale'];_0x2b493f['enableCommand']('insertMergeField'),_0x2b493f['enableCommand']('insertMergeFieldBlock'),_0x2b493f['enableCommand']('insertMergeFieldImage'),_0x2b493f['descriptionFactory']['registerElementLabel']('mergeField',_0x20d591=>Mt(_0x236e97,'ELEMENT_MERGE_FIELD',_0x20d591)),_0x2b493f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x156bb2=>Mt(_0x236e97,'ELEMENT_MERGE_FIELD',_0x156bb2)),_0x2b493f['descriptionFactory']['registerDescriptionCallback'](_0x2b9c54=>{if('insertion'!=_0x2b9c54['type']&&'deletion'!=_0x2b9c54['type'])return;const _0x101e2c=_0x2b9c54['getContainedElement']();if(null==_0x101e2c)return;const _0x94d5a=_0x565baf['plugins']['get']('MergeFieldsEditing');let _0x2888a3;switch(_0x94d5a['getMergeFieldType'](_0x101e2c)){case null:return;case'image':{const _0x3e3e9b=_0x94d5a['unwrapAffixes'](_0x101e2c['getAttribute']('src'));_0x2888a3=_0x94d5a['getLabel'](_0x3e3e9b)||_0x3e3e9b;break;}default:{const _0x2e8831=_0x101e2c['getAttribute']('id');_0x2888a3=_0x94d5a['getLabel'](_0x2e8831)||_0x2e8831;break;}}return'insertion'==_0x2b9c54['type']?{'type':'insertion','content':Mt(_0x236e97,'*Insert:*\x20%0','\x22'+_0x2888a3+'\x22\x20'+Mt(_0x236e97,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x236e97,'*Remove:*\x20%0','\x22'+_0x2888a3+'\x22\x20'+Mt(_0x236e97,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x18ca51{afterInit(){const _0x485891=this['editor'],_0x408bd9=_0x485891['plugins']['get']('TrackChangesEditing');_0x485891['plugins']['has']('MultiLevelList')&&(_0x408bd9['enableDefaultAttributesIntegration']('multiLevelList'),_0x408bd9['descriptionFactory']['registerDescriptionCallback'](_0x42173f=>this['handleDescriptions'](_0x42173f)));}handleDescriptions(_0x1b7410){const _0x59577b=this['editor']['locale'],{data:_0x594d00}=_0x1b7410,_0x5a9cdb={'type':'format','content':''};if(_0x594d00&&'listMarkerStyle'==_0x594d00['key']){if(!_0x594d00['oldValue'])return{'type':'format','content':Mt(_0x59577b,'*Set\x20format:*\x20%0',Mt(_0x59577b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x594d00['newValue']+')'};if(!_0x594d00['newValue']){let _0x294da7=_0x1b7410['head'];for(;_0x294da7;){if(_0x294da7['data']&&'listType'==_0x294da7['data']['key']&&_0x294da7['data']['newValue'])return _0x5a9cdb;_0x294da7=_0x294da7['next'];}return{'type':'format','content':Mt(_0x59577b,'*Remove\x20format:*\x20%0',Mt(_0x59577b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x594d00['oldValue']+')'};}}}},Ne=class extends _0x18ca51{afterInit(){const _0x5ebda5=this['editor'];if(!_0x5ebda5['plugins']['has']('PageBreakEditing'))return;_0x5ebda5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x7ab1ac=_0x5ebda5['plugins']['get']('TrackChangesEditing'),_0x383ef6=_0x5ebda5['locale'];_0x7ab1ac['descriptionFactory']['registerElementLabel']('pageBreak',_0x56e930=>Mt(_0x383ef6,'ELEMENT_PAGE_BREAK',_0x56e930));}},Se=class extends _0x18ca51{afterInit(){const _0x2aa814=this['editor'];if(!_0x2aa814['plugins']['has']('Paragraph'))return;const _0x3ac03d=_0x2aa814['locale'],_0x2da060=_0x2aa814['plugins']['get']('TrackChangesEditing');_0x2da060['descriptionFactory']['registerElementLabel']('paragraph',_0x4c92a5=>Mt(_0x3ac03d,'ELEMENT_PARAGRAPH',_0x4c92a5)),_0x2da060['enableDefaultAttributesIntegration']('paragraph'),_0x2da060['enableCommand']('insertParagraph');const _0x215cb4=_0x2da060['descriptionFactory'];_0x215cb4['registerDescriptionCallback'](_0x137e84=>{if('insertion'!==_0x137e84['type'])return;const {start:_0x718452,end:_0xc7878b}=_0x137e84['getFirstRange']();if(!_0x718452['isTouching'](_0xc7878b)||!_0x718452['nodeAfter'])return;const _0x54bf5b=_0x2aa814['model']['schema'],_0x4a419d=_0x718452['nodeAfter'];return _0x54bf5b['isBlock'](_0x4a419d)&&!_0x54bf5b['isLimit'](_0x4a419d)&&_0x54bf5b['checkChild'](_0x4a419d,'$text')?{'type':'insertion','content':Mt(_0x3ac03d,'*Insert:*\x20%0',_0x215cb4['getItemLabel'](_0x4a419d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2cee86=this['editor'],_0x4bdb3a=_0x2cee86['locale'];_0x2cee86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dd63e=>{if('formatBlock'!=_0x5dd63e['type'])return;const {data:_0xb158b9}=_0x5dd63e;return _0xb158b9&&'paragraph'==_0xb158b9['commandName']?{'type':'format','content':Mt(_0x4bdb3a,'*Change\x20to:*\x20%0',Mt(_0x4bdb3a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x18ca51{afterInit(){const _0x461cab=this['editor'];_0x461cab['commands']['get']('replaceSource')&&_0x461cab['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x18ca51{afterInit(){const _0x483419=this['editor'];_0x483419['plugins']['has']('RemoveFormatEditing')&&(_0x483419['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5cd06a=this['editor'];_0x5cd06a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x343d0a=>{if('formatBlock'!=_0x343d0a['type']&&'formatInline'!=_0x343d0a['type'])return;const {data:_0x2448dd}=_0x343d0a;return _0x2448dd&&'removeFormat'==_0x2448dd['commandName']?{'type':'format','content':Mt(_0x5cd06a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x18ca51{afterInit(){const _0x128710=this['editor'];if(!_0x128710['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1fcfa1=_0x128710['plugins']['get']('TrackChangesEditing');_0x1fcfa1['enableCommand']('goToPreviousRestrictedEditingException'),_0x1fcfa1['enableCommand']('goToNextRestrictedEditingException');const _0x46afed=_0x128710['plugins']['get']('RestrictedEditingModeEditing');_0x46afed['enableCommand']('trackChanges'),_0x46afed['enableCommand']('acceptSuggestion'),_0x46afed['enableCommand']('discardSuggestion'),_0x46afed['enableCommand']('acceptAllSuggestions'),_0x46afed['enableCommand']('discardAllSuggestions'),_0x46afed['enableCommand']('acceptSelectedSuggestions'),_0x46afed['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x18ca51{afterInit(){const _0x3f60f6=this['editor'];if(!_0x3f60f6['plugins']['has']('ShiftEnter'))return;const _0x330ce7=_0x3f60f6['plugins']['get']('TrackChangesEditing');_0x330ce7['enableCommand']('shiftEnter'),_0x330ce7['descriptionFactory']['registerElementLabel']('softBreak',_0x2fd044=>Mt(_0x3f60f6['locale'],'ELEMENT_LINE_BREAK',_0x2fd044));}};function Be(_0x53bc28,_0x3f5439,_0x54a71f){const _0x2fa08d=[];for(const _0x513bc3 of _0x3f5439['getItems']())_0x513bc3['hasAttribute'](_0x53bc28)&&_0x2fa08d['push'](_0x54a71f['createRangeOn'](_0x513bc3));return _0x2fa08d;}var ve=class extends _0x18ca51{afterInit(){const _0x42bb52=this['editor'],_0x108cd0=_0x42bb52['plugins']['get']('TrackChangesEditing');_0x42bb52['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x108cd0['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5b7737=this['editor'],_0x50b50c=_0x5b7737['model'],_0x117e73=_0x5b7737['locale'],_0x48137a=_0x5b7737['plugins']['get']('TrackChangesEditing'),_0x2cb763='restrictedEditingException',_0x2bd6a9=_0x5b7737['commands']['get'](_0x2cb763);_0x48137a['enableCommand'](_0x2cb763,(_0x423115,_0x3cfec1={})=>{const _0x1adb05=_0x50b50c['document']['selection'];if(_0x1adb05['isCollapsed'])return void _0x423115(_0x3cfec1);const _0x5da97e=void 0x0!==_0x3cfec1['forceValue']?_0x3cfec1['forceValue']:!_0x2bd6a9['value'];_0x50b50c['change'](()=>{const _0x4f4d04=Array['from'](_0x1adb05['getRanges']());for(const _0x59f57c of _0x4f4d04){const _0x166d3=_0x5da97e?[_0x59f57c]:Be(_0x2cb763,_0x59f57c,_0x50b50c);for(const _0x131577 of _0x166d3)_0x48137a['markInlineFormat'](_0x131577,{'commandName':_0x2cb763,'commandParams':[{'forceValue':_0x5da97e}]});}});}),_0x48137a['descriptionFactory']['registerDescriptionCallback'](_0x553ea9=>{if('formatBlock'!=_0x553ea9['type']&&'formatInline'!=_0x553ea9['type'])return;const {data:_0x30f8eb}=_0x553ea9;return _0x30f8eb&&_0x30f8eb['commandName']==_0x2cb763?_0x30f8eb['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x117e73,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x117e73,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x530125=this['editor'],_0x5c61aa=_0x530125['locale'],_0x91b43b=_0x530125['plugins']['get']('TrackChangesEditing'),_0x3ee41e='restrictedEditingExceptionBlock',_0x3f2756=this['editor']['commands']['get'](_0x3ee41e);_0x91b43b['enableCommand'](_0x3ee41e,(_0x145d1b,_0x27c5c8={})=>{const _0x22a966=this['editor']['model']['document']['selection'],_0x369049=_0x27c5c8&&void 0x0!==_0x27c5c8['forceValue']?_0x27c5c8['forceValue']:!_0x3f2756['value'];let _0x1e7f11=[];if(_0x369049){const _0x519529=Array['from'](_0x22a966['getSelectedBlocks']())['filter'](_0xe6bc2d=>function(_0x5d9693){return!!_0x5d9693['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xe6bc2d)||function(_0x1e173e,_0x2e29f3){const _0x3de2a0=_0x2e29f3['createContext'](_0x1e173e['parent']);return!!_0x2e29f3['checkChild'](_0x3de2a0,'restrictedEditingException')&&!!_0x2e29f3['checkChild'](_0x3de2a0['push']('restrictedEditingException'),_0x1e173e);}(_0xe6bc2d,this['editor']['model']['schema']));_0x1e7f11=bt(_0x519529,_0x530125['model']);}else{const _0x23efe0=Array['from'](_0x22a966['getSelectedBlocks']())['map'](_0x4fd4b9=>function(_0x3e560c){let _0x2cf257=_0x3e560c;for(;_0x2cf257['parent'];){if('restrictedEditingException'==_0x2cf257['parent']['name'])return _0x2cf257;_0x2cf257=_0x2cf257['parent'];}return null;}(_0x4fd4b9))['filter'](_0x1e1417=>!!_0x1e1417);_0x1e7f11=bt(_0x23efe0,_0x530125['model']);}_0x530125['model']['change'](()=>{for(const _0x897847 of _0x1e7f11)_0x91b43b['markBlockFormat'](_0x897847,{'commandName':_0x3ee41e,'commandParams':[{'forceValue':_0x369049}]});});}),_0x91b43b['descriptionFactory']['registerDescriptionCallback'](_0x34207c=>{const {data:_0x5bd5ff}=_0x34207c;if(_0x5bd5ff&&_0x5bd5ff['commandName']==_0x3ee41e)return _0x5bd5ff['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5c61aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x5c61aa,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x18ca51{afterInit(){const _0x4dc7a8=this['editor'];_0x4dc7a8['plugins']['has']('Style')&&_0x4dc7a8['plugins']['has']('DataSchema')&&(_0x4dc7a8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x49c3ce=this['editor'],_0x502628=_0x49c3ce['locale'];_0x49c3ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b3db=>{if('formatBlock'!=_0x12b3db['type']&&'formatInline'!=_0x12b3db['type'])return;const {data:_0x25c78f}=_0x12b3db;return _0x25c78f&&'style'===_0x25c78f['commandName']?_0x25c78f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x502628,'*Set\x20format:*\x20%0',_0x25c78f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x502628,'*Remove\x20format:*\x20%0',_0x25c78f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x18ca51{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x14abb7){super(_0x14abb7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x557923=this['editor'],_0x535e93=_0x557923['model']['document']['selection'];if(!_0x557923['plugins']['has']('TableEditing'))return;const _0x33ea2b=_0x557923['locale'],_0x2b603f=_0x557923['plugins']['get']('TrackChangesEditing'),_0x1006c8=_0x557923['plugins']['get']('TableUtils');_0x2b603f['descriptionFactory']['registerElementLabel']('table',_0x41a2ad=>Mt(_0x33ea2b,'ELEMENT_TABLE',_0x41a2ad)),this['_setupColumnsRowsFixing'](),_0x2b603f['enableCommand']('insertTable'),_0x2b603f['enableCommand']('selectTableRow'),_0x2b603f['enableCommand']('selectTableColumn');for(const _0x4b7199 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cb010=_0x557923['commands']['get'](_0x4b7199);_0x2b603f['enableCommand'](_0x4b7199,_0x4f73b9=>{_0x557923['model']['change'](_0x1eccc5=>{_0x4f73b9();const _0x4fbc99='above'===_0x3cb010['order'],_0x5e0129=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x582bcf=_0x1006c8['getRowIndexes'](_0x5e0129),_0x4cbdf8=_0x4fbc99?_0x582bcf['first']-0x1:_0x582bcf['last']+0x1,_0x191cc7=_0x5e0129[0x0]['findAncestor']('table'),_0x25d310=_0x1006c8['createTableWalker'](_0x191cc7,{'startRow':_0x4cbdf8,'endRow':_0x4cbdf8}),_0xdbd3f9=Array['from'](_0x25d310)['map'](_0x1e2e81=>_0x1eccc5['createRangeOn'](_0x1e2e81['cell']));_0x2b603f['markMultiRangeInsertion'](_0xdbd3f9,'tableRow');});});}for(const _0x25059a of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b02b7=_0x557923['commands']['get'](_0x25059a);_0x2b603f['enableCommand'](_0x25059a,_0x14956f=>{_0x557923['model']['change'](_0x4cac5a=>{_0x14956f();const _0x29dea8='left'===_0x5b02b7['order'],_0x278612=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x43ad6c=_0x1006c8['getColumnIndexes'](_0x278612),_0x4b42a4=_0x29dea8?_0x43ad6c['first']-0x1:_0x43ad6c['last']+0x1,_0x344f63=_0x278612[0x0]['findAncestor']('table'),_0x23e1ed=_0x1006c8['createTableWalker'](_0x344f63,{'startRow':0x0,'column':_0x4b42a4,'includeAllSlots':!0x1}),_0x541b70=Array['from'](_0x23e1ed)['map'](_0x3078ee=>_0x4cac5a['createRangeOn'](_0x3078ee['cell']));_0x2b603f['markMultiRangeInsertion'](_0x541b70,'tableColumn');});});}for(const _0x2ff5d7 of['removeTableRow','removeTableColumn']){const _0x45e2a6=_0x2ff5d7['substr'](0xb),_0x10b2cf=_0x45e2a6['toLowerCase'](),_0x392045=_0x10b2cf['substr'](0x0,0x3)+'span',_0x3277e2='table'+_0x45e2a6,_0x14ef13='min'+_0x45e2a6,_0x12281d='max'+_0x45e2a6;_0x2b603f['enableCommand'](_0x2ff5d7,()=>{_0x557923['model']['change'](_0x39ccf8=>{const _0x19cf01=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x2055b0=_0x19cf01[0x0]['findAncestor']('table');let _0x2c25e9;if('removeTableRow'==_0x2ff5d7){const _0x41da3a=_0x1006c8['getRowIndexes'](_0x19cf01);_0x2c25e9={'startRow':_0x41da3a['first'],'endRow':_0x41da3a['last'],'includeAllSlots':!0x0};}else{const _0x1adf95=_0x1006c8['getColumnIndexes'](_0x19cf01);_0x2c25e9={'startColumn':_0x1adf95['first'],'endColumn':_0x1adf95['last'],'includeAllSlots':!0x0};}const _0x2e73a3=_0x1006c8['createTableWalker'](_0x2055b0,_0x2c25e9),_0x2aaf2b=Array['from'](_0x2e73a3)['map'](({cell:_0xdd9e5b})=>_0xdd9e5b),_0x539f78=Pe(_0x2aaf2b['filter'](_0x77c619=>_0x77c619['hasAttribute'](_0x392045))),_0x539ad8=Pe(_0x2aaf2b['filter'](_0x37848c=>!_0x37848c['hasAttribute'](_0x392045)))['map'](_0x12e25a=>_0x39ccf8['createRangeOn'](_0x12e25a)),_0xccced1=_0x2b603f['markMultiRangeDeletion'](_0x539ad8,_0x3277e2);if(_0xccced1&&('tableRow'==_0xccced1['subType']||'tableColumn'==_0xccced1['subType'])){const _0x5129e1=this['_getSuggestionCoords'](_0xccced1);for(const _0x162fe6 of _0x539f78){const _0x44ebae=_0x39ccf8['createRangeOn'](_0x162fe6),_0x5eb28f=_0x1006c8['getCellLocation'](_0x162fe6),_0x407276=_0x162fe6['getAttribute'](_0x392045)-0x1,_0x3f3132=_0x5129e1[_0x14ef13],_0x168887=_0x5129e1[_0x12281d];_0x3f3132<=_0x5eb28f[_0x10b2cf]&&_0x5eb28f[_0x10b2cf]+_0x407276<=_0x168887&&_0xccced1['addRange'](_0x44ebae);}}});});}function _0x2009b0(_0x125f30){const _0xbd019a=Array['from'](_0x535e93['getRanges']())['map'](_0xe4ab1f=>rt['fromRange'](_0xe4ab1f));_0x557923['model']['change'](_0x497e52=>{const _0x37234e=_0x497e52['batch'];_0x125f30=_0x125f30['filter'](_0x401b0e=>'$graveyard'!=_0x401b0e['root']['rootName']),_0x497e52['setSelection'](_0x125f30),_0x557923['commands']['get']('removeTableRow')['refresh'](),_0x557923['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x557923['model']['enqueueChange'](()=>{_0x557923['model']['enqueueChange'](_0x37234e,_0x4276ca=>{const _0xa2261b=_0xbd019a['filter'](_0xf12bda=>'$graveyard'!=_0xf12bda['root']['rootName']);_0xa2261b['length']>0x0&&_0x4276ca['setSelection'](_0xa2261b);for(const _0x107cc5 of _0xbd019a)_0x107cc5['detach']();});});});}function _0x110e00(_0x4f1fcd){_0x557923['model']['change'](_0x239847=>{const _0x35e7b3=Array['from'](_0x535e93['getRanges']())['map'](_0x2bcf7c=>rt['fromRange'](_0x2bcf7c)),_0x2bfc81=[];for(const _0x505012 of _0x4f1fcd)for(const _0x4add18 of _0x505012['getItems']({'shallow':!0x0}))_0x2bfc81['push'](_0x4add18);for(const _0x22bc8f of _0x2bfc81)'$graveyard'!=_0x22bc8f['root']['rootName']&&(_0x239847['setSelection'](_0x239847['createPositionAt'](_0x22bc8f,0x0)),_0x557923['commands']['get']('removeTableColumn')['refresh'](),_0x557923['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3bdfd4=_0x35e7b3['filter'](_0x111240=>'$graveyard'!=_0x111240['root']['rootName']);_0x3bdfd4['length']>0x0&&_0x239847['setSelection'](_0x3bdfd4);for(const _0x52e8f3 of _0x35e7b3)_0x52e8f3['detach']();});}function _0x16857f(_0x4fecaf,_0x5624e3){return _0x5624e3['every'](_0x31c226=>_0x4fecaf['some'](_0x2ed1ce=>_0x2ed1ce['end']['isEqual'](_0x31c226['start'])||_0x31c226['end']['isEqual'](_0x2ed1ce['start'])));}function _0x4d5306(_0x4f91cd,_0x12f9ff){return!_0x4f91cd['some'](_0x579451=>_0x12f9ff['some'](_0x11e76e=>_0x579451['isIntersecting'](_0x11e76e)))&&_0x4f91cd['some'](_0x3911b5=>_0x12f9ff['some'](_0xdc6ac4=>_0x3911b5['end']['isTouching'](_0xdc6ac4['start'])));}_0x2b603f['descriptionFactory']['registerDescriptionCallback'](_0x44639c=>{if('insertion'!=_0x44639c['type']&&'deletion'!=_0x44639c['type'])return;const _0x1abbd5=_0x44639c['getContainedElement']();if(null!=_0x1abbd5&&_0x1abbd5['is']('element','table')){if('insertion'==_0x44639c['type']){const _0xbafc39=_0x44639c['getItems']()['filter'](_0x13b4cc=>_0x13b4cc['is']('$textProxy'))['map'](_0x55837f=>_0x55837f['data']);if(_0xbafc39['length'])return{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbafc39['join']('\x20')+'\x22'))};}if('deletion'==_0x44639c['type']){const _0xbc54be=_0x44639c['getItems']()['filter'](_0x214a1a=>_0x214a1a['is']('$textProxy'))['map'](_0x4a32c8=>_0x4a32c8['data']);if(_0xbc54be['length'])return{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbc54be['join']('\x20')+'\x22'))};}}}),_0x2b603f['descriptionFactory']['registerDescriptionCallback'](_0x53f055=>{if('tableRow'==_0x53f055['subType']){const _0xcc6368=_0x53f055['getItems']()['filter'](_0x39293=>_0x39293['is']('$textProxy'))['map'](_0x24b0e6=>_0x24b0e6['data']),_0x2d687c=this['_getSuggestionCoords'](_0x53f055),_0x199fec=_0x2d687c['maxRow']-_0x2d687c['minRow']+0x1;if('insertion'==_0x53f055['type'])return _0xcc6368['length']?{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x199fec,'\x22'+_0xcc6368['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW',_0x199fec))};if('deletion'==_0x53f055['type'])return _0xcc6368['length']?{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x199fec,'\x22'+_0xcc6368['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW',_0x199fec))};}if('tableColumn'==_0x53f055['subType']){const _0x3c22c8=_0x53f055['getItems']()['filter'](_0x2ed497=>_0x2ed497['is']('$textProxy'))['map'](_0x794ce6=>_0x794ce6['data']),_0x42d3a8=this['_getSuggestionCoords'](_0x53f055),_0x507204=_0x42d3a8['maxColumn']-_0x42d3a8['minColumn']+0x1;if('insertion'==_0x53f055['type'])return _0x3c22c8['length']?{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x507204,'\x22'+_0x3c22c8['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN',_0x507204))};if('deletion'==_0x53f055['type'])return _0x3c22c8['length']?{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x507204,'\x22'+_0x3c22c8['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN',_0x507204))};}}),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2009b0),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2009b0),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x110e00),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x110e00),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16857f),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16857f),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4d5306),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4d5306);}_acceptFormatSuggestionCallbackFactory(){const _0x17be8f=this['editor'],_0x513451=_0x17be8f['model']['document']['selection'];return(_0x324f8d,_0x30346e)=>{_0x17be8f['model']['change'](_0x6aa931=>{const {commandName:_0x4944db,commandParams:_0x258ae4}=_0x30346e;let _0x452422=_0x324f8d[0x0]['end']['nodeBefore'];_0x258ae4&&_0x258ae4[0x0]&&!0x1===_0x258ae4[0x0]['forceValue']&&(_0x452422=_0x324f8d[0x0]['start']['nodeAfter']);const _0x598385=_0x6aa931['createRangeIn'](_0x452422);if('$graveyard'==_0x598385['root']['rootName'])return;const _0x4c352f=Array['from'](_0x513451['getRanges']())['map'](_0x595638=>rt['fromRange'](_0x595638));_0x6aa931['setSelection'](_0x598385),_0x17be8f['commands']['get'](_0x4944db)['refresh'](),_0x258ae4['push']({'forceDefaultExecution':!0x0}),_0x17be8f['execute'](_0x4944db,..._0x258ae4);const _0x2d5e94=_0x4c352f['filter'](_0x568d2a=>'$graveyard'!=_0x568d2a['root']['rootName']);_0x2d5e94['length']>0x0&&_0x6aa931['setSelection'](_0x2d5e94);for(const _0x47368a of _0x4c352f)_0x47368a['detach']();});};}_getCoordsForCells(_0x3124f3){const _0x48efb3=this['editor']['plugins']['get']('TableUtils');let _0x3d660b=Number['MAX_SAFE_INTEGER'],_0x1380a9=Number['MIN_SAFE_INTEGER'],_0x1ead5b=Number['MAX_SAFE_INTEGER'],_0x3de170=Number['MIN_SAFE_INTEGER'];for(const _0x4e0fe7 of _0x3124f3){if('$graveyard'==_0x4e0fe7['root']['rootName'])continue;const {row:_0x3b5f6c,column:_0x2c51ac}=_0x48efb3['getCellLocation'](_0x4e0fe7),_0x173876=_0x4e0fe7['hasAttribute']('rowspan')?_0x4e0fe7['getAttribute']('rowspan')-0x1:0x0,_0xfaa717=_0x4e0fe7['hasAttribute']('colspan')?_0x4e0fe7['getAttribute']('colspan')-0x1:0x0;_0x3d660b=_0x3b5f6c<_0x3d660b?_0x3b5f6c:_0x3d660b,_0x1380a9=_0x3b5f6c+_0x173876>_0x1380a9?_0x3b5f6c+_0x173876:_0x1380a9,_0x1ead5b=_0x2c51ac<_0x1ead5b?_0x2c51ac:_0x1ead5b,_0x3de170=_0x2c51ac+_0xfaa717>_0x3de170?_0x2c51ac+_0xfaa717:_0x3de170;}return{'minRow':_0x3d660b,'maxRow':_0x1380a9,'minColumn':_0x1ead5b,'maxColumn':_0x3de170};}_setupColumnsRowsFixing(){const _0x32cbfd=this['editor'],_0x442a9c=_0x32cbfd['plugins']['get']('TrackChangesEditing'),_0x155bca=_0x32cbfd['plugins']['get']('TableUtils');_0x32cbfd['model']['document']['on']('change:data',()=>{const _0x105a34=Array['from'](_0x32cbfd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d3c36,data:_0x316454}of _0x105a34){const {group:_0x50ebd5,id:_0x5642bc,subType:_0x404544}=tt(_0x2d3c36);if('suggestion'!=_0x50ebd5)continue;if(null!=_0x316454['oldRange'])continue;const _0x5c9fc7=_0x442a9c['getSuggestion'](_0x5642bc);this['_tablePostFixingSubtypes']['includes'](_0x404544)&&this['_tableSuggestions']['add'](_0x5c9fc7);}},{'priority':'low'});const _0x5dc9c4=(_0x445d15,_0x2fb7a6)=>{let _0x56d0cd=!0x1;const _0xd65433=_0x2fb7a6['createRangeOn'](_0x445d15),_0x2d00d1=_0x445d15['findAncestor']('table'),_0x26e113=_0x155bca['getCellLocation'](_0x445d15);for(const _0x56a11f of this['_tableSuggestions']){const _0x4d91bd=_0x56a11f['subType'],_0x4fc022=_0x4d91bd['startsWith']('tablePaste'),_0x3bbddb=_0x4d91bd['substr'](_0x4fc022?0xa:0x5),_0x32e8f1=_0x3bbddb['toLowerCase'](),_0x187c23=_0x32e8f1['substr'](0x0,0x3)+'span',_0x4cd65e='min'+_0x3bbddb,_0x43f4d1='max'+_0x3bbddb;if(!_0x56a11f['isInContent'])continue;if(_0x2d00d1!=_0x56a11f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a11f['isIntersectingWithRange'](_0xd65433))continue;const _0x5a7e62=_0x445d15['hasAttribute'](_0x187c23)?_0x445d15['getAttribute'](_0x187c23)-0x1:0x0,_0x55f705=this['_getSuggestionCoords'](_0x56a11f),_0x5d6efc=_0x55f705[_0x4cd65e],_0x57c00b=_0x55f705[_0x43f4d1];_0x5d6efc<=_0x26e113[_0x32e8f1]&&_0x26e113[_0x32e8f1]+_0x5a7e62<=_0x57c00b&&(_0x56a11f['addRange'](_0xd65433),_0x56d0cd=!0x0);}return _0x56d0cd;};_0x32cbfd['model']['document']['registerPostFixer'](_0x271708=>{let _0x26ff7b=!0x1;for(const _0x4927a4 of _0x32cbfd['model']['document']['differ']['getChanges']())if('insert'==_0x4927a4['type']){if('tableRow'==_0x4927a4['name']){for(const _0x2ba3a9 of _0x4927a4['position']['nodeAfter']['getChildren']())_0x26ff7b=_0x26ff7b||_0x5dc9c4(_0x2ba3a9,_0x271708);}else'tableCell'==_0x4927a4['name']&&(_0x26ff7b=_0x26ff7b||_0x5dc9c4(_0x4927a4['position']['nodeAfter'],_0x271708));}return _0x26ff7b;});}_getSuggestionCoords(_0x5ea7ab){return this['_getCoordsForCells'](_0x5ea7ab['getRanges']()['map'](_0x1de118=>_0x1de118['start']['nodeAfter']));}};function Pe(_0x367bd6){return Array['from'](new Set(_0x367bd6)['values']());}var xe=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x4dd060=this['editor'],_0x35bebe=_0x4dd060['model']['document']['selection'],_0x30aee2=_0x4dd060['locale'];if(!_0x4dd060['plugins']['has']('TableEditing'))return;const _0x11f722=_0x4dd060['plugins']['get']('TrackChangesEditing'),_0x5aeaae=_0x4dd060['plugins']['get']('TableUtils'),_0x20852e=_0x4dd060['plugins']['get'](Ue);_0x20852e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11f722['enableCommand']('mergeTableCells',()=>{const _0x24c105=_0x5aeaae['getSelectionAffectedTableCells'](_0x4dd060['model']['document']['selection']);_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat'](_0x24c105,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4dd060['commands']['get']('mergeTableCells')['on']('execute',(_0x4825ac,_0x515daf)=>{_0x4dd060['commands']['get']('trackChanges')['value']&&(_0x515daf['length']>0x0&&_0x515daf[_0x515daf['length']-0x1]&&_0x515daf[_0x515daf['length']-0x1]['forceDefaultExecution']||_0x11f722['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4825ac['stop']());},{'priority':'highest'});for(const _0x1b3058 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3527e6=_0x4dd060['commands']['get'](_0x1b3058);_0x11f722['enableCommand'](_0x1b3058,()=>{const _0x55e6d6=_0x4dd060['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x297d21=>_0x297d21['is']('element','tableCell')),_0x1d167a=_0x3527e6['value'];_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat']([_0x55e6d6,_0x1d167a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e3e9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33edcc=_0x4dd060['commands']['get'](_0x2e3e9a);_0x11f722['enableCommand'](_0x2e3e9a,()=>{const _0x478a9b=_0x5aeaae['getSelectionAffectedTableCells'](_0x4dd060['model']['document']['selection']),_0x2450fc=_0x478a9b[0x0]['findAncestor']('table'),_0x3fd0ad=new Set();for(const _0x455554 of _0x478a9b){const {column:_0x4ec0e6,row:_0x35229e}=_0x5aeaae['getCellLocation'](_0x455554),_0x182f28='horizontally'==_0x33edcc['direction']?_0x5aeaae['createTableWalker'](_0x2450fc,{'startRow':_0x35229e,'endRow':_0x35229e,'includeAllSlots':!0x0}):_0x5aeaae['createTableWalker'](_0x2450fc,{'column':_0x4ec0e6,'includeAllSlots':!0x0});for(const {cell:_0x20fd6b}of _0x182f28)_0x3fd0ad['add'](_0x20fd6b);}_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat'](_0x478a9b,{'commandName':_0x2e3e9a,'commandParams':[]},Array['from'](_0x3fd0ad),_0x2e3e9a);});});}_0x11f722['descriptionFactory']['registerDescriptionCallback'](_0x22337d=>{if('formatBlock'!=_0x22337d['type']&&'formatInline'!=_0x22337d['type'])return;const {data:_0x2bfc0f}=_0x22337d;return _0x2bfc0f&&'mergeTableCells'==_0x2bfc0f['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Merge\x20cells*')}:void 0x0;}),_0x11f722['descriptionFactory']['registerDescriptionCallback'](_0x1823f3=>{if('formatBlock'!=_0x1823f3['type']&&'formatInline'!=_0x1823f3['type'])return;const {data:_0x572155}=_0x1823f3;return _0x572155?'splitTableCellVertically'==_0x572155['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x572155['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e945d=_0x20852e['_acceptFormatSuggestionCallbackFactory']();for(const _0xff90b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xff90b2,'accept',_0x5e945d);for(const _0x1291d5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1291d5,'accept',_0x416ece=>{_0x4dd060['model']['change'](_0x592db2=>{const _0x3e855a=Array['from'](_0x416ece)['filter'](_0x17e12b=>'$graveyard'!=_0x17e12b['root']['rootName']&&!!_0x17e12b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x3e855a['length'])return;const _0x416a4e=Array['from'](_0x35bebe['getRanges']())['map'](_0x154a19=>rt['fromRange'](_0x154a19));_0x592db2['setSelection'](_0x3e855a),_0x4dd060['commands']['get'](_0x1291d5)['refresh'](),_0x4dd060['execute'](_0x1291d5,{'forceDefaultExecution':!0x0});const _0x2a8f86=_0x416a4e['filter'](_0x387728=>'$graveyard'!=_0x387728['root']['rootName']);_0x2a8f86['length']>0x0&&_0x592db2['setSelection'](_0x2a8f86);for(const _0x2973af of _0x416a4e)_0x2973af['detach']();});});_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b112f=>{_0x4dd060['model']['change'](_0x46fd86=>{const _0x4675e1=Array['from'](_0x35bebe['getRanges']())['map'](_0x557726=>rt['fromRange'](_0x557726));_0x46fd86['setSelection'](_0x1b112f),_0x4dd060['commands']['get']('mergeTableCells')['refresh'](),_0x4dd060['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2697e3=_0x4675e1['filter'](_0x5adfcd=>'$graveyard'!=_0x5adfcd['root']['rootName']);_0x2697e3['length']>0x0&&_0x46fd86['setSelection'](_0x2697e3);for(const _0x3942f9 of _0x4675e1)_0x3942f9['detach']();});});for(const _0x170c0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2696e6=_0x4dd060['commands']['get'](_0x170c0e);_0x2696e6['on']('set:isEnabled',(_0x226ec9,_0x418b82,_0x4d2cf4)=>{if(_0x4d2cf4){const _0xf25992=_0x4dd060['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d95c5=>_0x5d95c5['is']('element','tableCell'));this['_areMergableCells'](_0x2696e6['value'],_0xf25992)||(_0x226ec9['return']=!0x1,_0x226ec9['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x532b65=this['editor']['commands']['get']('mergeTableCells'),_0x5a589=this['editor']['plugins']['get']('TableUtils');if(!_0x532b65['isEnabled'])return!0x1;const _0x2101b1=_0x5a589['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x372a61 of _0x2101b1)for(const _0x3624b5 of _0x2101b1)if(_0x372a61!=_0x3624b5&&!this['_areMergableCells'](_0x372a61,_0x3624b5))return!0x1;return!0x0;}['_areMergableCells'](_0x5038d2,_0x4d004b){const _0x379d12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ad286=this['editor']['model']['createRangeOn'](_0x5038d2),_0x5dbaa3=this['editor']['model']['createRangeOn'](_0x4d004b),_0x595abd=new Set(),_0x4f7314=new Set();for(const _0x58a225 of _0x379d12['getSuggestions']())if(('insertion'==_0x58a225['type']||'deletion'==_0x58a225['type']||'mergeTableCells'==_0x58a225['subType'])&&_0x58a225['isInContent']){for(const _0x438873 of _0x58a225['getRanges']())_0x438873['containsRange'](_0x4ad286,!0x0)&&_0x595abd['add'](_0x58a225['type']+':'+_0x58a225['author']['id']),_0x438873['containsRange'](_0x5dbaa3,!0x0)&&_0x4f7314['add'](_0x58a225['type']+':'+_0x58a225['author']['id']);}if(_0x595abd['size']!=_0x4f7314['size'])return!0x1;for(const _0x1d2c69 of _0x595abd)if(!_0x4f7314['has'](_0x1d2c69))return!0x1;return!0x0;}},Ge=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x2d1307=this['editor'];if(!_0x2d1307['plugins']['has']('TableEditing'))return;const _0x1bfa0d=_0x2d1307['locale'],_0x373b72=_0x2d1307['plugins']['get']('TrackChangesEditing');_0x373b72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x373b72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x373b72['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x1bfa0d,'FORMAT_HEADER_ROW')),_0x373b72['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x1bfa0d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1746b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4722f5=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x1746b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4722f5),_0x1746b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4722f5),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x30f311=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7d29=this['editor']['plugins']['get']('TableUtils');function _0x422942({showActiveMarker:_0x45bc14=!0x0,setDataAttribute:_0x45fc93=!0x0}={}){return(_0x176aba,_0x2d975b,_0x2390dc)=>{const {type:_0x42c3f6,id:_0xd42f3f}=tt(_0x2d975b['markerName']);if(!_0x30f311['hasSuggestion'](_0xd42f3f))return;const _0x5290ef=_0x30f311['getSuggestion'](_0xd42f3f),_0x2ffc7f=_0x5290ef['data'];if('formatBlock'!=_0x5290ef['type']||!_0x2ffc7f||'setTableColumnHeader'!=_0x2ffc7f['commandName'])return;if(_0x2d975b['item'])return void _0x176aba['stop']();if(!_0x2390dc['consumable']['consume'](_0x2d975b['markerRange'],_0x176aba['name']))return;const _0x4fb9e9=_0x2d975b['markerRange']['start']['nodeAfter'],_0x58cd6b=_0x2d975b['markerRange']['end']['nodeBefore'],_0x5ba719=_0x4fb9e9['parent']['parent'],{column:_0x219a6d}=_0x1c7d29['getCellLocation'](_0x4fb9e9),{column:_0x4d0bda}=_0x1c7d29['getCellLocation'](_0x58cd6b);for(let _0x3ccece=_0x219a6d;_0x3ccece<=_0x4d0bda;_0x3ccece++){const _0x6a27cc=_0x1c7d29['createTableWalker'](_0x5ba719,{'column':_0x3ccece,'includeAllSlots':!0x1});for(const _0x25afbe of _0x6a27cc){const _0x1dabc3=_0x25afbe['cell'],_0x18ef78=_0x2390dc['mapper']['toViewElement'](_0x1dabc3);_0x2390dc['writer']['addClass']('ck-suggestion-marker-'+_0x42c3f6,_0x18ef78),_0x45fc93&&_0x2390dc['writer']['setAttribute']('data-suggestion',_0xd42f3f,_0x18ef78),_0x2390dc['mapper']['bindElementToMarker'](_0x18ef78,_0x2d975b['markerName']),_0x45bc14&&(_0x30f311['activeMarkers']['includes'](_0x2d975b['markerName'])?_0x2390dc['writer']['addClass']('ck-suggestion-marker--active',_0x18ef78):_0x2390dc['writer']['removeClass']('ck-suggestion-marker--active',_0x18ef78));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x422942(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x439f9e,_0x399d99,_0x542c3d)=>{_0x542c3d['options']['showSuggestionHighlights']&&_0x422942({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x439f9e,_0x399d99,_0x542c3d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13e7af,_0x3406e7,_0x5a8868)=>{const {type:_0x244e25,id:_0x4cfd1d}=tt(_0x3406e7['markerName']);if(!_0x30f311['hasSuggestion'](_0x4cfd1d))return;const _0x4d7e19=_0x30f311['getSuggestion'](_0x4cfd1d),_0x17d401=_0x4d7e19['data'];if('formatBlock'!=_0x4d7e19['type']||!_0x17d401||'setTableColumnHeader'!=_0x17d401['commandName'])return;const _0x4edf9a=_0x5a8868['mapper']['markerNameToElements'](_0x3406e7['markerName']);if(_0x4edf9a){for(const _0x2284fc of _0x4edf9a)_0x5a8868['writer']['removeClass']('ck-suggestion-marker-'+_0x244e25,_0x2284fc),_0x5a8868['writer']['removeClass']('ck-suggestion-marker--active',_0x2284fc),_0x5a8868['writer']['removeAttribute']('data-suggestion',_0x2284fc),_0x5a8868['mapper']['unbindElementFromMarkerName'](_0x2284fc,_0x3406e7['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1f198e=this['editor'],_0x4731dc=_0x1f198e['locale'];function _0x2221b8(_0x5d4546){return{'type':'format','content':Mt(_0x4731dc,'*Format:*\x20%0',_0x5d4546)};}_0x1f198e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c3906=>{if('formatBlock'!=_0x5c3906['type'])return;const {data:_0x313e43}=_0x5c3906;return _0x313e43?'setTableRowHeader'==_0x313e43['commandName']?_0x313e43['commandParams'][0x0]['forceValue']?_0x2221b8(Mt(_0x4731dc,'FORMAT_HEADER_ROW')):_0x2221b8(Mt(_0x4731dc,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x313e43['commandName']?_0x313e43['commandParams'][0x0]['forceValue']?_0x2221b8(Mt(_0x4731dc,'FORMAT_HEADER_COLUMN')):_0x2221b8(Mt(_0x4731dc,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x3abfd8=this['editor'];if(!_0x3abfd8['plugins']['has']('TableEditing')||!_0x3abfd8['config']['get']('table.enableFooters'))return;const _0x47cefb=_0x3abfd8['locale'],_0x560907=_0x3abfd8['plugins']['get']('TrackChangesEditing');_0x560907['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x560907['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x47cefb,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x18ca51{afterInit(){const _0xac502d=this['editor'],_0x19e181=_0xac502d['locale'],_0x4c22a4=_0xac502d['plugins']['get']('TrackChangesEditing');function _0xc9e4ac(_0x3a0cb7){return{'type':'format','content':''+Mt(_0x19e181,'*Set\x20table\x20type:*\x20%0',_0x3a0cb7)};}_0xac502d['plugins']['has']('TableLayout')&&(_0x4c22a4['enableCommand']('insertTableLayout'),_0x4c22a4['enableDefaultAttributesIntegration']('tableType'),_0x4c22a4['descriptionFactory']['registerElementLabel'](_0x1b7026=>_0x1b7026['is']('element','table')&&'layout'===_0x1b7026['getAttribute']('tableType'),_0x16f4e3=>Mt(_0x19e181,'ELEMENT_LAYOUT_TABLE',_0x16f4e3)),_0x4c22a4['descriptionFactory']['registerDescriptionCallback'](_0x3fd669=>{const {data:_0x29e4f3}=_0x3fd669;if(_0x29e4f3&&'tableType'==_0x29e4f3['key'])switch(_0x29e4f3['newValue']){case'layout':return _0xc9e4ac(Mt(_0x19e181,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc9e4ac(Mt(_0x19e181,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](We['map'](_0x5c20a0=>[_0x5c20a0,null]));var je=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x59e893=this['editor'];if(!_0x59e893['plugins']['has']('TableClipboard'))return;const _0x3dda83=_0x59e893['plugins']['get']('TrackChangesEditing'),_0x81d67b=_0x59e893['plugins']['get']('TableUtils'),_0x5cbb29=_0x59e893['plugins']['get'](Ue),_0x1c3562=_0x59e893['plugins']['get']('TableClipboard'),_0x1edbbb=_0x59e893['plugins']['get']('TableSelection'),_0x20a5cc=_0x59e893['plugins']['get'](gt);_0x5cbb29['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59e893['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59e893['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26a90c=null,_0x4bfa49=!0x1;_0x20a5cc['on']('contentInsertion',(_0x44a181,_0x329d5e)=>{_0x4bfa49='paste'===_0x329d5e['method'];}),_0x59e893['model']['on']('insertContent',(_0x264272,_0x25dde4)=>{if(!_0x4bfa49&&null===_0x1edbbb['getSelectedTableCells']())return;const [_0xbeedbd,_0x55cafc]=_0x25dde4,_0x11e894=_0x25dde4[_0x25dde4['length']-0x1];_0x11e894&&_0x11e894['forceDefaultExecution']||_0x3dda83['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17d11f,_0x4678de,_0x34b9c8,_0x4aa773,_0x54d2e6){if(_0x4678de&&!_0x4678de['is']('documentSelection'))return!0x1;const _0x5004c7=_0x54d2e6['getTableIfOnlyTableInContent'](_0x17d11f,_0x34b9c8);if(!_0x5004c7||!Ke(_0x5004c7,void 0x0,_0x4aa773))return!0x1;const _0x26aff2=_0x4aa773['getSelectionAffectedTableCells'](_0x34b9c8['document']['selection']);if(!_0x26aff2['length'])return!0x1;const _0x5dbbcf=_0x26aff2[0x0]['findAncestor']('table'),_0xc48509=_0x4aa773['getRowIndexes'](_0x26aff2),_0x63fb97=_0x4aa773['getColumnIndexes'](_0x26aff2),_0x3e9a4a={'startRow':_0xc48509['first'],'endRow':_0xc48509['last'],'startColumn':_0x63fb97['first'],'endColumn':_0x63fb97['last']};return 0x1==_0x26aff2['length']&&(_0x3e9a4a['endRow']+=_0x4aa773['getRows'](_0x5004c7)-0x1,_0x3e9a4a['endColumn']+=_0x4aa773['getColumns'](_0x5004c7)-0x1),Ke(_0x5dbbcf,_0x3e9a4a,_0x4aa773);}(_0xbeedbd,_0x55cafc,_0x59e893['model'],_0x81d67b,_0x1c3562)&&(_0x264272['stop'](),_0x26a90c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59e893['model']['change'](()=>{_0x59e893['model']['insertContent'](_0x25dde4[0x0],_0x25dde4[0x1],_0x25dde4[0x2],{'forceDefaultExecution':!0x0});const _0x259798=_0x3f17ac(),{rowInsertionRanges:_0xa6b610,columnInsertionRanges:_0x44bb19,insertionRanges:_0x3f8cad,deletionRanges:_0xdbf9a0,cells:_0x55eedb}=_0x26a90c;_0xa6b610['length']&&_0x3dda83['markMultiRangeInsertion'](_0xa6b610,'tablePasteRow',{'tablePasteChainId':_0x259798}),_0x44bb19['length']&&_0x3dda83['markMultiRangeInsertion'](_0x44bb19,'tablePasteColumn',{'tablePasteChainId':_0x259798}),_0x3f8cad['length']&&(_0x3dda83['markMultiRangeInsertion'](_0x3f8cad,'tablePaste',{'tablePasteChainId':_0x259798,'skipNestingCheck':!0x0}),_0x3f8cad['forEach'](_0x1a1ce6=>_0x1a1ce6['detach']?.())),_0xdbf9a0['length']&&(_0x3dda83['markMultiRangeDeletion'](_0xdbf9a0,'tablePaste',{'tablePasteChainId':_0x259798,'skipNestingCheck':!0x0}),_0xdbf9a0['forEach'](_0x4d2d2e=>_0x4d2d2e['detach']?.()));const _0x857905=_0x3dda83['markMultiRangeBlockFormat'](_0x55eedb['map'](({element:_0x3ef794})=>_0x3ef794),{'formatGroupId':_0x3f17ac()},[],'tablePasteCell',{'tablePasteChainId':_0x259798});if(_0x857905){const _0x14e0e1=_0x857905['getMarkers'](),_0x505cad=[];for(const {element:_0x32c44c,attributes:_0x3d6cb5}of _0x55eedb){if(!_0x3d6cb5)continue;const _0x275280=_0x59e893['model']['createRangeOn'](_0x32c44c),_0x2af9b4=_0x14e0e1['find'](_0x2e3c3b=>_0x2e3c3b['getRange']()['isEqual'](_0x275280));_0x2af9b4&&_0x505cad['push']([_0x2af9b4['name'],_0x3d6cb5]);}_0x505cad['length']&&_0x857905['setAttribute']('markerAttributes',Object['fromEntries'](_0x505cad));}_0x26a90c=null;}));},{'priority':_0x4c920d['high']+0xa}),_0x20a5cc['on']('contentInsertion',()=>{_0x4bfa49=!0x1;},{'priority':'lowest'}),_0x59e893['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x423c64,_0x51f8ec)=>{const [_0x48e47a,_0x3d29da,,_0x3a0279]=_0x51f8ec;if(!_0x26a90c)return;_0x423c64['stop']();const _0x46aa9b=_0x48e47a['cell'],_0x391ef7=_0x3d29da,_0x24c2f5=ze(_0x46aa9b),_0x2f2a6a=ze(_0x391ef7);_0x423c64['return']=_0x46aa9b;let _0x42d077=null,_0x46fdf4=null;if(_0x2f2a6a||_0x24c2f5){if(_0x24c2f5&&!_0x2f2a6a){_0x3a0279['remove'](_0x46aa9b['getChild'](0x0));for(const _0x3f6e0f of Array['from'](_0x391ef7['getChildren']()))_0x3a0279['insert'](_0x3f6e0f,_0x46aa9b,'end');const _0x45ece9=_0x26a90c['rowInsertionIndexes']['includes'](_0x48e47a['row']),_0x145f2a=_0x26a90c['columnInsertionIndexes']['includes'](_0x48e47a['column']);_0x45ece9||_0x145f2a||(_0x42d077=rt['fromRange'](_0x3a0279['createRangeIn'](_0x46aa9b)));}else _0x2f2a6a&&!_0x24c2f5&&(_0x46fdf4=_0x3a0279['createRangeIn'](_0x46aa9b));}else{const _0x34614a=_0x3a0279['createElement']('tableCellSuggestion'),_0x609d18=_0x3a0279['createElement']('tableCellSuggestion');_0x3a0279['wrap'](_0x3a0279['createRangeIn'](_0x46aa9b),_0x609d18),_0x3a0279['insert'](_0x34614a,_0x46aa9b,0x0);for(const _0x4cbbf7 of Array['from'](_0x391ef7['getChildren']()))_0x3a0279['insert'](_0x4cbbf7,_0x34614a,'end');_0x42d077=rt['fromRange'](_0x3a0279['createRangeOn'](_0x34614a)),_0x46fdf4=rt['fromRange'](_0x3a0279['createRangeOn'](_0x609d18));}const _0x18b96b=Array['from'](_0x391ef7['getAttributes']())['filter'](([_0x44f476])=>We['includes'](_0x44f476));_0x26a90c['cells']['push']({'element':_0x46aa9b,'attributes':_0x18b96b['length']?Object['fromEntries'](_0x18b96b):null}),_0x42d077&&_0x26a90c['insertionRanges']['push'](_0x42d077),_0x46fdf4&&_0x26a90c['deletionRanges']['push'](_0x46fdf4);},{'priority':'high'}),_0x81d67b['on']('insertColumns',(_0x2cf521,_0x1d4ef0)=>{const [_0x22d945,_0x28090c={}]=_0x1d4ef0;if(!_0x26a90c)return;const _0x2ae8b6=_0x28090c['at']||0x0,_0x8fae19=_0x28090c['columns']||0x1;_0x26a90c['columnInsertionIndexes']=new Array(_0x8fae19)['fill'](_0x2ae8b6)['map']((_0x3f5103,_0x394efb)=>_0x3f5103+_0x394efb);for(const {cell:_0x425fa0}of _0x81d67b['createTableWalker'](_0x22d945,{'startColumn':_0x2ae8b6,'endColumn':_0x2ae8b6+_0x8fae19-0x1}))_0x26a90c['columnInsertionRanges']['push'](_0x59e893['model']['createRangeOn'](_0x425fa0));},{'priority':'low'}),_0x81d67b['on']('insertRows',(_0x25eb4a,_0x16358d)=>{const [_0x446f74,_0xb878cf={}]=_0x16358d;if(!_0x26a90c)return;const _0x2c942e=_0xb878cf['at']||0x0,_0x40252e=_0xb878cf['rows']||0x1;_0x26a90c['rowInsertionIndexes']=new Array(_0x40252e)['fill'](_0x2c942e)['map']((_0x3caee6,_0x10803f)=>_0x3caee6+_0x10803f);for(const {cell:_0x4e7e2a}of _0x81d67b['createTableWalker'](_0x446f74,{'startRow':_0x2c942e,'endRow':_0x2c942e+_0x40252e-0x1}))_0x26a90c['rowInsertionRanges']['push'](_0x59e893['model']['createRangeOn'](_0x4e7e2a));},{'priority':'low'}),_0x3dda83['descriptionFactory']['registerDescriptionCallback'](_0x4e3a3f=>{if(_0x4e3a3f['subType']&&_0x4e3a3f['subType']['startsWith']('tablePaste'))return _0x4e3a3f['previous']?{}:{'type':'insertion','content':Mt(_0x59e893['locale'],'*Replace\x20table\x20cells*')};});const _0x1c8b84=()=>!0x1;for(const _0x46d56d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion',_0x46d56d,'join',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('deletion',_0x46d56d,'join',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46d56d,'join',_0x1c8b84);_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3da4cf,_0xfb6cc2,_0x20515e)=>{const _0x1f5c65=_0x3da4cf['map'](_0x5b4c42=>_0x5b4c42['getContainedElement']())['filter'](_0x169a9d=>_0x169a9d),_0x6e6284=new Map(_0x1f5c65['map'](_0x279c71=>[_0x279c71,null]));if(_0x26a90c){for(const {element:_0x2e1a02,attributes:_0x1b1518}of _0x26a90c['cells'])_0x1b1518&&_0x6e6284['set'](_0x2e1a02,_0x1b1518);}else{if(_0x20515e&&_0x20515e['markerAttributes'])for(const [_0x58e9e3,_0x15c91a]of Object['entries'](_0x20515e['markerAttributes'])){const _0x30865e=_0x59e893['model']['markers']['get'](_0x58e9e3),_0x118ac7=_0x30865e?_0x30865e['getRange']()['getContainedElement']():null;_0x118ac7&&_0x6e6284['set'](_0x118ac7,_0x15c91a);}}_0x59e893['model']['change'](_0x33628d=>{for(const [_0x289387,_0x127900]of _0x6e6284)_0x33628d['setAttributes']({...Ve,..._0x127900},_0x289387);});});const _0x18aec9=(_0x3703a0,_0x11b2a1)=>{_0x3dda83['_suggestionFactory']['registerCustomCallback'](_0x3703a0,'tablePaste',_0x11b2a1,(_0xc3ada8,_0x4b057e,_0x1cd946)=>{_0x59e893['model']['change'](_0x9a6734=>{const _0x148c2b=[];for(const _0x337bc4 of _0xc3ada8){const _0x4824b0=_0x337bc4['start']['nodeAfter'];_0x4824b0['is']('element','tableCellSuggestion')&&_0x148c2b['push'](_0x4824b0);}_0x3dda83['_suggestionFactory']['getSuggestionCallback'](_0x3703a0,null,_0x11b2a1)(_0xc3ada8,_0x4b057e,_0x1cd946);for(const _0x4d73b2 of _0x148c2b)'$graveyard'!=_0x4d73b2['root']['rootName']&&_0x9a6734['unwrap'](_0x4d73b2);});});};_0x18aec9('insertion','accept'),_0x18aec9('insertion','discard'),_0x18aec9('deletion','accept'),_0x18aec9('deletion','discard'),_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59f3fa=>{const _0x3a5ae4=_0x59f3fa['map'](_0x1b6e02=>_0x1b6e02['getContainedElement']()),_0x4c83d7=_0x3a5ae4[0x0]['findAncestor']('table'),{minRow:_0x252c87,maxRow:_0x560de6}=_0x5cbb29['_getCoordsForCells'](_0x3a5ae4);_0x81d67b['removeRows'](_0x4c83d7,{'at':_0x252c87,'rows':_0x560de6-_0x252c87+0x1});}),_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x567b8d=>{const _0x4ef1d8=_0x567b8d['map'](_0x1bd2c3=>_0x1bd2c3['getContainedElement']()),_0x2fca43=_0x4ef1d8[0x0]['findAncestor']('table'),{minColumn:_0x5e6b2f,maxColumn:_0x5f0182}=_0x5cbb29['_getCoordsForCells'](_0x4ef1d8);_0x81d67b['removeColumns'](_0x2fca43,{'at':_0x5e6b2f,'columns':_0x5f0182-_0x5e6b2f+0x1});});const _0x579fe0=(_0x212ed8,_0x2a72)=>{if(!_0x2a72['subType']||!_0x2a72['subType']['startsWith']('tablePaste'))return;const _0x4e1bcb=_0x2a72['attributes']['tablePasteChainId'],_0x1eef88=_0x3dda83['getSuggestions']()['filter'](_0x5ccad0=>_0x5ccad0['isInContent']&&_0x5ccad0['attributes']&&_0x5ccad0['attributes']['tablePasteChainId']==_0x4e1bcb);_0x1eef88['length']&&_0x2a72['getAllAdjacentSuggestions']()['length']!=_0x1eef88['length']&&_0x1eef88['reduce']((_0x4d3df8,_0xb184c4)=>(_0x4d3df8['next']=_0xb184c4,_0xb184c4['previous']=_0x4d3df8,_0xb184c4));};function _0x4810d7(_0x27d946,_0x2ccb46=!0x0){const {id:_0xb52b3c,authorId:_0x2a5fe6}=tt(_0x27d946['markerName']),_0x5ec2a5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4432b8=_0x3dda83['activeMarkers']['includes'](_0x27d946['markerName']);return _0x4432b8&&_0x5ec2a5['push']('ck-suggestion-marker--active'),{'classes':_0x5ec2a5,'attributes':{'data-suggestion':_0xb52b3c,'data-author-id':_0x2a5fe6},'priority':_0x4432b8&&_0x2ccb46?0xbc2:0xbb8};}_0x3dda83['on']('suggestionLoaded',_0x579fe0,{'priority':'high'}),_0x3dda83['on']('suggestionUnloaded',_0x579fe0,{'priority':'high'}),_0x59e893['model']['document']['registerPostFixer'](()=>{let _0x4b99a8=!0x1;const _0xf4a28f=Array['from'](_0x59e893['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5952c5,data:_0x12a759}of _0xf4a28f){const {group:_0x3dfaeb,type:_0x4e5957,id:_0x14c1ff}=tt(_0x5952c5);if('suggestion'!=_0x3dfaeb||'deletion'!=_0x4e5957||_0x12a759['oldRange'])continue;if(!_0x3dda83['hasSuggestion'](_0x14c1ff))continue;const _0xa0a739=_0x3dda83['getSuggestion'](_0x14c1ff)['getRanges'](),_0x5f2986=_0x59e893['plugins']['get']('Users')['me'];for(const _0x412510 of _0x3dda83['getSuggestions']())if(_0x412510['isInContent']&&_0x412510['author']==_0x5f2986&&'formatBlock'==_0x412510['type']&&'tablePasteCell'==_0x412510['subType']&&_0x412510['getRanges']()['every'](_0x423921=>_0xa0a739['some'](_0x3e3b8b=>_0x3e3b8b['containsRange'](_0x423921,!0x0)))){for(const _0x26df55 of _0x412510['getAllAdjacentSuggestions']())_0x26df55['isInContent']&&(_0x26df55['discard'](),_0x4b99a8=!0x0);}}return _0x4b99a8;}),_0x59e893['model']['document']['registerPostFixer'](_0x1a919b=>{const _0x887694=_0x59e893['commands']['get']('redo');if(!_0x887694||!_0x887694['_createdBatches']['has'](_0x1a919b['batch']))return!0x1;let _0x54f20b=!0x1;const _0x5a0d0e=_0x59e893['plugins']['get']('Users')['me'],_0xa9df96=_0x59e893['model']['document']['differ']['getChanges'](),_0x590677=Array['from'](_0x59e893['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x179742,data:_0x29cf8d})=>{const {group:_0x5db11f,subType:_0x41655c,authorId:_0x46f4cc}=tt(_0x179742);return'suggestion'==_0x5db11f&&'tablePaste'==_0x41655c&&_0x46f4cc==_0x5a0d0e['id']&&!_0x29cf8d['oldRange'];});for(const _0x27d124 of _0xa9df96){if('insert'!=_0x27d124['type']||'tableCellSuggestion'!=_0x27d124['name']||0x1!=_0x27d124['length'])continue;const _0x49e6fa=_0x1a919b['createRange'](_0x27d124['position'],_0x27d124['position']['getShiftedBy'](0x1));if(!_0x590677['find'](({data:_0x2adff3})=>_0x2adff3['newRange']['isEqual'](_0x49e6fa))){for(const {name:_0x5cad9a,data:_0x3c6afe}of _0x590677)if(_0x49e6fa['containsRange'](_0x3c6afe['newRange'])){_0x1a919b['updateMarker'](_0x5cad9a,{'range':_0x49e6fa}),_0x54f20b=!0x0;break;}}}return _0x54f20b;}),_0x59e893['model']['document']['registerPostFixer'](_0x94c512=>{let _0x3e2a8=!0x1;const _0x9069ed=_0x59e893['plugins']['get']('Users')['me'],_0x8e027f=_0x3dda83['getSuggestions']()['filter'](_0x531a44=>_0x531a44['isInContent']&&_0x531a44['author']==_0x9069ed),_0x35d233=new Set(),_0xf459ae=new Set();for(const _0xc8ad20 of _0x8e027f)if('tablePaste'==_0xc8ad20['subType'])for(const _0x2c38ba of _0xc8ad20['getMarkers']()){const _0x145efa=_0x2c38ba['getRange']()['getContainedElement']();if(_0x145efa){if(_0x145efa['is']('element','tableCellSuggestion')&&ze(_0x145efa)){_0xc8ad20['removeMarker'](_0x2c38ba['name']),_0x35d233['add'](_0x145efa),_0x3e2a8=!0x0;const _0x4e25b3=_0x145efa['nextSibling'],_0x564da6=_0x145efa['previousSibling'],_0x2e3482=_0x4e25b3&&_0x4e25b3['is']('element','tableCellSuggestion'),_0x25b745=_0x564da6&&_0x564da6['is']('element','tableCellSuggestion');_0x2e3482&&!_0x35d233['has'](_0x4e25b3)&&_0xf459ae['add'](_0x4e25b3),_0x25b745&&!_0x35d233['has'](_0x564da6)&&_0xf459ae['add'](_0x564da6);}else _0x145efa['is']('element','paragraph')&&_0x145efa['isEmpty']&&(_0xc8ad20['removeMarker'](_0x2c38ba['name']),_0x3e2a8=!0x0);}}else{if('tablePasteCell'==_0xc8ad20['subType']){if(!_0xc8ad20['attributes']||!_0xc8ad20['attributes']['tablePasteChainId'])continue;const _0x1c886d=_0xc8ad20['attributes']['markerAttributes'];if(_0x1c886d&&Object['keys'](_0x1c886d)['length'])continue;const _0x50c208=_0xc8ad20['attributes']['tablePasteChainId'];let _0x419fe6=!0x0,_0x37dc97=!0x0;for(const _0x4dbdef of _0x8e027f)if(_0x4dbdef['subType']&&_0x4dbdef['subType']['startsWith']('tablePaste')){if(!_0x4dbdef['attributes']['tablePasteChainId']){_0x37dc97=!0x1;break;}if(_0x4dbdef['id']!=_0xc8ad20['id']&&_0x4dbdef['attributes']['tablePasteChainId']==_0x50c208){_0x419fe6=!0x1;break;}}_0x37dc97&&_0x419fe6&&(_0xc8ad20['removeMarkers'](),_0x3e2a8=!0x0);}}for(const _0x6e3d6d of _0x35d233)_0x94c512['remove'](_0x6e3d6d);for(const _0x56c9c1 of _0xf459ae)_0x94c512['unwrap'](_0x56c9c1);return _0x3e2a8;}),_0x59e893['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cd99b=>_0x4810d7(_0x2cd99b),'converterPriority':'high'}),_0x59e893['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d5bff,_0x27b126)=>_0x27b126['options']['showSuggestionHighlights']?_0x4810d7(_0x5d5bff,!0x1):null,'converterPriority':'high'});const _0x2e6de8=_0x59e893['editing']['view'];this['listenTo'](_0x2e6de8['document'],'clipboardOutput',(_0x25d7fb,_0x46cf6d)=>{const _0x5ea6d5=[];for(const _0x57b520 of _0x2e6de8['createRangeIn'](_0x46cf6d['content'])['getItems']())_0x57b520['is']('element','suggestion-td')&&_0x5ea6d5['push'](_0x57b520);_0x2e6de8['change'](_0x53a652=>{for(const _0xbcc43a of _0x5ea6d5)_0x53a652['move'](_0x53a652['createRangeIn'](_0xbcc43a),_0x53a652['createPositionBefore'](_0xbcc43a)),_0x53a652['remove'](_0xbcc43a);});});}};function ze(_0x385400){if(_0x385400['isEmpty'])return!0x0;const _0x3ca1a4=_0x385400['getChild'](0x0);return _0x3ca1a4['is']('element','paragraph')&&_0x3ca1a4['isEmpty'];}function Ke(_0xeb4485,_0xa54f9b={},_0x5d9fd4){for(const {isAnchor:_0x243609,cellHeight:_0x58330e,cellWidth:_0x1a7b56}of _0x5d9fd4['createTableWalker'](_0xeb4485,{'includeAllSlots':!0x0,..._0xa54f9b}))if(!_0x243609||0x1!=_0x58330e||0x1!=_0x1a7b56)return!0x1;return!0x0;}var Xe=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1118f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1118f1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x1118f1['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x1118f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1118f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x488487=_0x1118f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x1118f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x40a354,_0x3f6163)=>{_0x488487(_0x40a354,_0x3f6163),this['_restoreCellWidths'](_0x40a354[0x0]['start']['nodeAfter'],_0x3f6163['commandParams'][0x0]['cellWidths']);}),_0x1118f1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x4fbb96,_0x266fbe){const _0x158409=this['editor']['plugins']['get']('TrackChangesEditing'),_0x116f9b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e6a40=_0x266fbe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x8bbf14=_0x116f9b['getColumnGroupElement'](_0x3e6a40);let _0x1039d3=_0x8bbf14?_0x116f9b['getTableColumnsWidths'](_0x8bbf14):null,_0x15b790=_0x3e6a40['getAttribute']('tableWidth')||null;const _0xbadf6d=_0x266fbe['tableWidth']||_0x15b790,_0x5cca5a=_0x266fbe['columnWidths']||_0x1039d3;let _0x2a85db=this['_getCellWidths'](_0x3e6a40);const _0x56f259=this['_foldResizeTableSuggestion'](_0x3e6a40);_0x56f259&&(_0x15b790=_0x56f259['tableWidth'],_0x1039d3=_0x56f259['columnWidths'],_0x2a85db=_0x56f259['cellWidths']||_0x2a85db),_0x4fbb96({'table':_0x3e6a40,'tableWidth':_0xbadf6d,'columnWidths':_0x5cca5a}),_0x158409['markBlockFormat'](_0x3e6a40,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15b790,'columnWidths':_0x1039d3,'cellWidths':_0x2a85db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5ecbdc,_0xda0611={}){if(void 0x0===_0xda0611['value']||''===_0xda0611['value'])return void _0x5ecbdc(_0xda0611);const _0x2acf30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x868ccb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4819e5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xda0611['batch']||(_0xda0611['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xda0611['batch'],()=>{const _0x157d60=_0x868ccb['getColumnGroupElement'](_0x4819e5);let _0x2c9f9d=_0x157d60?_0x868ccb['getTableColumnsWidths'](_0x157d60):null,_0x11837f=_0x4819e5['getAttribute']('tableWidth')||null,_0x109679=this['_getCellWidths'](_0x4819e5);const _0xf6bf54=this['_foldResizeTableSuggestion'](_0x4819e5,!0x0);_0xf6bf54&&(_0x11837f=_0xf6bf54['tableWidth'],_0x2c9f9d=_0xf6bf54['columnWidths'],_0x109679=_0xf6bf54['cellWidths']||_0x109679),_0x5ecbdc(_0xda0611),_0x2acf30['markBlockFormat'](_0x4819e5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11837f,'columnWidths':_0x2c9f9d,'cellWidths':_0x109679}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x467a02,_0x4fa16b=!0x1){const _0x1d2109=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b5fb3=this['editor']['plugins']['get']('Users')['me'];for(const _0xf0f3ba of _0x1d2109['getSuggestions']({'skipNotAttached':!0x0})){const _0x181772=_0xf0f3ba['getContainedElement']();if('resizeTable'===_0xf0f3ba['subType']&&_0x181772===_0x467a02){_0xf0f3ba['author']!==_0x2b5fb3&&(_0x4fa16b?_0xf0f3ba['removeMarkers']():_0xf0f3ba['discard']());const _0x26f2b2=_0xf0f3ba['data']['commandParams'];return{'tableWidth':_0x26f2b2[0x0]['tableWidth'],'columnWidths':_0x26f2b2[0x0]['columnWidths'],'cellWidths':_0x26f2b2[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x254975){const _0xcce05d=[];for(const _0x45c43b of _0x254975['getChildren']())if(_0x45c43b['is']('element','tableRow')){for(const _0x3c5003 of _0x45c43b['getChildren']())_0xcce05d['push'](_0x3c5003['getAttribute']('tableCellWidth')||null);}return _0xcce05d;}_restoreCellWidths(_0x9d8c03,_0x2ed00c){_0x2ed00c&&this['editor']['model']['change'](_0x4349a3=>{let _0xd3315f=0x0;for(const _0x50d20f of _0x9d8c03['getChildren']())if(_0x50d20f['is']('element','tableRow'))for(const _0x4eca56 of _0x50d20f['getChildren']()){const _0x5cbeb4=_0x2ed00c[_0xd3315f++];_0x5cbeb4&&_0x4349a3['setAttribute']('tableCellWidth',_0x5cbeb4,_0x4eca56);}});}handleSuggestionDescription(_0x281660){if('formatBlock'!=_0x281660['type']&&'formatInline'!=_0x281660['type'])return;const {data:_0x309573}=_0x281660;return _0x309573&&'resizeTable'===_0x309573['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x18ca51{afterInit(){const _0x1c573c=this['editor'];_0x1c573c['plugins']['has']('Template')&&_0x1c573c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x18ca51{afterInit(){const _0x276f02=this['editor'];if(!_0x276f02['commands']['get']('insertTableOfContents'))return;_0x276f02['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f1e1d=_0x276f02['plugins']['get']('TrackChangesEditing'),_0xecdb85=_0x276f02['locale'];_0x1f1e1d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fde0d=>Mt(_0xecdb85,'ELEMENT_TABLE_OF_CONTENTS',_0x1fde0d));}},Qe=class extends _0x18ca51{afterInit(){const _0x32ebd6=this['editor'];_0x32ebd6['plugins']['has']('Title')&&(_0x32ebd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x32ebd6['locale'],'ELEMENT_TITLE')),_0x32ebd6['model']['document']['registerPostFixer'](_0x2b62e5=>{let _0x54bec7=!0x1;const _0x4e5835=Array['from'](_0x32ebd6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x136abe,data:_0x2614a4}of _0x4e5835){const {group:_0x5e74b8}=tt(_0x136abe);if('suggestion'!==_0x5e74b8||!_0x2614a4['newRange'])continue;const _0x3d9a5f=_0x2614a4['newRange'],_0x321315=_0x3d9a5f['end']['nodeBefore'];if(!_0x321315||!_0x321315['is']('element','title-content'))continue;if(!_0x3d9a5f['start']['isTouching'](_0x3d9a5f['end']))continue;const _0x3077e5=_0x32ebd6['model']['schema']['getNearestSelectionRange'](_0x3d9a5f['end'],'forward');if(_0x3077e5&&_0x3077e5['isCollapsed']){const _0xb19580=_0x2b62e5['createRange'](_0x3d9a5f['start'],_0x3077e5['start']);_0xb19580['isEqual'](_0x3d9a5f)||(_0x2b62e5['updateMarker'](_0x136abe,{'range':_0xb19580}),_0x54bec7=!0x0);}_0x54bec7||(_0x2b62e5['removeMarker'](_0x136abe),_0x54bec7=!0x0);}return _0x54bec7;}));}},Ze=class extends _0x18ca51{afterInit(){const _0x32d946=this['editor'],_0x33f81c=_0x32d946['plugins']['get']('TrackChangesEditing');_0x32d946['plugins']['has']('Uploadcare')&&(_0x33f81c['enableCommand']('uploadcare'),_0x32d946['plugins']['has']('UploadcareImageEdit')&&(_0x33f81c['enableCommand']('uploadcareImageEdit'),_0x33f81c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x33f81c['descriptionFactory']['registerDescriptionCallback'](_0x10787a=>{if('attribute'!=_0x10787a['type'])return;const {data:_0x253b39}=_0x10787a;return _0x253b39&&'uploadcareImageId'==_0x253b39['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x18ca51{afterInit(){const _0x42e5cf=this['editor'],_0x11741b=_0x42e5cf['plugins']['get']('TrackChangesEditing');_0x42e5cf['plugins']['has']('UndoEditing')&&(_0x11741b['enableCommand']('undo'),_0x11741b['enableCommand']('redo'));}},tn=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x10e853=this['editor'];_0x10e853['plugins']['has']('TableCaptionEditing')&&_0x10e853['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x18ca51{tableProperties;tableCellProperties;constructor(_0x488b19){super(_0x488b19),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 _0x34ed98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x359ffc of this['tableProperties'])_0x34ed98['enableCommand'](_0x359ffc,(_0x263577,_0xe03afc)=>{const _0x55a48b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x359ffc,[_0x55a48b],this['tableProperties'],'tableProperties',_0x263577,_0xe03afc);});_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34ed98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x267c41,_0x10850e)=>this['handleDiscardAction'](this['tableProperties'],_0x267c41,_0x10850e)),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46a3b5 of this['tableCellProperties'])this['editor']['commands']['get'](_0x46a3b5)&&_0x34ed98['enableCommand'](_0x46a3b5,(_0x44b1e9,_0x2bf193)=>{const _0x20c233=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46a3b5,_0x20c233,this['tableCellProperties'],'tableCellProperties',_0x44b1e9,_0x2bf193);});_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34ed98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f5831,_0x6f47cf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f5831,_0x6f47cf)),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x34ed98['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x34ed98['descriptionFactory']['registerDescriptionCallback'](_0x1990e1=>this['handleSuggestionDescription'](_0x1990e1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x26c522,_0x20ddbc,_0x5877ce,_0x1599df,_0x543257,_0x4dc109){const _0x247dd2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4dc109['batch'],()=>{for(const _0x25252a of _0x20ddbc)if(this['_getSuggestion'](_0x25252a,_0x1599df))_0x543257(_0x4dc109);else{const _0x10a825={};for(const _0x5b76cd of _0x5877ce){const _0x4081b9=_0x25252a['getAttribute'](_0x5b76cd);void 0x0!==_0x4081b9&&(_0x10a825[_0x5b76cd]=_0x4081b9);}const _0x4b79cc=this['_getResizedColumnWidths'](_0x25252a);_0x4b79cc&&(_0x10a825['columnWidths']=_0x4b79cc),_0x543257(_0x4dc109),_0x247dd2['markBlockFormat'](_0x25252a,{'commandParams':[_0x10a825]},[],_0x1599df);}});}handleDiscardAction(_0x40c970,_0x5583cd,_0x3b5a48){const _0x1ff07a=_0x5583cd[0x0]['start']['nodeAfter'],_0x57fc9d=_0x3b5a48['commandParams'][0x0];this['editor']['model']['change'](_0x2a0c77=>{for(const _0x362897 of _0x40c970)void 0x0!==_0x57fc9d[_0x362897]?_0x2a0c77['setAttribute'](_0x362897,_0x57fc9d[_0x362897],_0x1ff07a):_0x2a0c77['removeAttribute'](_0x362897,_0x1ff07a);if(_0x57fc9d['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x31d775=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cf087=_0x31d775['getColumnGroupElement'](_0x1ff07a);if(_0x4cf087){const _0x5b79b5=_0x31d775['getTableColumnsWidths'](_0x4cf087),_0x1c531f=_0x1ff07a['getAttribute']('tableWidth');if(('string'==typeof _0x1c531f&&_0x1c531f['trim']()['endsWith']('px'))!==_0x5b79b5['some'](_0x3af6f8=>'string'==typeof _0x3af6f8&&_0x3af6f8['endsWith']('px'))){const _0x3d6dd9=_0x31d775['getTableColumnElements'](_0x4cf087);_0x57fc9d['columnWidths']['forEach']((_0x55af87,_0xd51ec4)=>{_0x3d6dd9[_0xd51ec4]&&_0x2a0c77['setAttribute']('columnWidth',_0x55af87,_0x3d6dd9[_0xd51ec4]);});}}}});}_getResizedColumnWidths(_0x4793da){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x4793da['is']('element','table'))return;const _0x19f1e5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x431419=_0x19f1e5['getColumnGroupElement'](_0x4793da);return _0x431419?_0x19f1e5['getTableColumnsWidths'](_0x431419):void 0x0;}handleSuggestionDescription(_0x832043){if(_0x832043['data'])switch(_0x832043['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(_0x557d31,_0x34cfef){const _0x33a515=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30ff60 of _0x33a515['getSuggestions']({'skipNotAttached':!0x0})){const _0xcc9ae5=_0x30ff60['getContainedElement']();if(_0x30ff60['subType']===_0x34cfef&&_0xcc9ae5===_0x557d31)return _0x30ff60;}return null;}_registerTablePropertiesAttributes(){const _0x3daa49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3264=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3aaefc of _0x2e3264){const _0x66bc21=_0x3aaefc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3daa49['descriptionFactory']['registerAttributeLabel'](_0x3aaefc,Mt(this['editor']['locale'],'FORMAT_'+_0x66bc21));}}},nn=class extends _0x18ca51{afterInit(){const _0x187378=this['editor'];if(!_0x187378['plugins']['has']('LineHeight'))return;const _0x51a949=_0x187378['plugins']['get']('TrackChangesEditing'),_0x47515f=_0x187378['locale'];_0x51a949['enableDefaultAttributesIntegration']('lineHeight'),_0x51a949['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x47515f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x5286c0){return'marker'==_0x5286c0['type']&&_0x5286c0['name']['startsWith']('$markedRemove');}function on(_0x3dea3f){return _0x3dea3f?[_0x3dea3f]:[];}var an=class extends _0x18ca51{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x460b74,_0x3af144,_0x7b02ea,_0x1d0b4b,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(_0x41b766){super(_0x41b766),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f39ed,_0x2f66d6,_0x52a769,_0x482523)=>{this['_model']['change'](()=>{for(const _0x42fc21 of[..._0x482523,..._0x52a769])this['_model']['markers']['has'](_0x42fc21)&&_0x41b766['editing']['reconvertMarker'](_0x42fc21);});}),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']=_0x41b766['plugins']['get'](_0x460b74),this['_suggestionsConversion']=_0x41b766['plugins']['get'](_0x3af144),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x41b766['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41b766['config']['get']('trackChanges.trackFormatChanges'),_0x41b766['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41b766['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x41b766,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x23b843=this['editor'];_0x23b843['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5fd872,{writer:_0x3c65af})=>{let _0x6cd08a='suggestion:'+_0x5fd872['getAttribute']('suggestion-type')+':'+_0x5fd872['getAttribute']('id');return _0x5fd872['getAttribute']('marker-count')&&(_0x6cd08a+=':'+_0x5fd872['getAttribute']('marker-count')),_0x3c65af['createElement']('$marker',{'data-name':_0x6cd08a});}}),_0x23b843['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23b843['model']['document']['registerPostFixer'](_0x4f7651=>{let _0x236dd4=!0x1;const _0x29c8ba=Array['from'](_0x23b843['model']['document']['differ']['getChangedMarkers']()),_0x340aeb=new Set();for(const {name:_0x47dadd,data:_0x5ef8e5}of _0x29c8ba){const {group:_0x54a35c,type:_0x5a3577,subType:_0xf85fa3,id:_0x26d46f}=tt(_0x47dadd);if('suggestion'!==_0x54a35c)continue;const _0xd09a7e=_0xf85fa3?'suggestion:'+_0x5a3577+':'+_0xf85fa3+':'+_0x26d46f:'suggestion:'+_0x5a3577+':'+_0x26d46f,_0x3c277f=_0x23b843['model']['markers']['getMarkersGroup'](_0xd09a7e),_0x5c3646=_0x23b843['model']['markers']['get'](_0x47dadd),_0xce95c8=this['_suggestions']['get'](_0x26d46f);if(null!=_0x5ef8e5['newRange']){'formatInline'==_0x5a3577&&(_0x236dd4=_0x236dd4||dn(_0x5ef8e5['newRange'],_0x47dadd,_0x4f7651,_0x23b843['model']['schema']));const _0x58d6de='attribute'==_0x5a3577&&this['_suggestionsConversion']['isBlockAttribute'](An(_0xf85fa3)),_0x3fa8ac='attribute'==_0x5a3577&&this['_suggestionsConversion']['isInlineAttribute'](An(_0xf85fa3));if(_0x5ef8e5['newRange']['isCollapsed']||'$graveyard'==_0x5ef8e5['newRange']['root']['rootName']||'formatBlock'==_0x5a3577&&!gn(_0x5ef8e5['newRange'])||_0x58d6de&&!gn(_0x5ef8e5['newRange'])||_0x3fa8ac&&fn(_0x5ef8e5['newRange'])||'deletion'==_0x5a3577&&fn(_0x5ef8e5['newRange'])||_0x5c3646&&mn(_0x5c3646,_0x3c277f))_0x4f7651['removeMarker'](_0x47dadd),_0x236dd4=!0x0;else{if(!_0xce95c8||!_0xce95c8['isInContent'])continue;if(_0x5ef8e5['newRange']&&_0x5ef8e5['oldRange']&&_0x5ef8e5['newRange']['isEqual'](_0x5ef8e5['oldRange']))continue;_0x340aeb['add'](_0xce95c8);}}}return _0x340aeb['size']>0x0&&(_0x236dd4=!!this['_joinWithAdjacentSuggestions'](_0x340aeb)||_0x236dd4),_0x236dd4;}),_0x23b843['model']['document']['registerPostFixer'](_0x166b86=>{let _0x44f104=!0x1;for(const _0x566321 of _0x23b843['model']['document']['differ']['getChanges']())if('insert'==_0x566321['type'])for(const _0x56c07d of this['_suggestions']['values']()){if(_0x56c07d['isMultiRange']||!_0x56c07d['isInContent'])continue;const _0x3f82ae='formatBlock'==_0x56c07d['type'],_0xbb9e73=this['_getAttributeKey'](_0x56c07d),_0x39f437=_0xbb9e73&&this['_suggestionsConversion']['isBlockAttribute'](_0xbb9e73);if(!_0x3f82ae&&!_0x39f437)continue;const _0x34a1f1=_0x56c07d['getFirstRange']();if(_0x34a1f1['start']['parent']!=_0x34a1f1['end']['parent']&&!_0x34a1f1['end']['isAtEnd']){const _0x49ff6a=_0x23b843['model']['createPositionAt'](_0x34a1f1['start']['nodeAfter'],'end'),_0x13a571=_0x23b843['model']['createRange'](_0x34a1f1['start'],_0x49ff6a);_0x166b86['updateMarker'](_0x56c07d['getFirstMarker'](),{'range':_0x13a571}),_0x44f104=!0x0;}}return _0x44f104;}),_0x23b843['model']['document']['registerPostFixer'](_0x487e06=>this['_processAttributeChanges'](_0x487e06)),_0x23b843['model']['document']['registerPostFixer'](_0x144a08=>!_0x144a08['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x144a08)),_0x23b843['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23b843['model']['document']['on']('change:data',(_0x49654b,_0xa822c0)=>{if(!_0xa822c0['isLocal']||_0xa822c0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x32b173=_0x23b843['model']['document']['differ']['getChanges']();if(0x0==_0x32b173['length'])return;const _0x103df3=[],_0x1da384=_0x32b173['filter'](_0x11438a=>'attribute'==_0x11438a['type']),_0x25e02b=_0x32b173['filter'](_0xd066=>'insert'==_0xd066['type']&&'$text'!=_0xd066['name']);for(const _0x785685 of _0x1da384)this['_suggestionsConversion']['isRegisteredAttribute'](_0x785685['attributeKey'])&&_0x103df3['push']({'key':_0x785685['attributeKey'],'newValue':_0x785685['attributeNewValue'],'oldValue':_0x785685['attributeOldValue'],'range':En(_0x785685['range'],_0x23b843['model'])});for(const _0x43a53f of _0x25e02b){if('rename'!=_0x43a53f['action']&&'refresh'!=_0x43a53f['action'])continue;const _0x43c422=Tn(_0x43a53f['position']['nodeAfter'],_0x23b843['model']),_0x4e5351=_0x43a53f['before'];'rename'==_0x43a53f['action']&&_0x103df3['push']({'key':sn,'newValue':_0x43a53f['name'],'oldValue':_0x4e5351['name'],'range':_0x43c422});for(const [_0x74b96d,_0x6a80aa]of _0x4e5351['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x74b96d))continue;const _0x3e3d84=_0x43a53f['attributes']['get'](_0x74b96d);_0x6a80aa!==_0x3e3d84&&_0x103df3['push']({'key':_0x74b96d,'newValue':_0x3e3d84,'oldValue':_0x6a80aa,'range':_0x43c422});}for(const [_0x5ae56f,_0x175b91]of _0x43a53f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5ae56f)&&(_0x4e5351['attributes']['has'](_0x5ae56f)||_0x103df3['push']({'key':_0x5ae56f,'newValue':_0x175b91,'oldValue':null,'range':_0x43c422}));}0x0!=_0x103df3['length']&&_0x23b843['model']['enqueueChange'](_0xa822c0,_0xe0cdae=>{const _0x962201=_0x3f17ac();for(const {range:_0x19892d,key:_0xa08b76,oldValue:_0x3e4b46,newValue:_0x2234d2}of _0x103df3)this['markAttributeChange'](_0x19892d,_0xa08b76,_0x3e4b46,_0x2234d2,{'groupId':_0x962201});this['_reduceExistingSuggestions'](_0xe0cdae,_0x103df3);});},{'priority':'lowest'}),_0x23b843['model']['markers']['on']('update:suggestion',(_0x552779,_0x4f293e,_0x4e2c0d)=>{if(null==_0x4e2c0d){const {id:_0x3fc55f}=tt(_0x4f293e['name']),_0x596a2a=this['_suggestions']['get'](_0x3fc55f);_0x596a2a&&_0x596a2a['addMarkerName'](_0x4f293e['name']);}}),_0x23b843['model']['document']['on']('change:data',()=>{const _0x3849ec=Array['from'](_0x23b843['model']['document']['differ']['getChangedMarkers']())['filter'](_0x166d5b=>'suggestion'===tt(_0x166d5b['name'])['group']);if(0x0===_0x3849ec['length'])return;_0x3849ec['sort']((_0x1dae39,_0x5772bc)=>{const _0x14383d=_0x1dae39['data']['oldRange'],_0x59ed0b=_0x5772bc['data']['oldRange'];return null===_0x14383d&&null===_0x59ed0b?0x0:null===_0x14383d&&null!==_0x59ed0b?-0x1:null!==_0x14383d&&null===_0x59ed0b?0x1:_0x14383d['start']['isBefore'](_0x59ed0b['start'])?-0x1:0x1;});const _0x42c71b=new Set(),_0x41baee=new Set();for(const {name:_0x11aff2,data:_0x43d66e}of _0x3849ec){const {id:_0x563efd}=tt(_0x11aff2);if(null===_0x43d66e['oldRange']){const _0x5ca518=this['_handleNewSuggestionMarker'](_0x11aff2);_0x41baee['add'](_0x5ca518);}else{const _0x1c7a5e=this['_suggestions']['get'](_0x563efd);null!==_0x43d66e['newRange']||_0x1c7a5e['isInContent']?(_0x42c71b['add'](_0x1c7a5e['head']),_0x41baee['add'](_0x1c7a5e)):this['_removeSuggestion'](_0x1c7a5e);}}_0x41baee['size']>0x0&&this['_refreshSuggestionsChain'](_0x41baee);for(const _0x9b2ed4 of _0x42c71b)this['fire']('suggestionChanged',_0x9b2ed4);}),_0x23b843['model']['on']('applyOperation',(_0x1450a3,_0x146ba5)=>{const _0x1f0c22=_0x146ba5[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f0c22['isDocumentOperation'])return;if(_0x1f0c22['batch']['isUndo']||!_0x1f0c22['batch']['isLocal'])return;let _0x1b9566,_0x5b1097;switch(_0x1f0c22['type']){case'insert':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['position']),_0x5b1097=_0x1b9566['getShiftedBy'](_0x1f0c22['howMany']);break;case'split':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['splitPosition']),_0x5b1097=_0x23b843['model']['createPositionAt'](_0x1f0c22['moveTargetPosition']);break;case'move':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['targetPosition']),_0x5b1097=_0x1b9566['getShiftedBy'](_0x1f0c22['howMany']);break;default:return;}const _0x3186f1=_0x23b843['model']['createRange'](_0x1b9566,_0x5b1097);_0x23b843['model']['change'](()=>{for(const {suggestion:_0x1aad67,meta:_0x2ea377}of this['_findSuggestions'](_0x3186f1)){if(_0x1aad67['isMultiRange'])continue;if('formatInline'==_0x1aad67['type'])continue;const _0x22e504=this['_getAttributeKey'](_0x1aad67);if(_0x22e504&&this['_suggestionsConversion']['isBlockAttribute'](_0x22e504)&&'split'!=_0x1f0c22['type'])continue;const _0x3db858=_0x1aad67['data']&&_0x1aad67['data']['multipleBlocks'];('formatBlock'!=_0x1aad67['type']||'split'==_0x1f0c22['type']&&!_0x3db858)&&(_0x2ea377['containsRangeInObject']||'insertion'==_0x1aad67['type']&&_0x2ea377['isOwn']||_0x1aad67['getFirstRange']()['containsRange'](_0x3186f1)&&this['_breakSuggestionMarker'](_0x1aad67,_0x1b9566,_0x5b1097));}});},{'priority':'lowest'}),_0x23b843['model']['on']('deleteContent',(_0x3c4051,_0xb329a0)=>{const _0x16f955=_0xb329a0[0x0],_0x2dba93=_0xb329a0[0x1];if(_0x2dba93&&_0x2dba93['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16f955['isCollapsed'])return;const _0x3dd7c8=_0x23b843['model']['schema'],{start:_0x5912ad,end:_0x44b5be}=_0x16f955['getFirstRange'](),_0x5e9403=_0x5912ad['nodeAfter']&&_0x3dd7c8['isLimit'](_0x5912ad['nodeAfter'])?null:_0x3dd7c8['getNearestSelectionRange'](_0x5912ad,'forward'),_0x676f2e=_0x44b5be['nodeBefore']&&_0x3dd7c8['isLimit'](_0x44b5be['nodeBefore'])?null:_0x3dd7c8['getNearestSelectionRange'](_0x44b5be,'backward'),_0xaaebe5=_0x23b843['model']['createRange'](_0x5e9403?_0x5e9403['start']:_0x5912ad,_0x676f2e?_0x676f2e['end']:_0x44b5be);_0x23b843['model']['change'](_0x511609=>{this['markDeletion'](_0xaaebe5);const _0x144f07=_0x23b843['model']['schema']['getNearestSelectionRange'](_0xaaebe5['start']);_0x16f955['is']('documentSelection')?_0x511609['setSelection'](_0x144f07):_0x16f955['setTo'](_0x144f07);}),_0x3c4051['stop']();},{'priority':_0x4c920d['normal']+0xa}),_0x23b843['model']['on']('insertContent',(_0x151d67,_0x3e61ca)=>{const _0x415ad6=_0x3e61ca[_0x3e61ca['length']-0x1];_0x415ad6&&_0x415ad6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23b843['model']['change'](()=>{let _0x1232d1=_0x23b843['model']['insertContent'](_0x3e61ca[0x0],_0x3e61ca[0x1],_0x3e61ca[0x2],{'forceDefaultExecution':!0x0});if(!_0x1232d1)return;_0x151d67['return']=_0x1232d1['clone']();const _0x3f95c2=_0x1232d1['end']['nodeBefore'],_0x5ae4c8=_0x23b843['model']['schema'];_0x3f95c2&&_0x5ae4c8['isBlock'](_0x3f95c2)&&!_0x5ae4c8['isObject'](_0x3f95c2)&&(_0x1232d1=_0x23b843['model']['createRange'](_0x1232d1['start'],_0x23b843['model']['createPositionAt'](_0x3f95c2,'end'))),this['markInsertion'](_0x1232d1);}),_0x151d67['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31a7d8=new _t(_0x23b843,this['_suggestions']);_0x23b843['commands']['add']('acceptSuggestion',_0x31a7d8),this['enableCommand']('acceptSuggestion');const _0x5542ae=new pt(_0x23b843,this['_suggestions']);_0x23b843['commands']['add']('discardSuggestion',_0x5542ae),this['enableCommand']('discardSuggestion'),_0x23b843['commands']['add']('acceptAllSuggestions',new Rt(_0x23b843,_0x31a7d8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23b843['commands']['add']('discardAllSuggestions',new Rt(_0x23b843,_0x5542ae,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23b843['commands']['add']('acceptSelectedSuggestions',new yt(_0x23b843,_0x31a7d8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23b843['commands']['add']('discardSelectedSuggestions',new yt(_0x23b843,_0x5542ae,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a42de=_0x23b843['plugins']['get'](_0x460b74);this['listenTo'](_0x5a42de,'addComment',(_0x213fbd,{threadId:_0x33cdc1})=>{const _0x145215=this['_suggestions']['get'](_0x33cdc1);_0x145215&&_0x145215['commentThread']&&0x1===_0x145215['commentThread']['length']&&this['_updateSuggestionData'](_0x33cdc1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a42de,'removeComment',(_0xa7ebea,{threadId:_0x8a122b})=>{const _0x189c2b=this['_suggestions']['get'](_0x8a122b);_0x189c2b&&_0x189c2b['commentThread']&&!_0x189c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x8a122b,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x481af6){const _0x3152c5='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x5b8da1=0x79650,_0x3f5a86={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1d6fd9(_0x46fede){const _0xb75103=new window['Promise'](_0x230683=>{_0x46fede['once']('ready',_0x230683);}),_0x1bb9b0=window['Date']['now'](),_0x28cec4=_0x46fede['config']['get']('licenseKey');async function _0x25a90f(){let _0xf94a78,_0xbd8fbb=null,_0x5ef10f=null;try{return'GPL'==_0x28cec4?'NotAllowed':(_0xf94a78=_0x37fc18(),_0xf94a78?(_0xf94a78['usageEndpoint']&&(_0x5ef10f=_0x3422b0(_0xf94a78['usageEndpoint'],_0xf94a78['jti'])),await _0x32fbe6()?_0x2ce31a()?_0x35e493()?'Expired':_0x3f8d19()?('evaluation'==_0xf94a78['licenseType']&&(_0xbd8fbb=_0x5f2ddb('EvaluationLimit')),await _0x456406()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x35e493(){const _0x566cc1=['evaluation','trial']['includes'](_0xf94a78['licenseType'])?_0x1bb9b0/0x3e8:0xe10*_0x5b8da1;return _0xf94a78['exp']<_0x566cc1;}function _0x2ce31a(){const _0x148d27=_0xf94a78['features'];if(!_0x148d27)return!0x1;if(_0x148d27['includes']('*'))return!0x0;if(_0x148d27['includes']('TC'))return!0x0;if(_0x148d27['includes']('RTC')){if(_0x5c43d8())return!0x0;if(_0x18e0bc()||_0x5563db())return!0x0;}return!0x1;}function _0x3f8d19(){const _0x57189c=_0xf94a78['licensedHosts'];if(!_0x57189c||0x0==_0x57189c['length'])return!0x0;const {hostname:_0x59f26e}=new URL(window['location']['href']);if(_0x57189c['includes'](_0x59f26e))return!0x0;const _0x28329e=_0x59f26e['split']('.');return _0x57189c['filter'](_0x2af8c6=>_0x2af8c6['includes']('*'))['map'](_0x1b0ef8=>_0x1b0ef8['split']('.'))['filter'](_0x90f8f=>_0x90f8f['length']<=_0x28329e['length'])['map'](_0x1d35b9=>Array(_0x28329e['length']-_0x1d35b9['length'])['fill']('*'===_0x1d35b9[0x0]?'*':'')['concat'](_0x1d35b9))['some'](_0x4f8c39=>_0x28329e['every']((_0x52c6e0,_0xd35953)=>_0x4f8c39[_0xd35953]===_0x52c6e0||'*'===_0x4f8c39[_0xd35953]));}function _0x456406(){return _0xbd8fbb&&_0x5ef10f?new window['Promise']((_0x47a34e,_0x5d4b12)=>{_0xbd8fbb['then'](_0x47a34e,_0x5d4b12),_0x5ef10f['then'](_0x4e46fd=>{'Valid'!=_0x4e46fd&&_0x47a34e(_0x4e46fd);},_0x5d4b12);}):_0xbd8fbb||_0x5ef10f||'Valid';}}function _0x3422b0(_0x354621,_0x28c438){return new window['Promise'](_0x1533d2=>{if(_0x17327e())return _0x1533d2('Valid');_0x1ff99d(),_0x46fede['decorate']('_sendUsageRequest');let _0x3ee09b=!0x1;const _0x2eea49=_0x3f17ac();function _0x370074(_0x33e48c){return!!_0x33e48c&&('object'==typeof _0x33e48c||'function'==typeof _0x33e48c)&&'function'==typeof _0x33e48c['then']&&'function'==typeof _0x33e48c['catch'];}function _0x304430(_0x42c51c){_0x433f50(_0x42c51c)['then'](_0x1d157c=>_0x1d157c&&'ok'==_0x1d157c['status']?_0x4d4068(_0x60fa7e(_0x2eea49+_0x28c438))!=_0x1d157c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x471b22=>(_0x35e01f(),_0x471b22),()=>{const _0x32a487=_0x37fd8d();return null==_0x32a487?(_0x35e01f(),'Valid'):_0x1bb9b0-_0x32a487>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1533d2)['catch'](()=>{_0x1533d2('UsageLimit');});const _0x4f0f3a=0x36ee80;function _0x35e01f(){const _0x3ce102='llct-'+_0x4d4068(_0x60fa7e(_0x354621)),_0x2d6173=_0x5a1651(_0x4d4068(window['Math']['ceil'](_0x1bb9b0/_0x4f0f3a)));window['localStorage']['setItem'](_0x3ce102,_0x2d6173);}function _0x37fd8d(){const _0x4f72cc='llct-'+_0x4d4068(_0x60fa7e(_0x354621)),_0xa61531=window['localStorage']['getItem'](_0x4f72cc);return _0xa61531?window['parseInt'](_0x5a1651(_0xa61531),0x10)*_0x4f0f3a:null;}function _0x433f50(_0x3676f8){return new window['Promise']((_0x289f3b,_0x5b93db)=>{_0x3676f8['then'](_0x289f3b,_0x5b93db),window['setTimeout'](_0x5b93db,0x1d4c0);});}}_0x46fede['on']('_sendUsageRequest',(_0x2dd53d,_0xae7e1f)=>{if(_0xae7e1f[0x0]!=_0x354621)return _0x1533d2('UsageLimit');_0xae7e1f[0x1]={..._0xae7e1f[0x1],'requestId':_0x2eea49};},{'priority':'high'}),_0x46fede['on']('_sendUsageRequest',_0xdf8809=>{_0x370074(_0xdf8809['return'])&&(_0x3ee09b=!0x0,_0x304430(_0xdf8809['return']));},{'priority':'low'}),_0xb75103['then'](()=>{_0x3ee09b||_0x1533d2('UsageLimit');});});function _0x17327e(){return'auto'==_0x46fede['editing']['view']['_overlayModeHint'];}function _0x1ff99d(){_0x46fede['editing']['view']['_overlayModeHint']='auto';}}function _0x5f2ddb(_0xce7aa6){const _0x23edd3=[new window['Promise'](_0x50e7ad=>setTimeout(_0x50e7ad,0x93ecc)),_0xb75103['then'](()=>new window['Promise'](_0x538df8=>{let _0x754774=0x0;_0x46fede['model']['on']('applyOperation',(_0xd4f2f5,_0x24b8f2)=>{_0x24b8f2[0x0]['isDocumentOperation']&&_0x754774++,0x5e8==_0x754774&&(_0x538df8(),_0xd4f2f5['off']());});}))];return window['Promise']['race'](_0x23edd3)['then'](()=>_0xce7aa6);}async function _0x7f921e(){await _0xb75103,_0x46fede['model']['change']=_0x1deffb,_0x46fede['model']['enqueueChange']=_0x1deffb,_0x46fede['enableReadOnlyMode']('model');}function _0x5c43d8(){return _0x101202('WebSocketGateway')&&'connected'==_0x5c4e47('WebSocketGateway')['state'];}function _0x18e0bc(){return _0x101202('RevisionViewerIntegration');}function _0x5563db(){return _0x101202('TrackChangesDataGetter');}function _0x465fb6(_0x1992cc){const _0x2e7acc=_0xe97948();_0x46fede[_0x2e7acc]='trackChangesLicenseKey'+_0x1992cc,'Valid'!=_0x1992cc&&_0x7f921e();}function _0xe97948(){const _0x54ec3b=window['String'](window['performance']['now']())['replace']('.','');let _0x539801='U';for(let _0x53eba2=0x0;_0x53eba2<_0x54ec3b['length'];_0x53eba2+=0x2){let _0x54329b=window['parseInt'](_0x54ec3b['substring'](_0x53eba2,_0x53eba2+0x2));_0x54329b>=0x3e&&(_0x54329b-=0x3e),_0x539801+=_0x3152c5[_0x54329b];}return _0x539801;}function _0x37fc18(){const _0x507531=_0x28cec4['split']('.');if(0x3!=_0x507531['length'])return null;return _0xbee502(_0x507531[0x1]);function _0xbee502(_0x10b758){const _0x1e5ff2=_0xa5ed71(_0x10b758);return _0x1e5ff2&&_0x5e70a1()?_0x1e5ff2:null;function _0x5e70a1(){const _0x3f96b0=_0x1e5ff2['jti'],_0x1362b9=window['parseInt'](_0x3f96b0['substring'](_0x3f96b0['length']-0x8),0x10),_0x2654e3={..._0x1e5ff2,'jti':_0x3f96b0['substring'](0x0,_0x3f96b0['length']-0x8)};return delete _0x2654e3['vc'],_0x60fa7e(_0x2654e3)==_0x1362b9;}}}async function _0x32fbe6(){let _0x492175=!0x0;try{const [_0xfe89ef,_0x30e2dc,_0x87387f]=_0x28cec4['split']('.');return _0x5e07a0(_0xfe89ef),await _0x33a927(_0xfe89ef,_0x30e2dc,_0x87387f),_0x492175;}catch{return!0x1;}function _0x5e07a0(_0x44e181){const _0x62c80c=_0xa5ed71(_0x44e181);_0x62c80c&&'ES256'==_0x62c80c['alg']||(_0x492175=!0x1);}async function _0x33a927(_0x21885b,_0x102b7f,_0xe2ff20){const _0xe4bb8f=window['Uint8Array']['from'](_0x7ef474(_0xe2ff20),_0x351ad7=>_0x351ad7['charCodeAt'](0x0)),_0x376584=new window['TextEncoder']()['encode'](_0x21885b+'.'+_0x102b7f),_0xc6165a=window['crypto']['subtle'];if(!_0xc6165a)return;const _0x59e680=await _0xc6165a['importKey']('jwk',_0x3f5a86,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc6165a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x59e680,_0xe4bb8f,_0x376584)||(_0x492175=!0x1);}}function _0xa5ed71(_0x3ba0c8){return _0x3ba0c8['startsWith']('ey')?JSON['parse'](_0x7ef474(_0x3ba0c8)):null;}function _0x7ef474(_0x500f81){return window['atob'](_0x500f81['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x60fa7e(_0x184685){let _0x1dd219=0x1505;function _0x194a80(_0x34a21e){for(let _0x2fc952=0x0;_0x2fc952<_0x34a21e['length'];_0x2fc952++){const _0x3fe9df=_0x34a21e['charCodeAt'](_0x2fc952);_0x1dd219=(_0x1dd219<<0x5)+_0x1dd219+_0x3fe9df,_0x1dd219&=_0x1dd219;}}function _0x20d063(_0x147455){Array['isArray'](_0x147455)?_0x147455['forEach'](_0x20d063):_0x147455&&'object'==typeof _0x147455?Object['entries'](_0x147455)['sort']()['forEach'](([_0x4fd02b,_0x3acfea])=>{_0x194a80(_0x4fd02b),_0x20d063(_0x3acfea);}):_0x194a80(window['String'](_0x147455));}return _0x20d063(_0x184685),_0x1dd219>>>0x0;}function _0x4d4068(_0x5b7a0f){return _0x5b7a0f['toString'](0x10)['padStart'](0x8,'0');}function _0x5a1651(_0x2c1595){return _0x2c1595['split']('')['reverse']()['join']('');}function _0x101202(_0x1de96b){return _0x46fede['plugins']['has'](_0x1de96b);}function _0x5c4e47(_0x58907a){return _0x46fede['plugins']['get'](_0x58907a);}function _0x1deffb(){}_0x465fb6(await _0x25a90f());}_0x1d6fd9(_0x481af6['editor']);}(this);}set adapter(_0x2d70eb){if(this['_adapter'])throw new _0x2f2b37('track-changes-adapter-already-set',this);this['_adapter']=_0x2d70eb;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x6b5353=!0x1,toJSON:_0x5c10df=!0x1}={}){const _0x212b39=[];for(const _0xef9cdd of this['_suggestions']['values']())_0x6b5353&&!_0xef9cdd['isInContent']||_0x212b39['push'](_0xef9cdd);return _0x5c10df?_0x212b39['map'](_0xaa1ecb=>_0xaa1ecb['toJSON']()):_0x212b39;}getSuggestion(_0x58da2f){const _0x3f298b=this['_suggestions']['get'](_0x58da2f);if(!_0x3f298b)throw new _0x2f2b37('track-changes-suggestion-not-found',this);return _0x3f298b;}hasSuggestion(_0x4a4763){return this['_suggestions']['has'](_0x4a4763);}addSuggestionData(_0x37b875){const {authorId:_0x2e611a,id:_0x571c33,originalSuggestionId:_0x345c39,attributes:_0x1c5e51}=_0x37b875,[_0x3b6783,_0x200a7c]=_0x37b875['type']['split'](':'),_0x14d03e=this['_suggestions']['get'](_0x571c33)||this['_createSuggestion'](_0x3b6783,_0x200a7c,_0x571c33,_0x2e611a,_0x1c5e51,_0x345c39);if(this['_addThreadToSuggestion'](_0x14d03e),this['_checkSuggestionCorrectness'](_0x14d03e,_0x3b6783,_0x200a7c||null,_0x2e611a),_0x14d03e['createdAt']=_0x37b875['createdAt'],_0x14d03e['_isDataLoaded']=!0x0,_0x1c5e51&&_0x1c5e51['@external']){const _0x430f20=_0x1c5e51['@external'],_0x161685=this['_getExternalAuthor'](_0x430f20['authorName']);_0x14d03e['authoredAt']=_0x430f20['createdAt'],_0x14d03e['author']=_0x161685;}else _0x14d03e['authoredAt']=_0x37b875['createdAt'];switch(_0x37b875['data']&&(_0x14d03e['data']=_0x37b875['data']),_0x37b875['attributes']&&(_0x14d03e['attributes']=_0x37b875['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14d03e['_saved']=!0x0),this['_suggestionState']['get'](_0x14d03e)){case'notReady':this['_suggestionState']['set'](_0x14d03e,'dataReady');break;case'markerReady':_0x14d03e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14d03e])),this['_refreshSuggestionsChain'](new Set([_0x14d03e])),this['_suggestionState']['set'](_0x14d03e,'ready'),this['fire']('suggestionLoaded',_0x14d03e)):this['_suggestionState']['set'](_0x14d03e,'removed');}return _0x14d03e;}acceptSuggestion(_0x31ac17){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x357da3 of _0x31ac17['getAllAdjacentSuggestions']())_0x357da3['accept']();});});}discardSuggestion(_0x377121){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x133868 of _0x377121['getAllAdjacentSuggestions']())_0x133868['discard']();});});}['enableCommand'](_0xfb356d,_0x2a220a){const _0x4180a0=this['editor']['commands']['get'](_0xfb356d);if(!_0x4180a0)throw new _0x2f2b37('track-changes-command-not-found',this,{'commandName':_0xfb356d});if(this['_enabledCommands']['has'](_0x4180a0))throw new _0x2f2b37('track-changes-enable-command-twice',this,{'commandName':_0xfb356d});this['_enabledCommands']['add'](_0x4180a0),_0x2a220a&&_0x4180a0['on']('execute',(_0x411a21,_0x27926d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27926d['length']>0x0&&_0x27926d[_0x27926d['length']-0x1]&&_0x27926d[_0x27926d['length']-0x1]['forceDefaultExecution']?_0x27926d['pop']():(_0x411a21['return']=_0x2a220a((..._0x3418fd)=>_0x4180a0['execute'](..._0x3418fd,{'forceDefaultExecution':!0x0}),..._0x27926d),_0x411a21['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x10ebe9){let _0xc14aa,_0x551e1a;const _0x37c1a6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc14aa=_0x10ebe9();}catch(_0xa68b63){_0x551e1a=_0xa68b63;}return _0x37c1a6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x551e1a&&_0x2f2b37['rethrowUnexpectedError'](_0x551e1a,this),_0xc14aa;}markInsertion(_0x1cc4f5,_0x2b42fb=null,_0x27f233={}){if(_0x1cc4f5['isCollapsed'])return null;const _0x315c02=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x27f233['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x310ef3,meta:_0x213dd2}of this['_findSuggestions'](_0x1cc4f5,'insertion'))if(_0x213dd2['isOwn']){if(!_0x213dd2['isNextTo']){if(_0x213dd2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x310ef3,_0x27f233))continue;return _0x310ef3;}if(Ln(_0x310ef3,_0x27f233))return _0x310ef3;this['_breakSuggestionMarker'](_0x310ef3,_0x1cc4f5['start'],_0x1cc4f5['end']);break;}if(_0x2b42fb==_0x310ef3['subType']&&Ln(_0x310ef3,_0x27f233)){const _0x22e03c=_0x310ef3['getFirstRange']();return _0x22e03c['start']['isEqual'](_0x1cc4f5['end'])?this['_setSuggestionRange'](_0x310ef3,this['_model']['createRange'](_0x1cc4f5['start'],_0x22e03c['end'])):this['_setSuggestionRange'](_0x310ef3,this['_model']['createRange'](_0x22e03c['start'],_0x1cc4f5['end'])),_0x310ef3;}}const _0x5eede7=_0x3f17ac(),_0x2f5091=_0x315c02['id'],_0x417128=_0x2b42fb?'insertion:'+_0x2b42fb:'insertion',_0x4ea9e7=this['_setSuggestionData']({'id':_0x5eede7,'type':_0x417128,'createdAt':new Date(),'authorId':_0x2f5091,'attributes':_0x27f233});return this['_addSuggestionMarker'](_0x417128,_0x5eede7,_0x2f5091,_0x1cc4f5),_0x4ea9e7;}markMultiRangeInsertion(_0x36818e,_0x5cb953='multi',_0x541a46={}){const _0x1f11a0=this['editor']['plugins']['get']('Users')['me'],_0x4bdf49=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cb953,'join');this['_trackingSessionId']&&(_0x541a46['trackingSessionId']=this['_trackingSessionId']);for(const _0x562fcc of this['getSuggestions']())if(_0x562fcc['author']['id']==_0x1f11a0['id']&&'insertion'==_0x562fcc['type']&&_0x562fcc['subType']==_0x5cb953&&Ln(_0x562fcc,_0x541a46)&&(_0x4bdf49(_0x562fcc['getRanges'](),_0x36818e)||_0x4bdf49(_0x36818e,_0x562fcc['getRanges']()))){for(const _0x260e80 of _0x36818e)_0x562fcc['addRange'](_0x260e80);return _0x562fcc;}for(const {suggestion:_0x432c3,meta:_0x2a3833}of this['_findSuggestions'](_0x36818e,'insertion')){if(!_0x2a3833['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a3833['containsRangeInObject'])continue;if(!Ln(_0x432c3,_0x541a46))continue;let _0x4bce24=!0x0;for(const _0x2c54dc of _0x432c3['getRanges']())for(const _0x402ad9 of _0x36818e)if(!_0x2c54dc['containsRange'](_0x402ad9)){_0x4bce24=!0x1;break;}if(_0x4bce24)return _0x432c3;}const _0x522f70=_0x3f17ac(),_0x27ed34=_0x1f11a0['id'],_0x3f0389='insertion:'+_0x5cb953,_0x59aed5=this['_setSuggestionData']({'id':_0x522f70,'type':_0x3f0389,'createdAt':new Date(),'authorId':_0x27ed34,'attributes':_0x541a46});for(const _0x482044 of _0x36818e)this['_addSuggestionMarker'](_0x3f0389,_0x522f70,_0x27ed34,_0x482044,St['getMultiRangeId']());return _0x59aed5;}markInlineFormat(_0x4047c0,_0x7cc44f,_0x3d8444=null,_0x44a0ba={}){if(_0x3d8444=_0x3d8444||hn(_0x7cc44f),_0x4047c0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44a0ba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2701ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d8444,'accept');return this['forceDefaultExecution'](()=>_0x2701ad([_0x4047c0],_0x7cc44f,_0x44a0ba)),null;}const _0x573468=this['editor']['plugins']['get']('Users')['me'],_0x4e51cc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x309d9b,meta:_0x46c4c8}of this['_findSuggestions'](_0x4047c0,'insertion'))_0x46c4c8['isOwn']&&!_0x46c4c8['isInsideObject']&&_0x4e51cc['push'](..._0x309d9b['getRanges']());}const _0x106835=function(_0x5ccd83,_0x383e6e){const _0x2c6f67=[];for(const _0x4da48e of _0x383e6e){const _0x41f069=_0x5ccd83['getIntersection'](_0x4da48e);_0x41f069&&_0x2c6f67['push'](_0x41f069);}return _0x2c6f67;}(_0x4047c0,_0x4e51cc),_0x3bfaf2=function(_0x177ef5,_0x39cb2c){const _0x35a276=[_0x177ef5];for(const _0x1efdc4 of _0x39cb2c){let _0x386c47=0x0;for(;_0x386c47<_0x35a276['length'];){const _0x2d85b3=_0x35a276[_0x386c47]['getDifference'](_0x1efdc4);_0x35a276['splice'](_0x386c47,0x1,..._0x2d85b3),_0x386c47+=_0x2d85b3['length'];}}return _0x35a276;}(_0x4047c0,_0x4e51cc);_0x106835['length']&&this['_model']['change'](()=>{for(const _0x47739b of _0x106835){const _0x1a681c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d8444,'accept');this['forceDefaultExecution'](()=>_0x1a681c([_0x47739b],_0x7cc44f,_0x44a0ba));}});for(const _0x9a2260 of _0x3bfaf2){let _0x41099e=null,_0x2477d5=_0x9a2260['start'],_0x22fd0d=_0x9a2260['end'];for(const {suggestion:_0x1db16b,meta:_0x5892b3}of this['_findSuggestions'](_0x9a2260,'formatInline')){if(!_0x5892b3['isOwn'])continue;if(_0x1db16b['subType']!=_0x3d8444)continue;if(!Ln(_0x1db16b,_0x44a0ba))continue;const _0x196872=_0x1db16b['getFirstRange']();if(_0x196872['containsRange'](_0x9a2260,!0x0))return null;_0x2477d5=_0x2477d5['isBefore'](_0x196872['start'])?_0x2477d5:_0x196872['start'],_0x22fd0d=_0x22fd0d['isAfter'](_0x196872['end'])?_0x22fd0d:_0x196872['end'],_0x41099e?_0x196872['start']['isBefore'](_0x41099e['getFirstRange']()['start'])?(_0x41099e['removeMarkers'](),_0x41099e=_0x1db16b):_0x1db16b['removeMarkers']():_0x41099e=_0x1db16b;}const _0x11d623=this['_model']['createRange'](_0x2477d5,_0x22fd0d);if(_0x41099e)this['_setSuggestionRange'](_0x41099e,_0x11d623);else{const _0x2dd084=_0x3f17ac(),_0x58fc8e=_0x573468['id'];this['_setSuggestionData']({'id':_0x2dd084,'type':'formatInline:'+_0x3d8444,'data':_0x7cc44f,'createdAt':new Date(),'authorId':_0x58fc8e,'attributes':_0x44a0ba}),this['_addSuggestionMarker']('formatInline:'+_0x3d8444,_0x2dd084,_0x58fc8e,_0x11d623);}}return null;}markBlockFormat(_0x99e43e,_0x2bedb7,_0x5e5c81=[],_0xfc219d=null,_0x148b44={}){_0x2bedb7['formatGroupId']||(_0x2bedb7['formatGroupId']=_0x2bedb7['commandName']),_0x2bedb7['multipleBlocks']=_0x99e43e['is']('range'),_0xfc219d=_0xfc219d||hn(_0x2bedb7);const _0x25ac9a=_0x5e5c81['map'](_0x460e47=>Tn(_0x460e47,this['_model'])),_0x5ba73a=_0x99e43e['is']('range')?_0x99e43e:Tn(_0x99e43e,this['_model']);if(this['_trackingSessionId']&&(_0x148b44['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7b5c2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc219d,'accept');return this['forceDefaultExecution'](()=>_0x7b5c2b([_0x5ba73a],_0x2bedb7,_0x148b44)),null;}_0x25ac9a['push'](_0x5ba73a);let _0x4e79f9=!0x0;for(const _0x4d75d8 of _0x25ac9a)if(!this['_rangeIsInLocalUserInsertion'](_0x4d75d8)){_0x4e79f9=!0x1;break;}if(_0x4e79f9&&'always'!==this['_trackFormatChanges']){const _0x54f905=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc219d,'accept');return this['forceDefaultExecution'](()=>_0x54f905([_0x5ba73a],_0x2bedb7,_0x148b44)),null;}let _0x2beaaa=null,_0x367459=_0x5ba73a['start'],_0x41573a=_0x5ba73a['end'];for(const {suggestion:_0x486afb,meta:_0x2bceda}of this['_findSuggestions'](_0x5ba73a,'formatBlock')){if(!_0x2bceda['isOwn'])continue;if(_0x2bceda['isNextTo']||_0x2bceda['containsRangeInObject']||_0x2bceda['isInsideObject'])continue;if(_0x486afb['data']['formatGroupId']!=_0x2bedb7['formatGroupId'])continue;if(!Ln(_0x486afb,_0x148b44))continue;const _0x44d2d6=_0x486afb['getFirstRange']();if(_0x486afb['subType']==_0xfc219d){if(_0x44d2d6['containsRange'](_0x5ba73a,!0x0))return null;_0x367459=_0x367459['isBefore'](_0x44d2d6['start'])?_0x367459:_0x44d2d6['start'],_0x41573a=_0x41573a['isAfter'](_0x44d2d6['end'])?_0x41573a:_0x44d2d6['end'],_0x2beaaa?_0x44d2d6['start']['isBefore'](_0x2beaaa['getFirstRange']()['start'])?(_0x2beaaa['removeMarkers'](),_0x2beaaa=_0x486afb):_0x486afb['removeMarkers']():_0x2beaaa=_0x486afb;}else{const _0x375e9c=_0x5ba73a['getIntersection'](_0x44d2d6);this['_cutOutSuggestionMarker'](_0x486afb,_0x375e9c);}}const _0x1cac24=this['editor']['plugins']['get']('Users')['me'],_0xe202ae=_0x3f17ac(),_0x5088fe=_0x1cac24['id'];if(_0x2beaaa)return this['_setSuggestionRange'](_0x2beaaa,this['_model']['createRange'](_0x367459,_0x41573a)),_0x2beaaa;{const _0x1d87f4=this['_setSuggestionData']({'id':_0xe202ae,'type':'formatBlock:'+_0xfc219d,'data':_0x2bedb7,'createdAt':new Date(),'authorId':_0x5088fe,'attributes':_0x148b44});return this['_addSuggestionMarker']('formatBlock:'+_0xfc219d,_0xe202ae,_0x5088fe,this['_model']['createRange'](_0x367459,_0x41573a)),_0x1d87f4;}}markMultiRangeBlockFormat(_0x5deaea,_0x219c53,_0x242135=[],_0x24e399=null,_0x1e39d0={}){_0x219c53['formatGroupId']||(_0x219c53['formatGroupId']=_0x219c53['commandName']);const _0x289137=_0x5deaea[0x0];_0x219c53['multipleBlocks']=_0x289137['is']('range'),_0x24e399=_0x24e399||hn(_0x219c53);const _0x8431b0=_0x242135['map'](_0x70e165=>Tn(_0x70e165,this['_model'])),_0x514fca=_0x289137['is']('range')?_0x5deaea:_0x5deaea['map'](_0x5707bb=>Tn(_0x5707bb,this['_model']));if(this['_trackingSessionId']&&(_0x1e39d0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x194043=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'accept');return this['forceDefaultExecution'](()=>_0x194043(_0x514fca,_0x219c53,_0x1e39d0)),null;}_0x8431b0['push'](..._0x514fca);let _0x521ace=!0x0;for(const _0x3348ba of _0x8431b0)if(!this['_rangeIsInLocalUserInsertion'](_0x3348ba)){_0x521ace=!0x1;break;}if(_0x521ace&&'always'!==this['_trackFormatChanges']){const _0x34276b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'accept');return this['forceDefaultExecution'](()=>_0x34276b(_0x514fca,_0x219c53,_0x1e39d0)),null;}const _0x137117=this['editor']['plugins']['get']('Users')['me'];for(const _0x24a688 of this['getSuggestions']()){const _0x344998=_0x24a688['data'];if(_0x24a688['author']['id']!=_0x137117['id'])continue;if('formatBlock'!=_0x24a688['type']||_0x344998['formatGroupId']!=_0x219c53['formatGroupId'])continue;if(!Ln(_0x24a688,_0x1e39d0))continue;const _0x520f32=_0x24a688['subType']==_0x24e399;for(let _0x179aaa=0x0;_0x179aaa<_0x514fca['length'];_0x179aaa++){const _0x39417e=_0x514fca[_0x179aaa];for(const _0x47487d of _0x24a688['getMarkers']()){const _0x17aa42=_0x47487d['getRange']();if(_0x39417e['isEqual'](_0x17aa42)){_0x520f32?(_0x514fca['splice'](_0x179aaa,0x1),_0x179aaa--):_0x24a688['removeMarker'](_0x47487d['name']);break;}}}}if(0x0==_0x514fca['length'])return null;const _0x3f23b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'join');for(const _0x19897f of this['getSuggestions']()){const _0x48292d=_0x19897f['data'];if(_0x19897f['author']['id']==_0x137117['id']&&('formatBlock'==_0x19897f['type']&&_0x48292d['formatGroupId']==_0x219c53['formatGroupId']&&_0x19897f['subType']==_0x24e399&&Ln(_0x19897f,_0x1e39d0)&&(_0x3f23b4(_0x19897f['getRanges'](),_0x514fca)||_0x3f23b4(_0x514fca,_0x19897f['getRanges']())))){for(const _0xf3bbcb of _0x514fca)_0x19897f['addRange'](_0xf3bbcb);return _0x19897f;}}const _0x55cbca=_0x3f17ac(),_0x5dc1b3=_0x137117['id'],_0x58a897='formatBlock:'+_0x24e399,_0x37a9ce=this['_setSuggestionData']({'id':_0x55cbca,'type':_0x58a897,'data':_0x219c53,'createdAt':new Date(),'authorId':_0x5dc1b3,'attributes':_0x1e39d0});for(const _0x4c38e5 of _0x514fca)this['_addSuggestionMarker'](_0x58a897,_0x55cbca,_0x5dc1b3,_0x4c38e5,St['getMultiRangeId']());return _0x37a9ce;}markDeletion(_0x35200c,_0x370990=null,_0x4dcb8e={}){if(_0x35200c['isCollapsed'])return null;const _0x3791f0=this['editor']['plugins']['get']('Users')['me'],_0x26cde3=new rt(_0x35200c['start'],_0x35200c['end']);this['_trackingSessionId']&&(_0x4dcb8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ad978,meta:_0x1f8407}of this['_findSuggestions'](_0x26cde3,'insertion'))if(_0x1f8407['isOwn']&&!_0x1f8407['isNextTo']){if(_0x1ad978['isMultiRange']){const _0x5568a8=_0x1ad978['getRanges']()['filter'](_0x479819=>'$graveyard'!=_0x479819['root']['rootName']);if(_0x5568a8['every'](_0x4941fb=>_0x26cde3['containsRange'](_0x4941fb,!0x0))&&_0x1ad978['discard'](),_0x5568a8['some'](_0x30343d=>_0x30343d['containsRange'](_0x26cde3,!0x0))){const _0x5e2f36=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x370990,'accept');return this['forceDefaultExecution'](()=>_0x5e2f36([_0x26cde3],null,_0x4dcb8e)),null;}}else{const _0x3126cc=_0x26cde3['getIntersection'](_0x1ad978['getFirstRange']());null!==_0x3126cc&&_0x1ad978['_onDiscard']([_0x3126cc],null,_0x4dcb8e);}}if(_0x26cde3['detach'](),_0x26cde3['isCollapsed']||'$graveyard'==_0x26cde3['root']['rootName'])return null;let _0x5d3b27=null,_0x1c80d9=_0x26cde3['start'],_0x39004e=_0x26cde3['end'];const _0x2448c6=this['_findSuggestions'](_0x26cde3,'deletion');for(const {suggestion:_0x12c475,meta:_0x46a667}of _0x2448c6){const _0x38e264=this['_model']['createRange'](_0x1c80d9,_0x39004e);if(_0x46a667['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46a667['containsRangeInObject']&&!_0x46a667['isInsideObject'])){if(_0x12c475['isMultiRange']){if(!Ln(_0x12c475,_0x4dcb8e))continue;let _0xb0b677=!0x0;for(const _0x4f33d2 of _0x12c475['getRanges']()){if(_0x4f33d2['containsRange'](_0x38e264,!0x0))return _0x12c475;_0x38e264['containsRange'](_0x4f33d2)||(_0xb0b677=!0x1);}_0xb0b677&&_0x12c475['discard']();}else{const _0x4f9504=_0x12c475['getFirstRange']();if(_0x4f9504['containsRange'](_0x38e264,!0x0))return _0x12c475;if(!Ln(_0x12c475,_0x4dcb8e)){_0x38e264['containsRange'](_0x4f9504)?_0x12c475['removeMarkers']():_0x4f9504['containsPosition'](_0x1c80d9)?_0x1c80d9=_0x4f9504['end']:_0x4f9504['containsPosition'](_0x39004e)&&(_0x39004e=_0x4f9504['start']);continue;}_0x1c80d9=_0x1c80d9['isBefore'](_0x4f9504['start'])?_0x1c80d9:_0x4f9504['start'],_0x39004e=_0x39004e['isAfter'](_0x4f9504['end'])?_0x39004e:_0x4f9504['end'],_0x4dcb8e=Object['assign']({},_0x12c475['attributes']),_0x5d3b27?_0x4f9504['start']['isBefore'](_0x5d3b27['getFirstRange']()['start'])?(_0x5d3b27['removeMarkers'](),_0x5d3b27=_0x12c475):_0x12c475['removeMarkers']():_0x5d3b27=_0x12c475;}}}if(_0x5d3b27)return this['_setSuggestionRange'](_0x5d3b27,this['_model']['createRange'](_0x1c80d9,_0x39004e)),_0x5d3b27;{const _0x404896=_0x3f17ac(),_0x373c20=this['_model']['createRange'](_0x1c80d9,_0x39004e),_0x52210f=_0x3791f0['id'],_0x2ee490=_0x370990?'deletion:'+_0x370990:'deletion',_0x25e03b=this['_setSuggestionData']({'id':_0x404896,'type':_0x2ee490,'createdAt':new Date(),'authorId':_0x52210f,'attributes':_0x4dcb8e});return this['_addSuggestionMarker'](_0x2ee490,_0x404896,_0x52210f,_0x373c20),_0x25e03b;}}markMultiRangeDeletion(_0x2d92c2,_0x3c9410='multi',_0x3a3610={}){const _0x211331=this['editor']['plugins']['get']('Users')['me'],_0x3583ac=_0x2d92c2['map'](_0x30b980=>new rt(_0x30b980['start'],_0x30b980['end'])),_0x389f9b=new Set();this['_trackingSessionId']&&(_0x3a3610['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18e985,meta:_0x507ddf}of this['_findSuggestions'](_0x3583ac,'insertion'))_0x507ddf['isOwn']&&!_0x507ddf['isNextTo']&&_0x389f9b['add'](_0x18e985);for(const _0x465e59 of _0x389f9b)if(_0x465e59['isMultiRange']){const _0x460b76=_0x465e59['getRanges']();if(_0x465e59['attributes']&&_0x465e59['attributes']['skipNestingCheck']||_0x460b76['every'](_0x22074e=>_0x3583ac['some'](_0x41b7ec=>_0x41b7ec['containsRange'](_0x22074e,!0x0)))&&_0x465e59['discard'](),_0x3583ac['every'](_0x96317e=>_0x460b76['some'](_0x4e2d05=>_0x4e2d05['containsRange'](_0x96317e,!0x0)))){const _0x3aa9e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'accept');return this['forceDefaultExecution'](()=>_0x3aa9e1(_0x2d92c2,null,_0x3a3610)),null;}}else{const _0x4f9473=_0x465e59['getFirstRange']();if(_0x3583ac['some'](_0x3a279f=>_0x3a279f['containsRange'](_0x4f9473,!0x0))&&_0x465e59['discard'](),_0x3583ac['every'](_0x438629=>_0x4f9473['containsRange'](_0x438629,!0x0))){const _0x2b2bc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'accept');return this['forceDefaultExecution'](()=>_0x2b2bc6(_0x3583ac,null,_0x3a3610)),null;}}const _0x2553a4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'join');let _0x76f83b=null;for(const _0x2a0ba4 of this['getSuggestions']())if(_0x2a0ba4['author']['id']==_0x211331['id']&&_0x2a0ba4['isInContent']&&'deletion'==_0x2a0ba4['type']&&_0x2a0ba4['subType']==_0x3c9410&&Ln(_0x2a0ba4,_0x3a3610)&&(_0x2553a4(_0x2a0ba4['getRanges'](),_0x3583ac)||_0x2553a4(_0x3583ac,_0x2a0ba4['getRanges']()))){if(_0x76f83b){if(_0x2a0ba4['commentThread']&&_0x2a0ba4['commentThread']['length'])continue;for(const _0x5f2d9b of _0x2a0ba4['getRanges']())_0x76f83b['isIntersectingWithRange'](_0x5f2d9b)||_0x76f83b['addRange'](_0x5f2d9b);_0x2a0ba4['removeMarkers']();}else{_0x76f83b=_0x2a0ba4;for(const _0x524870 of _0x3583ac)_0x2a0ba4['isIntersectingWithRange'](_0x524870)||_0x2a0ba4['addRange'](_0x524870);}}if(_0x76f83b)return _0x76f83b;_0x389f9b['clear']();for(const {suggestion:_0x3b7f7b,meta:_0x244799}of this['_findSuggestions'](_0x3583ac,'deletion'))_0x244799['isOwn']&&(this['_mergeNestedSuggestions']||!_0x244799['containsRangeInObject']&&!_0x244799['isInsideObject'])&&Ln(_0x3b7f7b,_0x3a3610)&&_0x389f9b['add'](_0x3b7f7b);for(const _0xe833ce of _0x389f9b){const _0x2d17f0=_0xe833ce['getRanges']();if((!_0x3a3610||!_0x3a3610['skipNestingCheck'])&&_0x3583ac['every'](_0x15d679=>_0x2d17f0['some'](_0x3ce0b2=>_0x3ce0b2['containsRange'](_0x15d679,!0x0))))return _0xe833ce;_0xe833ce['attributes']&&_0xe833ce['attributes']['skipNestingCheck']||_0x2d17f0['every'](_0x279a9f=>_0x3583ac['some'](_0x7e3e09=>_0x7e3e09['containsRange'](_0x279a9f,!0x0)))&&_0xe833ce['discard']();}const _0x3a1fc5=_0x3f17ac(),_0x4d3f16=_0x211331['id'],_0x4a6a7f='deletion:'+_0x3c9410,_0x65c5c3=this['_setSuggestionData']({'id':_0x3a1fc5,'type':_0x4a6a7f,'createdAt':new Date(),'authorId':_0x4d3f16,'attributes':_0x3a3610});for(const _0x178a65 of _0x3583ac)_0x178a65['detach'](),_0x178a65['isCollapsed']||'$graveyard'==_0x178a65['root']['rootName']||this['_addSuggestionMarker'](_0x4a6a7f,_0x3a1fc5,_0x4d3f16,_0x178a65,St['getMultiRangeId']());return _0x65c5c3;}markAttributeChange(_0x5a6bc4,_0x269698,_0x35b687,_0x43c55b,_0x4b21c8){if(_0x5a6bc4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5319bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x30c4e0=Array['from'](this['_suggestions']['values']())['filter'](_0x340201=>'attribute'==_0x340201['type']&&_0x340201['data']['key']==_0x269698&&_0x340201['isIntersectingWithRange'](_0x5a6bc4));if(this['_trackingSessionId']&&(_0x4b21c8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x31b7da=this['_findSuggestions'](_0x5a6bc4,'insertion')['filter'](({meta:_0x291b6b})=>_0x291b6b['isOwn']&&!_0x291b6b['isInsideObject']&&!_0x291b6b['isNextTo'])['map'](({suggestion:_0x10878c})=>_0x10878c);_0x30c4e0['unshift'](..._0x31b7da);}const _0x2d0808=new Map([[_0x5a6bc4,_0x35b687]]);for(const _0x204327 of _0x30c4e0){const _0x5ebf32='attribute'==_0x204327['type']?_0x204327['data']['oldValue']:void 0x0,_0x3ff81e=_0x204327['getFirstRange'](),_0x4772cd=Array['from'](_0x2d0808['keys']())['find'](_0x30c224=>_0x30c224['isIntersecting'](_0x3ff81e));if(!_0x4772cd)continue;const _0x3b04c2=_0x4772cd['getDifference'](_0x3ff81e);this['_suggestionsConversion']['isBlockAttribute'](_0x269698)&&'insertion'==_0x204327['type']&&0x0!=_0x3b04c2['length']||(_0x2d0808['delete'](_0x4772cd),_0x3b04c2['forEach'](_0x440af5=>{_0x2d0808['set'](_0x440af5,_0x35b687);}),'insertion'!=_0x204327['type']&&_0x5ebf32!=_0x43c55b&&_0x2d0808['set'](_0x4772cd['getIntersection'](_0x3ff81e),_0x5ebf32));}const _0x5ecb3f=[];for(const [_0x16459e,_0x1dabfd]of _0x2d0808){const _0x4a95c1=_0x3f17ac(),_0x2e2584={'key':_0x269698,'oldValue':_0x1dabfd,'newValue':_0x43c55b};_0x269698['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':_0x269698});const _0x2a9bfa=('attribute:'+_0x269698+'|'+hn({'newValue':_0x43c55b}))['substring'](0x0,0x3c),_0x33fdca=this['_setSuggestionData']({'id':_0x4a95c1,'type':_0x2a9bfa,'data':_0x2e2584,'createdAt':new Date(),'authorId':_0x5319bd,'attributes':_0x4b21c8});_0x5ecb3f['push'](_0x33fdca),this['_addSuggestionMarker'](_0x2a9bfa,_0x4a95c1,_0x5319bd,_0x16459e);}return _0x5ecb3f;}enableDefaultAttributesIntegration(_0x1112cd){this['enableCommand'](_0x1112cd,(_0xf4ecea,..._0x185cb4)=>{this['recordAttributeChanges'](()=>{_0xf4ecea(..._0x185cb4);});});}startTrackingSession(_0x259cbd){return this['_trackingSessionId']=void 0x0!==_0x259cbd?_0x259cbd:_0x3f17ac(),this['_trackingSessionId'];}_getAttributeKey(_0x2ae9e1){return'attribute'==_0x2ae9e1['type']?An(_0x2ae9e1['subType']):null;}_applyOperationsAsSuggestions(_0x18c95a){if(0x0==_0x18c95a['length'])return;const _0x145e87=this['editor'],_0x54a811=[],_0x3ec831=_0x49883c=>{const _0x2ff04b=_0x49883c['_aiSource'];return _0x2ff04b?{'@ai':{'type':_0x2ff04b}}:{};},_0x4a9f82=(_0x49810a,_0x2b92bc,_0x155ae8,_0x38d817)=>{const _0xfdbe61=new Set(_0x38d817['flatMap'](_0x17dcbe=>_0x17dcbe['getMarkerNames']()));let _0x144604=!0x1;for(let _0x5cadda=_0x2b92bc;_0x5cadda<_0x49810a['operations']['length'];_0x5cadda++){const _0x3aedec=_0x49810a['operations'][_0x5cadda];if('marker'==_0x3aedec['type']){if(!_0xfdbe61['has'](_0x3aedec['name']))continue;_0x144604=!0x0;}_0x3aedec['_aiSource']=_0x155ae8;}return _0x144604;};_0x145e87['model']['change'](_0x5f2dc5=>{for(let _0x31bec5=0x0;_0x31bec5<_0x18c95a['length'];_0x31bec5++){const _0x364cae=_0x18c95a[_0x31bec5],_0x26ad19=_0x364cae['_aiSource'];if(_0x364cae['baseVersion']=_0x145e87['model']['document']['version'],_0x364cae['isDocumentOperation']=!0x0,_0x11e8cd(_0x364cae))continue;if(rn(_0x364cae)){const _0x2d0870=_0x1a0f4e(_0x364cae['newRange'],_0x145e87['model']);_0x54a811['unshift']({'range':rt['fromRange'](_0x2d0870),'operation':_0x364cae});continue;}const _0x15bc65=_0x5f2dc5['batch']['operations']['length']+0x1;let _0x1453a8=[];switch(_0x364cae['type']){case'rename':{const _0x4d907f=_0x364cae['oldName'],_0x182158=_0x364cae['newName'];if(_0x4d907f==_0x182158)break;_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x20a887='$elementName',_0x44eaf4=_0x364cae['position'],_0x2d878d=_0x145e87['model']['createRange'](_0x44eaf4,_0x145e87['model']['createPositionAt'](_0x44eaf4['nodeAfter'],'end'));_0x1453a8=this['markAttributeChange'](_0x2d878d,_0x20a887,_0x4d907f,_0x182158,{..._0x3ec831(_0x364cae),'groupId':_0x3f17ac()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa9365d=_0x364cae['oldValue'],_0x4f6c91=_0x364cae['newValue'];if(_0xa9365d==_0x4f6c91)break;_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x383979=_0x364cae['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x383979))break;const _0x12d9fe=_0x1a0f4e(_0x364cae['range'],_0x145e87['model']);_0x1453a8=this['markAttributeChange'](_0x12d9fe,_0x383979,_0xa9365d,_0x4f6c91,{..._0x3ec831(_0x364cae),'groupId':_0x3f17ac()});break;}case'insert':{if(_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae),_0x18c95a[_0x31bec5+0x1]&&'move'==_0x18c95a[_0x31bec5+0x1]['type'])break;const _0x2fd52c=_0x364cae['position'],_0x11567d=_0x364cae['howMany'],_0x5b3538=_0x1a0f4e(_0x145e87['model']['createRange'](_0x2fd52c,_0x2fd52c['getShiftedBy'](_0x11567d)),_0x145e87['model']);_0x1453a8=on(this['markInsertion'](_0x5b3538,null,{..._0x3ec831(_0x364cae)}));break;}case'split':{_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x38d311=_0x364cae['splitPosition'],_0x37a571=_0x364cae['moveTargetPosition'],_0x3a09ea=_0x145e87['model']['createRange'](_0x38d311,_0x37a571);_0x1453a8=on(this['markInsertion'](_0x3a09ea,null,{..._0x3ec831(_0x364cae)}));break;}case'move':case'remove':_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);}_0x26ad19&&_0x4a9f82(_0x5f2dc5['batch'],_0x15bc65,_0x26ad19,_0x1453a8)&&delete _0x364cae['_aiSource'];}for(const {range:_0x55d577,operation:_0x561f6f}of _0x54a811){const _0x3359ea=_0x561f6f['_aiSource'],_0x5d4507=_0x3ec831(_0x561f6f),_0x184f64=_0x5f2dc5['batch']['operations']['length'];_0x55d577['detach']();const _0x1cc70a=this['markDeletion'](_0x55d577,null,{..._0x5d4507});_0x3359ea&&_0x4a9f82(_0x5f2dc5['batch'],_0x184f64,_0x3359ea,on(_0x1cc70a));}});}_setSuggestionRange(_0x11092e,_0x4a792b){const _0x55e365=_0x11092e['getFirstMarker']();this['_model']['change'](_0x401e9b=>{_0x401e9b['updateMarker'](_0x55e365,{'range':_0x4a792b});});}_addThreadToSuggestion(_0x501661){const _0x10124d=_0x501661['id'],_0x42782b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10124d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42782b,'threadId':_0x10124d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x239cf7=this['_commentsRepository']['getCommentThread'](_0x10124d);_0x239cf7['unbind']('isRemovable'),_0x239cf7['isRemovable']=!0x1,_0x501661['commentThread']=_0x239cf7;}_checkSuggestionCorrectness(_0x40bd85,_0xe72787,_0x5c54ee,_0x18f526){if(_0x40bd85['type']!=_0xe72787||_0x40bd85['subType']!=_0x5c54ee||_0x40bd85['creator']['id']!=_0x18f526)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f2b37('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x24d22c,_0x403765){const _0x253048=_0x24d22c['getFirstRange']();if(_0x403765['isEqual'](_0x253048))_0x24d22c['removeMarkers']();else{if(_0x253048['containsRange'](_0x403765)){const _0x4ba0c1=this['_model']['createPositionAt'](_0x403765['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x253048['start'],_0x4ba0c1));const _0x9b1b41=_0x3f17ac(),_0x47230c=_0x24d22c['creator']['id'],_0x2b8003=_0x24d22c['type']+':'+_0x24d22c['subType'];this['_setSuggestionData']({'id':_0x9b1b41,'type':_0x2b8003,'createdAt':new Date(),'authorId':_0x47230c,'data':_0x24d22c['data'],'attributes':_0x24d22c['attributes']});const _0x5db004=this['_model']['createPositionAt'](_0x403765['end']['parent'],'after'),_0x1e04f9=this['_model']['createRange'](_0x5db004,_0x253048['end']);this['_addSuggestionMarker'](_0x2b8003,_0x9b1b41,_0x47230c,_0x1e04f9);}else{if(_0x253048['containsPosition'](_0x403765['start'])){const _0x42b257=this['_model']['createPositionAt'](_0x403765['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x253048['start'],_0x42b257));}else{const _0x557df5=this['_model']['createPositionAt'](_0x403765['end']['parent'],'after');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x557df5,_0x253048['end']));}}}}_rangeIsInLocalUserInsertion(_0x124741){for(const {suggestion:_0x961351,meta:_0x15fcde}of this['_findSuggestions'](_0x124741,'insertion')){if(!_0x15fcde['isOwn'])continue;const _0x44b0f4=_0x961351['getRanges']();for(const _0x3b9e78 of _0x44b0f4)if(!_0x124741['getDifference'](_0x3b9e78)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x3af303){return this['editor']['plugins']['get']('Users')['getUser'](_0x3af303);}_getExternalAuthor(_0x4fcf3f){const _0x37a39e=this['editor']['plugins']['get']('Users'),_0x590816=_0x3bfe73('external:'+_0x4fcf3f),_0x3bae6b=_0x37a39e['getUser'](_0x590816);return _0x3bae6b||_0x37a39e['addUser']({'id':_0x590816,'name':_0x4fcf3f});}_createSuggestion(_0x53a2e5,_0x3b9ad4,_0x12cd3a,_0xc13f3b,_0x31e73e,_0x447ea7){const _0x5e369b=this['_getAuthorFromId'](_0xc13f3b);if(!_0x5e369b)throw new _0x2f2b37('track-changes-user-not-found',this,{'authorId':_0xc13f3b,'suggestionId':_0x12cd3a});const _0x3acec0=this['_suggestionFactory']['buildSuggestion'](_0x53a2e5,_0x3b9ad4,_0x12cd3a,_0x5e369b,_0x31e73e,_0x115130=>{this['_updateSuggestionData'](_0x12cd3a,{'attributes':_0x115130});const _0x3db0a9=this['getSuggestion'](_0x12cd3a);this['_joinWithAdjacentSuggestions'](new Set([_0x3db0a9])),this['_refreshSuggestionsChain'](new Set([_0x3db0a9]));},_0x447ea7);return this['listenTo'](_0x3acec0,'accept',()=>{this['_updateSuggestionData'](_0x12cd3a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3acec0,'discard',()=>{this['_updateSuggestionData'](_0x12cd3a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x12cd3a,_0x3acec0),this['_suggestionState']['set'](_0x3acec0,'notReady'),_0x3acec0;}_breakSuggestionMarker(_0x24be73,_0x4bc6e7,_0x50871d){const _0x3513d1=_0x24be73['getFirstRange'](),_0x57d346=_0x3513d1['start'],_0x32c2f2=_0x3513d1['end'];this['_setSuggestionRange'](_0x24be73,this['_model']['createRange'](_0x57d346,_0x4bc6e7));const _0x46da81=_0x3f17ac(),_0xe841ae=_0x24be73['creator']['id'],_0x11031f=_0x24be73['type']+(_0x24be73['subType']?':'+_0x24be73['subType']:'');this['_setSuggestionData']({'id':_0x46da81,'type':_0x11031f,'createdAt':new Date(),'authorId':_0xe841ae,'originalSuggestionId':_0x24be73['_originalSuggestionId']||_0x24be73['id'],'attributes':_0x24be73['attributes'],'data':_0x24be73['data']});const _0x56429e=this['_getAttributeKey'](_0x24be73);('formatBlock'==_0x24be73['type']||_0x56429e&&this['_suggestionsConversion']['isBlockAttribute'](_0x56429e))&&(_0x50871d=this['_model']['createPositionBefore'](_0x50871d['parent'])),this['_addSuggestionMarker'](_0x11031f,_0x46da81,_0xe841ae,this['_model']['createRange'](_0x50871d,_0x32c2f2));}_findSuggestions(_0x3622a4,_0x20e9b0=null){const _0x172429=[],_0x4a52ce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3622a4)||(_0x3622a4=[_0x3622a4]);for(const _0x527c72 of this['getSuggestions']()){if(!_0x527c72['isInContent'])continue;if(_0x20e9b0&&_0x527c72['type']!=_0x20e9b0)continue;let _0x18e07e=!0x1;for(const _0x35c7cc of _0x527c72['getRanges']()){for(const _0xfc2b6e of _0x3622a4){const _0x57d3af=_0xfc2b6e['start']['isEqual'](_0x35c7cc['end'])||_0xfc2b6e['end']['isEqual'](_0x35c7cc['start']);if(_0x57d3af||_0xfc2b6e['getIntersection'](_0x35c7cc)){const _0x2b71b4=_0xfc2b6e['containsRange'](_0x35c7cc)&&ln(this['_model']['schema'],_0x35c7cc['start'],_0xfc2b6e),_0x29b5ae=_0x35c7cc['containsRange'](_0xfc2b6e)&&ln(this['_model']['schema'],_0xfc2b6e['start'],_0x35c7cc);_0x172429['push']({'suggestion':_0x527c72,'meta':{'isOwn':_0x4a52ce==_0x527c72['author'],'isNextTo':_0x57d3af,'isInsideObject':_0x2b71b4,'containsRangeInObject':_0x29b5ae}}),_0x18e07e=!0x0;break;}}if(_0x18e07e)break;}}return _0x172429;}_addSuggestionMarker(_0x106f34,_0x32a526,_0x34830a,_0x5e9aa7,_0x1d1c7b){this['_model']['change'](_0x2f57a3=>{let _0x5ea0d3='suggestion:'+_0x106f34+':'+_0x32a526+':'+_0x34830a;_0x1d1c7b&&(_0x5ea0d3=_0x5ea0d3+':'+_0x1d1c7b),_0x2f57a3['addMarker'](_0x5ea0d3,{'range':_0x5e9aa7,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x2d3a47){const _0x55b0d2=_0x2d3a47['previous'],_0x3f1553=_0x2d3a47['next'];_0x2d3a47['previous']=null,_0x2d3a47['next']=null,null!=_0x55b0d2&&_0x55b0d2['next']==_0x2d3a47&&(_0x55b0d2['next']=_0x3f1553),null!=_0x3f1553&&_0x3f1553['previous']==_0x2d3a47&&(_0x3f1553['previous']=_0x55b0d2),'ready'==this['_suggestionState']['get'](_0x2d3a47)&&(this['_suggestionState']['set'](_0x2d3a47,'removed'),this['fire']('suggestionUnloaded',_0x2d3a47,_0x55b0d2,_0x3f1553));}_setSuggestionData(_0x250ef5){const _0xc5eece=_0x250ef5['id'],_0x455740=this['addSuggestionData'](_0x250ef5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ee710=this['editor']['plugins']['get']('PendingActions'),_0x59263b=_0x455740['hasComments'],_0x14d523=_0x455740['subType']?_0x455740['type']+':'+_0x455740['subType']:_0x455740['type'],_0x9f645e=this['editor']['locale'],_0x596125=_0x4ee710['add'](Mt(_0x9f645e,'PENDING_ACTION_SUGGESTION')),_0x355b8b={'id':_0xc5eece,'type':_0x14d523,'hasComments':_0x59263b,'data':_0x250ef5['data']||null,'originalSuggestionId':_0x250ef5['originalSuggestionId']||null,'attributes':_0x455740['attributes']};this['_adapter']['addSuggestion'](_0x355b8b)['then'](_0x2dd96b=>{_0x455740['_saved']=!0x0,_0x4ee710['remove'](_0x596125),_0x2dd96b&&_0x2dd96b['createdAt']&&(this['_suggestions']['get'](_0xc5eece)['createdAt']=_0x2dd96b['createdAt']);})['catch'](_0x310c7e=>{throw _0x51fc13('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x455740['discard']();}),_0x455740['stopListening'](),this['_suggestions']['delete'](_0x455740['id']),this['_suggestionState']['delete'](_0x455740),_0x310c7e;});}return _0x455740;}_updateSuggestionData(_0x2e0a60,_0x3fb5b7){const _0x5e4ce0=this['editor']['plugins']['get']('PendingActions'),_0x4cf3f0=this['getSuggestion'](_0x2e0a60);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4cf3f0['_saved']){const _0x1488ab=_0x5e4ce0['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e0a60,_0x3fb5b7)['then'](()=>{_0x5e4ce0['remove'](_0x1488ab);});}else _0x4cf3f0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e0a60,_0x3fb5b7);});}}_getSuggestionData(_0x146113){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f2b37('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x146113);}_handleNewSuggestionMarker(_0x2523fe){const {id:_0x3308c0,type:_0x1ba81d,subType:_0x3d50d8,authorId:_0x105bad}=tt(_0x2523fe),_0x2c8d3a=this['_suggestions']['get'](_0x3308c0)||this['_createSuggestion'](_0x1ba81d,_0x3d50d8,_0x3308c0,_0x105bad,{});switch(this['_checkSuggestionCorrectness'](_0x2c8d3a,_0x1ba81d,_0x3d50d8,_0x105bad),this['_suggestionState']['get'](_0x2c8d3a)){case'notReady':this['_getSuggestionData'](_0x3308c0)['then'](_0x3bcf69=>{let _0x192903=Promise['resolve']();_0x3bcf69['hasComments']&&(_0x192903=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3308c0})),_0x192903['then'](()=>{this['addSuggestionData'](_0x3bcf69)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c8d3a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3308c0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c8d3a,'ready'),this['fire']('suggestionLoaded',_0x2c8d3a);break;case'ready':this['fire']('suggestionChanged',_0x2c8d3a);}return _0x2c8d3a['addMarkerName'](_0x2523fe),_0x2c8d3a;}_refreshSuggestionsChain(_0x43fe03){const _0x254a1c=Array['from'](_0x43fe03),_0x248577=_0x254a1c['filter'](_0x5c25d6=>'attribute'==_0x5c25d6['type']);this['_refreshAttributeSuggestionsChain'](_0x248577);const _0x18bd7a=_0x254a1c['filter'](_0x549aa6=>!_0x549aa6['isMultiRange']&&'attribute'!=_0x549aa6['type']),_0x3b8b40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a91dc=>!_0x5a91dc['isMultiRange']&&'attribute'!=_0x5a91dc['type']),_0xcc5a0a=_0x3b8b40['filter'](_0x42496f=>!_0x43fe03['has'](_0x42496f)),_0x155fc7=new Map(_0x3b8b40['map'](_0x1faa42=>[_0x1faa42,this['_suggestionFactory']['getSuggestionCallback'](_0x1faa42['type'],_0x1faa42['subType'],'chain')])),_0x5e1ef1=new Map(_0x3b8b40['map'](_0x4717bf=>[_0x4717bf,_0x4717bf['getFirstRange']()])),_0x4591f9=new Set(),_0x5c9b62=new Set();for(let _0x46daf6=0x0;_0x46daf6<_0x18bd7a['length'];_0x46daf6++)_0x13e0cc(_0x18bd7a[_0x46daf6],_0x18bd7a,_0x46daf6+0x1);for(let _0x421491=0x0;_0x421491<_0x18bd7a['length'];_0x421491++)_0x13e0cc(_0x18bd7a[_0x421491],_0xcc5a0a,0x0);const _0x394416=new Set();for(let _0x40d277=0x0;_0x40d277<_0x18bd7a['length'];_0x40d277++){const _0x421f5f=_0x18bd7a[_0x40d277];!_0x5c9b62['has'](_0x421f5f)&&_0x421f5f['previous']&&(_0x394416['add'](_0x421f5f['previous']),_0x421f5f['previous']['next']===_0x421f5f&&(_0x421f5f['previous']['next']=null),_0x421f5f['previous']=null),!_0x4591f9['has'](_0x421f5f)&&_0x421f5f['next']&&(_0x394416['add'](_0x421f5f['next']),_0x421f5f['next']['previous']===_0x421f5f&&(_0x421f5f['next']['previous']=null),_0x421f5f['next']=null);}function _0x13e0cc(_0x3a6459,_0x4a69d8,_0x1fda68){for(let _0x3baba1=_0x1fda68;_0x3baba1<_0x4a69d8['length'];_0x3baba1++){const _0x3818b4=_0x1b9916(_0x3a6459,_0x4a69d8[_0x3baba1]);_0x3818b4&&(_0x3818b4[0x0]['next']=_0x3818b4[0x1],_0x3818b4[0x1]['previous']=_0x3818b4[0x0],_0x4591f9['add'](_0x3818b4[0x0]),_0x5c9b62['add'](_0x3818b4[0x1]));}}function _0x1b9916(_0x15f09a,_0x4fb8a8){if(_0x15f09a['author']['id']!==_0x4fb8a8['author']['id'])return null;const _0x110f9a=_0x155fc7['get'](_0x15f09a)(_0x15f09a,_0x4fb8a8,_0x5e1ef1['get'](_0x15f09a),_0x5e1ef1['get'](_0x4fb8a8));return _0x110f9a&&_0x155fc7['get'](_0x4fb8a8)(_0x15f09a,_0x4fb8a8,_0x5e1ef1['get'](_0x15f09a),_0x5e1ef1['get'](_0x4fb8a8))?_0x110f9a[0x1]['commentThread']&&_0x110f9a[0x1]['commentThread']['length']?null:_0x110f9a:null;}_0x394416['size']&&this['_refreshSuggestionsChain'](_0x394416);}_refreshAttributeSuggestionsChain(_0xea0e8c){if(0x0==_0xea0e8c['length'])return;const _0x5a544a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c17ce=>'attribute'==_0x5c17ce['type']&&_0x5c17ce['_isDataLoaded']),_0x445276=[],_0x15d152=new Map();for(const _0x4c2090 of _0x5a544a){const _0x599889=_0x3bfe73(_0x4c2090['attributes']);_0x15d152['has'](_0x599889)||(_0x15d152['set'](_0x599889,_0x445276['length']),_0x445276['push']([])),_0x445276[_0x15d152['get'](_0x599889)]['push'](_0x4c2090);}!(function(){_0x445276['sort']((_0x3dba59,_0x345edd)=>{const _0x4fae43=_0x3dba59[0x0]['createdAt'],_0xe05f83=_0x345edd[0x0]['createdAt'];return _0x4fae43==_0xe05f83?_0x3dba59[0x0]['attributes']['groupId']<_0x345edd[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fae43<_0xe05f83?-0x1:0x1;});for(const _0x2b8739 of _0x445276)_0x2b8739['sort']((_0x1804e0,_0x36e232)=>_0x1804e0['id']<_0x36e232['id']?-0x1:0x1);}());for(let _0xc8b89d=0x0;_0xc8b89d<_0x445276['length'];_0xc8b89d++){if(0x0==_0x445276[_0xc8b89d]['length'])continue;const _0x61f8aa=[];for(let _0x125c6f=_0xc8b89d+0x1;_0x125c6f<_0x445276['length'];_0x125c6f++)0x0!=_0x445276[_0x125c6f]['length']&&_0x189da6(_0x445276[_0xc8b89d],_0x445276[_0x125c6f])&&_0x61f8aa['push'](_0x125c6f);for(const _0x139de2 of _0x61f8aa)_0x445276[_0xc8b89d]=_0x445276[_0xc8b89d]['concat'](_0x445276[_0x139de2]),_0x445276[_0x139de2]=[];}for(const _0x5df63c of _0x445276)for(let _0x3e1732=0x0;_0x3e1732<_0x5df63c['length'];_0x3e1732++){const _0x371547=_0x5df63c[_0x3e1732+0x1]||null;_0x5df63c[_0x3e1732]['next']!==_0x371547&&(_0x5df63c[_0x3e1732]['next']=_0x371547);}for(const _0x2b0225 of _0x445276)for(let _0x1a9ecc=0x0;_0x1a9ecc<_0x2b0225['length'];_0x1a9ecc++){const _0x7f766b=_0x2b0225[_0x1a9ecc-0x1]||null;_0x2b0225[_0x1a9ecc]['previous']!==_0x7f766b&&(_0x2b0225[_0x1a9ecc]['previous']=_0x7f766b);}function _0x189da6(_0x5a26b2,_0x9fbaa9){if(_0x5a26b2[0x0]['attributes']['groupId']!==_0x9fbaa9[0x0]['attributes']['groupId']&&_0x5a26b2[0x0]['author']!==_0x9fbaa9[0x0]['author'])return!0x1;if(!function(_0x4837e5,_0x64ccff){return!_0x4837e5['hasComments']&&!_0x64ccff['hasComments']||(!_0x4837e5['hasComments']||!_0x64ccff['hasComments'])&&(!!(_0x4837e5['hasComments']&&_0x64ccff['createdAt']<_0x4837e5['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x64ccff['hasComments']&&_0x4837e5['createdAt']<_0x64ccff['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5a26b2[0x0],_0x9fbaa9[0x0]))return!0x1;const _0x21a110=lt(_0x5a26b2[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d72a3=lt(_0x9fbaa9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x21a110,_0x4d72a3)&&(_0x5a26b2[0x0]['attributes']['groupId']==_0x9fbaa9[0x0]['attributes']['groupId']||_0x5a26b2[0x0]['attributes']['trackingSessionId']===_0x9fbaa9[0x0]['attributes']['trackingSessionId']&&(!!_0x5a26b2['every'](_0x45cd0a=>_0x9fbaa9['some'](_0x27004c=>_0x45cd0a['getFirstRange']()['isEqual'](_0x27004c['getFirstRange']())))&&_0x9fbaa9['every'](_0x25f050=>_0x5a26b2['some'](_0x3ebeea=>_0x25f050['getFirstRange']()['isEqual'](_0x3ebeea['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x563416){const _0xb83d6f=Array['from'](_0x563416),_0x4c3812=this['getSuggestions']({'skipNotAttached':!0x0}),_0x328f8b=_0x4c3812['filter'](_0x28a753=>!_0x563416['has'](_0x28a753)),_0x57a496=new Map(_0xb83d6f['map'](_0x45f4d1=>[_0x45f4d1,this['_suggestionFactory']['getSuggestionCallback'](_0x45f4d1['type'],_0x45f4d1['subType'],'join')])),_0x56b9b8=new Map(_0x4c3812['map'](_0x4a7849=>[_0x4a7849,_0x4a7849['getRanges']()]));for(let _0x105f01=0x0;_0x105f01<_0xb83d6f['length'];_0x105f01++)if(_0x90c1c6(this,_0xb83d6f[_0x105f01],_0xb83d6f,_0x105f01+0x1))return!0x0;for(let _0x3539e1=0x0;_0x3539e1<_0xb83d6f['length'];_0x3539e1++)if(_0x90c1c6(this,_0xb83d6f[_0x3539e1],_0x328f8b,0x0))return!0x0;return!0x1;function _0x90c1c6(_0x232336,_0xf107b,_0x2dd5c5,_0x259db2){for(let _0xc627c2=_0x259db2;_0xc627c2<_0x2dd5c5['length'];_0xc627c2++){const _0x43ea5c=_0x2dd5c5[_0xc627c2];if(_0x43ea5c['type']!==_0xf107b['type']||_0x43ea5c['author']['id']!==_0xf107b['author']['id']||_0x43ea5c['subType']!==_0xf107b['subType'])continue;if(!pn(_0xf107b,_0x43ea5c))continue;if('attribute'==_0xf107b['type']&&_0xf107b['data']['oldValue']!=_0x43ea5c['data']['oldValue'])continue;if('attribute'==_0xf107b['type']&&_0x232336['_suggestionsConversion']['isBlockAttribute'](_0xf107b['data']['key']))continue;if('formatBlock'==_0xf107b['type']){const _0x1beaa8=_0x232336['editor']['model'],_0x26fd5d=_0xf107b['getContainedElement']();if(_0x26fd5d&&(_0x1beaa8['schema']['isObject'](_0x26fd5d)||_0x1beaa8['schema']['isLimit'](_0x26fd5d)))continue;}const _0x140185=_0x57a496['get'](_0xf107b),_0x49b372=_0x56b9b8['get'](_0xf107b),_0x1cb371=_0x56b9b8['get'](_0x43ea5c),_0x3d7a07=_0xf107b['commentThread']&&_0xf107b['commentThread']['length'],_0x3ef689=_0x43ea5c['commentThread']&&_0x43ea5c['commentThread']['length'];if(!_0x3d7a07&&_0x140185(_0x1cb371,_0x49b372))return _0x232336['_joinSuggestions'](_0x43ea5c,_0xf107b),_0x56b9b8['delete'](_0xf107b),!0x0;if(!_0x3ef689&&_0x140185(_0x49b372,_0x1cb371))return _0x232336['_joinSuggestions'](_0xf107b,_0x43ea5c),_0x56b9b8['delete'](_0x43ea5c),!0x0;}return!0x1;}}_joinSuggestions(_0x4bc8b5,_0x541b51){if(_0x4bc8b5['isMultiRange']){for(const _0x29b5c5 of _0x541b51['getRanges']())_0x4bc8b5['addRange'](_0x29b5c5);}else{const _0x1d44ea=_0x541b51['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4bc8b5,this['_model']['createRange'](_0x4bc8b5['getFirstRange']()['start'],_0x1d44ea));}_0x541b51['removeMarkers']();}_getMarkerAnnouncementText(_0x137bcf,_0xa5859,_0x1a5928){const _0x59d8f1=_0x137bcf['startsWith']('format')||_0x137bcf['startsWith']('attribute')?'FORMATTING':_0x137bcf['toUpperCase']();return Mt(this['editor']['locale'],_0xa5859+'_'+_0x59d8f1+'_SUGGESTION_ANNOUNCEMENT',_0x1a5928);}_initAriaMarkerChangeAnnouncements(){const _0xfe13b1=this['editor'];if(!_0xfe13b1['ui'])return;const {ariaLiveAnnouncer:_0x13e01a}=_0xfe13b1['ui'];et(this['_model'],({left:_0x517ec5,entered:_0x4f55e1})=>{for(const _0x476aa4 of _0x517ec5){const {group:_0x22279a,type:_0x53ece0}=tt(_0x476aa4['name']);if('suggestion'===_0x22279a){_0x13e01a['announce'](this['_getMarkerAnnouncementText'](_0x53ece0,'LEAVE'));break;}}for(const _0x429e42 of _0x4f55e1){const {group:_0x189482,type:_0xf7583b}=tt(_0x429e42['name']);if('suggestion'===_0x189482){_0x13e01a['announce'](this['_getMarkerAnnouncementText'](_0xf7583b,'ENTER',_0x4c674e(_0x3061c5)));break;}}});}_processAttributeChanges(_0x541614){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c6b33=this['editor'],_0x2d261c=_0x5c6b33['model']['document']['differ']['getChanges']();if(0x0==_0x2d261c['length'])return!0x1;const _0xf0fb55=[],_0x266dab=_0x2d261c['filter'](_0x4fee1e=>'attribute'==_0x4fee1e['type']),_0x299fe1=_0x2d261c['filter'](_0x5acffa=>'insert'==_0x5acffa['type']&&'$text'!=_0x5acffa['name']),_0x132374=_0x2d261c['filter'](_0x220ba7=>'remove'==_0x220ba7['type']&&'$text'!=_0x220ba7['name']);for(const _0xe3d057 of _0x266dab)_0xf0fb55['push']({'key':_0xe3d057['attributeKey'],'newValue':_0xe3d057['attributeNewValue'],'oldValue':_0xe3d057['attributeOldValue'],'range':En(_0xe3d057['range'],_0x5c6b33['model'])});for(const _0x4d70f2 of _0x299fe1){const _0x4c7e8e=_0x132374['find'](_0x2739ac=>_0x2739ac['position']['isEqual'](_0x4d70f2['position']));_0x4c7e8e&&_0xf0fb55['push']({'key':sn,'newValue':_0x4d70f2['name'],'oldValue':_0x4c7e8e['name'],'range':_0x5c6b33['model']['createRangeOn'](_0x4d70f2['position']['nodeAfter'])});}return 0x0!=_0xf0fb55['length']&&this['_reduceExistingSuggestions'](_0x541614,_0xf0fb55);}_processAttributeSuggestions(_0x5a3753){let _0x1d7fae=!0x1;const _0x51cfb8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ae695=>_0x4ae695['data']['newRange']&&_0x4ae695['name']['startsWith']('suggestion:attribute:'));for(const _0x43b63d of _0x51cfb8){const {subType:_0x1acc25,id:_0x44fd96}=tt(_0x43b63d['name']),_0x24fbd2=_0x1acc25['split']('|')[0x0];for(const _0x2e6349 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2e6349['id']!=_0x44fd96&&'attribute'==_0x2e6349['type']&&_0x2e6349['data']&&_0x2e6349['data']['key']==_0x24fbd2&&_0x2e6349['getFirstRange']()['isIntersecting'](_0x43b63d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2e6349,_0x43b63d['data']['newRange'],_0x5a3753),_0x1d7fae=!0x0);}return _0x1d7fae;}recordAttributeChanges(_0x1029e5){this['_recordAttributeSuggestions']=!0x0,_0x1029e5();}_reduceExistingSuggestions(_0x287fe1,_0x3591e6){if(0x0==_0x3591e6['length'])return!0x1;let _0x88a577=!0x1;for(const _0x3c48f1 of _0x3591e6){const _0x387af8=this['_findSuggestions'](_0x3c48f1['range'],'attribute')['filter'](_0xdc47c1=>!_0xdc47c1['meta']['isNextTo'])['map'](_0x3d8f6b=>_0x3d8f6b['suggestion']),_0x15370b=_0x3bfe73({'newValue':_0x3c48f1['newValue']});_0x387af8['filter'](_0x581660=>{const [_0x12c08d,_0x2a8ee3]=_0x581660['subType']['split']('|');return _0x12c08d==_0x3c48f1['key']&&_0x2a8ee3!=_0x15370b;})['forEach'](_0x46dd07=>{this['_reduceSuggestionAttributeRange'](_0x46dd07,_0x3c48f1['range'],_0x287fe1),_0x88a577=!0x0;});}return _0x88a577;}_reduceSuggestionAttributeRange(_0x3e8f46,_0x5c9fdc,_0x40053c){const _0x58c91c=_0x3e8f46['getFirstRange']()['getDifference'](_0x5c9fdc);0x0!==_0x58c91c['length']?0x1!==_0x58c91c['length']?this['_breakSuggestionMarker'](_0x3e8f46,_0x5c9fdc['start'],_0x5c9fdc['end']):this['_setSuggestionRange'](_0x3e8f46,_0x58c91c[0x0]):_0x40053c['removeMarker'](_0x3e8f46['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2f1412){this['_editor']=_0x2f1412,this['_model']=_0x2f1412['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x26d912,_0x4bc832,_0xbdd53f,_0xbc1995,_0x3d4184,_0x1d921c,_0x15a3e4){return new St(this['_model'],{'type':_0x26d912,'subType':_0x4bc832,'id':_0xbdd53f,'originalSuggestionId':_0x15a3e4,'author':_0xbc1995,'creator':_0xbc1995,'attributes':_0x3d4184,'onAttributesChange':_0x1d921c,'onAccept':(..._0x2b8076)=>this['getSuggestionCallback'](_0x26d912,_0x4bc832,'accept')(..._0x2b8076),'onDiscard':(..._0x2bab00)=>this['getSuggestionCallback'](_0x26d912,_0x4bc832,'discard')(..._0x2bab00)});}registerCustomCallback(_0x34c550,_0x1330b6,_0xce222d,_0x3a700f){const _0xcc738c=_0x34c550+':'+_0x1330b6+':'+_0xce222d;this['_customCallbacks']['set'](_0xcc738c,_0x3a700f);}getSuggestionCallback(_0x1ce178,_0xf9574e,_0x325045){const _0x5ee410=_0x1ce178+':'+_0xf9574e+':'+_0x325045;return this['_customCallbacks']['get'](_0x5ee410)||this['_defaultCallbacks']['get'](_0x1ce178+':'+_0x325045);}_registerDefaultCallbacks(){const _0x4fa86e=()=>!0x1,_0x446082=_0x1d22ec=>{_0x1d22ec['sort']((_0x2da085,_0x58f61a)=>_0x2da085['start']['isBefore'](_0x58f61a['start'])?0x1:-0x1),this['_model']['change'](_0xadb012=>{for(const _0x2e240d of _0x1d22ec){let _0x121149;_0x121149=_0x2e240d['end']['isAtEnd']&&_0x2e240d['end']['parent']==_0x2e240d['start']['nodeAfter']?_0xadb012['createSelection'](_0x2e240d['start']['nodeAfter'],'on'):_0xadb012['createSelection'](_0x2e240d),this['_model']['deleteContent'](_0x121149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x187530=(_0x549139,_0x328c50)=>{_0x328c50&&this['_model']['change'](_0x40a193=>{const {commandName:_0x3a3735,commandParams:_0x341275=[]}=_0x328c50,_0x18e32e=_0x549139['map'](_0x1abff2=>(un(_0x1abff2)&&(_0x1abff2=this['_model']['createRange'](_0x1abff2['end'])),_0x1abff2))['filter'](_0x2a7f86=>'$graveyard'!==_0x2a7f86['root']['rootName']);if(_0x18e32e['length']<0x1)return;const _0x337eeb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2fa6c2=>rt['fromRange'](_0x2fa6c2));_0x40a193['setSelection'](_0x18e32e);for(const _0x80341 of this['_editor']['commands']['commands']())_0x80341['refresh']();_0x341275['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a3735,..._0x341275);const _0xa97163=_0x337eeb['filter'](_0x4e507d=>'$graveyard'!=_0x4e507d['root']['rootName']);_0xa97163['length']>0x0&&_0x40a193['setSelection'](_0xa97163);for(const _0x22a39b of _0x337eeb)_0x22a39b['detach']();});},_0xb994c1=(_0x30df78,_0x566145)=>0x1==_0x30df78['length']&&0x1==_0x566145['length']&&_0x30df78[0x0]['end']['isEqual'](_0x566145[0x0]['start']),_0x57a81b=(_0x44996c,_0x1160c8,_0x22a6e0,_0x49416b)=>_n(_0x44996c,_0x1160c8,_0x22a6e0,_0x49416b)?[_0x44996c,_0x1160c8]:_n(_0x1160c8,_0x44996c,_0x49416b,_0x22a6e0)?[_0x1160c8,_0x44996c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4fa86e),this['_defaultCallbacks']['set']('insertion:discard',_0x446082),this['_defaultCallbacks']['set']('insertion:join',_0xb994c1),this['_defaultCallbacks']['set']('insertion:chain',_0x57a81b),this['_defaultCallbacks']['set']('deletion:accept',_0x446082),this['_defaultCallbacks']['set']('deletion:discard',_0x4fa86e),this['_defaultCallbacks']['set']('deletion:join',_0xb994c1),this['_defaultCallbacks']['set']('deletion:chain',_0x57a81b),this['_defaultCallbacks']['set']('formatInline:accept',_0x187530),this['_defaultCallbacks']['set']('formatInline:discard',_0x4fa86e),this['_defaultCallbacks']['set']('formatInline:join',_0xb994c1),this['_defaultCallbacks']['set']('formatInline:chain',_0x4fa86e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x187530),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4fa86e),this['_defaultCallbacks']['set']('formatBlock:join',_0xb994c1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4fa86e),this['_defaultCallbacks']['set']('attribute:accept',_0x4fa86e),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d440b,_0x10e55c)=>{if(!_0x10e55c)return;const _0x346bea=this['_editor']['plugins']['get'](_0x3af144);this['_model']['change'](_0x269d3=>{if('$elementName'==_0x10e55c['key'])for(const _0x82caf of _0x2d440b){const _0x38f01c=_0x82caf['start']['nodeAfter'],_0x31ab5b=_0x10e55c['oldValue'];_0x269d3['rename'](_0x38f01c,_0x31ab5b);}else{if(_0x346bea['isBlockAttribute'](_0x10e55c['key'])){for(const _0x50f78a of _0x2d440b)void 0x0!==_0x10e55c['oldValue']?_0x269d3['setAttribute'](_0x10e55c['key'],_0x10e55c['oldValue'],_0x50f78a['start']['nodeAfter']):_0x269d3['removeAttribute'](_0x10e55c['key'],_0x50f78a['start']['nodeAfter']);}else{for(const _0x3bb809 of _0x2d440b)_0x10e55c['oldValue']?_0x269d3['setAttribute'](_0x10e55c['key'],_0x10e55c['oldValue'],_0x3bb809):_0x269d3['removeAttribute'](_0x10e55c['key'],_0x3bb809);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb994c1);}};function ln(_0x4faab2,_0x2cc672,_0xa73715){for(const _0x5efc30 of _0x2cc672['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5efc30['root']==_0x5efc30)return!0x1;if(!_0xa73715['containsItem'](_0x5efc30))return!0x1;if(_0x4faab2['isObject'](_0x5efc30)||_0x4faab2['isLimit'](_0x5efc30))return!0x0;}return!0x1;}function un(_0x22f7b1){return _0x22f7b1['end']['parent']==_0x22f7b1['start']['nodeAfter']&&_0x22f7b1['end']['isAtStart'];}function dn(_0x2dec2b,_0x1deadf,_0x522a3a,_0x210bd1){const _0x38bbbc=_0x4bae50=>!_0x4bae50['item']['is']('$textProxy')&&!_0x210bd1['isObject'](_0x4bae50['item']),_0x3f0578=_0x2dec2b['start']['getLastMatchingPosition'](_0x38bbbc),_0x417a3d=_0x2dec2b['end']['getLastMatchingPosition'](_0x38bbbc,{'direction':'backward'});return(!_0x2dec2b['start']['isEqual'](_0x3f0578)||!_0x2dec2b['end']['isEqual'](_0x417a3d))&&(_0x3f0578['isBefore'](_0x417a3d)?_0x522a3a['updateMarker'](_0x1deadf,{'range':_0x522a3a['createRange'](_0x3f0578,_0x417a3d)}):_0x522a3a['removeMarker'](_0x1deadf),!0x0);}function hn(_0x21d000){return _0x3bfe73(_0x21d000);}function gn(_0x1d14b4){const _0x56bddd=_0x1d14b4['start']['nodeAfter'];return _0x56bddd&&_0x56bddd['is']('element');}function fn(_0x1e25bc){return un(_0x1e25bc)||function(_0x39355f){return _0x39355f['start']['parent']==_0x39355f['end']['nodeBefore']&&_0x39355f['start']['isAtEnd'];}(_0x1e25bc);}function mn(_0x562d22,_0xf6e354){try{const _0xdd92f2=_0x562d22['getRange']();for(const _0xe73cc of _0xf6e354)if(_0x562d22!==_0xe73cc&&_0xdd92f2&&_0xdd92f2['isIntersecting'](_0xe73cc['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x19a348,_0x3b8ed3){return null==_0x19a348['end']['nodeBefore']&&_0x19a348['end']['parent']==_0x19a348['start']['nodeAfter']?Tn(_0x19a348['start']['nodeAfter'],_0x3b8ed3):_0x19a348;}function Tn(_0xd78569,_0x4a3a53){const _0xc2dce3=_0x4a3a53['schema']['isObject'](_0xd78569)||_0x4a3a53['schema']['isSelectable'](_0xd78569);return _0x4a3a53['createRange'](_0x4a3a53['createPositionAt'](_0xd78569,'before'),_0xc2dce3?_0x4a3a53['createPositionAfter'](_0xd78569):_0x4a3a53['createPositionAt'](_0xd78569,'end'));}function _n(_0x1dd053,_0x3b4962,_0x4da3b0,_0x1739d1){return!!pn(_0x1dd053,_0x3b4962)&&_0x4da3b0['end']['isEqual'](_0x1739d1['start']);}function pn(_0x52fb03,_0x114909){if(!_0x52fb03['_isDataLoaded']||!_0x114909['_isDataLoaded'])return!0x1;const _0x390728=new Set(Object['keys'](_0x52fb03['attributes'])),_0x3d012f=new Set(Object['keys'](_0x114909['attributes']));if(_0x390728['delete']('groupId'),_0x3d012f['delete']('groupId'),0x0==_0x390728['size']&&0x0==_0x3d012f['size'])return!0x0;if(_0x390728['size']!=_0x3d012f['size'])return!0x1;const _0x5b02e5={..._0x52fb03['attributes']},_0x17d3f9={..._0x114909['attributes']};return delete _0x5b02e5['groupId'],delete _0x17d3f9['groupId'],JSON['stringify'](_0x5b02e5)==JSON['stringify'](_0x17d3f9);}function Ln(_0x216008,_0x410cc1){const _0x138b80=In(_0x216008['attributes']),_0xe224a0=In(_0x410cc1);if(!_0x216008['_isDataLoaded'])return!0x1;if(!ct(_0x138b80['@ai'],_0xe224a0['@ai']))return!0x1;for(const _0x34074d of Object['keys'](_0xe224a0))if(!ct(_0x138b80[_0x34074d],_0xe224a0[_0x34074d]))return!0x1;return!0x0;}function In(_0x21dd5c){const _0x33f3ef=Object['assign']({},_0x21dd5c);return delete _0x33f3ef['skipNestingCheck'],delete _0x33f3ef['tablePasteChainId'],_0x33f3ef;}function An(_0x499748){return _0x499748['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xcf2467();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2f1913,_0x3b8bad,_0x2ddc0c,_0xb28fec){super(),this['model']=_0x3b8bad,this['view']=_0x2ddc0c,this['commentThreadController']=_0xb28fec,this['_editor']=_0x2f1913,this['_acceptCommand']=_0x2f1913['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f1913['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb0d2c9,_0x355ff6)=>_0xb0d2c9||_0x355ff6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x53df6c=>_0x53df6c&&this['_editor']['model']['canEditAt'](_0x3b8bad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2b3e14=>_0x2b3e14&&this['_editor']['model']['canEditAt'](_0x3b8bad['getRanges']())),this['_pendingAction']=null,_0x2ddc0c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ddc0c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ddc0c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ddc0c,'change:isDirty',()=>{_0x2ddc0c['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 _0x57244e=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x57244e);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x14c3e1{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12e7e4,_0x15a5ab,_0x33f582,_0x5a7e79){super(_0x12e7e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bf644(_0x12e7e4,Mt(_0x12e7e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x15a5ab['authoredAt']),this['bind']('authoredAt')['to'](_0x15a5ab),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',_0x15a5ab,'authoredAt',this,'descriptionParts',(_0x2c842c,_0x384252,_0x31160f)=>{const _0x97d967=_0x31160f['map'](_0x4eb3bc=>Lt(_0x4eb3bc['content']))['join']('.\x20')+'.',_0x558851=_0x15a5ab['aiSource']&&'author'===_0x5a7e79['showAISource']?_0x5a7e79['aiAuthor']['name']:_0x15a5ab['author']['name'],_0x591971=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c842c-0x1,_0x558851,_0x384252?_0x5a7e79['formatDateTime'](_0x384252):'',new DOMParser()['parseFromString'](_0x97d967,'text/html')['body']['textContent']]);return _0x15a5ab['aiSource']&&'pill'===_0x5a7e79['showAISource']?_0x591971+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x591971;}),this['focusables']=new _0x1a2b02(),this['focusTracker']=new _0x43effe(),this['keystrokes']=new _0x1ba41c(),this['focusCycler']=new _0x34bd86({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54627f=>_0x54627f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x15a5ab,this['_localUser']=_0x33f582,this['_config']=_0x5a7e79,_0x5a7e79['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x462de1(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x1c5cd8}=this['_config'];this['commentsListView']=new _0x1c5cd8(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',_0x523a5d=>_0x523a5d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1fc54d,_0x1110c1)=>_0x1fc54d||!!_0x1110c1);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1f9215}=this['_config'],_0x2c97df=new _0x1f9215(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x757d7e=_0x2c97df['commentInputView'];return _0x2c97df['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x757d7e,'value',(_0x5b5bcd,_0x223bcf,_0x255b2f)=>!!_0x255b2f||_0x5b5bcd&&!_0x223bcf),_0x757d7e['on']('submit',(_0x449339,_0x49257d)=>{this['fire']('addComment',_0x49257d),_0x757d7e['editor']['setData']('');}),_0x757d7e['on']('cancel',()=>this['focus']()),_0x757d7e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c97df;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x332ae8,_0x245017,_0x36237c,_0x4a370d){super(_0x332ae8,_0x245017,_0x36237c,_0x4a370d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d1d7c=>_0x2d1d7c&&_0x2d1d7c[0x0]?_0x2d1d7c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1572aa,_0x19b608)=>{let _0x1861c4='';for(const _0x3fc8e8 of _0x1572aa)_0x1861c4+='<p>'+Lt(_0x3fc8e8['content'],_0x3fc8e8['color'])+'</p>';return _0x19b608?_0x1861c4:nt(_0x1861c4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4a370d['SuggestionView'](_0x332ae8,_0x245017,{'formatDateTime':_0x4a370d['formatDateTime'],'showAISource':_0x4a370d['showAISource'],'aiAuthor':_0x4a370d['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 _0x2af1f5=this['bindTemplate'],_0x4e3290=[this['suggestionView']];return this['commentsListView']&&_0x4e3290['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4e3290['push'](this['commentThreadInputView']),_0x4e3290['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2af1f5['if']('isActive','ck-suggestion-wrapper--active'),_0x2af1f5['to']('type',_0x4cff60=>'ck-suggestion-'+_0x4cff60),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':_0x2af1f5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4e3290};}['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 _0x14c3e1{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1f8880,_0x4472b0,_0x4b9fae){super(_0x1f8880),this['_model']=_0x4472b0,this['_config']=_0x4b9fae,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4472b0),this['acceptButton']=this['_createButton'](Mt(_0x1f8880,'Accept\x20suggestion'),_0x115b3b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x1f8880,'Discard\x20suggestion'),_0x1268e3,'ck-suggestion--discard','discardSuggestion','sw');const _0x134f47=!!_0x4472b0['aiSource']&&'author'===_0x4b9fae['showAISource'],_0x4bddda=_0x134f47?this['_createAIUser'](_0x4b9fae['aiAuthor']):_0x4472b0['author'],_0x184109=_0x134f47&&!_0x4b9fae['aiAuthor']['avatar']?_0x46eb6d:void 0x0;this['userView']=new _0x3bcaa8(_0x1f8880,_0x4bddda,this['getUserViewNotificationText'](),_0x184109),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1a2b02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x43effe(),this['keystrokes']=new _0x1ba41c(),this['focusCycler']=new _0x34bd86({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1aab55=>_0x1aab55['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x42fb6b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x42fb6b['innerHTML']=this['description'],this['on']('change:description',(_0x46df89,_0x112573,_0x263caa)=>{_0x42fb6b['innerHTML']=_0x263caa;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3686f1=this['bindTemplate'],_0x4aadf6=[{'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':_0x3686f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3686f1['to']('authoredAt',_0x550bc3=>this['_config']['formatDateTime'](_0x550bc3))}]}]},{'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']&&_0x4aadf6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0xfe6695=new _0x5893a8(this['locale']);_0xfe6695['set']({'icon':_0x546db2,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4aadf6['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0xfe6695]});}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':_0x4aadf6}]};}['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(_0x2eeba0){return new _0x279dde({'id':'ck-ai-author','name':_0x2eeba0['name'],'avatar':_0x2eeba0['avatar'],'color':new _0x19eac1(0x0)});}_createButton(_0x4d121e,_0x3712a9,_0x233fce,_0x44fb42,_0x4ab2c7){const _0x2a96d6=new _0x316114(this['locale']);return _0x2a96d6['set']({'label':_0x4d121e,'icon':_0x3712a9,'tooltip':!0x0,'tooltipPosition':_0x4ab2c7}),_0x2a96d6['extendTemplate']({'attributes':{'class':_0x233fce}}),_0x2a96d6['on']('execute',()=>{this['fire'](_0x44fb42,this['_model']['id']);}),_0x2a96d6;}_setupKeyboardNavigation(){const _0x1c095d=this['element'];this['keystrokes']['listenTo'](_0x1c095d);for(const _0x1c4c50 of this['focusables'])this['focusTracker']['add'](_0x1c4c50['element']),this['keystrokes']['listenTo'](_0x1c4c50['element']);this['keystrokes']['set']('enter',(_0x3cd0a4,_0x1aaf5e)=>{_0x1c095d===_0x3cd0a4['target']&&(this['focusCycler']['focusFirst'](),_0x1aaf5e());}),this['keystrokes']['set']('esc',(_0x5269c3,_0x36d3d3)=>{_0x1c095d!==_0x5269c3['target']&&(this['focus'](),_0x36d3d3());});}},Nn=class extends _0x18ca51{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x7b02ea,_0x460b74,_0x49d8ef,_0xac8168];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e1e37){super(_0x5e1e37),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5378b3=this['editor']['config'];_0x5378b3['define']('trackChanges.SuggestionThreadView',Rn),_0x5378b3['define']('trackChanges.SuggestionView',yn),_0x5378b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5378b3['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x57985c,_0x85df03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x213cb1,_0x164f6a]of this['_handleControllerBuffer']){const _0x3a7dbf=this['_suggestionToController']['has'](_0x213cb1);_0x3a7dbf||_0x164f6a?_0x3a7dbf&&_0x164f6a&&this['_destroyController'](_0x213cb1):this['_initializeController'](_0x213cb1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xac8168)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57985c,_0x85df03);}init(){const _0x581c90=this['editor'],_0x303fc1=_0x581c90['plugins']['get'](an),_0x4824e7=_0x581c90['plugins']['get'](_0x49d8ef),_0x9c3b8b=_0x581c90['plugins']['get'](_0xac8168),_0x1a6cb1=_0x581c90['plugins']['get'](_0x460b74);this['_addUIComponentsToFactory'](),_0x9c3b8b['addSourceCollector'](()=>{const _0x259586=[];for(const [_0x3475d3,_0x386ea1]of Array['from'](this['_suggestionToController'])){const _0xe5bb47=_0x3475d3['getAllAdjacentSuggestions'](),_0x1f2e34=[];for(const _0x222852 of _0xe5bb47){if(!_0x222852['isInContent'])continue;if(_0x222852['isMultiRange']){_0x1f2e34['push'](..._0x222852['getRanges']());continue;}const _0x858fa8=_0x222852['getFirstRange']();if(_0x1f2e34['length']>0x0){const _0x2fcbce=_0x1f2e34[0x0]['getJoined'](_0x858fa8);if(_0x2fcbce){_0x1f2e34[0x0]=_0x2fcbce;continue;}}_0x1f2e34['push'](_0x858fa8);}_0x259586['push']([_0x386ea1['view'],_0x1f2e34]);}return _0x259586;}),this['listenTo'](_0x303fc1,'suggestionLoaded',(_0x48283a,_0xcd35c)=>{this['listenTo'](_0xcd35c,'change:previous',(_0x46f518,_0x30ed69,_0x46976f,_0x5303a6)=>{_0xcd35c['isInContent']&&(null==_0x46976f?(this['_updateController'](_0x5303a6['head']),this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x1)):(this['_updateController'](_0x46976f['head']),null==_0x5303a6&&this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x0)));}),null!==_0xcd35c['previous']?this['_updateController'](_0xcd35c['head']):this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x1);}),this['listenTo'](_0x303fc1,'suggestionUnloaded',(_0x41f7be,_0xe8edc0,_0x4f1cee)=>{this['stopListening'](_0xe8edc0,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe8edc0),this['_suggestionToController']['has'](_0xe8edc0)&&this['_destroyController'](_0xe8edc0),_0x4f1cee&&this['_updateController'](_0x4f1cee['head']);}),this['listenTo'](_0x303fc1,'suggestionChanged',(_0x30146b,_0x55bab7)=>{this['_updateController'](_0x55bab7);}),this['listenTo'](_0x4824e7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a6cb1,'addComment',(_0x5935df,{threadId:_0x4ed5d8,isFromAdapter:_0x25d35b})=>{if(_0x25d35b||!_0x303fc1['hasSuggestion'](_0x4ed5d8))return;const _0x421fce=_0x303fc1['getSuggestion'](_0x4ed5d8);this['_suggestionToController']['get'](_0x421fce)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x1e4bfd=[this['editor']];for(const _0x1df87a of _0x1e4bfd){let _0x5121f5;for(const _0x751d06 in _0x1df87a){const _0xeafcea=_0x751d06,_0x20d6a4=_0x1df87a[_0xeafcea];if('trackChangesLicenseKeyValid'==_0x20d6a4||'trackChangesLicenseKeyInvalid'==_0x20d6a4||'trackChangesLicenseKeyExpired'==_0x20d6a4||'trackChangesLicenseKeyDomainLimit'==_0x20d6a4||'trackChangesLicenseKeyNotAllowed'==_0x20d6a4||'trackChangesLicenseKeyEvaluationLimit'==_0x20d6a4||'trackChangesLicenseKeyUsageLimit'==_0x20d6a4){delete _0x1df87a[_0xeafcea],_0x5121f5=_0x20d6a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5121f5&&_0x1df87a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5121f5&&_0x1df87a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5121f5&&_0x1df87a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x808b8f){const _0x484613=this['_suggestionToController']['get'](_0x808b8f);return _0x484613&&this['editor']['plugins']['get'](_0x49d8ef)['getByInnerView'](_0x484613['view'])||null;}getSuggestionForAnnotation(_0x2409c3){const _0x36d0ad=this['_viewToController']['get'](_0x2409c3['innerView']);return _0x36d0ad?_0x36d0ad['model']:null;}_refreshActiveMarkers(){const _0x2d0fee=this['editor']['plugins']['get'](_0x49d8ef),_0x45b83c=this['editor']['plugins']['get'](an),_0x489b17=Array['from'](_0x2d0fee['activeAnnotations'],_0x2c4064=>_0x2c4064['innerView'])['filter'](_0x48f9c6=>this['_viewToController']['has'](_0x48f9c6)),_0xce1154=[];for(const _0x449c98 of _0x489b17){const _0x3d98cc=this['_viewToController']['get'](_0x449c98)['model']['getAllAdjacentSuggestions']();_0xce1154['push'](..._0x3d98cc['reduce']((_0x39abd4,_0x28b552)=>[..._0x39abd4,..._0x28b552['getMarkerNames']()],[]));}_0x45b83c['activeMarkers']=_0xce1154;}_addUIComponentsToFactory(){const _0x75c6e9=this['editor'],_0x3d4ef3=_0x75c6e9['locale'],_0x2679f5=Mt(_0x3d4ef3,'Track\x20changes'),_0x155876=new _0x3bac41([{'type':'switchbutton','model':new _0x154046({'withText':!0x0,'isToggleable':!0x0,'label':_0x2679f5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x75c6e9['plugins']['has']('TrackChangesPreview')&&_0x155876['addMany']([{'type':'separator'},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2dedbf of _0x155876)if(Sn(_0x2dedbf)){const _0x1ad52e=_0x75c6e9['commands']['get'](_0x2dedbf['model']['commandName']);_0x2dedbf['model']['bind']('isOn','isEnabled')['to'](_0x1ad52e,'value','isEnabled');}_0x75c6e9['ui']['componentFactory']['add']('trackChanges',_0x36efda=>this['_createToolbarButton'](_0x36efda,_0x155876,_0x2679f5)),_0x75c6e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5074c3=>this['_createMenuBarMenu'](_0x5074c3,_0x155876,_0x2679f5));}_createToolbarButton(_0x2541ee,_0x122fc3,_0x596c93){const _0x4e4c2d=_0x4ec29d(_0x2541ee,_0x1c1982),_0x1586e0=this['editor']['commands']['get']('trackChanges');_0x4e4c2d['buttonView']['set']({'tooltip':_0x596c93,'label':_0x596c93,'icon':_0x196b0a}),_0x4e4c2d['buttonView']['bind']('isOn')['to'](_0x1586e0,'value'),_0x4e4c2d['buttonView']['on']('execute',()=>{_0x1586e0['execute'](),this['editor']['editing']['view']['focus']();}),_0x1da8f7(_0x4e4c2d,_0x122fc3,{'role':'menu'});const _0x9e674b=[];for(const _0x50e87f of _0x122fc3)Sn(_0x50e87f)&&_0x9e674b['push'](this['editor']['commands']['get'](_0x50e87f['model']['commandName']));const _0x1770ff=_0x4e4c2d['buttonView'];return _0x1770ff['actionView']['unbind']('isEnabled'),_0x1770ff['arrowView']['unbind']('isEnabled'),_0x1770ff['actionView']['bind']('isEnabled')['to'](_0x1586e0,'isEnabled'),_0x1770ff['arrowView']['bind']('isEnabled')['toMany'](_0x9e674b,'isEnabled',(..._0x10b3a8)=>_0x10b3a8['some'](_0x5e1d95=>_0x5e1d95)),_0x4e4c2d['on']('execute',_0x27d610=>{this['editor']['execute'](_0x27d610['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e4c2d;}_createMenuBarMenu(_0x4b5e06,_0x409cb2,_0x33d270){const _0x3e220b=new _0x68eb0b(_0x4b5e06),_0x35cb56=this['editor']['commands']['get']('trackChanges');_0x3e220b['buttonView']['set']({'label':_0x33d270,'icon':_0x196b0a});const _0x4f964a=new _0x1d0682(_0x4b5e06);for(const _0x3d3df9 of _0x409cb2){if('separator'==_0x3d3df9['type']){_0x4f964a['items']['add'](new _0x4db965(_0x4b5e06));continue;}const _0x401f39=new _0x5786e0(_0x4b5e06,_0x3e220b),_0x547f90=new _0x3df0ff(_0x4b5e06),_0x35ae6d=_0x3d3df9['model'];_0x547f90['bind'](...Object['keys'](_0x35ae6d))['to'](_0x35ae6d),_0x547f90['delegate']('execute')['to'](_0x3e220b),_0x547f90['on']('execute',()=>{this['editor']['execute'](_0x35ae6d['commandName']),this['editor']['editing']['view']['focus']();}),_0x401f39['children']['add'](_0x547f90),_0x4f964a['items']['add'](_0x401f39);}return _0x3e220b['bind']('isEnabled')['to'](_0x35cb56,'isEnabled'),_0x3e220b['panelView']['children']['add'](_0x4f964a),_0x3e220b;}_initializeController(_0x2c3d86){const _0x1e546a=this['editor'],_0x3096cc=_0x1e546a['config'],_0x4f9c14=_0x1e546a['plugins']['get'](_0x49d8ef),_0x431c08=_0x1e546a['plugins']['get'](_0x460b74),_0x32a2bb=_0x1e546a['plugins']['get'](_0xac8168),_0x2c3d3c=_0x1e546a['plugins']['get'](_0x7b02ea)['me'],_0x149a1d=_0x3096cc['get']('trackChanges')['SuggestionThreadView'],_0x313cd7=_0x3096cc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37e8ec,CommentThreadInputView:_0xb0f777}=_0x1e546a['plugins']['get']('CommentsUI');let _0x1bec3f,_0x4aa8f8,_0x160701;this['_annotationViews']['has'](_0x2c3d86['id'])?(_0x4aa8f8=this['_annotationViews']['get'](_0x2c3d86['id']),_0x1bec3f=_0x4aa8f8['mainView']):(_0x1bec3f=new _0x149a1d(_0x1e546a['locale'],_0x2c3d86,_0x2c3d3c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3096cc['get']('comments.editorConfig'),'licenseKey':_0x3096cc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3096cc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3096cc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3096cc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x185254(_0x3096cc['get']('locale'),_0x1e546a['locale']),'CommentView':_0x3096cc['get']('comments')['CommentView'],'CommentsListView':_0x37e8ec,'CommentThreadInputView':_0xb0f777,'SuggestionView':_0x313cd7,'showAISource':_0x3096cc['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x3096cc['get']('trackChanges.aiAuthor'),'name':_0x3096cc['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x1e546a['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x1bec3f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1e546a['editing']['view']['focus']();}),_0x1bec3f['suggestionView']['discardButton']['on']('execute',()=>{_0x1e546a['editing']['view']['focus']();}),_0x4aa8f8=_0x4f9c14['createAnnotationView'](this['editor']['locale'],_0x1bec3f),_0x4aa8f8['bind']('isDirty')['to'](_0x1bec3f,'isDirty'),_0x4aa8f8['bind']('length')['to'](_0x1bec3f),_0x4aa8f8['bind']('type')['to'](_0x1bec3f,'type',_0x16f12e=>'suggestion-'+_0x16f12e),_0x1bec3f['on']('escape',()=>{_0x160701['fire']('escape');}),this['_annotationViews']['set'](_0x2c3d86['id'],_0x4aa8f8));const _0xdeea52=_0x431c08['createCommentThreadController'](_0x2c3d86['commentThread'],_0x1bec3f),_0x4fb85d=new kn(_0x1e546a,_0x2c3d86,_0x1bec3f,_0xdeea52),_0x334d38=_0x2c3d86['getAllAdjacentSuggestions']()['filter'](_0x312e7c=>_0x312e7c['isInContent']);_0x1bec3f['descriptionParts']=_0x1e546a['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x334d38),this['_suggestionToController']['set'](_0x2c3d86,_0x4fb85d),this['_viewToController']['set'](_0x1bec3f,_0x4fb85d);const _0x254a7f=()=>{const _0x212104=[],_0x36a1ea=_0x2c3d86['getAllAdjacentSuggestions']()['filter'](_0x2505a7=>_0x2505a7['isInContent']);for(const _0x4cc42f of _0x36a1ea)_0x212104['push'](..._0x4cc42f['getMarkers']());return _0x23041e(_0x1e546a['editing'],_0x212104);};_0x160701=_0x4f9c14['createAnnotation']({'view':_0x4aa8f8,'target':_0x254a7f,'type':()=>'suggestion-'+_0x4fb85d['view']['type'],'isVisible':!!_0x254a7f()}),_0x431c08['_bindAnnotationToEditors'](_0x1bec3f,_0x160701),_0x4f9c14['add'](_0x160701),_0x32a2bb['registerAnnotation'](_0x160701);}_destroyController(_0x3111da){const _0x9a8673=this['editor']['plugins']['get'](_0x460b74),_0x5d0d44=this['editor']['plugins']['get'](_0x49d8ef),_0x3c0271=this['_suggestionToController']['get'](_0x3111da),_0x47f6e4=_0x3c0271['view'],_0x21d222=_0x5d0d44['getByInnerView'](_0x47f6e4);_0x9a8673['_unbindEditors'](_0x47f6e4),_0x21d222&&_0x5d0d44['remove'](_0x21d222),this['_suggestionToController']['delete'](_0x3111da),this['_viewToController']['delete'](_0x47f6e4),_0x3c0271['destroy']();}_updateController(_0x556979){if(!_0x556979['isInContent']||!this['_suggestionToController']['has'](_0x556979))return;const _0x277489=this['editor']['plugins']['get'](an),_0x44e2ca=this['_suggestionToController']['get'](_0x556979),_0x1df74c=_0x556979['getAllAdjacentSuggestions']();_0x44e2ca['view']['descriptionParts']=_0x277489['descriptionFactory']['getDescriptions'](_0x1df74c);}destroy(){for(const _0x32ae10 of this['_suggestionToController']['keys']())this['_destroyController'](_0x32ae10);for(const _0x59fd9a of this['_annotationViews']['values']())_0x59fd9a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x38a885){return'model'in _0x38a885;}var Mn=class extends _0x18ca51{static get requires(){return[an,Nn,_0x28eb54];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x57fb16){this['editor']['plugins']['get'](an)['adapter']=_0x57fb16;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x13c530){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x13c530);}getSuggestions({skipNotAttached:_0x368c8c=!0x1,toJSON:_0x4f5929=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x368c8c,'toJSON':_0x4f5929});}getSuggestion(_0x27dc97){return this['editor']['plugins']['get'](an)['getSuggestion'](_0x27dc97);}};const On=['Pagination'];var wn=class extends _0x18ca51{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x60e24=this['editor'];if(_0x60e24['config']['define']('trackChangesData.editorCreator',_0xcdc487=>{const _0x5517ed=_0x60e24['model']['document']['getRootNames']()['reduce']((_0x549a2c,_0x15285d)=>(_0x549a2c[_0x15285d]='',_0x549a2c),{});return _0x60e24['constructor']['create'](_0x5517ed,_0xcdc487);}),'function'!=typeof _0x60e24['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f2b37('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x271be7){return vn(this['editor'],!0x0,_0x271be7);}getDataWithDiscardedSuggestions(_0x5c4bb3){return vn(this['editor'],!0x1,_0x5c4bb3);}},Fn=class extends _0x18ca51{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55d5c4){super(_0x55d5c4),this['result']='end',_0x55d5c4['editing']['view']['_overlayModeHint']='auto',_0x55d5c4['_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(_0x7eb90a){return void 0x0!==_0x7eb90a['getRootsAttributes'];}async function vn(_0x52ef25,_0x34cd31,_0x2e57ac){const _0xf3fe1f=_0x5056f4(_0x52ef25,On);if(_0xf3fe1f['plugins']['push'](an,Fn),Bn(_0x52ef25)){_0xf3fe1f['roots']=Object['create'](null);for(const _0x2f7dc3 of _0x52ef25['model']['document']['getRootNames']())_0xf3fe1f['roots'][_0x2f7dc3]={'modelAttributes':_0x52ef25['getRootAttributes'](_0x2f7dc3)};}const _0x5f13d4=document['createDocumentFragment'](),_0x59cbc7=_0x52ef25['config']['get']('trackChangesData')['editorCreator'],_0x11b1b5=await _0x59cbc7(_0xf3fe1f,()=>function(_0x1a0f25){const _0x1481cd=document['createElement']('div');return _0x1a0f25['appendChild'](_0x1481cd),_0x1481cd;}(_0x5f13d4));!function(_0x27f46e,_0x20aa03){const _0x52b53a=_0x27f46e['model']['document']['getRootNames']()['reduce']((_0x5723a0,_0x1f75fd)=>(_0x5723a0[_0x1f75fd]=_0x27f46e['data']['get']({'rootName':_0x1f75fd}),_0x5723a0),{}),_0x519934=_0x27f46e['plugins']['get']('Users')['users']['map'](_0x2dbc4d=>({'id':_0x2dbc4d['id'],'name':_0x2dbc4d['name']})),_0x2618d4=_0x27f46e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1e60=_0x27f46e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbfb569=_0x20aa03['plugins']['get']('Users'),_0x3e71a3=_0x20aa03['plugins']['get']('TrackChangesEditing'),_0x201434=_0x20aa03['plugins']['get']('CommentsRepository');for(const _0x139626 of _0x201434['getCommentThreads']())_0x139626['remove']();for(const _0x503c43 of _0x519934)_0xbfb569['getUser'](_0x503c43['id'])||_0xbfb569['addUser'](_0x503c43);_0xbfb569['me']||_0xbfb569['useAnonymousUser']();for(const _0x33d11a of _0x5c1e60)_0x201434['addCommentThread'](_0x33d11a);for(const _0x474781 of _0x2618d4)_0x3e71a3['addSuggestionData'](_0x474781);_0x20aa03['data']['set'](_0x52b53a);}(_0x52ef25,_0x11b1b5),_0x11b1b5['execute'](_0x34cd31?'acceptAllSuggestions':'discardAllSuggestions');const _0x502a41=Bn(_0x11b1b5)?_0x11b1b5['getFullData'](_0x2e57ac):_0x11b1b5['data']['get'](_0x2e57ac);return await _0x11b1b5['destroy'](),_0x502a41;}var Dn=class extends _0x14c3e1{options;constructor(_0x1d48cb,_0x2fe998){super(_0x1d48cb),this['options']=_0x2fe998,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(_0x1b8b46,_0x424f83){if(!this['element'])return;const _0x45b9ef=[];for(const [_0x1f7328,_0xa09daa]of _0x1b8b46){const _0x474dbd=document['createElement']('div');_0x474dbd['setAttribute']('data-ck-root-name',_0x1f7328),_0x474dbd['className']=_0xa09daa['classes']+'\x20ck-track-changes-preview__root-container',_0x474dbd['innerHTML']=_0xa09daa['content'],_0x45b9ef['push'](_0x474dbd);}_0x424f83(this['element'],_0x45b9ef),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x5240c7{constructor(_0x1e6236){super(_0x1e6236),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x23dc54=this['editor'],_0x3986e3=_0x23dc54['locale'],_0x4d0e2f=_0x23dc54['plugins']['get']('Dialog');let _0x380563;const _0x525495=function(_0x27bfc4){const _0x49ce04={};if('editables'in _0x27bfc4['ui']['view']){for(const [_0x22badc,_0x5aa194]of Object['entries'](_0x27bfc4['ui']['view']['editables']))_0x49ce04[_0x22badc]=_0x5aa194['element'];}else _0x49ce04[_0x27bfc4['model']['document']['getRootNames']()[0x0]]=_0x27bfc4['ui']['view']['editable']['element'];return _0x49ce04;}(_0x23dc54),_0x337ad2=function(_0x7c5190){let _0x1f998b=0x0;for(const _0x5479c8 of Object['values'](_0x7c5190))_0x1f998b=Math['max'](_0x1f998b,_0x5479c8['getBoundingClientRect']()['width']);let _0x469e3f=0x0;for(const _0x24b5b4 of Object['values'](_0x7c5190))_0x469e3f+=_0x24b5b4['getBoundingClientRect']()['height'];const _0x54abe3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x1f998b,'height':Math['min'](_0x469e3f,_0x54abe3)};}(_0x525495);_0x4d0e2f['show']({'id':'finalContentPreview','title':Mt(_0x3986e3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x3986e3,{'dialogRects':_0x337ad2}),'onHide':()=>{_0x380563['detachFromDom']();},'onShow':()=>{_0x23dc54['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21287d=>{const _0xd27430=this['_standarizeRootsData'](_0x21287d,_0x23dc54,_0x525495);_0x4d0e2f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd27430,_0x23dc54['config']['get']('trackChanges.preview.renderFunction'));}),_0x380563=new _0x38e572(_0x3986e3,[_0x4d0e2f['view']]),_0x380563['attachToDom'](),_0x380563['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x23dc54['once']('destroy',()=>{_0x380563['detachFromDom']();});const _0xc142e0=_0x4d0e2f['view']['headerView']['class'];_0x4d0e2f['view']['headerView']['class']=_0xc142e0?_0xc142e0+'\x20ck-reset_all':'ck-reset_all',_0x4d0e2f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4d0e2f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x24948f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1dd1c5=_0x24948f['previewMode'],_0xf4ef02={};if('$labels'===_0x1dd1c5){for(const _0x27ba38 of _0x24948f['getMergeFieldsIds']())_0xf4ef02[_0x27ba38]=_0x24948f['getLabel'](_0x27ba38)||_0x27ba38;}else{const _0x142577='$defaultValues'===_0x1dd1c5?_0x24948f['getDefaultValues']():_0x24948f['getDataSetValues'](_0x1dd1c5,!0x0);for(const _0x540e5a of Object['entries'](_0x142577)){const [_0x5bcf8a,_0xaed2f7]=_0x540e5a;_0xf4ef02[_0x5bcf8a]=null!==_0xaed2f7?_0xaed2f7:_0x24948f['getLabel'](_0x5bcf8a)||_0x5bcf8a;}}return{'mergeFieldsData':_0xf4ef02};}_standarizeRootsData(_0x32a746,_0x138edf,_0x3e01a3){let _0x5947c2;_0x5947c2='string'==typeof _0x32a746?{[_0x138edf['model']['document']['getRootNames']()[0x0]]:_0x32a746}:_0x32a746;const _0x5da773=this['_fixMediaEmbeds'](_0x5947c2,_0x138edf);return function(_0xbd58a2,_0x4d10cc){for(const [_0x69747,_0x14038d]of _0xbd58a2)_0x14038d['classes']=_0x4d10cc[_0x69747]['classList']['value']['replace']('ck-focused','');return _0xbd58a2;}(this['_sortRoots'](_0x138edf)['reduce']((_0x58923d,_0x59cad1)=>(_0x58923d['push']([_0x59cad1,{'content':_0x5da773[_0x59cad1],'classes':''}]),_0x58923d),[]),_0x3e01a3);}['_fixMediaEmbeds'](_0x17a49e,_0x3dade4){if(!_0x3dade4['plugins']['has']('MediaEmbedEditing'))return _0x17a49e;const _0x2d59b3=_0x3dade4['plugins']['get']('MediaEmbedEditing');for(const [_0x4b7b4b,_0x59882b]of Object['entries'](_0x17a49e)){const _0x471cec=document['createElement']('div');_0x471cec['innerHTML']=_0x59882b,_0x471cec['querySelectorAll']('figure.media')['forEach'](_0x209cf6=>{const _0x58c6b4=_0x209cf6['querySelector']('oembed');if(_0x58c6b4){const _0x3101f7=_0x58c6b4['getAttribute']('url');if(_0x3101f7){const _0x41951e=_0x2d59b3['registry']['getMediaViewElement'](new ot(_0x3dade4['editing']['view']['document']),_0x3101f7,{'elementName':'','renderForEditingView':!0x0}),_0x36ba12=document['createElement']('div');_0x36ba12['classList']['add']('ck-media__wrapper'),_0x41951e['render'](_0x36ba12,_0x3dade4['editing']['view']['domConverter']),_0x58c6b4['replaceWith'](_0x36ba12);}}}),_0x17a49e[_0x4b7b4b]=_0x471cec['innerHTML'];}return _0x17a49e;}_sortRoots(_0x1e355a){if(!function(_0x5875b3){return void 0x0!==_0x5875b3['getRootsAttributes'];}(_0x1e355a))return _0x1e355a['model']['document']['getRootNames']();const _0x29d562=[],_0x58c44d=new Map();for(const _0x26b9a8 of _0x1e355a['model']['document']['getRootNames']()){const _0x206468=_0x1e355a['editing']['view']['getDomRoot'](_0x26b9a8)['getClientRects']()['item'](0x0);_0x29d562['push'](_0x26b9a8),_0x58c44d['set'](_0x26b9a8,_0x206468);}return _0x29d562['sort']((_0x37ecb6,_0xd5d471)=>{const _0x486c70=_0x58c44d['get'](_0x37ecb6),_0x47cf81=_0x58c44d['get'](_0xd5d471);return _0x486c70['y']-_0x47cf81['y']||_0x486c70['x']-_0x47cf81['x'];}),_0x29d562;}},Pn=class extends _0x18ca51{static get requires(){return[wn,_0x501745];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cc613){super(_0x4cc613),_0x4cc613['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x4cc613['config']['define']('trackChanges.preview.renderFunction',(_0x1d047b,_0x3cfc1d)=>{for(const _0x5b407d of _0x3cfc1d)_0x1d047b['appendChild'](_0x5b407d);});}};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};
|