@ckeditor/ckeditor5-track-changes 48.1.0 → 48.8.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x1f2d5b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x13a330,_0x47db3d){super(),this['id']=_0x47db3d['id'],this['type']=_0x47db3d['type'],this['subType']=_0x47db3d['subType']||null,this['author']=_0x47db3d['author'],this['creator']=_0x47db3d['creator']||_0x47db3d['author'],this['isExternal']=Boolean(_0x47db3d['attributes']&&_0x47db3d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x47db3d['originalSuggestionId']||null,this['_model']=_0x13a330,this['_onAccept']=_0x47db3d['onAccept'],this['_onDiscard']=_0x47db3d['onDiscard'],this['_onAttributesChange']=_0x47db3d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47db3d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x5bfb2c=this;for(;_0x5bfb2c['previous'];)_0x5bfb2c=_0x5bfb2c['previous'];return _0x5bfb2c;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x22b1b5){this['_markerNames']['add'](_0x22b1b5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x33ec60=>this['_model']['markers']['get'](_0x33ec60))['filter'](_0x14d085=>_0x14d085);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41fbb7=>{for(const _0x3f191c of this['getMarkers']())_0x41fbb7['removeMarker'](_0x3f191c);}),this['_markerNames']['clear']();}['removeMarker'](_0x13a7a4){this['_model']['change'](_0x36a32b=>{_0x36a32b['removeMarker'](_0x13a7a4);}),this['_markerNames']['delete'](_0x13a7a4);}['addRange'](_0x3164bb){const _0x1093bc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x1093bc),this['_model']['change'](_0x4c9e83=>{_0x4c9e83['addMarker'](_0x1093bc,{'range':_0x3164bb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24f985){for(const _0xaed357 of this['getRanges']())if(_0xaed357['isIntersecting'](_0x24f985))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c984b=>_0x5c984b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1a9b9e,_0x2dd252)=>[..._0x1a9b9e,..._0x2dd252['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6765b5=this['getRanges']();if(0x1!=_0x6765b5['length'])return null;const _0x290571=_0x6765b5[0x0],_0x445a18=_0x290571['start']['nodeAfter'],_0x407392=_0x290571['end']['nodeBefore'];return _0x445a18 instanceof _0x5be9d0?_0x445a18!=_0x407392?null:_0x445a18: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 _0x35da52=[];let _0x168a29=this['head'];for(;_0x168a29;)_0x35da52['push'](_0x168a29),_0x168a29=_0x168a29['next'];return _0x35da52;}['setAttribute'](_0x2d3a99,_0x49931b){const _0x5c0689=nt(this['attributes']);it(_0x5c0689,_0x2d3a99,_0x49931b),st(_0x5c0689,this['attributes'])||(this['attributes']=_0x5c0689,this['_onAttributesChange'](_0x5c0689));}['removeAttribute'](_0x443bc5){const _0x25de1b=nt(this['attributes']);rt(_0x25de1b,_0x443bc5),st(_0x25de1b,this['attributes'])||(this['attributes']=_0x25de1b,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 _0x2296a0()['substr'](0x1,0x5);}}function At(_0x4a574b,_0x1fd766,_0x18633d){const _0x190c91=_0x4a574b['t'],t=_0x4a574b['t'];switch(_0x1fd766){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',_0x18633d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x18633d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x18633d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x18633d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x18633d);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',_0x18633d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x18633d);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',_0x18633d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x18633d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x18633d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x18633d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x18633d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x18633d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x18633d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x18633d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x18633d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x18633d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x18633d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x18633d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x18633d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x18633d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x18633d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x18633d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x18633d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x18633d);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'},_0x18633d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x18633d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x18633d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x18633d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x18633d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x18633d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x18633d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x18633d);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x18633d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x18633d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x18633d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x18633d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x18633d);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'},_0x18633d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18633d);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'},_0x18633d);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_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'},_0x18633d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x18633d);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'},_0x18633d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x18633d);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'},_0x18633d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x18633d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x18633d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x18633d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x18633d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x18633d);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'},_0x18633d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x18633d);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x190c91({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x18633d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x190c91({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x18633d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x18633d);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'},_0x18633d);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'},_0x18633d);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'},_0x18633d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1fd766;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2b5349,_0x537a55){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2b5349,this['_locale']=_0x537a55;}['getDescriptions'](_0x531253){const _0x490f7e=[],_0x538846=new Set(),_0xa4852b=new Set();for(let _0x1d6be0=0x0;_0x1d6be0<_0x531253['length'];_0x1d6be0++){const _0x3717ec=_0x531253[_0x1d6be0];if(!_0x3717ec['isInContent'])continue;const _0x3e10d9=this['_handleCustomCallbackDescription'](_0x3717ec);if(_0x3e10d9){if(null!=_0x3717ec['subType']){if(_0x538846['has'](_0x3717ec['subType']))continue;_0x538846['add'](_0x3717ec['subType']);}_0x490f7e['push'](_0x3e10d9);}else{if('attribute'==_0x3717ec['type']){const _0x4083e6=_0x3717ec['data']['key'];if(_0xa4852b['has'](_0x4083e6))continue;_0xa4852b['add'](_0x3717ec['data']['key']),_0x4083e6==Ke?this['_handleRenameSuggestionDescription'](_0x490f7e,_0x3717ec):this['_handleAttributeSuggestionDescription'](_0x490f7e,_0x3717ec);continue;}'insertion'!=_0x3717ec['type']&&'deletion'!=_0x3717ec['type']||this['_handleInsertRemoveSuggestionDescription'](_0x490f7e,_0x3717ec,_0x531253[_0x1d6be0+0x1]);}}return this['_resolveDescriptionItems'](_0x490f7e);}['registerDescriptionCallback'](_0x20ccc8){this['_customCallbacks']['push'](_0x20ccc8);}['registerElementLabel'](_0xa7813c,_0x5d1d4f,_0x249ff9=_0x5c3de4['normal']){'function'==typeof _0xa7813c?_0x18adcc(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7813c,'label':_0x5d1d4f,'priority':_0x249ff9}):this['_itemLabels']['set'](_0xa7813c,_0x5d1d4f);}['registerAttributeLabel'](_0x37bbcb,_0x1ff8e9){this['_attributeLabels']['set'](_0x37bbcb,_0x1ff8e9);}['getItemLabel'](_0x727b73,_0x33ce13=0x1){let _0x1718a7;for(const _0x22cc5b of this['_itemLabelsCallbacks'])if(_0x22cc5b['matchingCallback'](_0x727b73)){_0x1718a7=_0x22cc5b['label'];break;}return _0x1718a7||(_0x1718a7=this['_itemLabels']['get'](_0x727b73['name'])),_0x1718a7?_0x1718a7(_0x33ce13):0x1!==_0x33ce13?_0x33ce13+'\x20'+_0x727b73['name']+'s':''+_0x727b73['name'];}['_addDescriptionItems'](_0x171ddd,_0x2d0863){const _0xa97f7=_0x2d0863['getFirstRange']()['getWalker'](),_0x393485='insertion'==_0x2d0863['type']?'add':'remove';for(const _0xca7ef5 of _0xa97f7){const _0x13a321=_0xca7ef5['item'],_0x2715ba=_0x171ddd[_0x171ddd['length']-0x1];if(_0x13a321['is']('$textProxy'))_0x2715ba&&_0x2715ba['type']['indexOf']('Container')>-0x1&&_0x171ddd['pop'](),_0x2715ba&&'text'==_0x2715ba['type']?_0x2715ba[_0x393485]+=_0x13a321['data']:_0x171ddd['push']({'type':'text','add':'add'==_0x393485?_0x13a321['data']:'','remove':'remove'==_0x393485?_0x13a321['data']:''});else{if(this['_schema']['isObject'](_0x13a321)){const _0xc68260=_0x13a321;if(_0x2715ba&&_0x2715ba['type']['indexOf']('Container')>-0x1&&_0x171ddd['pop'](),'elementEnd'==_0xca7ef5['type'])continue;_0x2715ba&&_0x2715ba['type']==_0x393485+'Object'&&_0x2715ba['element']['name']==_0xc68260['name']?_0x2715ba['quantity']++:_0x171ddd['push']({'type':_0x393485+'Object','element':_0xc68260,'quantity':0x1}),_0xa97f7['skip'](_0x11663e=>!('elementEnd'==_0x11663e['type']&&_0x11663e['item']==_0x13a321));}else{if(this['_schema']['checkChild'](_0x13a321,'$text')||_0x13a321['is']('element','softBreak')){const _0x4bee31=_0x13a321;if('add'==_0x393485&&'elementStart'==_0xca7ef5['type']||'remove'==_0x393485&&'elementEnd'==_0xca7ef5['type'])continue;if(_0x2715ba&&-0x1==_0x2715ba['type']['indexOf']('Container')){'text'==_0x2715ba['type']&&(_0x2715ba[_0x393485]+='\x0a');continue;}let _0x138428;if(_0x138428='add'==_0x393485?_0x4bee31['nextSibling']&&!this['_schema']['isObject'](_0x4bee31['nextSibling'])?_0x4bee31['nextSibling']:null:_0x4bee31['previousSibling']&&!this['_schema']['isObject'](_0x4bee31['previousSibling'])?_0x4bee31['previousSibling']:null,_0x4bee31['isEmpty']||_0x138428&&_0x138428['isEmpty']){const _0x587b05=_0x138428&&_0x138428['isEmpty']?_0x138428:_0x4bee31;_0x2715ba&&_0x2715ba['type']==_0x393485+'EmptyContainer'&&_0x2715ba['element']['name']==_0x587b05['name']?_0x2715ba['quantity']++:_0x171ddd['push']({'type':_0x393485+'EmptyContainer','element':_0x587b05,'quantity':0x1});}else _0x171ddd['push']({'type':_0x393485+'Container','element':_0x4bee31});}}}}}['_resolveDescriptionItems'](_0x4b1ae3){const _0x1626d6=this['_locale'],_0x3d9f8c=[],_0x54af49=[],_0xbbb467=[];for(const _0x396dc2 of _0x4b1ae3)switch(_0x396dc2['type']){case'text':if(_0x396dc2['add']=_0x396dc2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x396dc2['remove']=_0x396dc2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x396dc2['add']&&''!=_0x396dc2['remove']){_0x3d9f8c['push']({'type':'replace','content':At(_0x1626d6,'REPLACE_TEXT',['\x22'+_0x396dc2['remove']+'\x22','\x22'+_0x396dc2['add']+'\x22'])});continue;}if(null!=_0x396dc2['add']['match'](/^ +$/)){_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0',At(_0x1626d6,'ELEMENT_SPACE',_0x396dc2['add']['length']))});continue;}if(null!=_0x396dc2['remove']['match'](/^ +$/)){_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0',At(_0x1626d6,'ELEMENT_SPACE',_0x396dc2['remove']['length']))});continue;}if(''!=_0x396dc2['add']){_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0','\x22'+_0x396dc2['add']+'\x22')});continue;}_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0','\x22'+_0x396dc2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'addContainer':_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Split:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'removeContainer':_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Merge:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'addFormat':_0x54af49['push'](_0x396dc2['key']);continue;case'removeFormat':_0xbbb467['push'](_0x396dc2['key']);continue;default:_0x3d9f8c['push'](_0x396dc2);}if(_0x54af49['length']){const _0x445c7b=_0x54af49['map'](_0x57e6f0=>this['_attributeLabels']['has'](_0x57e6f0)?this['_attributeLabels']['get'](_0x57e6f0):_0x57e6f0)['join'](',\x20');_0x3d9f8c['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x445c7b)});}if(_0xbbb467['length']){const _0x54b9eb=_0xbbb467['map'](_0x29fe5e=>this['_attributeLabels']['has'](_0x29fe5e)?this['_attributeLabels']['get'](_0x29fe5e):_0x29fe5e)['join'](',\x20');_0x3d9f8c['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x54b9eb)});}return _0x3d9f8c;}['_handleCustomCallbackDescription'](_0x281973){for(const _0x2b2fad of this['_customCallbacks']){const _0x531566=_0x2b2fad(_0x281973);if(_0x531566&&'type'in _0x531566)return _0x531566;}}['_handleAttributeSuggestionDescription'](_0x532b99,_0x435824){const _0x33217d=_0x435824['data'],_0x21c270=void 0x0===_0x33217d['newValue']?'removeFormat':'addFormat';_0x532b99['push']({'type':_0x21c270,'key':_0x33217d['key']});}['_handleRenameSuggestionDescription'](_0x168d22,_0x3ffaa7){_0x168d22['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ffaa7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xdad7d6,_0x560261,_0x1c97bc){if(this['_addDescriptionItems'](_0xdad7d6,_0x560261),_0x1c97bc&&_0x1c97bc['getFirstRange']()&&!_0x560261['getFirstRange']()['end']['isEqual'](_0x1c97bc['getFirstRange']()['start'])){const _0xa3bd2c=_0xdad7d6[_0xdad7d6['length']-0x1],_0x34a05a='insertion'==_0x560261['type']?'add':'remove';_0xa3bd2c&&'text'==_0xa3bd2c['type']&&(_0xa3bd2c[_0x34a05a]+='\x0a');}}}class Ct extends _0x48a7fd{['afterInit'](){const _0x555d82=this['editor'],_0x5a913b=_0x555d82['plugins']['get']('TrackChangesEditing');_0x555d82['commands']['get']('showAIAssistant')&&_0x5a913b['enableCommand']('showAIAssistant');}}class yt extends _0x48a7fd{['afterInit'](){const _0x4ef9ee=this['editor'],_0x144d33=_0x4ef9ee['plugins']['get']('TrackChangesEditing');_0x4ef9ee['commands']['get']('toggleAi')&&_0x144d33['enableCommand']('toggleAi');}}class Nt extends _0x48a7fd{['afterInit'](){const _0x44fde0=this['editor'],_0x2f1b7e=_0x44fde0['plugins']['get']('TrackChangesEditing');_0x44fde0['commands']['get']('aiQuickAction')&&_0x2f1b7e['enableCommand']('aiQuickAction');}}class Rt extends _0x48a7fd{['afterInit'](){const _0x461535=this['editor'],_0xb9983e=_0x461535['locale'];if(!_0x461535['plugins']['has']('AlignmentEditing'))return;const _0x5bf499=_0x461535['plugins']['get']('TrackChangesEditing');_0x5bf499['enableDefaultAttributesIntegration']('alignment'),_0x5bf499['descriptionFactory']['registerAttributeLabel']('alignment',At(_0xb9983e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35be34=this['editor'],_0xe808ba=_0x35be34['locale'];_0x35be34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a1b72=>{if('formatBlock'!=_0x3a1b72['type'])return;const {data:_0x1244c8}=_0x3a1b72;if(_0x1244c8&&'alignment'==_0x1244c8['commandName']){const _0x20d720=_0x1244c8['commandParams'][0x0]['value'];return{'type':'format','content':At(_0xe808ba,'*Format:*\x20%0',function(_0x41e59e){switch(_0x41e59e){case'left':return At(_0xe808ba,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0xe808ba,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0xe808ba,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0xe808ba,'FORMAT_JUSTIFY_TEXT');}}(_0x20d720))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x48a7fd{['afterInit'](){const _0xf7aa45=this['editor'],_0x2b313f=_0xf7aa45['plugins']['get']('TrackChangesEditing'),_0x7dad33=_0xf7aa45['locale'];for(const _0x27bf5d of St){if(!_0xf7aa45['plugins']['has'](_0x27bf5d))continue;const _0x5bd31b=_0x27bf5d['slice'](0x0,-0x7)['toLowerCase'](),_0x4265d0='FORMAT_'+_0x5bd31b['toUpperCase']();_0x2b313f['enableDefaultAttributesIntegration'](_0x5bd31b),_0x2b313f['descriptionFactory']['registerAttributeLabel'](_0x5bd31b,At(_0x7dad33,_0x4265d0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c3ff=this['editor'],_0x5456e1=_0x17c3ff['locale'],_0x3cfc38=_0x17c3ff['plugins']['get']('TrackChangesEditing');function _0x2c0d2c(_0x15f260,_0xd32d10){_0x3cfc38['descriptionFactory']['registerDescriptionCallback'](_0x660bd7=>{if('formatInline'!=_0x660bd7['type'])return;const {data:_0x561d9a}=_0x660bd7;return _0x561d9a&&_0x561d9a['commandName']===_0x15f260?_0x561d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5456e1,'*Format:*\x20%0',_0xd32d10)}:{'type':'format','content':At(_0x5456e1,'*Remove\x20format:*\x20%0',_0xd32d10)}:void 0x0;});}_0x2c0d2c('bold',At(_0x5456e1,'FORMAT_BOLD')),_0x2c0d2c('italic',At(_0x5456e1,'FORMAT_ITALIC')),_0x2c0d2c('underline',At(_0x5456e1,'FORMAT_UNDERLINE')),_0x2c0d2c('code',At(_0x5456e1,'FORMAT_CODE')),_0x2c0d2c('strikethrough',At(_0x5456e1,'FORMAT_STRIKETHROUGH')),_0x2c0d2c('subscript',At(_0x5456e1,'FORMAT_SUBSCRIPT')),_0x2c0d2c('superscript',At(_0x5456e1,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x48a7fd{['afterInit'](){const _0x122783=this['editor'],_0x23fe27=_0x122783['locale'];if(!_0x122783['plugins']['has']('BlockQuoteEditing'))return;const _0x956c02=_0x122783['plugins']['get']('TrackChangesEditing'),_0x173179=this['editor']['commands']['get']('blockQuote');_0x956c02['enableCommand']('blockQuote',(_0x3d7b18,_0x47da9f={})=>{const _0x586239=this['editor']['model']['document']['selection'],_0x31ada7=_0x47da9f&&void 0x0!==_0x47da9f['forceValue']?_0x47da9f['forceValue']:!_0x173179['value'];let _0xb95f8f=[];if(_0x31ada7){const _0x464c7e=Array['from'](_0x586239['getSelectedBlocks']())['filter'](_0x489f33=>wt(_0x489f33)||function(_0x2f2553,_0x31fb2f){const _0x385981=_0x31fb2f['checkChild'](_0x2f2553['parent'],'blockQuote'),_0x5c2bba=_0x31fb2f['checkChild'](['$root','blockQuote'],_0x2f2553);return _0x385981&&_0x5c2bba;}(_0x489f33,this['editor']['model']['schema']));_0xb95f8f=Tt(_0x464c7e,_0x122783['model']);}else{const _0x415c43=Array['from'](_0x586239['getSelectedBlocks']())['filter'](_0x52bf4d=>wt(_0x52bf4d));_0xb95f8f=Tt(_0x415c43,_0x122783['model']);}_0x122783['model']['change'](()=>{for(const _0x833da5 of _0xb95f8f)_0x956c02['markBlockFormat'](_0x833da5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x31ada7}]});});}),_0x956c02['descriptionFactory']['registerDescriptionCallback'](_0x221eef=>{const {data:_0x22b93b}=_0x221eef;if(_0x22b93b&&'blockQuote'==_0x22b93b['commandName']){const _0xe1062c=At(_0x23fe27,'ELEMENT_BLOCK_QUOTE');return _0x22b93b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x23fe27,'*Set\x20format:*\x20%0',_0xe1062c)}:{'type':'format','content':At(_0x23fe27,'*Remove\x20format:*\x20%0',_0xe1062c)};}});}}function wt(_0x4ff510){return'blockQuote'==_0x4ff510['parent']['name'];}class Bt extends _0x48a7fd{['afterInit'](){const _0x126232=this['editor'],_0x294167=_0x126232['locale'],_0x2c2b56=_0x126232['plugins']['get']('TrackChangesEditing');_0x126232['plugins']['has']('BookmarkEditing')&&(_0x2c2b56['enableCommand']('insertBookmark'),_0x2c2b56['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c2b56['descriptionFactory']['registerDescriptionCallback'](_0x472afc=>{if('insertion'!=_0x472afc['type']&&'deletion'!=_0x472afc['type']&&'attribute'!=_0x472afc['type'])return;const _0x547feb=_0x472afc['getContainedElement']();if(null==_0x547feb)return;if(!_0x547feb['is']('element','bookmark'))return;const _0x250eb2=_0x547feb['getAttribute']('bookmarkId');if('insertion'==_0x472afc['type'])return{'type':'insertion','content':At(_0x294167,'*Insert:*\x20%0','\x22'+_0x250eb2+'\x22\x20'+At(_0x294167,'ELEMENT_BOOKMARK'))};if('deletion'==_0x472afc['type'])return{'type':'deletion','content':At(_0x294167,'*Remove:*\x20%0','\x22'+_0x250eb2+'\x22\x20'+At(_0x294167,'ELEMENT_BOOKMARK'))};const {data:_0x2046be}=_0x472afc;if(!_0x2046be||'bookmarkId'!=_0x2046be['key'])return;return{'type':'format','content':At(_0x294167,'*Set\x20bookmark:*\x20%0','\x22'+_0x2046be['newValue']+'\x22')};}));}}class Ft extends _0x48a7fd{['afterInit'](){const _0x2a2bb2=this['editor'];_0x2a2bb2['plugins']['has']('CaseChange')&&(_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x48a7fd{['afterInit'](){const _0x4dc01a=this['editor'];_0x4dc01a['commands']['get']('ckbox')&&_0x4dc01a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x48a7fd{['afterInit'](){const _0x57dc6c=this['editor'];if(!_0x57dc6c['plugins']['has']('CodeBlock'))return;const _0xc80236=_0x57dc6c['plugins']['get']('TrackChangesEditing'),_0x57f11d=_0x57dc6c['locale'],_0x3d5124=_0x57dc6c['config']['get']('codeBlock')['languages'],_0x11a342=_0x57dc6c['commands']['get']('codeBlock');_0xc80236['enableCommand']('indentCodeBlock'),_0xc80236['enableCommand']('outdentCodeBlock'),_0xc80236['enableCommand']('codeBlock',(_0x2ed294,_0x55c6fb={})=>{const _0x2ebbb7=_0x57dc6c['model'],_0x20903f=_0x57dc6c['model']['document']['selection'],_0xa00772=_0x55c6fb&&void 0x0!==_0x55c6fb['forceValue']?_0x55c6fb['forceValue']:!_0x11a342['value'];let _0x47f3b3;_0x55c6fb['language']||(_0x55c6fb['language']=_0x3d5124[0x0]['language']),_0x47f3b3=_0xa00772?Array['from'](_0x20903f['getSelectedBlocks']())['filter'](_0x2d6b9f=>xt(_0x2d6b9f)||function(_0x3983ac,_0x3bf6b3){if(_0x3983ac['is']('rootElement')||_0x3bf6b3['isLimit'](_0x3983ac))return!0x1;return _0x3bf6b3['checkChild'](_0x3983ac['parent'],'codeBlock');}(_0x2d6b9f,_0x2ebbb7['schema'])):Array['from'](_0x20903f['getSelectedBlocks']())['filter'](_0x380a46=>xt(_0x380a46));const _0x17d483=Tt(_0x47f3b3,_0x2ebbb7);_0x2ebbb7['change'](()=>{for(const _0x2fe966 of _0x17d483)_0xc80236['markBlockFormat'](_0x2fe966,{'commandName':'codeBlock','commandParams':[{..._0x55c6fb,'forceValue':_0xa00772}],'formatGroupId':'blockName'});});}),(_0xc80236['descriptionFactory']['registerElementLabel']('codeBlock',_0xffda2a=>At(_0x57f11d,'ELEMENT_CODE_BLOCK',_0xffda2a)),_0xc80236['descriptionFactory']['registerDescriptionCallback'](_0x3cb0fd=>{if('formatBlock'!=_0x3cb0fd['type'])return;const _0x21bb7f=_0x57f11d['t'],{data:_0x16c2ae}=_0x3cb0fd;if(!_0x16c2ae||'codeBlock'!=_0x16c2ae['commandName'])return;const _0x5b40f1=_0x16c2ae['commandParams'][0x0]['language'],_0x1091ce=_0x21bb7f(_0x3d5124['find'](_0x413855=>_0x413855['language']===_0x5b40f1)['label'])['toLowerCase']();return _0x16c2ae['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x57f11d,'*Set\x20format:*\x20%0',At(_0x57f11d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1091ce+')')}:{'type':'format','content':At(_0x57f11d,'*Remove\x20format:*\x20%0',At(_0x57f11d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x15ba15){return'codeBlock'==_0x15ba15['name'];}class Pt extends _0x48a7fd{['afterInit'](){const _0x585c77=this['editor'];if(!_0x585c77['plugins']['has']('CommentsEditing'))return;_0x585c77['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x48a7fd{static get['requires'](){return[at];}['init'](){const _0x3c1b8a=this['editor'],_0x2a6be8=_0x3c1b8a['plugins']['get']('TrackChangesEditing');_0x2a6be8['enableCommand']('delete');const _0x5cc4c9=_0x3c1b8a['commands']['get']('deleteForward');_0x2a6be8['enableCommand']('deleteForward',(_0x498640,_0x1fc7dd={})=>{const _0x247a95=_0x3c1b8a['model']['createSelection'](_0x3c1b8a['model']['document']['selection']);_0x247a95['isCollapsed']&&_0x3c1b8a['model']['modifySelection'](_0x247a95,{'direction':'forward','unit':_0x1fc7dd['unit']});const _0x3d40d1=_0x247a95['getFirstRange'](),_0x226efa=_0x211ae6['fromRange'](_0x3d40d1);let _0x3147b8;_0x498640(_0x1fc7dd),_0x3147b8='$graveyard'==_0x226efa['root']['rootName']?_0x3c1b8a['model']['createRange'](_0x3d40d1['start']):_0x3c1b8a['model']['createRange'](_0x226efa['start'],_0x226efa['end']),_0x226efa['detach'](),_0x3c1b8a['model']['enqueueChange'](_0x5cc4c9['buffer']['batch'],_0x19f18e=>{_0x5cc4c9['buffer']['lock'](),_0x19f18e['setSelection'](_0x19f18e['createRange'](_0x3147b8['end'])),_0x5cc4c9['buffer']['unlock']();});});}}class Gt extends _0x48a7fd{['afterInit'](){const _0x345f04=this['editor'];if(!_0x345f04['plugins']['has']('ListEditing'))return;const _0x1f7640=_0x345f04['locale'],_0x46622f=_0x345f04['plugins']['get']('TrackChangesEditing'),_0xdb3543=_0x345f04['plugins']['has']('TodoListEditing'),_0x5ab573=!!_0x345f04['config']['get']('list.multiBlock');function _0x3da52d(_0x2a30cc){return{'type':'format','content':''+At(_0x1f7640,'*Set\x20format:*\x20%0',_0x2a30cc)};}function _0x1be26b(_0x74debf){return{'type':'format','content':''+At(_0x1f7640,'*Remove\x20format:*\x20%0',_0x74debf)};}_0x46622f['enableDefaultAttributesIntegration']('numberedList'),_0x46622f['enableDefaultAttributesIntegration']('bulletedList'),_0x46622f['enableDefaultAttributesIntegration']('customNumberedList'),_0x46622f['enableDefaultAttributesIntegration']('customBulletedList'),_0x46622f['enableDefaultAttributesIntegration']('indentList'),_0x46622f['enableDefaultAttributesIntegration']('outdentList'),_0x46622f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46622f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ab573&&(_0x46622f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46622f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdb3543&&(_0x46622f['enableDefaultAttributesIntegration']('todoList'),_0x46622f['enableDefaultAttributesIntegration']('checkTodoList'),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x647879=>{const {data:_0x4a4083}=_0x647879;if(_0x4a4083&&'todoListChecked'==_0x4a4083['key'])return{'type':'format','content':_0x4a4083['newValue']?At(_0x1f7640,'*Check\x20item*'):At(_0x1f7640,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x26d020=>{if(_0x26d020['batch']['isUndo'])return!0x1;let _0xc6ab9f=!0x1;const _0x31ff68=_0x46622f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc70ead=>'todoListChecked'===_0x46622f['_getAttributeKey'](_0xc70ead));for(const _0x458e59 of _0x31ff68){'todo'!=_0x458e59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46622f['_findSuggestions'](_0x458e59['getFirstRange'](),'attribute')['find'](_0xb389e8=>'listType'===_0x46622f['_getAttributeKey'](_0xb389e8['suggestion']))||(_0x26d020['removeMarker'](_0x458e59['getFirstMarker']()),_0xc6ab9f=!0x0));}return _0xc6ab9f;})),_0x46622f['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x1f7640,'FORMAT_INDENT'));const _0x41fcb1={'type':'format','content':''};_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x1ed0e9=>{const {data:_0x4427a9}=_0x1ed0e9;if(!_0x4427a9||'listType'!=_0x4427a9['key'])return;let _0x173fae=_0x1ed0e9['head'];for(;_0x173fae;){if(_0x173fae['data']&&(('listStyle'==_0x173fae['data']['key']||'listMarkerStyle'==_0x173fae['data']['key'])&&(_0x173fae['data']['newValue']&&'default'!=_0x173fae['data']['newValue']||'default'!=_0x173fae['data']['oldValue']&&!_0x4427a9['newValue'])||!_0x5ab573&&_0x173fae['data']['key']==Ke))return _0x41fcb1;_0x173fae=_0x173fae['next'];}if(null==_0x4427a9['newValue'])switch(_0x4427a9['oldValue']){case'bulleted':return _0x1be26b(At(_0x1f7640,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1be26b(At(_0x1f7640,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1be26b(At(_0x1f7640,'ELEMENT_TODO_LIST'));}switch(_0x4427a9['newValue']){case'bulleted':return _0x3da52d(At(_0x1f7640,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3da52d(At(_0x1f7640,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3da52d(At(_0x1f7640,'ELEMENT_TODO_LIST'));}}),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x5806eb=>{const {data:_0x30509d}=_0x5806eb;if(_0x30509d&&'listIndent'==_0x30509d['key'])return null==_0x30509d['newValue']||null==_0x30509d['oldValue']&&0x0==_0x30509d['newValue']?_0x41fcb1:void 0x0;}),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x5a4802=>{if('attribute'!=_0x5a4802['type'])return;const {data:_0x219ee0}=_0x5a4802;if(!_0x219ee0||'listItemId'!=_0x219ee0['key'])return;const _0x1bfa9a=Ht(_0x5a4802);return'newValue'==_0x1bfa9a?{'type':'format','content':At(_0x1f7640,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bfa9a?{'type':'format','content':At(_0x1f7640,'*Split:*\x20list\x20item')}:_0x41fcb1;}),_0x345f04['model']['document']['registerPostFixer'](_0x20d85f=>this['listItemIdFixer'](_0x20d85f)),_0x345f04['model']['document']['registerPostFixer'](_0x2062c8=>this['noTrackChangesFixer'](_0x2062c8)),_0x345f04['model']['document']['on']('change:data',(_0x14b36f,_0x520f9b)=>{if(_0x520f9b['isUndo']||!_0x520f9b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4e6737){if(_0x4e6737['batch']['isUndo']||!_0x4e6737['batch']['isLocal'])return!0x1;let _0x8fd76a=!0x1;const _0x5cdf0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x500d74=>_0x500d74['data']&&'listItemId'==_0x500d74['data']['key'])['filter'](_0xf093f7=>_0xf093f7['data']['newValue']&&_0xf093f7['data']['oldValue']);for(const _0x340cff of _0x5cdf0b)Ht(_0x340cff)||(_0x4e6737['removeMarker'](_0x340cff['getFirstMarker']()),_0x8fd76a=!0x0);return _0x8fd76a;}['noTrackChangesFixer'](_0x2980d8){if(_0x2980d8['batch']['isUndo']||!_0x2980d8['batch']['isLocal'])return!0x1;const _0xc6865e=this['editor']['model']['document']['differ'],_0xa2798a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa2798a['trackChangesCommand']['value'])return!0x1;let _0x4cce13=!0x1;const _0x2d7663=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x189737=_0xc6865e['getChanges']()['filter'](_0x51830b=>'attribute'==_0x51830b['type'])['filter'](_0x51f5cc=>_0x2d7663['has'](_0x51f5cc['attributeKey']));if(0x0==_0x189737['length'])return _0x4cce13;const _0xff2117=new Set(_0xc6865e['getMarkersToAdd']()['filter'](_0x3ed93b=>{if(!_0x3ed93b['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x38f695=_0x2cca50(_0x3ed93b['name'])['subType']['split']('|')[0x0];return _0x2d7663['has'](_0x38f695);})['map'](_0x537c8=>_0x2cca50(_0x537c8['name'])['id']));for(const _0x450ee6 of _0x189737){const _0x11da90=_0xa2798a['_findSuggestions'](_0x450ee6['range'],'attribute')['filter'](_0x1a041d=>{if(_0x1a041d['meta']['isNextTo'])return!0x1;if(_0xff2117['has'](_0x1a041d['suggestion']['id']))return!0x1;const _0x4ad724=_0xa2798a['_getAttributeKey'](_0x1a041d['suggestion']);return _0x2d7663['has'](_0x4ad724);})['map'](_0x557a7c=>_0x557a7c['suggestion']);if(_0x11da90['length']){for(const _0x4bad55 of _0x11da90)_0x2980d8['removeMarker'](_0x4bad55['getFirstMarker']());_0x4cce13=!0x0;}}return _0x4cce13;}['assureChains'](){const _0x2ce795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33d247=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2454f8;const _0x1c1dc2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x98f50d=>{if(_0x98f50d['data']['oldRange']||!_0x98f50d['data']['newRange'])return null;if(!_0x98f50d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ac16f}=_0x2cca50(_0x98f50d['name']);if(!_0x2ce795['hasSuggestion'](_0x5ac16f))return null;const _0xeeb5b0=_0x2ce795['getSuggestion'](_0x5ac16f);return _0x33d247['includes'](_0xeeb5b0['data']['key']);})['map'](_0x4dcb69=>{const {id:_0x278a3e}=_0x2cca50(_0x4dcb69['name']),_0x43d4b1=_0x2ce795['getSuggestion'](_0x278a3e);return _0x2454f8=_0x43d4b1['attributes']['groupId'],_0x43d4b1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1c1dc2['size'])return;const _0x5590a6=_0x2ce795['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x593e3e=>'attribute'==_0x593e3e['type']&&_0x593e3e['data']&&_0x33d247['includes'](_0x593e3e['data']['key'])&&_0x593e3e['attributes']['groupId']!=_0x2454f8)['map'](_0x2c2f56=>({'listItem':_0x2c2f56['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c2f56['attributes']['groupId']})),_0x2efa2d=new Set();for(const {groupId:_0x1c5fc8,listItem:_0x100de2}of _0x5590a6)_0x1c1dc2['has'](_0x100de2)&&_0x2efa2d['add'](_0x1c5fc8);for(const _0x431333 of _0x2ce795['getSuggestions']())_0x2efa2d['has'](_0x431333['attributes']['groupId'])&&_0x431333['setAttribute']('groupId',_0x2454f8);}['_supportLegacySuggestions'](){const _0x3a86bd=this['editor'],_0x5a311d=_0x3a86bd['locale'],_0x57ffe9=_0x3a86bd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57ffe9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54fbe0,_0x130615){const _0x4c81f0=[];for(let _0x186561 of _0x54fbe0)_0x186561['start']['nodeAfter']===_0x186561['end']['parent']&&(_0x186561=_0x3a86bd['model']['createRange'](_0x3a86bd['model']['createPositionAt'](_0x186561['start']['nodeAfter'],0x0))),_0x4c81f0['push'](_0x186561);_0x3a86bd['model']['change'](_0x298b40=>{const _0x3b3723=_0x3a86bd['model']['document']['selection'],_0x3233f6=Array['from'](_0x3b3723['getRanges']())['map'](_0x2d6c15=>_0x211ae6['fromRange'](_0x2d6c15));_0x298b40['setSelection'](_0x4c81f0),_0x3a86bd['commands']['get'](_0x130615['commandName'])['refresh'](),_0x130615['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a86bd['execute'](_0x130615['commandName'],..._0x130615['commandParams']),_0x298b40['setSelection'](_0x3233f6);for(const _0x24da3d of _0x3233f6)_0x24da3d['detach']();});}),_0x57ffe9['descriptionFactory']['registerElementLabel'](function(_0xf3ad7f){const _0x2ddf37=!_0x3a86bd['model']['schema']['isObject'](_0xf3ad7f),_0x37361f=_0xf3ad7f['previousSibling'],_0x5ec09f=_0xf3ad7f['nextSibling'],_0x4df96c=_0xf3ad7f['getAttribute']('listItemId'),_0x110555=!_0x37361f||_0x37361f['getAttribute']('listItemId')!==_0x4df96c,_0x21dd84=!_0x5ec09f||_0x5ec09f['getAttribute']('listItemId')!==_0x4df96c;return _0x2ddf37&&Boolean(_0x4df96c)&&_0x110555&&_0x21dd84;},_0x74957=>At(_0x5a311d,'ELEMENT_LIST_ITEM',_0x74957));}['_registerLegacyDescription'](){const _0x4bdaa3=this['editor'],_0x2b2dd9=_0x4bdaa3['locale'];function _0x34583c(_0x4d62a8){const _0x5c580d=_0x4bdaa3['commands']['get']('bulletedList')['value'],_0x12c28f=_0x4bdaa3['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d62a8?_0x5c580d:_0x12c28f;}_0x4bdaa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x24c55b){if('formatBlock'!=_0x24c55b['type'])return;const {data:_0x3af056}=_0x24c55b;if(!_0x3af056)return;let _0x48e636,_0x19fb6a,_0x42d18a,_0x297589;switch(_0x3af056['commandName']){case'bulletedList':_0x42d18a=_0x3af056['commandParams'][0x0]['forceValue'],_0x297589=_0x34583c(_0x3af056['commandName']),_0x48e636=_0x42d18a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x297589&&_0x4bdaa3['config']['get']('list.multiBlock')||(_0x48e636='*Change\x20to:*\x20%0'),_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42d18a=_0x3af056['commandParams'][0x0]['forceValue'],_0x297589=_0x34583c(_0x3af056['commandName']),_0x48e636=_0x42d18a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x297589&&_0x4bdaa3['config']['get']('list.multiBlock')||(_0x48e636='*Change\x20to:*\x20%0'),_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48e636='*Indent:*\x20%0',_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48e636=function(_0x2ca1ef){const _0x199634=_0x2ca1ef['getFirstRange']();let _0x1539f0=_0x199634['start']['nodeAfter'];for(;_0x1539f0&&_0x199634['containsItem'](_0x1539f0);){if(_0x1539f0['getAttribute']('listIndent')>0x0)return!0x1;_0x1539f0=_0x1539f0['nextSibling'];}return!0x0;}(_0x24c55b)?At(_0x2b2dd9,'*Format:*\x20remove\x20from\x20%0',At(_0x2b2dd9,function(_0x5beb35){return'ELEMENT_'+_0x5beb35['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x24c55b))):At(_0x2b2dd9,'*Outdent:*\x20%0',At(_0x2b2dd9,'ELEMENT_LIST_ITEM')),_0x19fb6a={'type':'format','content':_0x48e636};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3af056['multipleBlocks']&&(_0x48e636='*Merge:*\x20%0',_0x19fb6a={'type':'deletion','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_LIST_ITEM'))});}return _0x19fb6a;});}}function Ht(_0x559600){let _0x1bb966=_0x559600['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1bb966;){const _0x10aaed=_0x1bb966['getAttribute']('listItemId');if(!_0x10aaed)return!0x1;if(_0x10aaed==_0x559600['data']['newValue'])return'newValue';if(_0x10aaed==_0x559600['data']['oldValue'])return'oldValue';_0x1bb966=_0x1bb966['previousSibling'];}return!0x1;}class $t extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3f0050=this['editor']['config']['get']('list.properties'),_0x507272=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f0050['styles']&&_0x507272['enableDefaultAttributesIntegration']('listStyle'),_0x3f0050['reversed']&&_0x507272['enableDefaultAttributesIntegration']('listReversed'),_0x3f0050['startIndex']&&_0x507272['enableDefaultAttributesIntegration']('listStart');const _0x4d58d3={'type':'format','content':''};_0x507272['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2907f8=this['editor']['locale'];_0x507272['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x2907f8,'FORMAT_LIST_REVERSED')),_0x507272['descriptionFactory']['registerDescriptionCallback'](_0x2b12f1=>{const {data:_0x3389b3}=_0x2b12f1;if(_0x3389b3&&'listReversed'==_0x3389b3['key'])return null==_0x3389b3['newValue']||0x0==_0x3389b3['newValue']&&null==_0x3389b3['oldValue']?_0x4d58d3:void 0x0;}),_0x507272['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x2907f8,'FORMAT_LIST_START')),_0x507272['descriptionFactory']['registerDescriptionCallback'](_0x10c0f0=>{const {data:_0x5563a3}=_0x10c0f0;if(_0x5563a3&&'listStart'==_0x5563a3['key'])return null==_0x5563a3['newValue']||0x1==_0x5563a3['newValue']&&null==_0x5563a3['oldValue']?_0x4d58d3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x223412=>{if(_0x223412['batch']['isUndo'])return!0x1;let _0xb35447=!0x1;const _0x2a7d46=_0x507272['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x289506=>{const _0x25bfc9=_0x507272['_getAttributeKey'](_0x289506);return'listStart'==_0x25bfc9||'listReversed'==_0x25bfc9;});for(const _0x40103f of _0x2a7d46){const _0x546410=_0x40103f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x546410||'customNumbered'==_0x546410)continue;_0x507272['_findSuggestions'](_0x40103f['getFirstRange'](),'attribute')['find'](_0xd644bf=>'listType'==_0x507272['_getAttributeKey'](_0xd644bf['suggestion']))||(_0x223412['removeMarker'](_0x40103f['getFirstMarker']()),_0xb35447=!0x0);}return _0xb35447;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a8e03){const _0x6d8896=this['editor']['locale'],{data:_0x4442c6}=_0x1a8e03,_0x4bc916={'type':'format','content':''};if(!_0x4442c6||'listStyle'!=_0x4442c6['key'])return;if(!_0x4442c6['oldValue'])return'default'==_0x4442c6['newValue']?_0x4bc916:{'type':'format','content':''+At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['newValue'])))};if(!_0x4442c6['newValue']){if('default'==_0x4442c6['oldValue'])return _0x4bc916;let _0x1b9939=_0x1a8e03['head'];for(;_0x1b9939;){if(_0x1b9939['data']&&'listType'==_0x1b9939['data']['key']&&_0x1b9939['data']['newValue'])return _0x4bc916;_0x1b9939=_0x1b9939['next'];}return{'type':'format','content':''+At(_0x6d8896,'*Remove\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['oldValue'])))};}if('default'!=_0x4442c6['newValue'])return{'type':'format','content':''+At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['newValue'])))};let _0x58bd00=_0x1a8e03['head'];for(;_0x58bd00;){if(_0x58bd00['data']&&'listType'==_0x58bd00['data']['key']&&_0x58bd00['data']['newValue']&&_0x58bd00['data']['oldValue'])return _0x4bc916;_0x58bd00=_0x58bd00['next'];}return{'type':'format','content':At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,'ELEMENT_'+_0x1a8e03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ea31f=this['editor'],_0x47123c=_0x1ea31f['locale'];_0x1ea31f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef50a=>{if('formatBlock'!=_0x4ef50a['type'])return;const {data:_0x32ad4d}=_0x4ef50a;if(!_0x32ad4d)return;let _0x26a6ad,_0x280910;switch(_0x32ad4d['commandName']){case'listStyle':_0x26a6ad='*Change\x20to:*\x20%0',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad,At(_0x47123c,this['_getTranslationKeyForListStyle'](_0x32ad4d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26a6ad=_0x32ad4d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad)};break;case'listStart':_0x26a6ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad,_0x32ad4d['commandParams'][0x0]['startIndex'])};}return _0x280910;});}['_getTranslationKeyForListStyle'](_0x153bec){return'ELEMENT_'+function(_0xbd4582){if(Wt['includes'](_0xbd4582))return'bulleted';if(Vt['includes'](_0xbd4582))return'numbered';return null;}(_0x153bec)['toUpperCase']()+'_LIST_'+_0x153bec['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x48a7fd{['afterInit'](){const _0x13f0c8=this['editor'];_0x13f0c8['commands']['get']('emoji')&&_0x13f0c8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x48a7fd{static get['requires'](){return[lt];}['init'](){const _0x39577c=this['editor'],_0x5221d7=_0x39577c['plugins']['get']('TrackChangesEditing'),_0x176721=_0x39577c['commands']['get']('enter');_0x5221d7['enableCommand']('enter',()=>{_0x39577c['model']['change'](_0x37c001=>{const _0x362887=_0x39577c['model']['document']['selection'],_0x1c821e=_0x362887['getFirstPosition'](),_0x2c693f=_0x211ae6['fromRange'](_0x362887['getFirstRange']());if(_0x176721['enterBlock'](_0x37c001)){const _0x5ca482=_0x39577c['model']['createPositionAt'](_0x1c821e['parent']['nextSibling'],0x0),_0x59b713=_0x37c001['createRange'](_0x1c821e,_0x5ca482);_0x5221d7['markInsertion'](_0x59b713);}else _0x37c001['setSelection'](_0x37c001['createRange'](_0x2c693f['end']));_0x2c693f['detach'](),_0x176721['fire']('afterExecute',{'writer':_0x37c001});});});}}class Kt extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x473b61=this['editor']['plugins']['get']('TrackChangesEditing');_0x473b61['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x473b61['enableCommand']('findNext'),_0x473b61['enableCommand']('findPrevious'),_0x473b61['enableCommand']('replace'),_0x473b61['enableCommand']('replaceAll');}['handleFindCommand'](_0xf0c9fb,_0x169d3f,_0x175a5a={}){const _0x40776e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf0c9fb(_0x2924b6=>{let _0x15c665=('string'==typeof _0x169d3f?_0x40776e['findByTextCallback'](_0x169d3f,_0x175a5a):_0x169d3f)(_0x2924b6);Array['isArray'](_0x15c665)&&(_0x15c665={'results':_0x15c665,'searchText':'string'==typeof _0x169d3f?_0x169d3f:''});const _0x2c2740=_0x15c665['results']['filter'](_0x2a24fa=>!0x1===this['_isInDeletionRange'](_0x2a24fa,_0x2924b6['item']));return{..._0x15c665,'results':_0x2c2740};},_0x175a5a);}['_isInDeletionRange'](_0x2dced1,_0x2d13a2){const _0x3144e0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d13a2,_0x2dced1['start']),this['editor']['model']['createPositionAt'](_0x2d13a2,_0x2dced1['end']));for(const _0x1df4ff of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3144e0['getIntersection'](_0x1df4ff['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x48a7fd{['afterInit'](){const _0x4dc020=this['editor']['locale'],_0x43037d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f8bb4,commandName:_0x566e7b}of Xt)this['editor']['plugins']['has'](_0x3f8bb4)&&_0x43037d['enableDefaultAttributesIntegration'](_0x566e7b);_0x43037d['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4dc020,'FORMAT_FONT_SIZE')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4dc020,'FORMAT_FONT_FAMILY')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4dc020,'FORMAT_FONT_COLOR')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4dc020,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430e29=this['editor'],_0x79758b=_0x430e29['locale'];_0x430e29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391951=>{const _0x1f7b47=_0x79758b['t'];if('formatInline'!=_0x391951['type'])return;const {data:_0x68d53d}=_0x391951;if(null!=_0x68d53d){if('fontSize'==_0x68d53d['commandName']){const _0x4dd96c=_0x68d53d['commandParams'][0x0]['value'];if(_0x4dd96c){const _0x4c66c9=_0x1f7b47(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x11901b=>_0x11901b['model']==_0x4dd96c)['title'])['toLowerCase']();return{'type':'format','content':At(_0x79758b,'*Set\x20font\x20size:*\x20%0',_0x4c66c9)};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x68d53d['commandName']){const _0x4c3298=_0x68d53d['commandParams'][0x0]['value'];return _0x4c3298?{'type':'format','content':At(_0x79758b,'*Set\x20font\x20family:*\x20%0',_0x4c3298)}:{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x68d53d['commandName']){const _0xd77e72=_0x68d53d['commandParams'][0x0]['value'];if(_0xd77e72){const _0x1f4291=_0x5e9d45(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e78ba=>_0x3e78ba['model']==_0xd77e72);let _0x13472a=_0xd77e72,_0x4345d4='';return _0x1f4291&&(_0x13472a=_0x1f4291['label'],_0x4345d4=_0x1f7b47(_0x13472a)['toLowerCase']()),{'type':'format','content':At(_0x79758b,'*Set\x20font\x20color:*\x20%0',_0x4345d4)['trim'](),'color':{'value':_0xd77e72,'title':_0x4345d4||_0x13472a}};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x68d53d['commandName']){const _0x1045de=_0x68d53d['commandParams'][0x0]['value'];if(_0x1045de){const _0x5b1f36=_0x5e9d45(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4272df=>_0x4272df['model']==_0x1045de);let _0x49db08=_0x1045de,_0x982986='';return _0x5b1f36&&(_0x49db08=_0x5b1f36['label'],_0x982986=_0x1f7b47(_0x49db08)['toLowerCase']()),{'type':'format','content':At(_0x79758b,'*Set\x20font\x20background\x20color:*\x20%0',_0x982986)['trim'](),'color':{'value':_0x1045de,'title':_0x982986||_0x49db08}};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x48a7fd{['afterInit'](){const {plugins:_0x481e3f}=this['editor'];_0x481e3f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x481e3f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2b37,plugins:_0x296ead,commands:_0x3d42b2}=this['editor'],_0x1a929e=_0x296ead['get']('TrackChangesEditing');_0x3d42b2['get']('footnotesStyle')&&_0x1a929e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3d42b2['get']('footnotesStart')&&_0x1a929e['enableDefaultAttributesIntegration']('footnotesStart'),_0x1a929e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x2b37,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1a929e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x2b37,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4e6984=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x413986,commands:_0x22f98a}=this['editor'];_0x22f98a['get']('insertFootnote')&&_0x4e6984['enableCommand']('insertFootnote'),_0x4e6984['descriptionFactory']['registerElementLabel']('footnoteRef',_0x514666=>At(_0x413986,'ELEMENT_FOOTNOTE_REF',_0x514666)),_0x4e6984['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4aa06e=>At(_0x413986,'ELEMENT_FOOTNOTE_DEFINITION',_0x4aa06e)),_0x4e6984['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xbe3a7c=>At(_0x413986,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xbe3a7c));}}class Qt extends _0x48a7fd{['afterInit'](){const _0x161525=this['editor'],_0x48c103=_0x161525['plugins']['get']('TrackChangesEditing'),_0x117575=_0x161525['commands']['get']('copyFormat'),_0x2cff0f=_0x161525['commands']['get']('pasteFormat');_0x117575&&_0x2cff0f&&(_0x48c103['enableDefaultAttributesIntegration']('pasteFormat'),_0x48c103['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x21f552=this['editor'],_0x7331e5=_0x21f552['locale'];_0x21f552['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ba82=>{if('formatBlock'!=_0x47ba82['type']&&'formatInline'!=_0x47ba82['type'])return;const {data:_0x4fa271}=_0x47ba82;if(_0x4fa271&&'pasteFormat'===_0x4fa271['commandName']){const _0x4dbc56=[],_0x6941b=_0x4fa271['commandParams'][0x0];for(const [_0xf1fde2,_0x1ed93e]of Object['entries'](_0x6941b))_0x4dbc56['push'](Zt(_0x21f552,_0xf1fde2,_0x1ed93e));return _0x4dbc56['length']?{'type':'format','content':At(_0x7331e5,'*Set\x20format\x20to:*\x20%0',_0x4dbc56['join'](',\x20'))}:{'type':'format','content':At(_0x7331e5,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x59fa95,_0x3ed283,_0x34a48f){const _0x48ff50=_0x59fa95['locale']['t'],_0x11819a=_0x3ed283['split'](/(?=[A-Z])/)['join']('\x20'),_0x110e9f=_0x48ff50(_0x11819a['charAt'](0x0)['toUpperCase']()+_0x11819a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x34a48f)return _0x110e9f;if('fontColor'===_0x3ed283||'fontBackgroundColor'===_0x3ed283){const _0x76edc6=_0x5e9d45(_0x59fa95['config']['get']('fontColor.colors'))['find'](_0x29ef07=>_0x29ef07['model']==_0x34a48f);return _0x110e9f+'\x20('+(_0x76edc6?_0x48ff50(_0x76edc6['label'])['toLowerCase']():_0x34a48f)+')';}if('fontSize'===_0x3ed283&&isNaN(parseFloat(_0x34a48f))){const _0x94a3c0=_0x59fa95['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59fa95['config']['get']('fontSize.options'))['find'](_0x37b550=>_0x37b550['model']==_0x34a48f);return _0x110e9f+'\x20('+(_0x94a3c0?_0x48ff50(_0x94a3c0['title'])['toLowerCase']():_0x34a48f)+')';}return _0x110e9f+'\x20('+_0x34a48f+')';}class Jt extends _0x48a7fd{['_headingOptions'];['afterInit'](){const _0x259a04=this['editor'];if(!_0x259a04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x259a04['config']['get']('heading.options');const _0x553922=_0x259a04['locale'],_0x17135d=_0x259a04['plugins']['get']('TrackChangesEditing');_0x17135d['enableDefaultAttributesIntegration']('heading');for(const _0x4a3e62 of this['_headingOptions'])'paragraph'!=_0x4a3e62['model']&&_0x17135d['descriptionFactory']['registerElementLabel'](_0x4a3e62['model'],_0x1000be=>{const _0xe95bcc=this['_getHeadingLevel'](_0x4a3e62['model']);return null!==_0xe95bcc?_0x1fbde6(_0x1000be,_0xe95bcc):_0x3feb26(_0x1000be,_0x4a3e62['title']);});function _0x1fbde6(_0x384e79,_0x5f0065){return At(_0x553922,'ELEMENT_HEADING',[_0x384e79,_0x5f0065]);}function _0x3feb26(_0x22cbd1,_0x202041){return At(_0x553922,'ELEMENT_HEADING_CUSTOM',[_0x22cbd1,_0x202041]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432d80=this['editor'],_0xd53b15=_0x432d80['locale'];function _0x3ec2e9(_0x31a8da,_0x4172af){return At(_0xd53b15,'ELEMENT_HEADING_CUSTOM',[_0x31a8da,_0x4172af]);}_0x432d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d57bd=>{if('formatBlock'!=_0x4d57bd['type'])return;const {data:_0x3f8701}=_0x4d57bd;if(_0x3f8701&&'heading'==_0x3f8701['commandName']){const _0x1e6d3e=_0x3f8701['commandParams'][0x0]['value'],_0x202a54=this['_getHeadingLevel'](_0x1e6d3e);if(null!==_0x202a54)return{'type':'format','content':At(_0xd53b15,'*Change\x20to:*\x20%0',(_0x344fd3=0x1,_0x871567=_0x202a54,At(_0xd53b15,'ELEMENT_HEADING',[_0x344fd3,_0x871567])))};const _0x1d1edf=this['_headingOptions']['find'](_0x3c4a2b=>_0x3c4a2b['model']===_0x1e6d3e)['title'];return{'type':'format','content':At(_0xd53b15,'*Change\x20to:*\x20%0',_0x3ec2e9(0x1,_0x1d1edf))};}var _0x344fd3,_0x871567;});}['_getHeadingLevel'](_0x821e08){const _0x45688b=_0x821e08['match'](/^heading(\d+)/);if(_0x45688b)return _0x45688b[0x1];const _0x47da5d=this['_headingOptions']?.['find'](_0x9d87dc=>_0x9d87dc['model']==_0x821e08);if(_0x47da5d&&_0x47da5d['view']){const _0x1e854f=_0x47da5d['view'],_0x4a4430=(_0x1e854f['name']??_0x1e854f)['match'](/^h(\d+)/);if(_0x4a4430)return _0x4a4430[0x1];}return null;}}class te extends _0x48a7fd{['afterInit'](){const _0x7fc86f=this['editor'];if(!_0x7fc86f['plugins']['has']('HighlightEditing'))return;const _0x4947a8=_0x7fc86f['plugins']['get']('TrackChangesEditing'),_0x568f03=_0x7fc86f['locale'];_0x4947a8['enableDefaultAttributesIntegration']('highlight'),_0x4947a8['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x568f03,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2feb49=this['editor'],_0xeec22f=_0x2feb49['locale'];_0x2feb49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378182=>{if('formatInline'!=_0x378182['type'])return;const {data:_0x261cc7}=_0x378182;if(_0x261cc7&&'highlight'==_0x261cc7['commandName']){const _0x30e6e1=_0xeec22f['t'],_0x26cdb5=_0x261cc7['commandParams'][0x0]['value'];if(_0x26cdb5){const _0x2cfb96=_0x2feb49['config']['get']('highlight.options')['find'](_0x33a414=>_0x33a414['model']==_0x26cdb5),_0x68aa32=_0x30e6e1(_0x2cfb96['title'])['toLowerCase']();return{'type':'format','content':At(_0xeec22f,'*Set\x20highlight:*\x20%0',_0x68aa32),'color':{'value':_0x2cfb96['color'],'title':_0x2cfb96['title']}};}return{'type':'format','content':At(_0xeec22f,'*Remove\x20highlight*',At(_0xeec22f,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x48a7fd{['afterInit'](){const _0x24bbb0=this['editor'];if(!_0x24bbb0['plugins']['has']('HorizontalLineEditing'))return;_0x24bbb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x47d26b=_0x24bbb0['plugins']['get']('TrackChangesEditing'),_0x3b106f=_0x24bbb0['locale'];_0x47d26b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x758365=>At(_0x3b106f,'ELEMENT_HORIZONTAL_LINE',_0x758365));}}class ne extends _0x48a7fd{['afterInit'](){const _0x6c4683=this['editor'];if(!_0x6c4683['plugins']['has']('HtmlEmbed'))return;const _0x198386=_0x6c4683['plugins']['get']('TrackChangesEditing'),_0x1cf44c=_0x6c4683['locale'];_0x198386['descriptionFactory']['registerElementLabel']('rawHtml',_0x2cac00=>At(_0x1cf44c,'ELEMENT_HTML_EMBED',_0x2cac00)),_0x198386['enableDefaultAttributesIntegration']('htmlEmbed'),_0x198386['descriptionFactory']['registerDescriptionCallback'](_0x3bdf9a=>{if('attribute'!=_0x3bdf9a['type'])return;const {data:_0x12fb3f}=_0x3bdf9a;if(_0x12fb3f&&'value'==_0x12fb3f['key']&&_0x3bdf9a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2175f0=At(_0x1cf44c,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1cf44c,'*Change\x20%0\x20content*',_0x2175f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b954b=this['editor'],_0x114cb1=_0x1b954b['locale'];_0x1b954b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28517e=>{if('formatBlock'!=_0x28517e['type'])return;const {data:_0x4981d3}=_0x28517e;if(_0x4981d3&&'htmlEmbed'==_0x4981d3['commandName']){const _0x41ed13=At(_0x114cb1,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x114cb1,'*Change\x20%0\x20content*',_0x41ed13)};}});}}class ie extends _0x48a7fd{['afterInit'](){const _0x5857ac=this['editor'];if(!_0x5857ac['plugins']['has']('ImageEditing'))return;const _0x401a1d=_0x5857ac['plugins']['get']('TrackChangesEditing'),_0x23b596=_0x5857ac['plugins']['get']('ImageUtils'),_0x1c2b3f=_0x5857ac['locale'];_0x401a1d['enableCommand']('insertImage'),_0x401a1d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3181dc=>At(_0x1c2b3f,'ELEMENT_IMAGE',_0x3181dc)),_0x401a1d['descriptionFactory']['registerElementLabel']('imageInline',_0x20a763=>At(_0x1c2b3f,'ELEMENT_INLINE_IMAGE',_0x20a763)),_0x401a1d['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x1c2b3f,'ELEMENT_CAPTION')),_0x5857ac['plugins']['has']('ImageUploadEditing')&&_0x401a1d['enableCommand']('uploadImage'),_0x5857ac['plugins']['has']('ImageBlockEditing')&&_0x5857ac['plugins']['has']('ImageInlineEditing')&&(_0x401a1d['enableCommand']('imageTypeInline',(_0x10818d,_0x16ba41)=>{const _0x273f17=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']);_0x5857ac['model']['change'](()=>{_0x401a1d['markBlockFormat'](_0x273f17,{'commandName':'imageTypeInline','commandParams':[_0x16ba41]},[],'convertBlockImageToInline');});}),_0x401a1d['enableCommand']('imageTypeBlock',(_0x1423a6,_0x488792)=>{_0x5857ac['model']['change'](_0x5a36f8=>{let _0x1491b3=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x66eb2b=_0x5a36f8['createRangeOn'](_0x1491b3);const _0x4286d3=tt['fromPosition'](_0x66eb2b['start'],'toPrevious'),_0x1b90c8=tt['fromPosition'](_0x66eb2b['end'],'toNext');_0x401a1d['forceDefaultExecution'](()=>_0x1423a6(_0x488792)),_0x1491b3=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x66eb2b=_0x5a36f8['createRangeOn'](_0x1491b3);const _0x4fed93=_0x5a36f8['createRange'](_0x4286d3,_0x1b90c8);_0x4286d3['detach'](),_0x1b90c8['detach'](),_0x401a1d['markBlockFormat'](_0x1491b3,{'commandName':'imageTypeInline','commandParams':[_0x488792]},[],'convertInlineImageToBlock'),_0x4fed93['start']['isBefore'](_0x66eb2b['start'])&&_0x401a1d['markInsertion'](_0x5a36f8['createRange'](_0x4fed93['start'],_0x66eb2b['start']),'convertInlineImageToBlock'),_0x66eb2b['end']['isBefore'](_0x4fed93['end'])&&_0x401a1d['markInsertion'](_0x5a36f8['createRange'](_0x66eb2b['end'],_0x4fed93['end']),'convertInlineImageToBlock');});}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x401a1d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7382e1])=>{const _0x3ac91a=_0x401a1d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5034df=_0x7382e1['start'],_0x562b75=_0x7382e1['end'];const _0xa39201=_0x5857ac['model']['schema']['getNearestSelectionRange'](_0x5034df,'backward'),_0x381426=_0x5857ac['model']['schema']['getNearestSelectionRange'](_0x562b75,'forward');_0xa39201['isCollapsed']&&(_0x5034df=_0xa39201['start']),_0x381426['isCollapsed']&&(_0x562b75=_0x381426['end']),_0x3ac91a([_0x5857ac['model']['createRange'](_0x5034df,_0x562b75)]);}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40eba7),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40eba7)),_0x5857ac['plugins']['has']('ImageCaptionEditing')&&(_0x401a1d['enableCommand']('toggleImageCaption',(_0xd4e88a,_0x28a00d)=>{const _0xaeefe0=_0x5857ac['plugins']['get']('ImageCaptionUtils');let _0x4c3376=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x59a4e4=_0xaeefe0['getCaptionFromImageModelElement'](_0x4c3376);_0x5857ac['model']['change'](()=>{if(_0x59a4e4)return void _0x401a1d['markDeletion'](_0x5857ac['model']['createRangeOn'](_0x59a4e4));const _0x5815bf=_0x23b596['isBlockImage'](_0x4c3376);_0xd4e88a(_0x28a00d),_0x4c3376=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x59a4e4=_0xaeefe0['getCaptionFromImageModelElement'](_0x4c3376),_0x401a1d['markInsertion'](_0x5857ac['model']['createRangeOn'](_0x59a4e4),_0x5815bf?null:'imageCaption');});}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40eba7));const _0x4cf847=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x23e4fc(_0x1b0c42,_0x224252){const _0x54e0a9=_0x4cf847['findIndex'](({type:_0x3e6e12,subType:_0x73e973})=>_0x1b0c42['type']==_0x3e6e12&&_0x1b0c42['subType']==_0x73e973),_0x5594a5=_0x4cf847['findIndex'](({type:_0x40b492,subType:_0x237bbf})=>_0x224252['type']==_0x40b492&&_0x224252['subType']==_0x237bbf);if(_0x54e0a9<0x0||_0x5594a5<0x0)return!0x1;const _0x26c11c=_0x1b0c42['getFirstRange'](),_0x5a6922=_0x224252['getFirstRange']();if((0x0==_0x54e0a9||0x1==_0x54e0a9)&&0x2==_0x5594a5&&_0x26c11c['isIntersecting'](_0x5a6922))return!0x0;if(0x2==_0x54e0a9&&0x3==_0x5594a5){const _0x597f65=_0x401a1d['_findSuggestions'](_0x26c11c,'insertion')['filter'](({suggestion:_0x2b356a,meta:_0x44ac55})=>_0x44ac55['isOwn']&&'convertInlineImageToBlock'==_0x2b356a['subType']);if(_0x597f65['length']>0x1&&_0x5a6922['end']['isEqual'](_0x26c11c['start']))return!0x0;if(0x1==_0x597f65['length']&&(_0x26c11c['start']['isEqual'](_0x5a6922['end'])||_0x26c11c['end']['isEqual'](_0x5a6922['start'])))return!0x0;}if(0x3==_0x54e0a9&&0x3==_0x5594a5&&_0x26c11c['start']['isBefore'](_0x5a6922['start'])){const _0x318c1b=_0x26c11c['end']['nodeAfter'],_0x329017=_0x5a6922['start']['nodeBefore'];return _0x23b596['isBlockImage'](_0x318c1b)&&_0x318c1b===_0x329017;}return!0x1;}function _0x40eba7(_0x11d18f,_0x31d20c){return _0x23e4fc(_0x11d18f,_0x31d20c)?[_0x11d18f,_0x31d20c]:_0x23e4fc(_0x31d20c,_0x11d18f)?[_0x31d20c,_0x11d18f]:null;}_0x5857ac['plugins']['has']('ImageResize')&&(_0x401a1d['enableDefaultAttributesIntegration']('resizeImage'),_0x401a1d['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x1c2b3f,'FORMAT_IMAGE_SIZE'))),_0x5857ac['plugins']['has']('ImageTextAlternativeEditing')&&_0x401a1d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5857ac['plugins']['has']('PictureEditing')&&_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x2e94f5=>{if('attribute'!=_0x2e94f5['type'])return;const {data:_0x2bead2}=_0x2e94f5;return _0x2bead2&&'sources'==_0x2bead2['key']?{'type':'format','content':''}:void 0x0;}),_0x5857ac['plugins']['has']('ImageSizeAttributes')&&_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x59f3f1=>{if('attribute'!=_0x59f3f1['type'])return;const {data:_0x7f3540}=_0x59f3f1;return!_0x7f3540||'width'!=_0x7f3540['key']&&'height'!=_0x7f3540['key']?void 0x0:{'type':'format','content':''};}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x21b741=>{if(!!_0x4cf847['find'](({type:_0x275dcc,subType:_0x587b72})=>_0x21b741['type']==_0x275dcc&&_0x21b741['subType']==_0x587b72))return _0x21b741['previous']?{}:void 0x0;}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x293312=>{if('insertion'==_0x293312['type']||'deletion'==_0x293312['type']){const _0x2bf1a4=_0x293312['getContainedElement']();if(_0x2bf1a4&&_0x2bf1a4['is']('element','caption'))return{'type':'insertion'==_0x293312['type']?'addObject':'removeObject','element':_0x2bf1a4,'quantity':0x1};}}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x5a40a7=>'formatBlock'==_0x5a40a7['type']&&'convertInlineImageToBlock'==_0x5a40a7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a40a7['type']&&'convertBlockImageToInline'==_0x5a40a7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x445b1a=>{if('attribute'!=_0x445b1a['type'])return;const {data:_0x57f7b7}=_0x445b1a;if(!_0x57f7b7||'alt'!=_0x57f7b7['key'])return;const _0x40c493=_0x57f7b7['newValue'];return _0x40c493?{'type':'format','content':At(_0x1c2b3f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40c493+'\x22')}:{'type':'format','content':At(_0x1c2b3f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2abba8=this['editor'],_0x4ec260=_0x2abba8['locale'];_0x2abba8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c1a4=>{if('formatBlock'!=_0x19c1a4['type']&&'formatInline'!=_0x19c1a4['type'])return;const {data:_0x57a778}=_0x19c1a4;if(_0x57a778){if('imageTextAlternative'==_0x57a778['commandName']){const _0xf19336=_0x57a778['commandParams'][0x0]['newValue'];return _0xf19336?{'type':'format','content':At(_0x4ec260,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf19336+'\x22')}:{'type':'format','content':At(_0x4ec260,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57a778['commandName']){const _0x4957b1=_0x57a778['commandParams'][0x0]['width'];return _0x4957b1?{'type':'format','content':At(_0x4ec260,'*Set\x20image\x20width:*\x20%0',_0x4957b1)}:{'type':'format','content':At(_0x4ec260,'*Reset\x20image\x20width*')};}}});}}class se extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3afabb=this['editor']['locale'],_0x1d6c69=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d6c69['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d6c69['descriptionFactory']['registerDescriptionCallback'](_0x22e188=>{if('attribute'!=_0x22e188['type'])return;const {data:_0x3ae062}=_0x22e188;return _0x3ae062&&'src'==_0x3ae062['key']?_0x3ae062['newValue']&&_0x3ae062['oldValue']?{'type':'format','content':At(_0x3afabb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2244a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2244a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2244a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2244a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2244a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88f9c5=this['editor'],_0x371dc=_0x88f9c5['locale'];_0x88f9c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444015=>{if('formatBlock'!=_0x444015['type']&&'formatInline'!=_0x444015['type'])return;const {data:_0x19c203}=_0x444015;if(!_0x19c203||'replaceImageSource'!=_0x19c203['commandName'])return;return{'type':'format','content':At(_0x371dc,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x48a7fd{['afterInit'](){const _0x13a02f=this['editor'];if(!_0x13a02f['plugins']['has']('ImageStyleEditing'))return;const _0x3b561e=_0x13a02f['plugins']['get']('TrackChangesEditing'),_0x3f4bf3=_0x13a02f['plugins']['get']('ImageUtils'),_0x5f38bb={};_0x3b561e['enableCommand']('imageStyle',(_0x29180a,_0x2c2b7b)=>{const _0x4b0fd6=_0x13a02f['plugins']['get']('Users')['me'],_0x1ed309=_0x13a02f['commands']['get']('imageStyle');let _0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),_0x177192=_0x13a02f['model']['createRangeOn'](_0x33377a),_0x162a18=_0x1ed309['value'];if(_0x162a18==_0x2c2b7b['value'])return;const _0x329e9e={'commandName':'imageStyle','commandParams':[_0x2c2b7b],'formatGroupId':_0x2296a0()};_0x13a02f['model']['change'](()=>{if(_0x3b561e['getSuggestions']()['filter'](_0x23e72d=>_0x23e72d['isInContent']&&_0x4b0fd6==_0x23e72d['author']&&('formatBlock'==_0x23e72d['type']||'formatInline'==_0x23e72d['type'])&&('imageStylePreApply'==_0x23e72d['subType']||'imageStylePostApply'==_0x23e72d['subType'])&&_0x23e72d['getFirstRange']()['isEqual'](_0x177192))['forEach'](_0x4dea01=>_0x3b561e['discardSuggestion'](_0x4dea01['head'])),_0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),_0x177192=_0x13a02f['model']['createRangeOn'](_0x33377a),_0x1ed309['refresh'](),_0x13a02f['commands']['get']('imageTypeInline')['refresh'](),_0x13a02f['commands']['get']('imageTypeBlock')['refresh'](),_0x162a18=_0x1ed309['value'],_0x162a18!=_0x2c2b7b['value'])return _0x3f4bf3['isInlineImage'](_0x33377a)&&_0x1ed309['shouldConvertImageType'](_0x2c2b7b['value'],_0x33377a)?(_0x29180a({..._0x2c2b7b,'setImageSizes':!0x1}),_0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),void _0x3b561e['markBlockFormat'](_0x33377a,{..._0x329e9e,'commandReversedParams':[{'value':_0x162a18||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f4bf3['isBlockImage'](_0x33377a)?_0x3b561e['markBlockFormat'](_0x33377a,_0x329e9e,[],'imageStylePostApply'):_0x3b561e['markInlineFormat'](_0x177192,_0x329e9e,'imageStylePostApply'));});});for(const _0x88cd0e of _0x13a02f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5f38bb[_0x88cd0e['name']]=_0x88cd0e['title']['toLowerCase']();_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x107fe0])=>{_0x3f4bf3['setImageNaturalSizeAttributes'](_0x107fe0['getContainedElement']());}),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x469f34,_0x4f99a2)=>{_0x3b561e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x469f34,{'commandName':_0x4f99a2['commandName'],'commandParams':_0x4f99a2['commandReversedParams']});}),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29ec0f,_0x4e417a){if(_0x1159f3(_0x29ec0f,_0x4e417a))return[_0x29ec0f,_0x4e417a];if(_0x1159f3(_0x4e417a,_0x29ec0f))return[_0x4e417a,_0x29ec0f];return null;});const _0xecc338=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1159f3(_0x1c9025,_0x10f345){const _0x28f217=_0xecc338['findIndex'](({type:_0x1e9738,subType:_0x38b5bd})=>_0x1c9025['type']==_0x1e9738&&_0x1c9025['subType']==_0x38b5bd),_0x28a588=_0xecc338['findIndex'](({type:_0x34f19a,subType:_0x5b40ef})=>_0x10f345['type']==_0x34f19a&&_0x10f345['subType']==_0x5b40ef);if(_0x28f217<0x0||_0x28a588<0x0)return!0x1;const _0x243fd3=_0x1c9025['getFirstRange'](),_0x4d7fb2=_0x10f345['getFirstRange']();if((0x0==_0x28f217||0x1==_0x28f217)&&0x2==_0x28a588&&_0x243fd3['isIntersecting'](_0x4d7fb2))return!0x0;if(0x2==_0x28f217&&0x3==_0x28a588){const _0x15ad16=_0x3b561e['_findSuggestions'](_0x243fd3,'insertion')['filter'](({suggestion:_0x424c46,meta:_0x15f726})=>_0x15f726['isOwn']&&'convertInlineImageToBlock'==_0x424c46['subType']);if(_0x15ad16['length']>0x1&&_0x4d7fb2['end']['isEqual'](_0x243fd3['start']))return!0x0;if(0x1==_0x15ad16['length']&&(_0x243fd3['start']['isEqual'](_0x4d7fb2['end'])||_0x243fd3['end']['isEqual'](_0x4d7fb2['start'])))return!0x0;}if(0x3==_0x28f217&&0x3==_0x28a588&&_0x243fd3['start']['isBefore'](_0x4d7fb2['start'])){const _0x4a291d=_0x243fd3['end']['nodeAfter'],_0x2143e0=_0x4d7fb2['start']['nodeBefore'];return _0x3f4bf3['isBlockImage'](_0x4a291d)&&_0x4a291d===_0x2143e0;}return!0x1;}_0x13a02f['model']['document']['registerPostFixer'](()=>{let _0xf4a8a=!0x1;const _0xb4f8c7=Array['from'](_0x13a02f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b088f,data:_0x3387a3}of _0xb4f8c7){const {group:_0x38088d,type:_0x35f595,subType:_0x458ab3,id:_0x2b5601}=_0x2cca50(_0x1b088f);if('suggestion'==_0x38088d&&_0x3b561e['hasSuggestion'](_0x2b5601)){if('formatBlock'==_0x35f595&&('imageStylePreApply'==_0x458ab3||'imageStylePostApply'==_0x458ab3)){const _0xdaa4b7=_0x3b561e['getSuggestion'](_0x2b5601);if(_0x3387a3['newRange']){const _0x4189e5=_0xdaa4b7['getFirstRange']()['getContainedElement']();if(_0x3f4bf3['isBlockImage'](_0x4189e5))continue;_0x3b561e['discardSuggestion'](_0xdaa4b7),_0xf4a8a=!0x0;}}if('insertion'==_0x35f595&&'imageCaption'==_0x458ab3&&!_0x3387a3['newRange']){const _0x50dc31=_0x3b561e['getSuggestion'](_0x2b5601);_0x50dc31['next']&&_0x50dc31['next']['isInContent']&&(_0x3b561e['discardSuggestion'](_0x50dc31['next']),_0xf4a8a=!0x0);}}}return _0xf4a8a;}),this['_registerLegacyDescription'](_0x5f38bb);}['_registerLegacyDescription'](_0x133afd){const _0x467324=this['editor'],_0x479582=_0x467324['locale'];_0x467324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41301c=>{if('formatBlock'!=_0x41301c['type']&&'formatInline'!=_0x41301c['type'])return;const {data:_0x26cc26}=_0x41301c;if(!_0x26cc26||'imageStyle'!=_0x26cc26['commandName'])return;const _0x39be53=_0x26cc26['commandParams'][0x0]['value'];return _0x1282c5('side'===_0x39be53?At(_0x479582,'FORMAT_SIDE_IMAGE'):_0x133afd[_0x39be53]||_0x39be53);function _0x1282c5(_0x22ae49){return{'type':'format','content':At(_0x479582,'*Format:*\x20%0',_0x22ae49)};}});}}class oe extends _0x48a7fd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ef4f4){super(_0x2ef4f4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x576666=this['editor'],_0x2b3b92=_0x576666['commands']['get']('importWord'),_0x2b58d1=_0x576666['commands']['get']('trackChanges');_0x2b3b92&&(_0x2b3b92['on']('execute',(_0x32ed90,[,_0x56af82])=>{this['_trackChangesValueDuringImport']=_0x2b58d1['value'],_0x56af82['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b3b92,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b3b92,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b58d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x576666['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x486dce,_0x50a3a9){const {suggestions:_0x5188e4}=_0x50a3a9,_0x4084c0=this['editor']['commands']['get']('trackChanges'),_0xc735d1=_0x4084c0['value'];this['_trackChangesValueDuringImport']!==_0xc735d1&&(_0x4084c0['execute'](),this['_trackChangesExecuted']=!0x0),_0x5188e4&&_0x5188e4['forEach'](({id:_0xc2c1ef,type:_0x4719c5,author:_0x35ec94,created_at:_0x148b7f})=>{const _0x78e77={'id':_0xc2c1ef,'type':_0x4719c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x35ec94,'createdAt':_0x148b7f?new Date(_0x148b7f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x78e77);});}}class ae extends _0x48a7fd{['afterInit'](){const _0x4d1610=this['editor'],_0x2f4125=_0x4d1610['plugins']['get']('TrackChangesEditing');if(_0x4d1610['plugins']['has']('IndentEditing')&&(_0x2f4125['enableCommand']('indent'),_0x2f4125['enableCommand']('outdent')),_0x4d1610['plugins']['has']('IndentBlock')){for(const _0x597108 of['indentBlock','outdentBlock'])_0x2f4125['enableDefaultAttributesIntegration'](_0x597108);if(_0x4d1610['plugins']['has']('ListEditing')){for(const _0x27c963 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x2f4125['enableDefaultAttributesIntegration'](_0x27c963);}}const _0x4b3da1=_0x4d1610['locale'];_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x4b3da1,'FORMAT_INDENT')),_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x4b3da1,'FORMAT_INDENT')),_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x4b3da1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb417aa=this['editor'],_0x448901=_0xb417aa['locale'],_0x38f5ad=_0xb417aa['plugins']['get']('TrackChangesEditing');_0x38f5ad['descriptionFactory']['registerDescriptionCallback'](_0x3b9b51=>{if('formatBlock'!=_0x3b9b51['type'])return;const {data:_0x5bae56}=_0x3b9b51;if(!_0x5bae56)return;if('indentBlock'!=_0x5bae56['commandName']&&'outdentBlock'!=_0x5bae56['commandName'])return;const _0x772adf=_0x3b9b51['getItems']()[0x0],_0x401a20=_0x38f5ad['descriptionFactory']['getItemLabel'](_0x772adf);return'indentBlock'==_0x5bae56['commandName']?{'type':'format','content':At(_0x448901,'*Indent:*\x20%0',_0x401a20)}:'outdentBlock'==_0x5bae56['commandName']?{'type':'format','content':At(_0x448901,'*Outdent:*\x20%0',_0x401a20)}:void 0x0;});}}class ce extends _0x48a7fd{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x48a7fd{['afterInit'](){const _0x4818ed=this['editor'];if(!_0x4818ed['plugins']['has']('LinkEditing'))return;const _0x18b174=_0x4818ed['plugins']['get']('TrackChangesEditing'),_0x2fa829=_0x4818ed['commands']['get']('link');_0x18b174['enableDefaultAttributesIntegration']('link'),_0x18b174['enableDefaultAttributesIntegration']('unlink');for(const _0x1f15e2 of _0x2fa829['manualDecorators'])_0x18b174['descriptionFactory']['registerAttributeLabel'](_0x1f15e2['id'],'link\x20('+_0x1f15e2['label']['toLowerCase']()+')');_0x18b174['descriptionFactory']['registerDescriptionCallback'](_0x11dd86=>{if('attribute'!=_0x11dd86['type'])return;const {data:_0x579003}=_0x11dd86;if(!_0x579003||'linkHref'!=_0x579003['key'])return;const _0x550f7c=_0x579003['newValue'],_0x73a3d1=_0x4818ed['locale'];return{'type':'format','content':null==_0x550f7c?At(_0x73a3d1,'*Remove\x20link*'):At(_0x73a3d1,'*Set\x20link:*\x20%0','\x22'+_0x550f7c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d959d=this['editor'],_0x5e2d0b=_0x1d959d['locale'];_0x1d959d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b6796=>{if('formatInline'!=_0x5b6796['type'])return;const {data:_0x11cfc6}=_0x5b6796;if(_0x11cfc6){if('link'==_0x11cfc6['commandName']){const _0x128df0=_0x11cfc6['commandParams'][0x0];return{'type':'format','content':At(_0x5e2d0b,'*Set\x20link:*\x20%0','\x22'+_0x128df0+'\x22')};}return'unlink'==_0x11cfc6['commandName']?{'type':'format','content':At(_0x5e2d0b,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x48a7fd{['afterInit'](){const _0x4a844e=this['editor'],_0x503cd4=_0x4a844e['locale'];if(!_0x4a844e['plugins']['has']('LegacyListEditing'))return;const _0x212152=_0x4a844e['plugins']['get']('TrackChangesEditing'),_0x51bced=_0x4a844e['plugins']['has']('LegacyTodoListEditing');function _0x1a6af7(_0x5b5005){return()=>{const _0x4cdfe4=_0x4a844e['model']['document']['selection'],_0x13f713=_0x4a844e['commands']['get'](_0x5b5005);if(_0x13f713['value'])return void _0x4a844e['execute']('paragraph',{});const _0x4bece0=_0x5b5005['slice'](0x0,-0x4),_0x50db6e=function(_0x5709eb,_0x46b612,_0xdc7236){let _0x5333af=Array['from'](_0x5709eb)['filter'](_0x15dcc9=>function(_0x1bdd16,_0x20208b){return _0x20208b['checkChild'](_0x1bdd16['parent'],'listItem')&&!_0x20208b['isObject'](_0x1bdd16);}(_0x15dcc9,_0xdc7236));_0x5333af=_0x5333af['filter'](_0x49649b=>!_0x49649b['is']('element','listItem')||_0x49649b['getAttribute']('listType')!=_0x46b612);const _0x42ec7d=new Set();for(const _0x3bbff7 of _0x5333af)_0x3bbff7['is']('element','listItem')?_0x42ec7d['add'](he(_0x3bbff7)):_0x42ec7d['add'](_0x3bbff7);return Array['from'](_0x42ec7d);}(_0x4cdfe4['getSelectedBlocks'](),_0x4bece0,_0x4a844e['model']['schema']);_0x4a844e['model']['change'](()=>{for(const _0x2ea82c of _0x50db6e)_0x212152['markBlockFormat'](_0x2ea82c,{'commandName':_0x5b5005,'commandParams':[{'forceValue':!_0x13f713['value']}],'formatGroupId':'blockName'},de(_0x2ea82c));});};}function _0x390564(_0x1b4b67){return()=>{const _0x2732d3=function(_0x58f381){let _0x506d64=Array['from'](_0x58f381);const _0x4eefa3=_0x506d64['findIndex'](_0x1de17a=>'listItem'!=_0x1de17a['name']);return _0x4eefa3>-0x1&&(_0x506d64=_0x506d64['slice'](0x0,_0x4eefa3)),_0x506d64;}(_0x4a844e['model']['document']['selection']['getSelectedBlocks']()),_0x58f3e3=_0x4a844e['model']['createRange'](_0x4a844e['model']['createPositionAt'](_0x2732d3[0x0],'before'),_0x4a844e['model']['createPositionAt'](_0x2732d3[_0x2732d3['length']-0x1],'end'));_0x4a844e['model']['change'](()=>{_0x212152['markBlockFormat'](_0x58f3e3,{'commandName':_0x1b4b67,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f6ed5){const _0x126863=new Set();for(const _0x557c7e of _0x4f6ed5){let _0x370f88=_0x557c7e['nextSibling'];for(;_0x370f88&&_0x370f88['getAttribute']('listIndent')>_0x557c7e['getAttribute']('listIndent');)_0x126863['add'](_0x370f88),_0x370f88=_0x370f88['nextSibling'];}return Array['from'](_0x126863);}(_0x2732d3));});};}_0x212152['enableCommand']('numberedList',_0x1a6af7('numberedList')),_0x212152['enableCommand']('bulletedList',_0x1a6af7('bulletedList')),_0x51bced&&_0x212152['enableCommand']('todoList',_0x1a6af7('todoList')),_0x212152['enableCommand']('indentList',_0x390564('indentList')),_0x212152['enableCommand']('outdentList',_0x390564('outdentList')),_0x51bced&&_0x212152['enableCommand']('checkTodoList',()=>{const _0x79c407=_0x4a844e['commands']['get']('checkTodoList'),_0x1cbfc3=Array['from'](_0x79c407['_selectedElements']);_0x1cbfc3['filter'](_0x121e26=>_0x121e26['getAttribute']('todoListChecked')!=_0x79c407['value']),_0x4a844e['model']['change'](()=>{for(const _0x1129f6 of _0x1cbfc3)_0x212152['markBlockFormat'](_0x1129f6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x79c407['value']}]});});}),_0x212152['descriptionFactory']['registerElementLabel']('listItem',_0x730d75=>At(_0x503cd4,'ELEMENT_LIST_ITEM',_0x730d75)),_0x212152['descriptionFactory']['registerDescriptionCallback'](_0x6c4f3a=>{if('formatBlock'!=_0x6c4f3a['type']&&'formatInline'!=_0x6c4f3a['type'])return;const {data:_0x3d3452}=_0x6c4f3a;if(_0x3d3452){if('numberedList'==_0x3d3452['commandName']||'bulletedList'==_0x3d3452['commandName']||'todoList'==_0x3d3452['commandName'])switch(_0x3d3452['commandName']['replace']('List','')){case'bulleted':return _0x2366fd(At(_0x503cd4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2366fd(At(_0x503cd4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2366fd(At(_0x503cd4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3d3452['commandName'])return{'type':'format','content':At(_0x503cd4,'*Indent:*\x20%0',At(_0x503cd4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3d3452['commandName'])return{'type':'format','content':At(_0x503cd4,'*Outdent:*\x20%0',At(_0x503cd4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3d3452['commandName'])return _0x3d3452['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x503cd4,'*Check\x20item*')}:{'type':'format','content':At(_0x503cd4,'*Uncheck\x20item*')};}function _0x2366fd(_0x1f768c){return{'type':'format','content':At(_0x503cd4,'*Change\x20to:*\x20%0',_0x1f768c)};}});}}function he(_0x32f84e){const _0x5e7b5d=_0x32f84e['getAttribute']('listIndent');if(0x0==_0x5e7b5d)return _0x32f84e;let _0x41c659=_0x32f84e;for(;_0x32f84e['previousSibling']&&_0x32f84e['previousSibling']['is']('element','listItem');){const _0x61329=_0x32f84e['previousSibling']['getAttribute']('listIndent');if(_0x61329==_0x5e7b5d)_0x41c659=_0x32f84e['previousSibling'];else{if(_0x61329<_0x5e7b5d)break;}_0x32f84e=_0x32f84e['previousSibling'];}return _0x41c659;}function de(_0x4d7ea7){const _0x486f58=[];if(_0x4d7ea7['is']('element','listItem')&&_0x4d7ea7['getAttribute']('listIndent')>0x0){let _0x3468f3=_0x4d7ea7['nextSibling'];for(;_0x3468f3&&'listItem'==_0x3468f3['name']&&_0x3468f3['getAttribute']('listIndent')==_0x4d7ea7['getAttribute']('listIndent');)_0x486f58['push'](_0x3468f3),_0x3468f3=_0x3468f3['nextSibling'];}return _0x486f58;}class fe extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24426c=this['editor']['config']['get']('list.properties'),_0x129633=this['editor']['plugins']['get']('TrackChangesEditing');_0x24426c['styles']&&_0x129633['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24426c['reversed']&&_0x129633['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24426c['startIndex']&&_0x129633['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x129633['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe5255b,_0x4fa4fa={}){const _0x521092=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdb6cd3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x521092['markMultiRangeBlockFormat'](_0xdb6cd3,{'commandName':'listStyle','commandParams':[{'type':_0x4fa4fa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5c5cd6,_0x3cbf96={}){const _0x22fc02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x146ac3=this['_getSuggestionBlocks'](_0x2017c7=>_0x2017c7['is']('element','listItem')&&'numbered'===_0x2017c7['getAttribute']('listType'));if(_0x146ac3['length']<0x1)return;const _0x51d04e=_0x146ac3['map'](_0x46ddd5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46ddd5,'before'),this['editor']['model']['createPositionAt'](_0x46ddd5,0x0)));this['editor']['model']['change'](()=>{_0x22fc02['markMultiRangeBlockFormat'](_0x51d04e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3cbf96['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x583fd1,_0x2115ee={}){const _0x19743f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c6c7=this['_getSuggestionBlocks'](_0x2f72a6=>_0x2f72a6['is']('element','listItem')&&'numbered'===_0x2f72a6['getAttribute']('listType'));if(_0x13c6c7['length']<0x1)return;const _0x4b4e6c=_0x13c6c7['map'](_0x352ffd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x352ffd,'before'),this['editor']['model']['createPositionAt'](_0x352ffd,0x0)));this['editor']['model']['change'](()=>{_0x19743f['markMultiRangeBlockFormat'](_0x4b4e6c,{'commandName':'listStart','commandParams':[{'startIndex':_0x2115ee['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d7ef8){if('formatBlock'!=_0x1d7ef8['type']&&'formatInline'!=_0x1d7ef8['type'])return;const _0xc0279=this['editor']['locale'],{data:_0x3675d0}=_0x1d7ef8;if(!_0x3675d0)return;let _0x578426,_0x45115a;switch(_0x3675d0['commandName']){case'listStyle':_0x578426='*Change\x20to:*\x20%0',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426,At(_0xc0279,this['_getTranslationKeyForListStyle'](_0x3675d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x578426=_0x3675d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426)};break;case'listStart':_0x578426='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426,_0x3675d0['commandParams'][0x0]['startIndex'])};}return _0x45115a;}['_getSuggestionBlocksForListStyle'](){const _0x4c5921=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d6cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11d6cf[0x0]?.['is']('element','listItem')&&_0x11d6cf['unshift'](..._0x4c5921['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11d6cf[_0x11d6cf['length']-0x1]?.['is']('element','listItem')&&_0x11d6cf['push'](..._0x4c5921['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11d6cf=[...new Set(_0x11d6cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11d6cf=_0x11d6cf['filter'](_0x3e762e=>_0x3e762e['is']('element','listItem'))),_0x11d6cf;}['_getSuggestionBlocks'](_0x25816b){const _0x55050f=this['editor']['plugins']['get']('LegacyListUtils');let _0x42071a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25816b)['map'](_0x5f2b3f=>{const _0x374635=this['editor']['model']['createPositionAt'](_0x5f2b3f,0x0);return[..._0x55050f['getSiblingNodes'](_0x374635,'backward'),..._0x55050f['getSiblingNodes'](_0x374635,'forward')];})['flat']();return _0x42071a=[...new Set(_0x42071a)],_0x42071a;}['_getTranslationKeyForListStyle'](_0x71b7e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x71b7e2)||'default')['toUpperCase']()+'_LIST_'+_0x71b7e2['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x48a7fd{['afterInit'](){const _0x5d8d63=this['editor'];if(!_0x5d8d63['plugins']['has']('MediaEmbedEditing'))return;const _0x3628f7=_0x5d8d63['plugins']['get']('TrackChangesEditing'),_0x286003=_0x5d8d63['locale'];_0x3628f7['enableCommand']('mediaEmbed'),_0x3628f7['descriptionFactory']['registerElementLabel']('media',_0x269b6b=>At(_0x286003,'ELEMENT_MEDIA',_0x269b6b));}}class me extends _0x48a7fd{['afterInit'](){const _0x611c1f=this['editor'];_0x611c1f['plugins']['has']('MentionEditing')&&_0x611c1f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x48a7fd{['afterInit'](){const _0x429ad9=this['editor'];if(!_0x429ad9['plugins']['has']('MergeFieldsEditing'))return;const _0x26a3af=_0x429ad9['plugins']['get']('TrackChangesEditing'),_0x171bc4=_0x429ad9['locale'];_0x26a3af['enableCommand']('insertMergeField'),_0x26a3af['enableCommand']('insertMergeFieldBlock'),_0x26a3af['enableCommand']('insertMergeFieldImage'),_0x26a3af['descriptionFactory']['registerElementLabel']('mergeField',_0x586e56=>At(_0x171bc4,'ELEMENT_MERGE_FIELD',_0x586e56)),_0x26a3af['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1893fd=>At(_0x171bc4,'ELEMENT_MERGE_FIELD',_0x1893fd)),_0x26a3af['descriptionFactory']['registerDescriptionCallback'](_0x1e0109=>{if('insertion'!=_0x1e0109['type']&&'deletion'!=_0x1e0109['type'])return;const _0x4292c3=_0x1e0109['getContainedElement']();if(null==_0x4292c3)return;const _0x1972ca=_0x429ad9['plugins']['get']('MergeFieldsEditing');let _0x3859e6;switch(_0x1972ca['getMergeFieldType'](_0x4292c3)){case null:return;case'image':{const _0x536466=_0x1972ca['unwrapAffixes'](_0x4292c3['getAttribute']('src'));_0x3859e6=_0x1972ca['getLabel'](_0x536466)||_0x536466;break;}default:{const _0x3a51d1=_0x4292c3['getAttribute']('id');_0x3859e6=_0x1972ca['getLabel'](_0x3a51d1)||_0x3a51d1;break;}}return'insertion'==_0x1e0109['type']?{'type':'insertion','content':At(_0x171bc4,'*Insert:*\x20%0','\x22'+_0x3859e6+'\x22\x20'+At(_0x171bc4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x171bc4,'*Remove:*\x20%0','\x22'+_0x3859e6+'\x22\x20'+At(_0x171bc4,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x48a7fd{['afterInit'](){const _0x3490ba=this['editor'],_0x19e96f=_0x3490ba['plugins']['get']('TrackChangesEditing');_0x3490ba['plugins']['has']('MultiLevelList')&&(_0x19e96f['enableDefaultAttributesIntegration']('multiLevelList'),_0x19e96f['descriptionFactory']['registerDescriptionCallback'](_0x536ac1=>this['handleDescriptions'](_0x536ac1)));}['handleDescriptions'](_0x736fb6){const _0x2232ae=this['editor']['locale'],{data:_0x3317f3}=_0x736fb6,_0x51689f={'type':'format','content':''};if(_0x3317f3&&'listMarkerStyle'==_0x3317f3['key']){if(!_0x3317f3['oldValue'])return{'type':'format','content':At(_0x2232ae,'*Set\x20format:*\x20%0',At(_0x2232ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3317f3['newValue']+')'};if(!_0x3317f3['newValue']){let _0x290e45=_0x736fb6['head'];for(;_0x290e45;){if(_0x290e45['data']&&'listType'==_0x290e45['data']['key']&&_0x290e45['data']['newValue'])return _0x51689f;_0x290e45=_0x290e45['next'];}return{'type':'format','content':At(_0x2232ae,'*Remove\x20format:*\x20%0',At(_0x2232ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3317f3['oldValue']+')'};}}}}class _e extends _0x48a7fd{['afterInit'](){const _0x3c8a54=this['editor'];if(!_0x3c8a54['plugins']['has']('PageBreakEditing'))return;_0x3c8a54['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f2863=_0x3c8a54['plugins']['get']('TrackChangesEditing'),_0x2ca343=_0x3c8a54['locale'];_0x2f2863['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f1252=>At(_0x2ca343,'ELEMENT_PAGE_BREAK',_0x3f1252));}}class pe extends _0x48a7fd{['afterInit'](){const _0x1bf6c5=this['editor'];if(!_0x1bf6c5['plugins']['has']('Paragraph'))return;const _0x4c34ba=_0x1bf6c5['locale'],_0x2257cb=_0x1bf6c5['plugins']['get']('TrackChangesEditing');_0x2257cb['descriptionFactory']['registerElementLabel']('paragraph',_0x1867f3=>At(_0x4c34ba,'ELEMENT_PARAGRAPH',_0x1867f3)),_0x2257cb['enableDefaultAttributesIntegration']('paragraph'),_0x2257cb['enableCommand']('insertParagraph');const _0x32b225=_0x2257cb['descriptionFactory'];_0x32b225['registerDescriptionCallback'](_0x203884=>{if('insertion'!==_0x203884['type'])return;const {start:_0x5c961c,end:_0x27b504}=_0x203884['getFirstRange']();if(!_0x5c961c['isTouching'](_0x27b504)||!_0x5c961c['nodeAfter'])return;const _0x3ad5ed=_0x1bf6c5['model']['schema'],_0x3d8f5a=_0x5c961c['nodeAfter'];return _0x3ad5ed['isBlock'](_0x3d8f5a)&&!_0x3ad5ed['isLimit'](_0x3d8f5a)&&_0x3ad5ed['checkChild'](_0x3d8f5a,'$text')?{'type':'insertion','content':At(_0x4c34ba,'*Insert:*\x20%0',_0x32b225['getItemLabel'](_0x3d8f5a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2d89=this['editor'],_0x500d8e=_0x1c2d89['locale'];_0x1c2d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f1b9=>{if('formatBlock'!=_0x17f1b9['type'])return;const {data:_0x2541fa}=_0x17f1b9;return _0x2541fa&&'paragraph'==_0x2541fa['commandName']?{'type':'format','content':At(_0x500d8e,'*Change\x20to:*\x20%0',At(_0x500d8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x48a7fd{['afterInit'](){const _0xd43dc6=this['editor'];_0xd43dc6['commands']['get']('replaceSource')&&_0xd43dc6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x48a7fd{['afterInit'](){const _0x50e803=this['editor'];if(!_0x50e803['plugins']['has']('RemoveFormatEditing'))return;_0x50e803['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b49b3=this['editor'];_0x1b49b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd07935=>{if('formatBlock'!=_0xd07935['type']&&'formatInline'!=_0xd07935['type'])return;const {data:_0x4e9287}=_0xd07935;return _0x4e9287&&'removeFormat'==_0x4e9287['commandName']?{'type':'format','content':At(_0x1b49b3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x48a7fd{['afterInit'](){const _0x2c9783=this['editor'];if(!_0x2c9783['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17f96f=_0x2c9783['plugins']['get']('TrackChangesEditing');_0x17f96f['enableCommand']('goToPreviousRestrictedEditingException'),_0x17f96f['enableCommand']('goToNextRestrictedEditingException');const _0x6baa24=_0x2c9783['plugins']['get']('RestrictedEditingModeEditing');_0x6baa24['enableCommand']('trackChanges'),_0x6baa24['enableCommand']('acceptSuggestion'),_0x6baa24['enableCommand']('discardSuggestion'),_0x6baa24['enableCommand']('acceptAllSuggestions'),_0x6baa24['enableCommand']('discardAllSuggestions'),_0x6baa24['enableCommand']('acceptSelectedSuggestions'),_0x6baa24['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x48a7fd{['afterInit'](){const _0x54c138=this['editor'];if(!_0x54c138['plugins']['has']('ShiftEnter'))return;const _0x34d9fb=_0x54c138['plugins']['get']('TrackChangesEditing');_0x34d9fb['enableCommand']('shiftEnter'),_0x34d9fb['descriptionFactory']['registerElementLabel']('softBreak',_0x497bc2=>At(_0x54c138['locale'],'ELEMENT_LINE_BREAK',_0x497bc2));}}function ke(_0x8730e,_0x29178b,_0x414b8b){const _0x391269=[];for(const _0x1de825 of _0x29178b['getItems']())_0x1de825['hasAttribute'](_0x8730e)&&_0x391269['push'](_0x414b8b['createRangeOn'](_0x1de825));return _0x391269;}class Ce extends _0x48a7fd{['afterInit'](){const _0x66d4c2=this['editor'],_0x558e79=_0x66d4c2['plugins']['get']('TrackChangesEditing');_0x66d4c2['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x558e79['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x11c0db=this['editor'],_0x43c0d3=_0x11c0db['model'],_0xa3946f=_0x11c0db['locale'],_0x560aef=_0x11c0db['plugins']['get']('TrackChangesEditing'),_0x4f2d1e='restrictedEditingException',_0x55c799=_0x11c0db['commands']['get'](_0x4f2d1e);_0x560aef['enableCommand'](_0x4f2d1e,(_0x4c2f03,_0x89787a={})=>{const _0xf482e4=_0x43c0d3['document']['selection'];if(_0xf482e4['isCollapsed'])return void _0x4c2f03(_0x89787a);const _0x562971=void 0x0!==_0x89787a['forceValue']?_0x89787a['forceValue']:!_0x55c799['value'];_0x43c0d3['change'](()=>{const _0x3e27f4=Array['from'](_0xf482e4['getRanges']());for(const _0x50b393 of _0x3e27f4){const _0x51322d=_0x562971?[_0x50b393]:ke(_0x4f2d1e,_0x50b393,_0x43c0d3);for(const _0xf57eec of _0x51322d)_0x560aef['markInlineFormat'](_0xf57eec,{'commandName':_0x4f2d1e,'commandParams':[{'forceValue':_0x562971}]});}});}),_0x560aef['descriptionFactory']['registerDescriptionCallback'](_0x1d8a90=>{if('formatBlock'!=_0x1d8a90['type']&&'formatInline'!=_0x1d8a90['type'])return;const {data:_0x2369bd}=_0x1d8a90;return _0x2369bd&&_0x2369bd['commandName']==_0x4f2d1e?_0x2369bd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa3946f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xa3946f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x51c59f=this['editor'],_0x2ae83e=_0x51c59f['locale'],_0x2b42e7=_0x51c59f['plugins']['get']('TrackChangesEditing'),_0x4e479c='restrictedEditingExceptionBlock',_0x2db468=this['editor']['commands']['get'](_0x4e479c);_0x2b42e7['enableCommand'](_0x4e479c,(_0x97ca5e,_0x1aa201={})=>{const _0x296fa5=this['editor']['model']['document']['selection'],_0x398fe0=_0x1aa201&&void 0x0!==_0x1aa201['forceValue']?_0x1aa201['forceValue']:!_0x2db468['value'];let _0x4fae75=[];if(_0x398fe0){const _0x30dc07=Array['from'](_0x296fa5['getSelectedBlocks']())['filter'](_0x51ff73=>function(_0x20d0d5){return!!_0x20d0d5['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51ff73)||function(_0x6e3504,_0x5f43c8){const _0xe54387=_0x5f43c8['createContext'](_0x6e3504['parent']);if(!_0x5f43c8['checkChild'](_0xe54387,'restrictedEditingException'))return!0x1;if(!_0x5f43c8['checkChild'](_0xe54387['push']('restrictedEditingException'),_0x6e3504))return!0x1;return!0x0;}(_0x51ff73,this['editor']['model']['schema']));_0x4fae75=Tt(_0x30dc07,_0x51c59f['model']);}else{const _0xfea3e6=Array['from'](_0x296fa5['getSelectedBlocks']())['map'](_0x33fef4=>function(_0x2a440e){let _0xec57b=_0x2a440e;for(;_0xec57b['parent'];){if('restrictedEditingException'==_0xec57b['parent']['name'])return _0xec57b;_0xec57b=_0xec57b['parent'];}return null;}(_0x33fef4))['filter'](_0x1b9275=>!!_0x1b9275);_0x4fae75=Tt(_0xfea3e6,_0x51c59f['model']);}_0x51c59f['model']['change'](()=>{for(const _0x4db943 of _0x4fae75)_0x2b42e7['markBlockFormat'](_0x4db943,{'commandName':_0x4e479c,'commandParams':[{'forceValue':_0x398fe0}]});});}),_0x2b42e7['descriptionFactory']['registerDescriptionCallback'](_0x231bab=>{const {data:_0x56b12d}=_0x231bab;if(_0x56b12d&&_0x56b12d['commandName']==_0x4e479c)return _0x56b12d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2ae83e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x2ae83e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x48a7fd{['afterInit'](){const _0x463547=this['editor'];if(!_0x463547['plugins']['has']('Style')||!_0x463547['plugins']['has']('DataSchema'))return;const _0x111d64=_0x463547['plugins']['get']('TrackChangesEditing'),_0x310aa0=_0x463547['locale'],_0x61b602=_0x463547['config']['get']('style')||{},_0x18b08d=_0x463547['plugins']['get']('GeneralHtmlSupport'),_0x859605=_0x463547['plugins']['get']('StyleUtils')['normalizeConfig'](_0x463547['plugins']['get']('DataSchema'),_0x61b602['definitions']);_0x111d64['enableDefaultAttributesIntegration']('style');const _0x424615=new Set();for(const _0x2d7d0 of _0x859605['block']){const _0x3b580a=_0x18b08d['getGhsAttributeNameForElement'](_0x2d7d0['element']);_0x424615['add'](_0x3b580a);}const _0x1b01ac=new Set();for(const _0x27b30c of _0x859605['inline']){const _0x387c02=_0x18b08d['getGhsAttributeNameForElement'](_0x27b30c['element']);_0x1b01ac['add'](_0x387c02);for(const _0x2e0f81 of _0x27b30c['ghsAttributes'])_0x1b01ac['add'](_0x2e0f81);}for(const _0x29d826 of _0x424615)_0x111d64['descriptionFactory']['registerAttributeLabel'](_0x29d826,At(_0x310aa0,'FORMAT_STYLE'));for(const _0x38e25b of _0x1b01ac)_0x111d64['descriptionFactory']['registerAttributeLabel'](_0x38e25b,At(_0x310aa0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d71d5=this['editor'],_0xd6e3f9=_0x2d71d5['locale'];_0x2d71d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a728=>{if('formatBlock'!=_0x40a728['type']&&'formatInline'!=_0x40a728['type'])return;const {data:_0x488ddd}=_0x40a728;return _0x488ddd&&'style'===_0x488ddd['commandName']?_0x488ddd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xd6e3f9,'*Set\x20format:*\x20%0',_0x488ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0xd6e3f9,'*Remove\x20format:*\x20%0',_0x488ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x48a7fd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4520e3){super(_0x4520e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3397e0=this['editor'],_0x237a35=_0x3397e0['model']['document']['selection'];if(!_0x3397e0['plugins']['has']('TableEditing'))return;const _0x50e768=_0x3397e0['locale'],_0x4ed850=_0x3397e0['plugins']['get']('TrackChangesEditing'),_0x529ddc=_0x3397e0['plugins']['get']('TableUtils');_0x4ed850['descriptionFactory']['registerElementLabel']('table',_0x8a463=>At(_0x50e768,'ELEMENT_TABLE',_0x8a463)),this['_setupColumnsRowsFixing'](),_0x4ed850['enableCommand']('insertTable'),_0x4ed850['enableCommand']('selectTableRow'),_0x4ed850['enableCommand']('selectTableColumn');for(const _0x5e071b of['insertTableRowAbove','insertTableRowBelow']){const _0x179182=_0x3397e0['commands']['get'](_0x5e071b);_0x4ed850['enableCommand'](_0x5e071b,_0x52360c=>{_0x3397e0['model']['change'](_0x55e20b=>{_0x52360c();const _0x50bdf0='above'===_0x179182['order'],_0xd9a411=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x3a2e47=_0x529ddc['getRowIndexes'](_0xd9a411),_0x6c49a6=_0x50bdf0?_0x3a2e47['first']-0x1:_0x3a2e47['last']+0x1,_0x50256a=_0xd9a411[0x0]['findAncestor']('table'),_0x5772d=_0x529ddc['createTableWalker'](_0x50256a,{'startRow':_0x6c49a6,'endRow':_0x6c49a6}),_0x2231ba=Array['from'](_0x5772d)['map'](_0x4aa597=>_0x55e20b['createRangeOn'](_0x4aa597['cell']));_0x4ed850['markMultiRangeInsertion'](_0x2231ba,'tableRow');});});}for(const _0x32d2e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x138b2d=_0x3397e0['commands']['get'](_0x32d2e6);_0x4ed850['enableCommand'](_0x32d2e6,_0x2e13f3=>{_0x3397e0['model']['change'](_0x5749fd=>{_0x2e13f3();const _0x56ca4e='left'===_0x138b2d['order'],_0x3bbc13=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x9ad864=_0x529ddc['getColumnIndexes'](_0x3bbc13),_0x33924f=_0x56ca4e?_0x9ad864['first']-0x1:_0x9ad864['last']+0x1,_0x351836=_0x3bbc13[0x0]['findAncestor']('table'),_0x49793a=_0x529ddc['createTableWalker'](_0x351836,{'startRow':0x0,'column':_0x33924f,'includeAllSlots':!0x1}),_0x1563a3=Array['from'](_0x49793a)['map'](_0x3ebce6=>_0x5749fd['createRangeOn'](_0x3ebce6['cell']));_0x4ed850['markMultiRangeInsertion'](_0x1563a3,'tableColumn');});});}for(const _0x4bbed0 of['removeTableRow','removeTableColumn']){const _0x48cd53=_0x4bbed0['substr'](0xb),_0x1bd23b=_0x48cd53['toLowerCase'](),_0x483249=_0x1bd23b['substr'](0x0,0x3)+'span',_0x13f342='table'+_0x48cd53,_0x4f6589='min'+_0x48cd53,_0x4e2a0e='max'+_0x48cd53;_0x4ed850['enableCommand'](_0x4bbed0,()=>{_0x3397e0['model']['change'](_0x3e8523=>{const _0x32a739=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x56fa0e=_0x32a739[0x0]['findAncestor']('table');let _0x50c17b;if('removeTableRow'==_0x4bbed0){const _0x1e79be=_0x529ddc['getRowIndexes'](_0x32a739);_0x50c17b={'startRow':_0x1e79be['first'],'endRow':_0x1e79be['last'],'includeAllSlots':!0x0};}else{const _0x507a50=_0x529ddc['getColumnIndexes'](_0x32a739);_0x50c17b={'startColumn':_0x507a50['first'],'endColumn':_0x507a50['last'],'includeAllSlots':!0x0};}const _0x32d82e=_0x529ddc['createTableWalker'](_0x56fa0e,_0x50c17b),_0xd1dd3b=Array['from'](_0x32d82e)['map'](({cell:_0x5cb11b})=>_0x5cb11b),_0x549973=Re(_0xd1dd3b['filter'](_0x5234a5=>_0x5234a5['hasAttribute'](_0x483249))),_0x4f17f6=Re(_0xd1dd3b['filter'](_0x1ea114=>!_0x1ea114['hasAttribute'](_0x483249)))['map'](_0x50cc7f=>_0x3e8523['createRangeOn'](_0x50cc7f)),_0x4b149a=_0x4ed850['markMultiRangeDeletion'](_0x4f17f6,_0x13f342);if(_0x4b149a&&('tableRow'==_0x4b149a['subType']||'tableColumn'==_0x4b149a['subType'])){const _0x34d815=this['_getSuggestionCoords'](_0x4b149a);for(const _0x10fbf0 of _0x549973){const _0x3cd9ba=_0x3e8523['createRangeOn'](_0x10fbf0),_0xcbd4c5=_0x529ddc['getCellLocation'](_0x10fbf0),_0xcf21e7=_0x10fbf0['getAttribute'](_0x483249)-0x1,_0x2826f2=_0x34d815[_0x4f6589],_0x5044a9=_0x34d815[_0x4e2a0e];_0x2826f2<=_0xcbd4c5[_0x1bd23b]&&_0xcbd4c5[_0x1bd23b]+_0xcf21e7<=_0x5044a9&&_0x4b149a['addRange'](_0x3cd9ba);}}});});}function _0x3a81de(_0x16e24d){const _0x14cb33=Array['from'](_0x237a35['getRanges']())['map'](_0xd782ed=>_0x211ae6['fromRange'](_0xd782ed));_0x3397e0['model']['change'](_0x580593=>{const _0x120fc8=_0x580593['batch'];_0x16e24d=_0x16e24d['filter'](_0x5e62db=>'$graveyard'!=_0x5e62db['root']['rootName']),_0x580593['setSelection'](_0x16e24d),_0x3397e0['commands']['get']('removeTableRow')['refresh'](),_0x3397e0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3397e0['model']['enqueueChange'](()=>{_0x3397e0['model']['enqueueChange'](_0x120fc8,_0x5b802e=>{const _0x983aad=_0x14cb33['filter'](_0x1fe5c2=>'$graveyard'!=_0x1fe5c2['root']['rootName']);_0x983aad['length']>0x0&&_0x5b802e['setSelection'](_0x983aad);for(const _0x55928c of _0x14cb33)_0x55928c['detach']();});});});}function _0x3a745f(_0xb00cbc){_0x3397e0['model']['change'](_0x2009f0=>{const _0x143325=Array['from'](_0x237a35['getRanges']())['map'](_0x81e027=>_0x211ae6['fromRange'](_0x81e027)),_0x169013=[];for(const _0x51bec2 of _0xb00cbc)for(const _0xb00d2e of _0x51bec2['getItems']({'shallow':!0x0}))_0x169013['push'](_0xb00d2e);for(const _0x443c1f of _0x169013)'$graveyard'!=_0x443c1f['root']['rootName']&&(_0x2009f0['setSelection'](_0x2009f0['createPositionAt'](_0x443c1f,0x0)),_0x3397e0['commands']['get']('removeTableColumn')['refresh'](),_0x3397e0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x51f1f8=_0x143325['filter'](_0x2ef171=>'$graveyard'!=_0x2ef171['root']['rootName']);_0x51f1f8['length']>0x0&&_0x2009f0['setSelection'](_0x51f1f8);for(const _0x3f228e of _0x143325)_0x3f228e['detach']();});}function _0x5858ab(_0x43d6c1,_0x4d7380){return _0x4d7380['every'](_0x14e7b0=>_0x43d6c1['some'](_0xfd9803=>_0xfd9803['end']['isEqual'](_0x14e7b0['start'])||_0x14e7b0['end']['isEqual'](_0xfd9803['start'])));}function _0x234770(_0x4d3b2b,_0x3834ac){return!_0x4d3b2b['some'](_0x3e8406=>_0x3834ac['some'](_0x3b1bfa=>_0x3e8406['isIntersecting'](_0x3b1bfa)))&&_0x4d3b2b['some'](_0x3a319e=>_0x3834ac['some'](_0x2b33ea=>_0x3a319e['end']['isTouching'](_0x2b33ea['start'])));}_0x4ed850['descriptionFactory']['registerDescriptionCallback'](_0x4414f7=>{if('insertion'!=_0x4414f7['type']&&'deletion'!=_0x4414f7['type'])return;const _0xc57aec=_0x4414f7['getContainedElement']();if(null!=_0xc57aec&&_0xc57aec['is']('element','table')){if('insertion'==_0x4414f7['type']){const _0x53b08b=_0x4414f7['getItems']()['filter'](_0xccd7de=>_0xccd7de['is']('$textProxy'))['map'](_0x3c84ff=>_0x3c84ff['data']);if(_0x53b08b['length'])return{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53b08b['join']('\x20')+'\x22'))};}if('deletion'==_0x4414f7['type']){const _0xb2d41d=_0x4414f7['getItems']()['filter'](_0x52acb3=>_0x52acb3['is']('$textProxy'))['map'](_0x19b532=>_0x19b532['data']);if(_0xb2d41d['length'])return{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb2d41d['join']('\x20')+'\x22'))};}}}),_0x4ed850['descriptionFactory']['registerDescriptionCallback'](_0x74919d=>{if('tableRow'==_0x74919d['subType']){const _0x537306=_0x74919d['getItems']()['filter'](_0x27b6a0=>_0x27b6a0['is']('$textProxy'))['map'](_0x485898=>_0x485898['data']),_0x41a2d8=this['_getSuggestionCoords'](_0x74919d),_0x3f5270=_0x41a2d8['maxRow']-_0x41a2d8['minRow']+0x1;if('insertion'==_0x74919d['type'])return _0x537306['length']?{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f5270,'\x22'+_0x537306['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW',_0x3f5270))};if('deletion'==_0x74919d['type'])return _0x537306['length']?{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f5270,'\x22'+_0x537306['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW',_0x3f5270))};}if('tableColumn'==_0x74919d['subType']){const _0x3ad3ca=_0x74919d['getItems']()['filter'](_0x16b481=>_0x16b481['is']('$textProxy'))['map'](_0x5f24f8=>_0x5f24f8['data']),_0x17ea75=this['_getSuggestionCoords'](_0x74919d),_0x2e41cf=_0x17ea75['maxColumn']-_0x17ea75['minColumn']+0x1;if('insertion'==_0x74919d['type'])return _0x3ad3ca['length']?{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e41cf,'\x22'+_0x3ad3ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN',_0x2e41cf))};if('deletion'==_0x74919d['type'])return _0x3ad3ca['length']?{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e41cf,'\x22'+_0x3ad3ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN',_0x2e41cf))};}}),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a81de),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a81de),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3a745f),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3a745f),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5858ab),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5858ab),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x234770),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x234770);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3557cb=this['editor'],_0x8e06e6=_0x3557cb['model']['document']['selection'];return(_0x3decd1,_0xd3053e)=>{_0x3557cb['model']['change'](_0x18c277=>{const {commandName:_0x3090d3,commandParams:_0x3e9ee2}=_0xd3053e;let _0x5965dc=_0x3decd1[0x0]['end']['nodeBefore'];_0x3e9ee2&&_0x3e9ee2[0x0]&&!0x1===_0x3e9ee2[0x0]['forceValue']&&(_0x5965dc=_0x3decd1[0x0]['start']['nodeAfter']);const _0x682194=_0x18c277['createRangeIn'](_0x5965dc);if('$graveyard'==_0x682194['root']['rootName'])return;const _0x5627f9=Array['from'](_0x8e06e6['getRanges']())['map'](_0x5e4fe4=>_0x211ae6['fromRange'](_0x5e4fe4));_0x18c277['setSelection'](_0x682194),_0x3557cb['commands']['get'](_0x3090d3)['refresh'](),_0x3e9ee2['push']({'forceDefaultExecution':!0x0}),_0x3557cb['execute'](_0x3090d3,..._0x3e9ee2);const _0x1d9a9d=_0x5627f9['filter'](_0x1123e5=>'$graveyard'!=_0x1123e5['root']['rootName']);_0x1d9a9d['length']>0x0&&_0x18c277['setSelection'](_0x1d9a9d);for(const _0x465f12 of _0x5627f9)_0x465f12['detach']();});};}['_getCoordsForCells'](_0x18859c){const _0x4c4657=this['editor']['plugins']['get']('TableUtils');let _0x19ae58=Number['MAX_SAFE_INTEGER'],_0x3de96e=Number['MIN_SAFE_INTEGER'],_0x386e53=Number['MAX_SAFE_INTEGER'],_0xd1dcaf=Number['MIN_SAFE_INTEGER'];for(const _0xc18132 of _0x18859c){if('$graveyard'==_0xc18132['root']['rootName'])continue;const {row:_0x4bf345,column:_0x3d8841}=_0x4c4657['getCellLocation'](_0xc18132),_0x416597=_0xc18132['hasAttribute']('rowspan')?_0xc18132['getAttribute']('rowspan')-0x1:0x0,_0x3f687e=_0xc18132['hasAttribute']('colspan')?_0xc18132['getAttribute']('colspan')-0x1:0x0;_0x19ae58=_0x4bf345<_0x19ae58?_0x4bf345:_0x19ae58,_0x3de96e=_0x4bf345+_0x416597>_0x3de96e?_0x4bf345+_0x416597:_0x3de96e,_0x386e53=_0x3d8841<_0x386e53?_0x3d8841:_0x386e53,_0xd1dcaf=_0x3d8841+_0x3f687e>_0xd1dcaf?_0x3d8841+_0x3f687e:_0xd1dcaf;}return{'minRow':_0x19ae58,'maxRow':_0x3de96e,'minColumn':_0x386e53,'maxColumn':_0xd1dcaf};}['_setupColumnsRowsFixing'](){const _0x3dea1f=this['editor'],_0x518af5=_0x3dea1f['plugins']['get']('TrackChangesEditing'),_0x4acdc1=_0x3dea1f['plugins']['get']('TableUtils');_0x3dea1f['model']['document']['on']('change:data',()=>{const _0x2d24bc=Array['from'](_0x3dea1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f9cf,data:_0x312251}of _0x2d24bc){const {group:_0xd9da9a,id:_0x3a816e,subType:_0x17120d}=_0x2cca50(_0x59f9cf);if('suggestion'!=_0xd9da9a)continue;if(null!=_0x312251['oldRange'])continue;const _0x1e92cd=_0x518af5['getSuggestion'](_0x3a816e);this['_tablePostFixingSubtypes']['includes'](_0x17120d)&&this['_tableSuggestions']['add'](_0x1e92cd);}},{'priority':'low'});const _0x281c44=(_0x46a634,_0x5f2504)=>{let _0x19eb06=!0x1;const _0x37d066=_0x5f2504['createRangeOn'](_0x46a634),_0x108403=_0x46a634['findAncestor']('table'),_0x50de35=_0x4acdc1['getCellLocation'](_0x46a634);for(const _0x18c2ac of this['_tableSuggestions']){const _0x132d8b=_0x18c2ac['subType'],_0x42647d=_0x132d8b['startsWith']('tablePaste'),_0x2687e1=_0x132d8b['substr'](_0x42647d?0xa:0x5),_0x14bbef=_0x2687e1['toLowerCase'](),_0x391f0d=_0x14bbef['substr'](0x0,0x3)+'span',_0x46e0b1='min'+_0x2687e1,_0x1aa37c='max'+_0x2687e1;if(!_0x18c2ac['isInContent'])continue;if(_0x108403!=_0x18c2ac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x18c2ac['isIntersectingWithRange'](_0x37d066))continue;const _0x32dc3e=_0x46a634['hasAttribute'](_0x391f0d)?_0x46a634['getAttribute'](_0x391f0d)-0x1:0x0,_0x5514e8=this['_getSuggestionCoords'](_0x18c2ac),_0x423653=_0x5514e8[_0x46e0b1],_0x476ce5=_0x5514e8[_0x1aa37c];_0x423653<=_0x50de35[_0x14bbef]&&_0x50de35[_0x14bbef]+_0x32dc3e<=_0x476ce5&&(_0x18c2ac['addRange'](_0x37d066),_0x19eb06=!0x0);}return _0x19eb06;};_0x3dea1f['model']['document']['registerPostFixer'](_0xc46140=>{let _0x579f49=!0x1;for(const _0x111279 of _0x3dea1f['model']['document']['differ']['getChanges']())if('insert'==_0x111279['type']){if('tableRow'==_0x111279['name']){for(const _0x23debf of _0x111279['position']['nodeAfter']['getChildren']())_0x579f49=_0x579f49||_0x281c44(_0x23debf,_0xc46140);}else'tableCell'==_0x111279['name']&&(_0x579f49=_0x579f49||_0x281c44(_0x111279['position']['nodeAfter'],_0xc46140));}return _0x579f49;});}['_getSuggestionCoords'](_0x3cbd29){return this['_getCoordsForCells'](_0x3cbd29['getRanges']()['map'](_0x385fae=>_0x385fae['start']['nodeAfter']));}}function Re(_0xe15c7e){return Array['from'](new Set(_0xe15c7e)['values']());}class Se extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x4a8493=this['editor'],_0x12c638=_0x4a8493['model']['document']['selection'],_0x3e7286=_0x4a8493['locale'];if(!_0x4a8493['plugins']['has']('TableEditing'))return;const _0x255bd4=_0x4a8493['plugins']['get']('TrackChangesEditing'),_0x3c7665=_0x4a8493['plugins']['get']('TableUtils'),_0x25f78e=_0x4a8493['plugins']['get'](Ne);_0x25f78e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x255bd4['enableCommand']('mergeTableCells',()=>{const _0x4cacbf=_0x3c7665['getSelectionAffectedTableCells'](_0x4a8493['model']['document']['selection']);_0x4a8493['model']['change'](()=>{_0x255bd4['markMultiRangeBlockFormat'](_0x4cacbf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a8493['commands']['get']('mergeTableCells')['on']('execute',(_0x36cb2d,_0x3e47ef)=>{_0x4a8493['commands']['get']('trackChanges')['value']&&(_0x3e47ef['length']>0x0&&_0x3e47ef[_0x3e47ef['length']-0x1]&&_0x3e47ef[_0x3e47ef['length']-0x1]['forceDefaultExecution']||_0x255bd4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36cb2d['stop']());},{'priority':'highest'});for(const _0x11712a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x87f9f7=_0x4a8493['commands']['get'](_0x11712a);_0x255bd4['enableCommand'](_0x11712a,()=>{const _0x4af043=_0x4a8493['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x309800=>_0x309800['is']('element','tableCell')),_0x4713e6=_0x87f9f7['value'];_0x4a8493['model']['change'](()=>{_0x255bd4['markMultiRangeBlockFormat']([_0x4af043,_0x4713e6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x209362 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1883f0=_0x4a8493['commands']['get'](_0x209362);_0x255bd4['enableCommand'](_0x209362,()=>{const _0x251f85=_0x3c7665['getSelectionAffectedTableCells'](_0x4a8493['model']['document']['selection'])[0x0],_0x17b157=_0x251f85['findAncestor']('table'),{column:_0xe2078d,row:_0x2506ec}=_0x3c7665['getCellLocation'](_0x251f85);let _0x540264=[];if('horizontally'==_0x1883f0['direction']){const _0x1981f5=_0x3c7665['createTableWalker'](_0x17b157,{'startRow':_0x2506ec,'endRow':_0x2506ec,'includeAllSlots':!0x0});_0x540264=Array['from'](_0x1981f5)['map'](_0x42dbfa=>_0x42dbfa['cell']);}else{const _0x21d3b9=_0x3c7665['createTableWalker'](_0x17b157,{'column':_0xe2078d,'includeAllSlots':!0x0});_0x540264=Array['from'](_0x21d3b9)['map'](_0x33b735=>_0x33b735['cell']);}_0x4a8493['model']['change'](_0x58a1b8=>{_0x255bd4['markBlockFormat'](_0x58a1b8['createRangeOn'](_0x251f85),{'commandName':_0x209362,'commandParams':[]},_0x540264,_0x209362);});});}_0x255bd4['descriptionFactory']['registerDescriptionCallback'](_0x3cc31a=>{if('formatBlock'!=_0x3cc31a['type']&&'formatInline'!=_0x3cc31a['type'])return;const {data:_0xd3d6f4}=_0x3cc31a;return _0xd3d6f4&&'mergeTableCells'==_0xd3d6f4['commandName']?{'type':'format','content':At(_0x3e7286,'*Merge\x20cells*')}:void 0x0;}),_0x255bd4['descriptionFactory']['registerDescriptionCallback'](_0xbaa3b7=>{if('formatBlock'!=_0xbaa3b7['type']&&'formatInline'!=_0xbaa3b7['type'])return;const {data:_0x1ae401}=_0xbaa3b7;return _0x1ae401?'splitTableCellVertically'==_0x1ae401['commandName']?{'type':'format','content':At(_0x3e7286,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1ae401['commandName']?{'type':'format','content':At(_0x3e7286,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1457f9=_0x25f78e['_acceptFormatSuggestionCallbackFactory']();for(const _0x9230d2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9230d2,'accept',_0x1457f9);for(const _0x465f34 of['splitTableCellVertically','splitTableCellHorizontally'])_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x465f34,'accept',_0x1457f9);_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b788e=>{_0x4a8493['model']['change'](_0x59db06=>{const _0x518983=Array['from'](_0x12c638['getRanges']())['map'](_0x4cee34=>_0x211ae6['fromRange'](_0x4cee34));_0x59db06['setSelection'](_0x1b788e),_0x4a8493['commands']['get']('mergeTableCells')['refresh'](),_0x4a8493['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x489fe0=_0x518983['filter'](_0x3b3c34=>'$graveyard'!=_0x3b3c34['root']['rootName']);_0x489fe0['length']>0x0&&_0x59db06['setSelection'](_0x489fe0);for(const _0x12d435 of _0x518983)_0x12d435['detach']();});});for(const _0x5b0170 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13c7d4=_0x4a8493['commands']['get'](_0x5b0170);_0x13c7d4['on']('set:isEnabled',(_0x4442b4,_0x357fcb,_0x43f626)=>{if(_0x43f626){const _0x25767d=_0x4a8493['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3db91b=>_0x3db91b['is']('element','tableCell'));this['_areMergableCells'](_0x13c7d4['value'],_0x25767d)||(_0x4442b4['return']=!0x1,_0x4442b4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x145ecf=this['editor']['commands']['get']('mergeTableCells'),_0x45cfa2=this['editor']['plugins']['get']('TableUtils');if(!_0x145ecf['isEnabled'])return!0x1;const _0x370a2e=_0x45cfa2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a8d07 of _0x370a2e)for(const _0x1d91d3 of _0x370a2e)if(_0x3a8d07!=_0x1d91d3&&!this['_areMergableCells'](_0x3a8d07,_0x1d91d3))return!0x1;return!0x0;}['_areMergableCells'](_0x41a10f,_0x3d6296){const _0x1bc030=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4418cb=this['editor']['model']['createRangeOn'](_0x41a10f),_0x56983d=this['editor']['model']['createRangeOn'](_0x3d6296),_0x2b144c=new Set(),_0x56715c=new Set();for(const _0x50c1ec of _0x1bc030['getSuggestions']())if(('insertion'==_0x50c1ec['type']||'deletion'==_0x50c1ec['type']||'mergeTableCells'==_0x50c1ec['subType'])&&_0x50c1ec['isInContent']){for(const _0xb7e4e3 of _0x50c1ec['getRanges']())_0xb7e4e3['containsRange'](_0x4418cb,!0x0)&&_0x2b144c['add'](_0x50c1ec['type']+':'+_0x50c1ec['author']['id']),_0xb7e4e3['containsRange'](_0x56983d,!0x0)&&_0x56715c['add'](_0x50c1ec['type']+':'+_0x50c1ec['author']['id']);}if(_0x2b144c['size']!=_0x56715c['size'])return!0x1;for(const _0x55f72c of _0x2b144c)if(!_0x56715c['has'](_0x55f72c))return!0x1;return!0x0;}}class Me extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x2228a6=this['editor'];if(!_0x2228a6['plugins']['has']('TableEditing'))return;const _0xd49b1=_0x2228a6['locale'],_0x55e477=_0x2228a6['plugins']['get']('TrackChangesEditing');_0x55e477['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55e477['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55e477['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0xd49b1,'FORMAT_HEADER_ROW')),_0x55e477['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0xd49b1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10ab57=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee1937=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x10ab57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xee1937),_0x10ab57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xee1937),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x32c069=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29a99b=this['editor']['plugins']['get']('TableUtils');function _0x18588d({showActiveMarker:_0x5c6d0c=!0x0,setDataAttribute:_0x344620=!0x0}={}){return(_0x370ffc,_0x49e6d1,_0x164bb2)=>{const {type:_0x5f0b74,id:_0x34217c}=_0x2cca50(_0x49e6d1['markerName']);if(!_0x32c069['hasSuggestion'](_0x34217c))return;const _0xd483ba=_0x32c069['getSuggestion'](_0x34217c),_0x1eb64b=_0xd483ba['data'];if('formatBlock'!=_0xd483ba['type']||!_0x1eb64b||'setTableColumnHeader'!=_0x1eb64b['commandName'])return;if(_0x49e6d1['item'])return void _0x370ffc['stop']();if(!_0x164bb2['consumable']['consume'](_0x49e6d1['markerRange'],_0x370ffc['name']))return;const _0x324841=_0x49e6d1['markerRange']['start']['nodeAfter'],_0x4b175f=_0x49e6d1['markerRange']['end']['nodeBefore'],_0x30a3f3=_0x324841['parent']['parent'],{column:_0x1be039}=_0x29a99b['getCellLocation'](_0x324841),{column:_0x3b2f50}=_0x29a99b['getCellLocation'](_0x4b175f);for(let _0x4884db=_0x1be039;_0x4884db<=_0x3b2f50;_0x4884db++){const _0x5518bb=_0x29a99b['createTableWalker'](_0x30a3f3,{'column':_0x4884db,'includeAllSlots':!0x1});for(const _0x4ca9a9 of _0x5518bb){const _0x2ca914=_0x4ca9a9['cell'],_0x1aafca=_0x164bb2['mapper']['toViewElement'](_0x2ca914);_0x164bb2['writer']['addClass']('ck-suggestion-marker-'+_0x5f0b74,_0x1aafca),_0x344620&&_0x164bb2['writer']['setAttribute']('data-suggestion',_0x34217c,_0x1aafca),_0x164bb2['mapper']['bindElementToMarker'](_0x1aafca,_0x49e6d1['markerName']),_0x5c6d0c&&(_0x32c069['activeMarkers']['includes'](_0x49e6d1['markerName'])?_0x164bb2['writer']['addClass']('ck-suggestion-marker--active',_0x1aafca):_0x164bb2['writer']['removeClass']('ck-suggestion-marker--active',_0x1aafca));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x18588d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e44d2,_0x89dfd5,_0x4216b8)=>{_0x4216b8['options']['showSuggestionHighlights']&&_0x18588d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e44d2,_0x89dfd5,_0x4216b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c55dc,_0x4811c2,_0x1b1cad)=>{const {type:_0x70d828,id:_0x4e843f}=_0x2cca50(_0x4811c2['markerName']);if(!_0x32c069['hasSuggestion'](_0x4e843f))return;const _0x5265a3=_0x32c069['getSuggestion'](_0x4e843f),_0x54caf6=_0x5265a3['data'];if('formatBlock'!=_0x5265a3['type']||!_0x54caf6||'setTableColumnHeader'!=_0x54caf6['commandName'])return;const _0x44fc5f=_0x1b1cad['mapper']['markerNameToElements'](_0x4811c2['markerName']);if(_0x44fc5f){for(const _0x3537a0 of _0x44fc5f)_0x1b1cad['writer']['removeClass']('ck-suggestion-marker-'+_0x70d828,_0x3537a0),_0x1b1cad['writer']['removeClass']('ck-suggestion-marker--active',_0x3537a0),_0x1b1cad['writer']['removeAttribute']('data-suggestion',_0x3537a0),_0x1b1cad['mapper']['unbindElementFromMarkerName'](_0x3537a0,_0x4811c2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4a1072=this['editor'],_0x306d0b=_0x4a1072['locale'];function _0x38915a(_0x36e060){return{'type':'format','content':At(_0x306d0b,'*Format:*\x20%0',_0x36e060)};}_0x4a1072['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417b3b=>{if('formatBlock'!=_0x417b3b['type'])return;const {data:_0x3a6ec5}=_0x417b3b;if(_0x3a6ec5){if('setTableRowHeader'==_0x3a6ec5['commandName']){const _0x1dafe9=_0x3a6ec5['commandParams'][0x0]['forceValue'];return _0x38915a(At(_0x306d0b,_0x1dafe9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3a6ec5['commandName']){const _0x2eb3d6=_0x3a6ec5['commandParams'][0x0]['forceValue'];return _0x38915a(At(_0x306d0b,_0x2eb3d6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x65725a=this['editor'];if(!_0x65725a['plugins']['has']('TableEditing')||!_0x65725a['config']['get']('table.enableFooters'))return;const _0x404bbd=_0x65725a['locale'],_0x564e1c=_0x65725a['plugins']['get']('TrackChangesEditing');_0x564e1c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x564e1c['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x404bbd,'FORMAT_FOOTER_ROW'));}}class we extends _0x48a7fd{['afterInit'](){const _0x1a05fb=this['editor'],_0x1d55cd=_0x1a05fb['locale'],_0x3ef4dc=_0x1a05fb['plugins']['get']('TrackChangesEditing');function _0x38f3f5(_0x22e242){return{'type':'format','content':''+At(_0x1d55cd,'*Set\x20table\x20type:*\x20%0',_0x22e242)};}_0x1a05fb['plugins']['has']('TableLayout')&&(_0x3ef4dc['enableCommand']('insertTableLayout'),_0x3ef4dc['enableDefaultAttributesIntegration']('tableType'),_0x3ef4dc['descriptionFactory']['registerElementLabel'](_0x88b6a6=>_0x88b6a6['is']('element','table')&&'layout'===_0x88b6a6['getAttribute']('tableType'),_0x3695d5=>At(_0x1d55cd,'ELEMENT_LAYOUT_TABLE',_0x3695d5)),_0x3ef4dc['descriptionFactory']['registerDescriptionCallback'](_0x20939b=>{const {data:_0x162af7}=_0x20939b;if(_0x162af7&&'tableType'==_0x162af7['key'])switch(_0x162af7['newValue']){case'layout':return _0x38f3f5(At(_0x1d55cd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x38f3f5(At(_0x1d55cd,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2c14a3=>[_0x2c14a3,null]));class De extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x36f1c0=this['editor'];if(!_0x36f1c0['plugins']['has']('TableClipboard'))return;const _0x453bf3=_0x36f1c0['plugins']['get']('TrackChangesEditing'),_0x47cce3=_0x36f1c0['plugins']['get']('TableUtils'),_0x3d9921=_0x36f1c0['plugins']['get'](Ne),_0x449693=_0x36f1c0['plugins']['get']('TableClipboard'),_0x520115=_0x36f1c0['plugins']['get']('TableSelection'),_0x3dd0bb=_0x36f1c0['plugins']['get'](ut);_0x3d9921['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x36f1c0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x36f1c0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x181aef=null,_0x114b1a=!0x1;_0x3dd0bb['on']('contentInsertion',(_0x3d635f,_0x34c826)=>{_0x114b1a='paste'===_0x34c826['method'];}),_0x36f1c0['model']['on']('insertContent',(_0x209d57,_0x421d71)=>{if(!_0x114b1a&&null===_0x520115['getSelectedTableCells']())return;const [_0x3cda61,_0x5de316]=_0x421d71,_0xd94c6a=_0x421d71[_0x421d71['length']-0x1];_0xd94c6a&&_0xd94c6a['forceDefaultExecution']||_0x453bf3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x311f71,_0x1b7f11,_0x2b001a,_0x5c75e4,_0x3f8684){if(_0x1b7f11&&!_0x1b7f11['is']('documentSelection'))return!0x1;const _0x1b7120=_0x3f8684['getTableIfOnlyTableInContent'](_0x311f71,_0x2b001a);if(!_0x1b7120||!xe(_0x1b7120,void 0x0,_0x5c75e4))return!0x1;const _0x42e1c0=_0x5c75e4['getSelectionAffectedTableCells'](_0x2b001a['document']['selection']);if(!_0x42e1c0['length'])return!0x1;const _0x1c692f=_0x42e1c0[0x0]['findAncestor']('table'),_0x551325=_0x5c75e4['getRowIndexes'](_0x42e1c0),_0xbb293c=_0x5c75e4['getColumnIndexes'](_0x42e1c0),_0x2c55c4={'startRow':_0x551325['first'],'endRow':_0x551325['last'],'startColumn':_0xbb293c['first'],'endColumn':_0xbb293c['last']};return 0x1==_0x42e1c0['length']&&(_0x2c55c4['endRow']+=_0x5c75e4['getRows'](_0x1b7120)-0x1,_0x2c55c4['endColumn']+=_0x5c75e4['getColumns'](_0x1b7120)-0x1),xe(_0x1c692f,_0x2c55c4,_0x5c75e4);}(_0x3cda61,_0x5de316,_0x36f1c0['model'],_0x47cce3,_0x449693)&&(_0x209d57['stop'](),_0x181aef={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x36f1c0['model']['change'](()=>{_0x36f1c0['model']['insertContent'](_0x421d71[0x0],_0x421d71[0x1],_0x421d71[0x2],{'forceDefaultExecution':!0x0});const _0x1a9979=_0x2296a0(),{rowInsertionRanges:_0x50fc67,columnInsertionRanges:_0x18be06,insertionRanges:_0x5a92f1,deletionRanges:_0x16ab2a,cells:_0x3c39ec}=_0x181aef;_0x50fc67['length']&&_0x453bf3['markMultiRangeInsertion'](_0x50fc67,'tablePasteRow',{'tablePasteChainId':_0x1a9979}),_0x18be06['length']&&_0x453bf3['markMultiRangeInsertion'](_0x18be06,'tablePasteColumn',{'tablePasteChainId':_0x1a9979}),_0x5a92f1['length']&&(_0x453bf3['markMultiRangeInsertion'](_0x5a92f1,'tablePaste',{'tablePasteChainId':_0x1a9979,'skipNestingCheck':!0x0}),_0x5a92f1['forEach'](_0x3da207=>_0x3da207['detach']?.())),_0x16ab2a['length']&&(_0x453bf3['markMultiRangeDeletion'](_0x16ab2a,'tablePaste',{'tablePasteChainId':_0x1a9979,'skipNestingCheck':!0x0}),_0x16ab2a['forEach'](_0x1b6fa2=>_0x1b6fa2['detach']?.()));const _0x34bc3b=_0x453bf3['markMultiRangeBlockFormat'](_0x3c39ec['map'](({element:_0x2ae3bb})=>_0x2ae3bb),{'formatGroupId':_0x2296a0()},[],'tablePasteCell',{'tablePasteChainId':_0x1a9979});if(_0x34bc3b){const _0x3fb60c=_0x34bc3b['getMarkers'](),_0x5de11a=[];for(const {element:_0x3e1cf4,attributes:_0xac9e7d}of _0x3c39ec){if(!_0xac9e7d)continue;const _0x1e2d87=_0x36f1c0['model']['createRangeOn'](_0x3e1cf4),_0x20dd46=_0x3fb60c['find'](_0x376c2f=>_0x376c2f['getRange']()['isEqual'](_0x1e2d87));_0x20dd46&&_0x5de11a['push']([_0x20dd46['name'],_0xac9e7d]);}_0x5de11a['length']&&_0x34bc3b['setAttribute']('markerAttributes',Object['fromEntries'](_0x5de11a));}_0x181aef=null;}));},{'priority':_0x5c3de4['high']+0xa}),_0x3dd0bb['on']('contentInsertion',()=>{_0x114b1a=!0x1;},{'priority':'lowest'}),_0x36f1c0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x47200d,_0x52079b)=>{const [_0x5a7096,_0x3b21fb,,_0x6c5ebc]=_0x52079b;if(!_0x181aef)return;_0x47200d['stop']();const _0x1eaa85=_0x5a7096['cell'],_0x30f8ca=_0x3b21fb,_0x4d2892=ve(_0x1eaa85),_0x7c8b31=ve(_0x30f8ca);_0x47200d['return']=_0x1eaa85;let _0x2f18e8=null,_0x14eb84=null;if(_0x7c8b31||_0x4d2892){if(_0x4d2892&&!_0x7c8b31){_0x6c5ebc['remove'](_0x1eaa85['getChild'](0x0));for(const _0x25035e of Array['from'](_0x30f8ca['getChildren']()))_0x6c5ebc['insert'](_0x25035e,_0x1eaa85,'end');const _0x2134c1=_0x181aef['rowInsertionIndexes']['includes'](_0x5a7096['row']),_0x1e62db=_0x181aef['columnInsertionIndexes']['includes'](_0x5a7096['column']);_0x2134c1||_0x1e62db||(_0x2f18e8=_0x211ae6['fromRange'](_0x6c5ebc['createRangeIn'](_0x1eaa85)));}else _0x7c8b31&&!_0x4d2892&&(_0x14eb84=_0x6c5ebc['createRangeIn'](_0x1eaa85));}else{const _0x1b67da=_0x6c5ebc['createElement']('tableCellSuggestion'),_0x231b67=_0x6c5ebc['createElement']('tableCellSuggestion');_0x6c5ebc['wrap'](_0x6c5ebc['createRangeIn'](_0x1eaa85),_0x231b67),_0x6c5ebc['insert'](_0x1b67da,_0x1eaa85,0x0);for(const _0x516c52 of Array['from'](_0x30f8ca['getChildren']()))_0x6c5ebc['insert'](_0x516c52,_0x1b67da,'end');_0x2f18e8=_0x211ae6['fromRange'](_0x6c5ebc['createRangeOn'](_0x1b67da)),_0x14eb84=_0x211ae6['fromRange'](_0x6c5ebc['createRangeOn'](_0x231b67));}const _0x37e5cc=Array['from'](_0x30f8ca['getAttributes']())['filter'](([_0x2eee48])=>Be['includes'](_0x2eee48));_0x181aef['cells']['push']({'element':_0x1eaa85,'attributes':_0x37e5cc['length']?Object['fromEntries'](_0x37e5cc):null}),_0x2f18e8&&_0x181aef['insertionRanges']['push'](_0x2f18e8),_0x14eb84&&_0x181aef['deletionRanges']['push'](_0x14eb84);},{'priority':'high'}),_0x47cce3['on']('insertColumns',(_0x46ffdc,_0xcc87f2)=>{const [_0x5cbb93,_0x24d226={}]=_0xcc87f2;if(!_0x181aef)return;const _0x1079de=_0x24d226['at']||0x0,_0x2884ae=_0x24d226['columns']||0x1;_0x181aef['columnInsertionIndexes']=new Array(_0x2884ae)['fill'](_0x1079de)['map']((_0x1fbe9f,_0x39d0af)=>_0x1fbe9f+_0x39d0af);for(const {cell:_0x5ecbb4}of _0x47cce3['createTableWalker'](_0x5cbb93,{'startColumn':_0x1079de,'endColumn':_0x1079de+_0x2884ae-0x1}))_0x181aef['columnInsertionRanges']['push'](_0x36f1c0['model']['createRangeOn'](_0x5ecbb4));},{'priority':'low'}),_0x47cce3['on']('insertRows',(_0x1e1525,_0x2d0111)=>{const [_0x3293c1,_0x46e054={}]=_0x2d0111;if(!_0x181aef)return;const _0x37bb42=_0x46e054['at']||0x0,_0x3151ab=_0x46e054['rows']||0x1;_0x181aef['rowInsertionIndexes']=new Array(_0x3151ab)['fill'](_0x37bb42)['map']((_0x1fb59a,_0x82669d)=>_0x1fb59a+_0x82669d);for(const {cell:_0x1ee20b}of _0x47cce3['createTableWalker'](_0x3293c1,{'startRow':_0x37bb42,'endRow':_0x37bb42+_0x3151ab-0x1}))_0x181aef['rowInsertionRanges']['push'](_0x36f1c0['model']['createRangeOn'](_0x1ee20b));},{'priority':'low'}),_0x453bf3['descriptionFactory']['registerDescriptionCallback'](_0xb4125d=>{if(_0xb4125d['subType']&&_0xb4125d['subType']['startsWith']('tablePaste'))return _0xb4125d['previous']?{}:{'type':'insertion','content':At(_0x36f1c0['locale'],'*Replace\x20table\x20cells*')};});const _0x50a58c=()=>!0x1;for(const _0x3effa0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion',_0x3effa0,'join',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('deletion',_0x3effa0,'join',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3effa0,'join',_0x50a58c);_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f7d1f,_0x4f8f32,_0x5ce5b2)=>{const _0x34a385=_0x1f7d1f['map'](_0x5e86de=>_0x5e86de['getContainedElement']())['filter'](_0x294c2a=>_0x294c2a),_0x264990=new Map(_0x34a385['map'](_0x2de465=>[_0x2de465,null]));if(_0x181aef){for(const {element:_0x270520,attributes:_0x37dc3c}of _0x181aef['cells'])_0x37dc3c&&_0x264990['set'](_0x270520,_0x37dc3c);}else{if(_0x5ce5b2&&_0x5ce5b2['markerAttributes'])for(const [_0x3482fc,_0x14c71a]of Object['entries'](_0x5ce5b2['markerAttributes'])){const _0x19f069=_0x36f1c0['model']['markers']['get'](_0x3482fc),_0x5b2850=_0x19f069?_0x19f069['getRange']()['getContainedElement']():null;_0x5b2850&&_0x264990['set'](_0x5b2850,_0x14c71a);}}_0x36f1c0['model']['change'](_0x46aeba=>{for(const [_0x1b08e6,_0x232850]of _0x264990)_0x46aeba['setAttributes']({...Fe,..._0x232850},_0x1b08e6);});});const _0x23f65d=(_0x1ae397,_0xb80b23)=>{_0x453bf3['_suggestionFactory']['registerCustomCallback'](_0x1ae397,'tablePaste',_0xb80b23,(_0x399e35,_0x351c58,_0x1a4b4c)=>{_0x36f1c0['model']['change'](_0x33e228=>{const _0x32dafa=[];for(const _0x548643 of _0x399e35){const _0x30bd8f=_0x548643['start']['nodeAfter'];_0x30bd8f['is']('element','tableCellSuggestion')&&_0x32dafa['push'](_0x30bd8f);}_0x453bf3['_suggestionFactory']['getSuggestionCallback'](_0x1ae397,null,_0xb80b23)(_0x399e35,_0x351c58,_0x1a4b4c);for(const _0x58599b of _0x32dafa)'$graveyard'!=_0x58599b['root']['rootName']&&_0x33e228['unwrap'](_0x58599b);});});};_0x23f65d('insertion','accept'),_0x23f65d('insertion','discard'),_0x23f65d('deletion','accept'),_0x23f65d('deletion','discard'),_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xec10aa=>{const _0x50e06b=_0xec10aa['map'](_0x290ab7=>_0x290ab7['getContainedElement']()),_0x39c0a3=_0x50e06b[0x0]['findAncestor']('table'),{minRow:_0x25c3a6,maxRow:_0x393a10}=_0x3d9921['_getCoordsForCells'](_0x50e06b);_0x47cce3['removeRows'](_0x39c0a3,{'at':_0x25c3a6,'rows':_0x393a10-_0x25c3a6+0x1});}),_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3bcbb4=>{const _0x380bfc=_0x3bcbb4['map'](_0xacc65e=>_0xacc65e['getContainedElement']()),_0x56c6c1=_0x380bfc[0x0]['findAncestor']('table'),{minColumn:_0x1e2ef0,maxColumn:_0x19f817}=_0x3d9921['_getCoordsForCells'](_0x380bfc);_0x47cce3['removeColumns'](_0x56c6c1,{'at':_0x1e2ef0,'columns':_0x19f817-_0x1e2ef0+0x1});});const _0x4c12e8=(_0xfca8ff,_0x4dd48a)=>{if(!_0x4dd48a['subType']||!_0x4dd48a['subType']['startsWith']('tablePaste'))return;const _0x3a05a5=_0x4dd48a['attributes']['tablePasteChainId'],_0x4210f3=_0x453bf3['getSuggestions']()['filter'](_0x4adb1a=>_0x4adb1a['isInContent']&&_0x4adb1a['attributes']&&_0x4adb1a['attributes']['tablePasteChainId']==_0x3a05a5);_0x4210f3['length']&&_0x4dd48a['getAllAdjacentSuggestions']()['length']!=_0x4210f3['length']&&_0x4210f3['reduce']((_0xc85133,_0x2360f1)=>(_0xc85133['next']=_0x2360f1,_0x2360f1['previous']=_0xc85133,_0x2360f1));};function _0x1e4034(_0xcb74f5,_0x2063e6=!0x0){const {id:_0x36dac6,authorId:_0x2645ca}=_0x2cca50(_0xcb74f5['markerName']),_0x523345=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x468e09=_0x453bf3['activeMarkers']['includes'](_0xcb74f5['markerName']);return _0x468e09&&_0x523345['push']('ck-suggestion-marker--active'),{'classes':_0x523345,'attributes':{'data-suggestion':_0x36dac6,'data-author-id':_0x2645ca},'priority':_0x468e09&&_0x2063e6?0xbc2:0xbb8};}_0x453bf3['on']('suggestionLoaded',_0x4c12e8,{'priority':'high'}),_0x453bf3['on']('suggestionUnloaded',_0x4c12e8,{'priority':'high'}),_0x36f1c0['model']['document']['registerPostFixer'](()=>{let _0x43a042=!0x1;const _0x20758c=Array['from'](_0x36f1c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x224a88,data:_0x57c8ed}of _0x20758c){const {group:_0x123619,type:_0x8b8727,id:_0x52953b}=_0x2cca50(_0x224a88);if('suggestion'!=_0x123619||'deletion'!=_0x8b8727||_0x57c8ed['oldRange'])continue;if(!_0x453bf3['hasSuggestion'](_0x52953b))continue;const _0x31a73f=_0x453bf3['getSuggestion'](_0x52953b)['getRanges'](),_0x100a8c=_0x36f1c0['plugins']['get']('Users')['me'];for(const _0x4c8ff4 of _0x453bf3['getSuggestions']()){if(!_0x4c8ff4['isInContent']||_0x4c8ff4['author']!=_0x100a8c)continue;if('formatBlock'!=_0x4c8ff4['type']||'tablePasteCell'!=_0x4c8ff4['subType'])continue;if(_0x4c8ff4['getRanges']()['every'](_0x45d066=>_0x31a73f['some'](_0x576391=>_0x576391['containsRange'](_0x45d066,!0x0)))){for(const _0x473d35 of _0x4c8ff4['getAllAdjacentSuggestions']())_0x473d35['isInContent']&&(_0x473d35['discard'](),_0x43a042=!0x0);}}}return _0x43a042;}),_0x36f1c0['model']['document']['registerPostFixer'](_0x3a2db2=>{const _0x1877f1=_0x36f1c0['commands']['get']('redo');if(!_0x1877f1||!_0x1877f1['_createdBatches']['has'](_0x3a2db2['batch']))return!0x1;let _0xada322=!0x1;const _0x24b515=_0x36f1c0['plugins']['get']('Users')['me'],_0x20091b=_0x36f1c0['model']['document']['differ']['getChanges'](),_0x229764=Array['from'](_0x36f1c0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42f883,data:_0x18b583})=>{const {group:_0x28dbc3,subType:_0xf92814,authorId:_0x76d5d9}=_0x2cca50(_0x42f883);return'suggestion'==_0x28dbc3&&'tablePaste'==_0xf92814&&_0x76d5d9==_0x24b515['id']&&!_0x18b583['oldRange'];});for(const _0x7b5a6e of _0x20091b){if('insert'!=_0x7b5a6e['type']||'tableCellSuggestion'!=_0x7b5a6e['name']||0x1!=_0x7b5a6e['length'])continue;const _0x884202=_0x3a2db2['createRange'](_0x7b5a6e['position'],_0x7b5a6e['position']['getShiftedBy'](0x1));if(!_0x229764['find'](({data:_0x457acc})=>_0x457acc['newRange']['isEqual'](_0x884202))){for(const {name:_0x96bad9,data:_0x50b366}of _0x229764)if(_0x884202['containsRange'](_0x50b366['newRange'])){_0x3a2db2['updateMarker'](_0x96bad9,{'range':_0x884202}),_0xada322=!0x0;break;}}}return _0xada322;}),_0x36f1c0['model']['document']['registerPostFixer'](_0xbcdd1f=>{let _0x4ee574=!0x1;const _0x599eb1=_0x36f1c0['plugins']['get']('Users')['me'],_0x20ec01=_0x453bf3['getSuggestions']()['filter'](_0x2f44eb=>_0x2f44eb['isInContent']&&_0x2f44eb['author']==_0x599eb1),_0x4e4ae2=new Set(),_0x5e5335=new Set();for(const _0x27d642 of _0x20ec01)if('tablePaste'==_0x27d642['subType'])for(const _0x391aa2 of _0x27d642['getMarkers']()){const _0xddbc9c=_0x391aa2['getRange']()['getContainedElement']();if(_0xddbc9c){if(_0xddbc9c['is']('element','tableCellSuggestion')&&ve(_0xddbc9c)){_0x27d642['removeMarker'](_0x391aa2['name']),_0x4e4ae2['add'](_0xddbc9c),_0x4ee574=!0x0;const _0x539a0f=_0xddbc9c['nextSibling'],_0x39f431=_0xddbc9c['previousSibling'],_0x2b3c0c=_0x539a0f&&_0x539a0f['is']('element','tableCellSuggestion'),_0x242095=_0x39f431&&_0x39f431['is']('element','tableCellSuggestion');_0x2b3c0c&&!_0x4e4ae2['has'](_0x539a0f)&&_0x5e5335['add'](_0x539a0f),_0x242095&&!_0x4e4ae2['has'](_0x39f431)&&_0x5e5335['add'](_0x39f431);}else _0xddbc9c['is']('element','paragraph')&&_0xddbc9c['isEmpty']&&(_0x27d642['removeMarker'](_0x391aa2['name']),_0x4ee574=!0x0);}}else{if('tablePasteCell'==_0x27d642['subType']){if(!_0x27d642['attributes']||!_0x27d642['attributes']['tablePasteChainId'])continue;const _0x5eb7d6=_0x27d642['attributes']['markerAttributes'];if(_0x5eb7d6&&Object['keys'](_0x5eb7d6)['length'])continue;const _0x26e82c=_0x27d642['attributes']['tablePasteChainId'];let _0xfbd4ce=!0x0,_0x27b1e8=!0x0;for(const _0x2ef261 of _0x20ec01)if(_0x2ef261['subType']&&_0x2ef261['subType']['startsWith']('tablePaste')){if(!_0x2ef261['attributes']['tablePasteChainId']){_0x27b1e8=!0x1;break;}if(_0x2ef261['id']!=_0x27d642['id']&&_0x2ef261['attributes']['tablePasteChainId']==_0x26e82c){_0xfbd4ce=!0x1;break;}}_0x27b1e8&&_0xfbd4ce&&(_0x27d642['removeMarkers'](),_0x4ee574=!0x0);}}for(const _0x2c9d2e of _0x4e4ae2)_0xbcdd1f['remove'](_0x2c9d2e);for(const _0x491ca0 of _0x5e5335)_0xbcdd1f['unwrap'](_0x491ca0);return _0x4ee574;}),_0x36f1c0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x221d34=>_0x1e4034(_0x221d34),'converterPriority':'high'}),_0x36f1c0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38f6dd,_0x4897b9)=>_0x4897b9['options']['showSuggestionHighlights']?_0x1e4034(_0x38f6dd,!0x1):null,'converterPriority':'high'});const _0x10a281=_0x36f1c0['editing']['view'];this['listenTo'](_0x10a281['document'],'clipboardOutput',(_0x2e4373,_0x314f43)=>{const _0x501ee4=[];for(const _0x171869 of _0x10a281['createRangeIn'](_0x314f43['content'])['getItems']())_0x171869['is']('element','suggestion-td')&&_0x501ee4['push'](_0x171869);_0x10a281['change'](_0x3e2811=>{for(const _0x4889b4 of _0x501ee4)_0x3e2811['move'](_0x3e2811['createRangeIn'](_0x4889b4),_0x3e2811['createPositionBefore'](_0x4889b4)),_0x3e2811['remove'](_0x4889b4);});});}}function ve(_0x52207e){if(_0x52207e['isEmpty'])return!0x0;const _0x460533=_0x52207e['getChild'](0x0);return _0x460533['is']('element','paragraph')&&_0x460533['isEmpty'];}function xe(_0x55b116,_0xea1f58={},_0x560d30){for(const {isAnchor:_0x555766,cellHeight:_0x189a1f,cellWidth:_0x5c2c48}of _0x560d30['createTableWalker'](_0x55b116,{'includeAllSlots':!0x0,..._0xea1f58}))if(!_0x555766||0x1!=_0x189a1f||0x1!=_0x5c2c48)return!0x1;return!0x0;}class Pe extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b99fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b99fa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b99fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b99fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b99fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b99fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b99fa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xc753c3,_0x5d45a5){const _0x52bc58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4657b0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5bd3c5=_0x5d45a5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x587fff=_0x4657b0['getColumnGroupElement'](_0x5bd3c5);let _0x42b7b4=_0x587fff?_0x4657b0['getTableColumnsWidths'](_0x587fff):null,_0x234298=_0x5bd3c5['getAttribute']('tableWidth')||null;const _0x1d9399=_0x5d45a5['tableWidth']||_0x234298,_0x8aa6d3=_0x5d45a5['columnWidths']||_0x42b7b4,_0x5bf00f=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5a09 of _0x52bc58['getSuggestions']()){const _0x38b78d=_0x5c5a09['getContainedElement']();if('resizeTable'===_0x5c5a09['subType']&&_0x38b78d===_0x5bd3c5){_0x5c5a09['author']!==_0x5bf00f&&_0x5c5a09['discard']();const _0x12d4d3=_0x5c5a09['data']['commandParams'];_0x234298=_0x12d4d3[0x0]['tableWidth'],_0x42b7b4=_0x12d4d3[0x0]['columnWidths'];break;}}_0xc753c3({'table':_0x5bd3c5,'tableWidth':_0x1d9399,'columnWidths':_0x8aa6d3}),_0x52bc58['markBlockFormat'](_0x5bd3c5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x234298,'columnWidths':_0x42b7b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bc8fb){if('formatBlock'!=_0x3bc8fb['type']&&'formatInline'!=_0x3bc8fb['type'])return;const {data:_0x4ab51e}=_0x3bc8fb;if(_0x4ab51e&&'resizeTable'===_0x4ab51e['formatGroupId']){const _0xa60481='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0xa60481)};}}}class Ue extends _0x48a7fd{['afterInit'](){const _0x1b9013=this['editor'];_0x1b9013['plugins']['has']('Template')&&_0x1b9013['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x48a7fd{['afterInit'](){const _0x2e74ca=this['editor'];if(!_0x2e74ca['commands']['get']('insertTableOfContents'))return;_0x2e74ca['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1122df=_0x2e74ca['plugins']['get']('TrackChangesEditing'),_0x18f968=_0x2e74ca['locale'];_0x1122df['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a76b8=>At(_0x18f968,'ELEMENT_TABLE_OF_CONTENTS',_0x4a76b8));}}class He extends _0x48a7fd{['afterInit'](){const _0x1fdb79=this['editor'];if(!_0x1fdb79['plugins']['has']('Title'))return;_0x1fdb79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x1fdb79['locale'],'ELEMENT_TITLE')),_0x1fdb79['model']['document']['registerPostFixer'](_0x52be26=>{let _0x2215b5=!0x1;const _0x4f346a=Array['from'](_0x1fdb79['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3005cd,data:_0xfea79f}of _0x4f346a){const {group:_0x1fa090}=_0x2cca50(_0x3005cd);if('suggestion'!==_0x1fa090||!_0xfea79f['newRange'])continue;const _0xb8e9ba=_0xfea79f['newRange'],_0x5ed38a=_0xb8e9ba['end']['nodeBefore'];if(!_0x5ed38a||!_0x5ed38a['is']('element','title-content'))continue;if(!_0xb8e9ba['start']['isTouching'](_0xb8e9ba['end']))continue;const _0x31841a=_0x1fdb79['model']['schema']['getNearestSelectionRange'](_0xb8e9ba['end'],'forward');if(_0x31841a&&_0x31841a['isCollapsed']){const _0x40ab17=_0x52be26['createRange'](_0xb8e9ba['start'],_0x31841a['start']);_0x40ab17['isEqual'](_0xb8e9ba)||(_0x52be26['updateMarker'](_0x3005cd,{'range':_0x40ab17}),_0x2215b5=!0x0);}_0x2215b5||(_0x52be26['removeMarker'](_0x3005cd),_0x2215b5=!0x0);}return _0x2215b5;});}}class $e extends _0x48a7fd{['afterInit'](){const _0x2d2ecb=this['editor'],_0x5981be=_0x2d2ecb['plugins']['get']('TrackChangesEditing');_0x2d2ecb['plugins']['has']('Uploadcare')&&(_0x5981be['enableCommand']('uploadcare'),_0x2d2ecb['plugins']['has']('UploadcareImageEdit')&&(_0x5981be['enableCommand']('uploadcareImageEdit'),_0x5981be['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5981be['descriptionFactory']['registerDescriptionCallback'](_0x14fe9=>{if('attribute'!=_0x14fe9['type'])return;const {data:_0x3a283a}=_0x14fe9;return _0x3a283a&&'uploadcareImageId'==_0x3a283a['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x48a7fd{['afterInit'](){const _0x37501f=this['editor'],_0x515b13=_0x37501f['plugins']['get']('TrackChangesEditing');_0x37501f['plugins']['has']('UndoEditing')&&(_0x515b13['enableCommand']('undo'),_0x515b13['enableCommand']('redo'));}}class Ve extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x14b4f4=this['editor'];if(!_0x14b4f4['plugins']['has']('TableCaptionEditing'))return;_0x14b4f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x48a7fd{['tableProperties'];['tableCellProperties'];constructor(_0x4dc181){super(_0x4dc181),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 _0x3ed74c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39a92b of this['tableProperties'])_0x3ed74c['enableCommand'](_0x39a92b,(_0x17fd4f,_0x5363e3)=>{const _0x43caf2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39a92b,[_0x43caf2],this['tableProperties'],'tableProperties',_0x17fd4f,_0x5363e3);});_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ed74c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x56dcd6,_0x2fcc81)=>this['handleDiscardAction'](this['tableProperties'],_0x56dcd6,_0x2fcc81)),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4e3b01 of this['tableCellProperties'])this['editor']['commands']['get'](_0x4e3b01)&&_0x3ed74c['enableCommand'](_0x4e3b01,(_0x380c6d,_0x1c8365)=>{const _0x5f5c96=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4e3b01,_0x5f5c96,this['tableCellProperties'],'tableCellProperties',_0x380c6d,_0x1c8365);});_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ed74c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xdd5d4f,_0x554efc)=>this['handleDiscardAction'](this['tableCellProperties'],_0xdd5d4f,_0x554efc)),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3ed74c['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3ed74c['descriptionFactory']['registerDescriptionCallback'](_0x327664=>this['handleSuggestionDescription'](_0x327664)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x616ac5,_0x1f82db,_0x140aff,_0x3b6711,_0x338b91,_0x5137e1){const _0x39cb62=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5137e1['batch'],()=>{for(const _0x5a5bd8 of _0x1f82db){if(this['_getSuggestion'](_0x5a5bd8,_0x3b6711))_0x338b91(_0x5137e1);else{const _0x3d9ea0={};for(const _0x2d4c95 of _0x140aff){const _0x599e71=_0x5a5bd8['getAttribute'](_0x2d4c95);void 0x0!==_0x599e71&&(_0x3d9ea0[_0x2d4c95]=_0x599e71);}_0x338b91(_0x5137e1),_0x39cb62['markBlockFormat'](_0x5a5bd8,{'commandParams':[_0x3d9ea0]},[],_0x3b6711);}}});}['handleDiscardAction'](_0x29262a,_0x233672,_0x20d1db){const _0x2716b4=_0x233672[0x0]['start']['nodeAfter'],_0x5b45db=_0x20d1db['commandParams'][0x0];this['editor']['model']['change'](_0x3f09ac=>{for(const _0x5bf227 of _0x29262a)void 0x0!==_0x5b45db[_0x5bf227]?_0x3f09ac['setAttribute'](_0x5bf227,_0x5b45db[_0x5bf227],_0x2716b4):_0x3f09ac['removeAttribute'](_0x5bf227,_0x2716b4);});}['handleSuggestionDescription'](_0x32573f){if(_0x32573f['data'])switch(_0x32573f['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x32439a,_0x15269c){const _0x5f581e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x11f131 of _0x5f581e['getSuggestions']({'skipNotAttached':!0x0})){const _0x208ca0=_0x11f131['getContainedElement']();if(_0x11f131['subType']===_0x15269c&&_0x208ca0===_0x32439a)return _0x11f131;}return null;}['_registerTablePropertiesAttributes'](){const _0x948e35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b3b82=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3e4cd6 of _0x5b3b82){const _0x1e955e=_0x3e4cd6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x948e35['descriptionFactory']['registerAttributeLabel'](_0x3e4cd6,At(this['editor']['locale'],'FORMAT_'+_0x1e955e));}}}class ze extends _0x48a7fd{['afterInit'](){const _0x52c7b0=this['editor'];if(!_0x52c7b0['plugins']['has']('LineHeight'))return;const _0x538291=_0x52c7b0['plugins']['get']('TrackChangesEditing'),_0xda041a=_0x52c7b0['locale'];_0x538291['enableDefaultAttributesIntegration']('lineHeight'),_0x538291['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0xda041a,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x48a7fd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x5e2282,_0x2cd1a4,_0x4031ac,_0x14f12c,_0x556581,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c0e0b){super(_0x3c0e0b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24dbbb,_0xd14dc9,_0xb43a2c,_0x98c7c2)=>{this['_model']['change'](()=>{for(const _0x538dc0 of[..._0x98c7c2,..._0xb43a2c])this['_model']['markers']['has'](_0x538dc0)&&_0x3c0e0b['editing']['reconvertMarker'](_0x538dc0);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3c0e0b['plugins']['get'](_0x5e2282),this['_suggestionsConversion']=_0x3c0e0b['plugins']['get'](_0x2cd1a4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3c0e0b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c0e0b['config']['get']('trackChanges.trackFormatChanges'),_0x3c0e0b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c0e0b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x3c0e0b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18e1c0=this['editor'];_0x18e1c0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4dcf2b,{writer:_0x1bf5cc})=>{let _0x4b9c47='suggestion:'+_0x4dcf2b['getAttribute']('suggestion-type')+':'+_0x4dcf2b['getAttribute']('id');return _0x4dcf2b['getAttribute']('marker-count')&&(_0x4b9c47+=':'+_0x4dcf2b['getAttribute']('marker-count')),_0x1bf5cc['createElement']('$marker',{'data-name':_0x4b9c47});}}),_0x18e1c0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18e1c0['model']['document']['registerPostFixer'](_0x1c966f=>{let _0x26f8b4=!0x1;const _0x2bbdef=Array['from'](_0x18e1c0['model']['document']['differ']['getChangedMarkers']()),_0x1f0794=new Set();for(const {name:_0x4c04f5,data:_0x304309}of _0x2bbdef){const {group:_0x2776a4,type:_0x551542,subType:_0x723173,id:_0x1406ca}=_0x2cca50(_0x4c04f5);if('suggestion'!==_0x2776a4)continue;const _0xf15513=_0x723173?'suggestion:'+_0x551542+':'+_0x723173+':'+_0x1406ca:'suggestion:'+_0x551542+':'+_0x1406ca,_0x1eeb2d=_0x18e1c0['model']['markers']['getMarkersGroup'](_0xf15513),_0x38a5d8=_0x18e1c0['model']['markers']['get'](_0x4c04f5),_0x5d2fb7=this['_suggestions']['get'](_0x1406ca);if(null!=_0x304309['newRange']){'formatInline'==_0x551542&&(_0x26f8b4=_0x26f8b4||Ze(_0x304309['newRange'],_0x4c04f5,_0x1c966f,_0x18e1c0['model']['schema']));const _0x1ec473='attribute'==_0x551542&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x723173)),_0x4f082a='attribute'==_0x551542&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x723173));if(_0x304309['newRange']['isCollapsed']||'$graveyard'==_0x304309['newRange']['root']['rootName']||'formatBlock'==_0x551542&&!tn(_0x304309['newRange'])||_0x1ec473&&!tn(_0x304309['newRange'])||_0x4f082a&&en(_0x304309['newRange'])||'deletion'==_0x551542&&en(_0x304309['newRange'])||_0x38a5d8&&nn(_0x38a5d8,_0x1eeb2d))_0x1c966f['removeMarker'](_0x4c04f5),_0x26f8b4=!0x0;else{if(!_0x5d2fb7||!_0x5d2fb7['isInContent'])continue;if(_0x304309['newRange']&&_0x304309['oldRange']&&_0x304309['newRange']['isEqual'](_0x304309['oldRange']))continue;_0x1f0794['add'](_0x5d2fb7);}}}return _0x1f0794['size']>0x0&&(_0x26f8b4=!!this['_joinWithAdjacentSuggestions'](_0x1f0794)||_0x26f8b4),_0x26f8b4;}),_0x18e1c0['model']['document']['registerPostFixer'](_0x4f7e26=>{let _0x5bd82d=!0x1;for(const _0x2e1651 of _0x18e1c0['model']['document']['differ']['getChanges']())if('insert'==_0x2e1651['type'])for(const _0x588545 of this['_suggestions']['values']()){if(_0x588545['isMultiRange']||!_0x588545['isInContent'])continue;const _0x558298='formatBlock'==_0x588545['type'],_0x28bd6f=this['_getAttributeKey'](_0x588545),_0x3062c6=_0x28bd6f&&this['_suggestionsConversion']['isBlockAttribute'](_0x28bd6f);if(!_0x558298&&!_0x3062c6)continue;const _0x3143c5=_0x588545['getFirstRange']();if(_0x3143c5['start']['parent']!=_0x3143c5['end']['parent']&&!_0x3143c5['end']['isAtEnd']){const _0xb19df6=_0x18e1c0['model']['createPositionAt'](_0x3143c5['start']['nodeAfter'],'end'),_0x4b84c8=_0x18e1c0['model']['createRange'](_0x3143c5['start'],_0xb19df6);_0x4f7e26['updateMarker'](_0x588545['getFirstMarker'](),{'range':_0x4b84c8}),_0x5bd82d=!0x0;}}return _0x5bd82d;}),_0x18e1c0['model']['document']['registerPostFixer'](_0x44cf34=>this['_processAttributeChanges'](_0x44cf34)),_0x18e1c0['model']['document']['registerPostFixer'](_0x443809=>!_0x443809['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x443809)),_0x18e1c0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18e1c0['model']['document']['on']('change:data',(_0x1b6455,_0x2ab761)=>{if(!_0x2ab761['isLocal']||_0x2ab761['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x148638=_0x18e1c0['model']['document']['differ']['getChanges']();if(0x0==_0x148638['length'])return;const _0x578cbe=[],_0x29adc7=_0x148638['filter'](_0x140c1f=>'attribute'==_0x140c1f['type']),_0x1e8206=_0x148638['filter'](_0x57a6c9=>'insert'==_0x57a6c9['type']&&'$text'!=_0x57a6c9['name']);for(const _0xbb4757 of _0x29adc7)this['_suggestionsConversion']['isRegisteredAttribute'](_0xbb4757['attributeKey'])&&_0x578cbe['push']({'key':_0xbb4757['attributeKey'],'newValue':_0xbb4757['attributeNewValue'],'oldValue':_0xbb4757['attributeOldValue'],'range':sn(_0xbb4757['range'],_0x18e1c0['model'])});for(const _0x2c1280 of _0x1e8206){if('rename'!=_0x2c1280['action']&&'refresh'!=_0x2c1280['action'])continue;const _0x48ea8a=rn(_0x2c1280['position']['nodeAfter'],_0x18e1c0['model']),_0x93954c=_0x2c1280['before'];'rename'==_0x2c1280['action']&&_0x578cbe['push']({'key':Ke,'newValue':_0x2c1280['name'],'oldValue':_0x93954c['name'],'range':_0x48ea8a});for(const [_0x121dfc,_0x35a1ef]of _0x93954c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x121dfc))continue;const _0xd43fc3=_0x2c1280['attributes']['get'](_0x121dfc);_0x35a1ef!==_0xd43fc3&&_0x578cbe['push']({'key':_0x121dfc,'newValue':_0xd43fc3,'oldValue':_0x35a1ef,'range':_0x48ea8a});}for(const [_0x43e5a9,_0x102d4c]of _0x2c1280['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x43e5a9)&&(_0x93954c['attributes']['has'](_0x43e5a9)||_0x578cbe['push']({'key':_0x43e5a9,'newValue':_0x102d4c,'oldValue':null,'range':_0x48ea8a}));}0x0!=_0x578cbe['length']&&_0x18e1c0['model']['enqueueChange'](_0x2ab761,_0x56a5c5=>{const _0x5c3f31=_0x2296a0();for(const {range:_0x459a7a,key:_0x1a9fbf,oldValue:_0x2b2363,newValue:_0x4ec2ea}of _0x578cbe)this['markAttributeChange'](_0x459a7a,_0x1a9fbf,_0x2b2363,_0x4ec2ea,{'groupId':_0x5c3f31});this['_reduceExistingSuggestions'](_0x56a5c5,_0x578cbe);});},{'priority':'lowest'}),_0x18e1c0['model']['markers']['on']('update:suggestion',(_0x47fcd9,_0x47ff8e,_0x292cb5)=>{if(null==_0x292cb5){const {id:_0x244c4e}=_0x2cca50(_0x47ff8e['name']),_0x388ced=this['_suggestions']['get'](_0x244c4e);_0x388ced&&_0x388ced['addMarkerName'](_0x47ff8e['name']);}}),_0x18e1c0['model']['document']['on']('change:data',()=>{const _0x51d2c6=Array['from'](_0x18e1c0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2857c2=>'suggestion'===_0x2cca50(_0x2857c2['name'])['group']);if(0x0===_0x51d2c6['length'])return;_0x51d2c6['sort']((_0x4accc2,_0x3b984e)=>{const _0x5cc9d4=_0x4accc2['data']['oldRange'],_0x42f507=_0x3b984e['data']['oldRange'];return null===_0x5cc9d4&&null===_0x42f507?0x0:null===_0x5cc9d4&&null!==_0x42f507?-0x1:null!==_0x5cc9d4&&null===_0x42f507?0x1:_0x5cc9d4['start']['isBefore'](_0x42f507['start'])?-0x1:0x1;});const _0x55d5c1=new Set(),_0x3b8ac1=new Set();for(const {name:_0x3b8c44,data:_0x4a179a}of _0x51d2c6){const {id:_0x558bd5}=_0x2cca50(_0x3b8c44);if(null===_0x4a179a['oldRange']){const _0x2da788=this['_handleNewSuggestionMarker'](_0x3b8c44);_0x3b8ac1['add'](_0x2da788);}else{const _0x4e89=this['_suggestions']['get'](_0x558bd5);null!==_0x4a179a['newRange']||_0x4e89['isInContent']?(_0x55d5c1['add'](_0x4e89['head']),_0x3b8ac1['add'](_0x4e89)):this['_removeSuggestion'](_0x4e89);}}_0x3b8ac1['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b8ac1);for(const _0x3e10e5 of _0x55d5c1)this['fire']('suggestionChanged',_0x3e10e5);}),_0x18e1c0['model']['on']('applyOperation',(_0x12d9d6,_0x45f66a)=>{const _0x1261bd=_0x45f66a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1261bd['isDocumentOperation'])return;if(_0x1261bd['batch']['isUndo']||!_0x1261bd['batch']['isLocal'])return;let _0x59462e,_0x577cd5;switch(_0x1261bd['type']){case'insert':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['position']),_0x577cd5=_0x59462e['getShiftedBy'](_0x1261bd['howMany']);break;case'split':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['splitPosition']),_0x577cd5=_0x18e1c0['model']['createPositionAt'](_0x1261bd['moveTargetPosition']);break;case'move':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['targetPosition']),_0x577cd5=_0x59462e['getShiftedBy'](_0x1261bd['howMany']);break;default:return;}const _0x31807e=_0x18e1c0['model']['createRange'](_0x59462e,_0x577cd5);_0x18e1c0['model']['change'](()=>{for(const {suggestion:_0xff22f7,meta:_0x1aca54}of this['_findSuggestions'](_0x31807e)){if(_0xff22f7['isMultiRange'])continue;if('formatInline'==_0xff22f7['type'])continue;const _0x19970b=this['_getAttributeKey'](_0xff22f7);if(_0x19970b&&this['_suggestionsConversion']['isBlockAttribute'](_0x19970b)&&'split'!=_0x1261bd['type'])continue;const _0x131d4b=_0xff22f7['data']&&_0xff22f7['data']['multipleBlocks'];('formatBlock'!=_0xff22f7['type']||'split'==_0x1261bd['type']&&!_0x131d4b)&&(_0x1aca54['containsRangeInObject']||'insertion'==_0xff22f7['type']&&_0x1aca54['isOwn']||_0xff22f7['getFirstRange']()['containsRange'](_0x31807e)&&this['_breakSuggestionMarker'](_0xff22f7,_0x59462e,_0x577cd5));}});},{'priority':'lowest'}),_0x18e1c0['model']['on']('deleteContent',(_0x51af29,_0x17bd90)=>{const _0x3782e5=_0x17bd90[0x0],_0x82e14b=_0x17bd90[0x1];if(_0x82e14b&&_0x82e14b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3782e5['isCollapsed'])return;const _0x45a82b=_0x18e1c0['model']['schema'],{start:_0x4e9a7c,end:_0x28303d}=_0x3782e5['getFirstRange'](),_0x9d82f1=_0x4e9a7c['nodeAfter']&&_0x45a82b['isLimit'](_0x4e9a7c['nodeAfter'])?null:_0x45a82b['getNearestSelectionRange'](_0x4e9a7c,'forward'),_0x20425f=_0x28303d['nodeBefore']&&_0x45a82b['isLimit'](_0x28303d['nodeBefore'])?null:_0x45a82b['getNearestSelectionRange'](_0x28303d,'backward'),_0x1fc553=_0x18e1c0['model']['createRange'](_0x9d82f1?_0x9d82f1['start']:_0x4e9a7c,_0x20425f?_0x20425f['end']:_0x28303d);_0x18e1c0['model']['change'](_0x414de2=>{this['markDeletion'](_0x1fc553);const _0x38ef5=_0x18e1c0['model']['schema']['getNearestSelectionRange'](_0x1fc553['start']);_0x3782e5['is']('documentSelection')?_0x414de2['setSelection'](_0x38ef5):_0x3782e5['setTo'](_0x38ef5);}),_0x51af29['stop']();},{'priority':_0x5c3de4['normal']+0xa}),_0x18e1c0['model']['on']('insertContent',(_0xcafea4,_0x5bdf1c)=>{const _0x30119c=_0x5bdf1c[_0x5bdf1c['length']-0x1];_0x30119c&&_0x30119c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18e1c0['model']['change'](()=>{let _0x123e17=_0x18e1c0['model']['insertContent'](_0x5bdf1c[0x0],_0x5bdf1c[0x1],_0x5bdf1c[0x2],{'forceDefaultExecution':!0x0});if(!_0x123e17)return;_0xcafea4['return']=_0x123e17['clone']();const _0x2806d8=_0x123e17['end']['nodeBefore'],_0x41bfcd=_0x18e1c0['model']['schema'];_0x2806d8&&_0x41bfcd['isBlock'](_0x2806d8)&&!_0x41bfcd['isObject'](_0x2806d8)&&(_0x123e17=_0x18e1c0['model']['createRange'](_0x123e17['start'],_0x18e1c0['model']['createPositionAt'](_0x2806d8,'end'))),this['markInsertion'](_0x123e17);}),_0xcafea4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x227e66=new dt(_0x18e1c0,this['_suggestions']);_0x18e1c0['commands']['add']('acceptSuggestion',_0x227e66),this['enableCommand']('acceptSuggestion');const _0x4645be=new ft(_0x18e1c0,this['_suggestions']);_0x18e1c0['commands']['add']('discardSuggestion',_0x4645be),this['enableCommand']('discardSuggestion'),_0x18e1c0['commands']['add']('acceptAllSuggestions',new Lt(_0x18e1c0,_0x227e66,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18e1c0['commands']['add']('discardAllSuggestions',new Lt(_0x18e1c0,_0x4645be,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18e1c0['commands']['add']('acceptSelectedSuggestions',new It(_0x18e1c0,_0x227e66,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18e1c0['commands']['add']('discardSelectedSuggestions',new It(_0x18e1c0,_0x4645be,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x411129=_0x18e1c0['plugins']['get'](_0x5e2282);this['listenTo'](_0x411129,'addComment',(_0x3c5cd6,{threadId:_0x65aa29})=>{const _0x5b4446=this['_suggestions']['get'](_0x65aa29);_0x5b4446&&_0x5b4446['commentThread']&&0x1===_0x5b4446['commentThread']['length']&&this['_updateSuggestionData'](_0x65aa29,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x411129,'removeComment',(_0x4379ea,{threadId:_0xd39310})=>{const _0x556934=this['_suggestions']['get'](_0xd39310);_0x556934&&_0x556934['commentThread']&&!_0x556934['commentThread']['length']&&this['_updateSuggestionData'](_0xd39310,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bdac0){const _0x16bbdf=_0x14d0d3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x46706e=0x3d8d0df,_0x533c96=0x3df592f^_0x46706e,_0x45d1e7=window[_0x14d0d3([0x44,0x61,0x74,0x65])][_0x14d0d3([0x6e,0x6f,0x77])](),_0x4e1952=_0x4bdac0[_0x14d0d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36cc63=new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234b04=>{_0x4e1952[_0x14d0d3([0x6f,0x6e,0x63,0x65])](_0x14d0d3([0x72,0x65,0x61,0x64,0x79]),_0x234b04);}),_0x43c1b3={[_0x14d0d3([0x6b,0x74,0x79])]:_0x14d0d3([0x45,0x43]),[_0x14d0d3([0x75,0x73,0x65])]:_0x14d0d3([0x73,0x69,0x67]),[_0x14d0d3([0x63,0x72,0x76])]:_0x14d0d3([0x50,0x2d,0x32,0x35,0x36]),[_0x14d0d3([0x78])]:_0x14d0d3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x14d0d3([0x79])]:_0x14d0d3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x14d0d3([0x61,0x6c,0x67])]:_0x14d0d3([0x45,0x53,0x32,0x35,0x36])},_0xf0c33f=_0x4e1952[_0x14d0d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14d0d3([0x67,0x65,0x74])](_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36145a(){let _0x4c3030,_0x1617fb=null,_0x4c9b02=null;try{if(_0xf0c33f==_0x14d0d3([0x47,0x50,0x4c]))return _0x14d0d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3030=_0x5b7355(),!_0x4c3030)return _0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3030[_0x14d0d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9b02=_0x3e2b21(_0x4c3030[_0x14d0d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3030[_0x14d0d3([0x6a,0x74,0x69])])),await _0x2a5eef()?_0x39191c()?_0x425c6b()?_0x14d0d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40743e()?(_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14d0d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1617fb=_0x212083(_0x14d0d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45a07a()):_0x14d0d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14d0d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x425c6b(){const _0x1ef0fa=[_0x14d0d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14d0d3([0x74,0x72,0x69,0x61,0x6c])][_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45d1e7/0x3e8:0xe10*_0x533c96;return _0x4c3030[_0x14d0d3([0x65,0x78,0x70])]<_0x1ef0fa;}function _0x39191c(){const _0x1c98d5=_0x4c3030[_0x14d0d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c98d5)return!0x1;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x2a])))return!0x0;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x54,0x43])))return!0x0;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x52,0x54,0x43]))){if(_0x55fd3e())return!0x0;if(_0x584764()||_0x1b387b())return!0x0;}return!0x1;}function _0x40743e(){const _0x5c0d2f=_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c0d2f||0x0==_0x5c0d2f[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49cad3}=new URL(window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c0d2f[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49cad3))return!0x0;const _0x3a820e=_0x49cad3[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e]));return _0x5c0d2f[_0x14d0d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1937d0=>_0x1937d0[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x2a])))[_0x14d0d3([0x6d,0x61,0x70])](_0x2cd47d=>_0x2cd47d[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e])))[_0x14d0d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4615ff=>_0x4615ff[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a820e[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d0d3([0x6d,0x61,0x70])](_0x5dd8b5=>Array(_0x3a820e[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dd8b5[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d0d3([0x66,0x69,0x6c,0x6c])](_0x5dd8b5[0x0]===_0x14d0d3([0x2a])?_0x14d0d3([0x2a]):'')[_0x14d0d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dd8b5))[_0x14d0d3([0x73,0x6f,0x6d,0x65])](_0x5ad982=>_0x3a820e[_0x14d0d3([0x65,0x76,0x65,0x72,0x79])]((_0x196431,_0x4ebd65)=>_0x5ad982[_0x4ebd65]===_0x196431||_0x5ad982[_0x4ebd65]===_0x14d0d3([0x2a])));}function _0x45a07a(){return _0x1617fb&&_0x4c9b02?new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320317,_0x44e915)=>{_0x1617fb[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x320317,_0x44e915),_0x4c9b02[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x5a3854=>{_0x5a3854!=_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])&&_0x320317(_0x5a3854);},_0x44e915);}):_0x1617fb||_0x4c9b02||_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e2b21(_0x264c86,_0x434df5){return new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cd111=>{if(_0x3fa76b())return _0x3cd111(_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]));_0x48920d(),_0x4e1952[_0x14d0d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x153065=!0x1;const _0x18510f=_0x2296a0();function _0x2eb271(_0x4db488){return!!_0x4db488&&(typeof _0x4db488===_0x14d0d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4db488===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4db488[_0x14d0d3([0x74,0x68,0x65,0x6e])]===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4db488[_0x14d0d3([0x63,0x61,0x74,0x63,0x68])]===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fadcd(_0x3e8cc7){_0x899ac1(_0x3e8cc7)[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x59d623=>{if(!_0x59d623||_0x59d623[_0x14d0d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14d0d3([0x6f,0x6b]))return _0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3046f2(_0x1ce12e(_0x18510f+_0x434df5))!=_0x59d623[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x4d71aa=>(_0x3614ca(),_0x4d71aa),()=>{const _0x27dc2e=_0x5b1b2b();return null==_0x27dc2e?(_0x3614ca(),_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])):_0x14d0d3(_0x45d1e7-_0x27dc2e>(0x27d454df^_0x46706e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x3cd111)[_0x14d0d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcb5283=0x3ee3e5f^_0x46706e;function _0x3614ca(){const _0x182431=_0x14d0d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3046f2(_0x1ce12e(_0x264c86)),_0x2d2a1b=_0x254532(_0x3046f2(window[_0x14d0d3([0x4d,0x61,0x74,0x68])][_0x14d0d3([0x63,0x65,0x69,0x6c])](_0x45d1e7/_0xcb5283)));window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d0d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x182431,_0x2d2a1b);}function _0x5b1b2b(){const _0x53022a=_0x14d0d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3046f2(_0x1ce12e(_0x264c86)),_0x264b54=window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d0d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53022a);return _0x264b54?window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x254532(_0x264b54),0x10)*_0xcb5283:null;}function _0x899ac1(_0x469bf2){return new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x125b37,_0x4ca2c6)=>{_0x469bf2[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x125b37,_0x4ca2c6),window[_0x14d0d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ca2c6,0x3d9041f^_0x46706e);});}}_0x4e1952[_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e94ab,_0xba8b8)=>{if(_0xba8b8[0x0]!=_0x264c86)return _0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba8b8[0x1]={..._0xba8b8[0x1],[_0x14d0d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18510f};},{[_0x14d0d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d0d3([0x68,0x69,0x67,0x68])}),_0x4e1952[_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49c91c=>{_0x2eb271(_0x49c91c[_0x14d0d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x153065=!0x0,_0x2fadcd(_0x49c91c[_0x14d0d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14d0d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d0d3([0x6c,0x6f,0x77])}),_0x36cc63[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>{_0x153065||_0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fa76b(){return _0x4e1952[_0x14d0d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d0d3([0x76,0x69,0x65,0x77])][_0x14d0d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14d0d3([0x61,0x75,0x74,0x6f]);}function _0x48920d(){_0x4e1952[_0x14d0d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d0d3([0x76,0x69,0x65,0x77])][_0x14d0d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14d0d3([0x61,0x75,0x74,0x6f]);}}function _0x212083(_0x30aff2){const _0x4516d9=[new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e391a=>setTimeout(_0x2e391a,0x3d1ee13^_0x46706e)),_0x36cc63[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e48a=>{let _0x44827c=0x0;_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa7ccb3,_0x5ab3bf)=>{_0x5ab3bf[0x0][_0x14d0d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44827c++,_0x44827c==(0x3d8d537^_0x46706e)&&(_0x43e48a(),_0xa7ccb3[_0x14d0d3([0x6f,0x66,0x66])]());});}))];return window[_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14d0d3([0x72,0x61,0x63,0x65])](_0x4516d9)[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>_0x30aff2);}async function _0x16c9e5(){await _0x36cc63,_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f40e4,_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f40e4,_0x4e1952[_0x14d0d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55fd3e(){return _0x8f9123(_0x14d0d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa5da5a(_0x14d0d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14d0d3([0x73,0x74,0x61,0x74,0x65])]==_0x14d0d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x584764(){return _0x8f9123(_0x14d0d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1b387b(){return _0x8f9123(_0x14d0d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3965c5(_0x37df6b){const _0x563503=_0x27091d();_0x4e1952[_0x563503]=_0x14d0d3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37df6b,_0x37df6b!=_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])&&_0x16c9e5();}function _0x27091d(){const _0x4ed7c9=window[_0x14d0d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14d0d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14d0d3([0x6e,0x6f,0x77])]())[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14d0d3([0x2e]),'');let _0x283945=_0x14d0d3([0x52]);for(let _0x580627=0x0;_0x580627<_0x4ed7c9[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x580627+=0x2){let _0x59fed8=window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed7c9[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x580627,_0x580627+0x2));_0x59fed8>=_0x16bbdf[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59fed8-=_0x16bbdf[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x283945+=_0x16bbdf[_0x59fed8];}return _0x283945;}function _0x5b7355(){const _0x508e33=_0xf0c33f[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e]));if(0x3!=_0x508e33[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf73a6(_0x508e33[0x1]);function _0xf73a6(_0x17f392){const _0x3567fe=_0x363728(_0x17f392);return _0x3567fe&&_0x46bf74()?_0x3567fe:null;function _0x46bf74(){const _0x381735=_0x3567fe[_0x14d0d3([0x6a,0x74,0x69])],_0x45d8db=window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x381735[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x381735[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1eaa5a={..._0x3567fe,[_0x14d0d3([0x6a,0x74,0x69])]:_0x381735[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x381735[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1eaa5a[_0x14d0d3([0x76,0x63])],_0x1ce12e(_0x1eaa5a)==_0x45d8db;}}}async function _0x2a5eef(){let _0x2288a4=!0x0;try{const _0x49847f=_0xf0c33f[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e])),[_0x518b55,_0x5e88d1,_0x1ef2c3]=_0x49847f;return _0x6b4d47(_0x518b55),await _0x459699(_0x518b55,_0x5e88d1,_0x1ef2c3),_0x2288a4;}catch{return!0x1;}function _0x6b4d47(_0x3e7601){const _0x42f41d=_0x363728(_0x3e7601);_0x42f41d&&_0x42f41d[_0x14d0d3([0x61,0x6c,0x67])]==_0x14d0d3([0x45,0x53,0x32,0x35,0x36])||(_0x2288a4=!0x1);}async function _0x459699(_0x16b4de,_0x20114e,_0x1969aa){const _0x367a70=window[_0x14d0d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14d0d3([0x66,0x72,0x6f,0x6d])](_0xc9f816(_0x1969aa),_0xdcb2ca=>_0xdcb2ca[_0x14d0d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a4755=new window[(_0x14d0d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14d0d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16b4de+_0x14d0d3([0x2e])+_0x20114e),_0x4b452e=window[_0x14d0d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14d0d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b452e)return;const _0x2340dd=await _0x4b452e[_0x14d0d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14d0d3([0x6a,0x77,0x6b]),_0x43c1b3,{[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x45,0x43,0x44,0x53,0x41]),[_0x14d0d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14d0d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b452e[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x45,0x43,0x44,0x53,0x41]),[_0x14d0d3([0x68,0x61,0x73,0x68])]:{[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2340dd,_0x367a70,_0x5a4755)||(_0x2288a4=!0x1);}}function _0x363728(_0x48f4ca){return _0x48f4ca[_0x14d0d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14d0d3([0x65,0x79]))?JSON[_0x14d0d3([0x70,0x61,0x72,0x73,0x65])](_0xc9f816(_0x48f4ca)):null;}function _0xc9f816(_0x370943){return window[_0x14d0d3([0x61,0x74,0x6f,0x62])](_0x370943[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14d0d3([0x2b]))[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14d0d3([0x2f])));}function _0x1ce12e(_0x554db2){let _0x195a97=0x1505;function _0x2631d0(_0x16a946){for(let _0x543e73=0x0;_0x543e73<_0x16a946[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x543e73++){const _0x566bdd=_0x16a946[_0x14d0d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x543e73);_0x195a97=(_0x195a97<<0x5)+_0x195a97+_0x566bdd,_0x195a97&=_0x195a97;}}function _0x43b458(_0x4d1c25){Array[_0x14d0d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1c25)?_0x4d1c25[_0x14d0d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43b458):_0x4d1c25&&typeof _0x4d1c25==_0x14d0d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14d0d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1c25)[_0x14d0d3([0x73,0x6f,0x72,0x74])]()[_0x14d0d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x594089,_0x3f4356])=>{_0x2631d0(_0x594089),_0x43b458(_0x3f4356);}):_0x2631d0(window[_0x14d0d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1c25));}return _0x43b458(_0x554db2),_0x195a97>>>0x0;}function _0x3046f2(_0x1db2da){return _0x1db2da[_0x14d0d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14d0d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14d0d3([0x30]));}function _0x254532(_0x355981){return _0x355981[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14d0d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14d0d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x8f9123(_0x426884){return _0x4e1952[_0x14d0d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14d0d3([0x68,0x61,0x73])](_0x426884);}function _0xa5da5a(_0x339f92){return _0x4e1952[_0x14d0d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14d0d3([0x67,0x65,0x74])](_0x339f92);}function _0x5f40e4(){}function _0x14d0d3(_0xa3792d){return _0xa3792d['map'](_0x2e3b90=>String['fromCharCode'](_0x2e3b90))['join']('');}_0x3965c5(await _0x36145a());}(this);}set['adapter'](_0x41ef80){if(this['_adapter'])throw new _0x2f698f('track-changes-adapter-already-set',this);this['_adapter']=_0x41ef80;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x264e32=!0x1,toJSON:_0x3d0fee=!0x1}={}){const _0x620dee=[];for(const _0x3d107a of this['_suggestions']['values']())_0x264e32&&!_0x3d107a['isInContent']||_0x620dee['push'](_0x3d107a);return _0x3d0fee?_0x620dee['map'](_0x139345=>_0x139345['toJSON']()):_0x620dee;}['getSuggestion'](_0x20fec5){const _0x4200ea=this['_suggestions']['get'](_0x20fec5);if(!_0x4200ea)throw new _0x2f698f('track-changes-suggestion-not-found',this);return _0x4200ea;}['hasSuggestion'](_0x3604ef){return this['_suggestions']['has'](_0x3604ef);}['addSuggestionData'](_0x3aa8e8){const {authorId:_0x3d8922,id:_0xace08f,originalSuggestionId:_0x45a35f,attributes:_0x4f2f79}=_0x3aa8e8,[_0x40174e,_0x1c0e78]=_0x3aa8e8['type']['split'](':'),_0x103b44=this['_suggestions']['get'](_0xace08f)||this['_createSuggestion'](_0x40174e,_0x1c0e78,_0xace08f,_0x3d8922,_0x4f2f79,_0x45a35f);if(this['_addThreadToSuggestion'](_0x103b44),this['_checkSuggestionCorrectness'](_0x103b44,_0x40174e,_0x1c0e78||null,_0x3d8922),_0x103b44['createdAt']=_0x3aa8e8['createdAt'],_0x103b44['_isDataLoaded']=!0x0,_0x4f2f79&&_0x4f2f79['@external']){const _0xc1502b=_0x4f2f79['@external'],_0x8accd=this['_getExternalAuthor'](_0xc1502b['authorName']);_0x103b44['authoredAt']=_0xc1502b['createdAt'],_0x103b44['author']=_0x8accd,_0x103b44['isExternal']=!0x0;}else _0x103b44['authoredAt']=_0x3aa8e8['createdAt'];switch(_0x3aa8e8['data']&&(_0x103b44['data']=_0x3aa8e8['data']),_0x3aa8e8['attributes']&&(_0x103b44['attributes']=_0x3aa8e8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x103b44['_saved']=!0x0),this['_suggestionState']['get'](_0x103b44)){case'notReady':this['_suggestionState']['set'](_0x103b44,'dataReady');break;case'markerReady':_0x103b44['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x103b44])),this['_refreshSuggestionsChain'](new Set([_0x103b44])),this['_suggestionState']['set'](_0x103b44,'ready'),this['fire']('suggestionLoaded',_0x103b44)):this['_suggestionState']['set'](_0x103b44,'removed');}return _0x103b44;}['acceptSuggestion'](_0xcc3254){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d68e6 of _0xcc3254['getAllAdjacentSuggestions']())_0x1d68e6['accept']();});});}['discardSuggestion'](_0x3f3235){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x308c2d of _0x3f3235['getAllAdjacentSuggestions']())_0x308c2d['discard']();});});}['enableCommand'](_0x421bfc,_0x3fd059){const _0x53249f=this['editor']['commands']['get'](_0x421bfc);if(!_0x53249f)throw new _0x2f698f('track-changes-command-not-found',this,{'commandName':_0x421bfc});if(this['_enabledCommands']['has'](_0x53249f))throw new _0x2f698f('track-changes-enable-command-twice',this,{'commandName':_0x421bfc});this['_enabledCommands']['add'](_0x53249f),_0x3fd059&&_0x53249f['on']('execute',(_0x39fd43,_0x588e0b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x588e0b['length']>0x0&&_0x588e0b[_0x588e0b['length']-0x1]&&_0x588e0b[_0x588e0b['length']-0x1]['forceDefaultExecution']?_0x588e0b['pop']():(_0x39fd43['return']=_0x3fd059((..._0x472ae6)=>_0x53249f['execute'](..._0x472ae6,{'forceDefaultExecution':!0x0}),..._0x588e0b),_0x39fd43['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5348a4){let _0x2ce589,_0x3cc858;const _0x4968b5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ce589=_0x5348a4();}catch(_0x2fb118){_0x3cc858=_0x2fb118;}return _0x4968b5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3cc858&&_0x2f698f['rethrowUnexpectedError'](_0x3cc858,this),_0x2ce589;}['markInsertion'](_0x47b949,_0x285726=null,_0x306b23={}){if(_0x47b949['isCollapsed'])return null;const _0x15086d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x306b23['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3484e7,meta:_0x5b7539}of this['_findSuggestions'](_0x47b949,'insertion'))if(_0x5b7539['isOwn']){if(!_0x5b7539['isNextTo']){if(_0x5b7539['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x3484e7,_0x306b23))continue;return _0x3484e7;}if(cn(_0x3484e7,_0x306b23))return _0x3484e7;this['_breakSuggestionMarker'](_0x3484e7,_0x47b949['start'],_0x47b949['end']);break;}if(_0x285726==_0x3484e7['subType']&&cn(_0x3484e7,_0x306b23)){const _0x3aa173=_0x3484e7['getFirstRange']();return _0x3aa173['start']['isEqual'](_0x47b949['end'])?this['_setSuggestionRange'](_0x3484e7,this['_model']['createRange'](_0x47b949['start'],_0x3aa173['end'])):this['_setSuggestionRange'](_0x3484e7,this['_model']['createRange'](_0x3aa173['start'],_0x47b949['end'])),_0x3484e7;}}const _0x47b098=_0x2296a0(),_0x587dbc=_0x15086d['id'],_0x30106a=_0x285726?'insertion:'+_0x285726:'insertion',_0x5d6f8d=this['_setSuggestionData']({'id':_0x47b098,'type':_0x30106a,'createdAt':new Date(),'authorId':_0x587dbc,'attributes':_0x306b23});return this['_addSuggestionMarker'](_0x30106a,_0x47b098,_0x587dbc,_0x47b949),_0x5d6f8d;}['markMultiRangeInsertion'](_0x5a184d,_0xefa7cc='multi',_0x548831={}){const _0x207264=this['editor']['plugins']['get']('Users')['me'],_0x7244b1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xefa7cc,'join');this['_trackingSessionId']&&(_0x548831['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dddcb of this['getSuggestions']())if(_0x3dddcb['author']['id']==_0x207264['id']&&'insertion'==_0x3dddcb['type']&&_0x3dddcb['subType']==_0xefa7cc&&cn(_0x3dddcb,_0x548831)&&(_0x7244b1(_0x3dddcb['getRanges'](),_0x5a184d)||_0x7244b1(_0x5a184d,_0x3dddcb['getRanges']()))){for(const _0x39fb67 of _0x5a184d)_0x3dddcb['addRange'](_0x39fb67);return _0x3dddcb;}for(const {suggestion:_0x1fb1b8,meta:_0x48ca21}of this['_findSuggestions'](_0x5a184d,'insertion')){if(!_0x48ca21['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48ca21['containsRangeInObject'])continue;if(!cn(_0x1fb1b8,_0x548831))continue;let _0x1f4ffb=!0x0;for(const _0x1f5d02 of _0x1fb1b8['getRanges']())for(const _0x373d6b of _0x5a184d)if(!_0x1f5d02['containsRange'](_0x373d6b)){_0x1f4ffb=!0x1;break;}if(_0x1f4ffb)return _0x1fb1b8;}const _0x2422a3=_0x2296a0(),_0x5870b9=_0x207264['id'],_0x933ade='insertion:'+_0xefa7cc,_0x3c3993=this['_setSuggestionData']({'id':_0x2422a3,'type':_0x933ade,'createdAt':new Date(),'authorId':_0x5870b9,'attributes':_0x548831});for(const _0x5de2c9 of _0x5a184d)this['_addSuggestionMarker'](_0x933ade,_0x2422a3,_0x5870b9,_0x5de2c9,bt['getMultiRangeId']());return _0x3c3993;}['markInlineFormat'](_0x1c56f2,_0x412709,_0x106384=null,_0x4d8137={}){if(_0x106384=_0x106384||Je(_0x412709),_0x1c56f2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4d8137['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1405a9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x106384,'accept');return this['forceDefaultExecution'](()=>_0x1405a9([_0x1c56f2],_0x412709,_0x4d8137)),null;}const _0x4c7f42=this['editor']['plugins']['get']('Users')['me'],_0x442ab7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x559b4f,meta:_0x133048}of this['_findSuggestions'](_0x1c56f2,'insertion'))_0x133048['isOwn']&&!_0x133048['isInsideObject']&&_0x442ab7['push'](..._0x559b4f['getRanges']());}const _0x6dce77=function(_0x5d67a1,_0x177fd4){const _0x4fc8ab=[];for(const _0xbdca28 of _0x177fd4){const _0xc7be7d=_0x5d67a1['getIntersection'](_0xbdca28);_0xc7be7d&&_0x4fc8ab['push'](_0xc7be7d);}return _0x4fc8ab;}(_0x1c56f2,_0x442ab7),_0x2da13e=function(_0x335df4,_0x1e3d95){const _0xc89ac2=[_0x335df4];for(const _0x41d8c9 of _0x1e3d95){let _0x2c77c4=0x0;for(;_0x2c77c4<_0xc89ac2['length'];){const _0x346353=_0xc89ac2[_0x2c77c4]['getDifference'](_0x41d8c9);_0xc89ac2['splice'](_0x2c77c4,0x1,..._0x346353),_0x2c77c4+=_0x346353['length'];}}return _0xc89ac2;}(_0x1c56f2,_0x442ab7);_0x6dce77['length']&&this['_model']['change'](()=>{for(const _0x28d4c5 of _0x6dce77){const _0x412595=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x106384,'accept');this['forceDefaultExecution'](()=>_0x412595([_0x28d4c5],_0x412709,_0x4d8137));}});for(const _0x3c9ec1 of _0x2da13e){let _0x458ebc=null,_0x26189=_0x3c9ec1['start'],_0x1e9ffe=_0x3c9ec1['end'];for(const {suggestion:_0x3820a5,meta:_0x28cd8e}of this['_findSuggestions'](_0x3c9ec1,'formatInline')){if(!_0x28cd8e['isOwn'])continue;if(_0x3820a5['subType']!=_0x106384)continue;if(!cn(_0x3820a5,_0x4d8137))continue;const _0x4841a8=_0x3820a5['getFirstRange']();if(_0x4841a8['containsRange'](_0x3c9ec1,!0x0))return null;_0x26189=_0x26189['isBefore'](_0x4841a8['start'])?_0x26189:_0x4841a8['start'],_0x1e9ffe=_0x1e9ffe['isAfter'](_0x4841a8['end'])?_0x1e9ffe:_0x4841a8['end'],_0x458ebc?_0x4841a8['start']['isBefore'](_0x458ebc['getFirstRange']()['start'])?(_0x458ebc['removeMarkers'](),_0x458ebc=_0x3820a5):_0x3820a5['removeMarkers']():_0x458ebc=_0x3820a5;}const _0x169bf3=this['_model']['createRange'](_0x26189,_0x1e9ffe);if(_0x458ebc)this['_setSuggestionRange'](_0x458ebc,_0x169bf3);else{const _0x154afd=_0x2296a0(),_0x524923=_0x4c7f42['id'];this['_setSuggestionData']({'id':_0x154afd,'type':'formatInline:'+_0x106384,'data':_0x412709,'createdAt':new Date(),'authorId':_0x524923,'attributes':_0x4d8137}),this['_addSuggestionMarker']('formatInline:'+_0x106384,_0x154afd,_0x524923,_0x169bf3);}}return null;}['markBlockFormat'](_0x41c5d1,_0x5bf78c,_0x3870ba=[],_0x47fc94=null,_0x3aa4f5={}){_0x5bf78c['formatGroupId']||(_0x5bf78c['formatGroupId']=_0x5bf78c['commandName']),_0x5bf78c['multipleBlocks']=_0x41c5d1['is']('range'),_0x47fc94=_0x47fc94||Je(_0x5bf78c);const _0x21585b=_0x3870ba['map'](_0x2e31a3=>rn(_0x2e31a3,this['_model'])),_0x23a178=_0x41c5d1['is']('range')?_0x41c5d1:rn(_0x41c5d1,this['_model']);if(this['_trackingSessionId']&&(_0x3aa4f5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40a7b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fc94,'accept');return this['forceDefaultExecution'](()=>_0x40a7b4([_0x23a178],_0x5bf78c,_0x3aa4f5)),null;}_0x21585b['push'](_0x23a178);let _0x4b0ae0=!0x0;for(const _0x240403 of _0x21585b)if(!this['_rangeIsInLocalUserInsertion'](_0x240403)){_0x4b0ae0=!0x1;break;}if(_0x4b0ae0&&'always'!==this['_trackFormatChanges']){const _0x57b92a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fc94,'accept');return this['forceDefaultExecution'](()=>_0x57b92a([_0x23a178],_0x5bf78c,_0x3aa4f5)),null;}let _0x15c290=null,_0x48bfdb=_0x23a178['start'],_0x12a999=_0x23a178['end'];for(const {suggestion:_0xe58f03,meta:_0x381b14}of this['_findSuggestions'](_0x23a178,'formatBlock')){if(!_0x381b14['isOwn'])continue;if(_0x381b14['isNextTo']||_0x381b14['containsRangeInObject']||_0x381b14['isInsideObject'])continue;if(_0xe58f03['data']['formatGroupId']!=_0x5bf78c['formatGroupId'])continue;if(!cn(_0xe58f03,_0x3aa4f5))continue;const _0xb13302=_0xe58f03['getFirstRange']();if(_0xe58f03['subType']==_0x47fc94){if(_0xb13302['containsRange'](_0x23a178,!0x0))return null;_0x48bfdb=_0x48bfdb['isBefore'](_0xb13302['start'])?_0x48bfdb:_0xb13302['start'],_0x12a999=_0x12a999['isAfter'](_0xb13302['end'])?_0x12a999:_0xb13302['end'],_0x15c290?_0xb13302['start']['isBefore'](_0x15c290['getFirstRange']()['start'])?(_0x15c290['removeMarkers'](),_0x15c290=_0xe58f03):_0xe58f03['removeMarkers']():_0x15c290=_0xe58f03;}else{const _0x324c11=_0x23a178['getIntersection'](_0xb13302);this['_cutOutSuggestionMarker'](_0xe58f03,_0x324c11);}}const _0x279677=this['editor']['plugins']['get']('Users')['me'],_0x5667ff=_0x2296a0(),_0x48948c=_0x279677['id'];if(_0x15c290)return this['_setSuggestionRange'](_0x15c290,this['_model']['createRange'](_0x48bfdb,_0x12a999)),_0x15c290;{const _0x3a375c=this['_setSuggestionData']({'id':_0x5667ff,'type':'formatBlock:'+_0x47fc94,'data':_0x5bf78c,'createdAt':new Date(),'authorId':_0x48948c,'attributes':_0x3aa4f5});return this['_addSuggestionMarker']('formatBlock:'+_0x47fc94,_0x5667ff,_0x48948c,this['_model']['createRange'](_0x48bfdb,_0x12a999)),_0x3a375c;}}['markMultiRangeBlockFormat'](_0x1315dd,_0x25cbb4,_0xf99352=[],_0x58b705=null,_0x2f7171={}){_0x25cbb4['formatGroupId']||(_0x25cbb4['formatGroupId']=_0x25cbb4['commandName']);const _0x3e1eba=_0x1315dd[0x0];_0x25cbb4['multipleBlocks']=_0x3e1eba['is']('range'),_0x58b705=_0x58b705||Je(_0x25cbb4);const _0x5d8a08=_0xf99352['map'](_0x2e975c=>rn(_0x2e975c,this['_model'])),_0x1c257f=_0x3e1eba['is']('range')?_0x1315dd:_0x1315dd['map'](_0x372a81=>rn(_0x372a81,this['_model']));if(this['_trackingSessionId']&&(_0x2f7171['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1cc141=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'accept');return this['forceDefaultExecution'](()=>_0x1cc141(_0x1c257f,_0x25cbb4,_0x2f7171)),null;}_0x5d8a08['push'](..._0x1c257f);let _0x3a3993=!0x0;for(const _0x37b47d of _0x5d8a08)if(!this['_rangeIsInLocalUserInsertion'](_0x37b47d)){_0x3a3993=!0x1;break;}if(_0x3a3993&&'always'!==this['_trackFormatChanges']){const _0x4123ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'accept');return this['forceDefaultExecution'](()=>_0x4123ad(_0x1c257f,_0x25cbb4,_0x2f7171)),null;}const _0x15de0b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b5692 of this['getSuggestions']()){const _0x24d5c4=_0x5b5692['data'];if(_0x5b5692['author']['id']!=_0x15de0b['id'])continue;if('formatBlock'!=_0x5b5692['type']||_0x24d5c4['formatGroupId']!=_0x25cbb4['formatGroupId'])continue;if(!cn(_0x5b5692,_0x2f7171))continue;const _0x4ce7eb=_0x5b5692['subType']==_0x58b705;for(let _0x2c56e9=0x0;_0x2c56e9<_0x1c257f['length'];_0x2c56e9++){const _0xd1b7c0=_0x1c257f[_0x2c56e9];for(const _0x22e58e of _0x5b5692['getMarkers']()){const _0xcfb55d=_0x22e58e['getRange']();if(_0xd1b7c0['isEqual'](_0xcfb55d)){_0x4ce7eb?(_0x1c257f['splice'](_0x2c56e9,0x1),_0x2c56e9--):_0x5b5692['removeMarker'](_0x22e58e['name']);break;}}}}if(0x0==_0x1c257f['length'])return null;const _0x1e2709=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'join');for(const _0x3a5beb of this['getSuggestions']()){const _0x589604=_0x3a5beb['data'];if(_0x3a5beb['author']['id']==_0x15de0b['id']&&('formatBlock'==_0x3a5beb['type']&&_0x589604['formatGroupId']==_0x25cbb4['formatGroupId']&&_0x3a5beb['subType']==_0x58b705&&cn(_0x3a5beb,_0x2f7171)&&(_0x1e2709(_0x3a5beb['getRanges'](),_0x1c257f)||_0x1e2709(_0x1c257f,_0x3a5beb['getRanges']())))){for(const _0x1db9d1 of _0x1c257f)_0x3a5beb['addRange'](_0x1db9d1);return _0x3a5beb;}}const _0x4b15ef=_0x2296a0(),_0x4ae140=_0x15de0b['id'],_0x3afca0='formatBlock:'+_0x58b705,_0x343e9f=this['_setSuggestionData']({'id':_0x4b15ef,'type':_0x3afca0,'data':_0x25cbb4,'createdAt':new Date(),'authorId':_0x4ae140,'attributes':_0x2f7171});for(const _0x22426b of _0x1c257f)this['_addSuggestionMarker'](_0x3afca0,_0x4b15ef,_0x4ae140,_0x22426b,bt['getMultiRangeId']());return _0x343e9f;}['markDeletion'](_0x16a8d1,_0x45984e=null,_0x21c3df={}){if(_0x16a8d1['isCollapsed'])return null;const _0x3fcdc6=this['editor']['plugins']['get']('Users')['me'],_0x421937=new _0x211ae6(_0x16a8d1['start'],_0x16a8d1['end']);this['_trackingSessionId']&&(_0x21c3df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45f590,meta:_0x288b22}of this['_findSuggestions'](_0x421937,'insertion'))if(_0x288b22['isOwn']&&!_0x288b22['isNextTo']){if(_0x45f590['isMultiRange']){const _0x1a0a5e=_0x45f590['getRanges']()['filter'](_0x120e3d=>'$graveyard'!=_0x120e3d['root']['rootName']);_0x1a0a5e['every'](_0x55e6cd=>_0x421937['containsRange'](_0x55e6cd,!0x0))&&_0x45f590['discard']();if(_0x1a0a5e['some'](_0x56344f=>_0x56344f['containsRange'](_0x421937,!0x0))){const _0x40f71f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45984e,'accept');return this['forceDefaultExecution'](()=>_0x40f71f([_0x421937],null,_0x21c3df)),null;}}else{const _0x9f6244=_0x421937['getIntersection'](_0x45f590['getFirstRange']());null!==_0x9f6244&&_0x45f590['_onDiscard']([_0x9f6244],null,_0x21c3df);}}if(_0x421937['detach'](),_0x421937['isCollapsed']||'$graveyard'==_0x421937['root']['rootName'])return null;let _0x1b7995=null,_0x1157b4=_0x421937['start'],_0x126bd3=_0x421937['end'];const _0x56bf1f=this['_findSuggestions'](_0x421937,'deletion');for(const {suggestion:_0x576541,meta:_0x5cbda4}of _0x56bf1f){const _0x1f9486=this['_model']['createRange'](_0x1157b4,_0x126bd3);if(_0x5cbda4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cbda4['containsRangeInObject']&&!_0x5cbda4['isInsideObject'])){if(_0x576541['isMultiRange']){if(!cn(_0x576541,_0x21c3df))continue;let _0x587501=!0x0;for(const _0x2d72c3 of _0x576541['getRanges']()){if(_0x2d72c3['containsRange'](_0x1f9486,!0x0))return _0x576541;_0x1f9486['containsRange'](_0x2d72c3)||(_0x587501=!0x1);}_0x587501&&_0x576541['discard']();}else{const _0x5157c5=_0x576541['getFirstRange']();if(_0x5157c5['containsRange'](_0x1f9486,!0x0))return _0x576541;if(!cn(_0x576541,_0x21c3df)){_0x1f9486['containsRange'](_0x5157c5)?_0x576541['removeMarkers']():_0x5157c5['containsPosition'](_0x1157b4)?_0x1157b4=_0x5157c5['end']:_0x5157c5['containsPosition'](_0x126bd3)&&(_0x126bd3=_0x5157c5['start']);continue;}_0x1157b4=_0x1157b4['isBefore'](_0x5157c5['start'])?_0x1157b4:_0x5157c5['start'],_0x126bd3=_0x126bd3['isAfter'](_0x5157c5['end'])?_0x126bd3:_0x5157c5['end'],_0x21c3df=Object['assign']({},_0x576541['attributes']),_0x1b7995?_0x5157c5['start']['isBefore'](_0x1b7995['getFirstRange']()['start'])?(_0x1b7995['removeMarkers'](),_0x1b7995=_0x576541):_0x576541['removeMarkers']():_0x1b7995=_0x576541;}}}if(_0x1b7995)return this['_setSuggestionRange'](_0x1b7995,this['_model']['createRange'](_0x1157b4,_0x126bd3)),_0x1b7995;{const _0x5bd21c=_0x2296a0(),_0x523aa8=this['_model']['createRange'](_0x1157b4,_0x126bd3),_0x2cb3bc=_0x3fcdc6['id'],_0x1d5747=_0x45984e?'deletion:'+_0x45984e:'deletion',_0x529786=this['_setSuggestionData']({'id':_0x5bd21c,'type':_0x1d5747,'createdAt':new Date(),'authorId':_0x2cb3bc,'attributes':_0x21c3df});return this['_addSuggestionMarker'](_0x1d5747,_0x5bd21c,_0x2cb3bc,_0x523aa8),_0x529786;}}['markMultiRangeDeletion'](_0xd50bf9,_0x5c1825='multi',_0x1bf53a={}){const _0x229d20=this['editor']['plugins']['get']('Users')['me'],_0x87b2ad=_0xd50bf9['map'](_0x4765bc=>new _0x211ae6(_0x4765bc['start'],_0x4765bc['end'])),_0x5aba94=new Set();this['_trackingSessionId']&&(_0x1bf53a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45137d,meta:_0x1102ab}of this['_findSuggestions'](_0x87b2ad,'insertion'))_0x1102ab['isOwn']&&!_0x1102ab['isNextTo']&&_0x5aba94['add'](_0x45137d);for(const _0x1136f5 of _0x5aba94)if(_0x1136f5['isMultiRange']){const _0x1e804b=_0x1136f5['getRanges']();(!_0x1136f5['attributes']||!_0x1136f5['attributes']['skipNestingCheck'])&&(_0x1e804b['every'](_0x5e3d80=>_0x87b2ad['some'](_0x14476d=>_0x14476d['containsRange'](_0x5e3d80,!0x0)))&&_0x1136f5['discard']());if(_0x87b2ad['every'](_0x241a47=>_0x1e804b['some'](_0x2989da=>_0x2989da['containsRange'](_0x241a47,!0x0)))){const _0x49776c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'accept');return this['forceDefaultExecution'](()=>_0x49776c(_0xd50bf9,null,_0x1bf53a)),null;}}else{const _0x45cac3=_0x1136f5['getFirstRange']();_0x87b2ad['some'](_0x145a26=>_0x145a26['containsRange'](_0x45cac3,!0x0))&&_0x1136f5['discard']();if(_0x87b2ad['every'](_0x491c9d=>_0x45cac3['containsRange'](_0x491c9d,!0x0))){const _0x65ddde=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'accept');return this['forceDefaultExecution'](()=>_0x65ddde(_0x87b2ad,null,_0x1bf53a)),null;}}const _0x3308a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'join');let _0x1453eb=null;for(const _0x11efb6 of this['getSuggestions']())if(_0x11efb6['author']['id']==_0x229d20['id']&&_0x11efb6['isInContent']&&'deletion'==_0x11efb6['type']&&_0x11efb6['subType']==_0x5c1825&&cn(_0x11efb6,_0x1bf53a)&&(_0x3308a3(_0x11efb6['getRanges'](),_0x87b2ad)||_0x3308a3(_0x87b2ad,_0x11efb6['getRanges']()))){if(_0x1453eb){if(_0x11efb6['commentThread']&&_0x11efb6['commentThread']['length'])continue;for(const _0x22130c of _0x11efb6['getRanges']())_0x1453eb['isIntersectingWithRange'](_0x22130c)||_0x1453eb['addRange'](_0x22130c);_0x11efb6['removeMarkers']();}else{_0x1453eb=_0x11efb6;for(const _0x4d8476 of _0x87b2ad)_0x11efb6['isIntersectingWithRange'](_0x4d8476)||_0x11efb6['addRange'](_0x4d8476);}}if(_0x1453eb)return _0x1453eb;_0x5aba94['clear']();for(const {suggestion:_0xb95515,meta:_0x5996f5}of this['_findSuggestions'](_0x87b2ad,'deletion'))_0x5996f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5996f5['containsRangeInObject']&&!_0x5996f5['isInsideObject'])&&cn(_0xb95515,_0x1bf53a)&&_0x5aba94['add'](_0xb95515);for(const _0x369de5 of _0x5aba94){const _0x3d67a8=_0x369de5['getRanges']();if(!_0x1bf53a||!_0x1bf53a['skipNestingCheck']){if(_0x87b2ad['every'](_0x2991c0=>_0x3d67a8['some'](_0x279598=>_0x279598['containsRange'](_0x2991c0,!0x0))))return _0x369de5;}(!_0x369de5['attributes']||!_0x369de5['attributes']['skipNestingCheck'])&&(_0x3d67a8['every'](_0x1ace69=>_0x87b2ad['some'](_0x53e09b=>_0x53e09b['containsRange'](_0x1ace69,!0x0)))&&_0x369de5['discard']());}const _0x56e662=_0x2296a0(),_0x4436eb=_0x229d20['id'],_0x2aef03='deletion:'+_0x5c1825,_0x5a85b5=this['_setSuggestionData']({'id':_0x56e662,'type':_0x2aef03,'createdAt':new Date(),'authorId':_0x4436eb,'attributes':_0x1bf53a});for(const _0x12c171 of _0x87b2ad)_0x12c171['detach'](),_0x12c171['isCollapsed']||'$graveyard'==_0x12c171['root']['rootName']||this['_addSuggestionMarker'](_0x2aef03,_0x56e662,_0x4436eb,_0x12c171,bt['getMultiRangeId']());return _0x5a85b5;}['markAttributeChange'](_0x30de87,_0x5a4e45,_0x2fe7e4,_0x38e43e,_0x305c03){if(_0x30de87['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x56dc5a=this['editor']['plugins']['get']('Users')['me']['id'],_0x50f9a5=Array['from'](this['_suggestions']['values']())['filter'](_0x7a9307=>'attribute'==_0x7a9307['type']&&_0x7a9307['data']['key']==_0x5a4e45&&_0x7a9307['isIntersectingWithRange'](_0x30de87));if(this['_trackingSessionId']&&(_0x305c03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xde8f34=this['_findSuggestions'](_0x30de87,'insertion')['filter'](({meta:_0xfcb98})=>_0xfcb98['isOwn']&&!_0xfcb98['isInsideObject']&&!_0xfcb98['isNextTo'])['map'](({suggestion:_0x174dd5})=>_0x174dd5);_0x50f9a5['unshift'](..._0xde8f34);}const _0x3dce47=new Map([[_0x30de87,_0x2fe7e4]]);for(const _0x332024 of _0x50f9a5){const _0x1af8d1='attribute'==_0x332024['type']?_0x332024['data']['oldValue']:void 0x0,_0x187534=_0x332024['getFirstRange'](),_0x38889c=Array['from'](_0x3dce47['keys']())['find'](_0x2b7534=>_0x2b7534['isIntersecting'](_0x187534));if(!_0x38889c)continue;const _0x456e28=_0x38889c['getDifference'](_0x187534);this['_suggestionsConversion']['isBlockAttribute'](_0x5a4e45)&&'insertion'==_0x332024['type']&&0x0!=_0x456e28['length']||(_0x3dce47['delete'](_0x38889c),_0x456e28['forEach'](_0x3bf960=>{_0x3dce47['set'](_0x3bf960,_0x2fe7e4);}),'insertion'!=_0x332024['type']&&_0x1af8d1!=_0x38e43e&&_0x3dce47['set'](_0x38889c['getIntersection'](_0x187534),_0x1af8d1));}const _0x3957c1=[];for(const [_0x26f555,_0x292be8]of _0x3dce47){const _0x2abbcd=_0x2296a0(),_0x429e81={'key':_0x5a4e45,'oldValue':_0x292be8,'newValue':_0x38e43e};_0x5a4e45['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':_0x5a4e45});const _0x1a60a8=('attribute:'+(_0x5a4e45+'|'+Je({'newValue':_0x38e43e})))['substring'](0x0,0x3c),_0x1c9187=this['_setSuggestionData']({'id':_0x2abbcd,'type':_0x1a60a8,'data':_0x429e81,'createdAt':new Date(),'authorId':_0x56dc5a,'attributes':_0x305c03});_0x3957c1['push'](_0x1c9187),this['_addSuggestionMarker'](_0x1a60a8,_0x2abbcd,_0x56dc5a,_0x26f555);}return _0x3957c1;}['enableDefaultAttributesIntegration'](_0x1396df){this['enableCommand'](_0x1396df,(_0x28e875,..._0x1c090c)=>{this['recordAttributeChanges'](()=>{_0x28e875(..._0x1c090c);});});}['startTrackingSession'](_0x4b5bb5){return this['_trackingSessionId']=void 0x0!==_0x4b5bb5?_0x4b5bb5:_0x2296a0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b5038){return'attribute'==_0x2b5038['type']?un(_0x2b5038['subType']):null;}['_applyOperationsAsSuggestions'](_0x4f1d63){if(0x0==_0x4f1d63['length'])return;const _0x4ec3aa=this['editor'],_0x26b96c=_0x4ec3aa['plugins']['get'](_0x556581),_0x549319=[];_0x4ec3aa['model']['change'](_0x33cb75=>{for(let _0x49241a=0x0;_0x49241a<_0x4f1d63['length'];_0x49241a++){const _0x4480e5=_0x4f1d63[_0x49241a];if(_0x4480e5['baseVersion']=_0x4ec3aa['model']['document']['version'],_0x4480e5['isDocumentOperation']=!0x0,_0x26b96c['isMarkedRemoveOperation'](_0x4480e5)){const _0x227d51=_0x40880f(_0x4480e5['newRange'],_0x4ec3aa['model']);_0x549319['unshift'](_0x211ae6['fromRange'](_0x227d51));}else switch(_0x4480e5['type']){case'rename':{const _0x380c0c=_0x4480e5['oldName'],_0xa4ac85=_0x4480e5['newName'];if(_0x380c0c==_0xa4ac85)break;_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0xba0db3='$elementName',_0x2c057c=_0x4480e5['position'],_0x290343=_0x4ec3aa['model']['createRange'](_0x2c057c,_0x4ec3aa['model']['createPositionAt'](_0x2c057c['nodeAfter'],'end'));this['markAttributeChange'](_0x290343,_0xba0db3,_0x380c0c,_0xa4ac85,{'groupId':_0x2296a0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xfb783b=_0x4480e5['oldValue'],_0x3d39c0=_0x4480e5['newValue'];if(_0xfb783b==_0x3d39c0)break;_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0x303388=_0x4480e5['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x303388))break;const _0x3c4338=_0x40880f(_0x4480e5['range'],_0x4ec3aa['model']);this['markAttributeChange'](_0x3c4338,_0x303388,_0xfb783b,_0x3d39c0,{'groupId':_0x2296a0()});break;}case'insert':{_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);if(_0x4f1d63[_0x49241a+0x1]&&'move'==_0x4f1d63[_0x49241a+0x1]['type'])break;const _0x5da409=_0x4480e5['position'],_0x3a55a9=_0x4480e5['howMany'],_0x130670=_0x40880f(_0x4ec3aa['model']['createRange'](_0x5da409,_0x5da409['getShiftedBy'](_0x3a55a9)),_0x4ec3aa['model']);this['markInsertion'](_0x130670);break;}case'split':{_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0x28cba8=_0x4480e5['splitPosition'],_0x1cbb42=_0x4480e5['moveTargetPosition'];this['markInsertion'](_0x4ec3aa['model']['createRange'](_0x28cba8,_0x1cbb42));break;}case'move':case'remove':_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);}}for(const _0x1fbc7a of _0x549319)_0x1fbc7a['detach'](),this['markDeletion'](_0x1fbc7a);});}['_setSuggestionRange'](_0x83147d,_0x4778d7){const _0x1fb740=_0x83147d['getFirstMarker']();this['_model']['change'](_0x26f54e=>{_0x26f54e['updateMarker'](_0x1fb740,{'range':_0x4778d7});});}['_addThreadToSuggestion'](_0x51c748){const _0x846ca7=_0x51c748['id'],_0x3d8d5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x846ca7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d8d5b,'threadId':_0x846ca7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x286acc=this['_commentsRepository']['getCommentThread'](_0x846ca7);_0x286acc['unbind']('isRemovable'),_0x286acc['isRemovable']=!0x1,_0x51c748['commentThread']=_0x286acc;}['_checkSuggestionCorrectness'](_0x27082a,_0x26b259,_0x208b74,_0x57fbd9){if(_0x27082a['type']!=_0x26b259||_0x27082a['subType']!=_0x208b74||_0x27082a['creator']['id']!=_0x57fbd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f698f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x49f7b1,_0x2ff02c){const _0x5ea424=_0x49f7b1['getFirstRange']();if(_0x2ff02c['isEqual'](_0x5ea424))_0x49f7b1['removeMarkers']();else{if(_0x5ea424['containsRange'](_0x2ff02c)){const _0x19c3b3=this['_model']['createPositionAt'](_0x2ff02c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x5ea424['start'],_0x19c3b3));const _0x443ae9=_0x2296a0(),_0x30a989=_0x49f7b1['creator']['id'],_0x57d6c5=_0x49f7b1['type']+':'+_0x49f7b1['subType'];this['_setSuggestionData']({'id':_0x443ae9,'type':_0x57d6c5,'createdAt':new Date(),'authorId':_0x30a989,'data':_0x49f7b1['data'],'attributes':_0x49f7b1['attributes']});const _0x266621=this['_model']['createPositionAt'](_0x2ff02c['end']['parent'],'after'),_0x5ce22e=this['_model']['createRange'](_0x266621,_0x5ea424['end']);this['_addSuggestionMarker'](_0x57d6c5,_0x443ae9,_0x30a989,_0x5ce22e);}else{if(_0x5ea424['containsPosition'](_0x2ff02c['start'])){const _0x1ad3f3=this['_model']['createPositionAt'](_0x2ff02c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x5ea424['start'],_0x1ad3f3));}else{const _0x3a65c0=this['_model']['createPositionAt'](_0x2ff02c['end']['parent'],'after');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x3a65c0,_0x5ea424['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13c499){for(const {suggestion:_0x1e4959,meta:_0x420221}of this['_findSuggestions'](_0x13c499,'insertion')){if(!_0x420221['isOwn'])continue;const _0x3bdd42=_0x1e4959['getRanges']();for(const _0x3a33f9 of _0x3bdd42)if(!_0x13c499['getDifference'](_0x3a33f9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2648f7){return this['editor']['plugins']['get']('Users')['getUser'](_0x2648f7);}['_getExternalAuthor'](_0x27e34f){const _0x1d8739=this['editor']['plugins']['get']('Users'),_0x4bd307=_0x65b7cc('external:'+_0x27e34f),_0x4dc25f=_0x1d8739['getUser'](_0x4bd307);return _0x4dc25f||_0x1d8739['addUser']({'id':_0x4bd307,'name':_0x27e34f});}['_createSuggestion'](_0x288359,_0x40a59e,_0x17e04f,_0xc5778a,_0xa3b238,_0x162177){const _0x383147=this['_getAuthorFromId'](_0xc5778a);if(!_0x383147)throw new _0x2f698f('track-changes-user-not-found',this,{'authorId':_0xc5778a,'suggestionId':_0x17e04f});const _0x421a7e=this['_suggestionFactory']['buildSuggestion'](_0x288359,_0x40a59e,_0x17e04f,_0x383147,_0xa3b238,_0x27080e=>{this['_updateSuggestionData'](_0x17e04f,{'attributes':_0x27080e});const _0x386664=this['getSuggestion'](_0x17e04f);this['_joinWithAdjacentSuggestions'](new Set([_0x386664])),this['_refreshSuggestionsChain'](new Set([_0x386664]));},_0x162177);return this['listenTo'](_0x421a7e,'accept',()=>{this['_updateSuggestionData'](_0x17e04f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x421a7e,'discard',()=>{this['_updateSuggestionData'](_0x17e04f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17e04f,_0x421a7e),this['_suggestionState']['set'](_0x421a7e,'notReady'),_0x421a7e;}['_breakSuggestionMarker'](_0x4b76f2,_0x2b8b43,_0x3c3e3f){const _0x47457f=_0x4b76f2['getFirstRange'](),_0x12e4f5=_0x47457f['start'],_0xf87ccc=_0x47457f['end'];this['_setSuggestionRange'](_0x4b76f2,this['_model']['createRange'](_0x12e4f5,_0x2b8b43));const _0x269a6b=_0x2296a0(),_0x5169a4=_0x4b76f2['creator']['id'],_0x1f16e5=_0x4b76f2['type']+(_0x4b76f2['subType']?':'+_0x4b76f2['subType']:'');this['_setSuggestionData']({'id':_0x269a6b,'type':_0x1f16e5,'createdAt':new Date(),'authorId':_0x5169a4,'originalSuggestionId':_0x4b76f2['_originalSuggestionId']||_0x4b76f2['id'],'attributes':_0x4b76f2['attributes'],'data':_0x4b76f2['data']});const _0x1792bc=this['_getAttributeKey'](_0x4b76f2);('formatBlock'==_0x4b76f2['type']||_0x1792bc&&this['_suggestionsConversion']['isBlockAttribute'](_0x1792bc))&&(_0x3c3e3f=this['_model']['createPositionBefore'](_0x3c3e3f['parent'])),this['_addSuggestionMarker'](_0x1f16e5,_0x269a6b,_0x5169a4,this['_model']['createRange'](_0x3c3e3f,_0xf87ccc));}['_findSuggestions'](_0x4087c5,_0x3af49b=null){const _0x3ebb8e=[],_0xf4413e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4087c5)||(_0x4087c5=[_0x4087c5]);for(const _0x2d9359 of this['getSuggestions']()){if(!_0x2d9359['isInContent'])continue;if(_0x3af49b&&_0x2d9359['type']!=_0x3af49b)continue;let _0x2c9f39=!0x1;for(const _0x3a5c06 of _0x2d9359['getRanges']()){for(const _0x2fcc49 of _0x4087c5){const _0x251118=_0x2fcc49['start']['isEqual'](_0x3a5c06['end'])||_0x2fcc49['end']['isEqual'](_0x3a5c06['start']);if(_0x251118||_0x2fcc49['getIntersection'](_0x3a5c06)){const _0x57da75=_0x2fcc49['containsRange'](_0x3a5c06)&&qe(this['_model']['schema'],_0x3a5c06['start'],_0x2fcc49),_0x5796d7=_0x3a5c06['containsRange'](_0x2fcc49)&&qe(this['_model']['schema'],_0x2fcc49['start'],_0x3a5c06);_0x3ebb8e['push']({'suggestion':_0x2d9359,'meta':{'isOwn':_0xf4413e==_0x2d9359['author'],'isNextTo':_0x251118,'isInsideObject':_0x57da75,'containsRangeInObject':_0x5796d7}}),_0x2c9f39=!0x0;break;}}if(_0x2c9f39)break;}}return _0x3ebb8e;}['_addSuggestionMarker'](_0x3e1ffc,_0x8a7e1e,_0x22c241,_0x3d5c65,_0x33018b){this['_model']['change'](_0x3039f0=>{let _0xf6d262='suggestion:'+_0x3e1ffc+':'+_0x8a7e1e+':'+_0x22c241;_0x33018b&&(_0xf6d262=_0xf6d262+':'+_0x33018b),_0x3039f0['addMarker'](_0xf6d262,{'range':_0x3d5c65,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1aae17){const _0x5e7c7c=_0x1aae17['previous'],_0xceddb=_0x1aae17['next'];_0x1aae17['previous']=null,_0x1aae17['next']=null,null!=_0x5e7c7c&&_0x5e7c7c['next']==_0x1aae17&&(_0x5e7c7c['next']=_0xceddb),null!=_0xceddb&&_0xceddb['previous']==_0x1aae17&&(_0xceddb['previous']=_0x5e7c7c),'ready'==this['_suggestionState']['get'](_0x1aae17)&&(this['_suggestionState']['set'](_0x1aae17,'removed'),this['fire']('suggestionUnloaded',_0x1aae17,_0x5e7c7c,_0xceddb));}['_setSuggestionData'](_0x489a6d){const _0x111fb1=_0x489a6d['id'],_0x25c91c=this['addSuggestionData'](_0x489a6d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4125a5=this['editor']['plugins']['get']('PendingActions'),_0x383e90=_0x25c91c['hasComments'],_0x50f0a3=_0x25c91c['subType']?_0x25c91c['type']+':'+_0x25c91c['subType']:_0x25c91c['type'],_0x406a60=this['editor']['locale'],_0xa943c5=_0x4125a5['add'](At(_0x406a60,'PENDING_ACTION_SUGGESTION')),_0x5ada76={'id':_0x111fb1,'type':_0x50f0a3,'hasComments':_0x383e90,'data':_0x489a6d['data']||null,'originalSuggestionId':_0x489a6d['originalSuggestionId']||null,'attributes':_0x25c91c['attributes']};this['_adapter']['addSuggestion'](_0x5ada76)['then'](_0x25cdfd=>{_0x25c91c['_saved']=!0x0,_0x4125a5['remove'](_0xa943c5),_0x25cdfd&&_0x25cdfd['createdAt']&&(this['_suggestions']['get'](_0x111fb1)['createdAt']=_0x25cdfd['createdAt']);})['catch'](_0x70f454=>{throw _0x2cfc05('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25c91c['discard']();}),_0x25c91c['stopListening'](),this['_suggestions']['delete'](_0x25c91c['id']),this['_suggestionState']['delete'](_0x25c91c),_0x70f454;});}return _0x25c91c;}['_updateSuggestionData'](_0x4be9da,_0x17b604){const _0x10b1f9=this['editor']['plugins']['get']('PendingActions'),_0xd95e32=this['getSuggestion'](_0x4be9da);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd95e32['_saved']){const _0x14c305=_0x10b1f9['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4be9da,_0x17b604)['then'](()=>{_0x10b1f9['remove'](_0x14c305);});}else _0xd95e32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4be9da,_0x17b604);});}}['_getSuggestionData'](_0x587a0f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f698f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x587a0f);}['_handleNewSuggestionMarker'](_0x1e80dc){const {id:_0x3c071d,type:_0x1189a5,subType:_0x1fc7c6,authorId:_0x37fb07}=_0x2cca50(_0x1e80dc),_0x40fb25=this['_suggestions']['get'](_0x3c071d)||this['_createSuggestion'](_0x1189a5,_0x1fc7c6,_0x3c071d,_0x37fb07,{});switch(this['_checkSuggestionCorrectness'](_0x40fb25,_0x1189a5,_0x1fc7c6,_0x37fb07),this['_suggestionState']['get'](_0x40fb25)){case'notReady':this['_getSuggestionData'](_0x3c071d)['then'](_0x3d9ff6=>{let _0x361ffd=Promise['resolve']();_0x3d9ff6['hasComments']&&(_0x361ffd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c071d})),_0x361ffd['then'](()=>{this['addSuggestionData'](_0x3d9ff6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40fb25,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c071d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40fb25,'ready'),this['fire']('suggestionLoaded',_0x40fb25);break;case'ready':this['fire']('suggestionChanged',_0x40fb25);}return _0x40fb25['addMarkerName'](_0x1e80dc),_0x40fb25;}['_refreshSuggestionsChain'](_0x2e0935){const _0x445488=Array['from'](_0x2e0935),_0x391705=_0x445488['filter'](_0x4b1dce=>'attribute'==_0x4b1dce['type']);this['_refreshAttributeSuggestionsChain'](_0x391705);const _0x13b41c=_0x445488['filter'](_0x3b381a=>!_0x3b381a['isMultiRange']&&'attribute'!=_0x3b381a['type']),_0xab4969=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x449671=>!_0x449671['isMultiRange']&&'attribute'!=_0x449671['type']),_0x99b5c7=_0xab4969['filter'](_0x220f2e=>!_0x2e0935['has'](_0x220f2e)),_0x117584=new Map(_0xab4969['map'](_0x536196=>[_0x536196,this['_suggestionFactory']['getSuggestionCallback'](_0x536196['type'],_0x536196['subType'],'chain')])),_0xde8cb2=new Map(_0xab4969['map'](_0x19501f=>[_0x19501f,_0x19501f['getFirstRange']()])),_0x5637e0=new Set(),_0x13842e=new Set();for(let _0x4471da=0x0;_0x4471da<_0x13b41c['length'];_0x4471da++)_0x44049(_0x13b41c[_0x4471da],_0x13b41c,_0x4471da+0x1);for(let _0x3e472e=0x0;_0x3e472e<_0x13b41c['length'];_0x3e472e++)_0x44049(_0x13b41c[_0x3e472e],_0x99b5c7,0x0);const _0x4bfb42=new Set();for(let _0x4d18d6=0x0;_0x4d18d6<_0x13b41c['length'];_0x4d18d6++){const _0x26766e=_0x13b41c[_0x4d18d6];!_0x13842e['has'](_0x26766e)&&_0x26766e['previous']&&(_0x4bfb42['add'](_0x26766e['previous']),_0x26766e['previous']['next']===_0x26766e&&(_0x26766e['previous']['next']=null),_0x26766e['previous']=null),!_0x5637e0['has'](_0x26766e)&&_0x26766e['next']&&(_0x4bfb42['add'](_0x26766e['next']),_0x26766e['next']['previous']===_0x26766e&&(_0x26766e['next']['previous']=null),_0x26766e['next']=null);}function _0x44049(_0x38af29,_0x208f37,_0x1ad0ea){for(let _0x2815ea=_0x1ad0ea;_0x2815ea<_0x208f37['length'];_0x2815ea++){const _0x5bfa1f=_0x2ce822(_0x38af29,_0x208f37[_0x2815ea]);_0x5bfa1f&&(_0x5bfa1f[0x0]['next']=_0x5bfa1f[0x1],_0x5bfa1f[0x1]['previous']=_0x5bfa1f[0x0],_0x5637e0['add'](_0x5bfa1f[0x0]),_0x13842e['add'](_0x5bfa1f[0x1]));}}function _0x2ce822(_0x117295,_0x488bd1){if(_0x117295['author']['id']!==_0x488bd1['author']['id'])return null;const _0x21ad01=_0x117584['get'](_0x117295)(_0x117295,_0x488bd1,_0xde8cb2['get'](_0x117295),_0xde8cb2['get'](_0x488bd1));if(!_0x21ad01)return null;return _0x117584['get'](_0x488bd1)(_0x117295,_0x488bd1,_0xde8cb2['get'](_0x117295),_0xde8cb2['get'](_0x488bd1))?_0x21ad01[0x1]['commentThread']&&_0x21ad01[0x1]['commentThread']['length']?null:_0x21ad01:null;}_0x4bfb42['size']&&this['_refreshSuggestionsChain'](_0x4bfb42);}['_refreshAttributeSuggestionsChain'](_0x2ad83d){if(0x0==_0x2ad83d['length'])return;const _0x358fd1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e1855=>'attribute'==_0x3e1855['type']&&_0x3e1855['_isDataLoaded']),_0x47b474=[],_0x27002e=new Map();for(const _0x391310 of _0x358fd1){const _0x671a57=_0x65b7cc(_0x391310['attributes']);_0x27002e['has'](_0x671a57)||(_0x27002e['set'](_0x671a57,_0x47b474['length']),_0x47b474['push']([]));const _0x502f16=_0x27002e['get'](_0x671a57);_0x47b474[_0x502f16]['push'](_0x391310);}!(function(){_0x47b474['sort']((_0x1d769b,_0x47626b)=>{const _0x1eb91d=_0x1d769b[0x0]['createdAt'],_0x4157ba=_0x47626b[0x0]['createdAt'];return _0x1eb91d==_0x4157ba?_0x1d769b[0x0]['attributes']['groupId']<_0x47626b[0x0]['attributes']['groupId']?-0x1:0x1:_0x1eb91d<_0x4157ba?-0x1:0x1;});for(const _0x2edf89 of _0x47b474)_0x2edf89['sort']((_0x8a60c3,_0x314002)=>_0x8a60c3['id']<_0x314002['id']?-0x1:0x1);}());for(let _0x5f0762=0x0;_0x5f0762<_0x47b474['length'];_0x5f0762++){if(0x0==_0x47b474[_0x5f0762]['length'])continue;const _0x46ef17=[];for(let _0x476747=_0x5f0762+0x1;_0x476747<_0x47b474['length'];_0x476747++)0x0!=_0x47b474[_0x476747]['length']&&_0x12fe66(_0x47b474[_0x5f0762],_0x47b474[_0x476747])&&_0x46ef17['push'](_0x476747);for(const _0x25ff77 of _0x46ef17)_0x47b474[_0x5f0762]=_0x47b474[_0x5f0762]['concat'](_0x47b474[_0x25ff77]),_0x47b474[_0x25ff77]=[];}for(const _0x590df2 of _0x47b474)for(let _0xcf0081=0x0;_0xcf0081<_0x590df2['length'];_0xcf0081++){const _0xe907fd=_0x590df2[_0xcf0081+0x1]||null;_0x590df2[_0xcf0081]['next']!==_0xe907fd&&(_0x590df2[_0xcf0081]['next']=_0xe907fd);}for(const _0x104ee5 of _0x47b474)for(let _0x340cd0=0x0;_0x340cd0<_0x104ee5['length'];_0x340cd0++){const _0x358f19=_0x104ee5[_0x340cd0-0x1]||null;_0x104ee5[_0x340cd0]['previous']!==_0x358f19&&(_0x104ee5[_0x340cd0]['previous']=_0x358f19);}function _0x12fe66(_0xa6e14a,_0x42d3ce){if(_0xa6e14a[0x0]['attributes']['groupId']!==_0x42d3ce[0x0]['attributes']['groupId']&&_0xa6e14a[0x0]['author']!==_0x42d3ce[0x0]['author'])return!0x1;if(!function(_0x551044,_0x293c3e){if(!_0x551044['hasComments']&&!_0x293c3e['hasComments'])return!0x0;if(_0x551044['hasComments']&&_0x293c3e['hasComments'])return!0x1;if(_0x551044['hasComments']&&_0x293c3e['createdAt']<_0x551044['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x293c3e['hasComments']&&_0x551044['createdAt']<_0x293c3e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xa6e14a[0x0],_0x42d3ce[0x0]))return!0x1;const _0x4478cd=ot(_0xa6e14a[0x0]['attributes'],['groupId','trackingSessionId']),_0x88a054=ot(_0x42d3ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4478cd,_0x88a054))return!0x1;if(_0xa6e14a[0x0]['attributes']['groupId']==_0x42d3ce[0x0]['attributes']['groupId'])return!0x0;if(_0xa6e14a[0x0]['attributes']['trackingSessionId']!==_0x42d3ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xa6e14a['every'](_0x174fa3=>_0x42d3ce['some'](_0x450d87=>_0x174fa3['getFirstRange']()['isEqual'](_0x450d87['getFirstRange']())))&&_0x42d3ce['every'](_0x17fc8d=>_0xa6e14a['some'](_0x21877a=>_0x17fc8d['getFirstRange']()['isEqual'](_0x21877a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb600ff){const _0x4f0d52=Array['from'](_0xb600ff),_0x47c32a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x312714=_0x47c32a['filter'](_0x598da8=>!_0xb600ff['has'](_0x598da8)),_0x4c1d4e=new Map(_0x4f0d52['map'](_0x3c456d=>[_0x3c456d,this['_suggestionFactory']['getSuggestionCallback'](_0x3c456d['type'],_0x3c456d['subType'],'join')])),_0x43a507=new Map(_0x47c32a['map'](_0x131fa0=>[_0x131fa0,_0x131fa0['getRanges']()]));for(let _0x1cb26a=0x0;_0x1cb26a<_0x4f0d52['length'];_0x1cb26a++){if(_0x28bcf0(this,_0x4f0d52[_0x1cb26a],_0x4f0d52,_0x1cb26a+0x1))return!0x0;}for(let _0x1a246b=0x0;_0x1a246b<_0x4f0d52['length'];_0x1a246b++){if(_0x28bcf0(this,_0x4f0d52[_0x1a246b],_0x312714,0x0))return!0x0;}return!0x1;function _0x28bcf0(_0x45356c,_0x3b4d65,_0x274e5c,_0x13bda8){for(let _0x3622e1=_0x13bda8;_0x3622e1<_0x274e5c['length'];_0x3622e1++){const _0x515028=_0x274e5c[_0x3622e1];if(_0x515028['type']!==_0x3b4d65['type']||_0x515028['author']['id']!==_0x3b4d65['author']['id']||_0x515028['subType']!==_0x3b4d65['subType'])continue;if(!an(_0x3b4d65,_0x515028))continue;if('attribute'==_0x3b4d65['type']&&_0x3b4d65['data']['oldValue']!=_0x515028['data']['oldValue'])continue;if('attribute'==_0x3b4d65['type']&&_0x45356c['_suggestionsConversion']['isBlockAttribute'](_0x3b4d65['data']['key']))continue;if('formatBlock'==_0x3b4d65['type']){const _0x2f3705=_0x45356c['editor']['model'],_0x53f315=_0x3b4d65['getContainedElement']();if(_0x53f315&&(_0x2f3705['schema']['isObject'](_0x53f315)||_0x2f3705['schema']['isLimit'](_0x53f315)))continue;}const _0x3ed468=_0x4c1d4e['get'](_0x3b4d65),_0x15d7bf=_0x43a507['get'](_0x3b4d65),_0x49f58a=_0x43a507['get'](_0x515028),_0x2aae58=_0x3b4d65['commentThread']&&_0x3b4d65['commentThread']['length'],_0x45526a=_0x515028['commentThread']&&_0x515028['commentThread']['length'];if(!_0x2aae58&&_0x3ed468(_0x49f58a,_0x15d7bf))return _0x45356c['_joinSuggestions'](_0x515028,_0x3b4d65),_0x43a507['delete'](_0x3b4d65),!0x0;if(!_0x45526a&&_0x3ed468(_0x15d7bf,_0x49f58a))return _0x45356c['_joinSuggestions'](_0x3b4d65,_0x515028),_0x43a507['delete'](_0x515028),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13ffe2,_0x27977e){if(_0x13ffe2['isMultiRange']){for(const _0x4ceb41 of _0x27977e['getRanges']())_0x13ffe2['addRange'](_0x4ceb41);}else{const _0x5253f4=_0x27977e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13ffe2,this['_model']['createRange'](_0x13ffe2['getFirstRange']()['start'],_0x5253f4));}_0x27977e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x50d9c7,_0x4ab297,_0xbc8b24){const _0x4b190e=_0x50d9c7['startsWith']('format')||_0x50d9c7['startsWith']('attribute')?'FORMATTING':_0x50d9c7['toUpperCase']();return At(this['editor']['locale'],_0x4ab297+'_'+_0x4b190e+'_SUGGESTION_ANNOUNCEMENT',_0xbc8b24);}['_initAriaMarkerChangeAnnouncements'](){const _0x23ca44=this['editor'];if(!_0x23ca44['ui'])return;const {ariaLiveAnnouncer:_0x28a9e8}=_0x23ca44['ui'];_0x1b7ae6(this['_model'],({left:_0x53cd9b,entered:_0xc60bd8})=>{for(const _0x5a83bc of _0x53cd9b){const {group:_0x32e50e,type:_0x4f5a2f}=_0x2cca50(_0x5a83bc['name']);if('suggestion'===_0x32e50e){_0x28a9e8['announce'](this['_getMarkerAnnouncementText'](_0x4f5a2f,'LEAVE'));break;}}for(const _0x4407fa of _0xc60bd8){const {group:_0x209ed5,type:_0x35f21e}=_0x2cca50(_0x4407fa['name']);if('suggestion'===_0x209ed5){_0x28a9e8['announce'](this['_getMarkerAnnouncementText'](_0x35f21e,'ENTER',_0xd6dee4(_0x3c357b)));break;}}});}['_processAttributeChanges'](_0x5ae293){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3bcd52=this['editor'],_0x537d8f=_0x3bcd52['model']['document']['differ']['getChanges']();if(0x0==_0x537d8f['length'])return!0x1;const _0x4d080c=[],_0x1e08da=_0x537d8f['filter'](_0x5308b3=>'attribute'==_0x5308b3['type']),_0xa1a497=_0x537d8f['filter'](_0x3a85b2=>'insert'==_0x3a85b2['type']&&'$text'!=_0x3a85b2['name']),_0x436cb2=_0x537d8f['filter'](_0x2ada65=>'remove'==_0x2ada65['type']&&'$text'!=_0x2ada65['name']);for(const _0x1b0fbc of _0x1e08da)_0x4d080c['push']({'key':_0x1b0fbc['attributeKey'],'newValue':_0x1b0fbc['attributeNewValue'],'oldValue':_0x1b0fbc['attributeOldValue'],'range':sn(_0x1b0fbc['range'],_0x3bcd52['model'])});for(const _0x2c7ab5 of _0xa1a497){const _0x2c046b=_0x436cb2['find'](_0x533e6d=>_0x533e6d['position']['isEqual'](_0x2c7ab5['position']));_0x2c046b&&_0x4d080c['push']({'key':Ke,'newValue':_0x2c7ab5['name'],'oldValue':_0x2c046b['name'],'range':_0x3bcd52['model']['createRangeOn'](_0x2c7ab5['position']['nodeAfter'])});}return 0x0!=_0x4d080c['length']&&this['_reduceExistingSuggestions'](_0x5ae293,_0x4d080c);}['_processAttributeSuggestions'](_0x44cf3e){let _0x50038e=!0x1;const _0x1b3931=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11f4d5=>_0x11f4d5['data']['newRange']&&_0x11f4d5['name']['startsWith']('suggestion:attribute:'));for(const _0x5efa37 of _0x1b3931){const {subType:_0x1e8eeb,id:_0x4b62c9}=_0x2cca50(_0x5efa37['name']),_0xe950e3=_0x1e8eeb['split']('|')[0x0];for(const _0x75c088 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x75c088['id']!=_0x4b62c9&&'attribute'==_0x75c088['type']&&_0x75c088['data']&&_0x75c088['data']['key']==_0xe950e3&&_0x75c088['getFirstRange']()['isIntersecting'](_0x5efa37['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x75c088,_0x5efa37['data']['newRange'],_0x44cf3e),_0x50038e=!0x0);}return _0x50038e;}['recordAttributeChanges'](_0x19b9e2){this['_recordAttributeSuggestions']=!0x0,_0x19b9e2();}['_reduceExistingSuggestions'](_0xe30edd,_0x5e5b8d){if(0x0==_0x5e5b8d['length'])return!0x1;let _0x4deac1=!0x1;for(const _0x5bb38e of _0x5e5b8d){const _0x59d37d=this['_findSuggestions'](_0x5bb38e['range'],'attribute')['filter'](_0x1002c8=>!_0x1002c8['meta']['isNextTo'])['map'](_0x48b27e=>_0x48b27e['suggestion']),_0x438862=_0x65b7cc({'newValue':_0x5bb38e['newValue']});_0x59d37d['filter'](_0x2624c8=>{const [_0x2a0860,_0x4679d4]=_0x2624c8['subType']['split']('|');return _0x2a0860==_0x5bb38e['key']&&_0x4679d4!=_0x438862;})['forEach'](_0x28529b=>{this['_reduceSuggestionAttributeRange'](_0x28529b,_0x5bb38e['range'],_0xe30edd),_0x4deac1=!0x0;});}return _0x4deac1;}['_reduceSuggestionAttributeRange'](_0x30ca84,_0x45b794,_0x502317){const _0x5504ea=_0x30ca84['getFirstRange']()['getDifference'](_0x45b794);0x0!==_0x5504ea['length']?0x1!==_0x5504ea['length']?this['_breakSuggestionMarker'](_0x30ca84,_0x45b794['start'],_0x45b794['end']):this['_setSuggestionRange'](_0x30ca84,_0x5504ea[0x0]):_0x502317['removeMarker'](_0x30ca84['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5c7823){this['_editor']=_0x5c7823,this['_model']=_0x5c7823['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x468414,_0xf8659c,_0x27145d,_0x2a7fbd,_0x1ab793,_0x440345,_0x265263){return new bt(this['_model'],{'type':_0x468414,'subType':_0xf8659c,'id':_0x27145d,'originalSuggestionId':_0x265263,'author':_0x2a7fbd,'creator':_0x2a7fbd,'attributes':_0x1ab793,'onAttributesChange':_0x440345,'onAccept':(..._0x3fedab)=>this['getSuggestionCallback'](_0x468414,_0xf8659c,'accept')(..._0x3fedab),'onDiscard':(..._0x38e86d)=>this['getSuggestionCallback'](_0x468414,_0xf8659c,'discard')(..._0x38e86d)});}['registerCustomCallback'](_0x10b4c3,_0x1a20d6,_0x252613,_0x5dc0a1){const _0x42ee9=_0x10b4c3+':'+_0x1a20d6+':'+_0x252613;this['_customCallbacks']['set'](_0x42ee9,_0x5dc0a1);}['getSuggestionCallback'](_0x36afa5,_0x3bd955,_0x12bcef){const _0x6329e2=_0x36afa5+':'+_0x3bd955+':'+_0x12bcef;return this['_customCallbacks']['get'](_0x6329e2)||this['_defaultCallbacks']['get'](_0x36afa5+':'+_0x12bcef);}['_registerDefaultCallbacks'](){const _0x2ac6d2=()=>!0x1,_0x2deb9f=_0x13fcf1=>{_0x13fcf1['sort']((_0x33a924,_0x139d74)=>_0x33a924['start']['isBefore'](_0x139d74['start'])?0x1:-0x1),this['_model']['change'](_0x2c7776=>{for(const _0x521f83 of _0x13fcf1){let _0x82b47;_0x82b47=_0x521f83['end']['isAtEnd']&&_0x521f83['end']['parent']==_0x521f83['start']['nodeAfter']?_0x2c7776['createSelection'](_0x521f83['start']['nodeAfter'],'on'):_0x2c7776['createSelection'](_0x521f83),this['_model']['deleteContent'](_0x82b47,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1e650d=(_0x5c618a,_0x2d479b)=>{_0x2d479b&&this['_model']['change'](_0x5434ce=>{const {commandName:_0x4a55a2,commandParams:_0x3f9288=[]}=_0x2d479b,_0x406264=_0x5c618a['map'](_0x117add=>(Qe(_0x117add)&&(_0x117add=this['_model']['createRange'](_0x117add['end'])),_0x117add))['filter'](_0x4b8022=>'$graveyard'!==_0x4b8022['root']['rootName']);if(_0x406264['length']<0x1)return;const _0x5a7f29=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ed4d9=>_0x211ae6['fromRange'](_0x2ed4d9));_0x5434ce['setSelection'](_0x406264);for(const _0x14cc06 of this['_editor']['commands']['commands']())_0x14cc06['refresh']();_0x3f9288['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4a55a2,..._0x3f9288);const _0xbc1830=_0x5a7f29['filter'](_0x5e6ef3=>'$graveyard'!=_0x5e6ef3['root']['rootName']);_0xbc1830['length']>0x0&&_0x5434ce['setSelection'](_0xbc1830);for(const _0x3eeefc of _0x5a7f29)_0x3eeefc['detach']();});},_0x1cf94e=(_0x396e11,_0x2e9ee1)=>0x1==_0x396e11['length']&&0x1==_0x2e9ee1['length']&&_0x396e11[0x0]['end']['isEqual'](_0x2e9ee1[0x0]['start']),_0x50ce97=(_0x24603d,_0x1aaedb,_0xb20660,_0x265989)=>on(_0x24603d,_0x1aaedb,_0xb20660,_0x265989)?[_0x24603d,_0x1aaedb]:on(_0x1aaedb,_0x24603d,_0x265989,_0xb20660)?[_0x1aaedb,_0x24603d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2ac6d2),this['_defaultCallbacks']['set']('insertion:discard',_0x2deb9f),this['_defaultCallbacks']['set']('insertion:join',_0x1cf94e),this['_defaultCallbacks']['set']('insertion:chain',_0x50ce97),this['_defaultCallbacks']['set']('deletion:accept',_0x2deb9f),this['_defaultCallbacks']['set']('deletion:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('deletion:join',_0x1cf94e),this['_defaultCallbacks']['set']('deletion:chain',_0x50ce97),this['_defaultCallbacks']['set']('formatInline:accept',_0x1e650d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('formatInline:join',_0x1cf94e),this['_defaultCallbacks']['set']('formatInline:chain',_0x2ac6d2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1e650d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('formatBlock:join',_0x1cf94e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2ac6d2),this['_defaultCallbacks']['set']('attribute:accept',_0x2ac6d2),this['_defaultCallbacks']['set']('attribute:discard',(_0x51eaaf,_0x114183)=>{if(!_0x114183)return;const _0x438e03=this['_editor']['plugins']['get'](_0x2cd1a4);this['_model']['change'](_0x23d14d=>{if(_0x114183['key']==Ke)for(const _0x170169 of _0x51eaaf){const _0x48fd26=_0x170169['start']['nodeAfter'],_0x152c1b=_0x114183['oldValue'];_0x23d14d['rename'](_0x48fd26,_0x152c1b);}else{if(_0x438e03['isBlockAttribute'](_0x114183['key'])){for(const _0x3184e6 of _0x51eaaf)void 0x0!==_0x114183['oldValue']?_0x23d14d['setAttribute'](_0x114183['key'],_0x114183['oldValue'],_0x3184e6['start']['nodeAfter']):_0x23d14d['removeAttribute'](_0x114183['key'],_0x3184e6['start']['nodeAfter']);}else{for(const _0x2b3acf of _0x51eaaf)_0x114183['oldValue']?_0x23d14d['setAttribute'](_0x114183['key'],_0x114183['oldValue'],_0x2b3acf):_0x23d14d['removeAttribute'](_0x114183['key'],_0x2b3acf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1cf94e);}}function qe(_0x559578,_0x31a6ce,_0x559813){for(const _0x54c289 of _0x31a6ce['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54c289['root']==_0x54c289)return!0x1;if(!_0x559813['containsItem'](_0x54c289))return!0x1;if(_0x559578['isObject'](_0x54c289)||_0x559578['isLimit'](_0x54c289))return!0x0;}return!0x1;}function Qe(_0x30e5c2){return _0x30e5c2['end']['parent']==_0x30e5c2['start']['nodeAfter']&&_0x30e5c2['end']['isAtStart'];}function Ze(_0x3a6968,_0x4a5667,_0x96eaa3,_0x5e51db){const _0x5120f6=_0x2c4ae1=>!_0x2c4ae1['item']['is']('$textProxy')&&!_0x5e51db['isObject'](_0x2c4ae1['item']),_0x5baf2f=_0x3a6968['start']['getLastMatchingPosition'](_0x5120f6),_0x496478=_0x3a6968['end']['getLastMatchingPosition'](_0x5120f6,{'direction':'backward'});return(!_0x3a6968['start']['isEqual'](_0x5baf2f)||!_0x3a6968['end']['isEqual'](_0x496478))&&(_0x5baf2f['isBefore'](_0x496478)?_0x96eaa3['updateMarker'](_0x4a5667,{'range':_0x96eaa3['createRange'](_0x5baf2f,_0x496478)}):_0x96eaa3['removeMarker'](_0x4a5667),!0x0);}function Je(_0x545809){return _0x65b7cc(_0x545809);}function tn(_0x505810){const _0x1363cd=_0x505810['start']['nodeAfter'];return _0x1363cd&&_0x1363cd['is']('element');}function en(_0x1bf3e4){return Qe(_0x1bf3e4)||function(_0x9a8ffa){return _0x9a8ffa['start']['parent']==_0x9a8ffa['end']['nodeBefore']&&_0x9a8ffa['start']['isAtEnd'];}(_0x1bf3e4);}function nn(_0x1c6a57,_0x56c003){try{const _0x2938fb=_0x1c6a57['getRange']();for(const _0x3329aa of _0x56c003)if(_0x1c6a57!==_0x3329aa&&_0x2938fb&&_0x2938fb['isIntersecting'](_0x3329aa['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5e7547,_0x175a85){return null==_0x5e7547['end']['nodeBefore']&&_0x5e7547['end']['parent']==_0x5e7547['start']['nodeAfter']?rn(_0x5e7547['start']['nodeAfter'],_0x175a85):_0x5e7547;}function rn(_0x1a87e3,_0x525e11){const _0x71aff7=_0x525e11['schema']['isObject'](_0x1a87e3)||_0x525e11['schema']['isSelectable'](_0x1a87e3);return _0x525e11['createRange'](_0x525e11['createPositionAt'](_0x1a87e3,'before'),_0x71aff7?_0x525e11['createPositionAfter'](_0x1a87e3):_0x525e11['createPositionAt'](_0x1a87e3,'end'));}function on(_0x208fa2,_0x39c3e7,_0x540365,_0x3f53e8){return!!an(_0x208fa2,_0x39c3e7)&&_0x540365['end']['isEqual'](_0x3f53e8['start']);}function an(_0x6fa2b4,_0x508494){if(!_0x6fa2b4['_isDataLoaded']||!_0x508494['_isDataLoaded'])return!0x1;const _0x4f152a=new Set(Object['keys'](_0x6fa2b4['attributes'])),_0x1a20f1=new Set(Object['keys'](_0x508494['attributes']));if(_0x4f152a['delete']('groupId'),_0x1a20f1['delete']('groupId'),0x0==_0x4f152a['size']&&0x0==_0x1a20f1['size'])return!0x0;if(_0x4f152a['size']!=_0x1a20f1['size'])return!0x1;const _0x39e049={..._0x6fa2b4['attributes']},_0x26c816={..._0x508494['attributes']};return delete _0x39e049['groupId'],delete _0x26c816['groupId'],JSON['stringify'](_0x39e049)==JSON['stringify'](_0x26c816);}function cn(_0xd62aad,_0x526397){const _0x1d45a5=ln(_0xd62aad['attributes']),_0x21872e=ln(_0x526397);if(!_0xd62aad['_isDataLoaded'])return!0x1;for(const _0x1b6cda of Object['keys'](_0x21872e))if(!st(_0x1d45a5[_0x1b6cda],_0x21872e[_0x1b6cda]))return!0x1;return!0x0;}function ln(_0x4bcea4){const _0x5777d1=Object['assign']({},_0x4bcea4);return delete _0x5777d1['skipNestingCheck'],delete _0x5777d1['tablePasteChainId'],_0x5777d1;}function un(_0x1eb0ee){return _0x1eb0ee['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1f2d5b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd74bb1,_0x16bd61,_0x31fb46,_0x300629){super(),this['model']=_0x16bd61,this['view']=_0x31fb46,this['commentThreadController']=_0x300629,this['_editor']=_0xd74bb1,this['_acceptCommand']=_0xd74bb1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd74bb1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27333e,_0x284faf)=>_0x27333e||_0x284faf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x364ad7=>_0x364ad7&&this['_editor']['model']['canEditAt'](_0x16bd61['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x501a53=>_0x501a53&&this['_editor']['model']['canEditAt'](_0x16bd61['getRanges']())),this['_pendingAction']=null,_0x31fb46['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31fb46,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31fb46,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31fb46,'change:isDirty',()=>{_0x31fb46['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 _0x1a0bb7=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a0bb7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x2d90fc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x38fadc,_0x4b7720,_0x34cc78,_0x4ec647){super(_0x38fadc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48ee17(_0x38fadc,At(_0x38fadc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4b7720['authoredAt']),this['bind']('authoredAt')['to'](_0x4b7720),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',_0x4b7720,'authoredAt',this,'descriptionParts',(_0x395c55,_0x5a0d4a,_0x23902a)=>{const _0x13f689=_0x23902a['map'](_0x1fd55f=>gt(_0x1fd55f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x395c55-0x1,_0x4b7720['author']['name'],_0x5a0d4a?_0x4ec647['formatDateTime'](_0x5a0d4a):'',new DOMParser()['parseFromString'](_0x13f689,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20ed56(),this['focusTracker']=new _0x32a67d(),this['keystrokes']=new _0x262fa2(),this['focusCycler']=new _0xee41c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11deb3=>_0x11deb3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4b7720,this['_localUser']=_0x34cc78,this['_config']=_0x4ec647,_0x4ec647['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2800ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x170d55}=this['_config'];this['commentsListView']=new _0x170d55(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',_0x1097fe=>_0x1097fe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b0245,_0x3d69ac)=>_0x4b0245||!!_0x3d69ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3efbcc}=this['_config'],_0x383c23=new _0x3efbcc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x57b855=_0x383c23['commentInputView'];return _0x383c23['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x57b855,'value',(_0x1b1974,_0xa3a849,_0xeb2410)=>!!_0xeb2410||_0x1b1974&&!_0xa3a849),_0x57b855['on']('submit',(_0x38bd20,_0x179f07)=>{this['fire']('addComment',_0x179f07),_0x57b855['editor']['setData']('');}),_0x57b855['on']('cancel',()=>this['focus']()),_0x57b855['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x383c23;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x3fffab,_0x2f28ab,_0x2d52ef,_0x6f5d1d){super(_0x3fffab,_0x2f28ab,_0x2d52ef,_0x6f5d1d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5269e4=>_0x5269e4&&_0x5269e4[0x0]?_0x5269e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x100095,_0x5b549c)=>{let _0x4494b9='';for(const _0x486c1f of _0x100095)_0x4494b9+='<p>'+gt(_0x486c1f['content'],_0x486c1f['color'])+'</p>';return _0x5b549c?_0x4494b9:_0x2fbd2c(_0x4494b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6f5d1d['SuggestionView'](_0x3fffab,_0x2f28ab,{'formatDateTime':_0x6f5d1d['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xc05f5a=this['bindTemplate'],_0x1f5058=[this['suggestionView']];return this['commentsListView']&&_0x1f5058['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f5058['push'](this['commentThreadInputView']),_0x1f5058['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xc05f5a['if']('isActive','ck-suggestion-wrapper--active'),_0xc05f5a['to']('type',_0x39eb33=>'ck-suggestion-'+_0x39eb33),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':_0xc05f5a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f5058};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x2d90fc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x505fe1,_0x2a7648,_0x14741c){super(_0x505fe1),this['_model']=_0x2a7648,this['_config']=_0x14741c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2a7648),this['acceptButton']=this['_createButton'](At(_0x505fe1,'Accept\x20suggestion'),_0x3b242e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x505fe1,'Discard\x20suggestion'),_0x4d8886,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x343dc5(_0x505fe1,_0x2a7648['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20ed56([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32a67d(),this['keystrokes']=new _0x262fa2(),this['focusCycler']=new _0xee41c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2c95d4=>_0x2c95d4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7cb064=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7cb064['innerHTML']=this['description'],this['on']('change:description',(_0x575f93,_0x32342f,_0x177819)=>{_0x7cb064['innerHTML']=_0x177819;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cfb0a=this['bindTemplate'],_0x75da8c=[{'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':_0x3cfb0a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cfb0a['to']('authoredAt',_0x54373d=>this['_config']['formatDateTime'](_0x54373d))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x75da8c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x75da8c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3d3c8a,_0x19700d,_0x4743b6,_0x1433aa,_0x347b44){const _0x2fa047=new _0x56cf4e(this['locale']);return _0x2fa047['set']({'label':_0x3d3c8a,'icon':_0x19700d,'tooltip':!0x0,'tooltipPosition':_0x347b44}),_0x2fa047['extendTemplate']({'attributes':{'class':_0x4743b6}}),_0x2fa047['on']('execute',()=>{this['fire'](_0x1433aa,this['_model']['id']);}),_0x2fa047;}['_setupKeyboardNavigation'](){const _0xca82b9=this['element'];this['keystrokes']['listenTo'](_0xca82b9);for(const _0x513212 of this['focusables'])this['focusTracker']['add'](_0x513212['element']),this['keystrokes']['listenTo'](_0x513212['element']);this['keystrokes']['set']('enter',(_0x530316,_0x29fed3)=>{_0xca82b9===_0x530316['target']&&(this['focusCycler']['focusFirst'](),_0x29fed3());}),this['keystrokes']['set']('esc',(_0x5052f3,_0x509137)=>{_0xca82b9!==_0x5052f3['target']&&(this['focus'](),_0x509137());});}}class mn extends _0x48a7fd{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x4031ac,_0x5e2282,_0x271cdf,_0x2a166b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558ee0){super(_0x558ee0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14d62b=this['editor']['config'];_0x14d62b['define']('trackChanges.SuggestionThreadView',fn),_0x14d62b['define']('trackChanges.SuggestionView',gn),_0x14d62b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14d62b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37d608,_0x4c1003){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc32e3,_0x291876]of this['_handleControllerBuffer']){const _0xb288f6=this['_suggestionToController']['has'](_0xc32e3);_0xb288f6||_0x291876?_0xb288f6&&_0x291876&&this['_destroyController'](_0xc32e3):this['_initializeController'](_0xc32e3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2a166b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37d608,_0x4c1003);}['init'](){const _0x1ddcf1=this['editor'],_0x311d79=_0x1ddcf1['plugins']['get'](Xe),_0x47a8fc=_0x1ddcf1['plugins']['get'](_0x271cdf),_0x4b344c=_0x1ddcf1['plugins']['get'](_0x2a166b),_0x3ddac2=_0x1ddcf1['plugins']['get'](_0x5e2282);this['_addUIComponentsToFactory'](),_0x4b344c['addSourceCollector'](()=>{const _0x3a2b09=[];for(const [_0x995069,_0x3d115d]of Array['from'](this['_suggestionToController'])){const _0x172a74=_0x995069['getAllAdjacentSuggestions'](),_0x3ed378=[];for(const _0x4826dd of _0x172a74){if(!_0x4826dd['isInContent'])continue;if(_0x4826dd['isMultiRange']){_0x3ed378['push'](..._0x4826dd['getRanges']());continue;}const _0x266e9c=_0x4826dd['getFirstRange']();if(_0x3ed378['length']>0x0){const _0x2f3897=_0x3ed378[0x0]['getJoined'](_0x266e9c);if(_0x2f3897){_0x3ed378[0x0]=_0x2f3897;continue;}}_0x3ed378['push'](_0x266e9c);}_0x3a2b09['push']([_0x3d115d['view'],_0x3ed378]);}return _0x3a2b09;}),this['listenTo'](_0x311d79,'suggestionLoaded',(_0x1af7e2,_0x23819d)=>{this['listenTo'](_0x23819d,'change:previous',(_0x31652b,_0x5ee7e2,_0x1f86db,_0x3bc940)=>{_0x23819d['isInContent']&&(null==_0x1f86db?(this['_updateController'](_0x3bc940['head']),this['_handleSuggestionControllerDelayed'](_0x23819d,!0x1)):(this['_updateController'](_0x1f86db['head']),null==_0x3bc940&&this['_handleSuggestionControllerDelayed'](_0x23819d,!0x0)));}),null!==_0x23819d['previous']?this['_updateController'](_0x23819d['head']):this['_handleSuggestionControllerDelayed'](_0x23819d,!0x1);}),this['listenTo'](_0x311d79,'suggestionUnloaded',(_0x3cad28,_0x448f86,_0x3cdca8)=>{this['stopListening'](_0x448f86,'change:previous'),this['_handleControllerBuffer']['delete'](_0x448f86),this['_suggestionToController']['has'](_0x448f86)&&this['_destroyController'](_0x448f86),_0x3cdca8&&this['_updateController'](_0x3cdca8['head']);}),this['listenTo'](_0x311d79,'suggestionChanged',(_0x4adbc7,_0x251634)=>{this['_updateController'](_0x251634);}),this['listenTo'](_0x47a8fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ddac2,'addComment',(_0xb1bc11,{threadId:_0xf61dca,isFromAdapter:_0xd1ae3c})=>{if(_0xd1ae3c||!_0x311d79['hasSuggestion'](_0xf61dca))return;const _0x4a7963=_0x311d79['getSuggestion'](_0xf61dca);this['_suggestionToController']['get'](_0x4a7963)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16b7ba=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f88b7;for(const _0x45e519 in _0x16b7ba){const _0x2c0f86=_0x45e519,_0x32c626=_0x16b7ba[_0x2c0f86];if('trackChangesLicenseKeyValid'==_0x32c626||'trackChangesLicenseKeyInvalid'==_0x32c626||'trackChangesLicenseKeyExpired'==_0x32c626||'trackChangesLicenseKeyDomainLimit'==_0x32c626||'trackChangesLicenseKeyNotAllowed'==_0x32c626||'trackChangesLicenseKeyEvaluationLimit'==_0x32c626||'trackChangesLicenseKeyUsageLimit'==_0x32c626){delete _0x16b7ba[_0x2c0f86],_0x1f88b7=_0x32c626,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2f66ad){const _0xc230c8=this['_suggestionToController']['get'](_0x2f66ad);if(!_0xc230c8)return null;return this['editor']['plugins']['get'](_0x271cdf)['getByInnerView'](_0xc230c8['view'])||null;}['getSuggestionForAnnotation'](_0x389273){const _0x9e2dfb=this['_viewToController']['get'](_0x389273['innerView']);return _0x9e2dfb?_0x9e2dfb['model']:null;}['_refreshActiveMarkers'](){const _0x3cddb9=this['editor']['plugins']['get'](_0x271cdf),_0x456933=this['editor']['plugins']['get'](Xe),_0x5585b0=Array['from'](_0x3cddb9['activeAnnotations'],_0x4530ab=>_0x4530ab['innerView'])['filter'](_0x15ecae=>this['_viewToController']['has'](_0x15ecae)),_0x5741ea=[];for(const _0xa4f80b of _0x5585b0){const _0xa4ba88=this['_viewToController']['get'](_0xa4f80b)['model']['getAllAdjacentSuggestions']();_0x5741ea['push'](..._0xa4ba88['reduce']((_0x98bc49,_0x19aa33)=>[..._0x98bc49,..._0x19aa33['getMarkerNames']()],[]));}_0x456933['activeMarkers']=_0x5741ea;}['_addUIComponentsToFactory'](){const _0x2700dd=this['editor'],_0x54c9cb=_0x2700dd['locale'],_0x3280aa=At(_0x54c9cb,'Track\x20changes'),_0xdfdc05=new _0x20fd31([{'type':'switchbutton','model':new _0x21e271({'withText':!0x0,'isToggleable':!0x0,'label':_0x3280aa,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2700dd['plugins']['has']('TrackChangesPreview')&&_0xdfdc05['addMany']([{'type':'separator'},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x59aca4 of _0xdfdc05)if(En(_0x59aca4)){const _0x207a14=_0x2700dd['commands']['get'](_0x59aca4['model']['commandName']);_0x59aca4['model']['bind']('isOn','isEnabled')['to'](_0x207a14,'value','isEnabled');}_0x2700dd['ui']['componentFactory']['add']('trackChanges',_0x43b4fa=>this['_createToolbarButton'](_0x43b4fa,_0xdfdc05,_0x3280aa)),_0x2700dd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x160691=>this['_createMenuBarMenu'](_0x160691,_0xdfdc05,_0x3280aa));}['_createToolbarButton'](_0x2d297c,_0x4baf32,_0x4f9a74){const _0x448d55=_0x68695f(_0x2d297c,_0x19fadc),_0x16e0da=this['editor']['commands']['get']('trackChanges');_0x448d55['buttonView']['set']({'tooltip':_0x4f9a74,'label':_0x4f9a74,'icon':_0x30fa92}),_0x448d55['buttonView']['bind']('isOn')['to'](_0x16e0da,'value'),_0x448d55['buttonView']['on']('execute',()=>{_0x16e0da['execute'](),this['editor']['editing']['view']['focus']();}),_0x24cf66(_0x448d55,_0x4baf32,{'role':'menu'});const _0x5f3b5b=[];for(const _0x52124e of _0x4baf32)En(_0x52124e)&&_0x5f3b5b['push'](this['editor']['commands']['get'](_0x52124e['model']['commandName']));const _0x932489=_0x448d55['buttonView'];return _0x932489['actionView']['unbind']('isEnabled'),_0x932489['arrowView']['unbind']('isEnabled'),_0x932489['actionView']['bind']('isEnabled')['to'](_0x16e0da,'isEnabled'),_0x932489['arrowView']['bind']('isEnabled')['toMany'](_0x5f3b5b,'isEnabled',(..._0x27090e)=>_0x27090e['some'](_0x37cada=>_0x37cada)),_0x448d55['on']('execute',_0x10fcce=>{this['editor']['execute'](_0x10fcce['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x448d55;}['_createMenuBarMenu'](_0x190aa0,_0x1e2faf,_0x408f04){const _0x347562=new _0x2f3156(_0x190aa0),_0x87262e=this['editor']['commands']['get']('trackChanges');_0x347562['buttonView']['set']({'label':_0x408f04,'icon':_0x30fa92});const _0x4b7b1a=new _0x1f80df(_0x190aa0);for(const _0x568d3d of _0x1e2faf){if('separator'==_0x568d3d['type']){_0x4b7b1a['items']['add'](new _0x4079d5(_0x190aa0));continue;}const _0x285376=new _0x2f6d9d(_0x190aa0,_0x347562),_0x2a96c2=new _0x285b3c(_0x190aa0),_0x41e814=_0x568d3d['model'];_0x2a96c2['bind'](...Object['keys'](_0x41e814))['to'](_0x41e814),_0x2a96c2['delegate']('execute')['to'](_0x347562),_0x2a96c2['on']('execute',()=>{this['editor']['execute'](_0x41e814['commandName']),this['editor']['editing']['view']['focus']();}),_0x285376['children']['add'](_0x2a96c2),_0x4b7b1a['items']['add'](_0x285376);}return _0x347562['bind']('isEnabled')['to'](_0x87262e,'isEnabled'),_0x347562['panelView']['children']['add'](_0x4b7b1a),_0x347562;}['_initializeController'](_0x433de2){const _0x203a83=this['editor'],_0x45ef3e=_0x203a83['config'],_0x6aac6b=_0x203a83['plugins']['get'](_0x271cdf),_0x139c6e=_0x203a83['plugins']['get'](_0x5e2282),_0x67e304=_0x203a83['plugins']['get'](_0x2a166b),_0x14f0d3=_0x203a83['plugins']['get'](_0x4031ac)['me'],_0xc069e3=_0x45ef3e['get']('trackChanges')['SuggestionThreadView'],_0x537810=_0x45ef3e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c5b1d,CommentThreadInputView:_0x17330a}=_0x203a83['plugins']['get']('CommentsUI');let _0x500122,_0x49d92a,_0xf54345;this['_annotationViews']['has'](_0x433de2['id'])?(_0x49d92a=this['_annotationViews']['get'](_0x433de2['id']),_0x500122=_0x49d92a['mainView']):(_0x500122=new _0xc069e3(_0x203a83['locale'],_0x433de2,_0x14f0d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x45ef3e['get']('comments.editorConfig'),'licenseKey':_0x45ef3e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x45ef3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45ef3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45ef3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5aa53a(_0x45ef3e['get']('locale'),_0x203a83['locale']),'CommentView':_0x45ef3e['get']('comments')['CommentView'],'CommentsListView':_0x2c5b1d,'CommentThreadInputView':_0x17330a,'SuggestionView':_0x537810}),_0x500122['suggestionView']['acceptButton']['on']('execute',()=>{_0x203a83['editing']['view']['focus']();}),_0x500122['suggestionView']['discardButton']['on']('execute',()=>{_0x203a83['editing']['view']['focus']();}),_0x49d92a=_0x6aac6b['createAnnotationView'](this['editor']['locale'],_0x500122),_0x49d92a['bind']('isDirty')['to'](_0x500122,'isDirty'),_0x49d92a['bind']('length')['to'](_0x500122),_0x49d92a['bind']('type')['to'](_0x500122,'type',_0x1e6579=>'suggestion-'+_0x1e6579),_0x500122['on']('escape',()=>{_0xf54345['fire']('escape');}),this['_annotationViews']['set'](_0x433de2['id'],_0x49d92a));const _0x58bfa6=_0x139c6e['createCommentThreadController'](_0x433de2['commentThread'],_0x500122),_0x5a4caf=new hn(_0x203a83,_0x433de2,_0x500122,_0x58bfa6),_0x34e5a8=_0x433de2['getAllAdjacentSuggestions']()['filter'](_0x4d2f98=>_0x4d2f98['isInContent']);_0x500122['descriptionParts']=_0x203a83['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x34e5a8),this['_suggestionToController']['set'](_0x433de2,_0x5a4caf),this['_viewToController']['set'](_0x500122,_0x5a4caf);const _0x314ccb=()=>{const _0x19663f=[],_0x4cc6b9=_0x433de2['getAllAdjacentSuggestions']()['filter'](_0x32365d=>_0x32365d['isInContent']);for(const _0x5a860e of _0x4cc6b9)_0x19663f['push'](..._0x5a860e['getMarkers']());return _0x1f97dd(_0x203a83['editing'],_0x19663f);};_0xf54345=_0x6aac6b['createAnnotation']({'view':_0x49d92a,'target':_0x314ccb,'type':()=>'suggestion-'+_0x5a4caf['view']['type'],'isVisible':!!_0x314ccb()}),_0x139c6e['_bindAnnotationToEditors'](_0x500122,_0xf54345),_0x6aac6b['add'](_0xf54345),_0x67e304['registerAnnotation'](_0xf54345);}['_destroyController'](_0x25cdce){const _0x3fab4e=this['editor']['plugins']['get'](_0x5e2282),_0x1e56a7=this['editor']['plugins']['get'](_0x271cdf),_0x495734=this['_suggestionToController']['get'](_0x25cdce),_0x2a2e0f=_0x495734['view'],_0x1a6c50=_0x1e56a7['getByInnerView'](_0x2a2e0f);_0x3fab4e['_unbindEditors'](_0x2a2e0f),_0x1a6c50&&_0x1e56a7['remove'](_0x1a6c50),this['_suggestionToController']['delete'](_0x25cdce),this['_viewToController']['delete'](_0x2a2e0f),_0x495734['destroy']();}['_updateController'](_0x1a727c){if(!_0x1a727c['isInContent']||!this['_suggestionToController']['has'](_0x1a727c))return;const _0x2b7cbc=this['editor']['plugins']['get'](Xe),_0x328dfc=this['_suggestionToController']['get'](_0x1a727c),_0x2be80d=_0x1a727c['getAllAdjacentSuggestions']();_0x328dfc['view']['descriptionParts']=_0x2b7cbc['descriptionFactory']['getDescriptions'](_0x2be80d);}['destroy'](){for(const _0x546331 of this['_suggestionToController']['keys']())this['_destroyController'](_0x546331);for(const _0x126d3a of this['_annotationViews']['values']())_0x126d3a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2d8a02){return'model'in _0x2d8a02;}class Tn extends _0x48a7fd{static get['requires'](){return[Xe,mn,_0x86a160];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf4933f){this['editor']['plugins']['get'](Xe)['adapter']=_0xf4933f;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x40cfc1){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x40cfc1);}['getSuggestions']({skipNotAttached:_0x4b8ae9=!0x1,toJSON:_0x26516e=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x4b8ae9,'toJSON':_0x26516e});}['getSuggestion'](_0x1a01e1){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x1a01e1);}}const _n=['Pagination'];class pn extends _0x48a7fd{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b1322=this['editor'];if(_0x1b1322['config']['define']('trackChangesData.editorCreator',_0x19c861=>{const _0x23de59=_0x1b1322['model']['document']['getRootNames']()['reduce']((_0x5750e0,_0x4f952a)=>(_0x5750e0[_0x4f952a]='',_0x5750e0),{});return _0x1b1322['constructor']['create'](_0x23de59,_0x19c861);}),'function'!=typeof _0x1b1322['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f698f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa6de20){return bn(this['editor'],!0x0,_0xa6de20);}['getDataWithDiscardedSuggestions'](_0x2950ca){return bn(this['editor'],!0x1,_0x2950ca);}}class Ln extends _0x48a7fd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eca76){function _0x248398(_0x29e1c1){return _0x29e1c1['map'](_0x642fd7=>String['fromCharCode'](_0x642fd7))['join']('');}super(_0x4eca76),this['result']='end',_0x4eca76[_0x248398([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248398([0x76,0x69,0x65,0x77])][_0x248398([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x248398([0x61,0x75,0x74,0x6f]),_0x4eca76[_0x248398([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x248398([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x248398([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x248398([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x248398([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function In(_0xf0ccb4){return void 0x0!==_0xf0ccb4['getRootsAttributes'];}async function bn(_0xbd9d64,_0x4610db,_0x17a266){const _0x5238cf=_0x294bf3(_0xbd9d64,_n);if(_0x5238cf['plugins']['push'](Xe,Ln),In(_0xbd9d64)){_0x5238cf['roots']=Object['create'](null);for(const _0x120f7d of _0xbd9d64['model']['document']['getRootNames']())_0x5238cf['roots'][_0x120f7d]={'modelAttributes':_0xbd9d64['getRootAttributes'](_0x120f7d)};}const _0x3b146d=document['createDocumentFragment'](),_0x4e8471=_0xbd9d64['config']['get']('trackChangesData')['editorCreator'],_0x54104f=await _0x4e8471(_0x5238cf,()=>function(_0x1a6e6e){const _0x3e04bd=document['createElement']('div');return _0x1a6e6e['appendChild'](_0x3e04bd),_0x3e04bd;}(_0x3b146d));!function(_0x2ef6e8,_0x4fa8ba){const _0x5cd41a=_0x2ef6e8['model']['document']['getRootNames']()['reduce']((_0x2c56a7,_0x179b3b)=>(_0x2c56a7[_0x179b3b]=_0x2ef6e8['data']['get']({'rootName':_0x179b3b}),_0x2c56a7),{}),_0x3f3895=_0x2ef6e8['plugins']['get']('Users')['users']['map'](_0x32ef69=>({'id':_0x32ef69['id'],'name':_0x32ef69['name']})),_0x4ee942=_0x2ef6e8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x321e82=_0x2ef6e8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f5923=_0x4fa8ba['plugins']['get']('Users'),_0x48d579=_0x4fa8ba['plugins']['get']('TrackChangesEditing'),_0x4fc112=_0x4fa8ba['plugins']['get']('CommentsRepository');for(const _0x132d6a of _0x4fc112['getCommentThreads']())_0x132d6a['remove']();for(const _0x13fa8a of _0x3f3895)_0x2f5923['getUser'](_0x13fa8a['id'])||_0x2f5923['addUser'](_0x13fa8a);_0x2f5923['me']||_0x2f5923['useAnonymousUser']();for(const _0x1eefac of _0x321e82)_0x4fc112['addCommentThread'](_0x1eefac);for(const _0x230b51 of _0x4ee942)_0x48d579['addSuggestionData'](_0x230b51);_0x4fa8ba['data']['set'](_0x5cd41a);}(_0xbd9d64,_0x54104f),_0x54104f['execute'](_0x4610db?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ad58c=In(_0x54104f)?_0x54104f['getFullData'](_0x17a266):_0x54104f['data']['get'](_0x17a266);return await _0x54104f['destroy'](),_0x2ad58c;}class An extends _0x2d90fc{['options'];constructor(_0x36a9d5,_0x520a92){super(_0x36a9d5),this['options']=_0x520a92,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'](_0x48ff94,_0x87689c){if(!this['element'])return;const _0xb0a280=[];for(const [_0x126266,_0x4ae33c]of _0x48ff94){const _0x127a17=document['createElement']('div');_0x127a17['setAttribute']('data-ck-root-name',_0x126266),_0x127a17['className']=_0x4ae33c['classes']+'\x20ck-track-changes-preview__root-container',_0x127a17['innerHTML']=_0x4ae33c['content'],_0xb0a280['push'](_0x127a17);}_0x87689c(this['element'],_0xb0a280),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4b255d{constructor(_0x3b5d82){super(_0x3b5d82),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4b9923=this['editor'],_0x49511e=_0x4b9923['locale'],_0x1617e7=_0x4b9923['plugins']['get']('Dialog');let _0x4017bc;const _0x5bc772=function(_0x83fd2f){const _0x58223f={};if('editables'in _0x83fd2f['ui']['view']){for(const [_0x4f9aaf,_0x4850ef]of Object['entries'](_0x83fd2f['ui']['view']['editables']))_0x58223f[_0x4f9aaf]=_0x4850ef['element'];}else _0x58223f[_0x83fd2f['model']['document']['getRootNames']()[0x0]]=_0x83fd2f['ui']['view']['editable']['element'];return _0x58223f;}(_0x4b9923),_0x35add9=function(_0x2ea78e){let _0x52a505=0x0;for(const _0x38fd35 of Object['values'](_0x2ea78e))_0x52a505=Math['max'](_0x52a505,_0x38fd35['getBoundingClientRect']()['width']);let _0x5772ee=0x0;for(const _0xe984c5 of Object['values'](_0x2ea78e))_0x5772ee+=_0xe984c5['getBoundingClientRect']()['height'];const _0x14d092=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x313304=Math['min'](_0x5772ee,_0x14d092);return{'width':_0x52a505,'height':_0x313304};}(_0x5bc772);_0x1617e7['show']({'id':'finalContentPreview','title':At(_0x49511e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x49511e,{'dialogRects':_0x35add9}),'onHide':()=>{_0x4017bc['detachFromDom']();},'onShow':()=>{_0x4b9923['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x19bc1c=>{const _0x2a0ce6=this['_standarizeRootsData'](_0x19bc1c,_0x4b9923,_0x5bc772);_0x1617e7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2a0ce6,_0x4b9923['config']['get']('trackChanges.preview.renderFunction'));}),_0x4017bc=new _0x37230f(_0x49511e,[_0x1617e7['view']]),_0x4017bc['attachToDom'](),_0x4017bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4b9923['once']('destroy',()=>{_0x4017bc['detachFromDom']();});const _0x2b7337=_0x1617e7['view']['headerView']['class'];_0x1617e7['view']['headerView']['class']=_0x2b7337?_0x2b7337+'\x20ck-reset_all':'ck-reset_all',_0x1617e7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1617e7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c6152=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x20a4a4=_0x3c6152['previewMode'],_0x26d34f={};if('$labels'===_0x20a4a4){for(const _0x2af860 of _0x3c6152['getMergeFieldsIds']())_0x26d34f[_0x2af860]=_0x3c6152['getLabel'](_0x2af860)||_0x2af860;}else{const _0x10db72='$defaultValues'===_0x20a4a4?_0x3c6152['getDefaultValues']():_0x3c6152['getDataSetValues'](_0x20a4a4,!0x0);for(const _0x3c6a5f of Object['entries'](_0x10db72)){const [_0x54f8b9,_0x492daa]=_0x3c6a5f;_0x26d34f[_0x54f8b9]=null!==_0x492daa?_0x492daa:_0x3c6152['getLabel'](_0x54f8b9)||_0x54f8b9;}}return{'mergeFieldsData':_0x26d34f};}['_standarizeRootsData'](_0x3060ce,_0x9b56c9,_0x27e498){let _0x38efa7;if('string'==typeof _0x3060ce){const _0x42e3f3=_0x9b56c9['model']['document']['getRootNames']()[0x0];_0x38efa7={[_0x42e3f3]:_0x3060ce};}else _0x38efa7=_0x3060ce;const _0x2a53a4=this['_fixMediaEmbeds'](_0x38efa7,_0x9b56c9),_0x19b0af=function(_0x55b369,_0x350f4f){for(const [_0x23194d,_0x36414f]of _0x55b369)_0x36414f['classes']=_0x350f4f[_0x23194d]['classList']['value']['replace']('ck-focused','');return _0x55b369;}(this['_sortRoots'](_0x9b56c9)['reduce']((_0x1a4063,_0x57b7b3)=>(_0x1a4063['push']([_0x57b7b3,{'content':_0x2a53a4[_0x57b7b3],'classes':''}]),_0x1a4063),[]),_0x27e498);return _0x19b0af;}['_fixMediaEmbeds'](_0x3587c4,_0x28ae64){if(!_0x28ae64['plugins']['has']('MediaEmbedEditing'))return _0x3587c4;const _0x213afd=_0x28ae64['plugins']['get']('MediaEmbedEditing');for(const [_0x22346b,_0x864831]of Object['entries'](_0x3587c4)){const _0x421ee1=document['createElement']('div');_0x421ee1['innerHTML']=_0x864831,(_0x421ee1['querySelectorAll']('figure.media')['forEach'](_0x3b8604=>{const _0x2819bc=_0x3b8604['querySelector']('oembed');if(_0x2819bc){const _0x32c613=_0x2819bc['getAttribute']('url');if(_0x32c613){const _0x4c79e2=_0x213afd['registry']['getMediaViewElement'](new et(_0x28ae64['editing']['view']['document']),_0x32c613,{'elementName':'','renderForEditingView':!0x0}),_0x568e51=document['createElement']('div');_0x568e51['classList']['add']('ck-media__wrapper'),_0x4c79e2['render'](_0x568e51,_0x28ae64['editing']['view']['domConverter']),_0x2819bc['replaceWith'](_0x568e51);}}}),_0x3587c4[_0x22346b]=_0x421ee1['innerHTML']);}return _0x3587c4;}['_sortRoots'](_0x2a5fed){if(!function(_0x5f45c9){return void 0x0!==_0x5f45c9['getRootsAttributes'];}(_0x2a5fed))return _0x2a5fed['model']['document']['getRootNames']();const _0x70a80a=[],_0x42798f=new Map();for(const _0x412e91 of _0x2a5fed['model']['document']['getRootNames']()){const _0x8ea3f3=_0x2a5fed['editing']['view']['getDomRoot'](_0x412e91)['getClientRects']()['item'](0x0);_0x70a80a['push'](_0x412e91),_0x42798f['set'](_0x412e91,_0x8ea3f3);}return _0x70a80a['sort']((_0x3ea0f0,_0xc11fdc)=>{const _0x4f12aa=_0x42798f['get'](_0x3ea0f0),_0x231a10=_0x42798f['get'](_0xc11fdc);return _0x4f12aa['y']-_0x231a10['y']||_0x4f12aa['x']-_0x231a10['x'];}),_0x70a80a;}}class Cn extends _0x48a7fd{static get['requires'](){return[pn,_0x3e94ca];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ec0e2){super(_0x5ec0e2),_0x5ec0e2['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x5ec0e2['config']['define']('trackChanges.preview.renderFunction',(_0x174ccf,_0x57090f)=>{for(const _0x3489db of _0x57090f)_0x174ccf['appendChild'](_0x3489db);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3a2e57,Plugin as _0x3cecf3,PendingActions as _0x24243d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3aec4d,Annotations as _0x3a1a56,EditorAnnotations as _0x334083,Comments as _0x381b09}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xf305a4,ObservableMixin as _0x4ad4da,uid as _0x15c67d,priorities as _0x4f16be,insertToPriorityArray as _0x269903,logWarning as _0x245ac6,getEnvKeystrokeText as _0x4f5ab9,FocusTracker as _0x510f0b,KeystrokeHandler as _0x144cb2,Collection as _0x4eedf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x52f1a9,IconCancel as _0x2ee486,IconTrackChanges as _0x26eeb4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x588851,View as _0x1d4965,ViewCollection as _0x2cde5a,FocusCycler as _0x21f97f,UIModel as _0x4bcee2,createDropdown as _0x427557,SplitButtonView as _0x1277f5,addListToDropdown as _0x25df39,MenuBarMenuView as _0x329c9d,MenuBarMenuListView as _0x45ae9b,ListSeparatorView as _0x115fe3,MenuBarMenuListItemView as _0x1992a8,MenuBarMenuListItemButtonView as _0x3e12cd,BodyCollection as _0xeff71e,Dialog as _0x1403a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x309b71,SuggestionsConversion as _0x3a1f76,Users as _0x519d42,DocumentCompare as _0x261f31,fixElementSuggestionRange as _0x2dd2a4,hashObject as _0x8ab510,surroundingMarkersDetector as _0x111019,FOCUS_ANNOTATION_KEYSTROKE as _0x140de9,AriaDescriptionView as _0x2e66ab,setupThreadKeyboardNavigation as _0x47cc6b,trimHtml as _0x487fd4,UserView as _0xa2432f,LateFocusButtonView as _0x34b590,getDateTimeFormatter as _0x2ae8ac,getAllMarkersDomElementsSorted as _0x4c4f2f,sanitizeEditorConfig as _0x32a910}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x1e449a,ModelLiveRange as _0x52f028,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x3a2e57{['_enabledCommands'];constructor(_0x20de26,_0x14eb3f){super(_0x20de26),this['_enabledCommands']=_0x14eb3f,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 _0x249c71 of this['editor']['commands']['commands']())_0x249c71['affectsData']&&!this['_enabledCommands']['has'](_0x249c71)&&_0x249c71['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6c6451 of this['editor']['commands']['commands']())_0x6c6451['affectsData']&&!this['_enabledCommands']['has'](_0x6c6451)&&_0x6c6451['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x3a2e57{['_suggestions'];constructor(_0x31a3ac,_0x4bb05a){super(_0x31a3ac),this['_suggestions']=_0x4bb05a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44f2bd){const _0x29e8a5=this['_suggestions']['get'](_0x44f2bd);if(!_0x29e8a5)throw new _0xf305a4('track-changes-accept-suggestion-not-found',this);const _0x458336=_0x29e8a5['getRanges']();this['editor']['model']['canEditAt'](_0x458336)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x29e8a5);}}class DiscardSuggestionCommand extends _0x3a2e57{['_suggestions'];constructor(_0x227a3e,_0x34ae7a){super(_0x227a3e),this['_suggestions']=_0x34ae7a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b68ee){const _0x219ed1=this['_suggestions']['get'](_0x1b68ee);if(!_0x219ed1)throw new _0xf305a4('track-changes-discard-suggestion-not-found',this);const _0x29826f=_0x219ed1['getRanges']();this['editor']['model']['canEditAt'](_0x29826f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x219ed1);}}function ht(_0x41e9d0,_0x50c70c){let _0x4e4df0='';return _0x4e4df0+=_0x41e9d0['split']('*')['map']((_0xc5227c,_0x5a13bf)=>_0x5a13bf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0xc5227c)+'</span>':gt(_0xc5227c))['join'](''),_0x50c70c&&(_0x4e4df0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x50c70c['value']+'\x22\x20title=\x22'+_0x50c70c['title']+'\x22></span>'),_0x4e4df0;}function gt(_0x1fe2b2){const _0x3070bd=document['createElement']('span');return _0x3070bd['innerText']=_0x1fe2b2,_0x3070bd['innerHTML'];}function dt(_0x4090f1){return _0x4090f1['sort']((_0x55fd8f,_0x41f30d)=>'attribute'===_0x55fd8f['type']&&'attribute'!==_0x41f30d['type']?-0x1:'attribute'!==_0x55fd8f['type']&&'attribute'===_0x41f30d['type']?0x1:'deletion'==_0x55fd8f['type']&&'deletion'!=_0x41f30d['type']?-0x1:'deletion'!=_0x55fd8f['type']&&'deletion'==_0x41f30d['type']?0x1:0x0);}function ft(_0x34ddba,_0x39d3ad){let _0x229995,_0x15794f=0x0;const _0x4ca6c3=[],_0x3e72=_0x39d3ad['schema'];for(;_0x15794f<_0x34ddba['length'];){const _0x3f3cef=_0x34ddba[_0x15794f],_0xb2b40d=_0x34ddba[_0x15794f+0x1];_0x229995||(_0x229995=_0x39d3ad['createPositionBefore'](_0x3f3cef)),mt(_0x39d3ad,_0x3f3cef,_0xb2b40d)||(_0x4ca6c3['push'](_0x39d3ad['createRange'](_0x229995,_0x3e72['isObject'](_0x3f3cef)?_0x39d3ad['createPositionAfter'](_0x3f3cef):_0x39d3ad['createPositionAt'](_0x3f3cef,'end'))),_0x229995=null),_0x15794f++;}return _0x4ca6c3;}function mt(_0x2ad9ec,_0x752197,_0x54c11b){if(!_0x54c11b)return!0x1;const _0x4dd0f0=_0x2ad9ec['createPositionAfter'](_0x752197),_0x166cf5=_0x2ad9ec['createPositionBefore'](_0x54c11b);return _0x4dd0f0['isTouching'](_0x166cf5);}function Et(_0x4b9bbd,_0x52f106,_0x17a31d){for(;_0x17a31d['length'];){const _0x47b770=_0x17a31d['splice'](0x0,0x64);_0x4b9bbd['change'](()=>{for(const _0x2592ec of _0x47b770)_0x2592ec['isInContent']&&_0x52f106['execute'](_0x2592ec['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x3a2e57{['_command'];['_suggestions'];constructor(_0x3aa18e,_0x2a5a93,_0x507e9c){super(_0x3aa18e),this['_command']=_0x2a5a93,this['_suggestions']=_0x507e9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4223fe=Array['from'](this['_suggestions']['values']())['some'](_0x6c905c=>_0x6c905c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4223fe;}['execute'](){const _0x588756=dt(Array['from'](this['_suggestions']['values']()));for(const _0x1d896a of _0x588756){const _0x55b9ac=_0x1d896a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55b9ac))return;}Et(this['editor']['model'],this['_command'],_0x588756);}}class ExecuteOnSelectedSuggestionsCommand extends _0x3a2e57{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x523101,_0x10a112,_0x7e1481){super(_0x523101),this['_command']=_0x10a112,this['_suggestions']=_0x7e1481,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x578809=this['editor']['model']['document']['selection'],_0x389966=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x38d71b,_0x46aced){const _0x49a690=Array['from'](_0x38d71b['getRanges']()),_0x389cfa=new Set();for(const _0x593a7c of _0x46aced)if(_0x593a7c['isInContent']){for(const _0x28886d of _0x49a690)for(const _0x512452 of _0x593a7c['getRanges']())(_0x28886d['isIntersecting'](_0x512452)||_0x38d71b['isCollapsed']&&!_0x593a7c['isMultiRange']&&_0x593a7c['next']&&_0x512452['end']['isTouching'](_0x28886d['start']))&&_0x389cfa['add'](_0x593a7c);}return _0x389cfa;}(_0x578809,_0x389966),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a581a=dt(Array['from'](this['_selectedSuggestions']));for(const _0x2b390d of _0x4a581a){const _0x5ea867=_0x2b390d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ea867))return;}Et(this['editor']['model'],this['_command'],_0x4a581a);}}class Suggestion extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ad4da(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf3acd7,_0x288045){super(),this['id']=_0x288045['id'],this['type']=_0x288045['type'],this['subType']=_0x288045['subType']||null,this['author']=_0x288045['author'],this['creator']=_0x288045['creator']||_0x288045['author'],this['isExternal']=Boolean(_0x288045['attributes']&&_0x288045['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x288045['originalSuggestionId']||null,this['_model']=_0xf3acd7,this['_onAccept']=_0x288045['onAccept'],this['_onDiscard']=_0x288045['onDiscard'],this['_onAttributesChange']=_0x288045['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x288045['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x110a8d=this;for(;_0x110a8d['previous'];)_0x110a8d=_0x110a8d['previous'];return _0x110a8d;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0xbe17e7){this['_markerNames']['add'](_0xbe17e7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x48f448=>this['_model']['markers']['get'](_0x48f448))['filter'](_0x3f22e3=>_0x3f22e3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3aad47=>{for(const _0x4798a7 of this['getMarkers']())_0x3aad47['removeMarker'](_0x4798a7);}),this['_markerNames']['clear']();}['removeMarker'](_0xdce04a){this['_model']['change'](_0x1b3e87=>{_0x1b3e87['removeMarker'](_0xdce04a);}),this['_markerNames']['delete'](_0xdce04a);}['addRange'](_0x5d58f7){const _0x17f0a4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x17f0a4),this['_model']['change'](_0x3d2650=>{_0x3d2650['addMarker'](_0x17f0a4,{'range':_0x5d58f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3923c8){for(const _0x4d3478 of this['getRanges']())if(_0x4d3478['isIntersecting'](_0x3923c8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x323d74=>_0x323d74['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c002b,_0x424f6b)=>[..._0x4c002b,..._0x424f6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4fa380=this['getRanges']();if(0x1!=_0x4fa380['length'])return null;const _0x232ba2=_0x4fa380[0x0],_0x4f2938=_0x232ba2['start']['nodeAfter'],_0x47a377=_0x232ba2['end']['nodeBefore'];return _0x4f2938 instanceof _0x1e449a?_0x4f2938!=_0x47a377?null:_0x4f2938: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 _0x3bbe09=[];let _0x1ac7d0=this['head'];for(;_0x1ac7d0;)_0x3bbe09['push'](_0x1ac7d0),_0x1ac7d0=_0x1ac7d0['next'];return _0x3bbe09;}['setAttribute'](_0x3ba795,_0x53d56b){const _0x4d257c=nt(this['attributes']);it(_0x4d257c,_0x3ba795,_0x53d56b),st(_0x4d257c,this['attributes'])||(this['attributes']=_0x4d257c,this['_onAttributesChange'](_0x4d257c));}['removeAttribute'](_0x34b2a1){const _0x3c1bfd=nt(this['attributes']);rt(_0x3c1bfd,_0x34b2a1),st(_0x3c1bfd,this['attributes'])||(this['attributes']=_0x3c1bfd,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 _0x15c67d()['substr'](0x1,0x5);}}function Tt(_0x2fff89,_0x3874ef,_0x5af6e7){const _0x5a8e5f=_0x2fff89['t'],t=_0x2fff89['t'];switch(_0x3874ef){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',_0x5af6e7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5af6e7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5af6e7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5af6e7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5af6e7);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',_0x5af6e7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5af6e7);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',_0x5af6e7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5af6e7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5af6e7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5af6e7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5af6e7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5af6e7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5af6e7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5af6e7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5af6e7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5af6e7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5af6e7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5af6e7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5af6e7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5af6e7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5af6e7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5af6e7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5af6e7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5af6e7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5af6e7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5af6e7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5af6e7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5af6e7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5af6e7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5af6e7);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5af6e7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5af6e7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5af6e7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5af6e7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5af6e7);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'},_0x5af6e7);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_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'},_0x5af6e7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5af6e7);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5af6e7);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5af6e7);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5af6e7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5af6e7);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x5a8e5f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5af6e7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5a8e5f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5af6e7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5af6e7);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'},_0x5af6e7);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'},_0x5af6e7);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'},_0x5af6e7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3874ef;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2aa442,_0x177440){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2aa442,this['_locale']=_0x177440;}['getDescriptions'](_0x4265a){const _0x4a3866=[],_0x2a09fc=new Set(),_0x180422=new Set();for(let _0x4f1d91=0x0;_0x4f1d91<_0x4265a['length'];_0x4f1d91++){const _0xd4b34d=_0x4265a[_0x4f1d91];if(!_0xd4b34d['isInContent'])continue;const _0x5a3a34=this['_handleCustomCallbackDescription'](_0xd4b34d);if(_0x5a3a34){if(null!=_0xd4b34d['subType']){if(_0x2a09fc['has'](_0xd4b34d['subType']))continue;_0x2a09fc['add'](_0xd4b34d['subType']);}_0x4a3866['push'](_0x5a3a34);}else{if('attribute'==_0xd4b34d['type']){const _0xbe1be7=_0xd4b34d['data']['key'];if(_0x180422['has'](_0xbe1be7))continue;_0x180422['add'](_0xd4b34d['data']['key']),_0xbe1be7==Ft?this['_handleRenameSuggestionDescription'](_0x4a3866,_0xd4b34d):this['_handleAttributeSuggestionDescription'](_0x4a3866,_0xd4b34d);continue;}'insertion'!=_0xd4b34d['type']&&'deletion'!=_0xd4b34d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a3866,_0xd4b34d,_0x4265a[_0x4f1d91+0x1]);}}return this['_resolveDescriptionItems'](_0x4a3866);}['registerDescriptionCallback'](_0x33d728){this['_customCallbacks']['push'](_0x33d728);}['registerElementLabel'](_0x3c325b,_0x36757a,_0x2d2f4c=_0x4f16be['normal']){'function'==typeof _0x3c325b?_0x269903(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3c325b,'label':_0x36757a,'priority':_0x2d2f4c}):this['_itemLabels']['set'](_0x3c325b,_0x36757a);}['registerAttributeLabel'](_0x38c2a8,_0x44245d){this['_attributeLabels']['set'](_0x38c2a8,_0x44245d);}['getItemLabel'](_0x4408a6,_0x497e15=0x1){let _0x4d4309;for(const _0x26ccc6 of this['_itemLabelsCallbacks'])if(_0x26ccc6['matchingCallback'](_0x4408a6)){_0x4d4309=_0x26ccc6['label'];break;}return _0x4d4309||(_0x4d4309=this['_itemLabels']['get'](_0x4408a6['name'])),_0x4d4309?_0x4d4309(_0x497e15):0x1!==_0x497e15?_0x497e15+'\x20'+_0x4408a6['name']+'s':''+_0x4408a6['name'];}['_addDescriptionItems'](_0x3db2e4,_0x4a0d00){const _0x52121c=_0x4a0d00['getFirstRange']()['getWalker'](),_0x56d021='insertion'==_0x4a0d00['type']?'add':'remove';for(const _0x4f9c96 of _0x52121c){const _0x477ded=_0x4f9c96['item'],_0x76b3c3=_0x3db2e4[_0x3db2e4['length']-0x1];if(_0x477ded['is']('$textProxy'))_0x76b3c3&&_0x76b3c3['type']['indexOf']('Container')>-0x1&&_0x3db2e4['pop'](),_0x76b3c3&&'text'==_0x76b3c3['type']?_0x76b3c3[_0x56d021]+=_0x477ded['data']:_0x3db2e4['push']({'type':'text','add':'add'==_0x56d021?_0x477ded['data']:'','remove':'remove'==_0x56d021?_0x477ded['data']:''});else{if(this['_schema']['isObject'](_0x477ded)){const _0x4767bc=_0x477ded;if(_0x76b3c3&&_0x76b3c3['type']['indexOf']('Container')>-0x1&&_0x3db2e4['pop'](),'elementEnd'==_0x4f9c96['type'])continue;_0x76b3c3&&_0x76b3c3['type']==_0x56d021+'Object'&&_0x76b3c3['element']['name']==_0x4767bc['name']?_0x76b3c3['quantity']++:_0x3db2e4['push']({'type':_0x56d021+'Object','element':_0x4767bc,'quantity':0x1}),_0x52121c['skip'](_0x490d17=>!('elementEnd'==_0x490d17['type']&&_0x490d17['item']==_0x477ded));}else{if(this['_schema']['checkChild'](_0x477ded,'$text')||_0x477ded['is']('element','softBreak')){const _0x4afaf2=_0x477ded;if('add'==_0x56d021&&'elementStart'==_0x4f9c96['type']||'remove'==_0x56d021&&'elementEnd'==_0x4f9c96['type'])continue;if(_0x76b3c3&&-0x1==_0x76b3c3['type']['indexOf']('Container')){'text'==_0x76b3c3['type']&&(_0x76b3c3[_0x56d021]+='\x0a');continue;}let _0x33465e;if(_0x33465e='add'==_0x56d021?_0x4afaf2['nextSibling']&&!this['_schema']['isObject'](_0x4afaf2['nextSibling'])?_0x4afaf2['nextSibling']:null:_0x4afaf2['previousSibling']&&!this['_schema']['isObject'](_0x4afaf2['previousSibling'])?_0x4afaf2['previousSibling']:null,_0x4afaf2['isEmpty']||_0x33465e&&_0x33465e['isEmpty']){const _0x3b21ca=_0x33465e&&_0x33465e['isEmpty']?_0x33465e:_0x4afaf2;_0x76b3c3&&_0x76b3c3['type']==_0x56d021+'EmptyContainer'&&_0x76b3c3['element']['name']==_0x3b21ca['name']?_0x76b3c3['quantity']++:_0x3db2e4['push']({'type':_0x56d021+'EmptyContainer','element':_0x3b21ca,'quantity':0x1});}else _0x3db2e4['push']({'type':_0x56d021+'Container','element':_0x4afaf2});}}}}}['_resolveDescriptionItems'](_0x48dc5d){const _0x1429fa=this['_locale'],_0x11a12d=[],_0x4e2c0e=[],_0xfa3e8a=[];for(const _0x88de81 of _0x48dc5d)switch(_0x88de81['type']){case'text':if(_0x88de81['add']=_0x88de81['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x88de81['remove']=_0x88de81['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x88de81['add']&&''!=_0x88de81['remove']){_0x11a12d['push']({'type':'replace','content':Tt(_0x1429fa,'REPLACE_TEXT',['\x22'+_0x88de81['remove']+'\x22','\x22'+_0x88de81['add']+'\x22'])});continue;}if(null!=_0x88de81['add']['match'](/^ +$/)){_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0',Tt(_0x1429fa,'ELEMENT_SPACE',_0x88de81['add']['length']))});continue;}if(null!=_0x88de81['remove']['match'](/^ +$/)){_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0',Tt(_0x1429fa,'ELEMENT_SPACE',_0x88de81['remove']['length']))});continue;}if(''!=_0x88de81['add']){_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0','\x22'+_0x88de81['add']+'\x22')});continue;}_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0','\x22'+_0x88de81['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'addContainer':_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Split:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'removeContainer':_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Merge:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'addFormat':_0x4e2c0e['push'](_0x88de81['key']);continue;case'removeFormat':_0xfa3e8a['push'](_0x88de81['key']);continue;default:_0x11a12d['push'](_0x88de81);}if(_0x4e2c0e['length']){const _0x3b050d=_0x4e2c0e['map'](_0x481774=>this['_attributeLabels']['has'](_0x481774)?this['_attributeLabels']['get'](_0x481774):_0x481774)['join'](',\x20');_0x11a12d['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x3b050d)});}if(_0xfa3e8a['length']){const _0x2f7d99=_0xfa3e8a['map'](_0x57c3dd=>this['_attributeLabels']['has'](_0x57c3dd)?this['_attributeLabels']['get'](_0x57c3dd):_0x57c3dd)['join'](',\x20');_0x11a12d['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f7d99)});}return _0x11a12d;}['_handleCustomCallbackDescription'](_0x2e77ae){for(const _0x216182 of this['_customCallbacks']){const _0x37cdc4=_0x216182(_0x2e77ae);if(_0x37cdc4&&'type'in _0x37cdc4)return _0x37cdc4;}}['_handleAttributeSuggestionDescription'](_0x1bbb58,_0x3a3604){const _0x3f0890=_0x3a3604['data'],_0x5b1c24=void 0x0===_0x3f0890['newValue']?'removeFormat':'addFormat';_0x1bbb58['push']({'type':_0x5b1c24,'key':_0x3f0890['key']});}['_handleRenameSuggestionDescription'](_0x13f073,_0x3efe5c){_0x13f073['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3efe5c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4012f7,_0x4d707c,_0x128b95){if(this['_addDescriptionItems'](_0x4012f7,_0x4d707c),_0x128b95&&_0x128b95['getFirstRange']()&&!_0x4d707c['getFirstRange']()['end']['isEqual'](_0x128b95['getFirstRange']()['start'])){const _0xee0cee=_0x4012f7[_0x4012f7['length']-0x1],_0x53d523='insertion'==_0x4d707c['type']?'add':'remove';_0xee0cee&&'text'==_0xee0cee['type']&&(_0xee0cee[_0x53d523]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3cecf3{['afterInit'](){const _0x21b9ff=this['editor'],_0x198cc4=_0x21b9ff['plugins']['get']('TrackChangesEditing');_0x21b9ff['commands']['get']('showAIAssistant')&&_0x198cc4['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3cecf3{['afterInit'](){const _0x25355f=this['editor'],_0x44d414=_0x25355f['plugins']['get']('TrackChangesEditing');_0x25355f['commands']['get']('toggleAi')&&_0x44d414['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3cecf3{['afterInit'](){const _0x3446c5=this['editor'],_0x2c608a=_0x3446c5['plugins']['get']('TrackChangesEditing');_0x3446c5['commands']['get']('aiQuickAction')&&_0x2c608a['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3cecf3{['afterInit'](){const _0x2c98fa=this['editor'],_0x159056=_0x2c98fa['locale'];if(!_0x2c98fa['plugins']['has']('AlignmentEditing'))return;const _0x65c110=_0x2c98fa['plugins']['get']('TrackChangesEditing');_0x65c110['enableDefaultAttributesIntegration']('alignment'),_0x65c110['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x159056,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309b60=this['editor'],_0x12f689=_0x309b60['locale'];_0x309b60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7656e7=>{if('formatBlock'!=_0x7656e7['type'])return;const {data:_0x12c443}=_0x7656e7;if(_0x12c443&&'alignment'==_0x12c443['commandName']){const _0x2ece61=_0x12c443['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x12f689,'*Format:*\x20%0',function(_0x3024a0){switch(_0x3024a0){case'left':return Tt(_0x12f689,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x12f689,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x12f689,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x12f689,'FORMAT_JUSTIFY_TEXT');}}(_0x2ece61))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3cecf3{['afterInit'](){const _0x275db8=this['editor'],_0x443e78=_0x275db8['plugins']['get']('TrackChangesEditing'),_0x430e52=_0x275db8['locale'];for(const _0x432d04 of _t){if(!_0x275db8['plugins']['has'](_0x432d04))continue;const _0x535954=_0x432d04['slice'](0x0,-0x7)['toLowerCase'](),_0x3e180d='FORMAT_'+_0x535954['toUpperCase']();_0x443e78['enableDefaultAttributesIntegration'](_0x535954),_0x443e78['descriptionFactory']['registerAttributeLabel'](_0x535954,Tt(_0x430e52,_0x3e180d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x371aeb=this['editor'],_0x1cb212=_0x371aeb['locale'],_0x29dd01=_0x371aeb['plugins']['get']('TrackChangesEditing');function _0x5f59ff(_0x462c9b,_0x489a75){_0x29dd01['descriptionFactory']['registerDescriptionCallback'](_0x568e81=>{if('formatInline'!=_0x568e81['type'])return;const {data:_0x2861a3}=_0x568e81;return _0x2861a3&&_0x2861a3['commandName']===_0x462c9b?_0x2861a3['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1cb212,'*Format:*\x20%0',_0x489a75)}:{'type':'format','content':Tt(_0x1cb212,'*Remove\x20format:*\x20%0',_0x489a75)}:void 0x0;});}_0x5f59ff('bold',Tt(_0x1cb212,'FORMAT_BOLD')),_0x5f59ff('italic',Tt(_0x1cb212,'FORMAT_ITALIC')),_0x5f59ff('underline',Tt(_0x1cb212,'FORMAT_UNDERLINE')),_0x5f59ff('code',Tt(_0x1cb212,'FORMAT_CODE')),_0x5f59ff('strikethrough',Tt(_0x1cb212,'FORMAT_STRIKETHROUGH')),_0x5f59ff('subscript',Tt(_0x1cb212,'FORMAT_SUBSCRIPT')),_0x5f59ff('superscript',Tt(_0x1cb212,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3cecf3{['afterInit'](){const _0x47db1a=this['editor'],_0x39c833=_0x47db1a['locale'];if(!_0x47db1a['plugins']['has']('BlockQuoteEditing'))return;const _0x45ef70=_0x47db1a['plugins']['get']('TrackChangesEditing'),_0x4ab880=this['editor']['commands']['get']('blockQuote');_0x45ef70['enableCommand']('blockQuote',(_0x3172f6,_0x373c41={})=>{const _0x35c040=this['editor']['model']['document']['selection'],_0x5901b3=_0x373c41&&void 0x0!==_0x373c41['forceValue']?_0x373c41['forceValue']:!_0x4ab880['value'];let _0x58282e=[];if(_0x5901b3){const _0x58d0e8=Array['from'](_0x35c040['getSelectedBlocks']())['filter'](_0x362dad=>pt(_0x362dad)||function(_0x463864,_0x5e93ab){const _0x3f700e=_0x5e93ab['checkChild'](_0x463864['parent'],'blockQuote'),_0x2fe578=_0x5e93ab['checkChild'](['$root','blockQuote'],_0x463864);return _0x3f700e&&_0x2fe578;}(_0x362dad,this['editor']['model']['schema']));_0x58282e=ft(_0x58d0e8,_0x47db1a['model']);}else{const _0x162b1d=Array['from'](_0x35c040['getSelectedBlocks']())['filter'](_0x48fbb3=>pt(_0x48fbb3));_0x58282e=ft(_0x162b1d,_0x47db1a['model']);}_0x47db1a['model']['change'](()=>{for(const _0x4f8cce of _0x58282e)_0x45ef70['markBlockFormat'](_0x4f8cce,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5901b3}]});});}),_0x45ef70['descriptionFactory']['registerDescriptionCallback'](_0x7f86c=>{const {data:_0x3f5dd0}=_0x7f86c;if(_0x3f5dd0&&'blockQuote'==_0x3f5dd0['commandName']){const _0x18c7ff=Tt(_0x39c833,'ELEMENT_BLOCK_QUOTE');return _0x3f5dd0['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x39c833,'*Set\x20format:*\x20%0',_0x18c7ff)}:{'type':'format','content':Tt(_0x39c833,'*Remove\x20format:*\x20%0',_0x18c7ff)};}});}}function pt(_0x533e27){return'blockQuote'==_0x533e27['parent']['name'];}class TrackChangesBookmark extends _0x3cecf3{['afterInit'](){const _0x40e345=this['editor'],_0x45dca3=_0x40e345['locale'],_0x62f52a=_0x40e345['plugins']['get']('TrackChangesEditing');_0x40e345['plugins']['has']('BookmarkEditing')&&(_0x62f52a['enableCommand']('insertBookmark'),_0x62f52a['enableDefaultAttributesIntegration']('updateBookmark'),_0x62f52a['descriptionFactory']['registerDescriptionCallback'](_0x51445b=>{if('insertion'!=_0x51445b['type']&&'deletion'!=_0x51445b['type']&&'attribute'!=_0x51445b['type'])return;const _0x2b2ed4=_0x51445b['getContainedElement']();if(null==_0x2b2ed4)return;if(!_0x2b2ed4['is']('element','bookmark'))return;const _0x5b9567=_0x2b2ed4['getAttribute']('bookmarkId');if('insertion'==_0x51445b['type'])return{'type':'insertion','content':Tt(_0x45dca3,'*Insert:*\x20%0','\x22'+_0x5b9567+'\x22\x20'+Tt(_0x45dca3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x51445b['type'])return{'type':'deletion','content':Tt(_0x45dca3,'*Remove:*\x20%0','\x22'+_0x5b9567+'\x22\x20'+Tt(_0x45dca3,'ELEMENT_BOOKMARK'))};const {data:_0x6dd184}=_0x51445b;if(!_0x6dd184||'bookmarkId'!=_0x6dd184['key'])return;return{'type':'format','content':Tt(_0x45dca3,'*Set\x20bookmark:*\x20%0','\x22'+_0x6dd184['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3cecf3{['afterInit'](){const _0x42d765=this['editor'];_0x42d765['plugins']['has']('CaseChange')&&(_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3cecf3{['afterInit'](){const _0x5e1cd6=this['editor'];_0x5e1cd6['commands']['get']('ckbox')&&_0x5e1cd6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3cecf3{['afterInit'](){const _0x11ab4c=this['editor'];if(!_0x11ab4c['plugins']['has']('CodeBlock'))return;const _0x49dd33=_0x11ab4c['plugins']['get']('TrackChangesEditing'),_0x5421c7=_0x11ab4c['locale'],_0x15e53f=_0x11ab4c['config']['get']('codeBlock')['languages'],_0x142700=_0x11ab4c['commands']['get']('codeBlock');_0x49dd33['enableCommand']('indentCodeBlock'),_0x49dd33['enableCommand']('outdentCodeBlock'),_0x49dd33['enableCommand']('codeBlock',(_0x4da49e,_0x1ad704={})=>{const _0x37d04e=_0x11ab4c['model'],_0x3a6814=_0x11ab4c['model']['document']['selection'],_0x33c307=_0x1ad704&&void 0x0!==_0x1ad704['forceValue']?_0x1ad704['forceValue']:!_0x142700['value'];let _0x2f70a;_0x1ad704['language']||(_0x1ad704['language']=_0x15e53f[0x0]['language']),_0x2f70a=_0x33c307?Array['from'](_0x3a6814['getSelectedBlocks']())['filter'](_0x3f3a09=>Ct(_0x3f3a09)||function(_0x4debf9,_0x163e50){if(_0x4debf9['is']('rootElement')||_0x163e50['isLimit'](_0x4debf9))return!0x1;return _0x163e50['checkChild'](_0x4debf9['parent'],'codeBlock');}(_0x3f3a09,_0x37d04e['schema'])):Array['from'](_0x3a6814['getSelectedBlocks']())['filter'](_0x3e7598=>Ct(_0x3e7598));const _0x58d2db=ft(_0x2f70a,_0x37d04e);_0x37d04e['change'](()=>{for(const _0x35f07c of _0x58d2db)_0x49dd33['markBlockFormat'](_0x35f07c,{'commandName':'codeBlock','commandParams':[{..._0x1ad704,'forceValue':_0x33c307}],'formatGroupId':'blockName'});});}),(_0x49dd33['descriptionFactory']['registerElementLabel']('codeBlock',_0x3cbebc=>Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',_0x3cbebc)),_0x49dd33['descriptionFactory']['registerDescriptionCallback'](_0x4c4fcc=>{if('formatBlock'!=_0x4c4fcc['type'])return;const _0x1999f6=_0x5421c7['t'],{data:_0x5955c8}=_0x4c4fcc;if(!_0x5955c8||'codeBlock'!=_0x5955c8['commandName'])return;const _0x28269d=_0x5955c8['commandParams'][0x0]['language'],_0x138be7=_0x1999f6(_0x15e53f['find'](_0x3bdb73=>_0x3bdb73['language']===_0x28269d)['label'])['toLowerCase']();return _0x5955c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5421c7,'*Set\x20format:*\x20%0',Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x138be7+')')}:{'type':'format','content':Tt(_0x5421c7,'*Remove\x20format:*\x20%0',Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x4de467){return'codeBlock'==_0x4de467['name'];}class TrackChangesComments extends _0x3cecf3{['afterInit'](){const _0x1b9071=this['editor'];if(!_0x1b9071['plugins']['has']('CommentsEditing'))return;_0x1b9071['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3cecf3{static get['requires'](){return[at];}['init'](){const _0x4fa193=this['editor'],_0x5d676f=_0x4fa193['plugins']['get']('TrackChangesEditing');_0x5d676f['enableCommand']('delete');const _0x58b836=_0x4fa193['commands']['get']('deleteForward');_0x5d676f['enableCommand']('deleteForward',(_0x37cf98,_0x28b585={})=>{const _0x49307f=_0x4fa193['model']['createSelection'](_0x4fa193['model']['document']['selection']);_0x49307f['isCollapsed']&&_0x4fa193['model']['modifySelection'](_0x49307f,{'direction':'forward','unit':_0x28b585['unit']});const _0x1b6202=_0x49307f['getFirstRange'](),_0x114b0b=_0x52f028['fromRange'](_0x1b6202);let _0x3f11bf;_0x37cf98(_0x28b585),_0x3f11bf='$graveyard'==_0x114b0b['root']['rootName']?_0x4fa193['model']['createRange'](_0x1b6202['start']):_0x4fa193['model']['createRange'](_0x114b0b['start'],_0x114b0b['end']),_0x114b0b['detach'](),_0x4fa193['model']['enqueueChange'](_0x58b836['buffer']['batch'],_0x25dd3c=>{_0x58b836['buffer']['lock'](),_0x25dd3c['setSelection'](_0x25dd3c['createRange'](_0x3f11bf['end'])),_0x58b836['buffer']['unlock']();});});}}class TrackChangesList extends _0x3cecf3{['afterInit'](){const _0x1de5bf=this['editor'];if(!_0x1de5bf['plugins']['has']('ListEditing'))return;const _0xe02b12=_0x1de5bf['locale'],_0x5bfd1b=_0x1de5bf['plugins']['get']('TrackChangesEditing'),_0x663e5f=_0x1de5bf['plugins']['has']('TodoListEditing'),_0x18efe2=!!_0x1de5bf['config']['get']('list.multiBlock');function _0x4ef730(_0x37ed2c){return{'type':'format','content':''+Tt(_0xe02b12,'*Set\x20format:*\x20%0',_0x37ed2c)};}function _0x5a7bba(_0x219cf4){return{'type':'format','content':''+Tt(_0xe02b12,'*Remove\x20format:*\x20%0',_0x219cf4)};}_0x5bfd1b['enableDefaultAttributesIntegration']('numberedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('bulletedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('customNumberedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('customBulletedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('indentList'),_0x5bfd1b['enableDefaultAttributesIntegration']('outdentList'),_0x5bfd1b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5bfd1b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18efe2&&(_0x5bfd1b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5bfd1b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x663e5f&&(_0x5bfd1b['enableDefaultAttributesIntegration']('todoList'),_0x5bfd1b['enableDefaultAttributesIntegration']('checkTodoList'),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x2b1aa7=>{const {data:_0x2db6e2}=_0x2b1aa7;if(_0x2db6e2&&'todoListChecked'==_0x2db6e2['key'])return{'type':'format','content':_0x2db6e2['newValue']?Tt(_0xe02b12,'*Check\x20item*'):Tt(_0xe02b12,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5b0646=>{if(_0x5b0646['batch']['isUndo'])return!0x1;let _0x29cbf2=!0x1;const _0x247e9b=_0x5bfd1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6511=>'todoListChecked'===_0x5bfd1b['_getAttributeKey'](_0x3b6511));for(const _0x538732 of _0x247e9b){'todo'!=_0x538732['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5bfd1b['_findSuggestions'](_0x538732['getFirstRange'](),'attribute')['find'](_0xd2a842=>'listType'===_0x5bfd1b['_getAttributeKey'](_0xd2a842['suggestion']))||(_0x5b0646['removeMarker'](_0x538732['getFirstMarker']()),_0x29cbf2=!0x0));}return _0x29cbf2;})),_0x5bfd1b['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0xe02b12,'FORMAT_INDENT'));const _0x1e5b33={'type':'format','content':''};_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x4495e6=>{const {data:_0xcd5c30}=_0x4495e6;if(!_0xcd5c30||'listType'!=_0xcd5c30['key'])return;let _0x45b6a9=_0x4495e6['head'];for(;_0x45b6a9;){if(_0x45b6a9['data']&&(('listStyle'==_0x45b6a9['data']['key']||'listMarkerStyle'==_0x45b6a9['data']['key'])&&(_0x45b6a9['data']['newValue']&&'default'!=_0x45b6a9['data']['newValue']||'default'!=_0x45b6a9['data']['oldValue']&&!_0xcd5c30['newValue'])||!_0x18efe2&&_0x45b6a9['data']['key']==Ft))return _0x1e5b33;_0x45b6a9=_0x45b6a9['next'];}if(null==_0xcd5c30['newValue'])switch(_0xcd5c30['oldValue']){case'bulleted':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_TODO_LIST'));}switch(_0xcd5c30['newValue']){case'bulleted':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_TODO_LIST'));}}),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x5f131e=>{const {data:_0xeca03e}=_0x5f131e;if(_0xeca03e&&'listIndent'==_0xeca03e['key'])return null==_0xeca03e['newValue']||null==_0xeca03e['oldValue']&&0x0==_0xeca03e['newValue']?_0x1e5b33:void 0x0;}),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x58be7c=>{if('attribute'!=_0x58be7c['type'])return;const {data:_0x501aa6}=_0x58be7c;if(!_0x501aa6||'listItemId'!=_0x501aa6['key'])return;const _0x32b3e8=kt(_0x58be7c);return'newValue'==_0x32b3e8?{'type':'format','content':Tt(_0xe02b12,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32b3e8?{'type':'format','content':Tt(_0xe02b12,'*Split:*\x20list\x20item')}:_0x1e5b33;}),_0x1de5bf['model']['document']['registerPostFixer'](_0x3709ee=>this['listItemIdFixer'](_0x3709ee)),_0x1de5bf['model']['document']['registerPostFixer'](_0x513dc9=>this['noTrackChangesFixer'](_0x513dc9)),_0x1de5bf['model']['document']['on']('change:data',(_0x1266ab,_0x5e82b0)=>{if(_0x5e82b0['isUndo']||!_0x5e82b0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55c582){if(_0x55c582['batch']['isUndo']||!_0x55c582['batch']['isLocal'])return!0x1;let _0x3e025b=!0x1;const _0x44ff8f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12a6f1=>_0x12a6f1['data']&&'listItemId'==_0x12a6f1['data']['key'])['filter'](_0x1ae448=>_0x1ae448['data']['newValue']&&_0x1ae448['data']['oldValue']);for(const _0x353a31 of _0x44ff8f)kt(_0x353a31)||(_0x55c582['removeMarker'](_0x353a31['getFirstMarker']()),_0x3e025b=!0x0);return _0x3e025b;}['noTrackChangesFixer'](_0x13dc9d){if(_0x13dc9d['batch']['isUndo']||!_0x13dc9d['batch']['isLocal'])return!0x1;const _0x57fe76=this['editor']['model']['document']['differ'],_0x1e7376=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e7376['trackChangesCommand']['value'])return!0x1;let _0x2ad3a1=!0x1;const _0x4456a7=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0xcfc4b3=_0x57fe76['getChanges']()['filter'](_0x1a1371=>'attribute'==_0x1a1371['type'])['filter'](_0x3d965a=>_0x4456a7['has'](_0x3d965a['attributeKey']));if(0x0==_0xcfc4b3['length'])return _0x2ad3a1;const _0x59e444=new Set(_0x57fe76['getMarkersToAdd']()['filter'](_0x3e9521=>{if(!_0x3e9521['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x383a1f=_0x309b71(_0x3e9521['name'])['subType']['split']('|')[0x0];return _0x4456a7['has'](_0x383a1f);})['map'](_0xcd9235=>_0x309b71(_0xcd9235['name'])['id']));for(const _0x11a2bd of _0xcfc4b3){const _0xcd09e1=_0x1e7376['_findSuggestions'](_0x11a2bd['range'],'attribute')['filter'](_0x3c4f66=>{if(_0x3c4f66['meta']['isNextTo'])return!0x1;if(_0x59e444['has'](_0x3c4f66['suggestion']['id']))return!0x1;const _0x2bbb9e=_0x1e7376['_getAttributeKey'](_0x3c4f66['suggestion']);return _0x4456a7['has'](_0x2bbb9e);})['map'](_0x2c1fe1=>_0x2c1fe1['suggestion']);if(_0xcd09e1['length']){for(const _0x1442e0 of _0xcd09e1)_0x13dc9d['removeMarker'](_0x1442e0['getFirstMarker']());_0x2ad3a1=!0x0;}}return _0x2ad3a1;}['assureChains'](){const _0x5caac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c5742=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xb87eac;const _0x46531e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cee65=>{if(_0x3cee65['data']['oldRange']||!_0x3cee65['data']['newRange'])return null;if(!_0x3cee65['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4366de}=_0x309b71(_0x3cee65['name']);if(!_0x5caac1['hasSuggestion'](_0x4366de))return null;const _0x4c5e70=_0x5caac1['getSuggestion'](_0x4366de);return _0x3c5742['includes'](_0x4c5e70['data']['key']);})['map'](_0x52bec0=>{const {id:_0x3282e2}=_0x309b71(_0x52bec0['name']),_0x2ba156=_0x5caac1['getSuggestion'](_0x3282e2);return _0xb87eac=_0x2ba156['attributes']['groupId'],_0x2ba156['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x46531e['size'])return;const _0xd42f6e=_0x5caac1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c9117=>'attribute'==_0x4c9117['type']&&_0x4c9117['data']&&_0x3c5742['includes'](_0x4c9117['data']['key'])&&_0x4c9117['attributes']['groupId']!=_0xb87eac)['map'](_0x3361af=>({'listItem':_0x3361af['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3361af['attributes']['groupId']})),_0x4426db=new Set();for(const {groupId:_0xbc0e3a,listItem:_0x116b10}of _0xd42f6e)_0x46531e['has'](_0x116b10)&&_0x4426db['add'](_0xbc0e3a);for(const _0x5aedb5 of _0x5caac1['getSuggestions']())_0x4426db['has'](_0x5aedb5['attributes']['groupId'])&&_0x5aedb5['setAttribute']('groupId',_0xb87eac);}['_supportLegacySuggestions'](){const _0xe889ba=this['editor'],_0x5b58ff=_0xe889ba['locale'],_0x2c224a=_0xe889ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2c224a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3edee1,_0x5f1b80){const _0x54bbb1=[];for(let _0x10c860 of _0x3edee1)_0x10c860['start']['nodeAfter']===_0x10c860['end']['parent']&&(_0x10c860=_0xe889ba['model']['createRange'](_0xe889ba['model']['createPositionAt'](_0x10c860['start']['nodeAfter'],0x0))),_0x54bbb1['push'](_0x10c860);_0xe889ba['model']['change'](_0x1d374b=>{const _0x236ea=_0xe889ba['model']['document']['selection'],_0x4c4d8d=Array['from'](_0x236ea['getRanges']())['map'](_0xd52d95=>_0x52f028['fromRange'](_0xd52d95));_0x1d374b['setSelection'](_0x54bbb1),_0xe889ba['commands']['get'](_0x5f1b80['commandName'])['refresh'](),_0x5f1b80['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe889ba['execute'](_0x5f1b80['commandName'],..._0x5f1b80['commandParams']),_0x1d374b['setSelection'](_0x4c4d8d);for(const _0x11c27d of _0x4c4d8d)_0x11c27d['detach']();});}),_0x2c224a['descriptionFactory']['registerElementLabel'](function(_0x3a794f){const _0x5a9e62=!_0xe889ba['model']['schema']['isObject'](_0x3a794f),_0x2bfea1=_0x3a794f['previousSibling'],_0x4e95c5=_0x3a794f['nextSibling'],_0x443583=_0x3a794f['getAttribute']('listItemId'),_0x40ee66=!_0x2bfea1||_0x2bfea1['getAttribute']('listItemId')!==_0x443583,_0x5cb530=!_0x4e95c5||_0x4e95c5['getAttribute']('listItemId')!==_0x443583;return _0x5a9e62&&Boolean(_0x443583)&&_0x40ee66&&_0x5cb530;},_0x39b9c3=>Tt(_0x5b58ff,'ELEMENT_LIST_ITEM',_0x39b9c3));}['_registerLegacyDescription'](){const _0x1dc872=this['editor'],_0x2c24b1=_0x1dc872['locale'];function _0x15762d(_0x39006f){const _0x435105=_0x1dc872['commands']['get']('bulletedList')['value'],_0x4d5617=_0x1dc872['commands']['get']('numberedList')['value'];return'numberedList'===_0x39006f?_0x435105:_0x4d5617;}_0x1dc872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a32b8){if('formatBlock'!=_0x4a32b8['type'])return;const {data:_0x3e5149}=_0x4a32b8;if(!_0x3e5149)return;let _0x1adc5a,_0x3b5374,_0x1d9bc3,_0x484381;switch(_0x3e5149['commandName']){case'bulletedList':_0x1d9bc3=_0x3e5149['commandParams'][0x0]['forceValue'],_0x484381=_0x15762d(_0x3e5149['commandName']),_0x1adc5a=_0x1d9bc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x484381&&_0x1dc872['config']['get']('list.multiBlock')||(_0x1adc5a='*Change\x20to:*\x20%0'),_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d9bc3=_0x3e5149['commandParams'][0x0]['forceValue'],_0x484381=_0x15762d(_0x3e5149['commandName']),_0x1adc5a=_0x1d9bc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x484381&&_0x1dc872['config']['get']('list.multiBlock')||(_0x1adc5a='*Change\x20to:*\x20%0'),_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1adc5a='*Indent:*\x20%0',_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1adc5a=function(_0x544ac7){const _0x5b2c89=_0x544ac7['getFirstRange']();let _0x71379e=_0x5b2c89['start']['nodeAfter'];for(;_0x71379e&&_0x5b2c89['containsItem'](_0x71379e);){if(_0x71379e['getAttribute']('listIndent')>0x0)return!0x1;_0x71379e=_0x71379e['nextSibling'];}return!0x0;}(_0x4a32b8)?Tt(_0x2c24b1,'*Format:*\x20remove\x20from\x20%0',Tt(_0x2c24b1,function(_0x4be34e){return'ELEMENT_'+_0x4be34e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a32b8))):Tt(_0x2c24b1,'*Outdent:*\x20%0',Tt(_0x2c24b1,'ELEMENT_LIST_ITEM')),_0x3b5374={'type':'format','content':_0x1adc5a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3e5149['multipleBlocks']&&(_0x1adc5a='*Merge:*\x20%0',_0x3b5374={'type':'deletion','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_LIST_ITEM'))});}return _0x3b5374;});}}function kt(_0x4ee656){let _0x4179e4=_0x4ee656['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4179e4;){const _0x4f4078=_0x4179e4['getAttribute']('listItemId');if(!_0x4f4078)return!0x1;if(_0x4f4078==_0x4ee656['data']['newValue'])return'newValue';if(_0x4f4078==_0x4ee656['data']['oldValue'])return'oldValue';_0x4179e4=_0x4179e4['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bfb29=this['editor']['config']['get']('list.properties'),_0x15af91=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bfb29['styles']&&_0x15af91['enableDefaultAttributesIntegration']('listStyle'),_0x2bfb29['reversed']&&_0x15af91['enableDefaultAttributesIntegration']('listReversed'),_0x2bfb29['startIndex']&&_0x15af91['enableDefaultAttributesIntegration']('listStart');const _0x54759e={'type':'format','content':''};_0x15af91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5ed9cd=this['editor']['locale'];_0x15af91['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x5ed9cd,'FORMAT_LIST_REVERSED')),_0x15af91['descriptionFactory']['registerDescriptionCallback'](_0x47e1ea=>{const {data:_0x539ca1}=_0x47e1ea;if(_0x539ca1&&'listReversed'==_0x539ca1['key'])return null==_0x539ca1['newValue']||0x0==_0x539ca1['newValue']&&null==_0x539ca1['oldValue']?_0x54759e:void 0x0;}),_0x15af91['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x5ed9cd,'FORMAT_LIST_START')),_0x15af91['descriptionFactory']['registerDescriptionCallback'](_0x58f8ec=>{const {data:_0x3bbbde}=_0x58f8ec;if(_0x3bbbde&&'listStart'==_0x3bbbde['key'])return null==_0x3bbbde['newValue']||0x1==_0x3bbbde['newValue']&&null==_0x3bbbde['oldValue']?_0x54759e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25309c=>{if(_0x25309c['batch']['isUndo'])return!0x1;let _0x179697=!0x1;const _0x1b2a80=_0x15af91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ebcd5=>{const _0x1f6af2=_0x15af91['_getAttributeKey'](_0x1ebcd5);return'listStart'==_0x1f6af2||'listReversed'==_0x1f6af2;});for(const _0x527a9c of _0x1b2a80){const _0x4502d6=_0x527a9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4502d6||'customNumbered'==_0x4502d6)continue;_0x15af91['_findSuggestions'](_0x527a9c['getFirstRange'](),'attribute')['find'](_0x5bbc67=>'listType'==_0x15af91['_getAttributeKey'](_0x5bbc67['suggestion']))||(_0x25309c['removeMarker'](_0x527a9c['getFirstMarker']()),_0x179697=!0x0);}return _0x179697;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd4574a){const _0x9988c6=this['editor']['locale'],{data:_0x4ee5a6}=_0xd4574a,_0x53aebb={'type':'format','content':''};if(!_0x4ee5a6||'listStyle'!=_0x4ee5a6['key'])return;if(!_0x4ee5a6['oldValue'])return'default'==_0x4ee5a6['newValue']?_0x53aebb:{'type':'format','content':''+Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['newValue'])))};if(!_0x4ee5a6['newValue']){if('default'==_0x4ee5a6['oldValue'])return _0x53aebb;let _0x302675=_0xd4574a['head'];for(;_0x302675;){if(_0x302675['data']&&'listType'==_0x302675['data']['key']&&_0x302675['data']['newValue'])return _0x53aebb;_0x302675=_0x302675['next'];}return{'type':'format','content':''+Tt(_0x9988c6,'*Remove\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['oldValue'])))};}if('default'!=_0x4ee5a6['newValue'])return{'type':'format','content':''+Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['newValue'])))};let _0x445873=_0xd4574a['head'];for(;_0x445873;){if(_0x445873['data']&&'listType'==_0x445873['data']['key']&&_0x445873['data']['newValue']&&_0x445873['data']['oldValue'])return _0x53aebb;_0x445873=_0x445873['next'];}return{'type':'format','content':Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,'ELEMENT_'+_0xd4574a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x321f8e=this['editor'],_0x3f2601=_0x321f8e['locale'];_0x321f8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2abc9d=>{if('formatBlock'!=_0x2abc9d['type'])return;const {data:_0x3dd552}=_0x2abc9d;if(!_0x3dd552)return;let _0x218058,_0x431539;switch(_0x3dd552['commandName']){case'listStyle':_0x218058='*Change\x20to:*\x20%0',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058,Tt(_0x3f2601,this['_getTranslationKeyForListStyle'](_0x3dd552['commandParams'][0x0]['type'])))};break;case'listReversed':_0x218058=_0x3dd552['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058)};break;case'listStart':_0x218058='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058,_0x3dd552['commandParams'][0x0]['startIndex'])};}return _0x431539;});}['_getTranslationKeyForListStyle'](_0x13a14a){return'ELEMENT_'+function(_0x4aacfc){if(Lt['includes'](_0x4aacfc))return'bulleted';if(It['includes'](_0x4aacfc))return'numbered';return null;}(_0x13a14a)['toUpperCase']()+'_LIST_'+_0x13a14a['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3cecf3{['afterInit'](){const _0x95bf2d=this['editor'];_0x95bf2d['commands']['get']('emoji')&&_0x95bf2d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3cecf3{static get['requires'](){return[lt];}['init'](){const _0xf24325=this['editor'],_0x19712d=_0xf24325['plugins']['get']('TrackChangesEditing'),_0x49de2c=_0xf24325['commands']['get']('enter');_0x19712d['enableCommand']('enter',()=>{_0xf24325['model']['change'](_0x2366a1=>{const _0x2eddf9=_0xf24325['model']['document']['selection'],_0x6889cb=_0x2eddf9['getFirstPosition'](),_0xbdaa71=_0x52f028['fromRange'](_0x2eddf9['getFirstRange']());if(_0x49de2c['enterBlock'](_0x2366a1)){const _0x1029bb=_0xf24325['model']['createPositionAt'](_0x6889cb['parent']['nextSibling'],0x0),_0x39e11c=_0x2366a1['createRange'](_0x6889cb,_0x1029bb);_0x19712d['markInsertion'](_0x39e11c);}else _0x2366a1['setSelection'](_0x2366a1['createRange'](_0xbdaa71['end']));_0xbdaa71['detach'](),_0x49de2c['fire']('afterExecute',{'writer':_0x2366a1});});});}}class TrackChangesFindAndReplace extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x412c19=this['editor']['plugins']['get']('TrackChangesEditing');_0x412c19['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x412c19['enableCommand']('findNext'),_0x412c19['enableCommand']('findPrevious'),_0x412c19['enableCommand']('replace'),_0x412c19['enableCommand']('replaceAll');}['handleFindCommand'](_0x26b12a,_0x4ac2be,_0x126879={}){const _0x28bf94=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26b12a(_0x4d56ea=>{let _0x179990=('string'==typeof _0x4ac2be?_0x28bf94['findByTextCallback'](_0x4ac2be,_0x126879):_0x4ac2be)(_0x4d56ea);Array['isArray'](_0x179990)&&(_0x179990={'results':_0x179990,'searchText':'string'==typeof _0x4ac2be?_0x4ac2be:''});const _0x295dad=_0x179990['results']['filter'](_0x66ff6=>!0x1===this['_isInDeletionRange'](_0x66ff6,_0x4d56ea['item']));return{..._0x179990,'results':_0x295dad};},_0x126879);}['_isInDeletionRange'](_0x12232e,_0x3d978a){const _0x153ec2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d978a,_0x12232e['start']),this['editor']['model']['createPositionAt'](_0x3d978a,_0x12232e['end']));for(const _0x39291c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x153ec2['getIntersection'](_0x39291c['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3cecf3{['afterInit'](){const _0x5e1f7c=this['editor']['locale'],_0x28c072=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21d7d3,commandName:_0x4e5877}of bt)this['editor']['plugins']['has'](_0x21d7d3)&&_0x28c072['enableDefaultAttributesIntegration'](_0x4e5877);_0x28c072['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x5e1f7c,'FORMAT_FONT_SIZE')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x5e1f7c,'FORMAT_FONT_FAMILY')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x5e1f7c,'FORMAT_FONT_COLOR')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x5e1f7c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c3794=this['editor'],_0x256bd6=_0x4c3794['locale'];_0x4c3794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9204=>{const _0x26ef0e=_0x256bd6['t'];if('formatInline'!=_0x4b9204['type'])return;const {data:_0x535068}=_0x4b9204;if(null!=_0x535068){if('fontSize'==_0x535068['commandName']){const _0x1d8389=_0x535068['commandParams'][0x0]['value'];if(_0x1d8389){const _0x1d8012=_0x26ef0e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48e1c4=>_0x48e1c4['model']==_0x1d8389)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20size:*\x20%0',_0x1d8012)};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x535068['commandName']){const _0x5723cc=_0x535068['commandParams'][0x0]['value'];return _0x5723cc?{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20family:*\x20%0',_0x5723cc)}:{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x535068['commandName']){const _0xc89a78=_0x535068['commandParams'][0x0]['value'];if(_0xc89a78){const _0x2df410=_0x588851(this['editor']['config']['get']('fontColor.colors'))['find'](_0x429581=>_0x429581['model']==_0xc89a78);let _0x4b6edb=_0xc89a78,_0x4ea443='';return _0x2df410&&(_0x4b6edb=_0x2df410['label'],_0x4ea443=_0x26ef0e(_0x4b6edb)['toLowerCase']()),{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20color:*\x20%0',_0x4ea443)['trim'](),'color':{'value':_0xc89a78,'title':_0x4ea443||_0x4b6edb}};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x535068['commandName']){const _0x2a832a=_0x535068['commandParams'][0x0]['value'];if(_0x2a832a){const _0x2ba095=_0x588851(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b58a0=>_0x5b58a0['model']==_0x2a832a);let _0x3f2565=_0x2a832a,_0x134533='';return _0x2ba095&&(_0x3f2565=_0x2ba095['label'],_0x134533=_0x26ef0e(_0x3f2565)['toLowerCase']()),{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20background\x20color:*\x20%0',_0x134533)['trim'](),'color':{'value':_0x2a832a,'title':_0x134533||_0x3f2565}};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3cecf3{['afterInit'](){const {plugins:_0x383e5d}=this['editor'];_0x383e5d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x383e5d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2569de,plugins:_0x2dd0b1,commands:_0x4e81e0}=this['editor'],_0x19439e=_0x2dd0b1['get']('TrackChangesEditing');_0x4e81e0['get']('footnotesStyle')&&_0x19439e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4e81e0['get']('footnotesStart')&&_0x19439e['enableDefaultAttributesIntegration']('footnotesStart'),_0x19439e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x2569de,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x19439e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x2569de,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x54b4d3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5f37a1,commands:_0x5603ae}=this['editor'];_0x5603ae['get']('insertFootnote')&&_0x54b4d3['enableCommand']('insertFootnote'),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x9899a3=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTE_REF',_0x9899a3)),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x367e9b=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTE_DEFINITION',_0x367e9b)),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x39ed71=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x39ed71));}}class TrackChangesFormatPainter extends _0x3cecf3{['afterInit'](){const _0x4b657f=this['editor'],_0x5c14f5=_0x4b657f['plugins']['get']('TrackChangesEditing'),_0x51e637=_0x4b657f['commands']['get']('copyFormat'),_0x149261=_0x4b657f['commands']['get']('pasteFormat');_0x51e637&&_0x149261&&(_0x5c14f5['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c14f5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1e8e46=this['editor'],_0xffb293=_0x1e8e46['locale'];_0x1e8e46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a4272=>{if('formatBlock'!=_0x3a4272['type']&&'formatInline'!=_0x3a4272['type'])return;const {data:_0x1ce5dd}=_0x3a4272;if(_0x1ce5dd&&'pasteFormat'===_0x1ce5dd['commandName']){const _0x45ab14=[],_0x37d2a3=_0x1ce5dd['commandParams'][0x0];for(const [_0x386605,_0xa3f961]of Object['entries'](_0x37d2a3))_0x45ab14['push'](At(_0x1e8e46,_0x386605,_0xa3f961));return _0x45ab14['length']?{'type':'format','content':Tt(_0xffb293,'*Set\x20format\x20to:*\x20%0',_0x45ab14['join'](',\x20'))}:{'type':'format','content':Tt(_0xffb293,'*Remove\x20all\x20formatting*')};}});}}function At(_0x4526f7,_0xec3d29,_0x428256){const _0xbb6547=_0x4526f7['locale']['t'],_0x40e2b3=_0xec3d29['split'](/(?=[A-Z])/)['join']('\x20'),_0x17e6c6=_0xbb6547(_0x40e2b3['charAt'](0x0)['toUpperCase']()+_0x40e2b3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x428256)return _0x17e6c6;if('fontColor'===_0xec3d29||'fontBackgroundColor'===_0xec3d29){const _0x5b1914=_0x588851(_0x4526f7['config']['get']('fontColor.colors'))['find'](_0x14328a=>_0x14328a['model']==_0x428256);return _0x17e6c6+'\x20('+(_0x5b1914?_0xbb6547(_0x5b1914['label'])['toLowerCase']():_0x428256)+')';}if('fontSize'===_0xec3d29&&isNaN(parseFloat(_0x428256))){const _0x1e9bb0=_0x4526f7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4526f7['config']['get']('fontSize.options'))['find'](_0x71a52c=>_0x71a52c['model']==_0x428256);return _0x17e6c6+'\x20('+(_0x1e9bb0?_0xbb6547(_0x1e9bb0['title'])['toLowerCase']():_0x428256)+')';}return _0x17e6c6+'\x20('+_0x428256+')';}class TrackChangesHeading extends _0x3cecf3{['_headingOptions'];['afterInit'](){const _0x4f1566=this['editor'];if(!_0x4f1566['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f1566['config']['get']('heading.options');const _0x459a71=_0x4f1566['locale'],_0x3e44d6=_0x4f1566['plugins']['get']('TrackChangesEditing');_0x3e44d6['enableDefaultAttributesIntegration']('heading');for(const _0x302617 of this['_headingOptions'])'paragraph'!=_0x302617['model']&&_0x3e44d6['descriptionFactory']['registerElementLabel'](_0x302617['model'],_0x3c893f=>{const _0x31ef1b=this['_getHeadingLevel'](_0x302617['model']);return null!==_0x31ef1b?_0x535cc1(_0x3c893f,_0x31ef1b):_0x3ecad5(_0x3c893f,_0x302617['title']);});function _0x535cc1(_0x34dbe8,_0x4cc0b2){return Tt(_0x459a71,'ELEMENT_HEADING',[_0x34dbe8,_0x4cc0b2]);}function _0x3ecad5(_0x4fb17c,_0x5eb695){return Tt(_0x459a71,'ELEMENT_HEADING_CUSTOM',[_0x4fb17c,_0x5eb695]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x793fa=this['editor'],_0x5d2190=_0x793fa['locale'];function _0x474544(_0x294463,_0x32ae65){return Tt(_0x5d2190,'ELEMENT_HEADING_CUSTOM',[_0x294463,_0x32ae65]);}_0x793fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ef3e6=>{if('formatBlock'!=_0x5ef3e6['type'])return;const {data:_0x2abbd9}=_0x5ef3e6;if(_0x2abbd9&&'heading'==_0x2abbd9['commandName']){const _0x334956=_0x2abbd9['commandParams'][0x0]['value'],_0x462c38=this['_getHeadingLevel'](_0x334956);if(null!==_0x462c38)return{'type':'format','content':Tt(_0x5d2190,'*Change\x20to:*\x20%0',(_0x18ffa6=0x1,_0x49207d=_0x462c38,Tt(_0x5d2190,'ELEMENT_HEADING',[_0x18ffa6,_0x49207d])))};const _0x33204d=this['_headingOptions']['find'](_0x26d754=>_0x26d754['model']===_0x334956)['title'];return{'type':'format','content':Tt(_0x5d2190,'*Change\x20to:*\x20%0',_0x474544(0x1,_0x33204d))};}var _0x18ffa6,_0x49207d;});}['_getHeadingLevel'](_0x2af399){const _0xf6cb7f=_0x2af399['match'](/^heading(\d+)/);if(_0xf6cb7f)return _0xf6cb7f[0x1];const _0x49b18c=this['_headingOptions']?.['find'](_0x59dfc4=>_0x59dfc4['model']==_0x2af399);if(_0x49b18c&&_0x49b18c['view']){const _0x3c299a=_0x49b18c['view'],_0x4f6569=(_0x3c299a['name']??_0x3c299a)['match'](/^h(\d+)/);if(_0x4f6569)return _0x4f6569[0x1];}return null;}}class TrackChangesHighlight extends _0x3cecf3{['afterInit'](){const _0x292267=this['editor'];if(!_0x292267['plugins']['has']('HighlightEditing'))return;const _0x407468=_0x292267['plugins']['get']('TrackChangesEditing'),_0x575330=_0x292267['locale'];_0x407468['enableDefaultAttributesIntegration']('highlight'),_0x407468['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x575330,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1a2d=this['editor'],_0x171347=_0x3b1a2d['locale'];_0x3b1a2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5683d5=>{if('formatInline'!=_0x5683d5['type'])return;const {data:_0xb13428}=_0x5683d5;if(_0xb13428&&'highlight'==_0xb13428['commandName']){const _0x39b3b3=_0x171347['t'],_0x473fac=_0xb13428['commandParams'][0x0]['value'];if(_0x473fac){const _0x609a53=_0x3b1a2d['config']['get']('highlight.options')['find'](_0x3000e8=>_0x3000e8['model']==_0x473fac),_0x5bdfff=_0x39b3b3(_0x609a53['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x171347,'*Set\x20highlight:*\x20%0',_0x5bdfff),'color':{'value':_0x609a53['color'],'title':_0x609a53['title']}};}return{'type':'format','content':Tt(_0x171347,'*Remove\x20highlight*',Tt(_0x171347,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3cecf3{['afterInit'](){const _0x49c5bd=this['editor'];if(!_0x49c5bd['plugins']['has']('HorizontalLineEditing'))return;_0x49c5bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa08776=_0x49c5bd['plugins']['get']('TrackChangesEditing'),_0x4b1adf=_0x49c5bd['locale'];_0xa08776['descriptionFactory']['registerElementLabel']('horizontalLine',_0x17d9ef=>Tt(_0x4b1adf,'ELEMENT_HORIZONTAL_LINE',_0x17d9ef));}}class TrackChangesHtmlEmbed extends _0x3cecf3{['afterInit'](){const _0x2f3f24=this['editor'];if(!_0x2f3f24['plugins']['has']('HtmlEmbed'))return;const _0x4dcb3b=_0x2f3f24['plugins']['get']('TrackChangesEditing'),_0x2e7532=_0x2f3f24['locale'];_0x4dcb3b['descriptionFactory']['registerElementLabel']('rawHtml',_0x2eee77=>Tt(_0x2e7532,'ELEMENT_HTML_EMBED',_0x2eee77)),_0x4dcb3b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4dcb3b['descriptionFactory']['registerDescriptionCallback'](_0x46831f=>{if('attribute'!=_0x46831f['type'])return;const {data:_0x2322d7}=_0x46831f;if(_0x2322d7&&'value'==_0x2322d7['key']&&_0x46831f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4799d5=Tt(_0x2e7532,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2e7532,'*Change\x20%0\x20content*',_0x4799d5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbf22=this['editor'],_0x46fb15=_0x2bbf22['locale'];_0x2bbf22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e96f=>{if('formatBlock'!=_0x18e96f['type'])return;const {data:_0xa1fed9}=_0x18e96f;if(_0xa1fed9&&'htmlEmbed'==_0xa1fed9['commandName']){const _0x465189=Tt(_0x46fb15,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x46fb15,'*Change\x20%0\x20content*',_0x465189)};}});}}class TrackChangesImage extends _0x3cecf3{['afterInit'](){const _0xf51803=this['editor'];if(!_0xf51803['plugins']['has']('ImageEditing'))return;const _0x4b92f0=_0xf51803['plugins']['get']('TrackChangesEditing'),_0x1f1711=_0xf51803['plugins']['get']('ImageUtils'),_0x4b4e79=_0xf51803['locale'];_0x4b92f0['enableCommand']('insertImage'),_0x4b92f0['descriptionFactory']['registerElementLabel']('imageBlock',_0x462937=>Tt(_0x4b4e79,'ELEMENT_IMAGE',_0x462937)),_0x4b92f0['descriptionFactory']['registerElementLabel']('imageInline',_0x4c42fc=>Tt(_0x4b4e79,'ELEMENT_INLINE_IMAGE',_0x4c42fc)),_0x4b92f0['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x4b4e79,'ELEMENT_CAPTION')),_0xf51803['plugins']['has']('ImageUploadEditing')&&_0x4b92f0['enableCommand']('uploadImage'),_0xf51803['plugins']['has']('ImageBlockEditing')&&_0xf51803['plugins']['has']('ImageInlineEditing')&&(_0x4b92f0['enableCommand']('imageTypeInline',(_0x50da99,_0x119eb6)=>{const _0x55350e=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']);_0xf51803['model']['change'](()=>{_0x4b92f0['markBlockFormat'](_0x55350e,{'commandName':'imageTypeInline','commandParams':[_0x119eb6]},[],'convertBlockImageToInline');});}),_0x4b92f0['enableCommand']('imageTypeBlock',(_0x2de2b3,_0x4a6bc1)=>{_0xf51803['model']['change'](_0x259b84=>{let _0x526846=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x1a60af=_0x259b84['createRangeOn'](_0x526846);const _0xf1ea8=tt['fromPosition'](_0x1a60af['start'],'toPrevious'),_0xe3acb7=tt['fromPosition'](_0x1a60af['end'],'toNext');_0x4b92f0['forceDefaultExecution'](()=>_0x2de2b3(_0x4a6bc1)),_0x526846=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x1a60af=_0x259b84['createRangeOn'](_0x526846);const _0x175bc8=_0x259b84['createRange'](_0xf1ea8,_0xe3acb7);_0xf1ea8['detach'](),_0xe3acb7['detach'](),_0x4b92f0['markBlockFormat'](_0x526846,{'commandName':'imageTypeInline','commandParams':[_0x4a6bc1]},[],'convertInlineImageToBlock'),_0x175bc8['start']['isBefore'](_0x1a60af['start'])&&_0x4b92f0['markInsertion'](_0x259b84['createRange'](_0x175bc8['start'],_0x1a60af['start']),'convertInlineImageToBlock'),_0x1a60af['end']['isBefore'](_0x175bc8['end'])&&_0x4b92f0['markInsertion'](_0x259b84['createRange'](_0x1a60af['end'],_0x175bc8['end']),'convertInlineImageToBlock');});}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b92f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2fd457])=>{const _0x49fcee=_0x4b92f0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10bf3b=_0x2fd457['start'],_0x1868bd=_0x2fd457['end'];const _0xd099be=_0xf51803['model']['schema']['getNearestSelectionRange'](_0x10bf3b,'backward'),_0x123457=_0xf51803['model']['schema']['getNearestSelectionRange'](_0x1868bd,'forward');_0xd099be['isCollapsed']&&(_0x10bf3b=_0xd099be['start']),_0x123457['isCollapsed']&&(_0x1868bd=_0x123457['end']),_0x49fcee([_0xf51803['model']['createRange'](_0x10bf3b,_0x1868bd)]);}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ebafc),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ebafc)),_0xf51803['plugins']['has']('ImageCaptionEditing')&&(_0x4b92f0['enableCommand']('toggleImageCaption',(_0x4e3d66,_0x12b51c)=>{const _0x5964e2=_0xf51803['plugins']['get']('ImageCaptionUtils');let _0x1b0cff=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x527073=_0x5964e2['getCaptionFromImageModelElement'](_0x1b0cff);_0xf51803['model']['change'](()=>{if(_0x527073)return void _0x4b92f0['markDeletion'](_0xf51803['model']['createRangeOn'](_0x527073));const _0x55d57e=_0x1f1711['isBlockImage'](_0x1b0cff);_0x4e3d66(_0x12b51c),_0x1b0cff=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x527073=_0x5964e2['getCaptionFromImageModelElement'](_0x1b0cff),_0x4b92f0['markInsertion'](_0xf51803['model']['createRangeOn'](_0x527073),_0x55d57e?null:'imageCaption');});}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ebafc));const _0x5b7ca2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4dd24f(_0x13db4a,_0x6e0360){const _0x36bb1e=_0x5b7ca2['findIndex'](({type:_0x6ee1c5,subType:_0x1dd62a})=>_0x13db4a['type']==_0x6ee1c5&&_0x13db4a['subType']==_0x1dd62a),_0x302898=_0x5b7ca2['findIndex'](({type:_0x37d7bc,subType:_0x19cd9c})=>_0x6e0360['type']==_0x37d7bc&&_0x6e0360['subType']==_0x19cd9c);if(_0x36bb1e<0x0||_0x302898<0x0)return!0x1;const _0x1c6be3=_0x13db4a['getFirstRange'](),_0xb15b8f=_0x6e0360['getFirstRange']();if((0x0==_0x36bb1e||0x1==_0x36bb1e)&&0x2==_0x302898&&_0x1c6be3['isIntersecting'](_0xb15b8f))return!0x0;if(0x2==_0x36bb1e&&0x3==_0x302898){const _0xbe215c=_0x4b92f0['_findSuggestions'](_0x1c6be3,'insertion')['filter'](({suggestion:_0x1ed90c,meta:_0x49305f})=>_0x49305f['isOwn']&&'convertInlineImageToBlock'==_0x1ed90c['subType']);if(_0xbe215c['length']>0x1&&_0xb15b8f['end']['isEqual'](_0x1c6be3['start']))return!0x0;if(0x1==_0xbe215c['length']&&(_0x1c6be3['start']['isEqual'](_0xb15b8f['end'])||_0x1c6be3['end']['isEqual'](_0xb15b8f['start'])))return!0x0;}if(0x3==_0x36bb1e&&0x3==_0x302898&&_0x1c6be3['start']['isBefore'](_0xb15b8f['start'])){const _0x5bc39d=_0x1c6be3['end']['nodeAfter'],_0x460b4f=_0xb15b8f['start']['nodeBefore'];return _0x1f1711['isBlockImage'](_0x5bc39d)&&_0x5bc39d===_0x460b4f;}return!0x1;}function _0x5ebafc(_0x7cef65,_0x46e3b0){return _0x4dd24f(_0x7cef65,_0x46e3b0)?[_0x7cef65,_0x46e3b0]:_0x4dd24f(_0x46e3b0,_0x7cef65)?[_0x46e3b0,_0x7cef65]:null;}_0xf51803['plugins']['has']('ImageResize')&&(_0x4b92f0['enableDefaultAttributesIntegration']('resizeImage'),_0x4b92f0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x4b4e79,'FORMAT_IMAGE_SIZE'))),_0xf51803['plugins']['has']('ImageTextAlternativeEditing')&&_0x4b92f0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xf51803['plugins']['has']('PictureEditing')&&_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x59c7ab=>{if('attribute'!=_0x59c7ab['type'])return;const {data:_0x40b05b}=_0x59c7ab;return _0x40b05b&&'sources'==_0x40b05b['key']?{'type':'format','content':''}:void 0x0;}),_0xf51803['plugins']['has']('ImageSizeAttributes')&&_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x4802ce=>{if('attribute'!=_0x4802ce['type'])return;const {data:_0x171360}=_0x4802ce;return!_0x171360||'width'!=_0x171360['key']&&'height'!=_0x171360['key']?void 0x0:{'type':'format','content':''};}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x290de0=>{if(!!_0x5b7ca2['find'](({type:_0x113c84,subType:_0x1dfeed})=>_0x290de0['type']==_0x113c84&&_0x290de0['subType']==_0x1dfeed))return _0x290de0['previous']?{}:void 0x0;}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x444469=>{if('insertion'==_0x444469['type']||'deletion'==_0x444469['type']){const _0x228bbf=_0x444469['getContainedElement']();if(_0x228bbf&&_0x228bbf['is']('element','caption'))return{'type':'insertion'==_0x444469['type']?'addObject':'removeObject','element':_0x228bbf,'quantity':0x1};}}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x4c2f50=>'formatBlock'==_0x4c2f50['type']&&'convertInlineImageToBlock'==_0x4c2f50['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c2f50['type']&&'convertBlockImageToInline'==_0x4c2f50['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x20e5d7=>{if('attribute'!=_0x20e5d7['type'])return;const {data:_0x25261b}=_0x20e5d7;if(!_0x25261b||'alt'!=_0x25261b['key'])return;const _0x425086=_0x25261b['newValue'];return _0x425086?{'type':'format','content':Tt(_0x4b4e79,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x425086+'\x22')}:{'type':'format','content':Tt(_0x4b4e79,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2235ba=this['editor'],_0x21405d=_0x2235ba['locale'];_0x2235ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cbf4d=>{if('formatBlock'!=_0x4cbf4d['type']&&'formatInline'!=_0x4cbf4d['type'])return;const {data:_0x4f3cd2}=_0x4cbf4d;if(_0x4f3cd2){if('imageTextAlternative'==_0x4f3cd2['commandName']){const _0x2ba3b4=_0x4f3cd2['commandParams'][0x0]['newValue'];return _0x2ba3b4?{'type':'format','content':Tt(_0x21405d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ba3b4+'\x22')}:{'type':'format','content':Tt(_0x21405d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4f3cd2['commandName']){const _0x1afb06=_0x4f3cd2['commandParams'][0x0]['width'];return _0x1afb06?{'type':'format','content':Tt(_0x21405d,'*Set\x20image\x20width:*\x20%0',_0x1afb06)}:{'type':'format','content':Tt(_0x21405d,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa5d2b2=this['editor']['locale'],_0x2956fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2956fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2956fb['descriptionFactory']['registerDescriptionCallback'](_0x5a4071=>{if('attribute'!=_0x5a4071['type'])return;const {data:_0x3826eb}=_0x5a4071;return _0x3826eb&&'src'==_0x3826eb['key']?_0x3826eb['newValue']&&_0x3826eb['oldValue']?{'type':'format','content':Tt(_0xa5d2b2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4628fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4628fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4628fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4628fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4628fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd327e5=this['editor'],_0x5ed0f4=_0xd327e5['locale'];_0xd327e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4002=>{if('formatBlock'!=_0x3c4002['type']&&'formatInline'!=_0x3c4002['type'])return;const {data:_0x4e0d99}=_0x3c4002;if(!_0x4e0d99||'replaceImageSource'!=_0x4e0d99['commandName'])return;return{'type':'format','content':Tt(_0x5ed0f4,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3cecf3{['afterInit'](){const _0x4ac3d9=this['editor'];if(!_0x4ac3d9['plugins']['has']('ImageStyleEditing'))return;const _0x79e6af=_0x4ac3d9['plugins']['get']('TrackChangesEditing'),_0x5df7d6=_0x4ac3d9['plugins']['get']('ImageUtils'),_0x3cb757={};_0x79e6af['enableCommand']('imageStyle',(_0x542411,_0x176d38)=>{const _0x337ffa=_0x4ac3d9['plugins']['get']('Users')['me'],_0x2d71f1=_0x4ac3d9['commands']['get']('imageStyle');let _0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),_0x40362b=_0x4ac3d9['model']['createRangeOn'](_0x31cbfe),_0x19732f=_0x2d71f1['value'];if(_0x19732f==_0x176d38['value'])return;const _0x526c47={'commandName':'imageStyle','commandParams':[_0x176d38],'formatGroupId':_0x15c67d()};_0x4ac3d9['model']['change'](()=>{if(_0x79e6af['getSuggestions']()['filter'](_0x1ee28e=>_0x1ee28e['isInContent']&&_0x337ffa==_0x1ee28e['author']&&('formatBlock'==_0x1ee28e['type']||'formatInline'==_0x1ee28e['type'])&&('imageStylePreApply'==_0x1ee28e['subType']||'imageStylePostApply'==_0x1ee28e['subType'])&&_0x1ee28e['getFirstRange']()['isEqual'](_0x40362b))['forEach'](_0x157d17=>_0x79e6af['discardSuggestion'](_0x157d17['head'])),_0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),_0x40362b=_0x4ac3d9['model']['createRangeOn'](_0x31cbfe),_0x2d71f1['refresh'](),_0x4ac3d9['commands']['get']('imageTypeInline')['refresh'](),_0x4ac3d9['commands']['get']('imageTypeBlock')['refresh'](),_0x19732f=_0x2d71f1['value'],_0x19732f!=_0x176d38['value'])return _0x5df7d6['isInlineImage'](_0x31cbfe)&&_0x2d71f1['shouldConvertImageType'](_0x176d38['value'],_0x31cbfe)?(_0x542411({..._0x176d38,'setImageSizes':!0x1}),_0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),void _0x79e6af['markBlockFormat'](_0x31cbfe,{..._0x526c47,'commandReversedParams':[{'value':_0x19732f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5df7d6['isBlockImage'](_0x31cbfe)?_0x79e6af['markBlockFormat'](_0x31cbfe,_0x526c47,[],'imageStylePostApply'):_0x79e6af['markInlineFormat'](_0x40362b,_0x526c47,'imageStylePostApply'));});});for(const _0xc7525e of _0x4ac3d9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3cb757[_0xc7525e['name']]=_0xc7525e['title']['toLowerCase']();_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44de8e])=>{_0x5df7d6['setImageNaturalSizeAttributes'](_0x44de8e['getContainedElement']());}),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13341d,_0x4749c1)=>{_0x79e6af['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13341d,{'commandName':_0x4749c1['commandName'],'commandParams':_0x4749c1['commandReversedParams']});}),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd4e278,_0x509b9b){if(_0xfa1c2a(_0xd4e278,_0x509b9b))return[_0xd4e278,_0x509b9b];if(_0xfa1c2a(_0x509b9b,_0xd4e278))return[_0x509b9b,_0xd4e278];return null;});const _0x7a441e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa1c2a(_0x2ff908,_0x19138a){const _0x1cc4ba=_0x7a441e['findIndex'](({type:_0x23e17d,subType:_0x4d0cfe})=>_0x2ff908['type']==_0x23e17d&&_0x2ff908['subType']==_0x4d0cfe),_0x4479be=_0x7a441e['findIndex'](({type:_0x107076,subType:_0x178e48})=>_0x19138a['type']==_0x107076&&_0x19138a['subType']==_0x178e48);if(_0x1cc4ba<0x0||_0x4479be<0x0)return!0x1;const _0x152e36=_0x2ff908['getFirstRange'](),_0x32a764=_0x19138a['getFirstRange']();if((0x0==_0x1cc4ba||0x1==_0x1cc4ba)&&0x2==_0x4479be&&_0x152e36['isIntersecting'](_0x32a764))return!0x0;if(0x2==_0x1cc4ba&&0x3==_0x4479be){const _0x3ddc4d=_0x79e6af['_findSuggestions'](_0x152e36,'insertion')['filter'](({suggestion:_0x1a8253,meta:_0x4c6b86})=>_0x4c6b86['isOwn']&&'convertInlineImageToBlock'==_0x1a8253['subType']);if(_0x3ddc4d['length']>0x1&&_0x32a764['end']['isEqual'](_0x152e36['start']))return!0x0;if(0x1==_0x3ddc4d['length']&&(_0x152e36['start']['isEqual'](_0x32a764['end'])||_0x152e36['end']['isEqual'](_0x32a764['start'])))return!0x0;}if(0x3==_0x1cc4ba&&0x3==_0x4479be&&_0x152e36['start']['isBefore'](_0x32a764['start'])){const _0x1e48fd=_0x152e36['end']['nodeAfter'],_0x597045=_0x32a764['start']['nodeBefore'];return _0x5df7d6['isBlockImage'](_0x1e48fd)&&_0x1e48fd===_0x597045;}return!0x1;}_0x4ac3d9['model']['document']['registerPostFixer'](()=>{let _0x1c0c1a=!0x1;const _0x4dc032=Array['from'](_0x4ac3d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57db08,data:_0x38109d}of _0x4dc032){const {group:_0x4ae37b,type:_0x4f7a4d,subType:_0x577e5c,id:_0x39d5d3}=_0x309b71(_0x57db08);if('suggestion'==_0x4ae37b&&_0x79e6af['hasSuggestion'](_0x39d5d3)){if('formatBlock'==_0x4f7a4d&&('imageStylePreApply'==_0x577e5c||'imageStylePostApply'==_0x577e5c)){const _0x3661ee=_0x79e6af['getSuggestion'](_0x39d5d3);if(_0x38109d['newRange']){const _0x196631=_0x3661ee['getFirstRange']()['getContainedElement']();if(_0x5df7d6['isBlockImage'](_0x196631))continue;_0x79e6af['discardSuggestion'](_0x3661ee),_0x1c0c1a=!0x0;}}if('insertion'==_0x4f7a4d&&'imageCaption'==_0x577e5c&&!_0x38109d['newRange']){const _0x49f614=_0x79e6af['getSuggestion'](_0x39d5d3);_0x49f614['next']&&_0x49f614['next']['isInContent']&&(_0x79e6af['discardSuggestion'](_0x49f614['next']),_0x1c0c1a=!0x0);}}}return _0x1c0c1a;}),this['_registerLegacyDescription'](_0x3cb757);}['_registerLegacyDescription'](_0x437f46){const _0x4a7cee=this['editor'],_0x59aa28=_0x4a7cee['locale'];_0x4a7cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e506b=>{if('formatBlock'!=_0x2e506b['type']&&'formatInline'!=_0x2e506b['type'])return;const {data:_0x1986a9}=_0x2e506b;if(!_0x1986a9||'imageStyle'!=_0x1986a9['commandName'])return;const _0x22b7a5=_0x1986a9['commandParams'][0x0]['value'];return _0x198f69('side'===_0x22b7a5?Tt(_0x59aa28,'FORMAT_SIDE_IMAGE'):_0x437f46[_0x22b7a5]||_0x22b7a5);function _0x198f69(_0x27e5ff){return{'type':'format','content':Tt(_0x59aa28,'*Format:*\x20%0',_0x27e5ff)};}});}}class TrackChangesImportWord extends _0x3cecf3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4978a5){super(_0x4978a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58ea0d=this['editor'],_0x1239ba=_0x58ea0d['commands']['get']('importWord'),_0x4c6c9f=_0x58ea0d['commands']['get']('trackChanges');_0x1239ba&&(_0x1239ba['on']('execute',(_0x4761c7,[,_0x541f75])=>{this['_trackChangesValueDuringImport']=_0x4c6c9f['value'],_0x541f75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1239ba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1239ba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c6c9f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58ea0d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb2368e,_0xb7c448){const {suggestions:_0x3e8366}=_0xb7c448,_0x16df02=this['editor']['commands']['get']('trackChanges'),_0x25eeb0=_0x16df02['value'];this['_trackChangesValueDuringImport']!==_0x25eeb0&&(_0x16df02['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e8366&&_0x3e8366['forEach'](({id:_0x94e414,type:_0x2934cf,author:_0x3ae1a4,created_at:_0x4e986b})=>{const _0x1c84cb={'id':_0x94e414,'type':_0x2934cf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ae1a4,'createdAt':_0x4e986b?new Date(_0x4e986b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c84cb);});}}class TrackChangesIndent extends _0x3cecf3{['afterInit'](){const _0x4cd2c5=this['editor'],_0x3dcd27=_0x4cd2c5['plugins']['get']('TrackChangesEditing');if(_0x4cd2c5['plugins']['has']('IndentEditing')&&(_0x3dcd27['enableCommand']('indent'),_0x3dcd27['enableCommand']('outdent')),_0x4cd2c5['plugins']['has']('IndentBlock')){for(const _0x514c73 of['indentBlock','outdentBlock'])_0x3dcd27['enableDefaultAttributesIntegration'](_0x514c73);if(_0x4cd2c5['plugins']['has']('ListEditing')){for(const _0x1b1c5f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3dcd27['enableDefaultAttributesIntegration'](_0x1b1c5f);}}const _0x598271=_0x4cd2c5['locale'];_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x598271,'FORMAT_INDENT')),_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x598271,'FORMAT_INDENT')),_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x598271,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50a5f9=this['editor'],_0x5610d9=_0x50a5f9['locale'],_0x5a327b=_0x50a5f9['plugins']['get']('TrackChangesEditing');_0x5a327b['descriptionFactory']['registerDescriptionCallback'](_0x38e08d=>{if('formatBlock'!=_0x38e08d['type'])return;const {data:_0x2cdf86}=_0x38e08d;if(!_0x2cdf86)return;if('indentBlock'!=_0x2cdf86['commandName']&&'outdentBlock'!=_0x2cdf86['commandName'])return;const _0x3801e6=_0x38e08d['getItems']()[0x0],_0x48c330=_0x5a327b['descriptionFactory']['getItemLabel'](_0x3801e6);return'indentBlock'==_0x2cdf86['commandName']?{'type':'format','content':Tt(_0x5610d9,'*Indent:*\x20%0',_0x48c330)}:'outdentBlock'==_0x2cdf86['commandName']?{'type':'format','content':Tt(_0x5610d9,'*Outdent:*\x20%0',_0x48c330)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3cecf3{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3cecf3{['afterInit'](){const _0x29e5ad=this['editor'];if(!_0x29e5ad['plugins']['has']('LinkEditing'))return;const _0x2242b7=_0x29e5ad['plugins']['get']('TrackChangesEditing'),_0x1ea3f0=_0x29e5ad['commands']['get']('link');_0x2242b7['enableDefaultAttributesIntegration']('link'),_0x2242b7['enableDefaultAttributesIntegration']('unlink');for(const _0x40e052 of _0x1ea3f0['manualDecorators'])_0x2242b7['descriptionFactory']['registerAttributeLabel'](_0x40e052['id'],'link\x20('+_0x40e052['label']['toLowerCase']()+')');_0x2242b7['descriptionFactory']['registerDescriptionCallback'](_0x8998b5=>{if('attribute'!=_0x8998b5['type'])return;const {data:_0x140a4b}=_0x8998b5;if(!_0x140a4b||'linkHref'!=_0x140a4b['key'])return;const _0x2f00fe=_0x140a4b['newValue'],_0x5e3429=_0x29e5ad['locale'];return{'type':'format','content':null==_0x2f00fe?Tt(_0x5e3429,'*Remove\x20link*'):Tt(_0x5e3429,'*Set\x20link:*\x20%0','\x22'+_0x2f00fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b9ab=this['editor'],_0x36c3a9=_0x59b9ab['locale'];_0x59b9ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24c314=>{if('formatInline'!=_0x24c314['type'])return;const {data:_0x3dfa50}=_0x24c314;if(_0x3dfa50){if('link'==_0x3dfa50['commandName']){const _0x4f2b85=_0x3dfa50['commandParams'][0x0];return{'type':'format','content':Tt(_0x36c3a9,'*Set\x20link:*\x20%0','\x22'+_0x4f2b85+'\x22')};}return'unlink'==_0x3dfa50['commandName']?{'type':'format','content':Tt(_0x36c3a9,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3cecf3{['afterInit'](){const _0x372d74=this['editor'],_0xcf6d5d=_0x372d74['locale'];if(!_0x372d74['plugins']['has']('LegacyListEditing'))return;const _0x8a1ad4=_0x372d74['plugins']['get']('TrackChangesEditing'),_0x3b1e48=_0x372d74['plugins']['has']('LegacyTodoListEditing');function _0xdbde88(_0x2a738e){return()=>{const _0x48beec=_0x372d74['model']['document']['selection'],_0x3d375f=_0x372d74['commands']['get'](_0x2a738e);if(_0x3d375f['value'])return void _0x372d74['execute']('paragraph',{});const _0x2173a3=_0x2a738e['slice'](0x0,-0x4),_0x29aec9=function(_0x4bf495,_0x4c129a,_0x161d0d){let _0x263851=Array['from'](_0x4bf495)['filter'](_0x327d6c=>function(_0x2ed62e,_0x21648b){return _0x21648b['checkChild'](_0x2ed62e['parent'],'listItem')&&!_0x21648b['isObject'](_0x2ed62e);}(_0x327d6c,_0x161d0d));_0x263851=_0x263851['filter'](_0x580e02=>!_0x580e02['is']('element','listItem')||_0x580e02['getAttribute']('listType')!=_0x4c129a);const _0x5358f0=new Set();for(const _0x50cd65 of _0x263851)_0x50cd65['is']('element','listItem')?_0x5358f0['add'](St(_0x50cd65)):_0x5358f0['add'](_0x50cd65);return Array['from'](_0x5358f0);}(_0x48beec['getSelectedBlocks'](),_0x2173a3,_0x372d74['model']['schema']);_0x372d74['model']['change'](()=>{for(const _0x18483c of _0x29aec9)_0x8a1ad4['markBlockFormat'](_0x18483c,{'commandName':_0x2a738e,'commandParams':[{'forceValue':!_0x3d375f['value']}],'formatGroupId':'blockName'},yt(_0x18483c));});};}function _0x1ae7c8(_0x27c317){return()=>{const _0x507b33=function(_0x44428c){let _0x15c9bd=Array['from'](_0x44428c);const _0x39929f=_0x15c9bd['findIndex'](_0x8c7c86=>'listItem'!=_0x8c7c86['name']);return _0x39929f>-0x1&&(_0x15c9bd=_0x15c9bd['slice'](0x0,_0x39929f)),_0x15c9bd;}(_0x372d74['model']['document']['selection']['getSelectedBlocks']()),_0x1a3771=_0x372d74['model']['createRange'](_0x372d74['model']['createPositionAt'](_0x507b33[0x0],'before'),_0x372d74['model']['createPositionAt'](_0x507b33[_0x507b33['length']-0x1],'end'));_0x372d74['model']['change'](()=>{_0x8a1ad4['markBlockFormat'](_0x1a3771,{'commandName':_0x27c317,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28b423){const _0x5b5c7d=new Set();for(const _0xc15194 of _0x28b423){let _0x172a55=_0xc15194['nextSibling'];for(;_0x172a55&&_0x172a55['getAttribute']('listIndent')>_0xc15194['getAttribute']('listIndent');)_0x5b5c7d['add'](_0x172a55),_0x172a55=_0x172a55['nextSibling'];}return Array['from'](_0x5b5c7d);}(_0x507b33));});};}_0x8a1ad4['enableCommand']('numberedList',_0xdbde88('numberedList')),_0x8a1ad4['enableCommand']('bulletedList',_0xdbde88('bulletedList')),_0x3b1e48&&_0x8a1ad4['enableCommand']('todoList',_0xdbde88('todoList')),_0x8a1ad4['enableCommand']('indentList',_0x1ae7c8('indentList')),_0x8a1ad4['enableCommand']('outdentList',_0x1ae7c8('outdentList')),_0x3b1e48&&_0x8a1ad4['enableCommand']('checkTodoList',()=>{const _0x2b64fb=_0x372d74['commands']['get']('checkTodoList'),_0x395b24=Array['from'](_0x2b64fb['_selectedElements']);_0x395b24['filter'](_0x20e7a9=>_0x20e7a9['getAttribute']('todoListChecked')!=_0x2b64fb['value']),_0x372d74['model']['change'](()=>{for(const _0x49d43f of _0x395b24)_0x8a1ad4['markBlockFormat'](_0x49d43f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b64fb['value']}]});});}),_0x8a1ad4['descriptionFactory']['registerElementLabel']('listItem',_0x249e1d=>Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM',_0x249e1d)),_0x8a1ad4['descriptionFactory']['registerDescriptionCallback'](_0x2db4dd=>{if('formatBlock'!=_0x2db4dd['type']&&'formatInline'!=_0x2db4dd['type'])return;const {data:_0x8f0480}=_0x2db4dd;if(_0x8f0480){if('numberedList'==_0x8f0480['commandName']||'bulletedList'==_0x8f0480['commandName']||'todoList'==_0x8f0480['commandName'])switch(_0x8f0480['commandName']['replace']('List','')){case'bulleted':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8f0480['commandName'])return{'type':'format','content':Tt(_0xcf6d5d,'*Indent:*\x20%0',Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8f0480['commandName'])return{'type':'format','content':Tt(_0xcf6d5d,'*Outdent:*\x20%0',Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8f0480['commandName'])return _0x8f0480['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xcf6d5d,'*Check\x20item*')}:{'type':'format','content':Tt(_0xcf6d5d,'*Uncheck\x20item*')};}function _0x5b7c3d(_0xc0525f){return{'type':'format','content':Tt(_0xcf6d5d,'*Change\x20to:*\x20%0',_0xc0525f)};}});}}function St(_0x590e40){const _0x3bf48b=_0x590e40['getAttribute']('listIndent');if(0x0==_0x3bf48b)return _0x590e40;let _0x1cd31e=_0x590e40;for(;_0x590e40['previousSibling']&&_0x590e40['previousSibling']['is']('element','listItem');){const _0x11a35c=_0x590e40['previousSibling']['getAttribute']('listIndent');if(_0x11a35c==_0x3bf48b)_0x1cd31e=_0x590e40['previousSibling'];else{if(_0x11a35c<_0x3bf48b)break;}_0x590e40=_0x590e40['previousSibling'];}return _0x1cd31e;}function yt(_0x43728e){const _0x5b1f48=[];if(_0x43728e['is']('element','listItem')&&_0x43728e['getAttribute']('listIndent')>0x0){let _0x156a52=_0x43728e['nextSibling'];for(;_0x156a52&&'listItem'==_0x156a52['name']&&_0x156a52['getAttribute']('listIndent')==_0x43728e['getAttribute']('listIndent');)_0x5b1f48['push'](_0x156a52),_0x156a52=_0x156a52['nextSibling'];}return _0x5b1f48;}class TrackChangesLegacyListProperties extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x15e110=this['editor']['config']['get']('list.properties'),_0x336a15=this['editor']['plugins']['get']('TrackChangesEditing');_0x15e110['styles']&&_0x336a15['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x15e110['reversed']&&_0x336a15['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x15e110['startIndex']&&_0x336a15['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x336a15['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1355d4,_0x2eb1f3={}){const _0x14e84e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f6637=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14e84e['markMultiRangeBlockFormat'](_0x2f6637,{'commandName':'listStyle','commandParams':[{'type':_0x2eb1f3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x8bd3c0,_0x31ce4c={}){const _0x4616b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x97fea8=this['_getSuggestionBlocks'](_0x13b5d8=>_0x13b5d8['is']('element','listItem')&&'numbered'===_0x13b5d8['getAttribute']('listType'));if(_0x97fea8['length']<0x1)return;const _0xc64af6=_0x97fea8['map'](_0x543494=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x543494,'before'),this['editor']['model']['createPositionAt'](_0x543494,0x0)));this['editor']['model']['change'](()=>{_0x4616b1['markMultiRangeBlockFormat'](_0xc64af6,{'commandName':'listReversed','commandParams':[{'reversed':_0x31ce4c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1493e7,_0x4070fa={}){const _0x19c8a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f944a=this['_getSuggestionBlocks'](_0x1939a1=>_0x1939a1['is']('element','listItem')&&'numbered'===_0x1939a1['getAttribute']('listType'));if(_0x3f944a['length']<0x1)return;const _0x4c1e34=_0x3f944a['map'](_0x17c35b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17c35b,'before'),this['editor']['model']['createPositionAt'](_0x17c35b,0x0)));this['editor']['model']['change'](()=>{_0x19c8a0['markMultiRangeBlockFormat'](_0x4c1e34,{'commandName':'listStart','commandParams':[{'startIndex':_0x4070fa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x179d22){if('formatBlock'!=_0x179d22['type']&&'formatInline'!=_0x179d22['type'])return;const _0x456469=this['editor']['locale'],{data:_0x1b9183}=_0x179d22;if(!_0x1b9183)return;let _0x5c3776,_0x204a93;switch(_0x1b9183['commandName']){case'listStyle':_0x5c3776='*Change\x20to:*\x20%0',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776,Tt(_0x456469,this['_getTranslationKeyForListStyle'](_0x1b9183['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c3776=_0x1b9183['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776)};break;case'listStart':_0x5c3776='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776,_0x1b9183['commandParams'][0x0]['startIndex'])};}return _0x204a93;}['_getSuggestionBlocksForListStyle'](){const _0x59d746=this['editor']['plugins']['get']('LegacyListUtils');let _0x204af0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x204af0[0x0]?.['is']('element','listItem')&&_0x204af0['unshift'](..._0x59d746['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x204af0[_0x204af0['length']-0x1]?.['is']('element','listItem')&&_0x204af0['push'](..._0x59d746['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x204af0=[...new Set(_0x204af0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x204af0=_0x204af0['filter'](_0x25ebfe=>_0x25ebfe['is']('element','listItem'))),_0x204af0;}['_getSuggestionBlocks'](_0x476cb3){const _0x4a9a9e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3888ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x476cb3)['map'](_0x3736c3=>{const _0x185354=this['editor']['model']['createPositionAt'](_0x3736c3,0x0);return[..._0x4a9a9e['getSiblingNodes'](_0x185354,'backward'),..._0x4a9a9e['getSiblingNodes'](_0x185354,'forward')];})['flat']();return _0x3888ee=[...new Set(_0x3888ee)],_0x3888ee;}['_getTranslationKeyForListStyle'](_0x3370da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3370da)||'default')['toUpperCase']()+'_LIST_'+_0x3370da['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3cecf3{['afterInit'](){const _0x2c1e38=this['editor'];if(!_0x2c1e38['plugins']['has']('MediaEmbedEditing'))return;const _0x3d1411=_0x2c1e38['plugins']['get']('TrackChangesEditing'),_0x23a5a2=_0x2c1e38['locale'];_0x3d1411['enableCommand']('mediaEmbed'),_0x3d1411['descriptionFactory']['registerElementLabel']('media',_0x3d32fa=>Tt(_0x23a5a2,'ELEMENT_MEDIA',_0x3d32fa));}}class TrackChangesMention extends _0x3cecf3{['afterInit'](){const _0x5e541e=this['editor'];_0x5e541e['plugins']['has']('MentionEditing')&&_0x5e541e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3cecf3{['afterInit'](){const _0x14048b=this['editor'];if(!_0x14048b['plugins']['has']('MergeFieldsEditing'))return;const _0x5ece8a=_0x14048b['plugins']['get']('TrackChangesEditing'),_0xdc1695=_0x14048b['locale'];_0x5ece8a['enableCommand']('insertMergeField'),_0x5ece8a['enableCommand']('insertMergeFieldBlock'),_0x5ece8a['enableCommand']('insertMergeFieldImage'),_0x5ece8a['descriptionFactory']['registerElementLabel']('mergeField',_0x37457d=>Tt(_0xdc1695,'ELEMENT_MERGE_FIELD',_0x37457d)),_0x5ece8a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2d3772=>Tt(_0xdc1695,'ELEMENT_MERGE_FIELD',_0x2d3772)),_0x5ece8a['descriptionFactory']['registerDescriptionCallback'](_0x1e076f=>{if('insertion'!=_0x1e076f['type']&&'deletion'!=_0x1e076f['type'])return;const _0x55ebee=_0x1e076f['getContainedElement']();if(null==_0x55ebee)return;const _0x35329b=_0x14048b['plugins']['get']('MergeFieldsEditing');let _0x5b83e3;switch(_0x35329b['getMergeFieldType'](_0x55ebee)){case null:return;case'image':{const _0x200b6a=_0x35329b['unwrapAffixes'](_0x55ebee['getAttribute']('src'));_0x5b83e3=_0x35329b['getLabel'](_0x200b6a)||_0x200b6a;break;}default:{const _0x19485c=_0x55ebee['getAttribute']('id');_0x5b83e3=_0x35329b['getLabel'](_0x19485c)||_0x19485c;break;}}return'insertion'==_0x1e076f['type']?{'type':'insertion','content':Tt(_0xdc1695,'*Insert:*\x20%0','\x22'+_0x5b83e3+'\x22\x20'+Tt(_0xdc1695,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xdc1695,'*Remove:*\x20%0','\x22'+_0x5b83e3+'\x22\x20'+Tt(_0xdc1695,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3cecf3{['afterInit'](){const _0x38a005=this['editor'],_0x4e6945=_0x38a005['plugins']['get']('TrackChangesEditing');_0x38a005['plugins']['has']('MultiLevelList')&&(_0x4e6945['enableDefaultAttributesIntegration']('multiLevelList'),_0x4e6945['descriptionFactory']['registerDescriptionCallback'](_0x38690e=>this['handleDescriptions'](_0x38690e)));}['handleDescriptions'](_0x169d71){const _0x449722=this['editor']['locale'],{data:_0x3abeb9}=_0x169d71,_0x4a0366={'type':'format','content':''};if(_0x3abeb9&&'listMarkerStyle'==_0x3abeb9['key']){if(!_0x3abeb9['oldValue'])return{'type':'format','content':Tt(_0x449722,'*Set\x20format:*\x20%0',Tt(_0x449722,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3abeb9['newValue']+')'};if(!_0x3abeb9['newValue']){let _0x4e5eef=_0x169d71['head'];for(;_0x4e5eef;){if(_0x4e5eef['data']&&'listType'==_0x4e5eef['data']['key']&&_0x4e5eef['data']['newValue'])return _0x4a0366;_0x4e5eef=_0x4e5eef['next'];}return{'type':'format','content':Tt(_0x449722,'*Remove\x20format:*\x20%0',Tt(_0x449722,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3abeb9['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3cecf3{['afterInit'](){const _0x420bd1=this['editor'];if(!_0x420bd1['plugins']['has']('PageBreakEditing'))return;_0x420bd1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23b6e4=_0x420bd1['plugins']['get']('TrackChangesEditing'),_0x588a24=_0x420bd1['locale'];_0x23b6e4['descriptionFactory']['registerElementLabel']('pageBreak',_0x1ee6e0=>Tt(_0x588a24,'ELEMENT_PAGE_BREAK',_0x1ee6e0));}}class TrackChangesParagraph extends _0x3cecf3{['afterInit'](){const _0x88b315=this['editor'];if(!_0x88b315['plugins']['has']('Paragraph'))return;const _0x42313b=_0x88b315['locale'],_0x314af7=_0x88b315['plugins']['get']('TrackChangesEditing');_0x314af7['descriptionFactory']['registerElementLabel']('paragraph',_0x1b8b2f=>Tt(_0x42313b,'ELEMENT_PARAGRAPH',_0x1b8b2f)),_0x314af7['enableDefaultAttributesIntegration']('paragraph'),_0x314af7['enableCommand']('insertParagraph');const _0x43c397=_0x314af7['descriptionFactory'];_0x43c397['registerDescriptionCallback'](_0x24cc6a=>{if('insertion'!==_0x24cc6a['type'])return;const {start:_0x36174f,end:_0x4501d1}=_0x24cc6a['getFirstRange']();if(!_0x36174f['isTouching'](_0x4501d1)||!_0x36174f['nodeAfter'])return;const _0x4fe36f=_0x88b315['model']['schema'],_0x5ecbbf=_0x36174f['nodeAfter'];return _0x4fe36f['isBlock'](_0x5ecbbf)&&!_0x4fe36f['isLimit'](_0x5ecbbf)&&_0x4fe36f['checkChild'](_0x5ecbbf,'$text')?{'type':'insertion','content':Tt(_0x42313b,'*Insert:*\x20%0',_0x43c397['getItemLabel'](_0x5ecbbf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dabc6=this['editor'],_0x29b205=_0x4dabc6['locale'];_0x4dabc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ec92=>{if('formatBlock'!=_0x25ec92['type'])return;const {data:_0x5327c8}=_0x25ec92;return _0x5327c8&&'paragraph'==_0x5327c8['commandName']?{'type':'format','content':Tt(_0x29b205,'*Change\x20to:*\x20%0',Tt(_0x29b205,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3cecf3{['afterInit'](){const _0x532cbe=this['editor'];_0x532cbe['commands']['get']('replaceSource')&&_0x532cbe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3cecf3{['afterInit'](){const _0x317d44=this['editor'];if(!_0x317d44['plugins']['has']('RemoveFormatEditing'))return;_0x317d44['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2435ff=this['editor'];_0x2435ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104e10=>{if('formatBlock'!=_0x104e10['type']&&'formatInline'!=_0x104e10['type'])return;const {data:_0x303dc6}=_0x104e10;return _0x303dc6&&'removeFormat'==_0x303dc6['commandName']?{'type':'format','content':Tt(_0x2435ff['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3cecf3{['afterInit'](){const _0x5345b0=this['editor'];if(!_0x5345b0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a3cff=_0x5345b0['plugins']['get']('TrackChangesEditing');_0x1a3cff['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a3cff['enableCommand']('goToNextRestrictedEditingException');const _0x296521=_0x5345b0['plugins']['get']('RestrictedEditingModeEditing');_0x296521['enableCommand']('trackChanges'),_0x296521['enableCommand']('acceptSuggestion'),_0x296521['enableCommand']('discardSuggestion'),_0x296521['enableCommand']('acceptAllSuggestions'),_0x296521['enableCommand']('discardAllSuggestions'),_0x296521['enableCommand']('acceptSelectedSuggestions'),_0x296521['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3cecf3{['afterInit'](){const _0xfe0718=this['editor'];if(!_0xfe0718['plugins']['has']('ShiftEnter'))return;const _0xca9abc=_0xfe0718['plugins']['get']('TrackChangesEditing');_0xca9abc['enableCommand']('shiftEnter'),_0xca9abc['descriptionFactory']['registerElementLabel']('softBreak',_0x181910=>Tt(_0xfe0718['locale'],'ELEMENT_LINE_BREAK',_0x181910));}}function Rt(_0x4b3745,_0x1acbdf,_0xcc2d13){const _0x1cecbe=[];for(const _0x18592e of _0x1acbdf['getItems']())_0x18592e['hasAttribute'](_0x4b3745)&&_0x1cecbe['push'](_0xcc2d13['createRangeOn'](_0x18592e));return _0x1cecbe;}class TrackChangesStandardEditingMode extends _0x3cecf3{['afterInit'](){const _0x52290e=this['editor'],_0x246fcf=_0x52290e['plugins']['get']('TrackChangesEditing');_0x52290e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x246fcf['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2cb63b=this['editor'],_0x55fd4c=_0x2cb63b['model'],_0x3294b6=_0x2cb63b['locale'],_0x5c1ac1=_0x2cb63b['plugins']['get']('TrackChangesEditing'),_0x5e6245='restrictedEditingException',_0x396e25=_0x2cb63b['commands']['get'](_0x5e6245);_0x5c1ac1['enableCommand'](_0x5e6245,(_0x19f827,_0x16aa2c={})=>{const _0x1a127b=_0x55fd4c['document']['selection'];if(_0x1a127b['isCollapsed'])return void _0x19f827(_0x16aa2c);const _0x26df30=void 0x0!==_0x16aa2c['forceValue']?_0x16aa2c['forceValue']:!_0x396e25['value'];_0x55fd4c['change'](()=>{const _0x309097=Array['from'](_0x1a127b['getRanges']());for(const _0x1025ef of _0x309097){const _0xe76e99=_0x26df30?[_0x1025ef]:Rt(_0x5e6245,_0x1025ef,_0x55fd4c);for(const _0x1cf10f of _0xe76e99)_0x5c1ac1['markInlineFormat'](_0x1cf10f,{'commandName':_0x5e6245,'commandParams':[{'forceValue':_0x26df30}]});}});}),_0x5c1ac1['descriptionFactory']['registerDescriptionCallback'](_0x982f6=>{if('formatBlock'!=_0x982f6['type']&&'formatInline'!=_0x982f6['type'])return;const {data:_0x586230}=_0x982f6;return _0x586230&&_0x586230['commandName']==_0x5e6245?_0x586230['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3294b6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3294b6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x33c37f=this['editor'],_0x552e6d=_0x33c37f['locale'],_0x5be63e=_0x33c37f['plugins']['get']('TrackChangesEditing'),_0x3c12b3='restrictedEditingExceptionBlock',_0x329aab=this['editor']['commands']['get'](_0x3c12b3);_0x5be63e['enableCommand'](_0x3c12b3,(_0x53d575,_0x159fb8={})=>{const _0x15b918=this['editor']['model']['document']['selection'],_0x4c430d=_0x159fb8&&void 0x0!==_0x159fb8['forceValue']?_0x159fb8['forceValue']:!_0x329aab['value'];let _0x564d6f=[];if(_0x4c430d){const _0xe0291f=Array['from'](_0x15b918['getSelectedBlocks']())['filter'](_0x1403b3=>function(_0x4439eb){return!!_0x4439eb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1403b3)||function(_0x599278,_0x468e9a){const _0x7b87fc=_0x468e9a['createContext'](_0x599278['parent']);if(!_0x468e9a['checkChild'](_0x7b87fc,'restrictedEditingException'))return!0x1;if(!_0x468e9a['checkChild'](_0x7b87fc['push']('restrictedEditingException'),_0x599278))return!0x1;return!0x0;}(_0x1403b3,this['editor']['model']['schema']));_0x564d6f=ft(_0xe0291f,_0x33c37f['model']);}else{const _0x32eaae=Array['from'](_0x15b918['getSelectedBlocks']())['map'](_0x1688e3=>function(_0x1e1a05){let _0x5d7a19=_0x1e1a05;for(;_0x5d7a19['parent'];){if('restrictedEditingException'==_0x5d7a19['parent']['name'])return _0x5d7a19;_0x5d7a19=_0x5d7a19['parent'];}return null;}(_0x1688e3))['filter'](_0x468c9c=>!!_0x468c9c);_0x564d6f=ft(_0x32eaae,_0x33c37f['model']);}_0x33c37f['model']['change'](()=>{for(const _0x8f5ec1 of _0x564d6f)_0x5be63e['markBlockFormat'](_0x8f5ec1,{'commandName':_0x3c12b3,'commandParams':[{'forceValue':_0x4c430d}]});});}),_0x5be63e['descriptionFactory']['registerDescriptionCallback'](_0x21555b=>{const {data:_0x4f34ba}=_0x21555b;if(_0x4f34ba&&_0x4f34ba['commandName']==_0x3c12b3)return _0x4f34ba['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x552e6d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x552e6d,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3cecf3{['afterInit'](){const _0x412204=this['editor'];if(!_0x412204['plugins']['has']('Style')||!_0x412204['plugins']['has']('DataSchema'))return;const _0x407fd0=_0x412204['plugins']['get']('TrackChangesEditing'),_0x551a39=_0x412204['locale'],_0x1b6352=_0x412204['config']['get']('style')||{},_0x2bf32f=_0x412204['plugins']['get']('GeneralHtmlSupport'),_0x33cf23=_0x412204['plugins']['get']('StyleUtils')['normalizeConfig'](_0x412204['plugins']['get']('DataSchema'),_0x1b6352['definitions']);_0x407fd0['enableDefaultAttributesIntegration']('style');const _0x5736da=new Set();for(const _0x167e08 of _0x33cf23['block']){const _0x4ba060=_0x2bf32f['getGhsAttributeNameForElement'](_0x167e08['element']);_0x5736da['add'](_0x4ba060);}const _0x1869a5=new Set();for(const _0x6f56e4 of _0x33cf23['inline']){const _0x544ac5=_0x2bf32f['getGhsAttributeNameForElement'](_0x6f56e4['element']);_0x1869a5['add'](_0x544ac5);for(const _0x13a541 of _0x6f56e4['ghsAttributes'])_0x1869a5['add'](_0x13a541);}for(const _0x3883b4 of _0x5736da)_0x407fd0['descriptionFactory']['registerAttributeLabel'](_0x3883b4,Tt(_0x551a39,'FORMAT_STYLE'));for(const _0x4a81bb of _0x1869a5)_0x407fd0['descriptionFactory']['registerAttributeLabel'](_0x4a81bb,Tt(_0x551a39,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccb27=this['editor'],_0x2424cd=_0x4ccb27['locale'];_0x4ccb27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b372e=>{if('formatBlock'!=_0x5b372e['type']&&'formatInline'!=_0x5b372e['type'])return;const {data:_0x46315b}=_0x5b372e;return _0x46315b&&'style'===_0x46315b['commandName']?_0x46315b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2424cd,'*Set\x20format:*\x20%0',_0x46315b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x2424cd,'*Remove\x20format:*\x20%0',_0x46315b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3cecf3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d7c2d){super(_0x2d7c2d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x61bd55=this['editor'],_0x16dff5=_0x61bd55['model']['document']['selection'];if(!_0x61bd55['plugins']['has']('TableEditing'))return;const _0x39790d=_0x61bd55['locale'],_0x33f8d3=_0x61bd55['plugins']['get']('TrackChangesEditing'),_0x261bff=_0x61bd55['plugins']['get']('TableUtils');_0x33f8d3['descriptionFactory']['registerElementLabel']('table',_0x239b74=>Tt(_0x39790d,'ELEMENT_TABLE',_0x239b74)),this['_setupColumnsRowsFixing'](),_0x33f8d3['enableCommand']('insertTable'),_0x33f8d3['enableCommand']('selectTableRow'),_0x33f8d3['enableCommand']('selectTableColumn');for(const _0x27f3f4 of['insertTableRowAbove','insertTableRowBelow']){const _0x591ce8=_0x61bd55['commands']['get'](_0x27f3f4);_0x33f8d3['enableCommand'](_0x27f3f4,_0x4733d4=>{_0x61bd55['model']['change'](_0x108317=>{_0x4733d4();const _0xc9ff41='above'===_0x591ce8['order'],_0x1f215e=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x2a5224=_0x261bff['getRowIndexes'](_0x1f215e),_0x47460b=_0xc9ff41?_0x2a5224['first']-0x1:_0x2a5224['last']+0x1,_0x3a3dae=_0x1f215e[0x0]['findAncestor']('table'),_0x69a629=_0x261bff['createTableWalker'](_0x3a3dae,{'startRow':_0x47460b,'endRow':_0x47460b}),_0x341082=Array['from'](_0x69a629)['map'](_0x21e231=>_0x108317['createRangeOn'](_0x21e231['cell']));_0x33f8d3['markMultiRangeInsertion'](_0x341082,'tableRow');});});}for(const _0x4468e9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13d782=_0x61bd55['commands']['get'](_0x4468e9);_0x33f8d3['enableCommand'](_0x4468e9,_0x4eab7a=>{_0x61bd55['model']['change'](_0x4cdd2a=>{_0x4eab7a();const _0x5df80d='left'===_0x13d782['order'],_0x374be4=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x5c3c55=_0x261bff['getColumnIndexes'](_0x374be4),_0x38c0b0=_0x5df80d?_0x5c3c55['first']-0x1:_0x5c3c55['last']+0x1,_0x5301ef=_0x374be4[0x0]['findAncestor']('table'),_0x1c8d7f=_0x261bff['createTableWalker'](_0x5301ef,{'startRow':0x0,'column':_0x38c0b0,'includeAllSlots':!0x1}),_0x3311d3=Array['from'](_0x1c8d7f)['map'](_0x559bbc=>_0x4cdd2a['createRangeOn'](_0x559bbc['cell']));_0x33f8d3['markMultiRangeInsertion'](_0x3311d3,'tableColumn');});});}for(const _0x1d2b05 of['removeTableRow','removeTableColumn']){const _0x5f257c=_0x1d2b05['substr'](0xb),_0x33919d=_0x5f257c['toLowerCase'](),_0x103212=_0x33919d['substr'](0x0,0x3)+'span',_0x2ca75b='table'+_0x5f257c,_0x214828='min'+_0x5f257c,_0x194fca='max'+_0x5f257c;_0x33f8d3['enableCommand'](_0x1d2b05,()=>{_0x61bd55['model']['change'](_0x4b480d=>{const _0x3794bb=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x3e67eb=_0x3794bb[0x0]['findAncestor']('table');let _0xd59d63;if('removeTableRow'==_0x1d2b05){const _0x1d93f4=_0x261bff['getRowIndexes'](_0x3794bb);_0xd59d63={'startRow':_0x1d93f4['first'],'endRow':_0x1d93f4['last'],'includeAllSlots':!0x0};}else{const _0x56df70=_0x261bff['getColumnIndexes'](_0x3794bb);_0xd59d63={'startColumn':_0x56df70['first'],'endColumn':_0x56df70['last'],'includeAllSlots':!0x0};}const _0x35e4e6=_0x261bff['createTableWalker'](_0x3e67eb,_0xd59d63),_0x2ffb89=Array['from'](_0x35e4e6)['map'](({cell:_0x18e411})=>_0x18e411),_0x3c7d37=Nt(_0x2ffb89['filter'](_0x5d9999=>_0x5d9999['hasAttribute'](_0x103212))),_0x107bff=Nt(_0x2ffb89['filter'](_0xdbec2a=>!_0xdbec2a['hasAttribute'](_0x103212)))['map'](_0xdd3d08=>_0x4b480d['createRangeOn'](_0xdd3d08)),_0x28bd3f=_0x33f8d3['markMultiRangeDeletion'](_0x107bff,_0x2ca75b);if(_0x28bd3f&&('tableRow'==_0x28bd3f['subType']||'tableColumn'==_0x28bd3f['subType'])){const _0x2ef075=this['_getSuggestionCoords'](_0x28bd3f);for(const _0x7b3347 of _0x3c7d37){const _0x183b57=_0x4b480d['createRangeOn'](_0x7b3347),_0x208608=_0x261bff['getCellLocation'](_0x7b3347),_0x5da49b=_0x7b3347['getAttribute'](_0x103212)-0x1,_0x96adbe=_0x2ef075[_0x214828],_0x1f4fc9=_0x2ef075[_0x194fca];_0x96adbe<=_0x208608[_0x33919d]&&_0x208608[_0x33919d]+_0x5da49b<=_0x1f4fc9&&_0x28bd3f['addRange'](_0x183b57);}}});});}function _0x93dc9b(_0x18cc59){const _0xe8744c=Array['from'](_0x16dff5['getRanges']())['map'](_0x38ac01=>_0x52f028['fromRange'](_0x38ac01));_0x61bd55['model']['change'](_0x3d0656=>{const _0x310ca2=_0x3d0656['batch'];_0x18cc59=_0x18cc59['filter'](_0x45d81f=>'$graveyard'!=_0x45d81f['root']['rootName']),_0x3d0656['setSelection'](_0x18cc59),_0x61bd55['commands']['get']('removeTableRow')['refresh'](),_0x61bd55['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x61bd55['model']['enqueueChange'](()=>{_0x61bd55['model']['enqueueChange'](_0x310ca2,_0x596d36=>{const _0xbe3442=_0xe8744c['filter'](_0xa3dd6=>'$graveyard'!=_0xa3dd6['root']['rootName']);_0xbe3442['length']>0x0&&_0x596d36['setSelection'](_0xbe3442);for(const _0x51b3dd of _0xe8744c)_0x51b3dd['detach']();});});});}function _0x34fb40(_0x1a5c47){_0x61bd55['model']['change'](_0x5285a2=>{const _0x163631=Array['from'](_0x16dff5['getRanges']())['map'](_0x18e73d=>_0x52f028['fromRange'](_0x18e73d)),_0x571bda=[];for(const _0x64b7c6 of _0x1a5c47)for(const _0x3c82dc of _0x64b7c6['getItems']({'shallow':!0x0}))_0x571bda['push'](_0x3c82dc);for(const _0x1e9869 of _0x571bda)'$graveyard'!=_0x1e9869['root']['rootName']&&(_0x5285a2['setSelection'](_0x5285a2['createPositionAt'](_0x1e9869,0x0)),_0x61bd55['commands']['get']('removeTableColumn')['refresh'](),_0x61bd55['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5b12d7=_0x163631['filter'](_0xe121f4=>'$graveyard'!=_0xe121f4['root']['rootName']);_0x5b12d7['length']>0x0&&_0x5285a2['setSelection'](_0x5b12d7);for(const _0x1e03a0 of _0x163631)_0x1e03a0['detach']();});}function _0x33013e(_0x2b3308,_0x505696){return _0x505696['every'](_0x168167=>_0x2b3308['some'](_0xa84d02=>_0xa84d02['end']['isEqual'](_0x168167['start'])||_0x168167['end']['isEqual'](_0xa84d02['start'])));}function _0x21ea74(_0x5dbe7e,_0x38c91d){return!_0x5dbe7e['some'](_0x31c88b=>_0x38c91d['some'](_0x506472=>_0x31c88b['isIntersecting'](_0x506472)))&&_0x5dbe7e['some'](_0x5ab211=>_0x38c91d['some'](_0x2604bb=>_0x5ab211['end']['isTouching'](_0x2604bb['start'])));}_0x33f8d3['descriptionFactory']['registerDescriptionCallback'](_0x1ba191=>{if('insertion'!=_0x1ba191['type']&&'deletion'!=_0x1ba191['type'])return;const _0x4fdfcd=_0x1ba191['getContainedElement']();if(null!=_0x4fdfcd&&_0x4fdfcd['is']('element','table')){if('insertion'==_0x1ba191['type']){const _0x156b7d=_0x1ba191['getItems']()['filter'](_0x24f5f6=>_0x24f5f6['is']('$textProxy'))['map'](_0x46f1ca=>_0x46f1ca['data']);if(_0x156b7d['length'])return{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x156b7d['join']('\x20')+'\x22'))};}if('deletion'==_0x1ba191['type']){const _0x4acc33=_0x1ba191['getItems']()['filter'](_0x5e2eea=>_0x5e2eea['is']('$textProxy'))['map'](_0x1ba185=>_0x1ba185['data']);if(_0x4acc33['length'])return{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4acc33['join']('\x20')+'\x22'))};}}}),_0x33f8d3['descriptionFactory']['registerDescriptionCallback'](_0x573ef3=>{if('tableRow'==_0x573ef3['subType']){const _0x2ef4f0=_0x573ef3['getItems']()['filter'](_0x2d3ae2=>_0x2d3ae2['is']('$textProxy'))['map'](_0x25e794=>_0x25e794['data']),_0x3fb3ef=this['_getSuggestionCoords'](_0x573ef3),_0x335d43=_0x3fb3ef['maxRow']-_0x3fb3ef['minRow']+0x1;if('insertion'==_0x573ef3['type'])return _0x2ef4f0['length']?{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x335d43,'\x22'+_0x2ef4f0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW',_0x335d43))};if('deletion'==_0x573ef3['type'])return _0x2ef4f0['length']?{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x335d43,'\x22'+_0x2ef4f0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW',_0x335d43))};}if('tableColumn'==_0x573ef3['subType']){const _0x205513=_0x573ef3['getItems']()['filter'](_0x1a6aae=>_0x1a6aae['is']('$textProxy'))['map'](_0x3ae029=>_0x3ae029['data']),_0x22b8dd=this['_getSuggestionCoords'](_0x573ef3),_0x24d18b=_0x22b8dd['maxColumn']-_0x22b8dd['minColumn']+0x1;if('insertion'==_0x573ef3['type'])return _0x205513['length']?{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d18b,'\x22'+_0x205513['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN',_0x24d18b))};if('deletion'==_0x573ef3['type'])return _0x205513['length']?{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d18b,'\x22'+_0x205513['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN',_0x24d18b))};}}),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x93dc9b),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x93dc9b),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34fb40),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34fb40),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33013e),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33013e),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21ea74),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21ea74);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1a7e94=this['editor'],_0x3d23b8=_0x1a7e94['model']['document']['selection'];return(_0x397b1e,_0x32cd18)=>{_0x1a7e94['model']['change'](_0x2937c5=>{const {commandName:_0x1e9bd8,commandParams:_0x3f7e2d}=_0x32cd18;let _0x395619=_0x397b1e[0x0]['end']['nodeBefore'];_0x3f7e2d&&_0x3f7e2d[0x0]&&!0x1===_0x3f7e2d[0x0]['forceValue']&&(_0x395619=_0x397b1e[0x0]['start']['nodeAfter']);const _0x247bf4=_0x2937c5['createRangeIn'](_0x395619);if('$graveyard'==_0x247bf4['root']['rootName'])return;const _0x4cb07a=Array['from'](_0x3d23b8['getRanges']())['map'](_0x2e1840=>_0x52f028['fromRange'](_0x2e1840));_0x2937c5['setSelection'](_0x247bf4),_0x1a7e94['commands']['get'](_0x1e9bd8)['refresh'](),_0x3f7e2d['push']({'forceDefaultExecution':!0x0}),_0x1a7e94['execute'](_0x1e9bd8,..._0x3f7e2d);const _0x58832d=_0x4cb07a['filter'](_0x9e7428=>'$graveyard'!=_0x9e7428['root']['rootName']);_0x58832d['length']>0x0&&_0x2937c5['setSelection'](_0x58832d);for(const _0x2ff7b4 of _0x4cb07a)_0x2ff7b4['detach']();});};}['_getCoordsForCells'](_0x549075){const _0x5a6392=this['editor']['plugins']['get']('TableUtils');let _0x1d10f3=Number['MAX_SAFE_INTEGER'],_0x56989d=Number['MIN_SAFE_INTEGER'],_0x75c02c=Number['MAX_SAFE_INTEGER'],_0x282916=Number['MIN_SAFE_INTEGER'];for(const _0x1b3d57 of _0x549075){if('$graveyard'==_0x1b3d57['root']['rootName'])continue;const {row:_0x20ba9c,column:_0x16dda6}=_0x5a6392['getCellLocation'](_0x1b3d57),_0x46df5f=_0x1b3d57['hasAttribute']('rowspan')?_0x1b3d57['getAttribute']('rowspan')-0x1:0x0,_0x305fb0=_0x1b3d57['hasAttribute']('colspan')?_0x1b3d57['getAttribute']('colspan')-0x1:0x0;_0x1d10f3=_0x20ba9c<_0x1d10f3?_0x20ba9c:_0x1d10f3,_0x56989d=_0x20ba9c+_0x46df5f>_0x56989d?_0x20ba9c+_0x46df5f:_0x56989d,_0x75c02c=_0x16dda6<_0x75c02c?_0x16dda6:_0x75c02c,_0x282916=_0x16dda6+_0x305fb0>_0x282916?_0x16dda6+_0x305fb0:_0x282916;}return{'minRow':_0x1d10f3,'maxRow':_0x56989d,'minColumn':_0x75c02c,'maxColumn':_0x282916};}['_setupColumnsRowsFixing'](){const _0x1c9e96=this['editor'],_0x5b88e3=_0x1c9e96['plugins']['get']('TrackChangesEditing'),_0x3292c6=_0x1c9e96['plugins']['get']('TableUtils');_0x1c9e96['model']['document']['on']('change:data',()=>{const _0xbfdce2=Array['from'](_0x1c9e96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ed267,data:_0x383ead}of _0xbfdce2){const {group:_0x83b926,id:_0xb7495e,subType:_0x1ab58d}=_0x309b71(_0x2ed267);if('suggestion'!=_0x83b926)continue;if(null!=_0x383ead['oldRange'])continue;const _0x24a617=_0x5b88e3['getSuggestion'](_0xb7495e);this['_tablePostFixingSubtypes']['includes'](_0x1ab58d)&&this['_tableSuggestions']['add'](_0x24a617);}},{'priority':'low'});const _0x4284b9=(_0x265b28,_0x40d60c)=>{let _0x474207=!0x1;const _0xd4d328=_0x40d60c['createRangeOn'](_0x265b28),_0x24462a=_0x265b28['findAncestor']('table'),_0x552e64=_0x3292c6['getCellLocation'](_0x265b28);for(const _0x58c980 of this['_tableSuggestions']){const _0x3c42db=_0x58c980['subType'],_0x125741=_0x3c42db['startsWith']('tablePaste'),_0x6ea3cb=_0x3c42db['substr'](_0x125741?0xa:0x5),_0x4cc5fd=_0x6ea3cb['toLowerCase'](),_0x4512b6=_0x4cc5fd['substr'](0x0,0x3)+'span',_0x1a71c5='min'+_0x6ea3cb,_0x54d09a='max'+_0x6ea3cb;if(!_0x58c980['isInContent'])continue;if(_0x24462a!=_0x58c980['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x58c980['isIntersectingWithRange'](_0xd4d328))continue;const _0x3bca62=_0x265b28['hasAttribute'](_0x4512b6)?_0x265b28['getAttribute'](_0x4512b6)-0x1:0x0,_0x436911=this['_getSuggestionCoords'](_0x58c980),_0x25bf0c=_0x436911[_0x1a71c5],_0x34fa36=_0x436911[_0x54d09a];_0x25bf0c<=_0x552e64[_0x4cc5fd]&&_0x552e64[_0x4cc5fd]+_0x3bca62<=_0x34fa36&&(_0x58c980['addRange'](_0xd4d328),_0x474207=!0x0);}return _0x474207;};_0x1c9e96['model']['document']['registerPostFixer'](_0x42a770=>{let _0x5c84f2=!0x1;for(const _0x1a8e09 of _0x1c9e96['model']['document']['differ']['getChanges']())if('insert'==_0x1a8e09['type']){if('tableRow'==_0x1a8e09['name']){for(const _0x743884 of _0x1a8e09['position']['nodeAfter']['getChildren']())_0x5c84f2=_0x5c84f2||_0x4284b9(_0x743884,_0x42a770);}else'tableCell'==_0x1a8e09['name']&&(_0x5c84f2=_0x5c84f2||_0x4284b9(_0x1a8e09['position']['nodeAfter'],_0x42a770));}return _0x5c84f2;});}['_getSuggestionCoords'](_0x49ff1f){return this['_getCoordsForCells'](_0x49ff1f['getRanges']()['map'](_0x8aef53=>_0x8aef53['start']['nodeAfter']));}}function Nt(_0xa97e03){return Array['from'](new Set(_0xa97e03)['values']());}class TrackChangesTableMergeSplit extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x12bd63=this['editor'],_0x272508=_0x12bd63['model']['document']['selection'],_0x52f793=_0x12bd63['locale'];if(!_0x12bd63['plugins']['has']('TableEditing'))return;const _0x59c288=_0x12bd63['plugins']['get']('TrackChangesEditing'),_0x1da55b=_0x12bd63['plugins']['get']('TableUtils'),_0x3bf016=_0x12bd63['plugins']['get'](TrackChangesTable);_0x3bf016['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x59c288['enableCommand']('mergeTableCells',()=>{const _0x18acb9=_0x1da55b['getSelectionAffectedTableCells'](_0x12bd63['model']['document']['selection']);_0x12bd63['model']['change'](()=>{_0x59c288['markMultiRangeBlockFormat'](_0x18acb9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x12bd63['commands']['get']('mergeTableCells')['on']('execute',(_0x131121,_0x971e93)=>{_0x12bd63['commands']['get']('trackChanges')['value']&&(_0x971e93['length']>0x0&&_0x971e93[_0x971e93['length']-0x1]&&_0x971e93[_0x971e93['length']-0x1]['forceDefaultExecution']||_0x59c288['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x131121['stop']());},{'priority':'highest'});for(const _0x4a162f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fcca0=_0x12bd63['commands']['get'](_0x4a162f);_0x59c288['enableCommand'](_0x4a162f,()=>{const _0x1ef661=_0x12bd63['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cd0fb=>_0x4cd0fb['is']('element','tableCell')),_0x79aff9=_0x4fcca0['value'];_0x12bd63['model']['change'](()=>{_0x59c288['markMultiRangeBlockFormat']([_0x1ef661,_0x79aff9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37315e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1aa80d=_0x12bd63['commands']['get'](_0x37315e);_0x59c288['enableCommand'](_0x37315e,()=>{const _0x1c0acf=_0x1da55b['getSelectionAffectedTableCells'](_0x12bd63['model']['document']['selection'])[0x0],_0x5e0c8e=_0x1c0acf['findAncestor']('table'),{column:_0x50339b,row:_0x50fc5b}=_0x1da55b['getCellLocation'](_0x1c0acf);let _0x9bf7df=[];if('horizontally'==_0x1aa80d['direction']){const _0x1dd7f3=_0x1da55b['createTableWalker'](_0x5e0c8e,{'startRow':_0x50fc5b,'endRow':_0x50fc5b,'includeAllSlots':!0x0});_0x9bf7df=Array['from'](_0x1dd7f3)['map'](_0x2ec290=>_0x2ec290['cell']);}else{const _0x517f92=_0x1da55b['createTableWalker'](_0x5e0c8e,{'column':_0x50339b,'includeAllSlots':!0x0});_0x9bf7df=Array['from'](_0x517f92)['map'](_0x53ae69=>_0x53ae69['cell']);}_0x12bd63['model']['change'](_0x15ae35=>{_0x59c288['markBlockFormat'](_0x15ae35['createRangeOn'](_0x1c0acf),{'commandName':_0x37315e,'commandParams':[]},_0x9bf7df,_0x37315e);});});}_0x59c288['descriptionFactory']['registerDescriptionCallback'](_0xda67ee=>{if('formatBlock'!=_0xda67ee['type']&&'formatInline'!=_0xda67ee['type'])return;const {data:_0x32bf84}=_0xda67ee;return _0x32bf84&&'mergeTableCells'==_0x32bf84['commandName']?{'type':'format','content':Tt(_0x52f793,'*Merge\x20cells*')}:void 0x0;}),_0x59c288['descriptionFactory']['registerDescriptionCallback'](_0xaf2923=>{if('formatBlock'!=_0xaf2923['type']&&'formatInline'!=_0xaf2923['type'])return;const {data:_0x15a4bc}=_0xaf2923;return _0x15a4bc?'splitTableCellVertically'==_0x15a4bc['commandName']?{'type':'format','content':Tt(_0x52f793,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15a4bc['commandName']?{'type':'format','content':Tt(_0x52f793,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x265cf3=_0x3bf016['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b987d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b987d,'accept',_0x265cf3);for(const _0x2b01be of['splitTableCellVertically','splitTableCellHorizontally'])_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b01be,'accept',_0x265cf3);_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47daa5=>{_0x12bd63['model']['change'](_0x57a5db=>{const _0x499856=Array['from'](_0x272508['getRanges']())['map'](_0x3b0435=>_0x52f028['fromRange'](_0x3b0435));_0x57a5db['setSelection'](_0x47daa5),_0x12bd63['commands']['get']('mergeTableCells')['refresh'](),_0x12bd63['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36e881=_0x499856['filter'](_0x191b9a=>'$graveyard'!=_0x191b9a['root']['rootName']);_0x36e881['length']>0x0&&_0x57a5db['setSelection'](_0x36e881);for(const _0x1c18ab of _0x499856)_0x1c18ab['detach']();});});for(const _0x12a342 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25291b=_0x12bd63['commands']['get'](_0x12a342);_0x25291b['on']('set:isEnabled',(_0x5db2db,_0x1a4421,_0x578741)=>{if(_0x578741){const _0x41cfd6=_0x12bd63['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x339604=>_0x339604['is']('element','tableCell'));this['_areMergableCells'](_0x25291b['value'],_0x41cfd6)||(_0x5db2db['return']=!0x1,_0x5db2db['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc66a60=this['editor']['commands']['get']('mergeTableCells'),_0x3c9035=this['editor']['plugins']['get']('TableUtils');if(!_0xc66a60['isEnabled'])return!0x1;const _0x5a6a4c=_0x3c9035['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1410ed of _0x5a6a4c)for(const _0x216596 of _0x5a6a4c)if(_0x1410ed!=_0x216596&&!this['_areMergableCells'](_0x1410ed,_0x216596))return!0x1;return!0x0;}['_areMergableCells'](_0x2f252d,_0x2ce809){const _0x4a6716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422d59=this['editor']['model']['createRangeOn'](_0x2f252d),_0x4f0a29=this['editor']['model']['createRangeOn'](_0x2ce809),_0x200cd6=new Set(),_0x542c65=new Set();for(const _0x2e0b08 of _0x4a6716['getSuggestions']())if(('insertion'==_0x2e0b08['type']||'deletion'==_0x2e0b08['type']||'mergeTableCells'==_0x2e0b08['subType'])&&_0x2e0b08['isInContent']){for(const _0x2ad042 of _0x2e0b08['getRanges']())_0x2ad042['containsRange'](_0x422d59,!0x0)&&_0x200cd6['add'](_0x2e0b08['type']+':'+_0x2e0b08['author']['id']),_0x2ad042['containsRange'](_0x4f0a29,!0x0)&&_0x542c65['add'](_0x2e0b08['type']+':'+_0x2e0b08['author']['id']);}if(_0x200cd6['size']!=_0x542c65['size'])return!0x1;for(const _0x3bbaa8 of _0x200cd6)if(!_0x542c65['has'](_0x3bbaa8))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x528288=this['editor'];if(!_0x528288['plugins']['has']('TableEditing'))return;const _0x184fa0=_0x528288['locale'],_0x548ca0=_0x528288['plugins']['get']('TrackChangesEditing');_0x548ca0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x548ca0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x548ca0['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x184fa0,'FORMAT_HEADER_ROW')),_0x548ca0['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x184fa0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f46c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12b82b=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3f46c0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x12b82b),_0x3f46c0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x12b82b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x13886c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x348402=this['editor']['plugins']['get']('TableUtils');function _0x5e902f({showActiveMarker:_0x207dff=!0x0,setDataAttribute:_0x117094=!0x0}={}){return(_0xfb9a16,_0x1d5d0a,_0x4a57b9)=>{const {type:_0x1993b8,id:_0x39a5a5}=_0x309b71(_0x1d5d0a['markerName']);if(!_0x13886c['hasSuggestion'](_0x39a5a5))return;const _0x168b1e=_0x13886c['getSuggestion'](_0x39a5a5),_0x4ac368=_0x168b1e['data'];if('formatBlock'!=_0x168b1e['type']||!_0x4ac368||'setTableColumnHeader'!=_0x4ac368['commandName'])return;if(_0x1d5d0a['item'])return void _0xfb9a16['stop']();if(!_0x4a57b9['consumable']['consume'](_0x1d5d0a['markerRange'],_0xfb9a16['name']))return;const _0x5aacf6=_0x1d5d0a['markerRange']['start']['nodeAfter'],_0x2520a6=_0x1d5d0a['markerRange']['end']['nodeBefore'],_0x580d4a=_0x5aacf6['parent']['parent'],{column:_0x1b2db5}=_0x348402['getCellLocation'](_0x5aacf6),{column:_0x558c40}=_0x348402['getCellLocation'](_0x2520a6);for(let _0x42af01=_0x1b2db5;_0x42af01<=_0x558c40;_0x42af01++){const _0x9a5583=_0x348402['createTableWalker'](_0x580d4a,{'column':_0x42af01,'includeAllSlots':!0x1});for(const _0x3a2445 of _0x9a5583){const _0x5bd3ac=_0x3a2445['cell'],_0x1b1a15=_0x4a57b9['mapper']['toViewElement'](_0x5bd3ac);_0x4a57b9['writer']['addClass']('ck-suggestion-marker-'+_0x1993b8,_0x1b1a15),_0x117094&&_0x4a57b9['writer']['setAttribute']('data-suggestion',_0x39a5a5,_0x1b1a15),_0x4a57b9['mapper']['bindElementToMarker'](_0x1b1a15,_0x1d5d0a['markerName']),_0x207dff&&(_0x13886c['activeMarkers']['includes'](_0x1d5d0a['markerName'])?_0x4a57b9['writer']['addClass']('ck-suggestion-marker--active',_0x1b1a15):_0x4a57b9['writer']['removeClass']('ck-suggestion-marker--active',_0x1b1a15));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e902f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37f640,_0x25336b,_0x1c18e1)=>{_0x1c18e1['options']['showSuggestionHighlights']&&_0x5e902f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37f640,_0x25336b,_0x1c18e1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x33a3c7,_0x452466,_0x96ca8f)=>{const {type:_0x25742b,id:_0x46ae82}=_0x309b71(_0x452466['markerName']);if(!_0x13886c['hasSuggestion'](_0x46ae82))return;const _0x3debab=_0x13886c['getSuggestion'](_0x46ae82),_0x4052e3=_0x3debab['data'];if('formatBlock'!=_0x3debab['type']||!_0x4052e3||'setTableColumnHeader'!=_0x4052e3['commandName'])return;const _0x338fba=_0x96ca8f['mapper']['markerNameToElements'](_0x452466['markerName']);if(_0x338fba){for(const _0x220d2a of _0x338fba)_0x96ca8f['writer']['removeClass']('ck-suggestion-marker-'+_0x25742b,_0x220d2a),_0x96ca8f['writer']['removeClass']('ck-suggestion-marker--active',_0x220d2a),_0x96ca8f['writer']['removeAttribute']('data-suggestion',_0x220d2a),_0x96ca8f['mapper']['unbindElementFromMarkerName'](_0x220d2a,_0x452466['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x105bf2=this['editor'],_0x505d90=_0x105bf2['locale'];function _0x244c24(_0x4996a8){return{'type':'format','content':Tt(_0x505d90,'*Format:*\x20%0',_0x4996a8)};}_0x105bf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e9637=>{if('formatBlock'!=_0x4e9637['type'])return;const {data:_0x1170a1}=_0x4e9637;if(_0x1170a1){if('setTableRowHeader'==_0x1170a1['commandName']){const _0x5e6ccd=_0x1170a1['commandParams'][0x0]['forceValue'];return _0x244c24(Tt(_0x505d90,_0x5e6ccd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1170a1['commandName']){const _0x2c2ee9=_0x1170a1['commandParams'][0x0]['forceValue'];return _0x244c24(Tt(_0x505d90,_0x2c2ee9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1f1a8d=this['editor'];if(!_0x1f1a8d['plugins']['has']('TableEditing')||!_0x1f1a8d['config']['get']('table.enableFooters'))return;const _0xbd3669=_0x1f1a8d['locale'],_0x5e3168=_0x1f1a8d['plugins']['get']('TrackChangesEditing');_0x5e3168['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5e3168['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0xbd3669,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3cecf3{['afterInit'](){const _0x3cef4d=this['editor'],_0x4e9fd0=_0x3cef4d['locale'],_0x32a20f=_0x3cef4d['plugins']['get']('TrackChangesEditing');function _0x33b036(_0x5baf3e){return{'type':'format','content':''+Tt(_0x4e9fd0,'*Set\x20table\x20type:*\x20%0',_0x5baf3e)};}_0x3cef4d['plugins']['has']('TableLayout')&&(_0x32a20f['enableCommand']('insertTableLayout'),_0x32a20f['enableDefaultAttributesIntegration']('tableType'),_0x32a20f['descriptionFactory']['registerElementLabel'](_0x4a5d9f=>_0x4a5d9f['is']('element','table')&&'layout'===_0x4a5d9f['getAttribute']('tableType'),_0x4a64d8=>Tt(_0x4e9fd0,'ELEMENT_LAYOUT_TABLE',_0x4a64d8)),_0x32a20f['descriptionFactory']['registerDescriptionCallback'](_0x4468c3=>{const {data:_0x4c644c}=_0x4468c3;if(_0x4c644c&&'tableType'==_0x4c644c['key'])switch(_0x4c644c['newValue']){case'layout':return _0x33b036(Tt(_0x4e9fd0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x33b036(Tt(_0x4e9fd0,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Mt['map'](_0x40650f=>[_0x40650f,null]));class TrackChangesTableClipboard extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x339c10=this['editor'];if(!_0x339c10['plugins']['has']('TableClipboard'))return;const _0x4b0531=_0x339c10['plugins']['get']('TrackChangesEditing'),_0xcdbe12=_0x339c10['plugins']['get']('TableUtils'),_0x212aa0=_0x339c10['plugins']['get'](TrackChangesTable),_0x235e99=_0x339c10['plugins']['get']('TableClipboard'),_0x5958c7=_0x339c10['plugins']['get']('TableSelection'),_0x5b0017=_0x339c10['plugins']['get'](ut);_0x212aa0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x339c10['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x339c10['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f109f=null,_0x558ca1=!0x1;_0x5b0017['on']('contentInsertion',(_0x531ae8,_0x210095)=>{_0x558ca1='paste'===_0x210095['method'];}),_0x339c10['model']['on']('insertContent',(_0x4d7519,_0x27edea)=>{if(!_0x558ca1&&null===_0x5958c7['getSelectedTableCells']())return;const [_0x3eb2cb,_0x7991f5]=_0x27edea,_0x238c53=_0x27edea[_0x27edea['length']-0x1];_0x238c53&&_0x238c53['forceDefaultExecution']||_0x4b0531['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29899e,_0x515bab,_0x5172df,_0x95d5d7,_0x2fd81e){if(_0x515bab&&!_0x515bab['is']('documentSelection'))return!0x1;const _0x3f0b5c=_0x2fd81e['getTableIfOnlyTableInContent'](_0x29899e,_0x5172df);if(!_0x3f0b5c||!Bt(_0x3f0b5c,void 0x0,_0x95d5d7))return!0x1;const _0x5e0f2c=_0x95d5d7['getSelectionAffectedTableCells'](_0x5172df['document']['selection']);if(!_0x5e0f2c['length'])return!0x1;const _0x2cab15=_0x5e0f2c[0x0]['findAncestor']('table'),_0x20cf27=_0x95d5d7['getRowIndexes'](_0x5e0f2c),_0x3ad1c9=_0x95d5d7['getColumnIndexes'](_0x5e0f2c),_0x1276c3={'startRow':_0x20cf27['first'],'endRow':_0x20cf27['last'],'startColumn':_0x3ad1c9['first'],'endColumn':_0x3ad1c9['last']};return 0x1==_0x5e0f2c['length']&&(_0x1276c3['endRow']+=_0x95d5d7['getRows'](_0x3f0b5c)-0x1,_0x1276c3['endColumn']+=_0x95d5d7['getColumns'](_0x3f0b5c)-0x1),Bt(_0x2cab15,_0x1276c3,_0x95d5d7);}(_0x3eb2cb,_0x7991f5,_0x339c10['model'],_0xcdbe12,_0x235e99)&&(_0x4d7519['stop'](),_0x2f109f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x339c10['model']['change'](()=>{_0x339c10['model']['insertContent'](_0x27edea[0x0],_0x27edea[0x1],_0x27edea[0x2],{'forceDefaultExecution':!0x0});const _0x35b296=_0x15c67d(),{rowInsertionRanges:_0x400239,columnInsertionRanges:_0x4b4ac2,insertionRanges:_0x426081,deletionRanges:_0x3ec54f,cells:_0x7b18e8}=_0x2f109f;_0x400239['length']&&_0x4b0531['markMultiRangeInsertion'](_0x400239,'tablePasteRow',{'tablePasteChainId':_0x35b296}),_0x4b4ac2['length']&&_0x4b0531['markMultiRangeInsertion'](_0x4b4ac2,'tablePasteColumn',{'tablePasteChainId':_0x35b296}),_0x426081['length']&&(_0x4b0531['markMultiRangeInsertion'](_0x426081,'tablePaste',{'tablePasteChainId':_0x35b296,'skipNestingCheck':!0x0}),_0x426081['forEach'](_0x5ebdac=>_0x5ebdac['detach']?.())),_0x3ec54f['length']&&(_0x4b0531['markMultiRangeDeletion'](_0x3ec54f,'tablePaste',{'tablePasteChainId':_0x35b296,'skipNestingCheck':!0x0}),_0x3ec54f['forEach'](_0x166703=>_0x166703['detach']?.()));const _0x4b4f7d=_0x4b0531['markMultiRangeBlockFormat'](_0x7b18e8['map'](({element:_0x3e771e})=>_0x3e771e),{'formatGroupId':_0x15c67d()},[],'tablePasteCell',{'tablePasteChainId':_0x35b296});if(_0x4b4f7d){const _0x54312f=_0x4b4f7d['getMarkers'](),_0x57502b=[];for(const {element:_0x3c51a6,attributes:_0x417974}of _0x7b18e8){if(!_0x417974)continue;const _0x45a44b=_0x339c10['model']['createRangeOn'](_0x3c51a6),_0x1924fb=_0x54312f['find'](_0x4e28a2=>_0x4e28a2['getRange']()['isEqual'](_0x45a44b));_0x1924fb&&_0x57502b['push']([_0x1924fb['name'],_0x417974]);}_0x57502b['length']&&_0x4b4f7d['setAttribute']('markerAttributes',Object['fromEntries'](_0x57502b));}_0x2f109f=null;}));},{'priority':_0x4f16be['high']+0xa}),_0x5b0017['on']('contentInsertion',()=>{_0x558ca1=!0x1;},{'priority':'lowest'}),_0x339c10['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a30fc,_0x2720ce)=>{const [_0x40a3fb,_0x4a4b4d,,_0x41ef42]=_0x2720ce;if(!_0x2f109f)return;_0x2a30fc['stop']();const _0x5a6147=_0x40a3fb['cell'],_0x49bb59=_0x4a4b4d,_0x9b51d2=wt(_0x5a6147),_0x1f3e10=wt(_0x49bb59);_0x2a30fc['return']=_0x5a6147;let _0x5aff8e=null,_0x4e9ed3=null;if(_0x1f3e10||_0x9b51d2){if(_0x9b51d2&&!_0x1f3e10){_0x41ef42['remove'](_0x5a6147['getChild'](0x0));for(const _0x3c790d of Array['from'](_0x49bb59['getChildren']()))_0x41ef42['insert'](_0x3c790d,_0x5a6147,'end');const _0x5f48c8=_0x2f109f['rowInsertionIndexes']['includes'](_0x40a3fb['row']),_0x55a1ec=_0x2f109f['columnInsertionIndexes']['includes'](_0x40a3fb['column']);_0x5f48c8||_0x55a1ec||(_0x5aff8e=_0x52f028['fromRange'](_0x41ef42['createRangeIn'](_0x5a6147)));}else _0x1f3e10&&!_0x9b51d2&&(_0x4e9ed3=_0x41ef42['createRangeIn'](_0x5a6147));}else{const _0x5a64bf=_0x41ef42['createElement']('tableCellSuggestion'),_0x3eea34=_0x41ef42['createElement']('tableCellSuggestion');_0x41ef42['wrap'](_0x41ef42['createRangeIn'](_0x5a6147),_0x3eea34),_0x41ef42['insert'](_0x5a64bf,_0x5a6147,0x0);for(const _0x2c2408 of Array['from'](_0x49bb59['getChildren']()))_0x41ef42['insert'](_0x2c2408,_0x5a64bf,'end');_0x5aff8e=_0x52f028['fromRange'](_0x41ef42['createRangeOn'](_0x5a64bf)),_0x4e9ed3=_0x52f028['fromRange'](_0x41ef42['createRangeOn'](_0x3eea34));}const _0x46d433=Array['from'](_0x49bb59['getAttributes']())['filter'](([_0x4a718e])=>Mt['includes'](_0x4a718e));_0x2f109f['cells']['push']({'element':_0x5a6147,'attributes':_0x46d433['length']?Object['fromEntries'](_0x46d433):null}),_0x5aff8e&&_0x2f109f['insertionRanges']['push'](_0x5aff8e),_0x4e9ed3&&_0x2f109f['deletionRanges']['push'](_0x4e9ed3);},{'priority':'high'}),_0xcdbe12['on']('insertColumns',(_0x2b0a3f,_0xf58fbf)=>{const [_0xd838a4,_0x316f21={}]=_0xf58fbf;if(!_0x2f109f)return;const _0x599a28=_0x316f21['at']||0x0,_0x2e3ef1=_0x316f21['columns']||0x1;_0x2f109f['columnInsertionIndexes']=new Array(_0x2e3ef1)['fill'](_0x599a28)['map']((_0x549ef4,_0xffe906)=>_0x549ef4+_0xffe906);for(const {cell:_0x533406}of _0xcdbe12['createTableWalker'](_0xd838a4,{'startColumn':_0x599a28,'endColumn':_0x599a28+_0x2e3ef1-0x1}))_0x2f109f['columnInsertionRanges']['push'](_0x339c10['model']['createRangeOn'](_0x533406));},{'priority':'low'}),_0xcdbe12['on']('insertRows',(_0x56c063,_0x4793b6)=>{const [_0x3f59b1,_0x461f8c={}]=_0x4793b6;if(!_0x2f109f)return;const _0x2f7550=_0x461f8c['at']||0x0,_0x14e71d=_0x461f8c['rows']||0x1;_0x2f109f['rowInsertionIndexes']=new Array(_0x14e71d)['fill'](_0x2f7550)['map']((_0x23ac70,_0x4b4566)=>_0x23ac70+_0x4b4566);for(const {cell:_0x4d5273}of _0xcdbe12['createTableWalker'](_0x3f59b1,{'startRow':_0x2f7550,'endRow':_0x2f7550+_0x14e71d-0x1}))_0x2f109f['rowInsertionRanges']['push'](_0x339c10['model']['createRangeOn'](_0x4d5273));},{'priority':'low'}),_0x4b0531['descriptionFactory']['registerDescriptionCallback'](_0x53c6b9=>{if(_0x53c6b9['subType']&&_0x53c6b9['subType']['startsWith']('tablePaste'))return _0x53c6b9['previous']?{}:{'type':'insertion','content':Tt(_0x339c10['locale'],'*Replace\x20table\x20cells*')};});const _0x43311a=()=>!0x1;for(const _0x292e6d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion',_0x292e6d,'join',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('deletion',_0x292e6d,'join',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x292e6d,'join',_0x43311a);_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x320c08,_0x23fcf9,_0x4e9af4)=>{const _0x525536=_0x320c08['map'](_0x303791=>_0x303791['getContainedElement']())['filter'](_0x44f87c=>_0x44f87c),_0x512b32=new Map(_0x525536['map'](_0x3ea953=>[_0x3ea953,null]));if(_0x2f109f){for(const {element:_0x1fad61,attributes:_0x1cbbfc}of _0x2f109f['cells'])_0x1cbbfc&&_0x512b32['set'](_0x1fad61,_0x1cbbfc);}else{if(_0x4e9af4&&_0x4e9af4['markerAttributes'])for(const [_0x587c4f,_0x451ac4]of Object['entries'](_0x4e9af4['markerAttributes'])){const _0x1b5718=_0x339c10['model']['markers']['get'](_0x587c4f),_0x440061=_0x1b5718?_0x1b5718['getRange']()['getContainedElement']():null;_0x440061&&_0x512b32['set'](_0x440061,_0x451ac4);}}_0x339c10['model']['change'](_0x2d9dd1=>{for(const [_0x3d15e2,_0x4a92de]of _0x512b32)_0x2d9dd1['setAttributes']({...Ot,..._0x4a92de},_0x3d15e2);});});const _0x3195c1=(_0x29681c,_0x23d0f8)=>{_0x4b0531['_suggestionFactory']['registerCustomCallback'](_0x29681c,'tablePaste',_0x23d0f8,(_0x2f1d37,_0x4b694a,_0xd8b447)=>{_0x339c10['model']['change'](_0x47a43b=>{const _0x443d62=[];for(const _0x2d98aa of _0x2f1d37){const _0x11ae2d=_0x2d98aa['start']['nodeAfter'];_0x11ae2d['is']('element','tableCellSuggestion')&&_0x443d62['push'](_0x11ae2d);}_0x4b0531['_suggestionFactory']['getSuggestionCallback'](_0x29681c,null,_0x23d0f8)(_0x2f1d37,_0x4b694a,_0xd8b447);for(const _0x166046 of _0x443d62)'$graveyard'!=_0x166046['root']['rootName']&&_0x47a43b['unwrap'](_0x166046);});});};_0x3195c1('insertion','accept'),_0x3195c1('insertion','discard'),_0x3195c1('deletion','accept'),_0x3195c1('deletion','discard'),_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x264299=>{const _0x517571=_0x264299['map'](_0x342ded=>_0x342ded['getContainedElement']()),_0x4aa368=_0x517571[0x0]['findAncestor']('table'),{minRow:_0x4bab12,maxRow:_0x135d71}=_0x212aa0['_getCoordsForCells'](_0x517571);_0xcdbe12['removeRows'](_0x4aa368,{'at':_0x4bab12,'rows':_0x135d71-_0x4bab12+0x1});}),_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e0814=>{const _0x261de1=_0x4e0814['map'](_0x5c1d61=>_0x5c1d61['getContainedElement']()),_0x1373f4=_0x261de1[0x0]['findAncestor']('table'),{minColumn:_0x389e18,maxColumn:_0xec9924}=_0x212aa0['_getCoordsForCells'](_0x261de1);_0xcdbe12['removeColumns'](_0x1373f4,{'at':_0x389e18,'columns':_0xec9924-_0x389e18+0x1});});const _0x5b0184=(_0x4f6575,_0x536a34)=>{if(!_0x536a34['subType']||!_0x536a34['subType']['startsWith']('tablePaste'))return;const _0x50f2c4=_0x536a34['attributes']['tablePasteChainId'],_0x266275=_0x4b0531['getSuggestions']()['filter'](_0x2dc105=>_0x2dc105['isInContent']&&_0x2dc105['attributes']&&_0x2dc105['attributes']['tablePasteChainId']==_0x50f2c4);_0x266275['length']&&_0x536a34['getAllAdjacentSuggestions']()['length']!=_0x266275['length']&&_0x266275['reduce']((_0x223575,_0x1af06a)=>(_0x223575['next']=_0x1af06a,_0x1af06a['previous']=_0x223575,_0x1af06a));};function _0x462afa(_0x14152b,_0x4aa5ab=!0x0){const {id:_0x24f56c,authorId:_0x4321d6}=_0x309b71(_0x14152b['markerName']),_0x54514f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x377d12=_0x4b0531['activeMarkers']['includes'](_0x14152b['markerName']);return _0x377d12&&_0x54514f['push']('ck-suggestion-marker--active'),{'classes':_0x54514f,'attributes':{'data-suggestion':_0x24f56c,'data-author-id':_0x4321d6},'priority':_0x377d12&&_0x4aa5ab?0xbc2:0xbb8};}_0x4b0531['on']('suggestionLoaded',_0x5b0184,{'priority':'high'}),_0x4b0531['on']('suggestionUnloaded',_0x5b0184,{'priority':'high'}),_0x339c10['model']['document']['registerPostFixer'](()=>{let _0x3753f1=!0x1;const _0x48a633=Array['from'](_0x339c10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cf51c,data:_0x13b347}of _0x48a633){const {group:_0xb4e7ac,type:_0xceac45,id:_0x271211}=_0x309b71(_0x4cf51c);if('suggestion'!=_0xb4e7ac||'deletion'!=_0xceac45||_0x13b347['oldRange'])continue;if(!_0x4b0531['hasSuggestion'](_0x271211))continue;const _0x390b3c=_0x4b0531['getSuggestion'](_0x271211)['getRanges'](),_0x3eb89c=_0x339c10['plugins']['get']('Users')['me'];for(const _0x12e216 of _0x4b0531['getSuggestions']()){if(!_0x12e216['isInContent']||_0x12e216['author']!=_0x3eb89c)continue;if('formatBlock'!=_0x12e216['type']||'tablePasteCell'!=_0x12e216['subType'])continue;if(_0x12e216['getRanges']()['every'](_0x51b50b=>_0x390b3c['some'](_0x471f82=>_0x471f82['containsRange'](_0x51b50b,!0x0)))){for(const _0x4cc2f8 of _0x12e216['getAllAdjacentSuggestions']())_0x4cc2f8['isInContent']&&(_0x4cc2f8['discard'](),_0x3753f1=!0x0);}}}return _0x3753f1;}),_0x339c10['model']['document']['registerPostFixer'](_0x4bc5f2=>{const _0x18db35=_0x339c10['commands']['get']('redo');if(!_0x18db35||!_0x18db35['_createdBatches']['has'](_0x4bc5f2['batch']))return!0x1;let _0x12d1ae=!0x1;const _0x24272c=_0x339c10['plugins']['get']('Users')['me'],_0x18005f=_0x339c10['model']['document']['differ']['getChanges'](),_0x280d24=Array['from'](_0x339c10['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xae88a1,data:_0x4da108})=>{const {group:_0x585b2e,subType:_0x464dad,authorId:_0x158469}=_0x309b71(_0xae88a1);return'suggestion'==_0x585b2e&&'tablePaste'==_0x464dad&&_0x158469==_0x24272c['id']&&!_0x4da108['oldRange'];});for(const _0x43ccb0 of _0x18005f){if('insert'!=_0x43ccb0['type']||'tableCellSuggestion'!=_0x43ccb0['name']||0x1!=_0x43ccb0['length'])continue;const _0x562b47=_0x4bc5f2['createRange'](_0x43ccb0['position'],_0x43ccb0['position']['getShiftedBy'](0x1));if(!_0x280d24['find'](({data:_0x5a1f57})=>_0x5a1f57['newRange']['isEqual'](_0x562b47))){for(const {name:_0x17066c,data:_0xff7e2f}of _0x280d24)if(_0x562b47['containsRange'](_0xff7e2f['newRange'])){_0x4bc5f2['updateMarker'](_0x17066c,{'range':_0x562b47}),_0x12d1ae=!0x0;break;}}}return _0x12d1ae;}),_0x339c10['model']['document']['registerPostFixer'](_0x12eb49=>{let _0x57cbff=!0x1;const _0x58e5b6=_0x339c10['plugins']['get']('Users')['me'],_0x2464d3=_0x4b0531['getSuggestions']()['filter'](_0x5c47d8=>_0x5c47d8['isInContent']&&_0x5c47d8['author']==_0x58e5b6),_0x3316de=new Set(),_0x1ad72b=new Set();for(const _0xf4f393 of _0x2464d3)if('tablePaste'==_0xf4f393['subType'])for(const _0x1363f6 of _0xf4f393['getMarkers']()){const _0xb1a089=_0x1363f6['getRange']()['getContainedElement']();if(_0xb1a089){if(_0xb1a089['is']('element','tableCellSuggestion')&&wt(_0xb1a089)){_0xf4f393['removeMarker'](_0x1363f6['name']),_0x3316de['add'](_0xb1a089),_0x57cbff=!0x0;const _0x56bfac=_0xb1a089['nextSibling'],_0x309185=_0xb1a089['previousSibling'],_0x6ba1b2=_0x56bfac&&_0x56bfac['is']('element','tableCellSuggestion'),_0x53e612=_0x309185&&_0x309185['is']('element','tableCellSuggestion');_0x6ba1b2&&!_0x3316de['has'](_0x56bfac)&&_0x1ad72b['add'](_0x56bfac),_0x53e612&&!_0x3316de['has'](_0x309185)&&_0x1ad72b['add'](_0x309185);}else _0xb1a089['is']('element','paragraph')&&_0xb1a089['isEmpty']&&(_0xf4f393['removeMarker'](_0x1363f6['name']),_0x57cbff=!0x0);}}else{if('tablePasteCell'==_0xf4f393['subType']){if(!_0xf4f393['attributes']||!_0xf4f393['attributes']['tablePasteChainId'])continue;const _0x545c83=_0xf4f393['attributes']['markerAttributes'];if(_0x545c83&&Object['keys'](_0x545c83)['length'])continue;const _0x5c85e8=_0xf4f393['attributes']['tablePasteChainId'];let _0x2c44e0=!0x0,_0x5f36fa=!0x0;for(const _0x556a7b of _0x2464d3)if(_0x556a7b['subType']&&_0x556a7b['subType']['startsWith']('tablePaste')){if(!_0x556a7b['attributes']['tablePasteChainId']){_0x5f36fa=!0x1;break;}if(_0x556a7b['id']!=_0xf4f393['id']&&_0x556a7b['attributes']['tablePasteChainId']==_0x5c85e8){_0x2c44e0=!0x1;break;}}_0x5f36fa&&_0x2c44e0&&(_0xf4f393['removeMarkers'](),_0x57cbff=!0x0);}}for(const _0x4053d2 of _0x3316de)_0x12eb49['remove'](_0x4053d2);for(const _0x433040 of _0x1ad72b)_0x12eb49['unwrap'](_0x433040);return _0x57cbff;}),_0x339c10['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1a1e39=>_0x462afa(_0x1a1e39),'converterPriority':'high'}),_0x339c10['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36c878,_0x40f540)=>_0x40f540['options']['showSuggestionHighlights']?_0x462afa(_0x36c878,!0x1):null,'converterPriority':'high'});const _0x58a0a3=_0x339c10['editing']['view'];this['listenTo'](_0x58a0a3['document'],'clipboardOutput',(_0x38ab4e,_0x22adc4)=>{const _0x37285c=[];for(const _0x42c4bc of _0x58a0a3['createRangeIn'](_0x22adc4['content'])['getItems']())_0x42c4bc['is']('element','suggestion-td')&&_0x37285c['push'](_0x42c4bc);_0x58a0a3['change'](_0x374d92=>{for(const _0x8d2025 of _0x37285c)_0x374d92['move'](_0x374d92['createRangeIn'](_0x8d2025),_0x374d92['createPositionBefore'](_0x8d2025)),_0x374d92['remove'](_0x8d2025);});});}}function wt(_0x13dec2){if(_0x13dec2['isEmpty'])return!0x0;const _0x4a8f18=_0x13dec2['getChild'](0x0);return _0x4a8f18['is']('element','paragraph')&&_0x4a8f18['isEmpty'];}function Bt(_0xbe1f1e,_0x1f070f={},_0x411b2b){for(const {isAnchor:_0x225ddd,cellHeight:_0x356ba8,cellWidth:_0x2581af}of _0x411b2b['createTableWalker'](_0xbe1f1e,{'includeAllSlots':!0x0,..._0x1f070f}))if(!_0x225ddd||0x1!=_0x356ba8||0x1!=_0x2581af)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37ea7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37ea7b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37ea7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37ea7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37ea7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37ea7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37ea7b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1c619c,_0xd8723e){const _0xdd5dc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23e097=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114a12=_0xd8723e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cc4ba=_0x23e097['getColumnGroupElement'](_0x114a12);let _0xf48c22=_0x3cc4ba?_0x23e097['getTableColumnsWidths'](_0x3cc4ba):null,_0x5714a2=_0x114a12['getAttribute']('tableWidth')||null;const _0x301271=_0xd8723e['tableWidth']||_0x5714a2,_0x4753dd=_0xd8723e['columnWidths']||_0xf48c22,_0x1f43a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x14d40e of _0xdd5dc8['getSuggestions']()){const _0x34fa5d=_0x14d40e['getContainedElement']();if('resizeTable'===_0x14d40e['subType']&&_0x34fa5d===_0x114a12){_0x14d40e['author']!==_0x1f43a0&&_0x14d40e['discard']();const _0x129bb7=_0x14d40e['data']['commandParams'];_0x5714a2=_0x129bb7[0x0]['tableWidth'],_0xf48c22=_0x129bb7[0x0]['columnWidths'];break;}}_0x1c619c({'table':_0x114a12,'tableWidth':_0x301271,'columnWidths':_0x4753dd}),_0xdd5dc8['markBlockFormat'](_0x114a12,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5714a2,'columnWidths':_0xf48c22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1902ce){if('formatBlock'!=_0x1902ce['type']&&'formatInline'!=_0x1902ce['type'])return;const {data:_0x5c8b85}=_0x1902ce;if(_0x5c8b85&&'resizeTable'===_0x5c8b85['formatGroupId']){const _0x165875='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x165875)};}}}class TrackChangesTemplate extends _0x3cecf3{['afterInit'](){const _0x291613=this['editor'];_0x291613['plugins']['has']('Template')&&_0x291613['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3cecf3{['afterInit'](){const _0x4fa97e=this['editor'];if(!_0x4fa97e['commands']['get']('insertTableOfContents'))return;_0x4fa97e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1069b3=_0x4fa97e['plugins']['get']('TrackChangesEditing'),_0x323d82=_0x4fa97e['locale'];_0x1069b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x141a04=>Tt(_0x323d82,'ELEMENT_TABLE_OF_CONTENTS',_0x141a04));}}class TrackChangesTitle extends _0x3cecf3{['afterInit'](){const _0x1dc373=this['editor'];if(!_0x1dc373['plugins']['has']('Title'))return;_0x1dc373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x1dc373['locale'],'ELEMENT_TITLE')),_0x1dc373['model']['document']['registerPostFixer'](_0x1cb2e4=>{let _0x50e1fc=!0x1;const _0x1b3334=Array['from'](_0x1dc373['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x544206,data:_0x5a3823}of _0x1b3334){const {group:_0xf17683}=_0x309b71(_0x544206);if('suggestion'!==_0xf17683||!_0x5a3823['newRange'])continue;const _0x41a05e=_0x5a3823['newRange'],_0x70a6db=_0x41a05e['end']['nodeBefore'];if(!_0x70a6db||!_0x70a6db['is']('element','title-content'))continue;if(!_0x41a05e['start']['isTouching'](_0x41a05e['end']))continue;const _0xa5f904=_0x1dc373['model']['schema']['getNearestSelectionRange'](_0x41a05e['end'],'forward');if(_0xa5f904&&_0xa5f904['isCollapsed']){const _0x2570d8=_0x1cb2e4['createRange'](_0x41a05e['start'],_0xa5f904['start']);_0x2570d8['isEqual'](_0x41a05e)||(_0x1cb2e4['updateMarker'](_0x544206,{'range':_0x2570d8}),_0x50e1fc=!0x0);}_0x50e1fc||(_0x1cb2e4['removeMarker'](_0x544206),_0x50e1fc=!0x0);}return _0x50e1fc;});}}class TrackChangesUploadcare extends _0x3cecf3{['afterInit'](){const _0x7bbfcc=this['editor'],_0x38ec20=_0x7bbfcc['plugins']['get']('TrackChangesEditing');_0x7bbfcc['plugins']['has']('Uploadcare')&&(_0x38ec20['enableCommand']('uploadcare'),_0x7bbfcc['plugins']['has']('UploadcareImageEdit')&&(_0x38ec20['enableCommand']('uploadcareImageEdit'),_0x38ec20['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x38ec20['descriptionFactory']['registerDescriptionCallback'](_0x3b0ea5=>{if('attribute'!=_0x3b0ea5['type'])return;const {data:_0x9b9716}=_0x3b0ea5;return _0x9b9716&&'uploadcareImageId'==_0x9b9716['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3cecf3{['afterInit'](){const _0x2ec2a4=this['editor'],_0x1b7912=_0x2ec2a4['plugins']['get']('TrackChangesEditing');_0x2ec2a4['plugins']['has']('UndoEditing')&&(_0x1b7912['enableCommand']('undo'),_0x1b7912['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x50c485=this['editor'];if(!_0x50c485['plugins']['has']('TableCaptionEditing'))return;_0x50c485['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3cecf3{['tableProperties'];['tableCellProperties'];constructor(_0x252b13){super(_0x252b13),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 _0x11d7a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18f26e of this['tableProperties'])_0x11d7a4['enableCommand'](_0x18f26e,(_0x1570e7,_0x1efa55)=>{const _0x5a7a7a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18f26e,[_0x5a7a7a],this['tableProperties'],'tableProperties',_0x1570e7,_0x1efa55);});_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11d7a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e9420,_0x40fc62)=>this['handleDiscardAction'](this['tableProperties'],_0x2e9420,_0x40fc62)),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x132751 of this['tableCellProperties'])this['editor']['commands']['get'](_0x132751)&&_0x11d7a4['enableCommand'](_0x132751,(_0x396454,_0x3c8b5f)=>{const _0x5b4915=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x132751,_0x5b4915,this['tableCellProperties'],'tableCellProperties',_0x396454,_0x3c8b5f);});_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11d7a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xeb31cd,_0x5eba73)=>this['handleDiscardAction'](this['tableCellProperties'],_0xeb31cd,_0x5eba73)),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x11d7a4['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x11d7a4['descriptionFactory']['registerDescriptionCallback'](_0x2e7eaf=>this['handleSuggestionDescription'](_0x2e7eaf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2c75e7,_0x124c04,_0x1d2f06,_0x22d12f,_0x13338f,_0x2f9edf){const _0x5b3fcc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f9edf['batch'],()=>{for(const _0x14d7ec of _0x124c04){if(this['_getSuggestion'](_0x14d7ec,_0x22d12f))_0x13338f(_0x2f9edf);else{const _0x2f47ad={};for(const _0x507f9b of _0x1d2f06){const _0x329969=_0x14d7ec['getAttribute'](_0x507f9b);void 0x0!==_0x329969&&(_0x2f47ad[_0x507f9b]=_0x329969);}_0x13338f(_0x2f9edf),_0x5b3fcc['markBlockFormat'](_0x14d7ec,{'commandParams':[_0x2f47ad]},[],_0x22d12f);}}});}['handleDiscardAction'](_0x4d9c1a,_0x576ae0,_0x4ed4da){const _0x23d8e8=_0x576ae0[0x0]['start']['nodeAfter'],_0xb9ca99=_0x4ed4da['commandParams'][0x0];this['editor']['model']['change'](_0x6da834=>{for(const _0x3f83f9 of _0x4d9c1a)void 0x0!==_0xb9ca99[_0x3f83f9]?_0x6da834['setAttribute'](_0x3f83f9,_0xb9ca99[_0x3f83f9],_0x23d8e8):_0x6da834['removeAttribute'](_0x3f83f9,_0x23d8e8);});}['handleSuggestionDescription'](_0xfa167e){if(_0xfa167e['data'])switch(_0xfa167e['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x49fb23,_0x5e2df6){const _0x4019ef=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53c3d8 of _0x4019ef['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b23f8=_0x53c3d8['getContainedElement']();if(_0x53c3d8['subType']===_0x5e2df6&&_0x1b23f8===_0x49fb23)return _0x53c3d8;}return null;}['_registerTablePropertiesAttributes'](){const _0x55b632=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4400a9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x593922 of _0x4400a9){const _0x309539=_0x593922['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x55b632['descriptionFactory']['registerAttributeLabel'](_0x593922,Tt(this['editor']['locale'],'FORMAT_'+_0x309539));}}}class TrackChangesLineHeight extends _0x3cecf3{['afterInit'](){const _0x4ab7a7=this['editor'];if(!_0x4ab7a7['plugins']['has']('LineHeight'))return;const _0x4d0b35=_0x4ab7a7['plugins']['get']('TrackChangesEditing'),_0x2224d1=_0x4ab7a7['locale'];_0x4d0b35['enableDefaultAttributesIntegration']('lineHeight'),_0x4d0b35['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x2224d1,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x3cecf3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3aec4d,_0x3a1f76,_0x519d42,_0x24243d,_0x261f31,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a3f65){super(_0x2a3f65),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x419538,_0x38755d,_0x344549,_0x4d6230)=>{this['_model']['change'](()=>{for(const _0x53b2f2 of[..._0x4d6230,..._0x344549])this['_model']['markers']['has'](_0x53b2f2)&&_0x2a3f65['editing']['reconvertMarker'](_0x53b2f2);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a3f65['plugins']['get'](_0x3aec4d),this['_suggestionsConversion']=_0x2a3f65['plugins']['get'](_0x3a1f76),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2a3f65['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a3f65['config']['get']('trackChanges.trackFormatChanges'),_0x2a3f65['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a3f65['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x2a3f65,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57ab58=this['editor'];_0x57ab58['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x125502,{writer:_0x297183})=>{let _0x11be73='suggestion:'+_0x125502['getAttribute']('suggestion-type')+':'+_0x125502['getAttribute']('id');return _0x125502['getAttribute']('marker-count')&&(_0x11be73+=':'+_0x125502['getAttribute']('marker-count')),_0x297183['createElement']('$marker',{'data-name':_0x11be73});}}),_0x57ab58['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x57ab58['model']['document']['registerPostFixer'](_0x252ad7=>{let _0x4f172f=!0x1;const _0x4a8840=Array['from'](_0x57ab58['model']['document']['differ']['getChangedMarkers']()),_0x3c43ac=new Set();for(const {name:_0x524120,data:_0x251dd7}of _0x4a8840){const {group:_0xe9fa05,type:_0x472ed1,subType:_0x45ffe2,id:_0x28fc94}=_0x309b71(_0x524120);if('suggestion'!==_0xe9fa05)continue;const _0x2471a1=_0x45ffe2?'suggestion:'+_0x472ed1+':'+_0x45ffe2+':'+_0x28fc94:'suggestion:'+_0x472ed1+':'+_0x28fc94,_0x19f00d=_0x57ab58['model']['markers']['getMarkersGroup'](_0x2471a1),_0x4e5f67=_0x57ab58['model']['markers']['get'](_0x524120),_0x4e3a2f=this['_suggestions']['get'](_0x28fc94);if(null!=_0x251dd7['newRange']){'formatInline'==_0x472ed1&&(_0x4f172f=_0x4f172f||xt(_0x251dd7['newRange'],_0x524120,_0x252ad7,_0x57ab58['model']['schema']));const _0x596fbb='attribute'==_0x472ed1&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x45ffe2)),_0x42a324='attribute'==_0x472ed1&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x45ffe2));if(_0x251dd7['newRange']['isCollapsed']||'$graveyard'==_0x251dd7['newRange']['root']['rootName']||'formatBlock'==_0x472ed1&&!Ut(_0x251dd7['newRange'])||_0x596fbb&&!Ut(_0x251dd7['newRange'])||_0x42a324&&Gt(_0x251dd7['newRange'])||'deletion'==_0x472ed1&&Gt(_0x251dd7['newRange'])||_0x4e5f67&&Ht(_0x4e5f67,_0x19f00d))_0x252ad7['removeMarker'](_0x524120),_0x4f172f=!0x0;else{if(!_0x4e3a2f||!_0x4e3a2f['isInContent'])continue;if(_0x251dd7['newRange']&&_0x251dd7['oldRange']&&_0x251dd7['newRange']['isEqual'](_0x251dd7['oldRange']))continue;_0x3c43ac['add'](_0x4e3a2f);}}}return _0x3c43ac['size']>0x0&&(_0x4f172f=!!this['_joinWithAdjacentSuggestions'](_0x3c43ac)||_0x4f172f),_0x4f172f;}),_0x57ab58['model']['document']['registerPostFixer'](_0x3ff121=>{let _0x4f0212=!0x1;for(const _0x46011c of _0x57ab58['model']['document']['differ']['getChanges']())if('insert'==_0x46011c['type'])for(const _0x381a5e of this['_suggestions']['values']()){if(_0x381a5e['isMultiRange']||!_0x381a5e['isInContent'])continue;const _0x5d90f1='formatBlock'==_0x381a5e['type'],_0x48a3f4=this['_getAttributeKey'](_0x381a5e),_0x10c204=_0x48a3f4&&this['_suggestionsConversion']['isBlockAttribute'](_0x48a3f4);if(!_0x5d90f1&&!_0x10c204)continue;const _0x437dc8=_0x381a5e['getFirstRange']();if(_0x437dc8['start']['parent']!=_0x437dc8['end']['parent']&&!_0x437dc8['end']['isAtEnd']){const _0x55b640=_0x57ab58['model']['createPositionAt'](_0x437dc8['start']['nodeAfter'],'end'),_0x1ebf90=_0x57ab58['model']['createRange'](_0x437dc8['start'],_0x55b640);_0x3ff121['updateMarker'](_0x381a5e['getFirstMarker'](),{'range':_0x1ebf90}),_0x4f0212=!0x0;}}return _0x4f0212;}),_0x57ab58['model']['document']['registerPostFixer'](_0x241e42=>this['_processAttributeChanges'](_0x241e42)),_0x57ab58['model']['document']['registerPostFixer'](_0x3e5cf2=>!_0x3e5cf2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e5cf2)),_0x57ab58['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x57ab58['model']['document']['on']('change:data',(_0x73ce26,_0x566ad9)=>{if(!_0x566ad9['isLocal']||_0x566ad9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1bffc7=_0x57ab58['model']['document']['differ']['getChanges']();if(0x0==_0x1bffc7['length'])return;const _0x269186=[],_0x5ec425=_0x1bffc7['filter'](_0x1de096=>'attribute'==_0x1de096['type']),_0x418c38=_0x1bffc7['filter'](_0x89601e=>'insert'==_0x89601e['type']&&'$text'!=_0x89601e['name']);for(const _0x4b8bc6 of _0x5ec425)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8bc6['attributeKey'])&&_0x269186['push']({'key':_0x4b8bc6['attributeKey'],'newValue':_0x4b8bc6['attributeNewValue'],'oldValue':_0x4b8bc6['attributeOldValue'],'range':$t(_0x4b8bc6['range'],_0x57ab58['model'])});for(const _0x1a64e7 of _0x418c38){if('rename'!=_0x1a64e7['action']&&'refresh'!=_0x1a64e7['action'])continue;const _0x280d79=Vt(_0x1a64e7['position']['nodeAfter'],_0x57ab58['model']),_0x1bacac=_0x1a64e7['before'];'rename'==_0x1a64e7['action']&&_0x269186['push']({'key':Ft,'newValue':_0x1a64e7['name'],'oldValue':_0x1bacac['name'],'range':_0x280d79});for(const [_0x4ede35,_0x463728]of _0x1bacac['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4ede35))continue;const _0x4ab409=_0x1a64e7['attributes']['get'](_0x4ede35);_0x463728!==_0x4ab409&&_0x269186['push']({'key':_0x4ede35,'newValue':_0x4ab409,'oldValue':_0x463728,'range':_0x280d79});}for(const [_0x56081a,_0x2d6575]of _0x1a64e7['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x56081a)&&(_0x1bacac['attributes']['has'](_0x56081a)||_0x269186['push']({'key':_0x56081a,'newValue':_0x2d6575,'oldValue':null,'range':_0x280d79}));}0x0!=_0x269186['length']&&_0x57ab58['model']['enqueueChange'](_0x566ad9,_0x569a6b=>{const _0x114371=_0x15c67d();for(const {range:_0x3f2acc,key:_0x4d00b1,oldValue:_0x4637ee,newValue:_0x3d4fa4}of _0x269186)this['markAttributeChange'](_0x3f2acc,_0x4d00b1,_0x4637ee,_0x3d4fa4,{'groupId':_0x114371});this['_reduceExistingSuggestions'](_0x569a6b,_0x269186);});},{'priority':'lowest'}),_0x57ab58['model']['markers']['on']('update:suggestion',(_0x20a3bf,_0x78a615,_0x2f8090)=>{if(null==_0x2f8090){const {id:_0x36de5b}=_0x309b71(_0x78a615['name']),_0xd435c2=this['_suggestions']['get'](_0x36de5b);_0xd435c2&&_0xd435c2['addMarkerName'](_0x78a615['name']);}}),_0x57ab58['model']['document']['on']('change:data',()=>{const _0x5e40db=Array['from'](_0x57ab58['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c1a6f=>'suggestion'===_0x309b71(_0x4c1a6f['name'])['group']);if(0x0===_0x5e40db['length'])return;_0x5e40db['sort']((_0x4d1eee,_0x206ce1)=>{const _0x43e1fe=_0x4d1eee['data']['oldRange'],_0x166ad1=_0x206ce1['data']['oldRange'];return null===_0x43e1fe&&null===_0x166ad1?0x0:null===_0x43e1fe&&null!==_0x166ad1?-0x1:null!==_0x43e1fe&&null===_0x166ad1?0x1:_0x43e1fe['start']['isBefore'](_0x166ad1['start'])?-0x1:0x1;});const _0xd44101=new Set(),_0x29ebd8=new Set();for(const {name:_0x355554,data:_0x51d6a9}of _0x5e40db){const {id:_0x24aebb}=_0x309b71(_0x355554);if(null===_0x51d6a9['oldRange']){const _0x46517e=this['_handleNewSuggestionMarker'](_0x355554);_0x29ebd8['add'](_0x46517e);}else{const _0x42243c=this['_suggestions']['get'](_0x24aebb);null!==_0x51d6a9['newRange']||_0x42243c['isInContent']?(_0xd44101['add'](_0x42243c['head']),_0x29ebd8['add'](_0x42243c)):this['_removeSuggestion'](_0x42243c);}}_0x29ebd8['size']>0x0&&this['_refreshSuggestionsChain'](_0x29ebd8);for(const _0x3ae099 of _0xd44101)this['fire']('suggestionChanged',_0x3ae099);}),_0x57ab58['model']['on']('applyOperation',(_0x5ac67c,_0x1b7fc0)=>{const _0xaeba05=_0x1b7fc0[0x0];if(!this['_suggestions']['size'])return;if(!_0xaeba05['isDocumentOperation'])return;if(_0xaeba05['batch']['isUndo']||!_0xaeba05['batch']['isLocal'])return;let _0x5c7e49,_0x6585b9;switch(_0xaeba05['type']){case'insert':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['position']),_0x6585b9=_0x5c7e49['getShiftedBy'](_0xaeba05['howMany']);break;case'split':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['splitPosition']),_0x6585b9=_0x57ab58['model']['createPositionAt'](_0xaeba05['moveTargetPosition']);break;case'move':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['targetPosition']),_0x6585b9=_0x5c7e49['getShiftedBy'](_0xaeba05['howMany']);break;default:return;}const _0x21c182=_0x57ab58['model']['createRange'](_0x5c7e49,_0x6585b9);_0x57ab58['model']['change'](()=>{for(const {suggestion:_0x30574e,meta:_0x44e47d}of this['_findSuggestions'](_0x21c182)){if(_0x30574e['isMultiRange'])continue;if('formatInline'==_0x30574e['type'])continue;const _0x4d695e=this['_getAttributeKey'](_0x30574e);if(_0x4d695e&&this['_suggestionsConversion']['isBlockAttribute'](_0x4d695e)&&'split'!=_0xaeba05['type'])continue;const _0x1e622c=_0x30574e['data']&&_0x30574e['data']['multipleBlocks'];('formatBlock'!=_0x30574e['type']||'split'==_0xaeba05['type']&&!_0x1e622c)&&(_0x44e47d['containsRangeInObject']||'insertion'==_0x30574e['type']&&_0x44e47d['isOwn']||_0x30574e['getFirstRange']()['containsRange'](_0x21c182)&&this['_breakSuggestionMarker'](_0x30574e,_0x5c7e49,_0x6585b9));}});},{'priority':'lowest'}),_0x57ab58['model']['on']('deleteContent',(_0x309096,_0x28d7fc)=>{const _0x3079b6=_0x28d7fc[0x0],_0x3d3955=_0x28d7fc[0x1];if(_0x3d3955&&_0x3d3955['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3079b6['isCollapsed'])return;const _0x216fbf=_0x57ab58['model']['schema'],{start:_0x517794,end:_0x10a50f}=_0x3079b6['getFirstRange'](),_0x22375a=_0x517794['nodeAfter']&&_0x216fbf['isLimit'](_0x517794['nodeAfter'])?null:_0x216fbf['getNearestSelectionRange'](_0x517794,'forward'),_0x4771a1=_0x10a50f['nodeBefore']&&_0x216fbf['isLimit'](_0x10a50f['nodeBefore'])?null:_0x216fbf['getNearestSelectionRange'](_0x10a50f,'backward'),_0x5a0d86=_0x57ab58['model']['createRange'](_0x22375a?_0x22375a['start']:_0x517794,_0x4771a1?_0x4771a1['end']:_0x10a50f);_0x57ab58['model']['change'](_0x19544c=>{this['markDeletion'](_0x5a0d86);const _0x209204=_0x57ab58['model']['schema']['getNearestSelectionRange'](_0x5a0d86['start']);_0x3079b6['is']('documentSelection')?_0x19544c['setSelection'](_0x209204):_0x3079b6['setTo'](_0x209204);}),_0x309096['stop']();},{'priority':_0x4f16be['normal']+0xa}),_0x57ab58['model']['on']('insertContent',(_0x4fafcd,_0x2e905d)=>{const _0x198b52=_0x2e905d[_0x2e905d['length']-0x1];_0x198b52&&_0x198b52['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x57ab58['model']['change'](()=>{let _0x1d477f=_0x57ab58['model']['insertContent'](_0x2e905d[0x0],_0x2e905d[0x1],_0x2e905d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d477f)return;_0x4fafcd['return']=_0x1d477f['clone']();const _0xfd80bd=_0x1d477f['end']['nodeBefore'],_0x126e89=_0x57ab58['model']['schema'];_0xfd80bd&&_0x126e89['isBlock'](_0xfd80bd)&&!_0x126e89['isObject'](_0xfd80bd)&&(_0x1d477f=_0x57ab58['model']['createRange'](_0x1d477f['start'],_0x57ab58['model']['createPositionAt'](_0xfd80bd,'end'))),this['markInsertion'](_0x1d477f);}),_0x4fafcd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56dc43=new AcceptSuggestionCommand(_0x57ab58,this['_suggestions']);_0x57ab58['commands']['add']('acceptSuggestion',_0x56dc43),this['enableCommand']('acceptSuggestion');const _0x53f141=new DiscardSuggestionCommand(_0x57ab58,this['_suggestions']);_0x57ab58['commands']['add']('discardSuggestion',_0x53f141),this['enableCommand']('discardSuggestion'),_0x57ab58['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x57ab58,_0x56dc43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x57ab58['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x57ab58,_0x53f141,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x57ab58['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x57ab58,_0x56dc43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x57ab58['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x57ab58,_0x53f141,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x542a01=_0x57ab58['plugins']['get'](_0x3aec4d);this['listenTo'](_0x542a01,'addComment',(_0x18303d,{threadId:_0x1cfbb2})=>{const _0x4a4ee7=this['_suggestions']['get'](_0x1cfbb2);_0x4a4ee7&&_0x4a4ee7['commentThread']&&0x1===_0x4a4ee7['commentThread']['length']&&this['_updateSuggestionData'](_0x1cfbb2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x542a01,'removeComment',(_0x247958,{threadId:_0x18aac8})=>{const _0x51cdc5=this['_suggestions']['get'](_0x18aac8);_0x51cdc5&&_0x51cdc5['commentThread']&&!_0x51cdc5['commentThread']['length']&&this['_updateSuggestionData'](_0x18aac8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e37b0){const _0x221869=_0x3bb245([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x29b000=0x3d8d0df,_0x388287=0x3df5aff^_0x29b000,_0x4c8ca8=window[_0x3bb245([0x44,0x61,0x74,0x65])][_0x3bb245([0x6e,0x6f,0x77])](),_0x5086a6=_0x2e37b0[_0x3bb245([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x191106=new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6446=>{_0x5086a6[_0x3bb245([0x6f,0x6e,0x63,0x65])](_0x3bb245([0x72,0x65,0x61,0x64,0x79]),_0x2e6446);}),_0x21f007={[_0x3bb245([0x6b,0x74,0x79])]:_0x3bb245([0x45,0x43]),[_0x3bb245([0x75,0x73,0x65])]:_0x3bb245([0x73,0x69,0x67]),[_0x3bb245([0x63,0x72,0x76])]:_0x3bb245([0x50,0x2d,0x32,0x35,0x36]),[_0x3bb245([0x78])]:_0x3bb245([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3bb245([0x79])]:_0x3bb245([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3bb245([0x61,0x6c,0x67])]:_0x3bb245([0x45,0x53,0x32,0x35,0x36])},_0x21dacc=_0x5086a6[_0x3bb245([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bb245([0x67,0x65,0x74])](_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fc5dc(){let _0x422898,_0x29af46=null,_0x3e2119=null;try{if(_0x21dacc==_0x3bb245([0x47,0x50,0x4c]))return _0x3bb245([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x422898=_0x2e25fe(),!_0x422898)return _0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x422898[_0x3bb245([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e2119=_0x112107(_0x422898[_0x3bb245([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x422898[_0x3bb245([0x6a,0x74,0x69])])),await _0x3ea31b()?_0x35e125()?_0x2a74f0()?_0x3bb245([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4519bf()?(_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb245([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29af46=_0x217e1c(_0x3bb245([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa70cd9()):_0x3bb245([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb245([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a74f0(){const _0xc175d0=[_0x3bb245([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bb245([0x74,0x72,0x69,0x61,0x6c])][_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c8ca8/0x3e8:0xe10*_0x388287;return _0x422898[_0x3bb245([0x65,0x78,0x70])]<_0xc175d0;}function _0x35e125(){const _0x3f954c=_0x422898[_0x3bb245([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f954c)return!0x1;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x2a])))return!0x0;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x54,0x43])))return!0x0;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x52,0x54,0x43]))){if(_0x416876())return!0x0;if(_0x2d4051()||_0x33019e())return!0x0;}return!0x1;}function _0x4519bf(){const _0x51fc8e=_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51fc8e||0x0==_0x51fc8e[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50d84d}=new URL(window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51fc8e[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50d84d))return!0x0;const _0x27c787=_0x50d84d[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e]));return _0x51fc8e[_0x3bb245([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2453bf=>_0x2453bf[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x2a])))[_0x3bb245([0x6d,0x61,0x70])](_0x78ee2f=>_0x78ee2f[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e])))[_0x3bb245([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x554450=>_0x554450[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27c787[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb245([0x6d,0x61,0x70])](_0x2e37de=>Array(_0x27c787[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e37de[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb245([0x66,0x69,0x6c,0x6c])](_0x2e37de[0x0]===_0x3bb245([0x2a])?_0x3bb245([0x2a]):'')[_0x3bb245([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e37de))[_0x3bb245([0x73,0x6f,0x6d,0x65])](_0x1b627d=>_0x27c787[_0x3bb245([0x65,0x76,0x65,0x72,0x79])]((_0x5a95be,_0x205f50)=>_0x1b627d[_0x205f50]===_0x5a95be||_0x1b627d[_0x205f50]===_0x3bb245([0x2a])));}function _0xa70cd9(){return _0x29af46&&_0x3e2119?new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x125921,_0x597644)=>{_0x29af46[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x125921,_0x597644),_0x3e2119[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x5d8775=>{_0x5d8775!=_0x3bb245([0x56,0x61,0x6c,0x69,0x64])&&_0x125921(_0x5d8775);},_0x597644);}):_0x29af46||_0x3e2119||_0x3bb245([0x56,0x61,0x6c,0x69,0x64]);}}function _0x112107(_0x51b0b0,_0x2b63c9){return new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x253a1b=>{if(_0x1986f1())return _0x253a1b(_0x3bb245([0x56,0x61,0x6c,0x69,0x64]));_0x1bc02e(),_0x5086a6[_0x3bb245([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf50faa=!0x1;const _0x4c332a=_0x15c67d();function _0x7308f3(_0x459276){return!!_0x459276&&(typeof _0x459276===_0x3bb245([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x459276===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x459276[_0x3bb245([0x74,0x68,0x65,0x6e])]===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x459276[_0x3bb245([0x63,0x61,0x74,0x63,0x68])]===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ee97f(_0x38d173){_0x2f8854(_0x38d173)[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x131fec=>{if(!_0x131fec||_0x131fec[_0x3bb245([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bb245([0x6f,0x6b]))return _0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46ab2b(_0x4f9cfb(_0x4c332a+_0x2b63c9))!=_0x131fec[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb245([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x128a9d=>(_0x2fa576(),_0x128a9d),()=>{const _0x1366a4=_0x247f45();return null==_0x1366a4?(_0x2fa576(),_0x3bb245([0x56,0x61,0x6c,0x69,0x64])):_0x3bb245(_0x4c8ca8-_0x1366a4>(0x27d454df^_0x29b000)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x253a1b)[_0x3bb245([0x63,0x61,0x74,0x63,0x68])](()=>{_0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a6f37=0x3ee3e5f^_0x29b000;function _0x2fa576(){const _0x22e80c=_0x3bb245([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ab2b(_0x4f9cfb(_0x51b0b0)),_0x14fdcd=_0x20978a(_0x46ab2b(window[_0x3bb245([0x4d,0x61,0x74,0x68])][_0x3bb245([0x63,0x65,0x69,0x6c])](_0x4c8ca8/_0x3a6f37)));window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb245([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e80c,_0x14fdcd);}function _0x247f45(){const _0x1f8635=_0x3bb245([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ab2b(_0x4f9cfb(_0x51b0b0)),_0x14fbb9=window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb245([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f8635);return _0x14fbb9?window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20978a(_0x14fbb9),0x10)*_0x3a6f37:null;}function _0x2f8854(_0x4cf37b){return new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4b1e,_0x25ce92)=>{_0x4cf37b[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x3c4b1e,_0x25ce92),window[_0x3bb245([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25ce92,0x3d9041f^_0x29b000);});}}_0x5086a6[_0x3bb245([0x6f,0x6e])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4724d0,_0x13e7c6)=>{if(_0x13e7c6[0x0]!=_0x51b0b0)return _0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13e7c6[0x1]={..._0x13e7c6[0x1],[_0x3bb245([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c332a};},{[_0x3bb245([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb245([0x68,0x69,0x67,0x68])}),_0x5086a6[_0x3bb245([0x6f,0x6e])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34e764=>{_0x7308f3(_0x34e764[_0x3bb245([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf50faa=!0x0,_0x1ee97f(_0x34e764[_0x3bb245([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bb245([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb245([0x6c,0x6f,0x77])}),_0x191106[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>{_0xf50faa||_0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1986f1(){return _0x5086a6[_0x3bb245([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb245([0x76,0x69,0x65,0x77])][_0x3bb245([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bb245([0x61,0x75,0x74,0x6f]);}function _0x1bc02e(){_0x5086a6[_0x3bb245([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb245([0x76,0x69,0x65,0x77])][_0x3bb245([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb245([0x61,0x75,0x74,0x6f]);}}function _0x217e1c(_0x3b530e){const _0x508273=[new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e35a=>setTimeout(_0x35e35a,0x3d1ee13^_0x29b000)),_0x191106[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2210da=>{let _0x331c5b=0x0;_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x6f,0x6e])](_0x3bb245([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x286bd6,_0x3db4dd)=>{_0x3db4dd[0x0][_0x3bb245([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x331c5b++,_0x331c5b==(0x3d8d537^_0x29b000)&&(_0x2210da(),_0x286bd6[_0x3bb245([0x6f,0x66,0x66])]());});}))];return window[_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb245([0x72,0x61,0x63,0x65])](_0x508273)[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>_0x3b530e);}async function _0x37054b(){await _0x191106,_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34f4aa,_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34f4aa,_0x5086a6[_0x3bb245([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x416876(){return _0x4334f4(_0x3bb245([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f331c(_0x3bb245([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bb245([0x73,0x74,0x61,0x74,0x65])]==_0x3bb245([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d4051(){return _0x4334f4(_0x3bb245([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x33019e(){return _0x4334f4(_0x3bb245([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ff19c(_0x867cf4){const _0xd5afd7=_0xebf96c();_0x5086a6[_0xd5afd7]=_0x3bb245([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x867cf4,_0x867cf4!=_0x3bb245([0x56,0x61,0x6c,0x69,0x64])&&_0x37054b();}function _0xebf96c(){const _0xad3c1d=window[_0x3bb245([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bb245([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bb245([0x6e,0x6f,0x77])]())[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bb245([0x2e]),'');let _0x4d69c0=_0x3bb245([0x52]);for(let _0x115394=0x0;_0x115394<_0xad3c1d[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x115394+=0x2){let _0x491fdc=window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad3c1d[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x115394,_0x115394+0x2));_0x491fdc>=_0x221869[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x491fdc-=_0x221869[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d69c0+=_0x221869[_0x491fdc];}return _0x4d69c0;}function _0x2e25fe(){const _0x52c8dc=_0x21dacc[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e]));if(0x3!=_0x52c8dc[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f3924(_0x52c8dc[0x1]);function _0x4f3924(_0x3681d0){const _0x37bea8=_0x11bbfb(_0x3681d0);return _0x37bea8&&_0x256dde()?_0x37bea8:null;function _0x256dde(){const _0x5210ef=_0x37bea8[_0x3bb245([0x6a,0x74,0x69])],_0xafeacb=window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5210ef[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5210ef[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2864ec={..._0x37bea8,[_0x3bb245([0x6a,0x74,0x69])]:_0x5210ef[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5210ef[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2864ec[_0x3bb245([0x76,0x63])],_0x4f9cfb(_0x2864ec)==_0xafeacb;}}}async function _0x3ea31b(){let _0x9098f0=!0x0;try{const _0x2e914a=_0x21dacc[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e])),[_0x48949a,_0x51630e,_0x590375]=_0x2e914a;return _0x144911(_0x48949a),await _0xb53672(_0x48949a,_0x51630e,_0x590375),_0x9098f0;}catch{return!0x1;}function _0x144911(_0x514c1f){const _0x4d1e0c=_0x11bbfb(_0x514c1f);_0x4d1e0c&&_0x4d1e0c[_0x3bb245([0x61,0x6c,0x67])]==_0x3bb245([0x45,0x53,0x32,0x35,0x36])||(_0x9098f0=!0x1);}async function _0xb53672(_0x4eaf3b,_0x5f3909,_0x2c3dfb){const _0x5799c3=window[_0x3bb245([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bb245([0x66,0x72,0x6f,0x6d])](_0x339cc2(_0x2c3dfb),_0x34e91b=>_0x34e91b[_0x3bb245([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x364ff7=new window[(_0x3bb245([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bb245([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eaf3b+_0x3bb245([0x2e])+_0x5f3909),_0x47148b=window[_0x3bb245([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bb245([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47148b)return;const _0x54d1eb=await _0x47148b[_0x3bb245([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bb245([0x6a,0x77,0x6b]),_0x21f007,{[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x45,0x43,0x44,0x53,0x41]),[_0x3bb245([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bb245([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47148b[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x45,0x43,0x44,0x53,0x41]),[_0x3bb245([0x68,0x61,0x73,0x68])]:{[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54d1eb,_0x5799c3,_0x364ff7)||(_0x9098f0=!0x1);}}function _0x11bbfb(_0x51e299){return _0x51e299[_0x3bb245([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bb245([0x65,0x79]))?JSON[_0x3bb245([0x70,0x61,0x72,0x73,0x65])](_0x339cc2(_0x51e299)):null;}function _0x339cc2(_0x934456){return window[_0x3bb245([0x61,0x74,0x6f,0x62])](_0x934456[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bb245([0x2b]))[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bb245([0x2f])));}function _0x4f9cfb(_0x58364b){let _0x11540d=0x1505;function _0x30472a(_0x9b39de){for(let _0x95a26b=0x0;_0x95a26b<_0x9b39de[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x95a26b++){const _0x2e1ffe=_0x9b39de[_0x3bb245([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x95a26b);_0x11540d=(_0x11540d<<0x5)+_0x11540d+_0x2e1ffe,_0x11540d&=_0x11540d;}}function _0x29bff3(_0x1a7c82){Array[_0x3bb245([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a7c82)?_0x1a7c82[_0x3bb245([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29bff3):_0x1a7c82&&typeof _0x1a7c82==_0x3bb245([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bb245([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a7c82)[_0x3bb245([0x73,0x6f,0x72,0x74])]()[_0x3bb245([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x203473,_0x54ab84])=>{_0x30472a(_0x203473),_0x29bff3(_0x54ab84);}):_0x30472a(window[_0x3bb245([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a7c82));}return _0x29bff3(_0x58364b),_0x11540d>>>0x0;}function _0x46ab2b(_0x2231a3){return _0x2231a3[_0x3bb245([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bb245([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bb245([0x30]));}function _0x20978a(_0xdd03cb){return _0xdd03cb[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bb245([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bb245([0x6a,0x6f,0x69,0x6e])]('');}function _0x4334f4(_0x5c8acb){return _0x5086a6[_0x3bb245([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb245([0x68,0x61,0x73])](_0x5c8acb);}function _0x1f331c(_0x16382e){return _0x5086a6[_0x3bb245([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb245([0x67,0x65,0x74])](_0x16382e);}function _0x34f4aa(){}function _0x3bb245(_0x2b3901){return _0x2b3901['map'](_0x5ddf03=>String['fromCharCode'](_0x5ddf03))['join']('');}_0x3ff19c(await _0x3fc5dc());}(this);}set['adapter'](_0x3a26f7){if(this['_adapter'])throw new _0xf305a4('track-changes-adapter-already-set',this);this['_adapter']=_0x3a26f7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13b527=!0x1,toJSON:_0x365301=!0x1}={}){const _0x170abb=[];for(const _0x47324a of this['_suggestions']['values']())_0x13b527&&!_0x47324a['isInContent']||_0x170abb['push'](_0x47324a);return _0x365301?_0x170abb['map'](_0x39edde=>_0x39edde['toJSON']()):_0x170abb;}['getSuggestion'](_0x59c966){const _0x30b438=this['_suggestions']['get'](_0x59c966);if(!_0x30b438)throw new _0xf305a4('track-changes-suggestion-not-found',this);return _0x30b438;}['hasSuggestion'](_0x475734){return this['_suggestions']['has'](_0x475734);}['addSuggestionData'](_0x2a8bfc){const {authorId:_0x1bec2c,id:_0x1c7929,originalSuggestionId:_0x3475e5,attributes:_0x5f3414}=_0x2a8bfc,[_0x2000ce,_0x512864]=_0x2a8bfc['type']['split'](':'),_0x5943db=this['_suggestions']['get'](_0x1c7929)||this['_createSuggestion'](_0x2000ce,_0x512864,_0x1c7929,_0x1bec2c,_0x5f3414,_0x3475e5);if(this['_addThreadToSuggestion'](_0x5943db),this['_checkSuggestionCorrectness'](_0x5943db,_0x2000ce,_0x512864||null,_0x1bec2c),_0x5943db['createdAt']=_0x2a8bfc['createdAt'],_0x5943db['_isDataLoaded']=!0x0,_0x5f3414&&_0x5f3414['@external']){const _0x391002=_0x5f3414['@external'],_0x58b48=this['_getExternalAuthor'](_0x391002['authorName']);_0x5943db['authoredAt']=_0x391002['createdAt'],_0x5943db['author']=_0x58b48,_0x5943db['isExternal']=!0x0;}else _0x5943db['authoredAt']=_0x2a8bfc['createdAt'];switch(_0x2a8bfc['data']&&(_0x5943db['data']=_0x2a8bfc['data']),_0x2a8bfc['attributes']&&(_0x5943db['attributes']=_0x2a8bfc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5943db['_saved']=!0x0),this['_suggestionState']['get'](_0x5943db)){case'notReady':this['_suggestionState']['set'](_0x5943db,'dataReady');break;case'markerReady':_0x5943db['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5943db])),this['_refreshSuggestionsChain'](new Set([_0x5943db])),this['_suggestionState']['set'](_0x5943db,'ready'),this['fire']('suggestionLoaded',_0x5943db)):this['_suggestionState']['set'](_0x5943db,'removed');}return _0x5943db;}['acceptSuggestion'](_0x22d7dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c68e1 of _0x22d7dc['getAllAdjacentSuggestions']())_0x5c68e1['accept']();});});}['discardSuggestion'](_0x20f571){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e3fbd of _0x20f571['getAllAdjacentSuggestions']())_0x3e3fbd['discard']();});});}['enableCommand'](_0x2cf503,_0x16e4b1){const _0x41b3f1=this['editor']['commands']['get'](_0x2cf503);if(!_0x41b3f1)throw new _0xf305a4('track-changes-command-not-found',this,{'commandName':_0x2cf503});if(this['_enabledCommands']['has'](_0x41b3f1))throw new _0xf305a4('track-changes-enable-command-twice',this,{'commandName':_0x2cf503});this['_enabledCommands']['add'](_0x41b3f1),_0x16e4b1&&_0x41b3f1['on']('execute',(_0x53dc6c,_0x414201)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x414201['length']>0x0&&_0x414201[_0x414201['length']-0x1]&&_0x414201[_0x414201['length']-0x1]['forceDefaultExecution']?_0x414201['pop']():(_0x53dc6c['return']=_0x16e4b1((..._0xef78b5)=>_0x41b3f1['execute'](..._0xef78b5,{'forceDefaultExecution':!0x0}),..._0x414201),_0x53dc6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f640b){let _0x34e921,_0x1ba7a2;const _0x1ed160=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34e921=_0x4f640b();}catch(_0xafed7a){_0x1ba7a2=_0xafed7a;}return _0x1ed160||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ba7a2&&_0xf305a4['rethrowUnexpectedError'](_0x1ba7a2,this),_0x34e921;}['markInsertion'](_0x1383ca,_0x53c707=null,_0x31b2b1={}){if(_0x1383ca['isCollapsed'])return null;const _0x136a13=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x31b2b1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x313cb8,meta:_0x15781d}of this['_findSuggestions'](_0x1383ca,'insertion'))if(_0x15781d['isOwn']){if(!_0x15781d['isNextTo']){if(_0x15781d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x313cb8,_0x31b2b1))continue;return _0x313cb8;}if(zt(_0x313cb8,_0x31b2b1))return _0x313cb8;this['_breakSuggestionMarker'](_0x313cb8,_0x1383ca['start'],_0x1383ca['end']);break;}if(_0x53c707==_0x313cb8['subType']&&zt(_0x313cb8,_0x31b2b1)){const _0x3e0c97=_0x313cb8['getFirstRange']();return _0x3e0c97['start']['isEqual'](_0x1383ca['end'])?this['_setSuggestionRange'](_0x313cb8,this['_model']['createRange'](_0x1383ca['start'],_0x3e0c97['end'])):this['_setSuggestionRange'](_0x313cb8,this['_model']['createRange'](_0x3e0c97['start'],_0x1383ca['end'])),_0x313cb8;}}const _0x4fe533=_0x15c67d(),_0xc977ed=_0x136a13['id'],_0x3b045b=_0x53c707?'insertion:'+_0x53c707:'insertion',_0x25bb35=this['_setSuggestionData']({'id':_0x4fe533,'type':_0x3b045b,'createdAt':new Date(),'authorId':_0xc977ed,'attributes':_0x31b2b1});return this['_addSuggestionMarker'](_0x3b045b,_0x4fe533,_0xc977ed,_0x1383ca),_0x25bb35;}['markMultiRangeInsertion'](_0x502100,_0x2a45fb='multi',_0x5519c3={}){const _0xf0696a=this['editor']['plugins']['get']('Users')['me'],_0x47b428=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a45fb,'join');this['_trackingSessionId']&&(_0x5519c3['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e916f of this['getSuggestions']())if(_0x2e916f['author']['id']==_0xf0696a['id']&&'insertion'==_0x2e916f['type']&&_0x2e916f['subType']==_0x2a45fb&&zt(_0x2e916f,_0x5519c3)&&(_0x47b428(_0x2e916f['getRanges'](),_0x502100)||_0x47b428(_0x502100,_0x2e916f['getRanges']()))){for(const _0x119b83 of _0x502100)_0x2e916f['addRange'](_0x119b83);return _0x2e916f;}for(const {suggestion:_0x2c3df4,meta:_0x3e7024}of this['_findSuggestions'](_0x502100,'insertion')){if(!_0x3e7024['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3e7024['containsRangeInObject'])continue;if(!zt(_0x2c3df4,_0x5519c3))continue;let _0x48738c=!0x0;for(const _0x392ff1 of _0x2c3df4['getRanges']())for(const _0x4cbf96 of _0x502100)if(!_0x392ff1['containsRange'](_0x4cbf96)){_0x48738c=!0x1;break;}if(_0x48738c)return _0x2c3df4;}const _0x532902=_0x15c67d(),_0x26614f=_0xf0696a['id'],_0x195f43='insertion:'+_0x2a45fb,_0xdc428b=this['_setSuggestionData']({'id':_0x532902,'type':_0x195f43,'createdAt':new Date(),'authorId':_0x26614f,'attributes':_0x5519c3});for(const _0xd13a06 of _0x502100)this['_addSuggestionMarker'](_0x195f43,_0x532902,_0x26614f,_0xd13a06,Suggestion['getMultiRangeId']());return _0xdc428b;}['markInlineFormat'](_0x56c5de,_0x908347,_0x7e3052=null,_0x2b5db5={}){if(_0x7e3052=_0x7e3052||Pt(_0x908347),_0x56c5de['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2b5db5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cd10e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7e3052,'accept');return this['forceDefaultExecution'](()=>_0x3cd10e([_0x56c5de],_0x908347,_0x2b5db5)),null;}const _0x36581a=this['editor']['plugins']['get']('Users')['me'],_0x6b7553=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58f008,meta:_0xe8641}of this['_findSuggestions'](_0x56c5de,'insertion'))_0xe8641['isOwn']&&!_0xe8641['isInsideObject']&&_0x6b7553['push'](..._0x58f008['getRanges']());}const _0x5b71b4=function(_0x13a548,_0x4eb848){const _0x4d7cb5=[];for(const _0x2d0679 of _0x4eb848){const _0x34bef0=_0x13a548['getIntersection'](_0x2d0679);_0x34bef0&&_0x4d7cb5['push'](_0x34bef0);}return _0x4d7cb5;}(_0x56c5de,_0x6b7553),_0x461794=function(_0x295999,_0x517f00){const _0x35ba39=[_0x295999];for(const _0x46c818 of _0x517f00){let _0x2da771=0x0;for(;_0x2da771<_0x35ba39['length'];){const _0x4c05c1=_0x35ba39[_0x2da771]['getDifference'](_0x46c818);_0x35ba39['splice'](_0x2da771,0x1,..._0x4c05c1),_0x2da771+=_0x4c05c1['length'];}}return _0x35ba39;}(_0x56c5de,_0x6b7553);_0x5b71b4['length']&&this['_model']['change'](()=>{for(const _0x3e68f6 of _0x5b71b4){const _0x136da1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7e3052,'accept');this['forceDefaultExecution'](()=>_0x136da1([_0x3e68f6],_0x908347,_0x2b5db5));}});for(const _0x260a90 of _0x461794){let _0x1fc29d=null,_0x944571=_0x260a90['start'],_0x572149=_0x260a90['end'];for(const {suggestion:_0x1c834b,meta:_0x5b1e1d}of this['_findSuggestions'](_0x260a90,'formatInline')){if(!_0x5b1e1d['isOwn'])continue;if(_0x1c834b['subType']!=_0x7e3052)continue;if(!zt(_0x1c834b,_0x2b5db5))continue;const _0x14b2f3=_0x1c834b['getFirstRange']();if(_0x14b2f3['containsRange'](_0x260a90,!0x0))return null;_0x944571=_0x944571['isBefore'](_0x14b2f3['start'])?_0x944571:_0x14b2f3['start'],_0x572149=_0x572149['isAfter'](_0x14b2f3['end'])?_0x572149:_0x14b2f3['end'],_0x1fc29d?_0x14b2f3['start']['isBefore'](_0x1fc29d['getFirstRange']()['start'])?(_0x1fc29d['removeMarkers'](),_0x1fc29d=_0x1c834b):_0x1c834b['removeMarkers']():_0x1fc29d=_0x1c834b;}const _0x1bab8f=this['_model']['createRange'](_0x944571,_0x572149);if(_0x1fc29d)this['_setSuggestionRange'](_0x1fc29d,_0x1bab8f);else{const _0x2d7aa8=_0x15c67d(),_0x1f8d8a=_0x36581a['id'];this['_setSuggestionData']({'id':_0x2d7aa8,'type':'formatInline:'+_0x7e3052,'data':_0x908347,'createdAt':new Date(),'authorId':_0x1f8d8a,'attributes':_0x2b5db5}),this['_addSuggestionMarker']('formatInline:'+_0x7e3052,_0x2d7aa8,_0x1f8d8a,_0x1bab8f);}}return null;}['markBlockFormat'](_0x2524de,_0x56d7f8,_0x279c2a=[],_0x1ac745=null,_0x231eb8={}){_0x56d7f8['formatGroupId']||(_0x56d7f8['formatGroupId']=_0x56d7f8['commandName']),_0x56d7f8['multipleBlocks']=_0x2524de['is']('range'),_0x1ac745=_0x1ac745||Pt(_0x56d7f8);const _0x5c4f26=_0x279c2a['map'](_0x402d56=>Vt(_0x402d56,this['_model'])),_0x945a5e=_0x2524de['is']('range')?_0x2524de:Vt(_0x2524de,this['_model']);if(this['_trackingSessionId']&&(_0x231eb8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a2d7d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac745,'accept');return this['forceDefaultExecution'](()=>_0x5a2d7d([_0x945a5e],_0x56d7f8,_0x231eb8)),null;}_0x5c4f26['push'](_0x945a5e);let _0x4cd7c5=!0x0;for(const _0x5a2380 of _0x5c4f26)if(!this['_rangeIsInLocalUserInsertion'](_0x5a2380)){_0x4cd7c5=!0x1;break;}if(_0x4cd7c5&&'always'!==this['_trackFormatChanges']){const _0x59c369=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac745,'accept');return this['forceDefaultExecution'](()=>_0x59c369([_0x945a5e],_0x56d7f8,_0x231eb8)),null;}let _0xafec9e=null,_0x49ed32=_0x945a5e['start'],_0x59b49a=_0x945a5e['end'];for(const {suggestion:_0x2b9530,meta:_0x425ae2}of this['_findSuggestions'](_0x945a5e,'formatBlock')){if(!_0x425ae2['isOwn'])continue;if(_0x425ae2['isNextTo']||_0x425ae2['containsRangeInObject']||_0x425ae2['isInsideObject'])continue;if(_0x2b9530['data']['formatGroupId']!=_0x56d7f8['formatGroupId'])continue;if(!zt(_0x2b9530,_0x231eb8))continue;const _0x3f21c1=_0x2b9530['getFirstRange']();if(_0x2b9530['subType']==_0x1ac745){if(_0x3f21c1['containsRange'](_0x945a5e,!0x0))return null;_0x49ed32=_0x49ed32['isBefore'](_0x3f21c1['start'])?_0x49ed32:_0x3f21c1['start'],_0x59b49a=_0x59b49a['isAfter'](_0x3f21c1['end'])?_0x59b49a:_0x3f21c1['end'],_0xafec9e?_0x3f21c1['start']['isBefore'](_0xafec9e['getFirstRange']()['start'])?(_0xafec9e['removeMarkers'](),_0xafec9e=_0x2b9530):_0x2b9530['removeMarkers']():_0xafec9e=_0x2b9530;}else{const _0x3abf96=_0x945a5e['getIntersection'](_0x3f21c1);this['_cutOutSuggestionMarker'](_0x2b9530,_0x3abf96);}}const _0x3fe2bb=this['editor']['plugins']['get']('Users')['me'],_0x39b766=_0x15c67d(),_0x2699bb=_0x3fe2bb['id'];if(_0xafec9e)return this['_setSuggestionRange'](_0xafec9e,this['_model']['createRange'](_0x49ed32,_0x59b49a)),_0xafec9e;{const _0x2b5985=this['_setSuggestionData']({'id':_0x39b766,'type':'formatBlock:'+_0x1ac745,'data':_0x56d7f8,'createdAt':new Date(),'authorId':_0x2699bb,'attributes':_0x231eb8});return this['_addSuggestionMarker']('formatBlock:'+_0x1ac745,_0x39b766,_0x2699bb,this['_model']['createRange'](_0x49ed32,_0x59b49a)),_0x2b5985;}}['markMultiRangeBlockFormat'](_0x3b9d83,_0x547a82,_0x568f36=[],_0x57fe5c=null,_0x4f3213={}){_0x547a82['formatGroupId']||(_0x547a82['formatGroupId']=_0x547a82['commandName']);const _0x48fd9b=_0x3b9d83[0x0];_0x547a82['multipleBlocks']=_0x48fd9b['is']('range'),_0x57fe5c=_0x57fe5c||Pt(_0x547a82);const _0x1b0154=_0x568f36['map'](_0xe2576=>Vt(_0xe2576,this['_model'])),_0x6c69a3=_0x48fd9b['is']('range')?_0x3b9d83:_0x3b9d83['map'](_0x5ae227=>Vt(_0x5ae227,this['_model']));if(this['_trackingSessionId']&&(_0x4f3213['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2aebe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'accept');return this['forceDefaultExecution'](()=>_0x2aebe0(_0x6c69a3,_0x547a82,_0x4f3213)),null;}_0x1b0154['push'](..._0x6c69a3);let _0x218a68=!0x0;for(const _0x2c48a7 of _0x1b0154)if(!this['_rangeIsInLocalUserInsertion'](_0x2c48a7)){_0x218a68=!0x1;break;}if(_0x218a68&&'always'!==this['_trackFormatChanges']){const _0x509736=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'accept');return this['forceDefaultExecution'](()=>_0x509736(_0x6c69a3,_0x547a82,_0x4f3213)),null;}const _0xd8daec=this['editor']['plugins']['get']('Users')['me'];for(const _0x51f49e of this['getSuggestions']()){const _0xd6ed46=_0x51f49e['data'];if(_0x51f49e['author']['id']!=_0xd8daec['id'])continue;if('formatBlock'!=_0x51f49e['type']||_0xd6ed46['formatGroupId']!=_0x547a82['formatGroupId'])continue;if(!zt(_0x51f49e,_0x4f3213))continue;const _0x5ad70f=_0x51f49e['subType']==_0x57fe5c;for(let _0x14bb19=0x0;_0x14bb19<_0x6c69a3['length'];_0x14bb19++){const _0xb2e194=_0x6c69a3[_0x14bb19];for(const _0x24b1de of _0x51f49e['getMarkers']()){const _0x2d39e2=_0x24b1de['getRange']();if(_0xb2e194['isEqual'](_0x2d39e2)){_0x5ad70f?(_0x6c69a3['splice'](_0x14bb19,0x1),_0x14bb19--):_0x51f49e['removeMarker'](_0x24b1de['name']);break;}}}}if(0x0==_0x6c69a3['length'])return null;const _0x1667d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'join');for(const _0xfa1e3c of this['getSuggestions']()){const _0x565213=_0xfa1e3c['data'];if(_0xfa1e3c['author']['id']==_0xd8daec['id']&&('formatBlock'==_0xfa1e3c['type']&&_0x565213['formatGroupId']==_0x547a82['formatGroupId']&&_0xfa1e3c['subType']==_0x57fe5c&&zt(_0xfa1e3c,_0x4f3213)&&(_0x1667d8(_0xfa1e3c['getRanges'](),_0x6c69a3)||_0x1667d8(_0x6c69a3,_0xfa1e3c['getRanges']())))){for(const _0x2b3559 of _0x6c69a3)_0xfa1e3c['addRange'](_0x2b3559);return _0xfa1e3c;}}const _0x5cc19d=_0x15c67d(),_0x3636c5=_0xd8daec['id'],_0x4c8bed='formatBlock:'+_0x57fe5c,_0x45c20f=this['_setSuggestionData']({'id':_0x5cc19d,'type':_0x4c8bed,'data':_0x547a82,'createdAt':new Date(),'authorId':_0x3636c5,'attributes':_0x4f3213});for(const _0x2edffb of _0x6c69a3)this['_addSuggestionMarker'](_0x4c8bed,_0x5cc19d,_0x3636c5,_0x2edffb,Suggestion['getMultiRangeId']());return _0x45c20f;}['markDeletion'](_0x3a8156,_0x2383b2=null,_0x44dba2={}){if(_0x3a8156['isCollapsed'])return null;const _0x1262f2=this['editor']['plugins']['get']('Users')['me'],_0x167482=new _0x52f028(_0x3a8156['start'],_0x3a8156['end']);this['_trackingSessionId']&&(_0x44dba2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5dfb69,meta:_0x201c1b}of this['_findSuggestions'](_0x167482,'insertion'))if(_0x201c1b['isOwn']&&!_0x201c1b['isNextTo']){if(_0x5dfb69['isMultiRange']){const _0x3f66b5=_0x5dfb69['getRanges']()['filter'](_0x22e0f2=>'$graveyard'!=_0x22e0f2['root']['rootName']);_0x3f66b5['every'](_0x249b3e=>_0x167482['containsRange'](_0x249b3e,!0x0))&&_0x5dfb69['discard']();if(_0x3f66b5['some'](_0x3825d4=>_0x3825d4['containsRange'](_0x167482,!0x0))){const _0x49f394=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2383b2,'accept');return this['forceDefaultExecution'](()=>_0x49f394([_0x167482],null,_0x44dba2)),null;}}else{const _0xdb14=_0x167482['getIntersection'](_0x5dfb69['getFirstRange']());null!==_0xdb14&&_0x5dfb69['_onDiscard']([_0xdb14],null,_0x44dba2);}}if(_0x167482['detach'](),_0x167482['isCollapsed']||'$graveyard'==_0x167482['root']['rootName'])return null;let _0x5c1f06=null,_0x282fd0=_0x167482['start'],_0xe7e423=_0x167482['end'];const _0x1d172a=this['_findSuggestions'](_0x167482,'deletion');for(const {suggestion:_0x112ace,meta:_0x1ddc1e}of _0x1d172a){const _0x25f183=this['_model']['createRange'](_0x282fd0,_0xe7e423);if(_0x1ddc1e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ddc1e['containsRangeInObject']&&!_0x1ddc1e['isInsideObject'])){if(_0x112ace['isMultiRange']){if(!zt(_0x112ace,_0x44dba2))continue;let _0xc7167a=!0x0;for(const _0x36478c of _0x112ace['getRanges']()){if(_0x36478c['containsRange'](_0x25f183,!0x0))return _0x112ace;_0x25f183['containsRange'](_0x36478c)||(_0xc7167a=!0x1);}_0xc7167a&&_0x112ace['discard']();}else{const _0x41307d=_0x112ace['getFirstRange']();if(_0x41307d['containsRange'](_0x25f183,!0x0))return _0x112ace;if(!zt(_0x112ace,_0x44dba2)){_0x25f183['containsRange'](_0x41307d)?_0x112ace['removeMarkers']():_0x41307d['containsPosition'](_0x282fd0)?_0x282fd0=_0x41307d['end']:_0x41307d['containsPosition'](_0xe7e423)&&(_0xe7e423=_0x41307d['start']);continue;}_0x282fd0=_0x282fd0['isBefore'](_0x41307d['start'])?_0x282fd0:_0x41307d['start'],_0xe7e423=_0xe7e423['isAfter'](_0x41307d['end'])?_0xe7e423:_0x41307d['end'],_0x44dba2=Object['assign']({},_0x112ace['attributes']),_0x5c1f06?_0x41307d['start']['isBefore'](_0x5c1f06['getFirstRange']()['start'])?(_0x5c1f06['removeMarkers'](),_0x5c1f06=_0x112ace):_0x112ace['removeMarkers']():_0x5c1f06=_0x112ace;}}}if(_0x5c1f06)return this['_setSuggestionRange'](_0x5c1f06,this['_model']['createRange'](_0x282fd0,_0xe7e423)),_0x5c1f06;{const _0x31fa2f=_0x15c67d(),_0x252484=this['_model']['createRange'](_0x282fd0,_0xe7e423),_0xa681e9=_0x1262f2['id'],_0x164be7=_0x2383b2?'deletion:'+_0x2383b2:'deletion',_0x3c5aaf=this['_setSuggestionData']({'id':_0x31fa2f,'type':_0x164be7,'createdAt':new Date(),'authorId':_0xa681e9,'attributes':_0x44dba2});return this['_addSuggestionMarker'](_0x164be7,_0x31fa2f,_0xa681e9,_0x252484),_0x3c5aaf;}}['markMultiRangeDeletion'](_0x14ab0e,_0x5081e8='multi',_0x389a19={}){const _0x2fac70=this['editor']['plugins']['get']('Users')['me'],_0x3fc295=_0x14ab0e['map'](_0x532fce=>new _0x52f028(_0x532fce['start'],_0x532fce['end'])),_0x4dc726=new Set();this['_trackingSessionId']&&(_0x389a19['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40c3e1,meta:_0x538f33}of this['_findSuggestions'](_0x3fc295,'insertion'))_0x538f33['isOwn']&&!_0x538f33['isNextTo']&&_0x4dc726['add'](_0x40c3e1);for(const _0x58fc39 of _0x4dc726)if(_0x58fc39['isMultiRange']){const _0x3146c7=_0x58fc39['getRanges']();(!_0x58fc39['attributes']||!_0x58fc39['attributes']['skipNestingCheck'])&&(_0x3146c7['every'](_0x2af4fd=>_0x3fc295['some'](_0x1fc6d0=>_0x1fc6d0['containsRange'](_0x2af4fd,!0x0)))&&_0x58fc39['discard']());if(_0x3fc295['every'](_0xe43b70=>_0x3146c7['some'](_0x1bf3df=>_0x1bf3df['containsRange'](_0xe43b70,!0x0)))){const _0x38e1cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'accept');return this['forceDefaultExecution'](()=>_0x38e1cf(_0x14ab0e,null,_0x389a19)),null;}}else{const _0x27ebdd=_0x58fc39['getFirstRange']();_0x3fc295['some'](_0x33b6b5=>_0x33b6b5['containsRange'](_0x27ebdd,!0x0))&&_0x58fc39['discard']();if(_0x3fc295['every'](_0x486b19=>_0x27ebdd['containsRange'](_0x486b19,!0x0))){const _0x254a86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'accept');return this['forceDefaultExecution'](()=>_0x254a86(_0x3fc295,null,_0x389a19)),null;}}const _0x1ad814=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'join');let _0x41cb91=null;for(const _0x99136d of this['getSuggestions']())if(_0x99136d['author']['id']==_0x2fac70['id']&&_0x99136d['isInContent']&&'deletion'==_0x99136d['type']&&_0x99136d['subType']==_0x5081e8&&zt(_0x99136d,_0x389a19)&&(_0x1ad814(_0x99136d['getRanges'](),_0x3fc295)||_0x1ad814(_0x3fc295,_0x99136d['getRanges']()))){if(_0x41cb91){if(_0x99136d['commentThread']&&_0x99136d['commentThread']['length'])continue;for(const _0x4565b6 of _0x99136d['getRanges']())_0x41cb91['isIntersectingWithRange'](_0x4565b6)||_0x41cb91['addRange'](_0x4565b6);_0x99136d['removeMarkers']();}else{_0x41cb91=_0x99136d;for(const _0x4c4162 of _0x3fc295)_0x99136d['isIntersectingWithRange'](_0x4c4162)||_0x99136d['addRange'](_0x4c4162);}}if(_0x41cb91)return _0x41cb91;_0x4dc726['clear']();for(const {suggestion:_0x3b3163,meta:_0x53dc66}of this['_findSuggestions'](_0x3fc295,'deletion'))_0x53dc66['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53dc66['containsRangeInObject']&&!_0x53dc66['isInsideObject'])&&zt(_0x3b3163,_0x389a19)&&_0x4dc726['add'](_0x3b3163);for(const _0x1fde28 of _0x4dc726){const _0x2ad27f=_0x1fde28['getRanges']();if(!_0x389a19||!_0x389a19['skipNestingCheck']){if(_0x3fc295['every'](_0x315975=>_0x2ad27f['some'](_0x18d01d=>_0x18d01d['containsRange'](_0x315975,!0x0))))return _0x1fde28;}(!_0x1fde28['attributes']||!_0x1fde28['attributes']['skipNestingCheck'])&&(_0x2ad27f['every'](_0x3ea7c0=>_0x3fc295['some'](_0x1a60b=>_0x1a60b['containsRange'](_0x3ea7c0,!0x0)))&&_0x1fde28['discard']());}const _0x18ec5f=_0x15c67d(),_0x20e935=_0x2fac70['id'],_0x175a1e='deletion:'+_0x5081e8,_0x346a6d=this['_setSuggestionData']({'id':_0x18ec5f,'type':_0x175a1e,'createdAt':new Date(),'authorId':_0x20e935,'attributes':_0x389a19});for(const _0x2483fa of _0x3fc295)_0x2483fa['detach'](),_0x2483fa['isCollapsed']||'$graveyard'==_0x2483fa['root']['rootName']||this['_addSuggestionMarker'](_0x175a1e,_0x18ec5f,_0x20e935,_0x2483fa,Suggestion['getMultiRangeId']());return _0x346a6d;}['markAttributeChange'](_0x59cdac,_0x44eb6f,_0xe91d6,_0x2b6e6e,_0x45f465){if(_0x59cdac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x150e9c=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e6fa6=Array['from'](this['_suggestions']['values']())['filter'](_0xc14939=>'attribute'==_0xc14939['type']&&_0xc14939['data']['key']==_0x44eb6f&&_0xc14939['isIntersectingWithRange'](_0x59cdac));if(this['_trackingSessionId']&&(_0x45f465['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4cde5a=this['_findSuggestions'](_0x59cdac,'insertion')['filter'](({meta:_0xcfc21d})=>_0xcfc21d['isOwn']&&!_0xcfc21d['isInsideObject']&&!_0xcfc21d['isNextTo'])['map'](({suggestion:_0x1bbd04})=>_0x1bbd04);_0x3e6fa6['unshift'](..._0x4cde5a);}const _0x4619ce=new Map([[_0x59cdac,_0xe91d6]]);for(const _0x75f149 of _0x3e6fa6){const _0x402685='attribute'==_0x75f149['type']?_0x75f149['data']['oldValue']:void 0x0,_0x277251=_0x75f149['getFirstRange'](),_0x4739ef=Array['from'](_0x4619ce['keys']())['find'](_0x6ccb0d=>_0x6ccb0d['isIntersecting'](_0x277251));if(!_0x4739ef)continue;const _0x30007f=_0x4739ef['getDifference'](_0x277251);this['_suggestionsConversion']['isBlockAttribute'](_0x44eb6f)&&'insertion'==_0x75f149['type']&&0x0!=_0x30007f['length']||(_0x4619ce['delete'](_0x4739ef),_0x30007f['forEach'](_0x1b5a4e=>{_0x4619ce['set'](_0x1b5a4e,_0xe91d6);}),'insertion'!=_0x75f149['type']&&_0x402685!=_0x2b6e6e&&_0x4619ce['set'](_0x4739ef['getIntersection'](_0x277251),_0x402685));}const _0x4e4e89=[];for(const [_0x4b45ef,_0xb244ad]of _0x4619ce){const _0x556b91=_0x15c67d(),_0x137427={'key':_0x44eb6f,'oldValue':_0xb244ad,'newValue':_0x2b6e6e};_0x44eb6f['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':_0x44eb6f});const _0x5c5b65=('attribute:'+(_0x44eb6f+'|'+Pt({'newValue':_0x2b6e6e})))['substring'](0x0,0x3c),_0x40e3ab=this['_setSuggestionData']({'id':_0x556b91,'type':_0x5c5b65,'data':_0x137427,'createdAt':new Date(),'authorId':_0x150e9c,'attributes':_0x45f465});_0x4e4e89['push'](_0x40e3ab),this['_addSuggestionMarker'](_0x5c5b65,_0x556b91,_0x150e9c,_0x4b45ef);}return _0x4e4e89;}['enableDefaultAttributesIntegration'](_0x3b2897){this['enableCommand'](_0x3b2897,(_0xe86e18,..._0xfd6177)=>{this['recordAttributeChanges'](()=>{_0xe86e18(..._0xfd6177);});});}['startTrackingSession'](_0x3b0623){return this['_trackingSessionId']=void 0x0!==_0x3b0623?_0x3b0623:_0x15c67d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1080c4){return'attribute'==_0x1080c4['type']?Xt(_0x1080c4['subType']):null;}['_applyOperationsAsSuggestions'](_0x1ad435){if(0x0==_0x1ad435['length'])return;const _0x10fad8=this['editor'],_0x46409b=_0x10fad8['plugins']['get'](_0x261f31),_0x4561dd=[];_0x10fad8['model']['change'](_0x3db44f=>{for(let _0x49c609=0x0;_0x49c609<_0x1ad435['length'];_0x49c609++){const _0x45fb7f=_0x1ad435[_0x49c609];if(_0x45fb7f['baseVersion']=_0x10fad8['model']['document']['version'],_0x45fb7f['isDocumentOperation']=!0x0,_0x46409b['isMarkedRemoveOperation'](_0x45fb7f)){const _0x3ffe01=_0x2dd2a4(_0x45fb7f['newRange'],_0x10fad8['model']);_0x4561dd['unshift'](_0x52f028['fromRange'](_0x3ffe01));}else switch(_0x45fb7f['type']){case'rename':{const _0xa783a8=_0x45fb7f['oldName'],_0x1c2d83=_0x45fb7f['newName'];if(_0xa783a8==_0x1c2d83)break;_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0x196639='$elementName',_0x4330bd=_0x45fb7f['position'],_0x5c6d81=_0x10fad8['model']['createRange'](_0x4330bd,_0x10fad8['model']['createPositionAt'](_0x4330bd['nodeAfter'],'end'));this['markAttributeChange'](_0x5c6d81,_0x196639,_0xa783a8,_0x1c2d83,{'groupId':_0x15c67d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x8f3512=_0x45fb7f['oldValue'],_0x427851=_0x45fb7f['newValue'];if(_0x8f3512==_0x427851)break;_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0xc19c1d=_0x45fb7f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xc19c1d))break;const _0x30145a=_0x2dd2a4(_0x45fb7f['range'],_0x10fad8['model']);this['markAttributeChange'](_0x30145a,_0xc19c1d,_0x8f3512,_0x427851,{'groupId':_0x15c67d()});break;}case'insert':{_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);if(_0x1ad435[_0x49c609+0x1]&&'move'==_0x1ad435[_0x49c609+0x1]['type'])break;const _0x4a19ee=_0x45fb7f['position'],_0x4e1357=_0x45fb7f['howMany'],_0x20c4ca=_0x2dd2a4(_0x10fad8['model']['createRange'](_0x4a19ee,_0x4a19ee['getShiftedBy'](_0x4e1357)),_0x10fad8['model']);this['markInsertion'](_0x20c4ca);break;}case'split':{_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0x4a9c42=_0x45fb7f['splitPosition'],_0x4ddffd=_0x45fb7f['moveTargetPosition'];this['markInsertion'](_0x10fad8['model']['createRange'](_0x4a9c42,_0x4ddffd));break;}case'move':case'remove':_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);}}for(const _0x3fa41b of _0x4561dd)_0x3fa41b['detach'](),this['markDeletion'](_0x3fa41b);});}['_setSuggestionRange'](_0x57a64d,_0x423cc7){const _0x3a0587=_0x57a64d['getFirstMarker']();this['_model']['change'](_0x452465=>{_0x452465['updateMarker'](_0x3a0587,{'range':_0x423cc7});});}['_addThreadToSuggestion'](_0x580766){const _0x564878=_0x580766['id'],_0x43af62=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x564878)||this['_commentsRepository']['addCommentThread']({'channelId':_0x43af62,'threadId':_0x564878,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40c9ed=this['_commentsRepository']['getCommentThread'](_0x564878);_0x40c9ed['unbind']('isRemovable'),_0x40c9ed['isRemovable']=!0x1,_0x580766['commentThread']=_0x40c9ed;}['_checkSuggestionCorrectness'](_0x2be559,_0xce28ee,_0x3a753c,_0x1232d7){if(_0x2be559['type']!=_0xce28ee||_0x2be559['subType']!=_0x3a753c||_0x2be559['creator']['id']!=_0x1232d7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xf305a4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x12b778,_0x32c2a3){const _0x318e5f=_0x12b778['getFirstRange']();if(_0x32c2a3['isEqual'](_0x318e5f))_0x12b778['removeMarkers']();else{if(_0x318e5f['containsRange'](_0x32c2a3)){const _0x376d7e=this['_model']['createPositionAt'](_0x32c2a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x318e5f['start'],_0x376d7e));const _0x58995a=_0x15c67d(),_0x3fdec0=_0x12b778['creator']['id'],_0x595c91=_0x12b778['type']+':'+_0x12b778['subType'];this['_setSuggestionData']({'id':_0x58995a,'type':_0x595c91,'createdAt':new Date(),'authorId':_0x3fdec0,'data':_0x12b778['data'],'attributes':_0x12b778['attributes']});const _0x155900=this['_model']['createPositionAt'](_0x32c2a3['end']['parent'],'after'),_0x35948c=this['_model']['createRange'](_0x155900,_0x318e5f['end']);this['_addSuggestionMarker'](_0x595c91,_0x58995a,_0x3fdec0,_0x35948c);}else{if(_0x318e5f['containsPosition'](_0x32c2a3['start'])){const _0x2ec92c=this['_model']['createPositionAt'](_0x32c2a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x318e5f['start'],_0x2ec92c));}else{const _0x2b27bd=this['_model']['createPositionAt'](_0x32c2a3['end']['parent'],'after');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x2b27bd,_0x318e5f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x58c45c){for(const {suggestion:_0x4a6697,meta:_0x4d5c10}of this['_findSuggestions'](_0x58c45c,'insertion')){if(!_0x4d5c10['isOwn'])continue;const _0x4f24a6=_0x4a6697['getRanges']();for(const _0x31d2f0 of _0x4f24a6)if(!_0x58c45c['getDifference'](_0x31d2f0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10f158){return this['editor']['plugins']['get']('Users')['getUser'](_0x10f158);}['_getExternalAuthor'](_0x58e58f){const _0x5c5d65=this['editor']['plugins']['get']('Users'),_0x2d3c03=_0x8ab510('external:'+_0x58e58f),_0xd3ff99=_0x5c5d65['getUser'](_0x2d3c03);return _0xd3ff99||_0x5c5d65['addUser']({'id':_0x2d3c03,'name':_0x58e58f});}['_createSuggestion'](_0x17290c,_0x81ab6d,_0x552207,_0x26e8a1,_0x1c6748,_0x256060){const _0x54da52=this['_getAuthorFromId'](_0x26e8a1);if(!_0x54da52)throw new _0xf305a4('track-changes-user-not-found',this,{'authorId':_0x26e8a1,'suggestionId':_0x552207});const _0x34d4c3=this['_suggestionFactory']['buildSuggestion'](_0x17290c,_0x81ab6d,_0x552207,_0x54da52,_0x1c6748,_0x380926=>{this['_updateSuggestionData'](_0x552207,{'attributes':_0x380926});const _0x25cabd=this['getSuggestion'](_0x552207);this['_joinWithAdjacentSuggestions'](new Set([_0x25cabd])),this['_refreshSuggestionsChain'](new Set([_0x25cabd]));},_0x256060);return this['listenTo'](_0x34d4c3,'accept',()=>{this['_updateSuggestionData'](_0x552207,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x34d4c3,'discard',()=>{this['_updateSuggestionData'](_0x552207,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x552207,_0x34d4c3),this['_suggestionState']['set'](_0x34d4c3,'notReady'),_0x34d4c3;}['_breakSuggestionMarker'](_0x30f730,_0x54440f,_0x4141b7){const _0x56497d=_0x30f730['getFirstRange'](),_0x406bbd=_0x56497d['start'],_0x22da1d=_0x56497d['end'];this['_setSuggestionRange'](_0x30f730,this['_model']['createRange'](_0x406bbd,_0x54440f));const _0x9279cb=_0x15c67d(),_0x130862=_0x30f730['creator']['id'],_0x3879ec=_0x30f730['type']+(_0x30f730['subType']?':'+_0x30f730['subType']:'');this['_setSuggestionData']({'id':_0x9279cb,'type':_0x3879ec,'createdAt':new Date(),'authorId':_0x130862,'originalSuggestionId':_0x30f730['_originalSuggestionId']||_0x30f730['id'],'attributes':_0x30f730['attributes'],'data':_0x30f730['data']});const _0x16a845=this['_getAttributeKey'](_0x30f730);('formatBlock'==_0x30f730['type']||_0x16a845&&this['_suggestionsConversion']['isBlockAttribute'](_0x16a845))&&(_0x4141b7=this['_model']['createPositionBefore'](_0x4141b7['parent'])),this['_addSuggestionMarker'](_0x3879ec,_0x9279cb,_0x130862,this['_model']['createRange'](_0x4141b7,_0x22da1d));}['_findSuggestions'](_0x539e53,_0x1dff92=null){const _0x2ab8a5=[],_0x1039bb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x539e53)||(_0x539e53=[_0x539e53]);for(const _0x444712 of this['getSuggestions']()){if(!_0x444712['isInContent'])continue;if(_0x1dff92&&_0x444712['type']!=_0x1dff92)continue;let _0x57b2d0=!0x1;for(const _0x330c79 of _0x444712['getRanges']()){for(const _0x5a14e1 of _0x539e53){const _0x3585ef=_0x5a14e1['start']['isEqual'](_0x330c79['end'])||_0x5a14e1['end']['isEqual'](_0x330c79['start']);if(_0x3585ef||_0x5a14e1['getIntersection'](_0x330c79)){const _0x175b42=_0x5a14e1['containsRange'](_0x330c79)&&Dt(this['_model']['schema'],_0x330c79['start'],_0x5a14e1),_0x316aee=_0x330c79['containsRange'](_0x5a14e1)&&Dt(this['_model']['schema'],_0x5a14e1['start'],_0x330c79);_0x2ab8a5['push']({'suggestion':_0x444712,'meta':{'isOwn':_0x1039bb==_0x444712['author'],'isNextTo':_0x3585ef,'isInsideObject':_0x175b42,'containsRangeInObject':_0x316aee}}),_0x57b2d0=!0x0;break;}}if(_0x57b2d0)break;}}return _0x2ab8a5;}['_addSuggestionMarker'](_0xfac866,_0x37c630,_0x495a16,_0x164338,_0x5b2e06){this['_model']['change'](_0xd8f08b=>{let _0xc904ee='suggestion:'+_0xfac866+':'+_0x37c630+':'+_0x495a16;_0x5b2e06&&(_0xc904ee=_0xc904ee+':'+_0x5b2e06),_0xd8f08b['addMarker'](_0xc904ee,{'range':_0x164338,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x71d12b){const _0x527ff2=_0x71d12b['previous'],_0x53ab46=_0x71d12b['next'];_0x71d12b['previous']=null,_0x71d12b['next']=null,null!=_0x527ff2&&_0x527ff2['next']==_0x71d12b&&(_0x527ff2['next']=_0x53ab46),null!=_0x53ab46&&_0x53ab46['previous']==_0x71d12b&&(_0x53ab46['previous']=_0x527ff2),'ready'==this['_suggestionState']['get'](_0x71d12b)&&(this['_suggestionState']['set'](_0x71d12b,'removed'),this['fire']('suggestionUnloaded',_0x71d12b,_0x527ff2,_0x53ab46));}['_setSuggestionData'](_0x12cdcf){const _0x1f4653=_0x12cdcf['id'],_0xda94d8=this['addSuggestionData'](_0x12cdcf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1dc463=this['editor']['plugins']['get']('PendingActions'),_0x2dbbf6=_0xda94d8['hasComments'],_0x25af30=_0xda94d8['subType']?_0xda94d8['type']+':'+_0xda94d8['subType']:_0xda94d8['type'],_0x5ddbbd=this['editor']['locale'],_0x488304=_0x1dc463['add'](Tt(_0x5ddbbd,'PENDING_ACTION_SUGGESTION')),_0x121157={'id':_0x1f4653,'type':_0x25af30,'hasComments':_0x2dbbf6,'data':_0x12cdcf['data']||null,'originalSuggestionId':_0x12cdcf['originalSuggestionId']||null,'attributes':_0xda94d8['attributes']};this['_adapter']['addSuggestion'](_0x121157)['then'](_0x4dbab9=>{_0xda94d8['_saved']=!0x0,_0x1dc463['remove'](_0x488304),_0x4dbab9&&_0x4dbab9['createdAt']&&(this['_suggestions']['get'](_0x1f4653)['createdAt']=_0x4dbab9['createdAt']);})['catch'](_0x158ec0=>{throw _0x245ac6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xda94d8['discard']();}),_0xda94d8['stopListening'](),this['_suggestions']['delete'](_0xda94d8['id']),this['_suggestionState']['delete'](_0xda94d8),_0x158ec0;});}return _0xda94d8;}['_updateSuggestionData'](_0x31ec67,_0x377d26){const _0x1c0277=this['editor']['plugins']['get']('PendingActions'),_0x30caa0=this['getSuggestion'](_0x31ec67);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30caa0['_saved']){const _0x249e7f=_0x1c0277['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x31ec67,_0x377d26)['then'](()=>{_0x1c0277['remove'](_0x249e7f);});}else _0x30caa0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x31ec67,_0x377d26);});}}['_getSuggestionData'](_0x48bf87){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xf305a4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x48bf87);}['_handleNewSuggestionMarker'](_0x4f24b3){const {id:_0x46dfed,type:_0x1a829,subType:_0x4b4e4f,authorId:_0x2819b3}=_0x309b71(_0x4f24b3),_0xa0c731=this['_suggestions']['get'](_0x46dfed)||this['_createSuggestion'](_0x1a829,_0x4b4e4f,_0x46dfed,_0x2819b3,{});switch(this['_checkSuggestionCorrectness'](_0xa0c731,_0x1a829,_0x4b4e4f,_0x2819b3),this['_suggestionState']['get'](_0xa0c731)){case'notReady':this['_getSuggestionData'](_0x46dfed)['then'](_0x104f13=>{let _0x442be5=Promise['resolve']();_0x104f13['hasComments']&&(_0x442be5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46dfed})),_0x442be5['then'](()=>{this['addSuggestionData'](_0x104f13)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa0c731,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46dfed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa0c731,'ready'),this['fire']('suggestionLoaded',_0xa0c731);break;case'ready':this['fire']('suggestionChanged',_0xa0c731);}return _0xa0c731['addMarkerName'](_0x4f24b3),_0xa0c731;}['_refreshSuggestionsChain'](_0x9ab49b){const _0x39adff=Array['from'](_0x9ab49b),_0x37c012=_0x39adff['filter'](_0x416806=>'attribute'==_0x416806['type']);this['_refreshAttributeSuggestionsChain'](_0x37c012);const _0x55dc2e=_0x39adff['filter'](_0x14fd3c=>!_0x14fd3c['isMultiRange']&&'attribute'!=_0x14fd3c['type']),_0xa015f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c10ad=>!_0x6c10ad['isMultiRange']&&'attribute'!=_0x6c10ad['type']),_0x5e78dc=_0xa015f3['filter'](_0x52dbdf=>!_0x9ab49b['has'](_0x52dbdf)),_0x2827d1=new Map(_0xa015f3['map'](_0x4d5ab6=>[_0x4d5ab6,this['_suggestionFactory']['getSuggestionCallback'](_0x4d5ab6['type'],_0x4d5ab6['subType'],'chain')])),_0x433c07=new Map(_0xa015f3['map'](_0x3bace2=>[_0x3bace2,_0x3bace2['getFirstRange']()])),_0x3fba39=new Set(),_0x55df34=new Set();for(let _0x38e340=0x0;_0x38e340<_0x55dc2e['length'];_0x38e340++)_0x2dfab7(_0x55dc2e[_0x38e340],_0x55dc2e,_0x38e340+0x1);for(let _0x18d5c0=0x0;_0x18d5c0<_0x55dc2e['length'];_0x18d5c0++)_0x2dfab7(_0x55dc2e[_0x18d5c0],_0x5e78dc,0x0);const _0x3333d5=new Set();for(let _0x546368=0x0;_0x546368<_0x55dc2e['length'];_0x546368++){const _0x23518d=_0x55dc2e[_0x546368];!_0x55df34['has'](_0x23518d)&&_0x23518d['previous']&&(_0x3333d5['add'](_0x23518d['previous']),_0x23518d['previous']['next']===_0x23518d&&(_0x23518d['previous']['next']=null),_0x23518d['previous']=null),!_0x3fba39['has'](_0x23518d)&&_0x23518d['next']&&(_0x3333d5['add'](_0x23518d['next']),_0x23518d['next']['previous']===_0x23518d&&(_0x23518d['next']['previous']=null),_0x23518d['next']=null);}function _0x2dfab7(_0x4a59eb,_0x1c4268,_0x3d3d52){for(let _0x2bc0bb=_0x3d3d52;_0x2bc0bb<_0x1c4268['length'];_0x2bc0bb++){const _0x31cd96=_0x18ed16(_0x4a59eb,_0x1c4268[_0x2bc0bb]);_0x31cd96&&(_0x31cd96[0x0]['next']=_0x31cd96[0x1],_0x31cd96[0x1]['previous']=_0x31cd96[0x0],_0x3fba39['add'](_0x31cd96[0x0]),_0x55df34['add'](_0x31cd96[0x1]));}}function _0x18ed16(_0x101df1,_0x55d981){if(_0x101df1['author']['id']!==_0x55d981['author']['id'])return null;const _0x16ccdd=_0x2827d1['get'](_0x101df1)(_0x101df1,_0x55d981,_0x433c07['get'](_0x101df1),_0x433c07['get'](_0x55d981));if(!_0x16ccdd)return null;return _0x2827d1['get'](_0x55d981)(_0x101df1,_0x55d981,_0x433c07['get'](_0x101df1),_0x433c07['get'](_0x55d981))?_0x16ccdd[0x1]['commentThread']&&_0x16ccdd[0x1]['commentThread']['length']?null:_0x16ccdd:null;}_0x3333d5['size']&&this['_refreshSuggestionsChain'](_0x3333d5);}['_refreshAttributeSuggestionsChain'](_0x6552fd){if(0x0==_0x6552fd['length'])return;const _0x3e2de2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49759f=>'attribute'==_0x49759f['type']&&_0x49759f['_isDataLoaded']),_0x2b4411=[],_0x53c0f5=new Map();for(const _0x153c47 of _0x3e2de2){const _0x3d56fb=_0x8ab510(_0x153c47['attributes']);_0x53c0f5['has'](_0x3d56fb)||(_0x53c0f5['set'](_0x3d56fb,_0x2b4411['length']),_0x2b4411['push']([]));const _0x53d835=_0x53c0f5['get'](_0x3d56fb);_0x2b4411[_0x53d835]['push'](_0x153c47);}!(function(){_0x2b4411['sort']((_0x2978ce,_0x3d2902)=>{const _0x160873=_0x2978ce[0x0]['createdAt'],_0x30b551=_0x3d2902[0x0]['createdAt'];return _0x160873==_0x30b551?_0x2978ce[0x0]['attributes']['groupId']<_0x3d2902[0x0]['attributes']['groupId']?-0x1:0x1:_0x160873<_0x30b551?-0x1:0x1;});for(const _0x2dd930 of _0x2b4411)_0x2dd930['sort']((_0x40395b,_0x32f8d8)=>_0x40395b['id']<_0x32f8d8['id']?-0x1:0x1);}());for(let _0x2c95fe=0x0;_0x2c95fe<_0x2b4411['length'];_0x2c95fe++){if(0x0==_0x2b4411[_0x2c95fe]['length'])continue;const _0x475fba=[];for(let _0x540f70=_0x2c95fe+0x1;_0x540f70<_0x2b4411['length'];_0x540f70++)0x0!=_0x2b4411[_0x540f70]['length']&&_0x54fc71(_0x2b4411[_0x2c95fe],_0x2b4411[_0x540f70])&&_0x475fba['push'](_0x540f70);for(const _0x22ac71 of _0x475fba)_0x2b4411[_0x2c95fe]=_0x2b4411[_0x2c95fe]['concat'](_0x2b4411[_0x22ac71]),_0x2b4411[_0x22ac71]=[];}for(const _0x2127f5 of _0x2b4411)for(let _0x3f0f91=0x0;_0x3f0f91<_0x2127f5['length'];_0x3f0f91++){const _0xbb226a=_0x2127f5[_0x3f0f91+0x1]||null;_0x2127f5[_0x3f0f91]['next']!==_0xbb226a&&(_0x2127f5[_0x3f0f91]['next']=_0xbb226a);}for(const _0x411bba of _0x2b4411)for(let _0x5c65e4=0x0;_0x5c65e4<_0x411bba['length'];_0x5c65e4++){const _0x550fb0=_0x411bba[_0x5c65e4-0x1]||null;_0x411bba[_0x5c65e4]['previous']!==_0x550fb0&&(_0x411bba[_0x5c65e4]['previous']=_0x550fb0);}function _0x54fc71(_0x231135,_0x55c12f){if(_0x231135[0x0]['attributes']['groupId']!==_0x55c12f[0x0]['attributes']['groupId']&&_0x231135[0x0]['author']!==_0x55c12f[0x0]['author'])return!0x1;if(!function(_0x2fb454,_0x33567b){if(!_0x2fb454['hasComments']&&!_0x33567b['hasComments'])return!0x0;if(_0x2fb454['hasComments']&&_0x33567b['hasComments'])return!0x1;if(_0x2fb454['hasComments']&&_0x33567b['createdAt']<_0x2fb454['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x33567b['hasComments']&&_0x2fb454['createdAt']<_0x33567b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x231135[0x0],_0x55c12f[0x0]))return!0x1;const _0x3b3149=ot(_0x231135[0x0]['attributes'],['groupId','trackingSessionId']),_0x308978=ot(_0x55c12f[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3b3149,_0x308978))return!0x1;if(_0x231135[0x0]['attributes']['groupId']==_0x55c12f[0x0]['attributes']['groupId'])return!0x0;if(_0x231135[0x0]['attributes']['trackingSessionId']!==_0x55c12f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x231135['every'](_0x122f3f=>_0x55c12f['some'](_0x31668e=>_0x122f3f['getFirstRange']()['isEqual'](_0x31668e['getFirstRange']())))&&_0x55c12f['every'](_0x3ed901=>_0x231135['some'](_0x547c82=>_0x3ed901['getFirstRange']()['isEqual'](_0x547c82['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x389f96){const _0x4ded04=Array['from'](_0x389f96),_0x52632a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2fdb59=_0x52632a['filter'](_0x541bbd=>!_0x389f96['has'](_0x541bbd)),_0x395673=new Map(_0x4ded04['map'](_0x4c8f56=>[_0x4c8f56,this['_suggestionFactory']['getSuggestionCallback'](_0x4c8f56['type'],_0x4c8f56['subType'],'join')])),_0xe683d6=new Map(_0x52632a['map'](_0x5a82d7=>[_0x5a82d7,_0x5a82d7['getRanges']()]));for(let _0x75286=0x0;_0x75286<_0x4ded04['length'];_0x75286++){if(_0xb2616e(this,_0x4ded04[_0x75286],_0x4ded04,_0x75286+0x1))return!0x0;}for(let _0x5ca70d=0x0;_0x5ca70d<_0x4ded04['length'];_0x5ca70d++){if(_0xb2616e(this,_0x4ded04[_0x5ca70d],_0x2fdb59,0x0))return!0x0;}return!0x1;function _0xb2616e(_0x41dfc5,_0x583fbf,_0x22e166,_0x34bf31){for(let _0x4219d0=_0x34bf31;_0x4219d0<_0x22e166['length'];_0x4219d0++){const _0x426f2c=_0x22e166[_0x4219d0];if(_0x426f2c['type']!==_0x583fbf['type']||_0x426f2c['author']['id']!==_0x583fbf['author']['id']||_0x426f2c['subType']!==_0x583fbf['subType'])continue;if(!jt(_0x583fbf,_0x426f2c))continue;if('attribute'==_0x583fbf['type']&&_0x583fbf['data']['oldValue']!=_0x426f2c['data']['oldValue'])continue;if('attribute'==_0x583fbf['type']&&_0x41dfc5['_suggestionsConversion']['isBlockAttribute'](_0x583fbf['data']['key']))continue;if('formatBlock'==_0x583fbf['type']){const _0x5b2e37=_0x41dfc5['editor']['model'],_0x1bf19d=_0x583fbf['getContainedElement']();if(_0x1bf19d&&(_0x5b2e37['schema']['isObject'](_0x1bf19d)||_0x5b2e37['schema']['isLimit'](_0x1bf19d)))continue;}const _0x4f4e51=_0x395673['get'](_0x583fbf),_0x3584c7=_0xe683d6['get'](_0x583fbf),_0x9c819c=_0xe683d6['get'](_0x426f2c),_0xa76657=_0x583fbf['commentThread']&&_0x583fbf['commentThread']['length'],_0x18652c=_0x426f2c['commentThread']&&_0x426f2c['commentThread']['length'];if(!_0xa76657&&_0x4f4e51(_0x9c819c,_0x3584c7))return _0x41dfc5['_joinSuggestions'](_0x426f2c,_0x583fbf),_0xe683d6['delete'](_0x583fbf),!0x0;if(!_0x18652c&&_0x4f4e51(_0x3584c7,_0x9c819c))return _0x41dfc5['_joinSuggestions'](_0x583fbf,_0x426f2c),_0xe683d6['delete'](_0x426f2c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ac356,_0x171ed5){if(_0x1ac356['isMultiRange']){for(const _0x3f5904 of _0x171ed5['getRanges']())_0x1ac356['addRange'](_0x3f5904);}else{const _0x3d4308=_0x171ed5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ac356,this['_model']['createRange'](_0x1ac356['getFirstRange']()['start'],_0x3d4308));}_0x171ed5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1d8a73,_0x459194,_0x5a60f7){const _0x26c137=_0x1d8a73['startsWith']('format')||_0x1d8a73['startsWith']('attribute')?'FORMATTING':_0x1d8a73['toUpperCase']();return Tt(this['editor']['locale'],_0x459194+'_'+_0x26c137+'_SUGGESTION_ANNOUNCEMENT',_0x5a60f7);}['_initAriaMarkerChangeAnnouncements'](){const _0x2af26f=this['editor'];if(!_0x2af26f['ui'])return;const {ariaLiveAnnouncer:_0xb30817}=_0x2af26f['ui'];_0x111019(this['_model'],({left:_0x176c0c,entered:_0x25e044})=>{for(const _0x12123e of _0x176c0c){const {group:_0x5307b2,type:_0x27cfe7}=_0x309b71(_0x12123e['name']);if('suggestion'===_0x5307b2){_0xb30817['announce'](this['_getMarkerAnnouncementText'](_0x27cfe7,'LEAVE'));break;}}for(const _0x4a9ea6 of _0x25e044){const {group:_0x5e1763,type:_0x3491f6}=_0x309b71(_0x4a9ea6['name']);if('suggestion'===_0x5e1763){_0xb30817['announce'](this['_getMarkerAnnouncementText'](_0x3491f6,'ENTER',_0x4f5ab9(_0x140de9)));break;}}});}['_processAttributeChanges'](_0x596e30){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4a4250=this['editor'],_0x48ebce=_0x4a4250['model']['document']['differ']['getChanges']();if(0x0==_0x48ebce['length'])return!0x1;const _0x56a5f8=[],_0x4649fa=_0x48ebce['filter'](_0x4673d8=>'attribute'==_0x4673d8['type']),_0x5daef4=_0x48ebce['filter'](_0x33b0e1=>'insert'==_0x33b0e1['type']&&'$text'!=_0x33b0e1['name']),_0x1bc13e=_0x48ebce['filter'](_0x56f8b4=>'remove'==_0x56f8b4['type']&&'$text'!=_0x56f8b4['name']);for(const _0x1749bb of _0x4649fa)_0x56a5f8['push']({'key':_0x1749bb['attributeKey'],'newValue':_0x1749bb['attributeNewValue'],'oldValue':_0x1749bb['attributeOldValue'],'range':$t(_0x1749bb['range'],_0x4a4250['model'])});for(const _0x3a1ef7 of _0x5daef4){const _0x1d294b=_0x1bc13e['find'](_0x176692=>_0x176692['position']['isEqual'](_0x3a1ef7['position']));_0x1d294b&&_0x56a5f8['push']({'key':Ft,'newValue':_0x3a1ef7['name'],'oldValue':_0x1d294b['name'],'range':_0x4a4250['model']['createRangeOn'](_0x3a1ef7['position']['nodeAfter'])});}return 0x0!=_0x56a5f8['length']&&this['_reduceExistingSuggestions'](_0x596e30,_0x56a5f8);}['_processAttributeSuggestions'](_0x2a07de){let _0x304bed=!0x1;const _0x3bea24=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dae5b=>_0x4dae5b['data']['newRange']&&_0x4dae5b['name']['startsWith']('suggestion:attribute:'));for(const _0x34e4dd of _0x3bea24){const {subType:_0x58f641,id:_0x5456ea}=_0x309b71(_0x34e4dd['name']),_0x4541df=_0x58f641['split']('|')[0x0];for(const _0xe6c9bf of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe6c9bf['id']!=_0x5456ea&&'attribute'==_0xe6c9bf['type']&&_0xe6c9bf['data']&&_0xe6c9bf['data']['key']==_0x4541df&&_0xe6c9bf['getFirstRange']()['isIntersecting'](_0x34e4dd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe6c9bf,_0x34e4dd['data']['newRange'],_0x2a07de),_0x304bed=!0x0);}return _0x304bed;}['recordAttributeChanges'](_0x5593cd){this['_recordAttributeSuggestions']=!0x0,_0x5593cd();}['_reduceExistingSuggestions'](_0x550696,_0x2abba4){if(0x0==_0x2abba4['length'])return!0x1;let _0x505e2c=!0x1;for(const _0x4faf22 of _0x2abba4){const _0x2d4348=this['_findSuggestions'](_0x4faf22['range'],'attribute')['filter'](_0x227013=>!_0x227013['meta']['isNextTo'])['map'](_0x551100=>_0x551100['suggestion']),_0x577940=_0x8ab510({'newValue':_0x4faf22['newValue']});_0x2d4348['filter'](_0x60c1e9=>{const [_0x4209f7,_0x14e655]=_0x60c1e9['subType']['split']('|');return _0x4209f7==_0x4faf22['key']&&_0x14e655!=_0x577940;})['forEach'](_0x987885=>{this['_reduceSuggestionAttributeRange'](_0x987885,_0x4faf22['range'],_0x550696),_0x505e2c=!0x0;});}return _0x505e2c;}['_reduceSuggestionAttributeRange'](_0xb3c27c,_0x367428,_0x4b3219){const _0x500443=_0xb3c27c['getFirstRange']()['getDifference'](_0x367428);0x0!==_0x500443['length']?0x1!==_0x500443['length']?this['_breakSuggestionMarker'](_0xb3c27c,_0x367428['start'],_0x367428['end']):this['_setSuggestionRange'](_0xb3c27c,_0x500443[0x0]):_0x4b3219['removeMarker'](_0xb3c27c['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x146f2b){this['_editor']=_0x146f2b,this['_model']=_0x146f2b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e5ad9,_0x14631e,_0x353342,_0x3c645b,_0x54c9a8,_0x2c5d0b,_0x1bdc91){return new Suggestion(this['_model'],{'type':_0x5e5ad9,'subType':_0x14631e,'id':_0x353342,'originalSuggestionId':_0x1bdc91,'author':_0x3c645b,'creator':_0x3c645b,'attributes':_0x54c9a8,'onAttributesChange':_0x2c5d0b,'onAccept':(..._0x3cac9b)=>this['getSuggestionCallback'](_0x5e5ad9,_0x14631e,'accept')(..._0x3cac9b),'onDiscard':(..._0x2295ed)=>this['getSuggestionCallback'](_0x5e5ad9,_0x14631e,'discard')(..._0x2295ed)});}['registerCustomCallback'](_0x4b8b6e,_0x459f4a,_0xfd693b,_0x6f7a49){const _0x50c0d6=_0x4b8b6e+':'+_0x459f4a+':'+_0xfd693b;this['_customCallbacks']['set'](_0x50c0d6,_0x6f7a49);}['getSuggestionCallback'](_0x5bc132,_0x3012fb,_0x33522f){const _0x2b42e0=_0x5bc132+':'+_0x3012fb+':'+_0x33522f;return this['_customCallbacks']['get'](_0x2b42e0)||this['_defaultCallbacks']['get'](_0x5bc132+':'+_0x33522f);}['_registerDefaultCallbacks'](){const _0x285713=()=>!0x1,_0x526a16=_0x1877c3=>{_0x1877c3['sort']((_0xb12e33,_0x44adae)=>_0xb12e33['start']['isBefore'](_0x44adae['start'])?0x1:-0x1),this['_model']['change'](_0x184aef=>{for(const _0x20dbf6 of _0x1877c3){let _0x514f29;_0x514f29=_0x20dbf6['end']['isAtEnd']&&_0x20dbf6['end']['parent']==_0x20dbf6['start']['nodeAfter']?_0x184aef['createSelection'](_0x20dbf6['start']['nodeAfter'],'on'):_0x184aef['createSelection'](_0x20dbf6),this['_model']['deleteContent'](_0x514f29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x468646=(_0xd88468,_0x4a9e37)=>{_0x4a9e37&&this['_model']['change'](_0x339f70=>{const {commandName:_0x2b69e3,commandParams:_0x5a08f7=[]}=_0x4a9e37,_0x109d30=_0xd88468['map'](_0x409d8c=>(vt(_0x409d8c)&&(_0x409d8c=this['_model']['createRange'](_0x409d8c['end'])),_0x409d8c))['filter'](_0x4e9bce=>'$graveyard'!==_0x4e9bce['root']['rootName']);if(_0x109d30['length']<0x1)return;const _0x1df95d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xde672c=>_0x52f028['fromRange'](_0xde672c));_0x339f70['setSelection'](_0x109d30);for(const _0x3ea647 of this['_editor']['commands']['commands']())_0x3ea647['refresh']();_0x5a08f7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b69e3,..._0x5a08f7);const _0x1a132e=_0x1df95d['filter'](_0x148fcb=>'$graveyard'!=_0x148fcb['root']['rootName']);_0x1a132e['length']>0x0&&_0x339f70['setSelection'](_0x1a132e);for(const _0x32ef87 of _0x1df95d)_0x32ef87['detach']();});},_0x290504=(_0x39266e,_0x37789b)=>0x1==_0x39266e['length']&&0x1==_0x37789b['length']&&_0x39266e[0x0]['end']['isEqual'](_0x37789b[0x0]['start']),_0x1df838=(_0x301d82,_0x1628e4,_0xb972c2,_0x2e5760)=>Wt(_0x301d82,_0x1628e4,_0xb972c2,_0x2e5760)?[_0x301d82,_0x1628e4]:Wt(_0x1628e4,_0x301d82,_0x2e5760,_0xb972c2)?[_0x1628e4,_0x301d82]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x285713),this['_defaultCallbacks']['set']('insertion:discard',_0x526a16),this['_defaultCallbacks']['set']('insertion:join',_0x290504),this['_defaultCallbacks']['set']('insertion:chain',_0x1df838),this['_defaultCallbacks']['set']('deletion:accept',_0x526a16),this['_defaultCallbacks']['set']('deletion:discard',_0x285713),this['_defaultCallbacks']['set']('deletion:join',_0x290504),this['_defaultCallbacks']['set']('deletion:chain',_0x1df838),this['_defaultCallbacks']['set']('formatInline:accept',_0x468646),this['_defaultCallbacks']['set']('formatInline:discard',_0x285713),this['_defaultCallbacks']['set']('formatInline:join',_0x290504),this['_defaultCallbacks']['set']('formatInline:chain',_0x285713),this['_defaultCallbacks']['set']('formatBlock:accept',_0x468646),this['_defaultCallbacks']['set']('formatBlock:discard',_0x285713),this['_defaultCallbacks']['set']('formatBlock:join',_0x290504),this['_defaultCallbacks']['set']('formatBlock:chain',_0x285713),this['_defaultCallbacks']['set']('attribute:accept',_0x285713),this['_defaultCallbacks']['set']('attribute:discard',(_0x35453b,_0x443436)=>{if(!_0x443436)return;const _0x2bfbe4=this['_editor']['plugins']['get'](_0x3a1f76);this['_model']['change'](_0x29ff68=>{if(_0x443436['key']==Ft)for(const _0x1500f7 of _0x35453b){const _0x46b666=_0x1500f7['start']['nodeAfter'],_0x2aacc7=_0x443436['oldValue'];_0x29ff68['rename'](_0x46b666,_0x2aacc7);}else{if(_0x2bfbe4['isBlockAttribute'](_0x443436['key'])){for(const _0x34c744 of _0x35453b)void 0x0!==_0x443436['oldValue']?_0x29ff68['setAttribute'](_0x443436['key'],_0x443436['oldValue'],_0x34c744['start']['nodeAfter']):_0x29ff68['removeAttribute'](_0x443436['key'],_0x34c744['start']['nodeAfter']);}else{for(const _0xd1b8d5 of _0x35453b)_0x443436['oldValue']?_0x29ff68['setAttribute'](_0x443436['key'],_0x443436['oldValue'],_0xd1b8d5):_0x29ff68['removeAttribute'](_0x443436['key'],_0xd1b8d5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x290504);}}function Dt(_0xbc6fd6,_0x1caa2d,_0x2ce1e8){for(const _0x51f084 of _0x1caa2d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51f084['root']==_0x51f084)return!0x1;if(!_0x2ce1e8['containsItem'](_0x51f084))return!0x1;if(_0xbc6fd6['isObject'](_0x51f084)||_0xbc6fd6['isLimit'](_0x51f084))return!0x0;}return!0x1;}function vt(_0x1eee14){return _0x1eee14['end']['parent']==_0x1eee14['start']['nodeAfter']&&_0x1eee14['end']['isAtStart'];}function xt(_0x1e4ca0,_0x4e13cf,_0x1451a3,_0x3dc4c2){const _0x1b52e0=_0xceede1=>!_0xceede1['item']['is']('$textProxy')&&!_0x3dc4c2['isObject'](_0xceede1['item']),_0x416295=_0x1e4ca0['start']['getLastMatchingPosition'](_0x1b52e0),_0x17f8e5=_0x1e4ca0['end']['getLastMatchingPosition'](_0x1b52e0,{'direction':'backward'});return(!_0x1e4ca0['start']['isEqual'](_0x416295)||!_0x1e4ca0['end']['isEqual'](_0x17f8e5))&&(_0x416295['isBefore'](_0x17f8e5)?_0x1451a3['updateMarker'](_0x4e13cf,{'range':_0x1451a3['createRange'](_0x416295,_0x17f8e5)}):_0x1451a3['removeMarker'](_0x4e13cf),!0x0);}function Pt(_0x3b3512){return _0x8ab510(_0x3b3512);}function Ut(_0x4c06b5){const _0x33f34f=_0x4c06b5['start']['nodeAfter'];return _0x33f34f&&_0x33f34f['is']('element');}function Gt(_0x1c922f){return vt(_0x1c922f)||function(_0x21bcab){return _0x21bcab['start']['parent']==_0x21bcab['end']['nodeBefore']&&_0x21bcab['start']['isAtEnd'];}(_0x1c922f);}function Ht(_0x54dc2e,_0x4dd337){try{const _0x269de7=_0x54dc2e['getRange']();for(const _0xc5472e of _0x4dd337)if(_0x54dc2e!==_0xc5472e&&_0x269de7&&_0x269de7['isIntersecting'](_0xc5472e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x328149,_0x379319){return null==_0x328149['end']['nodeBefore']&&_0x328149['end']['parent']==_0x328149['start']['nodeAfter']?Vt(_0x328149['start']['nodeAfter'],_0x379319):_0x328149;}function Vt(_0x199056,_0x56f9c5){const _0x85e5f0=_0x56f9c5['schema']['isObject'](_0x199056)||_0x56f9c5['schema']['isSelectable'](_0x199056);return _0x56f9c5['createRange'](_0x56f9c5['createPositionAt'](_0x199056,'before'),_0x85e5f0?_0x56f9c5['createPositionAfter'](_0x199056):_0x56f9c5['createPositionAt'](_0x199056,'end'));}function Wt(_0x13b6e3,_0x53b4db,_0x3216c6,_0xfd4a7d){return!!jt(_0x13b6e3,_0x53b4db)&&_0x3216c6['end']['isEqual'](_0xfd4a7d['start']);}function jt(_0x4b238c,_0xf420c0){if(!_0x4b238c['_isDataLoaded']||!_0xf420c0['_isDataLoaded'])return!0x1;const _0x517c3e=new Set(Object['keys'](_0x4b238c['attributes'])),_0x8d9b7d=new Set(Object['keys'](_0xf420c0['attributes']));if(_0x517c3e['delete']('groupId'),_0x8d9b7d['delete']('groupId'),0x0==_0x517c3e['size']&&0x0==_0x8d9b7d['size'])return!0x0;if(_0x517c3e['size']!=_0x8d9b7d['size'])return!0x1;const _0x3d8b1d={..._0x4b238c['attributes']},_0xdc1957={..._0xf420c0['attributes']};return delete _0x3d8b1d['groupId'],delete _0xdc1957['groupId'],JSON['stringify'](_0x3d8b1d)==JSON['stringify'](_0xdc1957);}function zt(_0x591784,_0x447d13){const _0x35e614=Kt(_0x591784['attributes']),_0xe79464=Kt(_0x447d13);if(!_0x591784['_isDataLoaded'])return!0x1;for(const _0x45705b of Object['keys'](_0xe79464))if(!st(_0x35e614[_0x45705b],_0xe79464[_0x45705b]))return!0x1;return!0x0;}function Kt(_0x4f7a7e){const _0x500d60=Object['assign']({},_0x4f7a7e);return delete _0x500d60['skipNestingCheck'],delete _0x500d60['tablePasteChainId'],_0x500d60;}function Xt(_0x15e523){return _0x15e523['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4ad4da(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ba525,_0x51a43a,_0x4910a0,_0x19c9a9){super(),this['model']=_0x51a43a,this['view']=_0x4910a0,this['commentThreadController']=_0x19c9a9,this['_editor']=_0x4ba525,this['_acceptCommand']=_0x4ba525['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ba525['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x545d9a,_0x5609a2)=>_0x545d9a||_0x5609a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x335d19=>_0x335d19&&this['_editor']['model']['canEditAt'](_0x51a43a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56fe33=>_0x56fe33&&this['_editor']['model']['canEditAt'](_0x51a43a['getRanges']())),this['_pendingAction']=null,_0x4910a0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4910a0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4910a0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4910a0,'change:isDirty',()=>{_0x4910a0['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 _0x6120f8=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x6120f8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x1d4965{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50b24e,_0x13c444,_0x10353e,_0x3291e9){super(_0x50b24e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2e66ab(_0x50b24e,Tt(_0x50b24e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x13c444['authoredAt']),this['bind']('authoredAt')['to'](_0x13c444),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',_0x13c444,'authoredAt',this,'descriptionParts',(_0x57333e,_0x46f42f,_0x11b139)=>{const _0x16d57d=_0x11b139['map'](_0x5a07ce=>ht(_0x5a07ce['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x57333e-0x1,_0x13c444['author']['name'],_0x46f42f?_0x3291e9['formatDateTime'](_0x46f42f):'',new DOMParser()['parseFromString'](_0x16d57d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2cde5a(),this['focusTracker']=new _0x510f0b(),this['keystrokes']=new _0x144cb2(),this['focusCycler']=new _0x21f97f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46cd4a=>_0x46cd4a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x13c444,this['_localUser']=_0x10353e,this['_config']=_0x3291e9,_0x3291e9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x47cc6b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1584bc}=this['_config'];this['commentsListView']=new _0x1584bc(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',_0x348115=>_0x348115+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35890a,_0x4483db)=>_0x35890a||!!_0x4483db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f1c56}=this['_config'],_0x2bc919=new _0x5f1c56(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x164534=_0x2bc919['commentInputView'];return _0x2bc919['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x164534,'value',(_0x272cd0,_0x5ef22c,_0x5aba7a)=>!!_0x5aba7a||_0x272cd0&&!_0x5ef22c),_0x164534['on']('submit',(_0x45f474,_0x53e7a4)=>{this['fire']('addComment',_0x53e7a4),_0x164534['editor']['setData']('');}),_0x164534['on']('cancel',()=>this['focus']()),_0x164534['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2bc919;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x5b6852,_0xfa8c14,_0xfca969,_0x5a1305){super(_0x5b6852,_0xfa8c14,_0xfca969,_0x5a1305),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21ff8d=>_0x21ff8d&&_0x21ff8d[0x0]?_0x21ff8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2db4ef,_0x2445d6)=>{let _0x401a79='';for(const _0xdb8e7b of _0x2db4ef)_0x401a79+='<p>'+ht(_0xdb8e7b['content'],_0xdb8e7b['color'])+'</p>';return _0x2445d6?_0x401a79:_0x487fd4(_0x401a79,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a1305['SuggestionView'](_0x5b6852,_0xfa8c14,{'formatDateTime':_0x5a1305['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x237d3b=this['bindTemplate'],_0x2b5615=[this['suggestionView']];return this['commentsListView']&&_0x2b5615['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2b5615['push'](this['commentThreadInputView']),_0x2b5615['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x237d3b['if']('isActive','ck-suggestion-wrapper--active'),_0x237d3b['to']('type',_0x59c2bf=>'ck-suggestion-'+_0x59c2bf),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':_0x237d3b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2b5615};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class SuggestionView extends _0x1d4965{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23ce49,_0xe1a6fb,_0x241850){super(_0x23ce49),this['_model']=_0xe1a6fb,this['_config']=_0x241850,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe1a6fb),this['acceptButton']=this['_createButton'](Tt(_0x23ce49,'Accept\x20suggestion'),_0x52f1a9,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x23ce49,'Discard\x20suggestion'),_0x2ee486,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xa2432f(_0x23ce49,_0xe1a6fb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2cde5a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x510f0b(),this['keystrokes']=new _0x144cb2(),this['focusCycler']=new _0x21f97f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3d8659=>_0x3d8659['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9ec493=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9ec493['innerHTML']=this['description'],this['on']('change:description',(_0x2b09da,_0x342bf6,_0x485f6c)=>{_0x9ec493['innerHTML']=_0x485f6c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x384708=this['bindTemplate'],_0x31fbc3=[{'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':_0x384708['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x384708['to']('authoredAt',_0x8d7788=>this['_config']['formatDateTime'](_0x8d7788))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x31fbc3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x31fbc3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2834fa,_0x5ce3f8,_0x2494bf,_0x4aba6d,_0x4f196b){const _0x1b0e0a=new _0x34b590(this['locale']);return _0x1b0e0a['set']({'label':_0x2834fa,'icon':_0x5ce3f8,'tooltip':!0x0,'tooltipPosition':_0x4f196b}),_0x1b0e0a['extendTemplate']({'attributes':{'class':_0x2494bf}}),_0x1b0e0a['on']('execute',()=>{this['fire'](_0x4aba6d,this['_model']['id']);}),_0x1b0e0a;}['_setupKeyboardNavigation'](){const _0x1b4220=this['element'];this['keystrokes']['listenTo'](_0x1b4220);for(const _0xbb4e94 of this['focusables'])this['focusTracker']['add'](_0xbb4e94['element']),this['keystrokes']['listenTo'](_0xbb4e94['element']);this['keystrokes']['set']('enter',(_0x1ab78a,_0x271964)=>{_0x1b4220===_0x1ab78a['target']&&(this['focusCycler']['focusFirst'](),_0x271964());}),this['keystrokes']['set']('esc',(_0x3e2911,_0x25d629)=>{_0x1b4220!==_0x3e2911['target']&&(this['focus'](),_0x25d629());});}}class TrackChangesUI extends _0x3cecf3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x519d42,_0x3aec4d,_0x3a1a56,_0x334083];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d7fb){super(_0x10d7fb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x39f39b=this['editor']['config'];_0x39f39b['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x39f39b['define']('trackChanges.SuggestionView',SuggestionView),_0x39f39b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x39f39b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b11a5,_0x223fe4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cf7e8,_0x1e3432]of this['_handleControllerBuffer']){const _0x198d4b=this['_suggestionToController']['has'](_0x4cf7e8);_0x198d4b||_0x1e3432?_0x198d4b&&_0x1e3432&&this['_destroyController'](_0x4cf7e8):this['_initializeController'](_0x4cf7e8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x334083)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b11a5,_0x223fe4);}['init'](){const _0x1d3a27=this['editor'],_0x3eaf7c=_0x1d3a27['plugins']['get'](TrackChangesEditing),_0x42577a=_0x1d3a27['plugins']['get'](_0x3a1a56),_0x205d70=_0x1d3a27['plugins']['get'](_0x334083),_0x4022e1=_0x1d3a27['plugins']['get'](_0x3aec4d);this['_addUIComponentsToFactory'](),_0x205d70['addSourceCollector'](()=>{const _0x1b9ac5=[];for(const [_0x37fcf2,_0x3517fb]of Array['from'](this['_suggestionToController'])){const _0x37e050=_0x37fcf2['getAllAdjacentSuggestions'](),_0x163d70=[];for(const _0x5775af of _0x37e050){if(!_0x5775af['isInContent'])continue;if(_0x5775af['isMultiRange']){_0x163d70['push'](..._0x5775af['getRanges']());continue;}const _0x4eb330=_0x5775af['getFirstRange']();if(_0x163d70['length']>0x0){const _0x534a85=_0x163d70[0x0]['getJoined'](_0x4eb330);if(_0x534a85){_0x163d70[0x0]=_0x534a85;continue;}}_0x163d70['push'](_0x4eb330);}_0x1b9ac5['push']([_0x3517fb['view'],_0x163d70]);}return _0x1b9ac5;}),this['listenTo'](_0x3eaf7c,'suggestionLoaded',(_0x5ab11d,_0x594529)=>{this['listenTo'](_0x594529,'change:previous',(_0x31811a,_0x3d6ea6,_0x1626d,_0x1c3404)=>{_0x594529['isInContent']&&(null==_0x1626d?(this['_updateController'](_0x1c3404['head']),this['_handleSuggestionControllerDelayed'](_0x594529,!0x1)):(this['_updateController'](_0x1626d['head']),null==_0x1c3404&&this['_handleSuggestionControllerDelayed'](_0x594529,!0x0)));}),null!==_0x594529['previous']?this['_updateController'](_0x594529['head']):this['_handleSuggestionControllerDelayed'](_0x594529,!0x1);}),this['listenTo'](_0x3eaf7c,'suggestionUnloaded',(_0xe9a1cf,_0x1e754b,_0x163275)=>{this['stopListening'](_0x1e754b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1e754b),this['_suggestionToController']['has'](_0x1e754b)&&this['_destroyController'](_0x1e754b),_0x163275&&this['_updateController'](_0x163275['head']);}),this['listenTo'](_0x3eaf7c,'suggestionChanged',(_0x3cc3e4,_0x2f1b35)=>{this['_updateController'](_0x2f1b35);}),this['listenTo'](_0x42577a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4022e1,'addComment',(_0x4c532e,{threadId:_0x59e896,isFromAdapter:_0x27720b})=>{if(_0x27720b||!_0x3eaf7c['hasSuggestion'](_0x59e896))return;const _0x23a1b6=_0x3eaf7c['getSuggestion'](_0x59e896);this['_suggestionToController']['get'](_0x23a1b6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x138ab7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24f62c;for(const _0x1ccc0a in _0x138ab7){const _0x5d1979=_0x1ccc0a,_0x1bde6e=_0x138ab7[_0x5d1979];if('trackChangesLicenseKeyValid'==_0x1bde6e||'trackChangesLicenseKeyInvalid'==_0x1bde6e||'trackChangesLicenseKeyExpired'==_0x1bde6e||'trackChangesLicenseKeyDomainLimit'==_0x1bde6e||'trackChangesLicenseKeyNotAllowed'==_0x1bde6e||'trackChangesLicenseKeyEvaluationLimit'==_0x1bde6e||'trackChangesLicenseKeyUsageLimit'==_0x1bde6e){delete _0x138ab7[_0x5d1979],_0x24f62c=_0x1bde6e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24f62c&&_0x138ab7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24f62c&&_0x138ab7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24f62c&&_0x138ab7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2afa46){const _0x55dd19=this['_suggestionToController']['get'](_0x2afa46);if(!_0x55dd19)return null;return this['editor']['plugins']['get'](_0x3a1a56)['getByInnerView'](_0x55dd19['view'])||null;}['getSuggestionForAnnotation'](_0x4b3843){const _0x4b9ae2=this['_viewToController']['get'](_0x4b3843['innerView']);return _0x4b9ae2?_0x4b9ae2['model']:null;}['_refreshActiveMarkers'](){const _0x2cdf01=this['editor']['plugins']['get'](_0x3a1a56),_0x12edda=this['editor']['plugins']['get'](TrackChangesEditing),_0x4fe7d=Array['from'](_0x2cdf01['activeAnnotations'],_0x49e818=>_0x49e818['innerView'])['filter'](_0x43cd38=>this['_viewToController']['has'](_0x43cd38)),_0x2baab0=[];for(const _0xb3d933 of _0x4fe7d){const _0x4ae64a=this['_viewToController']['get'](_0xb3d933)['model']['getAllAdjacentSuggestions']();_0x2baab0['push'](..._0x4ae64a['reduce']((_0x1dfeb1,_0x31b8d0)=>[..._0x1dfeb1,..._0x31b8d0['getMarkerNames']()],[]));}_0x12edda['activeMarkers']=_0x2baab0;}['_addUIComponentsToFactory'](){const _0x2b483d=this['editor'],_0x19751a=_0x2b483d['locale'],_0x305e16=Tt(_0x19751a,'Track\x20changes'),_0x300224=new _0x4eedf8([{'type':'switchbutton','model':new _0x4bcee2({'withText':!0x0,'isToggleable':!0x0,'label':_0x305e16,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b483d['plugins']['has']('TrackChangesPreview')&&_0x300224['addMany']([{'type':'separator'},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x48354e of _0x300224)if(Yt(_0x48354e)){const _0x4512a6=_0x2b483d['commands']['get'](_0x48354e['model']['commandName']);_0x48354e['model']['bind']('isOn','isEnabled')['to'](_0x4512a6,'value','isEnabled');}_0x2b483d['ui']['componentFactory']['add']('trackChanges',_0x2d2b9d=>this['_createToolbarButton'](_0x2d2b9d,_0x300224,_0x305e16)),_0x2b483d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26f91b=>this['_createMenuBarMenu'](_0x26f91b,_0x300224,_0x305e16));}['_createToolbarButton'](_0x5cd07e,_0x1de135,_0x2e38fc){const _0x436862=_0x427557(_0x5cd07e,_0x1277f5),_0x10d200=this['editor']['commands']['get']('trackChanges');_0x436862['buttonView']['set']({'tooltip':_0x2e38fc,'label':_0x2e38fc,'icon':_0x26eeb4}),_0x436862['buttonView']['bind']('isOn')['to'](_0x10d200,'value'),_0x436862['buttonView']['on']('execute',()=>{_0x10d200['execute'](),this['editor']['editing']['view']['focus']();}),_0x25df39(_0x436862,_0x1de135,{'role':'menu'});const _0x15c7cc=[];for(const _0x1dbb44 of _0x1de135)Yt(_0x1dbb44)&&_0x15c7cc['push'](this['editor']['commands']['get'](_0x1dbb44['model']['commandName']));const _0x373737=_0x436862['buttonView'];return _0x373737['actionView']['unbind']('isEnabled'),_0x373737['arrowView']['unbind']('isEnabled'),_0x373737['actionView']['bind']('isEnabled')['to'](_0x10d200,'isEnabled'),_0x373737['arrowView']['bind']('isEnabled')['toMany'](_0x15c7cc,'isEnabled',(..._0x42c311)=>_0x42c311['some'](_0x26a959=>_0x26a959)),_0x436862['on']('execute',_0x565232=>{this['editor']['execute'](_0x565232['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x436862;}['_createMenuBarMenu'](_0x31c0c5,_0x6d610b,_0x346cc8){const _0x572f89=new _0x329c9d(_0x31c0c5),_0x36e16f=this['editor']['commands']['get']('trackChanges');_0x572f89['buttonView']['set']({'label':_0x346cc8,'icon':_0x26eeb4});const _0x1c306e=new _0x45ae9b(_0x31c0c5);for(const _0x37a7be of _0x6d610b){if('separator'==_0x37a7be['type']){_0x1c306e['items']['add'](new _0x115fe3(_0x31c0c5));continue;}const _0x2ccb00=new _0x1992a8(_0x31c0c5,_0x572f89),_0x54fa66=new _0x3e12cd(_0x31c0c5),_0x360564=_0x37a7be['model'];_0x54fa66['bind'](...Object['keys'](_0x360564))['to'](_0x360564),_0x54fa66['delegate']('execute')['to'](_0x572f89),_0x54fa66['on']('execute',()=>{this['editor']['execute'](_0x360564['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ccb00['children']['add'](_0x54fa66),_0x1c306e['items']['add'](_0x2ccb00);}return _0x572f89['bind']('isEnabled')['to'](_0x36e16f,'isEnabled'),_0x572f89['panelView']['children']['add'](_0x1c306e),_0x572f89;}['_initializeController'](_0x1e6e22){const _0x5b5394=this['editor'],_0x58b433=_0x5b5394['config'],_0x289092=_0x5b5394['plugins']['get'](_0x3a1a56),_0x56b286=_0x5b5394['plugins']['get'](_0x3aec4d),_0x151172=_0x5b5394['plugins']['get'](_0x334083),_0x4bc849=_0x5b5394['plugins']['get'](_0x519d42)['me'],_0x11951e=_0x58b433['get']('trackChanges')['SuggestionThreadView'],_0x433012=_0x58b433['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x590b33,CommentThreadInputView:_0x27151b}=_0x5b5394['plugins']['get']('CommentsUI');let _0x431884,_0xeb2954,_0x3644ac;this['_annotationViews']['has'](_0x1e6e22['id'])?(_0xeb2954=this['_annotationViews']['get'](_0x1e6e22['id']),_0x431884=_0xeb2954['mainView']):(_0x431884=new _0x11951e(_0x5b5394['locale'],_0x1e6e22,_0x4bc849,{'disableComments':this['_disableComments'],'editorConfig':{..._0x58b433['get']('comments.editorConfig'),'licenseKey':_0x58b433['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x58b433['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58b433['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58b433['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ae8ac(_0x58b433['get']('locale'),_0x5b5394['locale']),'CommentView':_0x58b433['get']('comments')['CommentView'],'CommentsListView':_0x590b33,'CommentThreadInputView':_0x27151b,'SuggestionView':_0x433012}),_0x431884['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b5394['editing']['view']['focus']();}),_0x431884['suggestionView']['discardButton']['on']('execute',()=>{_0x5b5394['editing']['view']['focus']();}),_0xeb2954=_0x289092['createAnnotationView'](this['editor']['locale'],_0x431884),_0xeb2954['bind']('isDirty')['to'](_0x431884,'isDirty'),_0xeb2954['bind']('length')['to'](_0x431884),_0xeb2954['bind']('type')['to'](_0x431884,'type',_0x20f634=>'suggestion-'+_0x20f634),_0x431884['on']('escape',()=>{_0x3644ac['fire']('escape');}),this['_annotationViews']['set'](_0x1e6e22['id'],_0xeb2954));const _0x5b37b2=_0x56b286['createCommentThreadController'](_0x1e6e22['commentThread'],_0x431884),_0x5c1bff=new SuggestionController(_0x5b5394,_0x1e6e22,_0x431884,_0x5b37b2),_0x528bdb=_0x1e6e22['getAllAdjacentSuggestions']()['filter'](_0x457948=>_0x457948['isInContent']);_0x431884['descriptionParts']=_0x5b5394['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x528bdb),this['_suggestionToController']['set'](_0x1e6e22,_0x5c1bff),this['_viewToController']['set'](_0x431884,_0x5c1bff);const _0x1227f4=()=>{const _0x5bfdc1=[],_0x907ff3=_0x1e6e22['getAllAdjacentSuggestions']()['filter'](_0x3593db=>_0x3593db['isInContent']);for(const _0x298d60 of _0x907ff3)_0x5bfdc1['push'](..._0x298d60['getMarkers']());return _0x4c4f2f(_0x5b5394['editing'],_0x5bfdc1);};_0x3644ac=_0x289092['createAnnotation']({'view':_0xeb2954,'target':_0x1227f4,'type':()=>'suggestion-'+_0x5c1bff['view']['type'],'isVisible':!!_0x1227f4()}),_0x56b286['_bindAnnotationToEditors'](_0x431884,_0x3644ac),_0x289092['add'](_0x3644ac),_0x151172['registerAnnotation'](_0x3644ac);}['_destroyController'](_0x4a777f){const _0x23d3d3=this['editor']['plugins']['get'](_0x3aec4d),_0x33f40d=this['editor']['plugins']['get'](_0x3a1a56),_0xfb9e40=this['_suggestionToController']['get'](_0x4a777f),_0x5de593=_0xfb9e40['view'],_0xdfed05=_0x33f40d['getByInnerView'](_0x5de593);_0x23d3d3['_unbindEditors'](_0x5de593),_0xdfed05&&_0x33f40d['remove'](_0xdfed05),this['_suggestionToController']['delete'](_0x4a777f),this['_viewToController']['delete'](_0x5de593),_0xfb9e40['destroy']();}['_updateController'](_0xe23cd2){if(!_0xe23cd2['isInContent']||!this['_suggestionToController']['has'](_0xe23cd2))return;const _0x51f1ff=this['editor']['plugins']['get'](TrackChangesEditing),_0x350d88=this['_suggestionToController']['get'](_0xe23cd2),_0x201617=_0xe23cd2['getAllAdjacentSuggestions']();_0x350d88['view']['descriptionParts']=_0x51f1ff['descriptionFactory']['getDescriptions'](_0x201617);}['destroy'](){for(const _0x4e6219 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4e6219);for(const _0xe8b605 of this['_annotationViews']['values']())_0xe8b605['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x5866d0){return'model'in _0x5866d0;}class TrackChanges extends _0x3cecf3{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x381b09];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3cf8ab){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x3cf8ab;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x4c7ee2){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x4c7ee2);}['getSuggestions']({skipNotAttached:_0xc35bed=!0x1,toJSON:_0x45c12d=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0xc35bed,'toJSON':_0x45c12d});}['getSuggestion'](_0xef9bcd){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0xef9bcd);}}const qt=['Pagination'];class TrackChangesData extends _0x3cecf3{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ff26b=this['editor'];if(_0x3ff26b['config']['define']('trackChangesData.editorCreator',_0x25fdae=>{const _0x8a6a6=_0x3ff26b['model']['document']['getRootNames']()['reduce']((_0x5e7b2f,_0x835d83)=>(_0x5e7b2f[_0x835d83]='',_0x5e7b2f),{});return _0x3ff26b['constructor']['create'](_0x8a6a6,_0x25fdae);}),'function'!=typeof _0x3ff26b['config']['get']('trackChangesData')['editorCreator'])throw new _0xf305a4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cb59b){return Zt(this['editor'],!0x0,_0x4cb59b);}['getDataWithDiscardedSuggestions'](_0x286028){return Zt(this['editor'],!0x1,_0x286028);}}class TrackChangesDataGetter extends _0x3cecf3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x288249){function _0x17486b(_0x231e0d){return _0x231e0d['map'](_0x337902=>String['fromCharCode'](_0x337902))['join']('');}super(_0x288249),this['result']='end',_0x288249[_0x17486b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17486b([0x76,0x69,0x65,0x77])][_0x17486b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17486b([0x61,0x75,0x74,0x6f]),_0x288249[_0x17486b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17486b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17486b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17486b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17486b([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Qt(_0x3ccc5c){return void 0x0!==_0x3ccc5c['getRootsAttributes'];}async function Zt(_0x890728,_0x2d0564,_0x3f8f92){const _0x2cad34=_0x32a910(_0x890728,qt);if(_0x2cad34['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x890728)){_0x2cad34['roots']=Object['create'](null);for(const _0x496f35 of _0x890728['model']['document']['getRootNames']())_0x2cad34['roots'][_0x496f35]={'modelAttributes':_0x890728['getRootAttributes'](_0x496f35)};}const _0x3f1e90=document['createDocumentFragment'](),_0x338451=_0x890728['config']['get']('trackChangesData')['editorCreator'],_0x2c7021=await _0x338451(_0x2cad34,()=>function(_0x83e5bc){const _0x53d1c3=document['createElement']('div');return _0x83e5bc['appendChild'](_0x53d1c3),_0x53d1c3;}(_0x3f1e90));!function(_0x17cece,_0x2aaff8){const _0x360544=_0x17cece['model']['document']['getRootNames']()['reduce']((_0x60dc69,_0x1aefa1)=>(_0x60dc69[_0x1aefa1]=_0x17cece['data']['get']({'rootName':_0x1aefa1}),_0x60dc69),{}),_0x3b87ae=_0x17cece['plugins']['get']('Users')['users']['map'](_0x25593e=>({'id':_0x25593e['id'],'name':_0x25593e['name']})),_0x2f8a27=_0x17cece['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36bc4a=_0x17cece['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6c71c5=_0x2aaff8['plugins']['get']('Users'),_0x2a454a=_0x2aaff8['plugins']['get']('TrackChangesEditing'),_0x5c3ff5=_0x2aaff8['plugins']['get']('CommentsRepository');for(const _0x629d43 of _0x5c3ff5['getCommentThreads']())_0x629d43['remove']();for(const _0x117ba3 of _0x3b87ae)_0x6c71c5['getUser'](_0x117ba3['id'])||_0x6c71c5['addUser'](_0x117ba3);_0x6c71c5['me']||_0x6c71c5['useAnonymousUser']();for(const _0x1fb8b4 of _0x36bc4a)_0x5c3ff5['addCommentThread'](_0x1fb8b4);for(const _0x4c5476 of _0x2f8a27)_0x2a454a['addSuggestionData'](_0x4c5476);_0x2aaff8['data']['set'](_0x360544);}(_0x890728,_0x2c7021),_0x2c7021['execute'](_0x2d0564?'acceptAllSuggestions':'discardAllSuggestions');const _0x20d586=Qt(_0x2c7021)?_0x2c7021['getFullData'](_0x3f8f92):_0x2c7021['data']['get'](_0x3f8f92);return await _0x2c7021['destroy'](),_0x20d586;}class TrackChangesPreviewView extends _0x1d4965{['options'];constructor(_0x40238e,_0x39c8a4){super(_0x40238e),this['options']=_0x39c8a4,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'](_0x1133a3,_0x8e8909){if(!this['element'])return;const _0xd540a4=[];for(const [_0x2c29fa,_0x18b169]of _0x1133a3){const _0x48d1bd=document['createElement']('div');_0x48d1bd['setAttribute']('data-ck-root-name',_0x2c29fa),_0x48d1bd['className']=_0x18b169['classes']+'\x20ck-track-changes-preview__root-container',_0x48d1bd['innerHTML']=_0x18b169['content'],_0xd540a4['push'](_0x48d1bd);}_0x8e8909(this['element'],_0xd540a4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x3a2e57{constructor(_0x7cb824){super(_0x7cb824),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x51f070=this['editor'],_0x24f70d=_0x51f070['locale'],_0x5a3aa5=_0x51f070['plugins']['get']('Dialog');let _0x560ce9;const _0x22daf3=function(_0x871815){const _0xe3345f={};if('editables'in _0x871815['ui']['view']){for(const [_0x537590,_0x8f7adc]of Object['entries'](_0x871815['ui']['view']['editables']))_0xe3345f[_0x537590]=_0x8f7adc['element'];}else _0xe3345f[_0x871815['model']['document']['getRootNames']()[0x0]]=_0x871815['ui']['view']['editable']['element'];return _0xe3345f;}(_0x51f070),_0x5cf18e=function(_0x2440b6){let _0x3d4e9f=0x0;for(const _0x516677 of Object['values'](_0x2440b6))_0x3d4e9f=Math['max'](_0x3d4e9f,_0x516677['getBoundingClientRect']()['width']);let _0x3e0bad=0x0;for(const _0x25f965 of Object['values'](_0x2440b6))_0x3e0bad+=_0x25f965['getBoundingClientRect']()['height'];const _0x1c1533=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x579d2d=Math['min'](_0x3e0bad,_0x1c1533);return{'width':_0x3d4e9f,'height':_0x579d2d};}(_0x22daf3);_0x5a3aa5['show']({'id':'finalContentPreview','title':Tt(_0x24f70d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x24f70d,{'dialogRects':_0x5cf18e}),'onHide':()=>{_0x560ce9['detachFromDom']();},'onShow':()=>{_0x51f070['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3c2f64=>{const _0x48d860=this['_standarizeRootsData'](_0x3c2f64,_0x51f070,_0x22daf3);_0x5a3aa5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x48d860,_0x51f070['config']['get']('trackChanges.preview.renderFunction'));}),_0x560ce9=new _0xeff71e(_0x24f70d,[_0x5a3aa5['view']]),_0x560ce9['attachToDom'](),_0x560ce9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x51f070['once']('destroy',()=>{_0x560ce9['detachFromDom']();});const _0x1bad5e=_0x5a3aa5['view']['headerView']['class'];_0x5a3aa5['view']['headerView']['class']=_0x1bad5e?_0x1bad5e+'\x20ck-reset_all':'ck-reset_all',_0x5a3aa5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5a3aa5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4df602=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50c174=_0x4df602['previewMode'],_0x33ab37={};if('$labels'===_0x50c174){for(const _0xbeb724 of _0x4df602['getMergeFieldsIds']())_0x33ab37[_0xbeb724]=_0x4df602['getLabel'](_0xbeb724)||_0xbeb724;}else{const _0x24b006='$defaultValues'===_0x50c174?_0x4df602['getDefaultValues']():_0x4df602['getDataSetValues'](_0x50c174,!0x0);for(const _0x460bb2 of Object['entries'](_0x24b006)){const [_0x3cdd1f,_0x5c7751]=_0x460bb2;_0x33ab37[_0x3cdd1f]=null!==_0x5c7751?_0x5c7751:_0x4df602['getLabel'](_0x3cdd1f)||_0x3cdd1f;}}return{'mergeFieldsData':_0x33ab37};}['_standarizeRootsData'](_0x2683d5,_0x47cd9e,_0x2798fa){let _0x40bebc;if('string'==typeof _0x2683d5){const _0x52a04b=_0x47cd9e['model']['document']['getRootNames']()[0x0];_0x40bebc={[_0x52a04b]:_0x2683d5};}else _0x40bebc=_0x2683d5;const _0x251c23=this['_fixMediaEmbeds'](_0x40bebc,_0x47cd9e),_0x31af29=function(_0x989f23,_0x1a9b65){for(const [_0x4ea414,_0x335361]of _0x989f23)_0x335361['classes']=_0x1a9b65[_0x4ea414]['classList']['value']['replace']('ck-focused','');return _0x989f23;}(this['_sortRoots'](_0x47cd9e)['reduce']((_0xad1c9,_0x486372)=>(_0xad1c9['push']([_0x486372,{'content':_0x251c23[_0x486372],'classes':''}]),_0xad1c9),[]),_0x2798fa);return _0x31af29;}['_fixMediaEmbeds'](_0x4679f5,_0x3ef085){if(!_0x3ef085['plugins']['has']('MediaEmbedEditing'))return _0x4679f5;const _0x218c33=_0x3ef085['plugins']['get']('MediaEmbedEditing');for(const [_0x46578a,_0x2ceaf2]of Object['entries'](_0x4679f5)){const _0x386d99=document['createElement']('div');_0x386d99['innerHTML']=_0x2ceaf2,(_0x386d99['querySelectorAll']('figure.media')['forEach'](_0x13aa5b=>{const _0x22e6b2=_0x13aa5b['querySelector']('oembed');if(_0x22e6b2){const _0x3a6414=_0x22e6b2['getAttribute']('url');if(_0x3a6414){const _0x905c5e=_0x218c33['registry']['getMediaViewElement'](new et(_0x3ef085['editing']['view']['document']),_0x3a6414,{'elementName':'','renderForEditingView':!0x0}),_0x338f86=document['createElement']('div');_0x338f86['classList']['add']('ck-media__wrapper'),_0x905c5e['render'](_0x338f86,_0x3ef085['editing']['view']['domConverter']),_0x22e6b2['replaceWith'](_0x338f86);}}}),_0x4679f5[_0x46578a]=_0x386d99['innerHTML']);}return _0x4679f5;}['_sortRoots'](_0x33fc90){if(!function(_0x1429cb){return void 0x0!==_0x1429cb['getRootsAttributes'];}(_0x33fc90))return _0x33fc90['model']['document']['getRootNames']();const _0x1ec5ec=[],_0x331cd0=new Map();for(const _0x3e3ac3 of _0x33fc90['model']['document']['getRootNames']()){const _0x104807=_0x33fc90['editing']['view']['getDomRoot'](_0x3e3ac3)['getClientRects']()['item'](0x0);_0x1ec5ec['push'](_0x3e3ac3),_0x331cd0['set'](_0x3e3ac3,_0x104807);}return _0x1ec5ec['sort']((_0x1669ba,_0x490175)=>{const _0x3acd7b=_0x331cd0['get'](_0x1669ba),_0x33002c=_0x331cd0['get'](_0x490175);return _0x3acd7b['y']-_0x33002c['y']||_0x3acd7b['x']-_0x33002c['x'];}),_0x1ec5ec;}}class TrackChangesPreview extends _0x3cecf3{static get['requires'](){return[TrackChangesData,_0x1403a8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9d1659){super(_0x9d1659),_0x9d1659['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x9d1659['config']['define']('trackChanges.preview.renderFunction',(_0x40e5e5,_0x12c3b3)=>{for(const _0x347c9b of _0x12c3b3)_0x40e5e5['appendChild'](_0x347c9b);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
|