@ckeditor/ckeditor5-track-changes 48.2.0-alpha.2 → 48.2.0-alpha.4
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
|
-
_0x2aae75(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1322a4,_0x9141f9){super(),this['id']=_0x9141f9['id'],this['type']=_0x9141f9['type'],this['subType']=_0x9141f9['subType']||null,this['author']=_0x9141f9['author'],this['creator']=_0x9141f9['creator']||_0x9141f9['author'],this['isExternal']=Boolean(_0x9141f9['attributes']&&_0x9141f9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x9141f9['originalSuggestionId']||null,this['_model']=_0x1322a4,this['_onAccept']=_0x9141f9['onAccept'],this['_onDiscard']=_0x9141f9['onDiscard'],this['_onAttributesChange']=_0x9141f9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x9141f9['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 _0x442d0e=this;for(;_0x442d0e['previous'];)_0x442d0e=_0x442d0e['previous'];return _0x442d0e;}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'](_0x3e7a85){this['_markerNames']['add'](_0x3e7a85);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x55fa35=>this['_model']['markers']['get'](_0x55fa35))['filter'](_0x7cbd30=>_0x7cbd30);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46233f=>{for(const _0x2e3821 of this['getMarkers']())_0x46233f['removeMarker'](_0x2e3821);}),this['_markerNames']['clear']();}['removeMarker'](_0x28dbae){this['_model']['change'](_0x17e1e0=>{_0x17e1e0['removeMarker'](_0x28dbae);}),this['_markerNames']['delete'](_0x28dbae);}['addRange'](_0x404b4e){const _0x5f06ce='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x5f06ce),this['_model']['change'](_0x5810cc=>{_0x5810cc['addMarker'](_0x5f06ce,{'range':_0x404b4e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x396b0c){for(const _0x469236 of this['getRanges']())if(_0x469236['isIntersecting'](_0x396b0c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x29fc89=>_0x29fc89['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2b1876,_0x2c6826)=>[..._0x2b1876,..._0x2c6826['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1dbad3=this['getRanges']();if(0x1!=_0x1dbad3['length'])return null;const _0x39adf1=_0x1dbad3[0x0],_0x39a2a4=_0x39adf1['start']['nodeAfter'],_0xaeaf17=_0x39adf1['end']['nodeBefore'];return _0x39a2a4 instanceof _0x147f4b?_0x39a2a4!=_0xaeaf17?null:_0x39a2a4: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 _0x45de9e=[];let _0x4e7bb7=this['head'];for(;_0x4e7bb7;)_0x45de9e['push'](_0x4e7bb7),_0x4e7bb7=_0x4e7bb7['next'];return _0x45de9e;}['setAttribute'](_0x5f1188,_0x545149){const _0xa7dce0=nt(this['attributes']);it(_0xa7dce0,_0x5f1188,_0x545149),st(_0xa7dce0,this['attributes'])||(this['attributes']=_0xa7dce0,this['_onAttributesChange'](_0xa7dce0));}['removeAttribute'](_0x1eb1ac){const _0x1ebd51=nt(this['attributes']);rt(_0x1ebd51,_0x1eb1ac),st(_0x1ebd51,this['attributes'])||(this['attributes']=_0x1ebd51,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 _0x3c1805()['substr'](0x1,0x5);}}function Tt(_0x4269ef,_0x5200dd,_0x4d2f1d){const _0x30b078=_0x4269ef['t'],t=_0x4269ef['t'];switch(_0x5200dd){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',_0x4d2f1d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d2f1d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d2f1d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d2f1d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d2f1d);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',_0x4d2f1d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d2f1d);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',_0x4d2f1d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d2f1d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d2f1d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d2f1d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d2f1d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d2f1d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4d2f1d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d2f1d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d2f1d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d2f1d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d2f1d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d2f1d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d2f1d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d2f1d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d2f1d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d2f1d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d2f1d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4d2f1d);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'},_0x4d2f1d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4d2f1d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4d2f1d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d2f1d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d2f1d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d2f1d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d2f1d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d2f1d);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x4d2f1d);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'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'},_0x4d2f1d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d2f1d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d2f1d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d2f1d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d2f1d);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'},_0x4d2f1d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d2f1d);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'},_0x4d2f1d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4d2f1d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d2f1d);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'},_0x4d2f1d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d2f1d);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'},_0x4d2f1d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d2f1d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4d2f1d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4d2f1d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4d2f1d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d2f1d);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'},_0x4d2f1d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4d2f1d);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 _0x30b078({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4d2f1d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x30b078({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4d2f1d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d2f1d);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'},_0x4d2f1d);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'},_0x4d2f1d);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'},_0x4d2f1d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5200dd;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5f3f1f,_0x38b7ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5f3f1f,this['_locale']=_0x38b7ac;}['getDescriptions'](_0x3a657c){const _0x2b2358=[],_0x328a51=new Set(),_0x2b3acd=new Set();for(let _0x48de92=0x0;_0x48de92<_0x3a657c['length'];_0x48de92++){const _0x630962=_0x3a657c[_0x48de92];if(!_0x630962['isInContent'])continue;const _0x58c377=this['_handleCustomCallbackDescription'](_0x630962);if(_0x58c377){if(null!=_0x630962['subType']){if(_0x328a51['has'](_0x630962['subType']))continue;_0x328a51['add'](_0x630962['subType']);}_0x2b2358['push'](_0x58c377);}else{if('attribute'==_0x630962['type']){const _0x5c2a8f=_0x630962['data']['key'];if(_0x2b3acd['has'](_0x5c2a8f))continue;_0x2b3acd['add'](_0x630962['data']['key']),_0x5c2a8f==Bt?this['_handleRenameSuggestionDescription'](_0x2b2358,_0x630962):this['_handleAttributeSuggestionDescription'](_0x2b2358,_0x630962);continue;}'insertion'!=_0x630962['type']&&'deletion'!=_0x630962['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2b2358,_0x630962,_0x3a657c[_0x48de92+0x1]);}}return this['_resolveDescriptionItems'](_0x2b2358);}['registerDescriptionCallback'](_0x32a69e){this['_customCallbacks']['push'](_0x32a69e);}['registerElementLabel'](_0x18f913,_0x262b63,_0x53c853=_0x50db66['normal']){'function'==typeof _0x18f913?_0x3a2af2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18f913,'label':_0x262b63,'priority':_0x53c853}):this['_itemLabels']['set'](_0x18f913,_0x262b63);}['registerAttributeLabel'](_0x12da89,_0x598861){this['_attributeLabels']['set'](_0x12da89,_0x598861);}['getItemLabel'](_0x22682c,_0x211e2f=0x1){let _0x579e16;for(const _0x397f06 of this['_itemLabelsCallbacks'])if(_0x397f06['matchingCallback'](_0x22682c)){_0x579e16=_0x397f06['label'];break;}return _0x579e16||(_0x579e16=this['_itemLabels']['get'](_0x22682c['name'])),_0x579e16?_0x579e16(_0x211e2f):0x1!==_0x211e2f?_0x211e2f+'\x20'+_0x22682c['name']+'s':''+_0x22682c['name'];}['_addDescriptionItems'](_0x157070,_0x2bab63){const _0x50ed28=_0x2bab63['getFirstRange']()['getWalker'](),_0x3e5c2b='insertion'==_0x2bab63['type']?'add':'remove';for(const _0x5ba703 of _0x50ed28){const _0x4a3723=_0x5ba703['item'],_0x372813=_0x157070[_0x157070['length']-0x1];if(_0x4a3723['is']('$textProxy'))_0x372813&&_0x372813['type']['indexOf']('Container')>-0x1&&_0x157070['pop'](),_0x372813&&'text'==_0x372813['type']?_0x372813[_0x3e5c2b]+=_0x4a3723['data']:_0x157070['push']({'type':'text','add':'add'==_0x3e5c2b?_0x4a3723['data']:'','remove':'remove'==_0x3e5c2b?_0x4a3723['data']:''});else{if(this['_schema']['isObject'](_0x4a3723)){const _0x243b7e=_0x4a3723;if(_0x372813&&_0x372813['type']['indexOf']('Container')>-0x1&&_0x157070['pop'](),'elementEnd'==_0x5ba703['type'])continue;_0x372813&&_0x372813['type']==_0x3e5c2b+'Object'&&_0x372813['element']['name']==_0x243b7e['name']?_0x372813['quantity']++:_0x157070['push']({'type':_0x3e5c2b+'Object','element':_0x243b7e,'quantity':0x1}),_0x50ed28['skip'](_0x2c60b6=>!('elementEnd'==_0x2c60b6['type']&&_0x2c60b6['item']==_0x4a3723));}else{if(this['_schema']['checkChild'](_0x4a3723,'$text')||_0x4a3723['is']('element','softBreak')){const _0x2f6280=_0x4a3723;if('add'==_0x3e5c2b&&'elementStart'==_0x5ba703['type']||'remove'==_0x3e5c2b&&'elementEnd'==_0x5ba703['type'])continue;if(_0x372813&&-0x1==_0x372813['type']['indexOf']('Container')){'text'==_0x372813['type']&&(_0x372813[_0x3e5c2b]+='\x0a');continue;}let _0x538d0c;if(_0x538d0c='add'==_0x3e5c2b?_0x2f6280['nextSibling']&&!this['_schema']['isObject'](_0x2f6280['nextSibling'])?_0x2f6280['nextSibling']:null:_0x2f6280['previousSibling']&&!this['_schema']['isObject'](_0x2f6280['previousSibling'])?_0x2f6280['previousSibling']:null,_0x2f6280['isEmpty']||_0x538d0c&&_0x538d0c['isEmpty']){const _0x2e6643=_0x538d0c&&_0x538d0c['isEmpty']?_0x538d0c:_0x2f6280;_0x372813&&_0x372813['type']==_0x3e5c2b+'EmptyContainer'&&_0x372813['element']['name']==_0x2e6643['name']?_0x372813['quantity']++:_0x157070['push']({'type':_0x3e5c2b+'EmptyContainer','element':_0x2e6643,'quantity':0x1});}else _0x157070['push']({'type':_0x3e5c2b+'Container','element':_0x2f6280});}}}}}['_resolveDescriptionItems'](_0x2fb01a){const _0x53e289=this['_locale'],_0x23b9e4=[],_0x642f43=[],_0x50a49f=[];for(const _0x14cef8 of _0x2fb01a)switch(_0x14cef8['type']){case'text':if(_0x14cef8['add']=_0x14cef8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x14cef8['remove']=_0x14cef8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x14cef8['add']&&''!=_0x14cef8['remove']){_0x23b9e4['push']({'type':'replace','content':Tt(_0x53e289,'REPLACE_TEXT',['\x22'+_0x14cef8['remove']+'\x22','\x22'+_0x14cef8['add']+'\x22'])});continue;}if(null!=_0x14cef8['add']['match'](/^ +$/)){_0x23b9e4['push']({'type':'insertion','content':Tt(_0x53e289,'*Insert:*\x20%0',Tt(_0x53e289,'ELEMENT_SPACE',_0x14cef8['add']['length']))});continue;}if(null!=_0x14cef8['remove']['match'](/^ +$/)){_0x23b9e4['push']({'type':'deletion','content':Tt(_0x53e289,'*Remove:*\x20%0',Tt(_0x53e289,'ELEMENT_SPACE',_0x14cef8['remove']['length']))});continue;}if(''!=_0x14cef8['add']){_0x23b9e4['push']({'type':'insertion','content':Tt(_0x53e289,'*Insert:*\x20%0','\x22'+_0x14cef8['add']+'\x22')});continue;}_0x23b9e4['push']({'type':'deletion','content':Tt(_0x53e289,'*Remove:*\x20%0','\x22'+_0x14cef8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23b9e4['push']({'type':'insertion','content':Tt(_0x53e289,'*Insert:*\x20%0',this['getItemLabel'](_0x14cef8['element'],_0x14cef8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23b9e4['push']({'type':'deletion','content':Tt(_0x53e289,'*Remove:*\x20%0',this['getItemLabel'](_0x14cef8['element'],_0x14cef8['quantity']))});continue;case'addContainer':_0x23b9e4['push']({'type':'insertion','content':Tt(_0x53e289,'*Split:*\x20%0',this['getItemLabel'](_0x14cef8['element'],_0x14cef8['quantity']))});continue;case'removeContainer':_0x23b9e4['push']({'type':'deletion','content':Tt(_0x53e289,'*Merge:*\x20%0',this['getItemLabel'](_0x14cef8['element'],_0x14cef8['quantity']))});continue;case'addFormat':_0x642f43['push'](_0x14cef8['key']);continue;case'removeFormat':_0x50a49f['push'](_0x14cef8['key']);continue;default:_0x23b9e4['push'](_0x14cef8);}if(_0x642f43['length']){const _0x583cb7=_0x642f43['map'](_0x55f4be=>this['_attributeLabels']['has'](_0x55f4be)?this['_attributeLabels']['get'](_0x55f4be):_0x55f4be)['join'](',\x20');_0x23b9e4['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x583cb7)});}if(_0x50a49f['length']){const _0x20038f=_0x50a49f['map'](_0x1260a6=>this['_attributeLabels']['has'](_0x1260a6)?this['_attributeLabels']['get'](_0x1260a6):_0x1260a6)['join'](',\x20');_0x23b9e4['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x20038f)});}return _0x23b9e4;}['_handleCustomCallbackDescription'](_0x33260e){for(const _0xe5be39 of this['_customCallbacks']){const _0x38404f=_0xe5be39(_0x33260e);if(_0x38404f&&'type'in _0x38404f)return _0x38404f;}}['_handleAttributeSuggestionDescription'](_0x4f3ee6,_0x5a7cef){const _0xa39276=_0x5a7cef['data'],_0xc4c26e=void 0x0===_0xa39276['newValue']?'removeFormat':'addFormat';_0x4f3ee6['push']({'type':_0xc4c26e,'key':_0xa39276['key']});}['_handleRenameSuggestionDescription'](_0x4c9029,_0x391448){_0x4c9029['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x391448['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x659317,_0x150098,_0x2ba1df){if(this['_addDescriptionItems'](_0x659317,_0x150098),_0x2ba1df&&_0x2ba1df['getFirstRange']()&&!_0x150098['getFirstRange']()['end']['isEqual'](_0x2ba1df['getFirstRange']()['start'])){const _0x2bb78d=_0x659317[_0x659317['length']-0x1],_0x56e277='insertion'==_0x150098['type']?'add':'remove';_0x2bb78d&&'text'==_0x2bb78d['type']&&(_0x2bb78d[_0x56e277]+='\x0a');}}}class TrackChangesAIAssistant extends _0x4b9de5{['afterInit'](){const _0x87bfd3=this['editor'],_0x44bf51=_0x87bfd3['plugins']['get']('TrackChangesEditing');_0x87bfd3['commands']['get']('showAIAssistant')&&_0x44bf51['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x4b9de5{['afterInit'](){const _0x59cddf=this['editor'],_0xbb9bc6=_0x59cddf['plugins']['get']('TrackChangesEditing');_0x59cddf['commands']['get']('toggleAi')&&_0xbb9bc6['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x4b9de5{['afterInit'](){const _0xe52767=this['editor'],_0xc62608=_0xe52767['plugins']['get']('TrackChangesEditing');_0xe52767['commands']['get']('aiQuickAction')&&_0xc62608['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x4b9de5{['afterInit'](){const _0x1c886f=this['editor'],_0x1084b8=_0x1c886f['locale'];if(!_0x1c886f['plugins']['has']('AlignmentEditing'))return;const _0x4d1e79=_0x1c886f['plugins']['get']('TrackChangesEditing');_0x4d1e79['enableDefaultAttributesIntegration']('alignment'),_0x4d1e79['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x1084b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c76a9=this['editor'],_0x46cf02=_0x5c76a9['locale'];_0x5c76a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e2d04=>{if('formatBlock'!=_0x2e2d04['type'])return;const {data:_0x2d98d1}=_0x2e2d04;if(_0x2d98d1&&'alignment'==_0x2d98d1['commandName']){const _0x18b47e=_0x2d98d1['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x46cf02,'*Format:*\x20%0',function(_0x571873){switch(_0x571873){case'left':return Tt(_0x46cf02,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x46cf02,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x46cf02,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x46cf02,'FORMAT_JUSTIFY_TEXT');}}(_0x18b47e))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x4b9de5{['afterInit'](){const _0x1a65f9=this['editor'],_0x756a2f=_0x1a65f9['plugins']['get']('TrackChangesEditing'),_0x49de1d=_0x1a65f9['locale'];for(const _0x45fb47 of _t){if(!_0x1a65f9['plugins']['has'](_0x45fb47))continue;const _0x260d79=_0x45fb47['slice'](0x0,-0x7)['toLowerCase'](),_0xfeab0d='FORMAT_'+_0x260d79['toUpperCase']();_0x756a2f['enableDefaultAttributesIntegration'](_0x260d79),_0x756a2f['descriptionFactory']['registerAttributeLabel'](_0x260d79,Tt(_0x49de1d,_0xfeab0d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x586ade=this['editor'],_0x1d120b=_0x586ade['locale'],_0x45b85a=_0x586ade['plugins']['get']('TrackChangesEditing');function _0x163f64(_0x20ad28,_0x5dc570){_0x45b85a['descriptionFactory']['registerDescriptionCallback'](_0x1893c1=>{if('formatInline'!=_0x1893c1['type'])return;const {data:_0x30d9d8}=_0x1893c1;return _0x30d9d8&&_0x30d9d8['commandName']===_0x20ad28?_0x30d9d8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1d120b,'*Format:*\x20%0',_0x5dc570)}:{'type':'format','content':Tt(_0x1d120b,'*Remove\x20format:*\x20%0',_0x5dc570)}:void 0x0;});}_0x163f64('bold',Tt(_0x1d120b,'FORMAT_BOLD')),_0x163f64('italic',Tt(_0x1d120b,'FORMAT_ITALIC')),_0x163f64('underline',Tt(_0x1d120b,'FORMAT_UNDERLINE')),_0x163f64('code',Tt(_0x1d120b,'FORMAT_CODE')),_0x163f64('strikethrough',Tt(_0x1d120b,'FORMAT_STRIKETHROUGH')),_0x163f64('subscript',Tt(_0x1d120b,'FORMAT_SUBSCRIPT')),_0x163f64('superscript',Tt(_0x1d120b,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x4b9de5{['afterInit'](){const _0x5c8dab=this['editor'],_0x1dc97a=_0x5c8dab['locale'];if(!_0x5c8dab['plugins']['has']('BlockQuoteEditing'))return;const _0x3ebd1e=_0x5c8dab['plugins']['get']('TrackChangesEditing'),_0x359e2c=this['editor']['commands']['get']('blockQuote');_0x3ebd1e['enableCommand']('blockQuote',(_0x19cb16,_0x55349f={})=>{const _0x27951c=this['editor']['model']['document']['selection'],_0x2f716a=_0x55349f&&void 0x0!==_0x55349f['forceValue']?_0x55349f['forceValue']:!_0x359e2c['value'];let _0x2c6294=[];if(_0x2f716a){const _0x6201d9=Array['from'](_0x27951c['getSelectedBlocks']())['filter'](_0x1af4c6=>pt(_0x1af4c6)||function(_0x45167f,_0x576716){const _0x183ef7=_0x576716['createContext'](_0x45167f['parent']);if(!_0x576716['checkChild'](_0x183ef7,'blockQuote'))return!0x1;if(!_0x576716['checkChild'](_0x183ef7['push']('blockQuote'),_0x45167f))return!0x1;return!0x0;}(_0x1af4c6,this['editor']['model']['schema']));_0x2c6294=ft(_0x6201d9,_0x5c8dab['model']);}else{const _0x4bb8b9=Array['from'](_0x27951c['getSelectedBlocks']())['filter'](_0x3c131f=>pt(_0x3c131f));_0x2c6294=ft(_0x4bb8b9,_0x5c8dab['model']);}_0x5c8dab['model']['change'](()=>{for(const _0x393f0d of _0x2c6294)_0x3ebd1e['markBlockFormat'](_0x393f0d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2f716a}]});});}),_0x3ebd1e['descriptionFactory']['registerDescriptionCallback'](_0x2a3378=>{const {data:_0x2c79fd}=_0x2a3378;if(_0x2c79fd&&'blockQuote'==_0x2c79fd['commandName']){const _0x461538=Tt(_0x1dc97a,'ELEMENT_BLOCK_QUOTE');return _0x2c79fd['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1dc97a,'*Set\x20format:*\x20%0',_0x461538)}:{'type':'format','content':Tt(_0x1dc97a,'*Remove\x20format:*\x20%0',_0x461538)};}});}}function pt(_0x4f3ab8){return'blockQuote'==_0x4f3ab8['parent']['name'];}class TrackChangesBookmark extends _0x4b9de5{['afterInit'](){const _0x32ce9c=this['editor'],_0x3f0e05=_0x32ce9c['locale'],_0x2e8e0e=_0x32ce9c['plugins']['get']('TrackChangesEditing');_0x32ce9c['plugins']['has']('BookmarkEditing')&&(_0x2e8e0e['enableCommand']('insertBookmark'),_0x2e8e0e['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e8e0e['descriptionFactory']['registerDescriptionCallback'](_0x54f1df=>{if('insertion'!=_0x54f1df['type']&&'deletion'!=_0x54f1df['type']&&'attribute'!=_0x54f1df['type'])return;const _0x26b84c=_0x54f1df['getContainedElement']();if(null==_0x26b84c)return;if(!_0x26b84c['is']('element','bookmark'))return;const _0x411657=_0x26b84c['getAttribute']('bookmarkId');if('insertion'==_0x54f1df['type'])return{'type':'insertion','content':Tt(_0x3f0e05,'*Insert:*\x20%0','\x22'+_0x411657+'\x22\x20'+Tt(_0x3f0e05,'ELEMENT_BOOKMARK'))};if('deletion'==_0x54f1df['type'])return{'type':'deletion','content':Tt(_0x3f0e05,'*Remove:*\x20%0','\x22'+_0x411657+'\x22\x20'+Tt(_0x3f0e05,'ELEMENT_BOOKMARK'))};const {data:_0x3e12f0}=_0x54f1df;if(!_0x3e12f0||'bookmarkId'!=_0x3e12f0['key'])return;return{'type':'format','content':Tt(_0x3f0e05,'*Set\x20bookmark:*\x20%0','\x22'+_0x3e12f0['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x4b9de5{['afterInit'](){const _0x934ab4=this['editor'];_0x934ab4['plugins']['has']('CaseChange')&&(_0x934ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x934ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x934ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x4b9de5{['afterInit'](){const _0x6135ab=this['editor'];_0x6135ab['commands']['get']('ckbox')&&_0x6135ab['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x4b9de5{['afterInit'](){const _0x38463e=this['editor'];if(!_0x38463e['plugins']['has']('CodeBlock'))return;const _0x44ad3c=_0x38463e['plugins']['get']('TrackChangesEditing'),_0x427b42=_0x38463e['locale'],_0x4cb98c=_0x38463e['config']['get']('codeBlock')['languages'],_0x56d863=_0x38463e['commands']['get']('codeBlock');_0x44ad3c['enableCommand']('indentCodeBlock'),_0x44ad3c['enableCommand']('outdentCodeBlock'),_0x44ad3c['enableCommand']('codeBlock',(_0x14254e,_0x5ae03f={})=>{const _0x5390b9=_0x38463e['model'],_0x191690=_0x38463e['model']['document']['selection'],_0x383872=_0x5ae03f&&void 0x0!==_0x5ae03f['forceValue']?_0x5ae03f['forceValue']:!_0x56d863['value'];let _0x5458cd;_0x5ae03f['language']||(_0x5ae03f['language']=_0x4cb98c[0x0]['language']),_0x5458cd=_0x383872?Array['from'](_0x191690['getSelectedBlocks']())['filter'](_0xdacebd=>Ct(_0xdacebd)||function(_0x5cba11,_0x4e7e21){if(_0x5cba11['is']('rootElement')||_0x4e7e21['isLimit'](_0x5cba11))return!0x1;return _0x4e7e21['checkChild'](_0x5cba11['parent'],'codeBlock');}(_0xdacebd,_0x5390b9['schema'])):Array['from'](_0x191690['getSelectedBlocks']())['filter'](_0x200cbe=>Ct(_0x200cbe));const _0x328158=ft(_0x5458cd,_0x5390b9);_0x5390b9['change'](()=>{for(const _0xd8ec95 of _0x328158)_0x44ad3c['markBlockFormat'](_0xd8ec95,{'commandName':'codeBlock','commandParams':[{..._0x5ae03f,'forceValue':_0x383872}],'formatGroupId':'blockName'});});}),(_0x44ad3c['descriptionFactory']['registerElementLabel']('codeBlock',_0xf825d=>Tt(_0x427b42,'ELEMENT_CODE_BLOCK',_0xf825d)),_0x44ad3c['descriptionFactory']['registerDescriptionCallback'](_0x2098a9=>{if('formatBlock'!=_0x2098a9['type'])return;const _0x51225c=_0x427b42['t'],{data:_0x50be9e}=_0x2098a9;if(!_0x50be9e||'codeBlock'!=_0x50be9e['commandName'])return;const _0x4de98e=_0x50be9e['commandParams'][0x0]['language'],_0x8eb8e3=_0x51225c(_0x4cb98c['find'](_0x2ab1e1=>_0x2ab1e1['language']===_0x4de98e)['label'])['toLowerCase']();return _0x50be9e['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x427b42,'*Set\x20format:*\x20%0',Tt(_0x427b42,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x8eb8e3+')')}:{'type':'format','content':Tt(_0x427b42,'*Remove\x20format:*\x20%0',Tt(_0x427b42,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x54d7d9){return'codeBlock'==_0x54d7d9['name'];}class TrackChangesComments extends _0x4b9de5{['afterInit'](){const _0x1c1141=this['editor'];if(!_0x1c1141['plugins']['has']('CommentsEditing'))return;_0x1c1141['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x4b9de5{static get['requires'](){return[at];}['init'](){const _0x9f3cff=this['editor'],_0xcd08b0=_0x9f3cff['plugins']['get']('TrackChangesEditing');_0xcd08b0['enableCommand']('delete');const _0x1609e9=_0x9f3cff['commands']['get']('deleteForward');_0xcd08b0['enableCommand']('deleteForward',(_0x56e4fc,_0x58b086={})=>{const _0x4b6138=_0x9f3cff['model']['createSelection'](_0x9f3cff['model']['document']['selection']);_0x4b6138['isCollapsed']&&_0x9f3cff['model']['modifySelection'](_0x4b6138,{'direction':'forward','unit':_0x58b086['unit']});const _0x124283=_0x4b6138['getFirstRange'](),_0x1ace64=_0x39b3ef['fromRange'](_0x124283);let _0xb7dfa3;_0x56e4fc(_0x58b086),_0xb7dfa3='$graveyard'==_0x1ace64['root']['rootName']?_0x9f3cff['model']['createRange'](_0x124283['start']):_0x9f3cff['model']['createRange'](_0x1ace64['start'],_0x1ace64['end']),_0x1ace64['detach'](),_0x9f3cff['model']['enqueueChange'](_0x1609e9['buffer']['batch'],_0x24d311=>{_0x1609e9['buffer']['lock'](),_0x24d311['setSelection'](_0x24d311['createRange'](_0xb7dfa3['end'])),_0x1609e9['buffer']['unlock']();});});}}class TrackChangesList extends _0x4b9de5{['afterInit'](){const _0x396f57=this['editor'];if(!_0x396f57['plugins']['has']('ListEditing'))return;const _0x1f14ec=_0x396f57['locale'],_0xd1fe1a=_0x396f57['plugins']['get']('TrackChangesEditing'),_0x21127f=_0x396f57['plugins']['has']('TodoListEditing'),_0x40299b=!!_0x396f57['config']['get']('list.multiBlock');function _0x5a9997(_0x555bf4){return{'type':'format','content':''+Tt(_0x1f14ec,'*Set\x20format:*\x20%0',_0x555bf4)};}function _0x473e86(_0x47ec15){return{'type':'format','content':''+Tt(_0x1f14ec,'*Remove\x20format:*\x20%0',_0x47ec15)};}_0xd1fe1a['enableDefaultAttributesIntegration']('numberedList'),_0xd1fe1a['enableDefaultAttributesIntegration']('bulletedList'),_0xd1fe1a['enableDefaultAttributesIntegration']('customNumberedList'),_0xd1fe1a['enableDefaultAttributesIntegration']('customBulletedList'),_0xd1fe1a['enableDefaultAttributesIntegration']('indentList'),_0xd1fe1a['enableDefaultAttributesIntegration']('outdentList'),_0xd1fe1a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xd1fe1a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x40299b&&(_0xd1fe1a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xd1fe1a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x21127f&&(_0xd1fe1a['enableDefaultAttributesIntegration']('todoList'),_0xd1fe1a['enableDefaultAttributesIntegration']('checkTodoList'),_0xd1fe1a['descriptionFactory']['registerDescriptionCallback'](_0x404e42=>{const {data:_0x5423cc}=_0x404e42;if(_0x5423cc&&'todoListChecked'==_0x5423cc['key'])return{'type':'format','content':_0x5423cc['newValue']?Tt(_0x1f14ec,'*Check\x20item*'):Tt(_0x1f14ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3154de=>{if(_0x3154de['batch']['isUndo'])return!0x1;let _0x27e2cf=!0x1;const _0x10b97e=_0xd1fe1a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c33b=>'todoListChecked'===_0xd1fe1a['_getAttributeKey'](_0x22c33b));for(const _0x2ee448 of _0x10b97e){'todo'!=_0x2ee448['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xd1fe1a['_findSuggestions'](_0x2ee448['getFirstRange'](),'attribute')['find'](_0x33e601=>'listType'===_0xd1fe1a['_getAttributeKey'](_0x33e601['suggestion']))||(_0x3154de['removeMarker'](_0x2ee448['getFirstMarker']()),_0x27e2cf=!0x0));}return _0x27e2cf;})),_0xd1fe1a['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x1f14ec,'FORMAT_INDENT'));const _0x5ddb27={'type':'format','content':''};_0xd1fe1a['descriptionFactory']['registerDescriptionCallback'](_0x1a5f99=>{const {data:_0x287b63}=_0x1a5f99;if(!_0x287b63||'listType'!=_0x287b63['key'])return;let _0x1cf073=_0x1a5f99['head'];for(;_0x1cf073;){if(_0x1cf073['data']&&(('listStyle'==_0x1cf073['data']['key']||'listMarkerStyle'==_0x1cf073['data']['key'])&&(_0x1cf073['data']['newValue']&&'default'!=_0x1cf073['data']['newValue']||'default'!=_0x1cf073['data']['oldValue']&&!_0x287b63['newValue'])||!_0x40299b&&_0x1cf073['data']['key']==Bt))return _0x5ddb27;_0x1cf073=_0x1cf073['next'];}if(null==_0x287b63['newValue'])switch(_0x287b63['oldValue']){case'bulleted':return _0x473e86(Tt(_0x1f14ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x473e86(Tt(_0x1f14ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x473e86(Tt(_0x1f14ec,'ELEMENT_TODO_LIST'));}switch(_0x287b63['newValue']){case'bulleted':return _0x5a9997(Tt(_0x1f14ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a9997(Tt(_0x1f14ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a9997(Tt(_0x1f14ec,'ELEMENT_TODO_LIST'));}}),_0xd1fe1a['descriptionFactory']['registerDescriptionCallback'](_0x5544d5=>{const {data:_0x200397}=_0x5544d5;if(_0x200397&&'listIndent'==_0x200397['key'])return null==_0x200397['newValue']||null==_0x200397['oldValue']&&0x0==_0x200397['newValue']?_0x5ddb27:void 0x0;}),_0xd1fe1a['descriptionFactory']['registerDescriptionCallback'](_0x16d2af=>{if('attribute'!=_0x16d2af['type'])return;const {data:_0x23f77a}=_0x16d2af;if(!_0x23f77a||'listItemId'!=_0x23f77a['key'])return;const _0x107573=kt(_0x16d2af);return'newValue'==_0x107573?{'type':'format','content':Tt(_0x1f14ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x107573?{'type':'format','content':Tt(_0x1f14ec,'*Split:*\x20list\x20item')}:_0x5ddb27;}),_0x396f57['model']['document']['registerPostFixer'](_0x4af55f=>this['listItemIdFixer'](_0x4af55f)),_0x396f57['model']['document']['registerPostFixer'](_0x48c60e=>this['noTrackChangesFixer'](_0x48c60e)),_0x396f57['model']['document']['on']('change:data',(_0x3aa377,_0x1295ed)=>{if(_0x1295ed['isUndo']||!_0x1295ed['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x34ec02){if(_0x34ec02['batch']['isUndo']||!_0x34ec02['batch']['isLocal'])return!0x1;let _0x204f49=!0x1;const _0x162301=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x334910=>_0x334910['data']&&'listItemId'==_0x334910['data']['key'])['filter'](_0x3a3470=>_0x3a3470['data']['newValue']&&_0x3a3470['data']['oldValue']);for(const _0x180733 of _0x162301)kt(_0x180733)||(_0x34ec02['removeMarker'](_0x180733['getFirstMarker']()),_0x204f49=!0x0);return _0x204f49;}['noTrackChangesFixer'](_0x466903){if(_0x466903['batch']['isUndo']||!_0x466903['batch']['isLocal'])return!0x1;const _0x2e6944=this['editor']['model']['document']['differ'],_0x1f46ce=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1f46ce['trackChangesCommand']['value'])return!0x1;let _0x3c6ef0=!0x1;const _0x306047=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x185f34=_0x2e6944['getChanges']()['filter'](_0x332791=>'attribute'==_0x332791['type'])['filter'](_0x1b8e06=>_0x306047['has'](_0x1b8e06['attributeKey']));if(0x0==_0x185f34['length'])return _0x3c6ef0;const _0x42225a=new Set(_0x2e6944['getMarkersToAdd']()['filter'](_0x1e804b=>{if(!_0x1e804b['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4b86cc=_0x46f456(_0x1e804b['name'])['subType']['split']('|')[0x0];return _0x306047['has'](_0x4b86cc);})['map'](_0x3c6c1d=>_0x46f456(_0x3c6c1d['name'])['id']));for(const _0x2dc200 of _0x185f34){const _0x93fba6=_0x1f46ce['_findSuggestions'](_0x2dc200['range'],'attribute')['filter'](_0x340e49=>{if(_0x340e49['meta']['isNextTo'])return!0x1;if(_0x42225a['has'](_0x340e49['suggestion']['id']))return!0x1;const _0x5bd09c=_0x1f46ce['_getAttributeKey'](_0x340e49['suggestion']);return _0x306047['has'](_0x5bd09c);})['map'](_0x53d355=>_0x53d355['suggestion']);if(_0x93fba6['length']){for(const _0x17ea0c of _0x93fba6)_0x466903['removeMarker'](_0x17ea0c['getFirstMarker']());_0x3c6ef0=!0x0;}}return _0x3c6ef0;}['assureChains'](){const _0x1c7c80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x350f5c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xd52af9;const _0x1ce5cd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b30e1=>{if(_0x5b30e1['data']['oldRange']||!_0x5b30e1['data']['newRange'])return null;if(!_0x5b30e1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x843a8c}=_0x46f456(_0x5b30e1['name']);if(!_0x1c7c80['hasSuggestion'](_0x843a8c))return null;const _0xeda232=_0x1c7c80['getSuggestion'](_0x843a8c);return _0x350f5c['includes'](_0xeda232['data']['key']);})['map'](_0x4f5e9d=>{const {id:_0x3e22a9}=_0x46f456(_0x4f5e9d['name']),_0x2eeb17=_0x1c7c80['getSuggestion'](_0x3e22a9);return _0xd52af9=_0x2eeb17['attributes']['groupId'],_0x2eeb17['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ce5cd['size'])return;const _0x4a595c=_0x1c7c80['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a2c75=>'attribute'==_0x3a2c75['type']&&_0x3a2c75['data']&&_0x350f5c['includes'](_0x3a2c75['data']['key'])&&_0x3a2c75['attributes']['groupId']!=_0xd52af9)['map'](_0x28f097=>({'listItem':_0x28f097['getFirstRange']()['start']['nodeAfter'],'groupId':_0x28f097['attributes']['groupId']})),_0x4c5224=new Set();for(const {groupId:_0x4ffa15,listItem:_0x66c0a6}of _0x4a595c)_0x1ce5cd['has'](_0x66c0a6)&&_0x4c5224['add'](_0x4ffa15);for(const _0x3d3830 of _0x1c7c80['getSuggestions']())_0x4c5224['has'](_0x3d3830['attributes']['groupId'])&&_0x3d3830['setAttribute']('groupId',_0xd52af9);}['_supportLegacySuggestions'](){const _0x16eb6e=this['editor'],_0x18b992=_0x16eb6e['locale'],_0x43da44=_0x16eb6e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x43da44['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x462501,_0x744fec){const _0xd8da58=[];for(let _0x5e7972 of _0x462501)_0x5e7972['start']['nodeAfter']===_0x5e7972['end']['parent']&&(_0x5e7972=_0x16eb6e['model']['createRange'](_0x16eb6e['model']['createPositionAt'](_0x5e7972['start']['nodeAfter'],0x0))),_0xd8da58['push'](_0x5e7972);_0x16eb6e['model']['change'](_0x4a416f=>{const _0x55d42f=_0x16eb6e['model']['document']['selection'],_0x6f7e51=Array['from'](_0x55d42f['getRanges']())['map'](_0x51a50b=>_0x39b3ef['fromRange'](_0x51a50b));_0x4a416f['setSelection'](_0xd8da58),_0x16eb6e['commands']['get'](_0x744fec['commandName'])['refresh'](),_0x744fec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16eb6e['execute'](_0x744fec['commandName'],..._0x744fec['commandParams']),_0x4a416f['setSelection'](_0x6f7e51);for(const _0x565fbd of _0x6f7e51)_0x565fbd['detach']();});}),_0x43da44['descriptionFactory']['registerElementLabel'](function(_0x2e5eef){const _0x245144=!_0x16eb6e['model']['schema']['isObject'](_0x2e5eef),_0x156487=_0x2e5eef['previousSibling'],_0x5060d2=_0x2e5eef['nextSibling'],_0x5c50f6=_0x2e5eef['getAttribute']('listItemId'),_0x2c08bb=!_0x156487||_0x156487['getAttribute']('listItemId')!==_0x5c50f6,_0x5cee61=!_0x5060d2||_0x5060d2['getAttribute']('listItemId')!==_0x5c50f6;return _0x245144&&Boolean(_0x5c50f6)&&_0x2c08bb&&_0x5cee61;},_0x15301e=>Tt(_0x18b992,'ELEMENT_LIST_ITEM',_0x15301e));}['_registerLegacyDescription'](){const _0x330ab3=this['editor'],_0x758c60=_0x330ab3['locale'];function _0x455a42(_0x13b657){const _0x1b52d3=_0x330ab3['commands']['get']('bulletedList')['value'],_0x4cfb26=_0x330ab3['commands']['get']('numberedList')['value'];return'numberedList'===_0x13b657?_0x1b52d3:_0x4cfb26;}_0x330ab3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x218a77){if('formatBlock'!=_0x218a77['type'])return;const {data:_0x302e1a}=_0x218a77;if(!_0x302e1a)return;let _0x2e577a,_0x3f58c6,_0x55c045,_0x50f6b0;switch(_0x302e1a['commandName']){case'bulletedList':_0x55c045=_0x302e1a['commandParams'][0x0]['forceValue'],_0x50f6b0=_0x455a42(_0x302e1a['commandName']),_0x2e577a=_0x55c045?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50f6b0&&_0x330ab3['config']['get']('list.multiBlock')||(_0x2e577a='*Change\x20to:*\x20%0'),_0x3f58c6={'type':'format','content':Tt(_0x758c60,_0x2e577a,Tt(_0x758c60,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x55c045=_0x302e1a['commandParams'][0x0]['forceValue'],_0x50f6b0=_0x455a42(_0x302e1a['commandName']),_0x2e577a=_0x55c045?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50f6b0&&_0x330ab3['config']['get']('list.multiBlock')||(_0x2e577a='*Change\x20to:*\x20%0'),_0x3f58c6={'type':'format','content':Tt(_0x758c60,_0x2e577a,Tt(_0x758c60,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e577a='*Indent:*\x20%0',_0x3f58c6={'type':'format','content':Tt(_0x758c60,_0x2e577a,Tt(_0x758c60,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e577a=function(_0x37b415){const _0x5d911c=_0x37b415['getFirstRange']();let _0x2a444d=_0x5d911c['start']['nodeAfter'];for(;_0x2a444d&&_0x5d911c['containsItem'](_0x2a444d);){if(_0x2a444d['getAttribute']('listIndent')>0x0)return!0x1;_0x2a444d=_0x2a444d['nextSibling'];}return!0x0;}(_0x218a77)?Tt(_0x758c60,'*Format:*\x20remove\x20from\x20%0',Tt(_0x758c60,function(_0xda960b){return'ELEMENT_'+_0xda960b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x218a77))):Tt(_0x758c60,'*Outdent:*\x20%0',Tt(_0x758c60,'ELEMENT_LIST_ITEM')),_0x3f58c6={'type':'format','content':_0x2e577a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x302e1a['multipleBlocks']&&(_0x2e577a='*Merge:*\x20%0',_0x3f58c6={'type':'deletion','content':Tt(_0x758c60,_0x2e577a,Tt(_0x758c60,'ELEMENT_LIST_ITEM'))});}return _0x3f58c6;});}}function kt(_0x2c4dbe){let _0x1a697c=_0x2c4dbe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a697c;){const _0x5d83a3=_0x1a697c['getAttribute']('listItemId');if(!_0x5d83a3)return!0x1;if(_0x5d83a3==_0x2c4dbe['data']['newValue'])return'newValue';if(_0x5d83a3==_0x2c4dbe['data']['oldValue'])return'oldValue';_0x1a697c=_0x1a697c['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x4b9de5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17ca90=this['editor']['config']['get']('list.properties'),_0x38ba52=this['editor']['plugins']['get']('TrackChangesEditing');_0x17ca90['styles']&&_0x38ba52['enableDefaultAttributesIntegration']('listStyle'),_0x17ca90['reversed']&&_0x38ba52['enableDefaultAttributesIntegration']('listReversed'),_0x17ca90['startIndex']&&_0x38ba52['enableDefaultAttributesIntegration']('listStart');const _0x3bfacd={'type':'format','content':''};_0x38ba52['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22768c=this['editor']['locale'];_0x38ba52['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x22768c,'FORMAT_LIST_REVERSED')),_0x38ba52['descriptionFactory']['registerDescriptionCallback'](_0x312f27=>{const {data:_0x512d98}=_0x312f27;if(_0x512d98&&'listReversed'==_0x512d98['key'])return null==_0x512d98['newValue']||0x0==_0x512d98['newValue']&&null==_0x512d98['oldValue']?_0x3bfacd:void 0x0;}),_0x38ba52['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x22768c,'FORMAT_LIST_START')),_0x38ba52['descriptionFactory']['registerDescriptionCallback'](_0x521eed=>{const {data:_0x55d755}=_0x521eed;if(_0x55d755&&'listStart'==_0x55d755['key'])return null==_0x55d755['newValue']||0x1==_0x55d755['newValue']&&null==_0x55d755['oldValue']?_0x3bfacd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4639b4=>{if(_0x4639b4['batch']['isUndo'])return!0x1;let _0x598793=!0x1;const _0x41e364=_0x38ba52['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27560c=>{const _0x8f400d=_0x38ba52['_getAttributeKey'](_0x27560c);return'listStart'==_0x8f400d||'listReversed'==_0x8f400d;});for(const _0x514748 of _0x41e364){const _0x3c52dd=_0x514748['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3c52dd||'customNumbered'==_0x3c52dd)continue;_0x38ba52['_findSuggestions'](_0x514748['getFirstRange'](),'attribute')['find'](_0x1867c1=>'listType'==_0x38ba52['_getAttributeKey'](_0x1867c1['suggestion']))||(_0x4639b4['removeMarker'](_0x514748['getFirstMarker']()),_0x598793=!0x0);}return _0x598793;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x48b508){const _0x2e052c=this['editor']['locale'],{data:_0x542d0b}=_0x48b508,_0x166f13={'type':'format','content':''};if(!_0x542d0b||'listStyle'!=_0x542d0b['key'])return;if(!_0x542d0b['oldValue'])return'default'==_0x542d0b['newValue']?_0x166f13:{'type':'format','content':''+Tt(_0x2e052c,'*Set\x20format:*\x20%0',Tt(_0x2e052c,this['_getTranslationKeyForListStyle'](_0x542d0b['newValue'])))};if(!_0x542d0b['newValue']){if('default'==_0x542d0b['oldValue'])return _0x166f13;let _0x195c73=_0x48b508['head'];for(;_0x195c73;){if(_0x195c73['data']&&'listType'==_0x195c73['data']['key']&&_0x195c73['data']['newValue'])return _0x166f13;_0x195c73=_0x195c73['next'];}return{'type':'format','content':''+Tt(_0x2e052c,'*Remove\x20format:*\x20%0',Tt(_0x2e052c,this['_getTranslationKeyForListStyle'](_0x542d0b['oldValue'])))};}if('default'!=_0x542d0b['newValue'])return{'type':'format','content':''+Tt(_0x2e052c,'*Set\x20format:*\x20%0',Tt(_0x2e052c,this['_getTranslationKeyForListStyle'](_0x542d0b['newValue'])))};let _0x406edd=_0x48b508['head'];for(;_0x406edd;){if(_0x406edd['data']&&'listType'==_0x406edd['data']['key']&&_0x406edd['data']['newValue']&&_0x406edd['data']['oldValue'])return _0x166f13;_0x406edd=_0x406edd['next'];}return{'type':'format','content':Tt(_0x2e052c,'*Set\x20format:*\x20%0',Tt(_0x2e052c,'ELEMENT_'+_0x48b508['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x9d8cb4=this['editor'],_0x141057=_0x9d8cb4['locale'];_0x9d8cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd9f3=>{if('formatBlock'!=_0x1dd9f3['type'])return;const {data:_0x4bdfdd}=_0x1dd9f3;if(!_0x4bdfdd)return;let _0x3c275e,_0x187df3;switch(_0x4bdfdd['commandName']){case'listStyle':_0x3c275e='*Change\x20to:*\x20%0',_0x187df3={'type':'format','content':Tt(_0x141057,_0x3c275e,Tt(_0x141057,this['_getTranslationKeyForListStyle'](_0x4bdfdd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c275e=_0x4bdfdd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x187df3={'type':'format','content':Tt(_0x141057,_0x3c275e)};break;case'listStart':_0x3c275e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x187df3={'type':'format','content':Tt(_0x141057,_0x3c275e,_0x4bdfdd['commandParams'][0x0]['startIndex'])};}return _0x187df3;});}['_getTranslationKeyForListStyle'](_0x31f9f6){return'ELEMENT_'+function(_0x179f56){if(Lt['includes'](_0x179f56))return'bulleted';if(It['includes'](_0x179f56))return'numbered';return null;}(_0x31f9f6)['toUpperCase']()+'_LIST_'+_0x31f9f6['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 _0x4b9de5{['afterInit'](){const _0x32382a=this['editor'];_0x32382a['commands']['get']('emoji')&&_0x32382a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x4b9de5{static get['requires'](){return[lt];}['init'](){const _0x11468e=this['editor'],_0x2045f5=_0x11468e['plugins']['get']('TrackChangesEditing'),_0x5c5ab9=_0x11468e['commands']['get']('enter');_0x2045f5['enableCommand']('enter',()=>{_0x11468e['model']['change'](_0xb4dc18=>{const _0x3e102b=_0x11468e['model']['document']['selection'],_0x41d1d8=_0x3e102b['getFirstPosition'](),_0x574e86=_0x39b3ef['fromRange'](_0x3e102b['getFirstRange']());if(_0x5c5ab9['enterBlock'](_0xb4dc18)){const _0x3c6ced=_0x11468e['model']['createPositionAt'](_0x41d1d8['parent']['nextSibling'],0x0),_0x2a5d8e=_0xb4dc18['createRange'](_0x41d1d8,_0x3c6ced);_0x2045f5['markInsertion'](_0x2a5d8e);}else _0xb4dc18['setSelection'](_0xb4dc18['createRange'](_0x574e86['end']));_0x574e86['detach'](),_0x5c5ab9['fire']('afterExecute',{'writer':_0xb4dc18});});});}}class TrackChangesFindAndReplace extends _0x4b9de5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3fae76=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fae76['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3fae76['enableCommand']('findNext'),_0x3fae76['enableCommand']('findPrevious'),_0x3fae76['enableCommand']('replace'),_0x3fae76['enableCommand']('replaceAll');}['handleFindCommand'](_0x59d527,_0x45a0fa,_0x107d44={}){const _0x15ef28=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x59d527(_0x5417cb=>{let _0x1a3586=('string'==typeof _0x45a0fa?_0x15ef28['findByTextCallback'](_0x45a0fa,_0x107d44):_0x45a0fa)(_0x5417cb);Array['isArray'](_0x1a3586)&&(_0x1a3586={'results':_0x1a3586,'searchText':'string'==typeof _0x45a0fa?_0x45a0fa:''});const _0x306dd9=_0x1a3586['results']['filter'](_0x491cda=>!0x1===this['_isInDeletionRange'](_0x491cda,_0x5417cb['item']));return{..._0x1a3586,'results':_0x306dd9};},_0x107d44);}['_isInDeletionRange'](_0x5e5ca3,_0x3b39f2){const _0x161723=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b39f2,_0x5e5ca3['start']),this['editor']['model']['createPositionAt'](_0x3b39f2,_0x5e5ca3['end']));for(const _0x483db4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x161723['getIntersection'](_0x483db4['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x4b9de5{['afterInit'](){const _0x2917b4=this['editor']['locale'],_0x123b60=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xfc619e,commandName:_0x2845e9}of At)this['editor']['plugins']['has'](_0xfc619e)&&_0x123b60['enableDefaultAttributesIntegration'](_0x2845e9);_0x123b60['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x2917b4,'FORMAT_FONT_SIZE')),_0x123b60['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x2917b4,'FORMAT_FONT_FAMILY')),_0x123b60['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x2917b4,'FORMAT_FONT_COLOR')),_0x123b60['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x2917b4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ba494=this['editor'],_0x52faea=_0x3ba494['locale'];_0x3ba494['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184694=>{const _0x4eb20b=_0x52faea['t'];if('formatInline'!=_0x184694['type'])return;const {data:_0x5d7891}=_0x184694;if(null!=_0x5d7891){if('fontSize'==_0x5d7891['commandName']){const _0x37fd43=_0x5d7891['commandParams'][0x0]['value'];if(_0x37fd43){const _0x58ac0a=_0x4eb20b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x257475=>_0x257475['model']==_0x37fd43)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x52faea,'*Set\x20font\x20size:*\x20%0',_0x58ac0a)};}return{'type':'format','content':Tt(_0x52faea,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d7891['commandName']){const _0x492359=_0x5d7891['commandParams'][0x0]['value'];return _0x492359?{'type':'format','content':Tt(_0x52faea,'*Set\x20font\x20family:*\x20%0',_0x492359)}:{'type':'format','content':Tt(_0x52faea,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d7891['commandName']){const _0x54b698=_0x5d7891['commandParams'][0x0]['value'];if(_0x54b698){const _0x1aa249=_0x2c573f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2dc837=>_0x2dc837['model']==_0x54b698);let _0xa94721=_0x54b698,_0x40c052='';return _0x1aa249&&(_0xa94721=_0x1aa249['label'],_0x40c052=_0x4eb20b(_0xa94721)['toLowerCase']()),{'type':'format','content':Tt(_0x52faea,'*Set\x20font\x20color:*\x20%0',_0x40c052)['trim'](),'color':{'value':_0x54b698,'title':_0x40c052||_0xa94721}};}return{'type':'format','content':Tt(_0x52faea,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d7891['commandName']){const _0x1342a9=_0x5d7891['commandParams'][0x0]['value'];if(_0x1342a9){const _0xaa21dc=_0x2c573f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59b7b9=>_0x59b7b9['model']==_0x1342a9);let _0x587328=_0x1342a9,_0x3b91e0='';return _0xaa21dc&&(_0x587328=_0xaa21dc['label'],_0x3b91e0=_0x4eb20b(_0x587328)['toLowerCase']()),{'type':'format','content':Tt(_0x52faea,'*Set\x20font\x20background\x20color:*\x20%0',_0x3b91e0)['trim'](),'color':{'value':_0x1342a9,'title':_0x3b91e0||_0x587328}};}return{'type':'format','content':Tt(_0x52faea,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x4b9de5{['afterInit'](){const {plugins:_0x36e038}=this['editor'];_0x36e038['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x36e038['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x541303,plugins:_0x598c37,commands:_0x39621f}=this['editor'],_0x10c01d=_0x598c37['get']('TrackChangesEditing');_0x39621f['get']('footnotesStyle')&&_0x10c01d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x39621f['get']('footnotesStart')&&_0x10c01d['enableDefaultAttributesIntegration']('footnotesStart'),_0x10c01d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x541303,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x10c01d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x541303,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x51b9d6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5b8818,commands:_0x31ce96}=this['editor'];_0x31ce96['get']('insertFootnote')&&_0x51b9d6['enableCommand']('insertFootnote'),_0x51b9d6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x32a14b=>Tt(_0x5b8818,'ELEMENT_FOOTNOTE_REF',_0x32a14b)),_0x51b9d6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1c36dc=>Tt(_0x5b8818,'ELEMENT_FOOTNOTE_DEFINITION',_0x1c36dc)),_0x51b9d6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3c0397=>Tt(_0x5b8818,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3c0397));}}class TrackChangesFormatPainter extends _0x4b9de5{['afterInit'](){const _0x4f021b=this['editor'],_0x6db3bf=_0x4f021b['plugins']['get']('TrackChangesEditing'),_0x1f8220=_0x4f021b['commands']['get']('copyFormat'),_0x322271=_0x4f021b['commands']['get']('pasteFormat');_0x1f8220&&_0x322271&&(_0x6db3bf['enableDefaultAttributesIntegration']('pasteFormat'),_0x6db3bf['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2131e1=this['editor'],_0x21b209=_0x2131e1['locale'];_0x2131e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb4d6=>{if('formatBlock'!=_0x4cb4d6['type']&&'formatInline'!=_0x4cb4d6['type'])return;const {data:_0x3a0ec7}=_0x4cb4d6;if(_0x3a0ec7&&'pasteFormat'===_0x3a0ec7['commandName']){const _0x585727=[],_0x3a6743=_0x3a0ec7['commandParams'][0x0];for(const [_0x55a584,_0x352202]of Object['entries'](_0x3a6743))_0x585727['push'](bt(_0x2131e1,_0x55a584,_0x352202));return _0x585727['length']?{'type':'format','content':Tt(_0x21b209,'*Set\x20format\x20to:*\x20%0',_0x585727['join'](',\x20'))}:{'type':'format','content':Tt(_0x21b209,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x2fee39,_0xea131f,_0x39db2f){const _0x3e74e5=_0x2fee39['locale']['t'],_0x10e36e=_0xea131f['split'](/(?=[A-Z])/)['join']('\x20'),_0x10d644=_0x3e74e5(_0x10e36e['charAt'](0x0)['toUpperCase']()+_0x10e36e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x39db2f)return _0x10d644;if('fontColor'===_0xea131f||'fontBackgroundColor'===_0xea131f){const _0x9e9f19=_0x2c573f(_0x2fee39['config']['get']('fontColor.colors'))['find'](_0x3aa790=>_0x3aa790['model']==_0x39db2f);return _0x10d644+'\x20('+(_0x9e9f19?_0x3e74e5(_0x9e9f19['label'])['toLowerCase']():_0x39db2f)+')';}if('fontSize'===_0xea131f&&isNaN(parseFloat(_0x39db2f))){const _0x1db8b3=_0x2fee39['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fee39['config']['get']('fontSize.options'))['find'](_0x3e3057=>_0x3e3057['model']==_0x39db2f);return _0x10d644+'\x20('+(_0x1db8b3?_0x3e74e5(_0x1db8b3['title'])['toLowerCase']():_0x39db2f)+')';}return _0x10d644+'\x20('+_0x39db2f+')';}class TrackChangesGeneralHtmlSupport extends _0x4b9de5{['afterInit'](){const _0x1ae8ef=this['editor'];if(!_0x1ae8ef['plugins']['has']('GeneralHtmlSupport')||!_0x1ae8ef['plugins']['has']('DataSchema'))return;const _0x433650=_0x1ae8ef['plugins']['get']('TrackChangesEditing'),_0x16e67f=_0x1ae8ef['plugins']['get']('GeneralHtmlSupport'),_0x3e967e=_0x1ae8ef['plugins']['get']('DataSchema'),_0x4cbc30=_0x1ae8ef['locale'],_0xedf387=new Set(['htmlContent']);for(const _0x2f12b8 of _0x3e967e['getDefinitionsForView'](/.*/,!0x1)){const _0x164e7e=_0x2f12b8['view'];_0xedf387['add'](_0x16e67f['getGhsAttributeNameForElement'](_0x164e7e)),_0x2f12b8['model']['startsWith']('html')&&_0x433650['descriptionFactory']['registerElementLabel'](_0x2f12b8['model'],_0x59c4b8=>Tt(_0x4cbc30,'ELEMENT_HTML_TAG',[_0x59c4b8,_0x164e7e]));}_0x433650['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x4cbc30,'FORMAT_RAW_HTML_CONTENT')),_0x433650['descriptionFactory']['registerDescriptionCallback'](_0x409c0f=>{if('attribute'!==_0x409c0f['type'])return;const _0x91800e=_0x409c0f['data'];if(!_0x91800e||!_0xedf387['has'](_0x91800e['key']))return;if('htmlContent'===_0x91800e['key'])return{'type':'format','content':Tt(_0x4cbc30,'*Change\x20%0\x20content*',Tt(_0x4cbc30,'ELEMENT_RAW_HTML'))};const {setItems:_0x3501a2,removeItems:_0x471e8f}=function(_0x324fc7,_0x49475c,_0x5d0257){const _0x1c260b=[],_0x894093=[],_0x3dd131=_0x324fc7['styles']??{},_0x27334f=_0x49475c['styles']??{};for(const _0x5f2bef of new Set([...Object['keys'](_0x3dd131),...Object['keys'](_0x27334f)]))_0x3dd131[_0x5f2bef]!==_0x27334f[_0x5f2bef]&&(void 0x0===_0x27334f[_0x5f2bef]?_0x894093['push'](_0x5f2bef):_0x1c260b['push'](_0x5f2bef+'\x20('+_0x27334f[_0x5f2bef]+')'));const _0x4f3fc5=Tt(_0x5d0257,'FORMAT_HTML_CLASS'),_0x32ca4b=new Set(_0x324fc7['classes']??[]),_0x32aca3=new Set(_0x49475c['classes']??[]),_0x6aa14c=[..._0x32aca3]['some'](_0xf5cced=>!_0x32ca4b['has'](_0xf5cced)),_0x555378=[..._0x32ca4b]['some'](_0x297a92=>!_0x32aca3['has'](_0x297a92));_0x6aa14c&&_0x1c260b['push'](_0x4f3fc5),_0x555378&&_0x894093['push'](_0x4f3fc5);const _0x252cd1=Tt(_0x5d0257,'FORMAT_HTML_ATTRIBUTE'),_0x2e8d92=_0x324fc7['attributes']??{},_0x31d05a=_0x49475c['attributes']??{};let _0x4e26e0=!0x1,_0x3acb8d=!0x1;for(const _0x23b88b of new Set([...Object['keys'](_0x2e8d92),...Object['keys'](_0x31d05a)]))_0x2e8d92[_0x23b88b]!==_0x31d05a[_0x23b88b]&&(void 0x0===_0x31d05a[_0x23b88b]?_0x3acb8d=!0x0:_0x4e26e0=!0x0);return _0x4e26e0&&_0x1c260b['push'](_0x252cd1),_0x3acb8d&&_0x894093['push'](_0x252cd1),{'setItems':_0x1c260b,'removeItems':_0x894093};}(_0x91800e['oldValue']??{},_0x91800e['newValue']??{},_0x4cbc30);if(!_0x3501a2['length']&&!_0x471e8f['length'])return;const _0x26442d=[];return _0x3501a2['length']&&_0x26442d['push'](Tt(_0x4cbc30,'*Set\x20format:*\x20%0',_0x3501a2['join'](',\x20'))),_0x471e8f['length']&&_0x26442d['push'](Tt(_0x4cbc30,'*Remove\x20format:*\x20%0',_0x471e8f['join'](',\x20'))),{'type':'format','content':_0x26442d['join']('\x0a')};});}}class TrackChangesHeading extends _0x4b9de5{['_headingOptions'];['afterInit'](){const _0xcaced7=this['editor'];if(!_0xcaced7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xcaced7['config']['get']('heading.options');const _0x4a9e97=_0xcaced7['locale'],_0x432bcc=_0xcaced7['plugins']['get']('TrackChangesEditing');_0x432bcc['enableDefaultAttributesIntegration']('heading');for(const _0x16def8 of this['_headingOptions'])'paragraph'!=_0x16def8['model']&&_0x432bcc['descriptionFactory']['registerElementLabel'](_0x16def8['model'],_0x60fe0a=>{const _0x47f8b6=this['_getHeadingLevel'](_0x16def8['model']);return null!==_0x47f8b6?_0x3f11ab(_0x60fe0a,_0x47f8b6):_0x2bb0e6(_0x60fe0a,_0x16def8['title']);});function _0x3f11ab(_0x307d65,_0x4801b3){return Tt(_0x4a9e97,'ELEMENT_HEADING',[_0x307d65,_0x4801b3]);}function _0x2bb0e6(_0xf04f9a,_0x5657b0){return Tt(_0x4a9e97,'ELEMENT_HEADING_CUSTOM',[_0xf04f9a,_0x5657b0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93eee7=this['editor'],_0x27019c=_0x93eee7['locale'];function _0x3e611f(_0x28ec93,_0x5a9592){return Tt(_0x27019c,'ELEMENT_HEADING_CUSTOM',[_0x28ec93,_0x5a9592]);}_0x93eee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2acdc4=>{if('formatBlock'!=_0x2acdc4['type'])return;const {data:_0x4d674a}=_0x2acdc4;if(_0x4d674a&&'heading'==_0x4d674a['commandName']){const _0x1dfe16=_0x4d674a['commandParams'][0x0]['value'],_0x44589d=this['_getHeadingLevel'](_0x1dfe16);if(null!==_0x44589d)return{'type':'format','content':Tt(_0x27019c,'*Change\x20to:*\x20%0',(_0x65e0ef=0x1,_0x22a502=_0x44589d,Tt(_0x27019c,'ELEMENT_HEADING',[_0x65e0ef,_0x22a502])))};const _0x414fd4=this['_headingOptions']['find'](_0x58b4ec=>_0x58b4ec['model']===_0x1dfe16)['title'];return{'type':'format','content':Tt(_0x27019c,'*Change\x20to:*\x20%0',_0x3e611f(0x1,_0x414fd4))};}var _0x65e0ef,_0x22a502;});}['_getHeadingLevel'](_0x11659e){const _0x384ac4=_0x11659e['match'](/^heading(\d+)/);if(_0x384ac4)return _0x384ac4[0x1];const _0x28547b=this['_headingOptions']?.['find'](_0x59a2ff=>_0x59a2ff['model']==_0x11659e);if(_0x28547b&&_0x28547b['view']){const _0x847f4d=_0x28547b['view'],_0x50cddb=(_0x847f4d['name']??_0x847f4d)['match'](/^h(\d+)/);if(_0x50cddb)return _0x50cddb[0x1];}return null;}}class TrackChangesHighlight extends _0x4b9de5{['afterInit'](){const _0x2a9444=this['editor'];if(!_0x2a9444['plugins']['has']('HighlightEditing'))return;const _0x4dce7a=_0x2a9444['plugins']['get']('TrackChangesEditing'),_0x2822c3=_0x2a9444['locale'];_0x4dce7a['enableDefaultAttributesIntegration']('highlight'),_0x4dce7a['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2822c3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329d9c=this['editor'],_0x22961a=_0x329d9c['locale'];_0x329d9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5896d2=>{if('formatInline'!=_0x5896d2['type'])return;const {data:_0x1b13ed}=_0x5896d2;if(_0x1b13ed&&'highlight'==_0x1b13ed['commandName']){const _0x3942a8=_0x22961a['t'],_0x3133bd=_0x1b13ed['commandParams'][0x0]['value'];if(_0x3133bd){const _0x1c608d=_0x329d9c['config']['get']('highlight.options')['find'](_0x57563b=>_0x57563b['model']==_0x3133bd),_0x23fdb1=_0x3942a8(_0x1c608d['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x22961a,'*Set\x20highlight:*\x20%0',_0x23fdb1),'color':{'value':_0x1c608d['color'],'title':_0x1c608d['title']}};}return{'type':'format','content':Tt(_0x22961a,'*Remove\x20highlight*',Tt(_0x22961a,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x4b9de5{['afterInit'](){const _0x35f0f1=this['editor'];if(!_0x35f0f1['plugins']['has']('HorizontalLineEditing'))return;_0x35f0f1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4439ba=_0x35f0f1['plugins']['get']('TrackChangesEditing'),_0x2e0de7=_0x35f0f1['locale'];_0x4439ba['descriptionFactory']['registerElementLabel']('horizontalLine',_0x57a937=>Tt(_0x2e0de7,'ELEMENT_HORIZONTAL_LINE',_0x57a937));}}class TrackChangesHtmlEmbed extends _0x4b9de5{['afterInit'](){const _0xae50c9=this['editor'];if(!_0xae50c9['plugins']['has']('HtmlEmbed'))return;const _0x50be5e=_0xae50c9['plugins']['get']('TrackChangesEditing'),_0x35fa0a=_0xae50c9['locale'];_0x50be5e['descriptionFactory']['registerElementLabel']('rawHtml',_0x2f851c=>Tt(_0x35fa0a,'ELEMENT_HTML_EMBED',_0x2f851c)),_0x50be5e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50be5e['descriptionFactory']['registerDescriptionCallback'](_0x469c3c=>{if('attribute'!=_0x469c3c['type'])return;const {data:_0x51b322}=_0x469c3c;if(_0x51b322&&'value'==_0x51b322['key']&&_0x469c3c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50b477=Tt(_0x35fa0a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x35fa0a,'*Change\x20%0\x20content*',_0x50b477)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36bac7=this['editor'],_0x5798ce=_0x36bac7['locale'];_0x36bac7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d47a9=>{if('formatBlock'!=_0x4d47a9['type'])return;const {data:_0x3837da}=_0x4d47a9;if(_0x3837da&&'htmlEmbed'==_0x3837da['commandName']){const _0x4e5242=Tt(_0x5798ce,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x5798ce,'*Change\x20%0\x20content*',_0x4e5242)};}});}}class TrackChangesImage extends _0x4b9de5{['afterInit'](){const _0x54bbd3=this['editor'];if(!_0x54bbd3['plugins']['has']('ImageEditing'))return;const _0xf4a616=_0x54bbd3['plugins']['get']('TrackChangesEditing'),_0x2039b1=_0x54bbd3['plugins']['get']('ImageUtils'),_0x5c3d5d=_0x54bbd3['locale'];_0xf4a616['enableCommand']('insertImage'),_0xf4a616['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f9c84=>Tt(_0x5c3d5d,'ELEMENT_IMAGE',_0x1f9c84)),_0xf4a616['descriptionFactory']['registerElementLabel']('imageInline',_0x3a996b=>Tt(_0x5c3d5d,'ELEMENT_INLINE_IMAGE',_0x3a996b)),_0xf4a616['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x5c3d5d,'ELEMENT_CAPTION')),_0x54bbd3['plugins']['has']('ImageUploadEditing')&&_0xf4a616['enableCommand']('uploadImage'),_0x54bbd3['plugins']['has']('ImageBlockEditing')&&_0x54bbd3['plugins']['has']('ImageInlineEditing')&&(_0xf4a616['enableCommand']('imageTypeInline',(_0x5c5972,_0x5213f5)=>{const _0x56461e=_0x2039b1['getClosestSelectedImageElement'](_0x54bbd3['model']['document']['selection']);_0x54bbd3['model']['change'](()=>{_0xf4a616['markBlockFormat'](_0x56461e,{'commandName':'imageTypeInline','commandParams':[_0x5213f5]},[],'convertBlockImageToInline');});}),_0xf4a616['enableCommand']('imageTypeBlock',(_0x4156fe,_0x19fc1d)=>{_0x54bbd3['model']['change'](_0x3f1b62=>{let _0x1aff39=_0x2039b1['getClosestSelectedImageElement'](_0x54bbd3['model']['document']['selection']),_0x1437ad=_0x3f1b62['createRangeOn'](_0x1aff39);const _0x364755=tt['fromPosition'](_0x1437ad['start'],'toPrevious'),_0x494def=tt['fromPosition'](_0x1437ad['end'],'toNext');_0xf4a616['forceDefaultExecution'](()=>_0x4156fe(_0x19fc1d)),_0x1aff39=_0x2039b1['getClosestSelectedImageElement'](_0x54bbd3['model']['document']['selection']),_0x1437ad=_0x3f1b62['createRangeOn'](_0x1aff39);const _0x47408d=_0x3f1b62['createRange'](_0x364755,_0x494def);_0x364755['detach'](),_0x494def['detach'](),_0xf4a616['markBlockFormat'](_0x1aff39,{'commandName':'imageTypeInline','commandParams':[_0x19fc1d]},[],'convertInlineImageToBlock'),_0x47408d['start']['isBefore'](_0x1437ad['start'])&&_0xf4a616['markInsertion'](_0x3f1b62['createRange'](_0x47408d['start'],_0x1437ad['start']),'convertInlineImageToBlock'),_0x1437ad['end']['isBefore'](_0x47408d['end'])&&_0xf4a616['markInsertion'](_0x3f1b62['createRange'](_0x1437ad['end'],_0x47408d['end']),'convertInlineImageToBlock');});}),_0xf4a616['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xf4a616['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xf4a616['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xf4a616['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xf4a616['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xf4a616['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5812f2])=>{const _0x27197a=_0xf4a616['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33c8a9=_0x5812f2['start'],_0x54f3c5=_0x5812f2['end'];const _0x4f8a17=_0x54bbd3['model']['schema']['getNearestSelectionRange'](_0x33c8a9,'backward'),_0x33fd50=_0x54bbd3['model']['schema']['getNearestSelectionRange'](_0x54f3c5,'forward');_0x4f8a17['isCollapsed']&&(_0x33c8a9=_0x4f8a17['start']),_0x33fd50['isCollapsed']&&(_0x54f3c5=_0x33fd50['end']),_0x27197a([_0x54bbd3['model']['createRange'](_0x33c8a9,_0x54f3c5)]);}),_0xf4a616['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x76096c),_0xf4a616['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x76096c)),_0x54bbd3['plugins']['has']('ImageCaptionEditing')&&(_0xf4a616['enableCommand']('toggleImageCaption',(_0x581481,_0x55145b)=>{const _0x3c14ea=_0x54bbd3['plugins']['get']('ImageCaptionUtils');let _0x1a8ecd=_0x2039b1['getClosestSelectedImageElement'](_0x54bbd3['model']['document']['selection']),_0x456f54=_0x3c14ea['getCaptionFromImageModelElement'](_0x1a8ecd);_0x54bbd3['model']['change'](()=>{if(_0x456f54)return void _0xf4a616['markDeletion'](_0x54bbd3['model']['createRangeOn'](_0x456f54));const _0xbe82f=_0x2039b1['isBlockImage'](_0x1a8ecd);_0x581481(_0x55145b),_0x1a8ecd=_0x2039b1['getClosestSelectedImageElement'](_0x54bbd3['model']['document']['selection']),_0x456f54=_0x3c14ea['getCaptionFromImageModelElement'](_0x1a8ecd),_0xf4a616['markInsertion'](_0x54bbd3['model']['createRangeOn'](_0x456f54),_0xbe82f?null:'imageCaption');});}),_0xf4a616['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x76096c));const _0x23d5c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c171c(_0x19389a,_0x49ae18){const _0x475ae4=_0x23d5c9['findIndex'](({type:_0x531b72,subType:_0x3391cd})=>_0x19389a['type']==_0x531b72&&_0x19389a['subType']==_0x3391cd),_0x4d3b80=_0x23d5c9['findIndex'](({type:_0x22da38,subType:_0x2330ae})=>_0x49ae18['type']==_0x22da38&&_0x49ae18['subType']==_0x2330ae);if(_0x475ae4<0x0||_0x4d3b80<0x0)return!0x1;const _0x537041=_0x19389a['getFirstRange'](),_0x502345=_0x49ae18['getFirstRange']();if((0x0==_0x475ae4||0x1==_0x475ae4)&&0x2==_0x4d3b80&&_0x537041['isIntersecting'](_0x502345))return!0x0;if(0x2==_0x475ae4&&0x3==_0x4d3b80){const _0x1df90d=_0xf4a616['_findSuggestions'](_0x537041,'insertion')['filter'](({suggestion:_0xa0b503,meta:_0x5492b5})=>_0x5492b5['isOwn']&&'convertInlineImageToBlock'==_0xa0b503['subType']);if(_0x1df90d['length']>0x1&&_0x502345['end']['isEqual'](_0x537041['start']))return!0x0;if(0x1==_0x1df90d['length']&&(_0x537041['start']['isEqual'](_0x502345['end'])||_0x537041['end']['isEqual'](_0x502345['start'])))return!0x0;}if(0x3==_0x475ae4&&0x3==_0x4d3b80&&_0x537041['start']['isBefore'](_0x502345['start'])){const _0x1c7ef5=_0x537041['end']['nodeAfter'],_0x30d681=_0x502345['start']['nodeBefore'];return _0x2039b1['isBlockImage'](_0x1c7ef5)&&_0x1c7ef5===_0x30d681;}return!0x1;}function _0x76096c(_0x324f4b,_0x38bb6e){return _0x3c171c(_0x324f4b,_0x38bb6e)?[_0x324f4b,_0x38bb6e]:_0x3c171c(_0x38bb6e,_0x324f4b)?[_0x38bb6e,_0x324f4b]:null;}_0x54bbd3['plugins']['has']('ImageResize')&&(_0xf4a616['enableDefaultAttributesIntegration']('resizeImage'),_0xf4a616['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x5c3d5d,'FORMAT_IMAGE_SIZE'))),_0x54bbd3['plugins']['has']('ImageTextAlternativeEditing')&&_0xf4a616['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x54bbd3['plugins']['has']('PictureEditing')&&_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0x5024ed=>{if('attribute'!=_0x5024ed['type'])return;const {data:_0x59ed51}=_0x5024ed;return _0x59ed51&&'sources'==_0x59ed51['key']?{'type':'format','content':''}:void 0x0;}),_0x54bbd3['plugins']['has']('ImageSizeAttributes')&&_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0x55c4a4=>{if('attribute'!=_0x55c4a4['type'])return;const {data:_0x793291}=_0x55c4a4;return!_0x793291||'width'!=_0x793291['key']&&'height'!=_0x793291['key']?void 0x0:{'type':'format','content':''};}),_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0x38c4bf=>{if(!!_0x23d5c9['find'](({type:_0x19208e,subType:_0x2c825e})=>_0x38c4bf['type']==_0x19208e&&_0x38c4bf['subType']==_0x2c825e))return _0x38c4bf['previous']?{}:void 0x0;}),_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0xfac4f6=>{if('insertion'==_0xfac4f6['type']||'deletion'==_0xfac4f6['type']){const _0x2bd462=_0xfac4f6['getContainedElement']();if(_0x2bd462&&_0x2bd462['is']('element','caption'))return{'type':'insertion'==_0xfac4f6['type']?'addObject':'removeObject','element':_0x2bd462,'quantity':0x1};}}),_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0xbc1f9f=>'formatBlock'==_0xbc1f9f['type']&&'convertInlineImageToBlock'==_0xbc1f9f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xbc1f9f['type']&&'convertBlockImageToInline'==_0xbc1f9f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xf4a616['descriptionFactory']['registerDescriptionCallback'](_0x5b9394=>{if('attribute'!=_0x5b9394['type'])return;const {data:_0xf1ab02}=_0x5b9394;if(!_0xf1ab02||'alt'!=_0xf1ab02['key'])return;const _0x375ecb=_0xf1ab02['newValue'];return _0x375ecb?{'type':'format','content':Tt(_0x5c3d5d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x375ecb+'\x22')}:{'type':'format','content':Tt(_0x5c3d5d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183e3c=this['editor'],_0xeec889=_0x183e3c['locale'];_0x183e3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16880b=>{if('formatBlock'!=_0x16880b['type']&&'formatInline'!=_0x16880b['type'])return;const {data:_0x1f09a1}=_0x16880b;if(_0x1f09a1){if('imageTextAlternative'==_0x1f09a1['commandName']){const _0x4c6983=_0x1f09a1['commandParams'][0x0]['newValue'];return _0x4c6983?{'type':'format','content':Tt(_0xeec889,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c6983+'\x22')}:{'type':'format','content':Tt(_0xeec889,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f09a1['commandName']){const _0xa589d9=_0x1f09a1['commandParams'][0x0]['width'];return _0xa589d9?{'type':'format','content':Tt(_0xeec889,'*Set\x20image\x20width:*\x20%0',_0xa589d9)}:{'type':'format','content':Tt(_0xeec889,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x4b9de5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x496581=this['editor']['locale'],_0xd46eac=this['editor']['plugins']['get']('TrackChangesEditing');_0xd46eac['enableDefaultAttributesIntegration']('replaceImageSource'),_0xd46eac['descriptionFactory']['registerDescriptionCallback'](_0x495fdc=>{if('attribute'!=_0x495fdc['type'])return;const {data:_0x30de44}=_0x495fdc;return _0x30de44&&'src'==_0x30de44['key']?_0x30de44['newValue']&&_0x30de44['oldValue']?{'type':'format','content':Tt(_0x496581,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58d12e=this['editor']['plugins']['get']('TrackChangesEditing');_0x58d12e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x58d12e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58d12e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x58d12e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308b78=this['editor'],_0x41da9a=_0x308b78['locale'];_0x308b78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6cd6fc=>{if('formatBlock'!=_0x6cd6fc['type']&&'formatInline'!=_0x6cd6fc['type'])return;const {data:_0x4f5ef6}=_0x6cd6fc;if(!_0x4f5ef6||'replaceImageSource'!=_0x4f5ef6['commandName'])return;return{'type':'format','content':Tt(_0x41da9a,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x4b9de5{['afterInit'](){const _0x3b395b=this['editor'];if(!_0x3b395b['plugins']['has']('ImageStyleEditing'))return;const _0x1058a6=_0x3b395b['plugins']['get']('TrackChangesEditing'),_0x1e2edc=_0x3b395b['plugins']['get']('ImageUtils'),_0x4c95f6={};_0x1058a6['enableCommand']('imageStyle',(_0x5a694f,_0x30de6e)=>{const _0x15e9fb=_0x3b395b['plugins']['get']('Users')['me'],_0x4ca110=_0x3b395b['commands']['get']('imageStyle');let _0x16354a=_0x1e2edc['getClosestSelectedImageElement'](_0x3b395b['model']['document']['selection']),_0x58d895=_0x3b395b['model']['createRangeOn'](_0x16354a),_0x32008c=_0x4ca110['value'];if(_0x32008c==_0x30de6e['value'])return;const _0x4a4cf9={'commandName':'imageStyle','commandParams':[_0x30de6e],'formatGroupId':_0x3c1805()};_0x3b395b['model']['change'](()=>{if(_0x1058a6['getSuggestions']()['filter'](_0x23a35a=>_0x23a35a['isInContent']&&_0x15e9fb==_0x23a35a['author']&&('formatBlock'==_0x23a35a['type']||'formatInline'==_0x23a35a['type'])&&('imageStylePreApply'==_0x23a35a['subType']||'imageStylePostApply'==_0x23a35a['subType'])&&_0x23a35a['getFirstRange']()['isEqual'](_0x58d895))['forEach'](_0x5f562e=>_0x1058a6['discardSuggestion'](_0x5f562e['head'])),_0x16354a=_0x1e2edc['getClosestSelectedImageElement'](_0x3b395b['model']['document']['selection']),_0x58d895=_0x3b395b['model']['createRangeOn'](_0x16354a),_0x4ca110['refresh'](),_0x3b395b['commands']['get']('imageTypeInline')['refresh'](),_0x3b395b['commands']['get']('imageTypeBlock')['refresh'](),_0x32008c=_0x4ca110['value'],_0x32008c!=_0x30de6e['value'])return _0x1e2edc['isInlineImage'](_0x16354a)&&_0x4ca110['shouldConvertImageType'](_0x30de6e['value'],_0x16354a)?(_0x5a694f({..._0x30de6e,'setImageSizes':!0x1}),_0x16354a=_0x1e2edc['getClosestSelectedImageElement'](_0x3b395b['model']['document']['selection']),void _0x1058a6['markBlockFormat'](_0x16354a,{..._0x4a4cf9,'commandReversedParams':[{'value':_0x32008c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e2edc['isBlockImage'](_0x16354a)?_0x1058a6['markBlockFormat'](_0x16354a,_0x4a4cf9,[],'imageStylePostApply'):_0x1058a6['markInlineFormat'](_0x58d895,_0x4a4cf9,'imageStylePostApply'));});});for(const _0x2f3500 of _0x3b395b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c95f6[_0x2f3500['name']]=_0x2f3500['title']['toLowerCase']();_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8ba5c2])=>{_0x1e2edc['setImageNaturalSizeAttributes'](_0x8ba5c2['getContainedElement']());}),_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x22fdab,_0x31c74e)=>{_0x1058a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22fdab,{'commandName':_0x31c74e['commandName'],'commandParams':_0x31c74e['commandReversedParams']});}),_0x1058a6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3697cf,_0x1b0814){if(_0x30e901(_0x3697cf,_0x1b0814))return[_0x3697cf,_0x1b0814];if(_0x30e901(_0x1b0814,_0x3697cf))return[_0x1b0814,_0x3697cf];return null;});const _0x502ab8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30e901(_0x41c2ad,_0x4c5d45){const _0x17690f=_0x502ab8['findIndex'](({type:_0x4f6243,subType:_0xe190ea})=>_0x41c2ad['type']==_0x4f6243&&_0x41c2ad['subType']==_0xe190ea),_0x5bc777=_0x502ab8['findIndex'](({type:_0x5d4aa3,subType:_0x3a36e7})=>_0x4c5d45['type']==_0x5d4aa3&&_0x4c5d45['subType']==_0x3a36e7);if(_0x17690f<0x0||_0x5bc777<0x0)return!0x1;const _0x4373d7=_0x41c2ad['getFirstRange'](),_0x296ac9=_0x4c5d45['getFirstRange']();if((0x0==_0x17690f||0x1==_0x17690f)&&0x2==_0x5bc777&&_0x4373d7['isIntersecting'](_0x296ac9))return!0x0;if(0x2==_0x17690f&&0x3==_0x5bc777){const _0x14605d=_0x1058a6['_findSuggestions'](_0x4373d7,'insertion')['filter'](({suggestion:_0x11a1a0,meta:_0x344614})=>_0x344614['isOwn']&&'convertInlineImageToBlock'==_0x11a1a0['subType']);if(_0x14605d['length']>0x1&&_0x296ac9['end']['isEqual'](_0x4373d7['start']))return!0x0;if(0x1==_0x14605d['length']&&(_0x4373d7['start']['isEqual'](_0x296ac9['end'])||_0x4373d7['end']['isEqual'](_0x296ac9['start'])))return!0x0;}if(0x3==_0x17690f&&0x3==_0x5bc777&&_0x4373d7['start']['isBefore'](_0x296ac9['start'])){const _0x4a876a=_0x4373d7['end']['nodeAfter'],_0x47c0b2=_0x296ac9['start']['nodeBefore'];return _0x1e2edc['isBlockImage'](_0x4a876a)&&_0x4a876a===_0x47c0b2;}return!0x1;}_0x3b395b['model']['document']['registerPostFixer'](()=>{let _0x3cefd6=!0x1;const _0xf6943=Array['from'](_0x3b395b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x187649,data:_0xf5135}of _0xf6943){const {group:_0x264f11,type:_0x5972ec,subType:_0x3bc239,id:_0x3ea234}=_0x46f456(_0x187649);if('suggestion'==_0x264f11&&_0x1058a6['hasSuggestion'](_0x3ea234)){if('formatBlock'==_0x5972ec&&('imageStylePreApply'==_0x3bc239||'imageStylePostApply'==_0x3bc239)){const _0x326b9d=_0x1058a6['getSuggestion'](_0x3ea234);if(_0xf5135['newRange']){const _0x11fadd=_0x326b9d['getFirstRange']()['getContainedElement']();if(_0x1e2edc['isBlockImage'](_0x11fadd))continue;_0x1058a6['discardSuggestion'](_0x326b9d),_0x3cefd6=!0x0;}}if('insertion'==_0x5972ec&&'imageCaption'==_0x3bc239&&!_0xf5135['newRange']){const _0x1a0741=_0x1058a6['getSuggestion'](_0x3ea234);_0x1a0741['next']&&_0x1a0741['next']['isInContent']&&(_0x1058a6['discardSuggestion'](_0x1a0741['next']),_0x3cefd6=!0x0);}}}return _0x3cefd6;}),this['_registerLegacyDescription'](_0x4c95f6);}['_registerLegacyDescription'](_0x39a3ba){const _0x55ddf6=this['editor'],_0x5d147e=_0x55ddf6['locale'];_0x55ddf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b92ed=>{if('formatBlock'!=_0x1b92ed['type']&&'formatInline'!=_0x1b92ed['type'])return;const {data:_0x2fc4f2}=_0x1b92ed;if(!_0x2fc4f2||'imageStyle'!=_0x2fc4f2['commandName'])return;const _0x48d6ab=_0x2fc4f2['commandParams'][0x0]['value'];return _0x1cd02a('side'===_0x48d6ab?Tt(_0x5d147e,'FORMAT_SIDE_IMAGE'):_0x39a3ba[_0x48d6ab]||_0x48d6ab);function _0x1cd02a(_0xd6f27e){return{'type':'format','content':Tt(_0x5d147e,'*Format:*\x20%0',_0xd6f27e)};}});}}class TrackChangesImportWord extends _0x4b9de5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3989cf){super(_0x3989cf),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x57ce62=this['editor'],_0x58db90=_0x57ce62['commands']['get']('importWord'),_0x4df635=_0x57ce62['commands']['get']('trackChanges');_0x58db90&&(_0x58db90['on']('execute',(_0x59b61e,[,_0x48c134])=>{this['_trackChangesValueDuringImport']=_0x4df635['value'],_0x48c134['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x58db90,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x58db90,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4df635['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x57ce62['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x409533,_0x312557){const {suggestions:_0x2c2567}=_0x312557,_0x1fb4cb=this['editor']['commands']['get']('trackChanges'),_0x4bc54c=_0x1fb4cb['value'];this['_trackChangesValueDuringImport']!==_0x4bc54c&&(_0x1fb4cb['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c2567&&_0x2c2567['forEach'](({id:_0x29f3e8,type:_0x44f14d,author:_0x2f40a4,created_at:_0x1bfe3c})=>{const _0x1d00a3={'id':_0x29f3e8,'type':_0x44f14d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f40a4,'createdAt':_0x1bfe3c?new Date(_0x1bfe3c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1d00a3);});}}class TrackChangesIndent extends _0x4b9de5{['afterInit'](){const _0x553f8c=this['editor'],_0x5a466e=_0x553f8c['plugins']['get']('TrackChangesEditing');if(_0x553f8c['plugins']['has']('IndentEditing')&&(_0x5a466e['enableCommand']('indent'),_0x5a466e['enableCommand']('outdent')),_0x553f8c['plugins']['has']('IndentBlock')){for(const _0x2864df of['indentBlock','outdentBlock'])_0x5a466e['enableDefaultAttributesIntegration'](_0x2864df);if(_0x553f8c['plugins']['has']('ListEditing')){for(const _0x3f31c9 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5a466e['enableDefaultAttributesIntegration'](_0x3f31c9);}}const _0x22cb65=_0x553f8c['locale'];_0x5a466e['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x22cb65,'FORMAT_INDENT')),_0x5a466e['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x22cb65,'FORMAT_INDENT')),_0x5a466e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x22cb65,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdd7f19=this['editor'],_0x128419=_0xdd7f19['locale'],_0x459732=_0xdd7f19['plugins']['get']('TrackChangesEditing');_0x459732['descriptionFactory']['registerDescriptionCallback'](_0x5bdf0b=>{if('formatBlock'!=_0x5bdf0b['type'])return;const {data:_0x4874b7}=_0x5bdf0b;if(!_0x4874b7)return;if('indentBlock'!=_0x4874b7['commandName']&&'outdentBlock'!=_0x4874b7['commandName'])return;const _0x7dd737=_0x5bdf0b['getItems']()[0x0],_0x2231f1=_0x459732['descriptionFactory']['getItemLabel'](_0x7dd737);return'indentBlock'==_0x4874b7['commandName']?{'type':'format','content':Tt(_0x128419,'*Indent:*\x20%0',_0x2231f1)}:'outdentBlock'==_0x4874b7['commandName']?{'type':'format','content':Tt(_0x128419,'*Outdent:*\x20%0',_0x2231f1)}:void 0x0;});}}class TrackChangesInputCommand extends _0x4b9de5{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x4b9de5{['afterInit'](){const _0x366f1f=this['editor'];if(!_0x366f1f['plugins']['has']('LinkEditing'))return;const _0x5ba0f6=_0x366f1f['plugins']['get']('TrackChangesEditing'),_0x25c0e3=_0x366f1f['commands']['get']('link');_0x5ba0f6['enableDefaultAttributesIntegration']('link'),_0x5ba0f6['enableDefaultAttributesIntegration']('unlink');for(const _0x1c3d6e of _0x25c0e3['manualDecorators'])_0x5ba0f6['descriptionFactory']['registerAttributeLabel'](_0x1c3d6e['id'],'link\x20('+_0x1c3d6e['label']['toLowerCase']()+')');_0x5ba0f6['descriptionFactory']['registerDescriptionCallback'](_0x2a0753=>{if('attribute'!=_0x2a0753['type'])return;const {data:_0x2031fa}=_0x2a0753;if(!_0x2031fa||'linkHref'!=_0x2031fa['key'])return;const _0x95e67a=_0x2031fa['newValue'],_0x417e0c=_0x366f1f['locale'];return{'type':'format','content':null==_0x95e67a?Tt(_0x417e0c,'*Remove\x20link*'):Tt(_0x417e0c,'*Set\x20link:*\x20%0','\x22'+_0x95e67a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272038=this['editor'],_0x505ae8=_0x272038['locale'];_0x272038['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x137c32=>{if('formatInline'!=_0x137c32['type'])return;const {data:_0x2ded56}=_0x137c32;if(_0x2ded56){if('link'==_0x2ded56['commandName']){const _0x307bde=_0x2ded56['commandParams'][0x0];return{'type':'format','content':Tt(_0x505ae8,'*Set\x20link:*\x20%0','\x22'+_0x307bde+'\x22')};}return'unlink'==_0x2ded56['commandName']?{'type':'format','content':Tt(_0x505ae8,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x4b9de5{['afterInit'](){const _0x1e6701=this['editor'],_0x3919ea=_0x1e6701['locale'];if(!_0x1e6701['plugins']['has']('LegacyListEditing'))return;const _0xe5d8ee=_0x1e6701['plugins']['get']('TrackChangesEditing'),_0xd2bdd1=_0x1e6701['plugins']['has']('LegacyTodoListEditing');function _0x241445(_0x645fec){return()=>{const _0x3548dc=_0x1e6701['model']['document']['selection'],_0x39f36c=_0x1e6701['commands']['get'](_0x645fec);if(_0x39f36c['value'])return void _0x1e6701['execute']('paragraph',{});const _0x9546f1=_0x645fec['slice'](0x0,-0x4),_0xf8d7a2=function(_0x54ab38,_0x546548,_0xdd5485){let _0x521075=Array['from'](_0x54ab38)['filter'](_0x288331=>function(_0x146ccb,_0x5f461b){return _0x5f461b['checkChild'](_0x146ccb['parent'],'listItem')&&!_0x5f461b['isObject'](_0x146ccb);}(_0x288331,_0xdd5485));_0x521075=_0x521075['filter'](_0x32856d=>!_0x32856d['is']('element','listItem')||_0x32856d['getAttribute']('listType')!=_0x546548);const _0x20ffa2=new Set();for(const _0x249a87 of _0x521075)_0x249a87['is']('element','listItem')?_0x20ffa2['add'](St(_0x249a87)):_0x20ffa2['add'](_0x249a87);return Array['from'](_0x20ffa2);}(_0x3548dc['getSelectedBlocks'](),_0x9546f1,_0x1e6701['model']['schema']);_0x1e6701['model']['change'](()=>{for(const _0x3cc46b of _0xf8d7a2)_0xe5d8ee['markBlockFormat'](_0x3cc46b,{'commandName':_0x645fec,'commandParams':[{'forceValue':!_0x39f36c['value']}],'formatGroupId':'blockName'},Rt(_0x3cc46b));});};}function _0x4a3be2(_0x2fa237){return()=>{const _0xfddff3=function(_0x358aa0){let _0x1bea00=Array['from'](_0x358aa0);const _0x1892d9=_0x1bea00['findIndex'](_0x5cb2ff=>'listItem'!=_0x5cb2ff['name']);return _0x1892d9>-0x1&&(_0x1bea00=_0x1bea00['slice'](0x0,_0x1892d9)),_0x1bea00;}(_0x1e6701['model']['document']['selection']['getSelectedBlocks']()),_0x51909b=_0x1e6701['model']['createRange'](_0x1e6701['model']['createPositionAt'](_0xfddff3[0x0],'before'),_0x1e6701['model']['createPositionAt'](_0xfddff3[_0xfddff3['length']-0x1],'end'));_0x1e6701['model']['change'](()=>{_0xe5d8ee['markBlockFormat'](_0x51909b,{'commandName':_0x2fa237,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43bc9b){const _0xa091bc=new Set();for(const _0x5efa89 of _0x43bc9b){let _0x534820=_0x5efa89['nextSibling'];for(;_0x534820&&_0x534820['getAttribute']('listIndent')>_0x5efa89['getAttribute']('listIndent');)_0xa091bc['add'](_0x534820),_0x534820=_0x534820['nextSibling'];}return Array['from'](_0xa091bc);}(_0xfddff3));});};}_0xe5d8ee['enableCommand']('numberedList',_0x241445('numberedList')),_0xe5d8ee['enableCommand']('bulletedList',_0x241445('bulletedList')),_0xd2bdd1&&_0xe5d8ee['enableCommand']('todoList',_0x241445('todoList')),_0xe5d8ee['enableCommand']('indentList',_0x4a3be2('indentList')),_0xe5d8ee['enableCommand']('outdentList',_0x4a3be2('outdentList')),_0xd2bdd1&&_0xe5d8ee['enableCommand']('checkTodoList',()=>{const _0x45caad=_0x1e6701['commands']['get']('checkTodoList'),_0x361b8f=Array['from'](_0x45caad['_selectedElements']);_0x361b8f['filter'](_0x37ee93=>_0x37ee93['getAttribute']('todoListChecked')!=_0x45caad['value']),_0x1e6701['model']['change'](()=>{for(const _0x4a6b8a of _0x361b8f)_0xe5d8ee['markBlockFormat'](_0x4a6b8a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x45caad['value']}]});});}),_0xe5d8ee['descriptionFactory']['registerElementLabel']('listItem',_0x5a1d24=>Tt(_0x3919ea,'ELEMENT_LIST_ITEM',_0x5a1d24)),_0xe5d8ee['descriptionFactory']['registerDescriptionCallback'](_0x1c2633=>{if('formatBlock'!=_0x1c2633['type']&&'formatInline'!=_0x1c2633['type'])return;const {data:_0xf25c62}=_0x1c2633;if(_0xf25c62){if('numberedList'==_0xf25c62['commandName']||'bulletedList'==_0xf25c62['commandName']||'todoList'==_0xf25c62['commandName'])switch(_0xf25c62['commandName']['replace']('List','')){case'bulleted':return _0x5dda11(Tt(_0x3919ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5dda11(Tt(_0x3919ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5dda11(Tt(_0x3919ea,'ELEMENT_TODO_LIST'));}if('indentList'==_0xf25c62['commandName'])return{'type':'format','content':Tt(_0x3919ea,'*Indent:*\x20%0',Tt(_0x3919ea,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xf25c62['commandName'])return{'type':'format','content':Tt(_0x3919ea,'*Outdent:*\x20%0',Tt(_0x3919ea,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xf25c62['commandName'])return _0xf25c62['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3919ea,'*Check\x20item*')}:{'type':'format','content':Tt(_0x3919ea,'*Uncheck\x20item*')};}function _0x5dda11(_0x4c6e0f){return{'type':'format','content':Tt(_0x3919ea,'*Change\x20to:*\x20%0',_0x4c6e0f)};}});}}function St(_0x32c552){const _0x20e14a=_0x32c552['getAttribute']('listIndent');if(0x0==_0x20e14a)return _0x32c552;let _0x4d198a=_0x32c552;for(;_0x32c552['previousSibling']&&_0x32c552['previousSibling']['is']('element','listItem');){const _0x3fdc2f=_0x32c552['previousSibling']['getAttribute']('listIndent');if(_0x3fdc2f==_0x20e14a)_0x4d198a=_0x32c552['previousSibling'];else{if(_0x3fdc2f<_0x20e14a)break;}_0x32c552=_0x32c552['previousSibling'];}return _0x4d198a;}function Rt(_0xb192b3){const _0x1a26df=[];if(_0xb192b3['is']('element','listItem')&&_0xb192b3['getAttribute']('listIndent')>0x0){let _0x2da946=_0xb192b3['nextSibling'];for(;_0x2da946&&'listItem'==_0x2da946['name']&&_0x2da946['getAttribute']('listIndent')==_0xb192b3['getAttribute']('listIndent');)_0x1a26df['push'](_0x2da946),_0x2da946=_0x2da946['nextSibling'];}return _0x1a26df;}class TrackChangesLegacyListProperties extends _0x4b9de5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6c973a=this['editor']['config']['get']('list.properties'),_0x450f4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c973a['styles']&&_0x450f4a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6c973a['reversed']&&_0x450f4a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6c973a['startIndex']&&_0x450f4a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x450f4a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf82d9b,_0x10f591={}){const _0x49baee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d78b0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x49baee['markMultiRangeBlockFormat'](_0x2d78b0,{'commandName':'listStyle','commandParams':[{'type':_0x10f591['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5e83b6,_0xd7dcc9={}){const _0x451f58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3512b5=this['_getSuggestionBlocks'](_0x2ec037=>_0x2ec037['is']('element','listItem')&&'numbered'===_0x2ec037['getAttribute']('listType'));if(_0x3512b5['length']<0x1)return;const _0x5888c5=_0x3512b5['map'](_0x5a6d3e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a6d3e,'before'),this['editor']['model']['createPositionAt'](_0x5a6d3e,0x0)));this['editor']['model']['change'](()=>{_0x451f58['markMultiRangeBlockFormat'](_0x5888c5,{'commandName':'listReversed','commandParams':[{'reversed':_0xd7dcc9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x531b43,_0x4c1a17={}){const _0x512465=this['editor']['plugins']['get']('TrackChangesEditing'),_0x454394=this['_getSuggestionBlocks'](_0x2b48d0=>_0x2b48d0['is']('element','listItem')&&'numbered'===_0x2b48d0['getAttribute']('listType'));if(_0x454394['length']<0x1)return;const _0xc2548f=_0x454394['map'](_0x513779=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x513779,'before'),this['editor']['model']['createPositionAt'](_0x513779,0x0)));this['editor']['model']['change'](()=>{_0x512465['markMultiRangeBlockFormat'](_0xc2548f,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c1a17['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9ab3f1){if('formatBlock'!=_0x9ab3f1['type']&&'formatInline'!=_0x9ab3f1['type'])return;const _0x26e432=this['editor']['locale'],{data:_0x38ca}=_0x9ab3f1;if(!_0x38ca)return;let _0x127d60,_0x2fab3b;switch(_0x38ca['commandName']){case'listStyle':_0x127d60='*Change\x20to:*\x20%0',_0x2fab3b={'type':'format','content':Tt(_0x26e432,_0x127d60,Tt(_0x26e432,this['_getTranslationKeyForListStyle'](_0x38ca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x127d60=_0x38ca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2fab3b={'type':'format','content':Tt(_0x26e432,_0x127d60)};break;case'listStart':_0x127d60='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fab3b={'type':'format','content':Tt(_0x26e432,_0x127d60,_0x38ca['commandParams'][0x0]['startIndex'])};}return _0x2fab3b;}['_getSuggestionBlocksForListStyle'](){const _0x3946d3=this['editor']['plugins']['get']('LegacyListUtils');let _0xbfcccd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbfcccd[0x0]?.['is']('element','listItem')&&_0xbfcccd['unshift'](..._0x3946d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbfcccd[_0xbfcccd['length']-0x1]?.['is']('element','listItem')&&_0xbfcccd['push'](..._0x3946d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbfcccd=[...new Set(_0xbfcccd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbfcccd=_0xbfcccd['filter'](_0x376207=>_0x376207['is']('element','listItem'))),_0xbfcccd;}['_getSuggestionBlocks'](_0xf9e410){const _0x2e53f1=this['editor']['plugins']['get']('LegacyListUtils');let _0x201e2e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xf9e410)['map'](_0x1b4b26=>{const _0x38a82c=this['editor']['model']['createPositionAt'](_0x1b4b26,0x0);return[..._0x2e53f1['getSiblingNodes'](_0x38a82c,'backward'),..._0x2e53f1['getSiblingNodes'](_0x38a82c,'forward')];})['flat']();return _0x201e2e=[...new Set(_0x201e2e)],_0x201e2e;}['_getTranslationKeyForListStyle'](_0x39e472){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39e472)||'default')['toUpperCase']()+'_LIST_'+_0x39e472['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x4b9de5{['afterInit'](){const _0x48cc1f=this['editor'];if(!_0x48cc1f['plugins']['has']('MediaEmbedEditing'))return;const _0x28bd56=_0x48cc1f['plugins']['get']('TrackChangesEditing'),_0x5117f8=_0x48cc1f['locale'];_0x28bd56['enableCommand']('mediaEmbed'),_0x28bd56['descriptionFactory']['registerElementLabel']('media',_0x1c5f2b=>Tt(_0x5117f8,'ELEMENT_MEDIA',_0x1c5f2b)),_0x48cc1f['plugins']['has']('MediaEmbedResizeEditing')&&(_0x28bd56['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x28bd56['descriptionFactory']['registerDescriptionCallback'](_0x21204f=>{if('attribute'!=_0x21204f['type'])return;const {data:_0x5999fe}=_0x21204f;if(!_0x5999fe||'resizedWidth'!=_0x5999fe['key'])return;const _0x261b7f=_0x21204f['getContainedElement']();if(!_0x261b7f||!_0x261b7f['is']('element','media'))return;const _0x3ca301=Tt(_0x5117f8,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x5117f8,'*Set\x20format:*\x20%0',_0x3ca301)};}));}}class TrackChangesMediaEmbedStyle extends _0x4b9de5{['afterInit'](){const _0x26f0c0=this['editor'];if(!_0x26f0c0['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5a0136=_0x26f0c0['plugins']['get']('TrackChangesEditing'),_0x16aa53=_0x26f0c0['locale'],_0x13a217=_0x26f0c0['plugins']['get']('MediaEmbedStyleEditing'),_0x34cc6e={};for(const _0x15db0b of _0x13a217['normalizedStyles'])_0x34cc6e[_0x15db0b['name']]=_0x15db0b['title']['toLowerCase']();const _0x373ea6=_0x13a217['normalizedStyles']['find'](_0x3785fa=>_0x3785fa['isDefault'])?.['name'];_0x5a0136['enableCommand']('mediaStyle',(_0x1468e2,_0x141f8d)=>{const _0x1a9f1c=_0x26f0c0['plugins']['get']('Users')['me'],_0x6aff6f=_0x26f0c0['commands']['get']('mediaStyle'),_0x947fc=function(_0x1a773f){const _0x50f9ba=_0x1a773f['model']['document']['selection']['getSelectedElement']();if(_0x50f9ba&&_0x50f9ba['is']('element','media'))return _0x50f9ba;return null;}(_0x26f0c0);if(!_0x947fc)return;const _0x4d0029=_0x26f0c0['model']['createRangeOn'](_0x947fc);let _0xc8602a=_0x6aff6f['value'];if(_0xc8602a==_0x141f8d['value'])return;const _0xf0473d={'commandName':'mediaStyle','commandParams':[_0x141f8d],'formatGroupId':_0x3c1805()};_0x26f0c0['model']['change'](()=>{_0x5a0136['getSuggestions']()['filter'](_0x579581=>_0x579581['isInContent']&&_0x1a9f1c==_0x579581['author']&&'formatBlock'==_0x579581['type']&&'mediaStylePostApply'==_0x579581['subType']&&_0x579581['getFirstRange']()['isEqual'](_0x4d0029))['forEach'](_0x37f49f=>_0x5a0136['discardSuggestion'](_0x37f49f['head'])),_0x6aff6f['refresh'](),_0xc8602a=_0x6aff6f['value'],_0xc8602a!=_0x141f8d['value']&&_0x5a0136['markBlockFormat'](_0x947fc,{..._0xf0473d,'commandReversedParams':[{'value':'string'==typeof _0xc8602a?_0xc8602a:null}]},[],'mediaStylePostApply');});}),_0x5a0136['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5a0136['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4239a8,_0x44697d)=>{_0x5a0136['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4239a8,{'commandName':_0x44697d['commandName'],'commandParams':_0x44697d['commandReversedParams']});}),_0x5a0136['descriptionFactory']['registerDescriptionCallback'](_0x1e68c1=>{if('formatBlock'!=_0x1e68c1['type'])return;const {data:_0x2216bd}=_0x1e68c1;if(!_0x2216bd||'mediaStyle'!=_0x2216bd['commandName'])return;const _0x1f7abb=_0x2216bd['commandParams'][0x0]['value']||_0x373ea6;if(!_0x1f7abb)return;const _0xe2a10b=_0x34cc6e[_0x1f7abb]||_0x1f7abb;return{'type':'format','content':Tt(_0x16aa53,'*Format:*\x20%0',_0xe2a10b)};});}}class TrackChangesMention extends _0x4b9de5{['afterInit'](){const _0x2de5bb=this['editor'];_0x2de5bb['plugins']['has']('MentionEditing')&&_0x2de5bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x4b9de5{['afterInit'](){const _0x118148=this['editor'];if(!_0x118148['plugins']['has']('MergeFieldsEditing'))return;const _0x3f5f9a=_0x118148['plugins']['get']('TrackChangesEditing'),_0x3f09a3=_0x118148['locale'];_0x3f5f9a['enableCommand']('insertMergeField'),_0x3f5f9a['enableCommand']('insertMergeFieldBlock'),_0x3f5f9a['enableCommand']('insertMergeFieldImage'),_0x3f5f9a['descriptionFactory']['registerElementLabel']('mergeField',_0xb2824e=>Tt(_0x3f09a3,'ELEMENT_MERGE_FIELD',_0xb2824e)),_0x3f5f9a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1e8a09=>Tt(_0x3f09a3,'ELEMENT_MERGE_FIELD',_0x1e8a09)),_0x3f5f9a['descriptionFactory']['registerDescriptionCallback'](_0x5bea8c=>{if('insertion'!=_0x5bea8c['type']&&'deletion'!=_0x5bea8c['type'])return;const _0x5ab14e=_0x5bea8c['getContainedElement']();if(null==_0x5ab14e)return;const _0x546fb8=_0x118148['plugins']['get']('MergeFieldsEditing');let _0xec2547;switch(_0x546fb8['getMergeFieldType'](_0x5ab14e)){case null:return;case'image':{const _0x131146=_0x546fb8['unwrapAffixes'](_0x5ab14e['getAttribute']('src'));_0xec2547=_0x546fb8['getLabel'](_0x131146)||_0x131146;break;}default:{const _0x3d8b44=_0x5ab14e['getAttribute']('id');_0xec2547=_0x546fb8['getLabel'](_0x3d8b44)||_0x3d8b44;break;}}return'insertion'==_0x5bea8c['type']?{'type':'insertion','content':Tt(_0x3f09a3,'*Insert:*\x20%0','\x22'+_0xec2547+'\x22\x20'+Tt(_0x3f09a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x3f09a3,'*Remove:*\x20%0','\x22'+_0xec2547+'\x22\x20'+Tt(_0x3f09a3,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x4b9de5{['afterInit'](){const _0x541be7=this['editor'],_0x3f1934=_0x541be7['plugins']['get']('TrackChangesEditing');_0x541be7['plugins']['has']('MultiLevelList')&&(_0x3f1934['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f1934['descriptionFactory']['registerDescriptionCallback'](_0x22f41b=>this['handleDescriptions'](_0x22f41b)));}['handleDescriptions'](_0x1fff6f){const _0x2c3630=this['editor']['locale'],{data:_0x222761}=_0x1fff6f,_0xcade93={'type':'format','content':''};if(_0x222761&&'listMarkerStyle'==_0x222761['key']){if(!_0x222761['oldValue'])return{'type':'format','content':Tt(_0x2c3630,'*Set\x20format:*\x20%0',Tt(_0x2c3630,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x222761['newValue']+')'};if(!_0x222761['newValue']){let _0x274d8b=_0x1fff6f['head'];for(;_0x274d8b;){if(_0x274d8b['data']&&'listType'==_0x274d8b['data']['key']&&_0x274d8b['data']['newValue'])return _0xcade93;_0x274d8b=_0x274d8b['next'];}return{'type':'format','content':Tt(_0x2c3630,'*Remove\x20format:*\x20%0',Tt(_0x2c3630,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x222761['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x4b9de5{['afterInit'](){const _0x2d1662=this['editor'];if(!_0x2d1662['plugins']['has']('PageBreakEditing'))return;_0x2d1662['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f46cf=_0x2d1662['plugins']['get']('TrackChangesEditing'),_0x5e5da9=_0x2d1662['locale'];_0x3f46cf['descriptionFactory']['registerElementLabel']('pageBreak',_0x371abb=>Tt(_0x5e5da9,'ELEMENT_PAGE_BREAK',_0x371abb));}}class TrackChangesParagraph extends _0x4b9de5{['afterInit'](){const _0x1cee5d=this['editor'];if(!_0x1cee5d['plugins']['has']('Paragraph'))return;const _0x1702bc=_0x1cee5d['locale'],_0x5ec5fa=_0x1cee5d['plugins']['get']('TrackChangesEditing');_0x5ec5fa['descriptionFactory']['registerElementLabel']('paragraph',_0x44f74f=>Tt(_0x1702bc,'ELEMENT_PARAGRAPH',_0x44f74f)),_0x5ec5fa['enableDefaultAttributesIntegration']('paragraph'),_0x5ec5fa['enableCommand']('insertParagraph');const _0xaddcab=_0x5ec5fa['descriptionFactory'];_0xaddcab['registerDescriptionCallback'](_0x2e8a6f=>{if('insertion'!==_0x2e8a6f['type'])return;const {start:_0x1d8fee,end:_0xd9043b}=_0x2e8a6f['getFirstRange']();if(!_0x1d8fee['isTouching'](_0xd9043b)||!_0x1d8fee['nodeAfter'])return;const _0x33ab30=_0x1cee5d['model']['schema'],_0x3437ca=_0x1d8fee['nodeAfter'];return _0x33ab30['isBlock'](_0x3437ca)&&!_0x33ab30['isLimit'](_0x3437ca)&&_0x33ab30['checkChild'](_0x3437ca,'$text')?{'type':'insertion','content':Tt(_0x1702bc,'*Insert:*\x20%0',_0xaddcab['getItemLabel'](_0x3437ca,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e344=this['editor'],_0xe74e17=_0x58e344['locale'];_0x58e344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259768=>{if('formatBlock'!=_0x259768['type'])return;const {data:_0x5e86c9}=_0x259768;return _0x5e86c9&&'paragraph'==_0x5e86c9['commandName']?{'type':'format','content':Tt(_0xe74e17,'*Change\x20to:*\x20%0',Tt(_0xe74e17,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x4b9de5{['afterInit'](){const _0x210281=this['editor'];_0x210281['commands']['get']('replaceSource')&&_0x210281['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x4b9de5{['afterInit'](){const _0x50aec5=this['editor'];if(!_0x50aec5['plugins']['has']('RemoveFormatEditing'))return;_0x50aec5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x174509=this['editor'];_0x174509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1e1d=>{if('formatBlock'!=_0x1e1e1d['type']&&'formatInline'!=_0x1e1e1d['type'])return;const {data:_0x190051}=_0x1e1e1d;return _0x190051&&'removeFormat'==_0x190051['commandName']?{'type':'format','content':Tt(_0x174509['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x4b9de5{['afterInit'](){const _0x3f7c0a=this['editor'];if(!_0x3f7c0a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15e854=_0x3f7c0a['plugins']['get']('TrackChangesEditing');_0x15e854['enableCommand']('goToPreviousRestrictedEditingException'),_0x15e854['enableCommand']('goToNextRestrictedEditingException');const _0x472b81=_0x3f7c0a['plugins']['get']('RestrictedEditingModeEditing');_0x472b81['enableCommand']('trackChanges'),_0x472b81['enableCommand']('acceptSuggestion'),_0x472b81['enableCommand']('discardSuggestion'),_0x472b81['enableCommand']('acceptAllSuggestions'),_0x472b81['enableCommand']('discardAllSuggestions'),_0x472b81['enableCommand']('acceptSelectedSuggestions'),_0x472b81['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x4b9de5{['afterInit'](){const _0x17106c=this['editor'];if(!_0x17106c['plugins']['has']('ShiftEnter'))return;const _0x18fb99=_0x17106c['plugins']['get']('TrackChangesEditing');_0x18fb99['enableCommand']('shiftEnter'),_0x18fb99['descriptionFactory']['registerElementLabel']('softBreak',_0x810640=>Tt(_0x17106c['locale'],'ELEMENT_LINE_BREAK',_0x810640));}}function yt(_0xa3576a,_0x273573,_0x5a5f7d){const _0x2c1133=[];for(const _0x2b3218 of _0x273573['getItems']())_0x2b3218['hasAttribute'](_0xa3576a)&&_0x2c1133['push'](_0x5a5f7d['createRangeOn'](_0x2b3218));return _0x2c1133;}class TrackChangesStandardEditingMode extends _0x4b9de5{['afterInit'](){const _0x37f04a=this['editor'],_0x3231c2=_0x37f04a['plugins']['get']('TrackChangesEditing');_0x37f04a['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3231c2['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x295e25=this['editor'],_0x52dfd7=_0x295e25['model'],_0x191ab1=_0x295e25['locale'],_0xda7af7=_0x295e25['plugins']['get']('TrackChangesEditing'),_0x52a38a='restrictedEditingException',_0x2cbd2b=_0x295e25['commands']['get'](_0x52a38a);_0xda7af7['enableCommand'](_0x52a38a,(_0x3f0c2e,_0x344a7d={})=>{const _0x4a85a6=_0x52dfd7['document']['selection'];if(_0x4a85a6['isCollapsed'])return void _0x3f0c2e(_0x344a7d);const _0x286416=void 0x0!==_0x344a7d['forceValue']?_0x344a7d['forceValue']:!_0x2cbd2b['value'];_0x52dfd7['change'](()=>{const _0x5b3cdb=Array['from'](_0x4a85a6['getRanges']());for(const _0x266309 of _0x5b3cdb){const _0x1bae11=_0x286416?[_0x266309]:yt(_0x52a38a,_0x266309,_0x52dfd7);for(const _0x49dee3 of _0x1bae11)_0xda7af7['markInlineFormat'](_0x49dee3,{'commandName':_0x52a38a,'commandParams':[{'forceValue':_0x286416}]});}});}),_0xda7af7['descriptionFactory']['registerDescriptionCallback'](_0x87105f=>{if('formatBlock'!=_0x87105f['type']&&'formatInline'!=_0x87105f['type'])return;const {data:_0xf063be}=_0x87105f;return _0xf063be&&_0xf063be['commandName']==_0x52a38a?_0xf063be['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x191ab1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x191ab1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4d7660=this['editor'],_0x3e6401=_0x4d7660['locale'],_0x3fcce5=_0x4d7660['plugins']['get']('TrackChangesEditing'),_0x59fdca='restrictedEditingExceptionBlock',_0x4427aa=this['editor']['commands']['get'](_0x59fdca);_0x3fcce5['enableCommand'](_0x59fdca,(_0x8439a8,_0x20e59d={})=>{const _0x17112e=this['editor']['model']['document']['selection'],_0x348869=_0x20e59d&&void 0x0!==_0x20e59d['forceValue']?_0x20e59d['forceValue']:!_0x4427aa['value'];let _0xc638b2=[];if(_0x348869){const _0x97261e=Array['from'](_0x17112e['getSelectedBlocks']())['filter'](_0x42dd59=>function(_0x16b406){return!!_0x16b406['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x42dd59)||function(_0x29989b,_0xe78e1f){const _0x1fc0a8=_0xe78e1f['createContext'](_0x29989b['parent']);if(!_0xe78e1f['checkChild'](_0x1fc0a8,'restrictedEditingException'))return!0x1;if(!_0xe78e1f['checkChild'](_0x1fc0a8['push']('restrictedEditingException'),_0x29989b))return!0x1;return!0x0;}(_0x42dd59,this['editor']['model']['schema']));_0xc638b2=ft(_0x97261e,_0x4d7660['model']);}else{const _0x14db7f=Array['from'](_0x17112e['getSelectedBlocks']())['map'](_0x42c945=>function(_0x631b12){let _0x18261a=_0x631b12;for(;_0x18261a['parent'];){if('restrictedEditingException'==_0x18261a['parent']['name'])return _0x18261a;_0x18261a=_0x18261a['parent'];}return null;}(_0x42c945))['filter'](_0x1ec27e=>!!_0x1ec27e);_0xc638b2=ft(_0x14db7f,_0x4d7660['model']);}_0x4d7660['model']['change'](()=>{for(const _0x3b5572 of _0xc638b2)_0x3fcce5['markBlockFormat'](_0x3b5572,{'commandName':_0x59fdca,'commandParams':[{'forceValue':_0x348869}]});});}),_0x3fcce5['descriptionFactory']['registerDescriptionCallback'](_0x5c6aee=>{const {data:_0x367804}=_0x5c6aee;if(_0x367804&&_0x367804['commandName']==_0x59fdca)return _0x367804['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e6401,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3e6401,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x4b9de5{['afterInit'](){const _0x13d0b8=this['editor'];if(!_0x13d0b8['plugins']['has']('Style')||!_0x13d0b8['plugins']['has']('DataSchema'))return;_0x13d0b8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116a22=this['editor'],_0x465d74=_0x116a22['locale'];_0x116a22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f25b9=>{if('formatBlock'!=_0x5f25b9['type']&&'formatInline'!=_0x5f25b9['type'])return;const {data:_0x568cb0}=_0x5f25b9;return _0x568cb0&&'style'===_0x568cb0['commandName']?_0x568cb0['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x465d74,'*Set\x20format:*\x20%0',_0x568cb0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x465d74,'*Remove\x20format:*\x20%0',_0x568cb0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x4b9de5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x278e84){super(_0x278e84),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ef7f0=this['editor'],_0x2ea1f6=_0x1ef7f0['model']['document']['selection'];if(!_0x1ef7f0['plugins']['has']('TableEditing'))return;const _0x579456=_0x1ef7f0['locale'],_0x32f7bd=_0x1ef7f0['plugins']['get']('TrackChangesEditing'),_0x7f980=_0x1ef7f0['plugins']['get']('TableUtils');_0x32f7bd['descriptionFactory']['registerElementLabel']('table',_0x45f4f2=>Tt(_0x579456,'ELEMENT_TABLE',_0x45f4f2)),this['_setupColumnsRowsFixing'](),_0x32f7bd['enableCommand']('insertTable'),_0x32f7bd['enableCommand']('selectTableRow'),_0x32f7bd['enableCommand']('selectTableColumn');for(const _0xa27099 of['insertTableRowAbove','insertTableRowBelow']){const _0x9f5f6e=_0x1ef7f0['commands']['get'](_0xa27099);_0x32f7bd['enableCommand'](_0xa27099,_0x13ba6a=>{_0x1ef7f0['model']['change'](_0x3735da=>{_0x13ba6a();const _0x5d133a='above'===_0x9f5f6e['order'],_0x5a09e1=_0x7f980['getSelectionAffectedTableCells'](_0x2ea1f6),_0x14a67=_0x7f980['getRowIndexes'](_0x5a09e1),_0x3ec505=_0x5d133a?_0x14a67['first']-0x1:_0x14a67['last']+0x1,_0x181c7b=_0x5a09e1[0x0]['findAncestor']('table'),_0x1242ae=_0x7f980['createTableWalker'](_0x181c7b,{'startRow':_0x3ec505,'endRow':_0x3ec505}),_0x5506dc=Array['from'](_0x1242ae)['map'](_0x331140=>_0x3735da['createRangeOn'](_0x331140['cell']));_0x32f7bd['markMultiRangeInsertion'](_0x5506dc,'tableRow');});});}for(const _0x4e9e02 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3765ff=_0x1ef7f0['commands']['get'](_0x4e9e02);_0x32f7bd['enableCommand'](_0x4e9e02,_0x593317=>{_0x1ef7f0['model']['change'](_0x5b5e57=>{_0x593317();const _0x2b5524='left'===_0x3765ff['order'],_0x265592=_0x7f980['getSelectionAffectedTableCells'](_0x2ea1f6),_0x273733=_0x7f980['getColumnIndexes'](_0x265592),_0x1d93c8=_0x2b5524?_0x273733['first']-0x1:_0x273733['last']+0x1,_0x57a746=_0x265592[0x0]['findAncestor']('table'),_0x2a29b9=_0x7f980['createTableWalker'](_0x57a746,{'startRow':0x0,'column':_0x1d93c8,'includeAllSlots':!0x1}),_0x13d60b=Array['from'](_0x2a29b9)['map'](_0x51c2a4=>_0x5b5e57['createRangeOn'](_0x51c2a4['cell']));_0x32f7bd['markMultiRangeInsertion'](_0x13d60b,'tableColumn');});});}for(const _0x4237cb of['removeTableRow','removeTableColumn']){const _0x3ffd50=_0x4237cb['substr'](0xb),_0x101298=_0x3ffd50['toLowerCase'](),_0x2fa5f6=_0x101298['substr'](0x0,0x3)+'span',_0x36b956='table'+_0x3ffd50,_0x327b89='min'+_0x3ffd50,_0x2418b2='max'+_0x3ffd50;_0x32f7bd['enableCommand'](_0x4237cb,()=>{_0x1ef7f0['model']['change'](_0x5cdde7=>{const _0x1a8590=_0x7f980['getSelectionAffectedTableCells'](_0x2ea1f6),_0x3a250c=_0x1a8590[0x0]['findAncestor']('table');let _0x172e0e;if('removeTableRow'==_0x4237cb){const _0x1eda59=_0x7f980['getRowIndexes'](_0x1a8590);_0x172e0e={'startRow':_0x1eda59['first'],'endRow':_0x1eda59['last'],'includeAllSlots':!0x0};}else{const _0x3c0582=_0x7f980['getColumnIndexes'](_0x1a8590);_0x172e0e={'startColumn':_0x3c0582['first'],'endColumn':_0x3c0582['last'],'includeAllSlots':!0x0};}const _0x2b8afa=_0x7f980['createTableWalker'](_0x3a250c,_0x172e0e),_0x35cf50=Array['from'](_0x2b8afa)['map'](({cell:_0x52dbcc})=>_0x52dbcc),_0x5a4dcf=Nt(_0x35cf50['filter'](_0x25ef33=>_0x25ef33['hasAttribute'](_0x2fa5f6))),_0x4f9276=Nt(_0x35cf50['filter'](_0x175c12=>!_0x175c12['hasAttribute'](_0x2fa5f6)))['map'](_0x58b5c8=>_0x5cdde7['createRangeOn'](_0x58b5c8)),_0x38014c=_0x32f7bd['markMultiRangeDeletion'](_0x4f9276,_0x36b956);if(_0x38014c&&('tableRow'==_0x38014c['subType']||'tableColumn'==_0x38014c['subType'])){const _0x3a1458=this['_getSuggestionCoords'](_0x38014c);for(const _0xc2a50e of _0x5a4dcf){const _0x3f3cca=_0x5cdde7['createRangeOn'](_0xc2a50e),_0x249acd=_0x7f980['getCellLocation'](_0xc2a50e),_0x184998=_0xc2a50e['getAttribute'](_0x2fa5f6)-0x1,_0x4c99ab=_0x3a1458[_0x327b89],_0x699b58=_0x3a1458[_0x2418b2];_0x4c99ab<=_0x249acd[_0x101298]&&_0x249acd[_0x101298]+_0x184998<=_0x699b58&&_0x38014c['addRange'](_0x3f3cca);}}});});}function _0x5d3a62(_0x137775){const _0x5d7c7a=Array['from'](_0x2ea1f6['getRanges']())['map'](_0x3818a2=>_0x39b3ef['fromRange'](_0x3818a2));_0x1ef7f0['model']['change'](_0xb65d0=>{const _0xb1a421=_0xb65d0['batch'];_0x137775=_0x137775['filter'](_0x2b4cf0=>'$graveyard'!=_0x2b4cf0['root']['rootName']),_0xb65d0['setSelection'](_0x137775),_0x1ef7f0['commands']['get']('removeTableRow')['refresh'](),_0x1ef7f0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ef7f0['model']['enqueueChange'](()=>{_0x1ef7f0['model']['enqueueChange'](_0xb1a421,_0x57be6d=>{const _0xb537b7=_0x5d7c7a['filter'](_0xcfb039=>'$graveyard'!=_0xcfb039['root']['rootName']);_0xb537b7['length']>0x0&&_0x57be6d['setSelection'](_0xb537b7);for(const _0x39eae0 of _0x5d7c7a)_0x39eae0['detach']();});});});}function _0x51c4bf(_0x2f6fe3){_0x1ef7f0['model']['change'](_0x280842=>{const _0x4db3cc=Array['from'](_0x2ea1f6['getRanges']())['map'](_0x3c9bf6=>_0x39b3ef['fromRange'](_0x3c9bf6)),_0x16f8ac=[];for(const _0x259750 of _0x2f6fe3)for(const _0x2f5de6 of _0x259750['getItems']({'shallow':!0x0}))_0x16f8ac['push'](_0x2f5de6);for(const _0x20797f of _0x16f8ac)'$graveyard'!=_0x20797f['root']['rootName']&&(_0x280842['setSelection'](_0x280842['createPositionAt'](_0x20797f,0x0)),_0x1ef7f0['commands']['get']('removeTableColumn')['refresh'](),_0x1ef7f0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32a54e=_0x4db3cc['filter'](_0x4c8f3d=>'$graveyard'!=_0x4c8f3d['root']['rootName']);_0x32a54e['length']>0x0&&_0x280842['setSelection'](_0x32a54e);for(const _0x1c5229 of _0x4db3cc)_0x1c5229['detach']();});}function _0x4e123e(_0x184852,_0x4959c6){return _0x4959c6['every'](_0x150998=>_0x184852['some'](_0x4623b2=>_0x4623b2['end']['isEqual'](_0x150998['start'])||_0x150998['end']['isEqual'](_0x4623b2['start'])));}function _0x522603(_0x53136f,_0x464982){return!_0x53136f['some'](_0x45c94d=>_0x464982['some'](_0x851bd6=>_0x45c94d['isIntersecting'](_0x851bd6)))&&_0x53136f['some'](_0x2e9c13=>_0x464982['some'](_0x587207=>_0x2e9c13['end']['isTouching'](_0x587207['start'])));}_0x32f7bd['descriptionFactory']['registerDescriptionCallback'](_0x5f2706=>{if('insertion'!=_0x5f2706['type']&&'deletion'!=_0x5f2706['type'])return;const _0xe83cc4=_0x5f2706['getContainedElement']();if(null!=_0xe83cc4&&_0xe83cc4['is']('element','table')){if('insertion'==_0x5f2706['type']){const _0x4701dc=_0x5f2706['getItems']()['filter'](_0x3b3b44=>_0x3b3b44['is']('$textProxy'))['map'](_0x476838=>_0x476838['data']);if(_0x4701dc['length'])return{'type':'insertion','content':Tt(_0x579456,'*Insert:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4701dc['join']('\x20')+'\x22'))};}if('deletion'==_0x5f2706['type']){const _0x4a245a=_0x5f2706['getItems']()['filter'](_0x34e900=>_0x34e900['is']('$textProxy'))['map'](_0x153aea=>_0x153aea['data']);if(_0x4a245a['length'])return{'type':'deletion','content':Tt(_0x579456,'*Remove:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a245a['join']('\x20')+'\x22'))};}}}),_0x32f7bd['descriptionFactory']['registerDescriptionCallback'](_0x53a961=>{if('tableRow'==_0x53a961['subType']){const _0x4193aa=_0x53a961['getItems']()['filter'](_0x381361=>_0x381361['is']('$textProxy'))['map'](_0x11c79e=>_0x11c79e['data']),_0x505ea1=this['_getSuggestionCoords'](_0x53a961),_0x3c0c8b=_0x505ea1['maxRow']-_0x505ea1['minRow']+0x1;if('insertion'==_0x53a961['type'])return _0x4193aa['length']?{'type':'insertion','content':Tt(_0x579456,'*Insert:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c0c8b,'\x22'+_0x4193aa['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x579456,'*Insert:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_ROW',_0x3c0c8b))};if('deletion'==_0x53a961['type'])return _0x4193aa['length']?{'type':'deletion','content':Tt(_0x579456,'*Remove:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c0c8b,'\x22'+_0x4193aa['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x579456,'*Remove:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_ROW',_0x3c0c8b))};}if('tableColumn'==_0x53a961['subType']){const _0x481109=_0x53a961['getItems']()['filter'](_0xaec168=>_0xaec168['is']('$textProxy'))['map'](_0x184a6b=>_0x184a6b['data']),_0x1edc2b=this['_getSuggestionCoords'](_0x53a961),_0x2cb02a=_0x1edc2b['maxColumn']-_0x1edc2b['minColumn']+0x1;if('insertion'==_0x53a961['type'])return _0x481109['length']?{'type':'insertion','content':Tt(_0x579456,'*Insert:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2cb02a,'\x22'+_0x481109['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x579456,'*Insert:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_COLUMN',_0x2cb02a))};if('deletion'==_0x53a961['type'])return _0x481109['length']?{'type':'deletion','content':Tt(_0x579456,'*Remove:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2cb02a,'\x22'+_0x481109['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x579456,'*Remove:*\x20%0',Tt(_0x579456,'ELEMENT_TABLE_COLUMN',_0x2cb02a))};}}),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d3a62),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d3a62),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51c4bf),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51c4bf),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e123e),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e123e),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x522603),_0x32f7bd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x522603);}['_acceptFormatSuggestionCallbackFactory'](){const _0x29b974=this['editor'],_0xd8703f=_0x29b974['model']['document']['selection'];return(_0x49ec8e,_0x46fdbf)=>{_0x29b974['model']['change'](_0x592799=>{const {commandName:_0xaba809,commandParams:_0x107d63}=_0x46fdbf;let _0x951438=_0x49ec8e[0x0]['end']['nodeBefore'];_0x107d63&&_0x107d63[0x0]&&!0x1===_0x107d63[0x0]['forceValue']&&(_0x951438=_0x49ec8e[0x0]['start']['nodeAfter']);const _0xb97b0e=_0x592799['createRangeIn'](_0x951438);if('$graveyard'==_0xb97b0e['root']['rootName'])return;const _0x55b39c=Array['from'](_0xd8703f['getRanges']())['map'](_0x36a8e6=>_0x39b3ef['fromRange'](_0x36a8e6));_0x592799['setSelection'](_0xb97b0e),_0x29b974['commands']['get'](_0xaba809)['refresh'](),_0x107d63['push']({'forceDefaultExecution':!0x0}),_0x29b974['execute'](_0xaba809,..._0x107d63);const _0x3dab38=_0x55b39c['filter'](_0x566031=>'$graveyard'!=_0x566031['root']['rootName']);_0x3dab38['length']>0x0&&_0x592799['setSelection'](_0x3dab38);for(const _0x19f4ae of _0x55b39c)_0x19f4ae['detach']();});};}['_getCoordsForCells'](_0x3be383){const _0x1a94da=this['editor']['plugins']['get']('TableUtils');let _0x3d3b46=Number['MAX_SAFE_INTEGER'],_0x1a2212=Number['MIN_SAFE_INTEGER'],_0xac83aa=Number['MAX_SAFE_INTEGER'],_0x49d6e7=Number['MIN_SAFE_INTEGER'];for(const _0x201997 of _0x3be383){if('$graveyard'==_0x201997['root']['rootName'])continue;const {row:_0x85cc4d,column:_0x28e200}=_0x1a94da['getCellLocation'](_0x201997),_0x51ee5a=_0x201997['hasAttribute']('rowspan')?_0x201997['getAttribute']('rowspan')-0x1:0x0,_0x2e0d09=_0x201997['hasAttribute']('colspan')?_0x201997['getAttribute']('colspan')-0x1:0x0;_0x3d3b46=_0x85cc4d<_0x3d3b46?_0x85cc4d:_0x3d3b46,_0x1a2212=_0x85cc4d+_0x51ee5a>_0x1a2212?_0x85cc4d+_0x51ee5a:_0x1a2212,_0xac83aa=_0x28e200<_0xac83aa?_0x28e200:_0xac83aa,_0x49d6e7=_0x28e200+_0x2e0d09>_0x49d6e7?_0x28e200+_0x2e0d09:_0x49d6e7;}return{'minRow':_0x3d3b46,'maxRow':_0x1a2212,'minColumn':_0xac83aa,'maxColumn':_0x49d6e7};}['_setupColumnsRowsFixing'](){const _0x38d89f=this['editor'],_0x50f77e=_0x38d89f['plugins']['get']('TrackChangesEditing'),_0xffe41=_0x38d89f['plugins']['get']('TableUtils');_0x38d89f['model']['document']['on']('change:data',()=>{const _0x128e1e=Array['from'](_0x38d89f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5173b5,data:_0x5bd911}of _0x128e1e){const {group:_0x535b01,id:_0x3e0b46,subType:_0x46209f}=_0x46f456(_0x5173b5);if('suggestion'!=_0x535b01)continue;if(null!=_0x5bd911['oldRange'])continue;const _0x35aef7=_0x50f77e['getSuggestion'](_0x3e0b46);this['_tablePostFixingSubtypes']['includes'](_0x46209f)&&this['_tableSuggestions']['add'](_0x35aef7);}},{'priority':'low'});const _0x4106b1=(_0x12657b,_0x4d4878)=>{let _0x28fc1f=!0x1;const _0x3b7ef5=_0x4d4878['createRangeOn'](_0x12657b),_0x32bcab=_0x12657b['findAncestor']('table'),_0x51dfd0=_0xffe41['getCellLocation'](_0x12657b);for(const _0x44ae9e of this['_tableSuggestions']){const _0x1a264a=_0x44ae9e['subType'],_0x1ab0a5=_0x1a264a['startsWith']('tablePaste'),_0x148625=_0x1a264a['substr'](_0x1ab0a5?0xa:0x5),_0x1b6ded=_0x148625['toLowerCase'](),_0x583b94=_0x1b6ded['substr'](0x0,0x3)+'span',_0x472215='min'+_0x148625,_0x4dfc40='max'+_0x148625;if(!_0x44ae9e['isInContent'])continue;if(_0x32bcab!=_0x44ae9e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44ae9e['isIntersectingWithRange'](_0x3b7ef5))continue;const _0x3edac2=_0x12657b['hasAttribute'](_0x583b94)?_0x12657b['getAttribute'](_0x583b94)-0x1:0x0,_0xffd92d=this['_getSuggestionCoords'](_0x44ae9e),_0x173ec5=_0xffd92d[_0x472215],_0x39e102=_0xffd92d[_0x4dfc40];_0x173ec5<=_0x51dfd0[_0x1b6ded]&&_0x51dfd0[_0x1b6ded]+_0x3edac2<=_0x39e102&&(_0x44ae9e['addRange'](_0x3b7ef5),_0x28fc1f=!0x0);}return _0x28fc1f;};_0x38d89f['model']['document']['registerPostFixer'](_0x27e9f5=>{let _0x5645c4=!0x1;for(const _0x1b58b2 of _0x38d89f['model']['document']['differ']['getChanges']())if('insert'==_0x1b58b2['type']){if('tableRow'==_0x1b58b2['name']){for(const _0x41ae34 of _0x1b58b2['position']['nodeAfter']['getChildren']())_0x5645c4=_0x5645c4||_0x4106b1(_0x41ae34,_0x27e9f5);}else'tableCell'==_0x1b58b2['name']&&(_0x5645c4=_0x5645c4||_0x4106b1(_0x1b58b2['position']['nodeAfter'],_0x27e9f5));}return _0x5645c4;});}['_getSuggestionCoords'](_0x3e1cae){return this['_getCoordsForCells'](_0x3e1cae['getRanges']()['map'](_0x5424fc=>_0x5424fc['start']['nodeAfter']));}}function Nt(_0x243ecf){return Array['from'](new Set(_0x243ecf)['values']());}class TrackChangesTableMergeSplit extends _0x4b9de5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2233af=this['editor'],_0x5865a9=_0x2233af['model']['document']['selection'],_0x3c5264=_0x2233af['locale'];if(!_0x2233af['plugins']['has']('TableEditing'))return;const _0x2877f1=_0x2233af['plugins']['get']('TrackChangesEditing'),_0x3e8fd0=_0x2233af['plugins']['get']('TableUtils'),_0x404c8f=_0x2233af['plugins']['get'](TrackChangesTable);_0x404c8f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2877f1['enableCommand']('mergeTableCells',()=>{const _0x4e8ab5=_0x3e8fd0['getSelectionAffectedTableCells'](_0x2233af['model']['document']['selection']);_0x2233af['model']['change'](()=>{_0x2877f1['markMultiRangeBlockFormat'](_0x4e8ab5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2233af['commands']['get']('mergeTableCells')['on']('execute',(_0x2abc4f,_0x485c8e)=>{_0x2233af['commands']['get']('trackChanges')['value']&&(_0x485c8e['length']>0x0&&_0x485c8e[_0x485c8e['length']-0x1]&&_0x485c8e[_0x485c8e['length']-0x1]['forceDefaultExecution']||_0x2877f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2abc4f['stop']());},{'priority':'highest'});for(const _0x560231 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x526d40=_0x2233af['commands']['get'](_0x560231);_0x2877f1['enableCommand'](_0x560231,()=>{const _0x427691=_0x2233af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37ce6f=>_0x37ce6f['is']('element','tableCell')),_0x29f244=_0x526d40['value'];_0x2233af['model']['change'](()=>{_0x2877f1['markMultiRangeBlockFormat']([_0x427691,_0x29f244],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5d53dd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x20673a=_0x2233af['commands']['get'](_0x5d53dd);_0x2877f1['enableCommand'](_0x5d53dd,()=>{const _0x152c4f=_0x3e8fd0['getSelectionAffectedTableCells'](_0x2233af['model']['document']['selection'])[0x0],_0x3eed7b=_0x152c4f['findAncestor']('table'),{column:_0x573c73,row:_0x2652f1}=_0x3e8fd0['getCellLocation'](_0x152c4f);let _0x534ca5=[];if('horizontally'==_0x20673a['direction']){const _0x271b6f=_0x3e8fd0['createTableWalker'](_0x3eed7b,{'startRow':_0x2652f1,'endRow':_0x2652f1,'includeAllSlots':!0x0});_0x534ca5=Array['from'](_0x271b6f)['map'](_0x3495fa=>_0x3495fa['cell']);}else{const _0x1e1367=_0x3e8fd0['createTableWalker'](_0x3eed7b,{'column':_0x573c73,'includeAllSlots':!0x0});_0x534ca5=Array['from'](_0x1e1367)['map'](_0x2aa57a=>_0x2aa57a['cell']);}_0x2233af['model']['change'](_0x3959fd=>{_0x2877f1['markBlockFormat'](_0x3959fd['createRangeOn'](_0x152c4f),{'commandName':_0x5d53dd,'commandParams':[]},_0x534ca5,_0x5d53dd);});});}_0x2877f1['descriptionFactory']['registerDescriptionCallback'](_0x10e070=>{if('formatBlock'!=_0x10e070['type']&&'formatInline'!=_0x10e070['type'])return;const {data:_0x34a795}=_0x10e070;return _0x34a795&&'mergeTableCells'==_0x34a795['commandName']?{'type':'format','content':Tt(_0x3c5264,'*Merge\x20cells*')}:void 0x0;}),_0x2877f1['descriptionFactory']['registerDescriptionCallback'](_0x181524=>{if('formatBlock'!=_0x181524['type']&&'formatInline'!=_0x181524['type'])return;const {data:_0x4a8801}=_0x181524;return _0x4a8801?'splitTableCellVertically'==_0x4a8801['commandName']?{'type':'format','content':Tt(_0x3c5264,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4a8801['commandName']?{'type':'format','content':Tt(_0x3c5264,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x127cbb=_0x404c8f['_acceptFormatSuggestionCallbackFactory']();for(const _0x2282f9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2877f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2282f9,'accept',_0x127cbb);for(const _0x438c96 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2877f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x438c96,'accept',_0x127cbb);_0x2877f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4da0ee=>{_0x2233af['model']['change'](_0x360d92=>{const _0x1e1f77=Array['from'](_0x5865a9['getRanges']())['map'](_0x48553c=>_0x39b3ef['fromRange'](_0x48553c));_0x360d92['setSelection'](_0x4da0ee),_0x2233af['commands']['get']('mergeTableCells')['refresh'](),_0x2233af['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x51420b=_0x1e1f77['filter'](_0x22f45c=>'$graveyard'!=_0x22f45c['root']['rootName']);_0x51420b['length']>0x0&&_0x360d92['setSelection'](_0x51420b);for(const _0x35cb4f of _0x1e1f77)_0x35cb4f['detach']();});});for(const _0x553707 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x517b4f=_0x2233af['commands']['get'](_0x553707);_0x517b4f['on']('set:isEnabled',(_0x434ac3,_0xaf6502,_0x54b2e4)=>{if(_0x54b2e4){const _0x2e5e26=_0x2233af['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e88dc=>_0x2e88dc['is']('element','tableCell'));this['_areMergableCells'](_0x517b4f['value'],_0x2e5e26)||(_0x434ac3['return']=!0x1,_0x434ac3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xbd5dbf=this['editor']['commands']['get']('mergeTableCells'),_0x310609=this['editor']['plugins']['get']('TableUtils');if(!_0xbd5dbf['isEnabled'])return!0x1;const _0x133bb7=_0x310609['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x14878c of _0x133bb7)for(const _0x24551b of _0x133bb7)if(_0x14878c!=_0x24551b&&!this['_areMergableCells'](_0x14878c,_0x24551b))return!0x1;return!0x0;}['_areMergableCells'](_0x2c8a4a,_0x1c0d4e){const _0x40f795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3015e5=this['editor']['model']['createRangeOn'](_0x2c8a4a),_0x1df669=this['editor']['model']['createRangeOn'](_0x1c0d4e),_0x493142=new Set(),_0x1bc0a7=new Set();for(const _0x3d9027 of _0x40f795['getSuggestions']())if(('insertion'==_0x3d9027['type']||'deletion'==_0x3d9027['type']||'mergeTableCells'==_0x3d9027['subType'])&&_0x3d9027['isInContent']){for(const _0x5b917 of _0x3d9027['getRanges']())_0x5b917['containsRange'](_0x3015e5,!0x0)&&_0x493142['add'](_0x3d9027['type']+':'+_0x3d9027['author']['id']),_0x5b917['containsRange'](_0x1df669,!0x0)&&_0x1bc0a7['add'](_0x3d9027['type']+':'+_0x3d9027['author']['id']);}if(_0x493142['size']!=_0x1bc0a7['size'])return!0x1;for(const _0x4c598b of _0x493142)if(!_0x1bc0a7['has'](_0x4c598b))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x4b9de5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x446a65=this['editor'];if(!_0x446a65['plugins']['has']('TableEditing'))return;const _0x3eca9d=_0x446a65['locale'],_0x11f96b=_0x446a65['plugins']['get']('TrackChangesEditing');_0x11f96b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x11f96b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x11f96b['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x3eca9d,'FORMAT_HEADER_ROW')),_0x11f96b['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x3eca9d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ebcb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f6192=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3ebcb4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f6192),_0x3ebcb4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f6192),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x3c3c9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e643a=this['editor']['plugins']['get']('TableUtils');function _0x7b6529({showActiveMarker:_0x598cf8=!0x0,setDataAttribute:_0x1cab2e=!0x0}={}){return(_0x312c4e,_0x35b9bb,_0x1119ab)=>{const {type:_0x54c9a1,id:_0x379340}=_0x46f456(_0x35b9bb['markerName']);if(!_0x3c3c9a['hasSuggestion'](_0x379340))return;const _0x3eec0d=_0x3c3c9a['getSuggestion'](_0x379340),_0x752155=_0x3eec0d['data'];if('formatBlock'!=_0x3eec0d['type']||!_0x752155||'setTableColumnHeader'!=_0x752155['commandName'])return;if(_0x35b9bb['item'])return void _0x312c4e['stop']();if(!_0x1119ab['consumable']['consume'](_0x35b9bb['markerRange'],_0x312c4e['name']))return;const _0x53357f=_0x35b9bb['markerRange']['start']['nodeAfter'],_0x2caa3b=_0x35b9bb['markerRange']['end']['nodeBefore'],_0x4ed620=_0x53357f['parent']['parent'],{column:_0x2c89db}=_0x1e643a['getCellLocation'](_0x53357f),{column:_0x494824}=_0x1e643a['getCellLocation'](_0x2caa3b);for(let _0x3450b1=_0x2c89db;_0x3450b1<=_0x494824;_0x3450b1++){const _0x15186b=_0x1e643a['createTableWalker'](_0x4ed620,{'column':_0x3450b1,'includeAllSlots':!0x1});for(const _0x19af17 of _0x15186b){const _0x465635=_0x19af17['cell'],_0x23fb41=_0x1119ab['mapper']['toViewElement'](_0x465635);_0x1119ab['writer']['addClass']('ck-suggestion-marker-'+_0x54c9a1,_0x23fb41),_0x1cab2e&&_0x1119ab['writer']['setAttribute']('data-suggestion',_0x379340,_0x23fb41),_0x1119ab['mapper']['bindElementToMarker'](_0x23fb41,_0x35b9bb['markerName']),_0x598cf8&&(_0x3c3c9a['activeMarkers']['includes'](_0x35b9bb['markerName'])?_0x1119ab['writer']['addClass']('ck-suggestion-marker--active',_0x23fb41):_0x1119ab['writer']['removeClass']('ck-suggestion-marker--active',_0x23fb41));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x7b6529(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5eacdc,_0x4dd17c,_0x3fe15a)=>{_0x3fe15a['options']['showSuggestionHighlights']&&_0x7b6529({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5eacdc,_0x4dd17c,_0x3fe15a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5154ef,_0x1556c0,_0x2b901e)=>{const {type:_0x3b400d,id:_0x372506}=_0x46f456(_0x1556c0['markerName']);if(!_0x3c3c9a['hasSuggestion'](_0x372506))return;const _0x3e9eb3=_0x3c3c9a['getSuggestion'](_0x372506),_0x71e1d5=_0x3e9eb3['data'];if('formatBlock'!=_0x3e9eb3['type']||!_0x71e1d5||'setTableColumnHeader'!=_0x71e1d5['commandName'])return;const _0x2f1520=_0x2b901e['mapper']['markerNameToElements'](_0x1556c0['markerName']);if(_0x2f1520){for(const _0x37443c of _0x2f1520)_0x2b901e['writer']['removeClass']('ck-suggestion-marker-'+_0x3b400d,_0x37443c),_0x2b901e['writer']['removeClass']('ck-suggestion-marker--active',_0x37443c),_0x2b901e['writer']['removeAttribute']('data-suggestion',_0x37443c),_0x2b901e['mapper']['unbindElementFromMarkerName'](_0x37443c,_0x1556c0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4f3707=this['editor'],_0x188c4e=_0x4f3707['locale'];function _0xb7bc64(_0x533d83){return{'type':'format','content':Tt(_0x188c4e,'*Format:*\x20%0',_0x533d83)};}_0x4f3707['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cae89=>{if('formatBlock'!=_0x3cae89['type'])return;const {data:_0x4392d2}=_0x3cae89;if(_0x4392d2){if('setTableRowHeader'==_0x4392d2['commandName']){const _0x2850bc=_0x4392d2['commandParams'][0x0]['forceValue'];return _0xb7bc64(Tt(_0x188c4e,_0x2850bc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4392d2['commandName']){const _0x5a2e00=_0x4392d2['commandParams'][0x0]['forceValue'];return _0xb7bc64(Tt(_0x188c4e,_0x5a2e00?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x4b9de5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2330db=this['editor'];if(!_0x2330db['plugins']['has']('TableEditing')||!_0x2330db['config']['get']('table.enableFooters'))return;const _0x596bf8=_0x2330db['locale'],_0x415ac8=_0x2330db['plugins']['get']('TrackChangesEditing');_0x415ac8['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x415ac8['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x596bf8,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x4b9de5{['afterInit'](){const _0x10995a=this['editor'],_0x16cf95=_0x10995a['locale'],_0x222580=_0x10995a['plugins']['get']('TrackChangesEditing');function _0x2632c9(_0x3fbb3c){return{'type':'format','content':''+Tt(_0x16cf95,'*Set\x20table\x20type:*\x20%0',_0x3fbb3c)};}_0x10995a['plugins']['has']('TableLayout')&&(_0x222580['enableCommand']('insertTableLayout'),_0x222580['enableDefaultAttributesIntegration']('tableType'),_0x222580['descriptionFactory']['registerElementLabel'](_0x27de68=>_0x27de68['is']('element','table')&&'layout'===_0x27de68['getAttribute']('tableType'),_0x3952fc=>Tt(_0x16cf95,'ELEMENT_LAYOUT_TABLE',_0x3952fc)),_0x222580['descriptionFactory']['registerDescriptionCallback'](_0x41b381=>{const {data:_0x55da96}=_0x41b381;if(_0x55da96&&'tableType'==_0x55da96['key'])switch(_0x55da96['newValue']){case'layout':return _0x2632c9(Tt(_0x16cf95,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2632c9(Tt(_0x16cf95,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Mt['map'](_0x244168=>[_0x244168,null]));class TrackChangesTableClipboard extends _0x4b9de5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1c2127=this['editor'];if(!_0x1c2127['plugins']['has']('TableClipboard'))return;const _0x5ac168=_0x1c2127['plugins']['get']('TrackChangesEditing'),_0x22da1d=_0x1c2127['plugins']['get']('TableUtils'),_0x5d4cde=_0x1c2127['plugins']['get'](TrackChangesTable),_0x31b4c1=_0x1c2127['plugins']['get']('TableClipboard'),_0x5620f5=_0x1c2127['plugins']['get']('TableSelection'),_0x4189e4=_0x1c2127['plugins']['get'](ut);_0x5d4cde['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c2127['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c2127['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x24d2a=null,_0x72631c=!0x1;_0x4189e4['on']('contentInsertion',(_0x2e14cb,_0x4da4be)=>{_0x72631c='paste'===_0x4da4be['method'];}),_0x1c2127['model']['on']('insertContent',(_0x1fb1cd,_0x236a75)=>{if(!_0x72631c&&null===_0x5620f5['getSelectedTableCells']())return;const [_0x184708,_0x49f79f]=_0x236a75,_0xe86180=_0x236a75[_0x236a75['length']-0x1];_0xe86180&&_0xe86180['forceDefaultExecution']||_0x5ac168['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x348b34,_0x1e2973,_0x3676d2,_0x1cfe1f,_0x5ba5de){if(_0x1e2973&&!_0x1e2973['is']('documentSelection'))return!0x1;const _0x4a8f1e=_0x5ba5de['getTableIfOnlyTableInContent'](_0x348b34,_0x3676d2);if(!_0x4a8f1e||!Ft(_0x4a8f1e,void 0x0,_0x1cfe1f))return!0x1;const _0x29be6b=_0x1cfe1f['getSelectionAffectedTableCells'](_0x3676d2['document']['selection']);if(!_0x29be6b['length'])return!0x1;const _0x660472=_0x29be6b[0x0]['findAncestor']('table'),_0x2a1126=_0x1cfe1f['getRowIndexes'](_0x29be6b),_0x2e1fd2=_0x1cfe1f['getColumnIndexes'](_0x29be6b),_0x393918={'startRow':_0x2a1126['first'],'endRow':_0x2a1126['last'],'startColumn':_0x2e1fd2['first'],'endColumn':_0x2e1fd2['last']};return 0x1==_0x29be6b['length']&&(_0x393918['endRow']+=_0x1cfe1f['getRows'](_0x4a8f1e)-0x1,_0x393918['endColumn']+=_0x1cfe1f['getColumns'](_0x4a8f1e)-0x1),Ft(_0x660472,_0x393918,_0x1cfe1f);}(_0x184708,_0x49f79f,_0x1c2127['model'],_0x22da1d,_0x31b4c1)&&(_0x1fb1cd['stop'](),_0x24d2a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c2127['model']['change'](()=>{_0x1c2127['model']['insertContent'](_0x236a75[0x0],_0x236a75[0x1],_0x236a75[0x2],{'forceDefaultExecution':!0x0});const _0x52ffec=_0x3c1805(),{rowInsertionRanges:_0x43940a,columnInsertionRanges:_0x425dec,insertionRanges:_0x1526cd,deletionRanges:_0x57a808,cells:_0x3c2c33}=_0x24d2a;_0x43940a['length']&&_0x5ac168['markMultiRangeInsertion'](_0x43940a,'tablePasteRow',{'tablePasteChainId':_0x52ffec}),_0x425dec['length']&&_0x5ac168['markMultiRangeInsertion'](_0x425dec,'tablePasteColumn',{'tablePasteChainId':_0x52ffec}),_0x1526cd['length']&&(_0x5ac168['markMultiRangeInsertion'](_0x1526cd,'tablePaste',{'tablePasteChainId':_0x52ffec,'skipNestingCheck':!0x0}),_0x1526cd['forEach'](_0x40baf7=>_0x40baf7['detach']?.())),_0x57a808['length']&&(_0x5ac168['markMultiRangeDeletion'](_0x57a808,'tablePaste',{'tablePasteChainId':_0x52ffec,'skipNestingCheck':!0x0}),_0x57a808['forEach'](_0x339639=>_0x339639['detach']?.()));const _0x5102b4=_0x5ac168['markMultiRangeBlockFormat'](_0x3c2c33['map'](({element:_0x15003e})=>_0x15003e),{'formatGroupId':_0x3c1805()},[],'tablePasteCell',{'tablePasteChainId':_0x52ffec});if(_0x5102b4){const _0xc09d52=_0x5102b4['getMarkers'](),_0x468406=[];for(const {element:_0x4ddd32,attributes:_0x13760b}of _0x3c2c33){if(!_0x13760b)continue;const _0x52567f=_0x1c2127['model']['createRangeOn'](_0x4ddd32),_0x463273=_0xc09d52['find'](_0x113d7e=>_0x113d7e['getRange']()['isEqual'](_0x52567f));_0x463273&&_0x468406['push']([_0x463273['name'],_0x13760b]);}_0x468406['length']&&_0x5102b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x468406));}_0x24d2a=null;}));},{'priority':_0x50db66['high']+0xa}),_0x4189e4['on']('contentInsertion',()=>{_0x72631c=!0x1;},{'priority':'lowest'}),_0x1c2127['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d3942,_0x5884f7)=>{const [_0x3954b0,_0x4643f1,,_0x32057f]=_0x5884f7;if(!_0x24d2a)return;_0x4d3942['stop']();const _0x56d5a2=_0x3954b0['cell'],_0x23fba7=_0x4643f1,_0x1aa513=wt(_0x56d5a2),_0x16dbf2=wt(_0x23fba7);_0x4d3942['return']=_0x56d5a2;let _0x361321=null,_0x266f6e=null;if(_0x16dbf2||_0x1aa513){if(_0x1aa513&&!_0x16dbf2){_0x32057f['remove'](_0x56d5a2['getChild'](0x0));for(const _0x2267bd of Array['from'](_0x23fba7['getChildren']()))_0x32057f['insert'](_0x2267bd,_0x56d5a2,'end');const _0xa7dfd7=_0x24d2a['rowInsertionIndexes']['includes'](_0x3954b0['row']),_0x426860=_0x24d2a['columnInsertionIndexes']['includes'](_0x3954b0['column']);_0xa7dfd7||_0x426860||(_0x361321=_0x39b3ef['fromRange'](_0x32057f['createRangeIn'](_0x56d5a2)));}else _0x16dbf2&&!_0x1aa513&&(_0x266f6e=_0x32057f['createRangeIn'](_0x56d5a2));}else{const _0x125557=_0x32057f['createElement']('tableCellSuggestion'),_0x5f1955=_0x32057f['createElement']('tableCellSuggestion');_0x32057f['wrap'](_0x32057f['createRangeIn'](_0x56d5a2),_0x5f1955),_0x32057f['insert'](_0x125557,_0x56d5a2,0x0);for(const _0x2d6cba of Array['from'](_0x23fba7['getChildren']()))_0x32057f['insert'](_0x2d6cba,_0x125557,'end');_0x361321=_0x39b3ef['fromRange'](_0x32057f['createRangeOn'](_0x125557)),_0x266f6e=_0x39b3ef['fromRange'](_0x32057f['createRangeOn'](_0x5f1955));}const _0x3ec418=Array['from'](_0x23fba7['getAttributes']())['filter'](([_0x3ba08b])=>Mt['includes'](_0x3ba08b));_0x24d2a['cells']['push']({'element':_0x56d5a2,'attributes':_0x3ec418['length']?Object['fromEntries'](_0x3ec418):null}),_0x361321&&_0x24d2a['insertionRanges']['push'](_0x361321),_0x266f6e&&_0x24d2a['deletionRanges']['push'](_0x266f6e);},{'priority':'high'}),_0x22da1d['on']('insertColumns',(_0x3e7b82,_0x247b7a)=>{const [_0x4b43f5,_0x4fc243={}]=_0x247b7a;if(!_0x24d2a)return;const _0x270c35=_0x4fc243['at']||0x0,_0x3ebcb8=_0x4fc243['columns']||0x1;_0x24d2a['columnInsertionIndexes']=new Array(_0x3ebcb8)['fill'](_0x270c35)['map']((_0x4dd82b,_0x52250f)=>_0x4dd82b+_0x52250f);for(const {cell:_0x18b260}of _0x22da1d['createTableWalker'](_0x4b43f5,{'startColumn':_0x270c35,'endColumn':_0x270c35+_0x3ebcb8-0x1}))_0x24d2a['columnInsertionRanges']['push'](_0x1c2127['model']['createRangeOn'](_0x18b260));},{'priority':'low'}),_0x22da1d['on']('insertRows',(_0x5b28a7,_0x31f36c)=>{const [_0x5bc051,_0x487502={}]=_0x31f36c;if(!_0x24d2a)return;const _0x49bd04=_0x487502['at']||0x0,_0x38aac7=_0x487502['rows']||0x1;_0x24d2a['rowInsertionIndexes']=new Array(_0x38aac7)['fill'](_0x49bd04)['map']((_0x45e861,_0x20b97b)=>_0x45e861+_0x20b97b);for(const {cell:_0x5cbf7b}of _0x22da1d['createTableWalker'](_0x5bc051,{'startRow':_0x49bd04,'endRow':_0x49bd04+_0x38aac7-0x1}))_0x24d2a['rowInsertionRanges']['push'](_0x1c2127['model']['createRangeOn'](_0x5cbf7b));},{'priority':'low'}),_0x5ac168['descriptionFactory']['registerDescriptionCallback'](_0x2a70ae=>{if(_0x2a70ae['subType']&&_0x2a70ae['subType']['startsWith']('tablePaste'))return _0x2a70ae['previous']?{}:{'type':'insertion','content':Tt(_0x1c2127['locale'],'*Replace\x20table\x20cells*')};});const _0x78228f=()=>!0x1;for(const _0x423de6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ac168['_suggestionFactory']['registerCustomCallback']('insertion',_0x423de6,'join',_0x78228f),_0x5ac168['_suggestionFactory']['registerCustomCallback']('deletion',_0x423de6,'join',_0x78228f),_0x5ac168['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x423de6,'join',_0x78228f);_0x5ac168['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x78228f),_0x5ac168['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3c1d2f,_0x14a6ce,_0x54fc59)=>{const _0x27c2b3=_0x3c1d2f['map'](_0x1e4f71=>_0x1e4f71['getContainedElement']())['filter'](_0x16da74=>_0x16da74),_0x2fe432=new Map(_0x27c2b3['map'](_0x490a27=>[_0x490a27,null]));if(_0x24d2a){for(const {element:_0x566e39,attributes:_0xece00}of _0x24d2a['cells'])_0xece00&&_0x2fe432['set'](_0x566e39,_0xece00);}else{if(_0x54fc59&&_0x54fc59['markerAttributes'])for(const [_0x29f9f8,_0x276b35]of Object['entries'](_0x54fc59['markerAttributes'])){const _0x3c29d6=_0x1c2127['model']['markers']['get'](_0x29f9f8),_0x503153=_0x3c29d6?_0x3c29d6['getRange']()['getContainedElement']():null;_0x503153&&_0x2fe432['set'](_0x503153,_0x276b35);}}_0x1c2127['model']['change'](_0x4869f3=>{for(const [_0x2ea919,_0x37eda0]of _0x2fe432)_0x4869f3['setAttributes']({...Ot,..._0x37eda0},_0x2ea919);});});const _0x26d813=(_0x345822,_0x20a53f)=>{_0x5ac168['_suggestionFactory']['registerCustomCallback'](_0x345822,'tablePaste',_0x20a53f,(_0x5e6f61,_0x3f79bb,_0x645ddd)=>{_0x1c2127['model']['change'](_0x1e5e2f=>{const _0x5e63b5=[];for(const _0x537d23 of _0x5e6f61){const _0xb044dc=_0x537d23['start']['nodeAfter'];_0xb044dc['is']('element','tableCellSuggestion')&&_0x5e63b5['push'](_0xb044dc);}_0x5ac168['_suggestionFactory']['getSuggestionCallback'](_0x345822,null,_0x20a53f)(_0x5e6f61,_0x3f79bb,_0x645ddd);for(const _0x19a1ad of _0x5e63b5)'$graveyard'!=_0x19a1ad['root']['rootName']&&_0x1e5e2f['unwrap'](_0x19a1ad);});});};_0x26d813('insertion','accept'),_0x26d813('insertion','discard'),_0x26d813('deletion','accept'),_0x26d813('deletion','discard'),_0x5ac168['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4049fc=>{const _0x393224=_0x4049fc['map'](_0x57666e=>_0x57666e['getContainedElement']()),_0x3ab339=_0x393224[0x0]['findAncestor']('table'),{minRow:_0x2266d6,maxRow:_0x3340c9}=_0x5d4cde['_getCoordsForCells'](_0x393224);_0x22da1d['removeRows'](_0x3ab339,{'at':_0x2266d6,'rows':_0x3340c9-_0x2266d6+0x1});}),_0x5ac168['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17a78c=>{const _0x22e03f=_0x17a78c['map'](_0x4b9e1b=>_0x4b9e1b['getContainedElement']()),_0x1ff406=_0x22e03f[0x0]['findAncestor']('table'),{minColumn:_0x3757fe,maxColumn:_0x42abbf}=_0x5d4cde['_getCoordsForCells'](_0x22e03f);_0x22da1d['removeColumns'](_0x1ff406,{'at':_0x3757fe,'columns':_0x42abbf-_0x3757fe+0x1});});const _0x137d9f=(_0xb5811e,_0xa213be)=>{if(!_0xa213be['subType']||!_0xa213be['subType']['startsWith']('tablePaste'))return;const _0x2bb055=_0xa213be['attributes']['tablePasteChainId'],_0x4f7e1d=_0x5ac168['getSuggestions']()['filter'](_0x1adcd9=>_0x1adcd9['isInContent']&&_0x1adcd9['attributes']&&_0x1adcd9['attributes']['tablePasteChainId']==_0x2bb055);_0x4f7e1d['length']&&_0xa213be['getAllAdjacentSuggestions']()['length']!=_0x4f7e1d['length']&&_0x4f7e1d['reduce']((_0x49970a,_0x43c4e7)=>(_0x49970a['next']=_0x43c4e7,_0x43c4e7['previous']=_0x49970a,_0x43c4e7));};function _0x2485f5(_0x51a907,_0x13afed=!0x0){const {id:_0x2eeda7,authorId:_0x223bff}=_0x46f456(_0x51a907['markerName']),_0x4c228c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x342f55=_0x5ac168['activeMarkers']['includes'](_0x51a907['markerName']);return _0x342f55&&_0x4c228c['push']('ck-suggestion-marker--active'),{'classes':_0x4c228c,'attributes':{'data-suggestion':_0x2eeda7,'data-author-id':_0x223bff},'priority':_0x342f55&&_0x13afed?0xbc2:0xbb8};}_0x5ac168['on']('suggestionLoaded',_0x137d9f,{'priority':'high'}),_0x5ac168['on']('suggestionUnloaded',_0x137d9f,{'priority':'high'}),_0x1c2127['model']['document']['registerPostFixer'](()=>{let _0x3903f4=!0x1;const _0x19ebc3=Array['from'](_0x1c2127['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4675f3,data:_0x5ea2c6}of _0x19ebc3){const {group:_0x4ab456,type:_0x1c3d38,id:_0x51fdc8}=_0x46f456(_0x4675f3);if('suggestion'!=_0x4ab456||'deletion'!=_0x1c3d38||_0x5ea2c6['oldRange'])continue;if(!_0x5ac168['hasSuggestion'](_0x51fdc8))continue;const _0x3b34d9=_0x5ac168['getSuggestion'](_0x51fdc8)['getRanges'](),_0x21366a=_0x1c2127['plugins']['get']('Users')['me'];for(const _0x34b182 of _0x5ac168['getSuggestions']()){if(!_0x34b182['isInContent']||_0x34b182['author']!=_0x21366a)continue;if('formatBlock'!=_0x34b182['type']||'tablePasteCell'!=_0x34b182['subType'])continue;if(_0x34b182['getRanges']()['every'](_0xaf77eb=>_0x3b34d9['some'](_0x21f2b1=>_0x21f2b1['containsRange'](_0xaf77eb,!0x0)))){for(const _0x28a46a of _0x34b182['getAllAdjacentSuggestions']())_0x28a46a['isInContent']&&(_0x28a46a['discard'](),_0x3903f4=!0x0);}}}return _0x3903f4;}),_0x1c2127['model']['document']['registerPostFixer'](_0x152717=>{const _0x4f98c7=_0x1c2127['commands']['get']('redo');if(!_0x4f98c7||!_0x4f98c7['_createdBatches']['has'](_0x152717['batch']))return!0x1;let _0x3286a7=!0x1;const _0x2e042a=_0x1c2127['plugins']['get']('Users')['me'],_0xa6a1c2=_0x1c2127['model']['document']['differ']['getChanges'](),_0x16701a=Array['from'](_0x1c2127['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f72db,data:_0x5784c1})=>{const {group:_0x59b05d,subType:_0xc16d4c,authorId:_0x2297ce}=_0x46f456(_0x1f72db);return'suggestion'==_0x59b05d&&'tablePaste'==_0xc16d4c&&_0x2297ce==_0x2e042a['id']&&!_0x5784c1['oldRange'];});for(const _0x7d8bf7 of _0xa6a1c2){if('insert'!=_0x7d8bf7['type']||'tableCellSuggestion'!=_0x7d8bf7['name']||0x1!=_0x7d8bf7['length'])continue;const _0x296b8c=_0x152717['createRange'](_0x7d8bf7['position'],_0x7d8bf7['position']['getShiftedBy'](0x1));if(!_0x16701a['find'](({data:_0x310676})=>_0x310676['newRange']['isEqual'](_0x296b8c))){for(const {name:_0x431d03,data:_0x311f52}of _0x16701a)if(_0x296b8c['containsRange'](_0x311f52['newRange'])){_0x152717['updateMarker'](_0x431d03,{'range':_0x296b8c}),_0x3286a7=!0x0;break;}}}return _0x3286a7;}),_0x1c2127['model']['document']['registerPostFixer'](_0x1c2df4=>{let _0x4c9037=!0x1;const _0x5b36f0=_0x1c2127['plugins']['get']('Users')['me'],_0x4f79b5=_0x5ac168['getSuggestions']()['filter'](_0x2a0984=>_0x2a0984['isInContent']&&_0x2a0984['author']==_0x5b36f0),_0x5209d0=new Set(),_0x142810=new Set();for(const _0x4d9357 of _0x4f79b5)if('tablePaste'==_0x4d9357['subType'])for(const _0x14e162 of _0x4d9357['getMarkers']()){const _0x297c1f=_0x14e162['getRange']()['getContainedElement']();if(_0x297c1f){if(_0x297c1f['is']('element','tableCellSuggestion')&&wt(_0x297c1f)){_0x4d9357['removeMarker'](_0x14e162['name']),_0x5209d0['add'](_0x297c1f),_0x4c9037=!0x0;const _0xe159a5=_0x297c1f['nextSibling'],_0x2529f0=_0x297c1f['previousSibling'],_0x5a3e89=_0xe159a5&&_0xe159a5['is']('element','tableCellSuggestion'),_0x4e47ce=_0x2529f0&&_0x2529f0['is']('element','tableCellSuggestion');_0x5a3e89&&!_0x5209d0['has'](_0xe159a5)&&_0x142810['add'](_0xe159a5),_0x4e47ce&&!_0x5209d0['has'](_0x2529f0)&&_0x142810['add'](_0x2529f0);}else _0x297c1f['is']('element','paragraph')&&_0x297c1f['isEmpty']&&(_0x4d9357['removeMarker'](_0x14e162['name']),_0x4c9037=!0x0);}}else{if('tablePasteCell'==_0x4d9357['subType']){if(!_0x4d9357['attributes']||!_0x4d9357['attributes']['tablePasteChainId'])continue;const _0x353d36=_0x4d9357['attributes']['markerAttributes'];if(_0x353d36&&Object['keys'](_0x353d36)['length'])continue;const _0x6b4c8b=_0x4d9357['attributes']['tablePasteChainId'];let _0x56a175=!0x0,_0x37a593=!0x0;for(const _0x5798a6 of _0x4f79b5)if(_0x5798a6['subType']&&_0x5798a6['subType']['startsWith']('tablePaste')){if(!_0x5798a6['attributes']['tablePasteChainId']){_0x37a593=!0x1;break;}if(_0x5798a6['id']!=_0x4d9357['id']&&_0x5798a6['attributes']['tablePasteChainId']==_0x6b4c8b){_0x56a175=!0x1;break;}}_0x37a593&&_0x56a175&&(_0x4d9357['removeMarkers'](),_0x4c9037=!0x0);}}for(const _0x3f7b75 of _0x5209d0)_0x1c2df4['remove'](_0x3f7b75);for(const _0x2ad5c0 of _0x142810)_0x1c2df4['unwrap'](_0x2ad5c0);return _0x4c9037;}),_0x1c2127['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xac6992=>_0x2485f5(_0xac6992),'converterPriority':'high'}),_0x1c2127['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x25f53d,_0x2e2952)=>_0x2e2952['options']['showSuggestionHighlights']?_0x2485f5(_0x25f53d,!0x1):null,'converterPriority':'high'});const _0x4d1d45=_0x1c2127['editing']['view'];this['listenTo'](_0x4d1d45['document'],'clipboardOutput',(_0x43742d,_0x204c07)=>{const _0x14f289=[];for(const _0x1fffc3 of _0x4d1d45['createRangeIn'](_0x204c07['content'])['getItems']())_0x1fffc3['is']('element','suggestion-td')&&_0x14f289['push'](_0x1fffc3);_0x4d1d45['change'](_0x576cc5=>{for(const _0x1ef1ba of _0x14f289)_0x576cc5['move'](_0x576cc5['createRangeIn'](_0x1ef1ba),_0x576cc5['createPositionBefore'](_0x1ef1ba)),_0x576cc5['remove'](_0x1ef1ba);});});}}function wt(_0x38497d){if(_0x38497d['isEmpty'])return!0x0;const _0x5a9120=_0x38497d['getChild'](0x0);return _0x5a9120['is']('element','paragraph')&&_0x5a9120['isEmpty'];}function Ft(_0x30c16c,_0x40df12={},_0x28ee78){for(const {isAnchor:_0x1cbdd8,cellHeight:_0x3223f6,cellWidth:_0x5ae0b3}of _0x28ee78['createTableWalker'](_0x30c16c,{'includeAllSlots':!0x0,..._0x40df12}))if(!_0x1cbdd8||0x1!=_0x3223f6||0x1!=_0x5ae0b3)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x4b9de5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x594737=this['editor']['plugins']['get']('TrackChangesEditing');_0x594737['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x594737['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x594737['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x594737['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x594737['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x594737['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b258c,_0xdcef60){const _0x44775b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2546f2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34bf2a=_0xdcef60['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d40ac=_0x2546f2['getColumnGroupElement'](_0x34bf2a);let _0x349eb8=_0x4d40ac?_0x2546f2['getTableColumnsWidths'](_0x4d40ac):null,_0x2da909=_0x34bf2a['getAttribute']('tableWidth')||null;const _0x37b62e=_0xdcef60['tableWidth']||_0x2da909,_0x396086=_0xdcef60['columnWidths']||_0x349eb8,_0x1bc7b1=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b8396 of _0x44775b['getSuggestions']()){const _0x225136=_0x5b8396['getContainedElement']();if('resizeTable'===_0x5b8396['subType']&&_0x225136===_0x34bf2a){_0x5b8396['author']!==_0x1bc7b1&&_0x5b8396['discard']();const _0x45bca0=_0x5b8396['data']['commandParams'];_0x2da909=_0x45bca0[0x0]['tableWidth'],_0x349eb8=_0x45bca0[0x0]['columnWidths'];break;}}_0x4b258c({'table':_0x34bf2a,'tableWidth':_0x37b62e,'columnWidths':_0x396086}),_0x44775b['markBlockFormat'](_0x34bf2a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2da909,'columnWidths':_0x349eb8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5a987e){if('formatBlock'!=_0x5a987e['type']&&'formatInline'!=_0x5a987e['type'])return;const {data:_0x5a52ee}=_0x5a987e;if(_0x5a52ee&&'resizeTable'===_0x5a52ee['formatGroupId']){const _0xba7271='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0xba7271)};}}}class TrackChangesTemplate extends _0x4b9de5{['afterInit'](){const _0x20ce44=this['editor'];_0x20ce44['plugins']['has']('Template')&&_0x20ce44['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x4b9de5{['afterInit'](){const _0xd5d9eb=this['editor'];if(!_0xd5d9eb['commands']['get']('insertTableOfContents'))return;_0xd5d9eb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28dad4=_0xd5d9eb['plugins']['get']('TrackChangesEditing'),_0x3018ae=_0xd5d9eb['locale'];_0x28dad4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x26543b=>Tt(_0x3018ae,'ELEMENT_TABLE_OF_CONTENTS',_0x26543b));}}class TrackChangesTitle extends _0x4b9de5{['afterInit'](){const _0x35957c=this['editor'];if(!_0x35957c['plugins']['has']('Title'))return;_0x35957c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x35957c['locale'],'ELEMENT_TITLE')),_0x35957c['model']['document']['registerPostFixer'](_0x41a4fd=>{let _0x1430c6=!0x1;const _0x5f1a70=Array['from'](_0x35957c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c302c,data:_0x2702d2}of _0x5f1a70){const {group:_0xc476cc}=_0x46f456(_0x2c302c);if('suggestion'!==_0xc476cc||!_0x2702d2['newRange'])continue;const _0x508980=_0x2702d2['newRange'],_0x36b8f7=_0x508980['end']['nodeBefore'];if(!_0x36b8f7||!_0x36b8f7['is']('element','title-content'))continue;if(!_0x508980['start']['isTouching'](_0x508980['end']))continue;const _0x2bfa71=_0x35957c['model']['schema']['getNearestSelectionRange'](_0x508980['end'],'forward');if(_0x2bfa71&&_0x2bfa71['isCollapsed']){const _0x150a32=_0x41a4fd['createRange'](_0x508980['start'],_0x2bfa71['start']);_0x150a32['isEqual'](_0x508980)||(_0x41a4fd['updateMarker'](_0x2c302c,{'range':_0x150a32}),_0x1430c6=!0x0);}_0x1430c6||(_0x41a4fd['removeMarker'](_0x2c302c),_0x1430c6=!0x0);}return _0x1430c6;});}}class TrackChangesUploadcare extends _0x4b9de5{['afterInit'](){const _0x10be12=this['editor'],_0x3a0095=_0x10be12['plugins']['get']('TrackChangesEditing');_0x10be12['plugins']['has']('Uploadcare')&&(_0x3a0095['enableCommand']('uploadcare'),_0x10be12['plugins']['has']('UploadcareImageEdit')&&(_0x3a0095['enableCommand']('uploadcareImageEdit'),_0x3a0095['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3a0095['descriptionFactory']['registerDescriptionCallback'](_0x5c2dca=>{if('attribute'!=_0x5c2dca['type'])return;const {data:_0xbfdd10}=_0x5c2dca;return _0xbfdd10&&'uploadcareImageId'==_0xbfdd10['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x4b9de5{['afterInit'](){const _0x2116be=this['editor'],_0x3bad74=_0x2116be['plugins']['get']('TrackChangesEditing');_0x2116be['plugins']['has']('UndoEditing')&&(_0x3bad74['enableCommand']('undo'),_0x3bad74['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x4b9de5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x590ba0=this['editor'];if(!_0x590ba0['plugins']['has']('TableCaptionEditing'))return;_0x590ba0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x4b9de5{['tableProperties'];['tableCellProperties'];constructor(_0x1448e9){super(_0x1448e9),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 _0x1d1d78=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a06e2 of this['tableProperties'])_0x1d1d78['enableCommand'](_0x1a06e2,(_0x3ff214,_0x79d9f9)=>{const _0x1a6419=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a06e2,[_0x1a6419],this['tableProperties'],'tableProperties',_0x3ff214,_0x79d9f9);});_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d1d78['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x190a26,_0x3fd1d8)=>this['handleDiscardAction'](this['tableProperties'],_0x190a26,_0x3fd1d8)),_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x17b68a of this['tableCellProperties'])this['editor']['commands']['get'](_0x17b68a)&&_0x1d1d78['enableCommand'](_0x17b68a,(_0x4c0520,_0xe466b6)=>{const _0x4a1bd3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x17b68a,_0x4a1bd3,this['tableCellProperties'],'tableCellProperties',_0x4c0520,_0xe466b6);});_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d1d78['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1f089a,_0x12d57f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1f089a,_0x12d57f)),_0x1d1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1d1d78['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1d1d78['descriptionFactory']['registerDescriptionCallback'](_0x511380=>this['handleSuggestionDescription'](_0x511380)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1c0405,_0xdf24de,_0xda2eab,_0x3e876d,_0x3aa8fd,_0x2822bb){const _0x13ce82=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2822bb['batch'],()=>{for(const _0x4367bc of _0xdf24de){if(this['_getSuggestion'](_0x4367bc,_0x3e876d))_0x3aa8fd(_0x2822bb);else{const _0x17deb4={};for(const _0x57be95 of _0xda2eab){const _0x1e7e34=_0x4367bc['getAttribute'](_0x57be95);void 0x0!==_0x1e7e34&&(_0x17deb4[_0x57be95]=_0x1e7e34);}_0x3aa8fd(_0x2822bb),_0x13ce82['markBlockFormat'](_0x4367bc,{'commandParams':[_0x17deb4]},[],_0x3e876d);}}});}['handleDiscardAction'](_0x1a33c6,_0x56d43b,_0x5c6c32){const _0x5e9bf3=_0x56d43b[0x0]['start']['nodeAfter'],_0x840d69=_0x5c6c32['commandParams'][0x0];this['editor']['model']['change'](_0x306799=>{for(const _0x2a146b of _0x1a33c6)void 0x0!==_0x840d69[_0x2a146b]?_0x306799['setAttribute'](_0x2a146b,_0x840d69[_0x2a146b],_0x5e9bf3):_0x306799['removeAttribute'](_0x2a146b,_0x5e9bf3);});}['handleSuggestionDescription'](_0x9a85f2){if(_0x9a85f2['data'])switch(_0x9a85f2['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'](_0x1f6c35,_0x22bd67){const _0x4df8b8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x483120 of _0x4df8b8['getSuggestions']({'skipNotAttached':!0x0})){const _0x3e8bcd=_0x483120['getContainedElement']();if(_0x483120['subType']===_0x22bd67&&_0x3e8bcd===_0x1f6c35)return _0x483120;}return null;}['_registerTablePropertiesAttributes'](){const _0x3a3a78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58faa4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x8e32b2 of _0x58faa4){const _0x113a0d=_0x8e32b2['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3a3a78['descriptionFactory']['registerAttributeLabel'](_0x8e32b2,Tt(this['editor']['locale'],'FORMAT_'+_0x113a0d));}}}class TrackChangesLineHeight extends _0x4b9de5{['afterInit'](){const _0x18a3e1=this['editor'];if(!_0x18a3e1['plugins']['has']('LineHeight'))return;const _0x4880cb=_0x18a3e1['plugins']['get']('TrackChangesEditing'),_0x3ed05d=_0x18a3e1['locale'];_0x4880cb['enableDefaultAttributesIntegration']('lineHeight'),_0x4880cb['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x3ed05d,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x4b9de5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x473aa1,_0x4f60bc,_0xdcdd0c,_0x2eea58,_0x474491,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,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(_0x114916){super(_0x114916),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11705f,_0x538ed8,_0x3e3088,_0x3b8d1a)=>{this['_model']['change'](()=>{for(const _0x77c29e of[..._0x3b8d1a,..._0x3e3088])this['_model']['markers']['has'](_0x77c29e)&&_0x114916['editing']['reconvertMarker'](_0x77c29e);});}),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']=_0x114916['plugins']['get'](_0x473aa1),this['_suggestionsConversion']=_0x114916['plugins']['get'](_0x4f60bc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x114916['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x114916['config']['get']('trackChanges.trackFormatChanges'),_0x114916['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x114916['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x114916,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x56bad5=this['editor'];_0x56bad5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x468588,{writer:_0x44b9f8})=>{let _0x1d9a5d='suggestion:'+_0x468588['getAttribute']('suggestion-type')+':'+_0x468588['getAttribute']('id');return _0x468588['getAttribute']('marker-count')&&(_0x1d9a5d+=':'+_0x468588['getAttribute']('marker-count')),_0x44b9f8['createElement']('$marker',{'data-name':_0x1d9a5d});}}),_0x56bad5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x56bad5['model']['document']['registerPostFixer'](_0x2bc25e=>{let _0x3025a8=!0x1;const _0x1ba99b=Array['from'](_0x56bad5['model']['document']['differ']['getChangedMarkers']()),_0x39bc85=new Set();for(const {name:_0x2b3d58,data:_0x322522}of _0x1ba99b){const {group:_0x40139f,type:_0x1976bb,subType:_0x2fb779,id:_0x1d1e33}=_0x46f456(_0x2b3d58);if('suggestion'!==_0x40139f)continue;const _0x232a77=_0x2fb779?'suggestion:'+_0x1976bb+':'+_0x2fb779+':'+_0x1d1e33:'suggestion:'+_0x1976bb+':'+_0x1d1e33,_0x3e85bf=_0x56bad5['model']['markers']['getMarkersGroup'](_0x232a77),_0x2afe7e=_0x56bad5['model']['markers']['get'](_0x2b3d58),_0x401fcd=this['_suggestions']['get'](_0x1d1e33);if(null!=_0x322522['newRange']){'formatInline'==_0x1976bb&&(_0x3025a8=_0x3025a8||Pt(_0x322522['newRange'],_0x2b3d58,_0x2bc25e,_0x56bad5['model']['schema']));const _0x2d4568='attribute'==_0x1976bb&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x2fb779)),_0x94b887='attribute'==_0x1976bb&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x2fb779));if(_0x322522['newRange']['isCollapsed']||'$graveyard'==_0x322522['newRange']['root']['rootName']||'formatBlock'==_0x1976bb&&!Ut(_0x322522['newRange'])||_0x2d4568&&!Ut(_0x322522['newRange'])||_0x94b887&&Gt(_0x322522['newRange'])||'deletion'==_0x1976bb&&Gt(_0x322522['newRange'])||_0x2afe7e&&Ht(_0x2afe7e,_0x3e85bf))_0x2bc25e['removeMarker'](_0x2b3d58),_0x3025a8=!0x0;else{if(!_0x401fcd||!_0x401fcd['isInContent'])continue;if(_0x322522['newRange']&&_0x322522['oldRange']&&_0x322522['newRange']['isEqual'](_0x322522['oldRange']))continue;_0x39bc85['add'](_0x401fcd);}}}return _0x39bc85['size']>0x0&&(_0x3025a8=!!this['_joinWithAdjacentSuggestions'](_0x39bc85)||_0x3025a8),_0x3025a8;}),_0x56bad5['model']['document']['registerPostFixer'](_0x10b571=>{let _0x5c4b3b=!0x1;for(const _0x21de05 of _0x56bad5['model']['document']['differ']['getChanges']())if('insert'==_0x21de05['type'])for(const _0x219b47 of this['_suggestions']['values']()){if(_0x219b47['isMultiRange']||!_0x219b47['isInContent'])continue;const _0x46b8a4='formatBlock'==_0x219b47['type'],_0x5351ec=this['_getAttributeKey'](_0x219b47),_0x49b0ad=_0x5351ec&&this['_suggestionsConversion']['isBlockAttribute'](_0x5351ec);if(!_0x46b8a4&&!_0x49b0ad)continue;const _0x1d7dee=_0x219b47['getFirstRange']();if(_0x1d7dee['start']['parent']!=_0x1d7dee['end']['parent']&&!_0x1d7dee['end']['isAtEnd']){const _0x15f56c=_0x56bad5['model']['createPositionAt'](_0x1d7dee['start']['nodeAfter'],'end'),_0x337f2d=_0x56bad5['model']['createRange'](_0x1d7dee['start'],_0x15f56c);_0x10b571['updateMarker'](_0x219b47['getFirstMarker'](),{'range':_0x337f2d}),_0x5c4b3b=!0x0;}}return _0x5c4b3b;}),_0x56bad5['model']['document']['registerPostFixer'](_0x470a0e=>this['_processAttributeChanges'](_0x470a0e)),_0x56bad5['model']['document']['registerPostFixer'](_0x4d336b=>!_0x4d336b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d336b)),_0x56bad5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x56bad5['model']['document']['on']('change:data',(_0x5d10dc,_0x520b05)=>{if(!_0x520b05['isLocal']||_0x520b05['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x588ac6=_0x56bad5['model']['document']['differ']['getChanges']();if(0x0==_0x588ac6['length'])return;const _0xcb230c=[],_0x52293f=_0x588ac6['filter'](_0xf24b36=>'attribute'==_0xf24b36['type']),_0x245ece=_0x588ac6['filter'](_0x536035=>'insert'==_0x536035['type']&&'$text'!=_0x536035['name']);for(const _0x160a9a of _0x52293f)this['_suggestionsConversion']['isRegisteredAttribute'](_0x160a9a['attributeKey'])&&_0xcb230c['push']({'key':_0x160a9a['attributeKey'],'newValue':_0x160a9a['attributeNewValue'],'oldValue':_0x160a9a['attributeOldValue'],'range':$t(_0x160a9a['range'],_0x56bad5['model'])});for(const _0x19fa7e of _0x245ece){if('rename'!=_0x19fa7e['action']&&'refresh'!=_0x19fa7e['action'])continue;const _0x2ed94d=Vt(_0x19fa7e['position']['nodeAfter'],_0x56bad5['model']),_0x24319f=_0x19fa7e['before'];'rename'==_0x19fa7e['action']&&_0xcb230c['push']({'key':Bt,'newValue':_0x19fa7e['name'],'oldValue':_0x24319f['name'],'range':_0x2ed94d});for(const [_0x948aac,_0x33b070]of _0x24319f['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x948aac))continue;const _0x3d6bd2=_0x19fa7e['attributes']['get'](_0x948aac);_0x33b070!==_0x3d6bd2&&_0xcb230c['push']({'key':_0x948aac,'newValue':_0x3d6bd2,'oldValue':_0x33b070,'range':_0x2ed94d});}for(const [_0x105978,_0x3d93df]of _0x19fa7e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x105978)&&(_0x24319f['attributes']['has'](_0x105978)||_0xcb230c['push']({'key':_0x105978,'newValue':_0x3d93df,'oldValue':null,'range':_0x2ed94d}));}0x0!=_0xcb230c['length']&&_0x56bad5['model']['enqueueChange'](_0x520b05,_0x2617fe=>{const _0x14c184=_0x3c1805();for(const {range:_0xe88c77,key:_0x2cde3f,oldValue:_0x8fc9c4,newValue:_0x55309b}of _0xcb230c)this['markAttributeChange'](_0xe88c77,_0x2cde3f,_0x8fc9c4,_0x55309b,{'groupId':_0x14c184});this['_reduceExistingSuggestions'](_0x2617fe,_0xcb230c);});},{'priority':'lowest'}),_0x56bad5['model']['markers']['on']('update:suggestion',(_0x3eb489,_0x33a695,_0x3adaca)=>{if(null==_0x3adaca){const {id:_0x55a8d4}=_0x46f456(_0x33a695['name']),_0x589477=this['_suggestions']['get'](_0x55a8d4);_0x589477&&_0x589477['addMarkerName'](_0x33a695['name']);}}),_0x56bad5['model']['document']['on']('change:data',()=>{const _0x4dd1d4=Array['from'](_0x56bad5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20d66c=>'suggestion'===_0x46f456(_0x20d66c['name'])['group']);if(0x0===_0x4dd1d4['length'])return;_0x4dd1d4['sort']((_0x2d0053,_0x52e8ac)=>{const _0x52bb86=_0x2d0053['data']['oldRange'],_0x138926=_0x52e8ac['data']['oldRange'];return null===_0x52bb86&&null===_0x138926?0x0:null===_0x52bb86&&null!==_0x138926?-0x1:null!==_0x52bb86&&null===_0x138926?0x1:_0x52bb86['start']['isBefore'](_0x138926['start'])?-0x1:0x1;});const _0x2f2bd8=new Set(),_0x1bdbca=new Set();for(const {name:_0x33a643,data:_0x1be16a}of _0x4dd1d4){const {id:_0x3f13f3}=_0x46f456(_0x33a643);if(null===_0x1be16a['oldRange']){const _0x47497e=this['_handleNewSuggestionMarker'](_0x33a643);_0x1bdbca['add'](_0x47497e);}else{const _0x35f45a=this['_suggestions']['get'](_0x3f13f3);null!==_0x1be16a['newRange']||_0x35f45a['isInContent']?(_0x2f2bd8['add'](_0x35f45a['head']),_0x1bdbca['add'](_0x35f45a)):this['_removeSuggestion'](_0x35f45a);}}_0x1bdbca['size']>0x0&&this['_refreshSuggestionsChain'](_0x1bdbca);for(const _0x1b66b8 of _0x2f2bd8)this['fire']('suggestionChanged',_0x1b66b8);}),_0x56bad5['model']['on']('applyOperation',(_0x5955a1,_0xd5f5ed)=>{const _0xaf05e5=_0xd5f5ed[0x0];if(!this['_suggestions']['size'])return;if(!_0xaf05e5['isDocumentOperation'])return;if(_0xaf05e5['batch']['isUndo']||!_0xaf05e5['batch']['isLocal'])return;let _0x430368,_0x2b6f9f;switch(_0xaf05e5['type']){case'insert':_0x430368=_0x56bad5['model']['createPositionAt'](_0xaf05e5['position']),_0x2b6f9f=_0x430368['getShiftedBy'](_0xaf05e5['howMany']);break;case'split':_0x430368=_0x56bad5['model']['createPositionAt'](_0xaf05e5['splitPosition']),_0x2b6f9f=_0x56bad5['model']['createPositionAt'](_0xaf05e5['moveTargetPosition']);break;case'move':_0x430368=_0x56bad5['model']['createPositionAt'](_0xaf05e5['targetPosition']),_0x2b6f9f=_0x430368['getShiftedBy'](_0xaf05e5['howMany']);break;default:return;}const _0x37c465=_0x56bad5['model']['createRange'](_0x430368,_0x2b6f9f);_0x56bad5['model']['change'](()=>{for(const {suggestion:_0x50894a,meta:_0x5e44b2}of this['_findSuggestions'](_0x37c465)){if(_0x50894a['isMultiRange'])continue;if('formatInline'==_0x50894a['type'])continue;const _0x2bd73c=this['_getAttributeKey'](_0x50894a);if(_0x2bd73c&&this['_suggestionsConversion']['isBlockAttribute'](_0x2bd73c)&&'split'!=_0xaf05e5['type'])continue;const _0x2422a8=_0x50894a['data']&&_0x50894a['data']['multipleBlocks'];('formatBlock'!=_0x50894a['type']||'split'==_0xaf05e5['type']&&!_0x2422a8)&&(_0x5e44b2['containsRangeInObject']||'insertion'==_0x50894a['type']&&_0x5e44b2['isOwn']||_0x50894a['getFirstRange']()['containsRange'](_0x37c465)&&this['_breakSuggestionMarker'](_0x50894a,_0x430368,_0x2b6f9f));}});},{'priority':'lowest'}),_0x56bad5['model']['on']('deleteContent',(_0xbf083f,_0x2a885d)=>{const _0x18cbf4=_0x2a885d[0x0],_0x3b6e65=_0x2a885d[0x1];if(_0x3b6e65&&_0x3b6e65['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x18cbf4['isCollapsed'])return;const _0x43dc36=_0x56bad5['model']['schema'],{start:_0x55dd74,end:_0x4dfda0}=_0x18cbf4['getFirstRange'](),_0x3d584b=_0x55dd74['nodeAfter']&&_0x43dc36['isLimit'](_0x55dd74['nodeAfter'])?null:_0x43dc36['getNearestSelectionRange'](_0x55dd74,'forward'),_0x2b7647=_0x4dfda0['nodeBefore']&&_0x43dc36['isLimit'](_0x4dfda0['nodeBefore'])?null:_0x43dc36['getNearestSelectionRange'](_0x4dfda0,'backward'),_0x41f3e3=_0x56bad5['model']['createRange'](_0x3d584b?_0x3d584b['start']:_0x55dd74,_0x2b7647?_0x2b7647['end']:_0x4dfda0);_0x56bad5['model']['change'](_0x5b914f=>{this['markDeletion'](_0x41f3e3);const _0x5d3b6d=_0x56bad5['model']['schema']['getNearestSelectionRange'](_0x41f3e3['start']);_0x18cbf4['is']('documentSelection')?_0x5b914f['setSelection'](_0x5d3b6d):_0x18cbf4['setTo'](_0x5d3b6d);}),_0xbf083f['stop']();},{'priority':_0x50db66['normal']+0xa}),_0x56bad5['model']['on']('insertContent',(_0x3226ac,_0x5aa786)=>{const _0x41acaf=_0x5aa786[_0x5aa786['length']-0x1];_0x41acaf&&_0x41acaf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x56bad5['model']['change'](()=>{let _0x465aae=_0x56bad5['model']['insertContent'](_0x5aa786[0x0],_0x5aa786[0x1],_0x5aa786[0x2],{'forceDefaultExecution':!0x0});if(!_0x465aae)return;_0x3226ac['return']=_0x465aae['clone']();const _0x5cd409=_0x465aae['end']['nodeBefore'],_0x5b4041=_0x56bad5['model']['schema'];_0x5cd409&&_0x5b4041['isBlock'](_0x5cd409)&&!_0x5b4041['isObject'](_0x5cd409)&&(_0x465aae=_0x56bad5['model']['createRange'](_0x465aae['start'],_0x56bad5['model']['createPositionAt'](_0x5cd409,'end'))),this['markInsertion'](_0x465aae);}),_0x3226ac['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x412838=new AcceptSuggestionCommand(_0x56bad5,this['_suggestions']);_0x56bad5['commands']['add']('acceptSuggestion',_0x412838),this['enableCommand']('acceptSuggestion');const _0x2a9db5=new DiscardSuggestionCommand(_0x56bad5,this['_suggestions']);_0x56bad5['commands']['add']('discardSuggestion',_0x2a9db5),this['enableCommand']('discardSuggestion'),_0x56bad5['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x56bad5,_0x412838,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x56bad5['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x56bad5,_0x2a9db5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x56bad5['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x56bad5,_0x412838,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x56bad5['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x56bad5,_0x2a9db5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x43e214=_0x56bad5['plugins']['get'](_0x473aa1);this['listenTo'](_0x43e214,'addComment',(_0x5f3096,{threadId:_0x41fb8b})=>{const _0x9071ab=this['_suggestions']['get'](_0x41fb8b);_0x9071ab&&_0x9071ab['commentThread']&&0x1===_0x9071ab['commentThread']['length']&&this['_updateSuggestionData'](_0x41fb8b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x43e214,'removeComment',(_0x2fe76d,{threadId:_0x310c3d})=>{const _0x2b58f7=this['_suggestions']['get'](_0x310c3d);_0x2b58f7&&_0x2b58f7['commentThread']&&!_0x2b58f7['commentThread']['length']&&this['_updateSuggestionData'](_0x310c3d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c9cc4){const _0x25a6dc=_0x504ade([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]),_0x80f4ca=0x3d8d0df,_0x45f14d=0x3df5baf^_0x80f4ca,_0x41e551=window[_0x504ade([0x44,0x61,0x74,0x65])][_0x504ade([0x6e,0x6f,0x77])](),_0x4626bc=_0x4c9cc4[_0x504ade([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe0e41=new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47fea4=>{_0x4626bc[_0x504ade([0x6f,0x6e,0x63,0x65])](_0x504ade([0x72,0x65,0x61,0x64,0x79]),_0x47fea4);}),_0x49ed3a={[_0x504ade([0x6b,0x74,0x79])]:_0x504ade([0x45,0x43]),[_0x504ade([0x75,0x73,0x65])]:_0x504ade([0x73,0x69,0x67]),[_0x504ade([0x63,0x72,0x76])]:_0x504ade([0x50,0x2d,0x32,0x35,0x36]),[_0x504ade([0x78])]:_0x504ade([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]),[_0x504ade([0x79])]:_0x504ade([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]),[_0x504ade([0x61,0x6c,0x67])]:_0x504ade([0x45,0x53,0x32,0x35,0x36])},_0x2044aa=_0x4626bc[_0x504ade([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x504ade([0x67,0x65,0x74])](_0x504ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49bb8a(){let _0x15b150,_0x334a3b=null,_0x45df55=null;try{if(_0x2044aa==_0x504ade([0x47,0x50,0x4c]))return _0x504ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15b150=_0x50c0a8(),!_0x15b150)return _0x504ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15b150[_0x504ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45df55=_0xb4c6d0(_0x15b150[_0x504ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15b150[_0x504ade([0x6a,0x74,0x69])])),await _0x56011e()?_0x11d87d()?_0x18156a()?_0x504ade([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3ed0()?(_0x15b150[_0x504ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x504ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334a3b=_0x219010(_0x504ade([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ddc3f()):_0x504ade([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x504ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x504ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x504ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18156a(){const _0x3be5c5=[_0x504ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x504ade([0x74,0x72,0x69,0x61,0x6c])][_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b150[_0x504ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41e551/0x3e8:0xe10*_0x45f14d;return _0x15b150[_0x504ade([0x65,0x78,0x70])]<_0x3be5c5;}function _0x11d87d(){const _0x90a802=_0x15b150[_0x504ade([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x90a802)return!0x1;if(_0x90a802[_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504ade([0x2a])))return!0x0;if(_0x90a802[_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504ade([0x54,0x43])))return!0x0;if(_0x90a802[_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504ade([0x52,0x54,0x43]))){if(_0x28af6b())return!0x0;if(_0x3c8d1b()||_0xd04380())return!0x0;}return!0x1;}function _0x5e3ed0(){const _0x5d4756=_0x15b150[_0x504ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d4756||0x0==_0x5d4756[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x110461}=new URL(window[_0x504ade([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d4756[_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x110461))return!0x0;const _0x596cdd=_0x110461[_0x504ade([0x73,0x70,0x6c,0x69,0x74])](_0x504ade([0x2e]));return _0x5d4756[_0x504ade([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8b70ba=>_0x8b70ba[_0x504ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504ade([0x2a])))[_0x504ade([0x6d,0x61,0x70])](_0x3963c2=>_0x3963c2[_0x504ade([0x73,0x70,0x6c,0x69,0x74])](_0x504ade([0x2e])))[_0x504ade([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbb84d3=>_0xbb84d3[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x596cdd[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x504ade([0x6d,0x61,0x70])](_0x204d9a=>Array(_0x596cdd[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x204d9a[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x504ade([0x66,0x69,0x6c,0x6c])](_0x204d9a[0x0]===_0x504ade([0x2a])?_0x504ade([0x2a]):'')[_0x504ade([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x204d9a))[_0x504ade([0x73,0x6f,0x6d,0x65])](_0x402c2b=>_0x596cdd[_0x504ade([0x65,0x76,0x65,0x72,0x79])]((_0x2d5182,_0x3cab68)=>_0x402c2b[_0x3cab68]===_0x2d5182||_0x402c2b[_0x3cab68]===_0x504ade([0x2a])));}function _0x3ddc3f(){return _0x334a3b&&_0x45df55?new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33b29f,_0x4a7e53)=>{_0x334a3b[_0x504ade([0x74,0x68,0x65,0x6e])](_0x33b29f,_0x4a7e53),_0x45df55[_0x504ade([0x74,0x68,0x65,0x6e])](_0x54aa62=>{_0x54aa62!=_0x504ade([0x56,0x61,0x6c,0x69,0x64])&&_0x33b29f(_0x54aa62);},_0x4a7e53);}):_0x334a3b||_0x45df55||_0x504ade([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb4c6d0(_0x5e6d62,_0x14d8c4){return new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x596af5=>{if(_0x1bc70e())return _0x596af5(_0x504ade([0x56,0x61,0x6c,0x69,0x64]));_0xcbc5c3(),_0x4626bc[_0x504ade([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x504ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218d92=!0x1;const _0xb11032=_0x3c1805();function _0x259748(_0x1237fd){return!!_0x1237fd&&(typeof _0x1237fd===_0x504ade([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1237fd===_0x504ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1237fd[_0x504ade([0x74,0x68,0x65,0x6e])]===_0x504ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1237fd[_0x504ade([0x63,0x61,0x74,0x63,0x68])]===_0x504ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x496012(_0x1a12a5){_0x1a89e9(_0x1a12a5)[_0x504ade([0x74,0x68,0x65,0x6e])](_0x51bedc=>{if(!_0x51bedc||_0x51bedc[_0x504ade([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x504ade([0x6f,0x6b]))return _0x504ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x355fee(_0x35d259(_0xb11032+_0x14d8c4))!=_0x51bedc[_0x504ade([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x504ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x504ade([0x56,0x61,0x6c,0x69,0x64]);})[_0x504ade([0x74,0x68,0x65,0x6e])](_0x164855=>(_0x6a467c(),_0x164855),()=>{const _0x43ed3=_0x8281c4();return null==_0x43ed3?(_0x6a467c(),_0x504ade([0x56,0x61,0x6c,0x69,0x64])):_0x504ade(_0x41e551-_0x43ed3>(0x27d454df^_0x80f4ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x504ade([0x74,0x68,0x65,0x6e])](_0x596af5)[_0x504ade([0x63,0x61,0x74,0x63,0x68])](()=>{_0x596af5(_0x504ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbf222a=0x3ee3e5f^_0x80f4ca;function _0x6a467c(){const _0x2e6121=_0x504ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x355fee(_0x35d259(_0x5e6d62)),_0x42f19a=_0x3d3b3d(_0x355fee(window[_0x504ade([0x4d,0x61,0x74,0x68])][_0x504ade([0x63,0x65,0x69,0x6c])](_0x41e551/_0xbf222a)));window[_0x504ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x504ade([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e6121,_0x42f19a);}function _0x8281c4(){const _0x484de6=_0x504ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x355fee(_0x35d259(_0x5e6d62)),_0x1ce923=window[_0x504ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x504ade([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484de6);return _0x1ce923?window[_0x504ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3b3d(_0x1ce923),0x10)*_0xbf222a:null;}function _0x1a89e9(_0x5ab1ea){return new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59a5f6,_0x1a977a)=>{_0x5ab1ea[_0x504ade([0x74,0x68,0x65,0x6e])](_0x59a5f6,_0x1a977a),window[_0x504ade([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a977a,0x3d9041f^_0x80f4ca);});}}_0x4626bc[_0x504ade([0x6f,0x6e])](_0x504ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x118045,_0x329707)=>{if(_0x329707[0x0]!=_0x5e6d62)return _0x596af5(_0x504ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x329707[0x1]={..._0x329707[0x1],[_0x504ade([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb11032};},{[_0x504ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x504ade([0x68,0x69,0x67,0x68])}),_0x4626bc[_0x504ade([0x6f,0x6e])](_0x504ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x450b68=>{_0x259748(_0x450b68[_0x504ade([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218d92=!0x0,_0x496012(_0x450b68[_0x504ade([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x504ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x504ade([0x6c,0x6f,0x77])}),_0xe0e41[_0x504ade([0x74,0x68,0x65,0x6e])](()=>{_0x218d92||_0x596af5(_0x504ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bc70e(){return _0x4626bc[_0x504ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504ade([0x76,0x69,0x65,0x77])][_0x504ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x504ade([0x61,0x75,0x74,0x6f]);}function _0xcbc5c3(){_0x4626bc[_0x504ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504ade([0x76,0x69,0x65,0x77])][_0x504ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504ade([0x61,0x75,0x74,0x6f]);}}function _0x219010(_0x4885e3){const _0x191a8d=[new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a838=>setTimeout(_0x28a838,0x3d1ee13^_0x80f4ca)),_0xe0e41[_0x504ade([0x74,0x68,0x65,0x6e])](()=>new window[(_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43cb85=>{let _0x4f60cf=0x0;_0x4626bc[_0x504ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x504ade([0x6f,0x6e])](_0x504ade([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c0cea,_0xb31c94)=>{_0xb31c94[0x0][_0x504ade([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f60cf++,_0x4f60cf==(0x3d8d537^_0x80f4ca)&&(_0x43cb85(),_0x2c0cea[_0x504ade([0x6f,0x66,0x66])]());});}))];return window[_0x504ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504ade([0x72,0x61,0x63,0x65])](_0x191a8d)[_0x504ade([0x74,0x68,0x65,0x6e])](()=>_0x4885e3);}async function _0x427237(){await _0xe0e41,_0x4626bc[_0x504ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x504ade([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xae4bc3,_0x4626bc[_0x504ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x504ade([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xae4bc3,_0x4626bc[_0x504ade([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x504ade([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28af6b(){return _0x5f368e(_0x504ade([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e9145(_0x504ade([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x504ade([0x73,0x74,0x61,0x74,0x65])]==_0x504ade([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c8d1b(){return _0x5f368e(_0x504ade([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 _0xd04380(){return _0x5f368e(_0x504ade([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4fc8a8(_0x41ef55){const _0x2b0beb=_0xcbc704();_0x4626bc[_0x2b0beb]=_0x504ade([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41ef55,_0x41ef55!=_0x504ade([0x56,0x61,0x6c,0x69,0x64])&&_0x427237();}function _0xcbc704(){const _0x57ceb5=window[_0x504ade([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x504ade([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x504ade([0x6e,0x6f,0x77])]())[_0x504ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x504ade([0x2e]),'');let _0xcd591d=_0x504ade([0x52]);for(let _0x7f5815=0x0;_0x7f5815<_0x57ceb5[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7f5815+=0x2){let _0x5bb35e=window[_0x504ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57ceb5[_0x504ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7f5815,_0x7f5815+0x2));_0x5bb35e>=_0x25a6dc[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bb35e-=_0x25a6dc[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcd591d+=_0x25a6dc[_0x5bb35e];}return _0xcd591d;}function _0x50c0a8(){const _0x2c4843=_0x2044aa[_0x504ade([0x73,0x70,0x6c,0x69,0x74])](_0x504ade([0x2e]));if(0x3!=_0x2c4843[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e1df8(_0x2c4843[0x1]);function _0x3e1df8(_0x2845d6){const _0x3d6283=_0x56ca99(_0x2845d6);return _0x3d6283&&_0x804fcd()?_0x3d6283:null;function _0x804fcd(){const _0x541f77=_0x3d6283[_0x504ade([0x6a,0x74,0x69])],_0xef69db=window[_0x504ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x541f77[_0x504ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x541f77[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fc90d={..._0x3d6283,[_0x504ade([0x6a,0x74,0x69])]:_0x541f77[_0x504ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x541f77[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fc90d[_0x504ade([0x76,0x63])],_0x35d259(_0x2fc90d)==_0xef69db;}}}async function _0x56011e(){let _0x381ae2=!0x0;try{const _0x457596=_0x2044aa[_0x504ade([0x73,0x70,0x6c,0x69,0x74])](_0x504ade([0x2e])),[_0x3803f3,_0x423566,_0x2a8482]=_0x457596;return _0x77c619(_0x3803f3),await _0x544307(_0x3803f3,_0x423566,_0x2a8482),_0x381ae2;}catch{return!0x1;}function _0x77c619(_0x19ac3b){const _0x3f0e3c=_0x56ca99(_0x19ac3b);_0x3f0e3c&&_0x3f0e3c[_0x504ade([0x61,0x6c,0x67])]==_0x504ade([0x45,0x53,0x32,0x35,0x36])||(_0x381ae2=!0x1);}async function _0x544307(_0x501cdd,_0x1f5559,_0x56a349){const _0x45004e=window[_0x504ade([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x504ade([0x66,0x72,0x6f,0x6d])](_0x35c286(_0x56a349),_0x23d1c0=>_0x23d1c0[_0x504ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x470d4c=new window[(_0x504ade([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x504ade([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x501cdd+_0x504ade([0x2e])+_0x1f5559),_0x1ffd67=window[_0x504ade([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x504ade([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ffd67)return;const _0x1128df=await _0x1ffd67[_0x504ade([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x504ade([0x6a,0x77,0x6b]),_0x49ed3a,{[_0x504ade([0x6e,0x61,0x6d,0x65])]:_0x504ade([0x45,0x43,0x44,0x53,0x41]),[_0x504ade([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x504ade([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x504ade([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ffd67[_0x504ade([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x504ade([0x6e,0x61,0x6d,0x65])]:_0x504ade([0x45,0x43,0x44,0x53,0x41]),[_0x504ade([0x68,0x61,0x73,0x68])]:{[_0x504ade([0x6e,0x61,0x6d,0x65])]:_0x504ade([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1128df,_0x45004e,_0x470d4c)||(_0x381ae2=!0x1);}}function _0x56ca99(_0x2d709e){return _0x2d709e[_0x504ade([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x504ade([0x65,0x79]))?JSON[_0x504ade([0x70,0x61,0x72,0x73,0x65])](_0x35c286(_0x2d709e)):null;}function _0x35c286(_0x2b9138){return window[_0x504ade([0x61,0x74,0x6f,0x62])](_0x2b9138[_0x504ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x504ade([0x2b]))[_0x504ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x504ade([0x2f])));}function _0x35d259(_0x3f57e1){let _0x168800=0x1505;function _0x2b8b70(_0x4cc7d9){for(let _0x5b34fb=0x0;_0x5b34fb<_0x4cc7d9[_0x504ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b34fb++){const _0x155764=_0x4cc7d9[_0x504ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b34fb);_0x168800=(_0x168800<<0x5)+_0x168800+_0x155764,_0x168800&=_0x168800;}}function _0x3d889f(_0x3a5ee7){Array[_0x504ade([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a5ee7)?_0x3a5ee7[_0x504ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d889f):_0x3a5ee7&&typeof _0x3a5ee7==_0x504ade([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x504ade([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a5ee7)[_0x504ade([0x73,0x6f,0x72,0x74])]()[_0x504ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47372b,_0x416080])=>{_0x2b8b70(_0x47372b),_0x3d889f(_0x416080);}):_0x2b8b70(window[_0x504ade([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a5ee7));}return _0x3d889f(_0x3f57e1),_0x168800>>>0x0;}function _0x355fee(_0x47fedb){return _0x47fedb[_0x504ade([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x504ade([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x504ade([0x30]));}function _0x3d3b3d(_0x475ce6){return _0x475ce6[_0x504ade([0x73,0x70,0x6c,0x69,0x74])]('')[_0x504ade([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x504ade([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f368e(_0x2008cf){return _0x4626bc[_0x504ade([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x504ade([0x68,0x61,0x73])](_0x2008cf);}function _0x2e9145(_0x441547){return _0x4626bc[_0x504ade([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x504ade([0x67,0x65,0x74])](_0x441547);}function _0xae4bc3(){}function _0x504ade(_0x558f31){return _0x558f31['map'](_0x16690a=>String['fromCharCode'](_0x16690a))['join']('');}_0x4fc8a8(await _0x49bb8a());}(this);}set['adapter'](_0x588583){if(this['_adapter'])throw new _0x423517('track-changes-adapter-already-set',this);this['_adapter']=_0x588583;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x586f32=!0x1,toJSON:_0x2267e3=!0x1}={}){const _0x5c278e=[];for(const _0x2db937 of this['_suggestions']['values']())_0x586f32&&!_0x2db937['isInContent']||_0x5c278e['push'](_0x2db937);return _0x2267e3?_0x5c278e['map'](_0x5a1df3=>_0x5a1df3['toJSON']()):_0x5c278e;}['getSuggestion'](_0x4382e7){const _0x1afe0f=this['_suggestions']['get'](_0x4382e7);if(!_0x1afe0f)throw new _0x423517('track-changes-suggestion-not-found',this);return _0x1afe0f;}['hasSuggestion'](_0x582dbb){return this['_suggestions']['has'](_0x582dbb);}['addSuggestionData'](_0x1eb81e){const {authorId:_0x59b2d5,id:_0x136fc9,originalSuggestionId:_0x24f893,attributes:_0x4766ca}=_0x1eb81e,[_0x2c81fc,_0x5a0260]=_0x1eb81e['type']['split'](':'),_0x321249=this['_suggestions']['get'](_0x136fc9)||this['_createSuggestion'](_0x2c81fc,_0x5a0260,_0x136fc9,_0x59b2d5,_0x4766ca,_0x24f893);if(this['_addThreadToSuggestion'](_0x321249),this['_checkSuggestionCorrectness'](_0x321249,_0x2c81fc,_0x5a0260||null,_0x59b2d5),_0x321249['createdAt']=_0x1eb81e['createdAt'],_0x321249['_isDataLoaded']=!0x0,_0x4766ca&&_0x4766ca['@external']){const _0x2663be=_0x4766ca['@external'],_0x55612f=this['_getExternalAuthor'](_0x2663be['authorName']);_0x321249['authoredAt']=_0x2663be['createdAt'],_0x321249['author']=_0x55612f,_0x321249['isExternal']=!0x0;}else _0x321249['authoredAt']=_0x1eb81e['createdAt'];switch(_0x1eb81e['data']&&(_0x321249['data']=_0x1eb81e['data']),_0x1eb81e['attributes']&&(_0x321249['attributes']=_0x1eb81e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x321249['_saved']=!0x0),this['_suggestionState']['get'](_0x321249)){case'notReady':this['_suggestionState']['set'](_0x321249,'dataReady');break;case'markerReady':_0x321249['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x321249])),this['_refreshSuggestionsChain'](new Set([_0x321249])),this['_suggestionState']['set'](_0x321249,'ready'),this['fire']('suggestionLoaded',_0x321249)):this['_suggestionState']['set'](_0x321249,'removed');}return _0x321249;}['acceptSuggestion'](_0x55c5a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c1568 of _0x55c5a5['getAllAdjacentSuggestions']())_0x2c1568['accept']();});});}['discardSuggestion'](_0x2e0740){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x166d25 of _0x2e0740['getAllAdjacentSuggestions']())_0x166d25['discard']();});});}['enableCommand'](_0x3be816,_0x1f373e){const _0x1bbac6=this['editor']['commands']['get'](_0x3be816);if(!_0x1bbac6)throw new _0x423517('track-changes-command-not-found',this,{'commandName':_0x3be816});if(this['_enabledCommands']['has'](_0x1bbac6))throw new _0x423517('track-changes-enable-command-twice',this,{'commandName':_0x3be816});this['_enabledCommands']['add'](_0x1bbac6),_0x1f373e&&_0x1bbac6['on']('execute',(_0xe7801,_0x9e8189)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9e8189['length']>0x0&&_0x9e8189[_0x9e8189['length']-0x1]&&_0x9e8189[_0x9e8189['length']-0x1]['forceDefaultExecution']?_0x9e8189['pop']():(_0xe7801['return']=_0x1f373e((..._0x44271b)=>_0x1bbac6['execute'](..._0x44271b,{'forceDefaultExecution':!0x0}),..._0x9e8189),_0xe7801['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3ee491){let _0x56516d,_0x5290cd;const _0x216a08=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56516d=_0x3ee491();}catch(_0x329a76){_0x5290cd=_0x329a76;}return _0x216a08||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5290cd&&_0x423517['rethrowUnexpectedError'](_0x5290cd,this),_0x56516d;}['markInsertion'](_0x4fa7a5,_0x3f34b1=null,_0x378c31={}){if(_0x4fa7a5['isCollapsed'])return null;const _0x19925e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x378c31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ffa26,meta:_0x1c93d2}of this['_findSuggestions'](_0x4fa7a5,'insertion'))if(_0x1c93d2['isOwn']){if(!_0x1c93d2['isNextTo']){if(_0x1c93d2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x2ffa26,_0x378c31))continue;return _0x2ffa26;}if(zt(_0x2ffa26,_0x378c31))return _0x2ffa26;this['_breakSuggestionMarker'](_0x2ffa26,_0x4fa7a5['start'],_0x4fa7a5['end']);break;}if(_0x3f34b1==_0x2ffa26['subType']&&zt(_0x2ffa26,_0x378c31)){const _0x266d4c=_0x2ffa26['getFirstRange']();return _0x266d4c['start']['isEqual'](_0x4fa7a5['end'])?this['_setSuggestionRange'](_0x2ffa26,this['_model']['createRange'](_0x4fa7a5['start'],_0x266d4c['end'])):this['_setSuggestionRange'](_0x2ffa26,this['_model']['createRange'](_0x266d4c['start'],_0x4fa7a5['end'])),_0x2ffa26;}}const _0x1f4df3=_0x3c1805(),_0x5bab98=_0x19925e['id'],_0x3813a6=_0x3f34b1?'insertion:'+_0x3f34b1:'insertion',_0x253162=this['_setSuggestionData']({'id':_0x1f4df3,'type':_0x3813a6,'createdAt':new Date(),'authorId':_0x5bab98,'attributes':_0x378c31});return this['_addSuggestionMarker'](_0x3813a6,_0x1f4df3,_0x5bab98,_0x4fa7a5),_0x253162;}['markMultiRangeInsertion'](_0x5c9c8e,_0x2c60ce='multi',_0x48e6a4={}){const _0x5d0abf=this['editor']['plugins']['get']('Users')['me'],_0x5c2360=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2c60ce,'join');this['_trackingSessionId']&&(_0x48e6a4['trackingSessionId']=this['_trackingSessionId']);for(const _0x3f0365 of this['getSuggestions']())if(_0x3f0365['author']['id']==_0x5d0abf['id']&&'insertion'==_0x3f0365['type']&&_0x3f0365['subType']==_0x2c60ce&&zt(_0x3f0365,_0x48e6a4)&&(_0x5c2360(_0x3f0365['getRanges'](),_0x5c9c8e)||_0x5c2360(_0x5c9c8e,_0x3f0365['getRanges']()))){for(const _0x306106 of _0x5c9c8e)_0x3f0365['addRange'](_0x306106);return _0x3f0365;}for(const {suggestion:_0x5ac1af,meta:_0x598150}of this['_findSuggestions'](_0x5c9c8e,'insertion')){if(!_0x598150['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x598150['containsRangeInObject'])continue;if(!zt(_0x5ac1af,_0x48e6a4))continue;let _0x5d4dda=!0x0;for(const _0x57bbfa of _0x5ac1af['getRanges']())for(const _0x22f0e6 of _0x5c9c8e)if(!_0x57bbfa['containsRange'](_0x22f0e6)){_0x5d4dda=!0x1;break;}if(_0x5d4dda)return _0x5ac1af;}const _0x280486=_0x3c1805(),_0x5b7f37=_0x5d0abf['id'],_0x4d9680='insertion:'+_0x2c60ce,_0x5377f3=this['_setSuggestionData']({'id':_0x280486,'type':_0x4d9680,'createdAt':new Date(),'authorId':_0x5b7f37,'attributes':_0x48e6a4});for(const _0x49a973 of _0x5c9c8e)this['_addSuggestionMarker'](_0x4d9680,_0x280486,_0x5b7f37,_0x49a973,Suggestion['getMultiRangeId']());return _0x5377f3;}['markInlineFormat'](_0x143e3c,_0x5e2bba,_0x2e094e=null,_0x21170c={}){if(_0x2e094e=_0x2e094e||xt(_0x5e2bba),_0x143e3c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x21170c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x237763=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e094e,'accept');return this['forceDefaultExecution'](()=>_0x237763([_0x143e3c],_0x5e2bba,_0x21170c)),null;}const _0x306649=this['editor']['plugins']['get']('Users')['me'],_0x35112d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x506a94,meta:_0x466f4c}of this['_findSuggestions'](_0x143e3c,'insertion'))_0x466f4c['isOwn']&&!_0x466f4c['isInsideObject']&&_0x35112d['push'](..._0x506a94['getRanges']());}const _0x254dca=function(_0x17ac4f,_0x25b7e3){const _0x60eeae=[];for(const _0x1f0499 of _0x25b7e3){const _0x119ea6=_0x17ac4f['getIntersection'](_0x1f0499);_0x119ea6&&_0x60eeae['push'](_0x119ea6);}return _0x60eeae;}(_0x143e3c,_0x35112d),_0x1a27f4=function(_0x2e2465,_0x36edc3){const _0x5212e4=[_0x2e2465];for(const _0x56bd6c of _0x36edc3){let _0x3c3138=0x0;for(;_0x3c3138<_0x5212e4['length'];){const _0x34fcad=_0x5212e4[_0x3c3138]['getDifference'](_0x56bd6c);_0x5212e4['splice'](_0x3c3138,0x1,..._0x34fcad),_0x3c3138+=_0x34fcad['length'];}}return _0x5212e4;}(_0x143e3c,_0x35112d);_0x254dca['length']&&this['_model']['change'](()=>{for(const _0x465002 of _0x254dca){const _0xe52cd1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e094e,'accept');this['forceDefaultExecution'](()=>_0xe52cd1([_0x465002],_0x5e2bba,_0x21170c));}});for(const _0x201d60 of _0x1a27f4){let _0x3dc76a=null,_0x104933=_0x201d60['start'],_0x38a3e0=_0x201d60['end'];for(const {suggestion:_0x1433b3,meta:_0x35f0c8}of this['_findSuggestions'](_0x201d60,'formatInline')){if(!_0x35f0c8['isOwn'])continue;if(_0x1433b3['subType']!=_0x2e094e)continue;if(!zt(_0x1433b3,_0x21170c))continue;const _0x367c85=_0x1433b3['getFirstRange']();if(_0x367c85['containsRange'](_0x201d60,!0x0))return null;_0x104933=_0x104933['isBefore'](_0x367c85['start'])?_0x104933:_0x367c85['start'],_0x38a3e0=_0x38a3e0['isAfter'](_0x367c85['end'])?_0x38a3e0:_0x367c85['end'],_0x3dc76a?_0x367c85['start']['isBefore'](_0x3dc76a['getFirstRange']()['start'])?(_0x3dc76a['removeMarkers'](),_0x3dc76a=_0x1433b3):_0x1433b3['removeMarkers']():_0x3dc76a=_0x1433b3;}const _0xbcbb72=this['_model']['createRange'](_0x104933,_0x38a3e0);if(_0x3dc76a)this['_setSuggestionRange'](_0x3dc76a,_0xbcbb72);else{const _0x58c825=_0x3c1805(),_0x4199f3=_0x306649['id'];this['_setSuggestionData']({'id':_0x58c825,'type':'formatInline:'+_0x2e094e,'data':_0x5e2bba,'createdAt':new Date(),'authorId':_0x4199f3,'attributes':_0x21170c}),this['_addSuggestionMarker']('formatInline:'+_0x2e094e,_0x58c825,_0x4199f3,_0xbcbb72);}}return null;}['markBlockFormat'](_0x51f310,_0x317bc4,_0x7ba439=[],_0x5a93d3=null,_0x2e5338={}){_0x317bc4['formatGroupId']||(_0x317bc4['formatGroupId']=_0x317bc4['commandName']),_0x317bc4['multipleBlocks']=_0x51f310['is']('range'),_0x5a93d3=_0x5a93d3||xt(_0x317bc4);const _0x313792=_0x7ba439['map'](_0x222e59=>Vt(_0x222e59,this['_model'])),_0x18b874=_0x51f310['is']('range')?_0x51f310:Vt(_0x51f310,this['_model']);if(this['_trackingSessionId']&&(_0x2e5338['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22505e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a93d3,'accept');return this['forceDefaultExecution'](()=>_0x22505e([_0x18b874],_0x317bc4,_0x2e5338)),null;}_0x313792['push'](_0x18b874);let _0x5b6758=!0x0;for(const _0x3fb012 of _0x313792)if(!this['_rangeIsInLocalUserInsertion'](_0x3fb012)){_0x5b6758=!0x1;break;}if(_0x5b6758&&'always'!==this['_trackFormatChanges']){const _0x501d65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a93d3,'accept');return this['forceDefaultExecution'](()=>_0x501d65([_0x18b874],_0x317bc4,_0x2e5338)),null;}let _0x575a5b=null,_0x11cefa=_0x18b874['start'],_0x2c919f=_0x18b874['end'];for(const {suggestion:_0xabf69f,meta:_0x4a8f8b}of this['_findSuggestions'](_0x18b874,'formatBlock')){if(!_0x4a8f8b['isOwn'])continue;if(_0x4a8f8b['isNextTo']||_0x4a8f8b['containsRangeInObject']||_0x4a8f8b['isInsideObject'])continue;if(_0xabf69f['data']['formatGroupId']!=_0x317bc4['formatGroupId'])continue;if(!zt(_0xabf69f,_0x2e5338))continue;const _0x493ed2=_0xabf69f['getFirstRange']();if(_0xabf69f['subType']==_0x5a93d3){if(_0x493ed2['containsRange'](_0x18b874,!0x0))return null;_0x11cefa=_0x11cefa['isBefore'](_0x493ed2['start'])?_0x11cefa:_0x493ed2['start'],_0x2c919f=_0x2c919f['isAfter'](_0x493ed2['end'])?_0x2c919f:_0x493ed2['end'],_0x575a5b?_0x493ed2['start']['isBefore'](_0x575a5b['getFirstRange']()['start'])?(_0x575a5b['removeMarkers'](),_0x575a5b=_0xabf69f):_0xabf69f['removeMarkers']():_0x575a5b=_0xabf69f;}else{const _0x5407ce=_0x18b874['getIntersection'](_0x493ed2);this['_cutOutSuggestionMarker'](_0xabf69f,_0x5407ce);}}const _0x2113c8=this['editor']['plugins']['get']('Users')['me'],_0x4d26fd=_0x3c1805(),_0x30de1c=_0x2113c8['id'];if(_0x575a5b)return this['_setSuggestionRange'](_0x575a5b,this['_model']['createRange'](_0x11cefa,_0x2c919f)),_0x575a5b;{const _0x407f94=this['_setSuggestionData']({'id':_0x4d26fd,'type':'formatBlock:'+_0x5a93d3,'data':_0x317bc4,'createdAt':new Date(),'authorId':_0x30de1c,'attributes':_0x2e5338});return this['_addSuggestionMarker']('formatBlock:'+_0x5a93d3,_0x4d26fd,_0x30de1c,this['_model']['createRange'](_0x11cefa,_0x2c919f)),_0x407f94;}}['markMultiRangeBlockFormat'](_0x1bbb87,_0x2c868c,_0x16218f=[],_0x375465=null,_0x41da44={}){_0x2c868c['formatGroupId']||(_0x2c868c['formatGroupId']=_0x2c868c['commandName']);const _0x159ea9=_0x1bbb87[0x0];_0x2c868c['multipleBlocks']=_0x159ea9['is']('range'),_0x375465=_0x375465||xt(_0x2c868c);const _0x5a8a06=_0x16218f['map'](_0x32488a=>Vt(_0x32488a,this['_model'])),_0x27314d=_0x159ea9['is']('range')?_0x1bbb87:_0x1bbb87['map'](_0x4ac6f1=>Vt(_0x4ac6f1,this['_model']));if(this['_trackingSessionId']&&(_0x41da44['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x59f6e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375465,'accept');return this['forceDefaultExecution'](()=>_0x59f6e9(_0x27314d,_0x2c868c,_0x41da44)),null;}_0x5a8a06['push'](..._0x27314d);let _0x2c18f8=!0x0;for(const _0x5503eb of _0x5a8a06)if(!this['_rangeIsInLocalUserInsertion'](_0x5503eb)){_0x2c18f8=!0x1;break;}if(_0x2c18f8&&'always'!==this['_trackFormatChanges']){const _0x5b196b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375465,'accept');return this['forceDefaultExecution'](()=>_0x5b196b(_0x27314d,_0x2c868c,_0x41da44)),null;}const _0x56cabb=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a516f of this['getSuggestions']()){const _0x3f02b6=_0x5a516f['data'];if(_0x5a516f['author']['id']!=_0x56cabb['id'])continue;if('formatBlock'!=_0x5a516f['type']||_0x3f02b6['formatGroupId']!=_0x2c868c['formatGroupId'])continue;if(!zt(_0x5a516f,_0x41da44))continue;const _0x11c00c=_0x5a516f['subType']==_0x375465;for(let _0x204ce8=0x0;_0x204ce8<_0x27314d['length'];_0x204ce8++){const _0x58541c=_0x27314d[_0x204ce8];for(const _0x454bec of _0x5a516f['getMarkers']()){const _0x51b695=_0x454bec['getRange']();if(_0x58541c['isEqual'](_0x51b695)){_0x11c00c?(_0x27314d['splice'](_0x204ce8,0x1),_0x204ce8--):_0x5a516f['removeMarker'](_0x454bec['name']);break;}}}}if(0x0==_0x27314d['length'])return null;const _0x5f0d2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x375465,'join');for(const _0x44e421 of this['getSuggestions']()){const _0x57f722=_0x44e421['data'];if(_0x44e421['author']['id']==_0x56cabb['id']&&('formatBlock'==_0x44e421['type']&&_0x57f722['formatGroupId']==_0x2c868c['formatGroupId']&&_0x44e421['subType']==_0x375465&&zt(_0x44e421,_0x41da44)&&(_0x5f0d2b(_0x44e421['getRanges'](),_0x27314d)||_0x5f0d2b(_0x27314d,_0x44e421['getRanges']())))){for(const _0x199aa1 of _0x27314d)_0x44e421['addRange'](_0x199aa1);return _0x44e421;}}const _0x31d8a5=_0x3c1805(),_0x543954=_0x56cabb['id'],_0x1fa41c='formatBlock:'+_0x375465,_0x181da5=this['_setSuggestionData']({'id':_0x31d8a5,'type':_0x1fa41c,'data':_0x2c868c,'createdAt':new Date(),'authorId':_0x543954,'attributes':_0x41da44});for(const _0x1d34f7 of _0x27314d)this['_addSuggestionMarker'](_0x1fa41c,_0x31d8a5,_0x543954,_0x1d34f7,Suggestion['getMultiRangeId']());return _0x181da5;}['markDeletion'](_0x24766e,_0x401876=null,_0x43dc82={}){if(_0x24766e['isCollapsed'])return null;const _0x395b50=this['editor']['plugins']['get']('Users')['me'],_0x3c90ff=new _0x39b3ef(_0x24766e['start'],_0x24766e['end']);this['_trackingSessionId']&&(_0x43dc82['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x59ed1b,meta:_0x2e6fc4}of this['_findSuggestions'](_0x3c90ff,'insertion'))if(_0x2e6fc4['isOwn']&&!_0x2e6fc4['isNextTo']){if(_0x59ed1b['isMultiRange']){const _0x40e6d7=_0x59ed1b['getRanges']()['filter'](_0x2216ff=>'$graveyard'!=_0x2216ff['root']['rootName']);_0x40e6d7['every'](_0x43a05d=>_0x3c90ff['containsRange'](_0x43a05d,!0x0))&&_0x59ed1b['discard']();if(_0x40e6d7['some'](_0x4236b1=>_0x4236b1['containsRange'](_0x3c90ff,!0x0))){const _0x1076a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x401876,'accept');return this['forceDefaultExecution'](()=>_0x1076a5([_0x3c90ff],null,_0x43dc82)),null;}}else{const _0x3aebd1=_0x3c90ff['getIntersection'](_0x59ed1b['getFirstRange']());null!==_0x3aebd1&&_0x59ed1b['_onDiscard']([_0x3aebd1],null,_0x43dc82);}}if(_0x3c90ff['detach'](),_0x3c90ff['isCollapsed']||'$graveyard'==_0x3c90ff['root']['rootName'])return null;let _0x5792a4=null,_0x14ea67=_0x3c90ff['start'],_0x3cdf76=_0x3c90ff['end'];const _0x21acda=this['_findSuggestions'](_0x3c90ff,'deletion');for(const {suggestion:_0x5b6b56,meta:_0x328eff}of _0x21acda){const _0x188b38=this['_model']['createRange'](_0x14ea67,_0x3cdf76);if(_0x328eff['isOwn']&&(this['_mergeNestedSuggestions']||!_0x328eff['containsRangeInObject']&&!_0x328eff['isInsideObject'])){if(_0x5b6b56['isMultiRange']){if(!zt(_0x5b6b56,_0x43dc82))continue;let _0x35db52=!0x0;for(const _0x33cfcb of _0x5b6b56['getRanges']()){if(_0x33cfcb['containsRange'](_0x188b38,!0x0))return _0x5b6b56;_0x188b38['containsRange'](_0x33cfcb)||(_0x35db52=!0x1);}_0x35db52&&_0x5b6b56['discard']();}else{const _0x27f098=_0x5b6b56['getFirstRange']();if(_0x27f098['containsRange'](_0x188b38,!0x0))return _0x5b6b56;if(!zt(_0x5b6b56,_0x43dc82)){_0x188b38['containsRange'](_0x27f098)?_0x5b6b56['removeMarkers']():_0x27f098['containsPosition'](_0x14ea67)?_0x14ea67=_0x27f098['end']:_0x27f098['containsPosition'](_0x3cdf76)&&(_0x3cdf76=_0x27f098['start']);continue;}_0x14ea67=_0x14ea67['isBefore'](_0x27f098['start'])?_0x14ea67:_0x27f098['start'],_0x3cdf76=_0x3cdf76['isAfter'](_0x27f098['end'])?_0x3cdf76:_0x27f098['end'],_0x43dc82=Object['assign']({},_0x5b6b56['attributes']),_0x5792a4?_0x27f098['start']['isBefore'](_0x5792a4['getFirstRange']()['start'])?(_0x5792a4['removeMarkers'](),_0x5792a4=_0x5b6b56):_0x5b6b56['removeMarkers']():_0x5792a4=_0x5b6b56;}}}if(_0x5792a4)return this['_setSuggestionRange'](_0x5792a4,this['_model']['createRange'](_0x14ea67,_0x3cdf76)),_0x5792a4;{const _0x2bfc0e=_0x3c1805(),_0x2e5a1c=this['_model']['createRange'](_0x14ea67,_0x3cdf76),_0x1994e4=_0x395b50['id'],_0x4fad5f=_0x401876?'deletion:'+_0x401876:'deletion',_0x5cb999=this['_setSuggestionData']({'id':_0x2bfc0e,'type':_0x4fad5f,'createdAt':new Date(),'authorId':_0x1994e4,'attributes':_0x43dc82});return this['_addSuggestionMarker'](_0x4fad5f,_0x2bfc0e,_0x1994e4,_0x2e5a1c),_0x5cb999;}}['markMultiRangeDeletion'](_0x4619f6,_0x123ee6='multi',_0x361e36={}){const _0x5f22b4=this['editor']['plugins']['get']('Users')['me'],_0xa625e5=_0x4619f6['map'](_0x2b224b=>new _0x39b3ef(_0x2b224b['start'],_0x2b224b['end'])),_0x1d4833=new Set();this['_trackingSessionId']&&(_0x361e36['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d6285,meta:_0x54cdaf}of this['_findSuggestions'](_0xa625e5,'insertion'))_0x54cdaf['isOwn']&&!_0x54cdaf['isNextTo']&&_0x1d4833['add'](_0x4d6285);for(const _0x1852e5 of _0x1d4833)if(_0x1852e5['isMultiRange']){const _0xcb46af=_0x1852e5['getRanges']();(!_0x1852e5['attributes']||!_0x1852e5['attributes']['skipNestingCheck'])&&(_0xcb46af['every'](_0x182f58=>_0xa625e5['some'](_0x56620c=>_0x56620c['containsRange'](_0x182f58,!0x0)))&&_0x1852e5['discard']());if(_0xa625e5['every'](_0x4f10e5=>_0xcb46af['some'](_0x225f49=>_0x225f49['containsRange'](_0x4f10e5,!0x0)))){const _0x329100=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123ee6,'accept');return this['forceDefaultExecution'](()=>_0x329100(_0x4619f6,null,_0x361e36)),null;}}else{const _0x1b0e6b=_0x1852e5['getFirstRange']();_0xa625e5['some'](_0x38e680=>_0x38e680['containsRange'](_0x1b0e6b,!0x0))&&_0x1852e5['discard']();if(_0xa625e5['every'](_0x1deb98=>_0x1b0e6b['containsRange'](_0x1deb98,!0x0))){const _0x590d66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123ee6,'accept');return this['forceDefaultExecution'](()=>_0x590d66(_0xa625e5,null,_0x361e36)),null;}}const _0x24931c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123ee6,'join');let _0x320152=null;for(const _0x23e7f3 of this['getSuggestions']())if(_0x23e7f3['author']['id']==_0x5f22b4['id']&&_0x23e7f3['isInContent']&&'deletion'==_0x23e7f3['type']&&_0x23e7f3['subType']==_0x123ee6&&zt(_0x23e7f3,_0x361e36)&&(_0x24931c(_0x23e7f3['getRanges'](),_0xa625e5)||_0x24931c(_0xa625e5,_0x23e7f3['getRanges']()))){if(_0x320152){if(_0x23e7f3['commentThread']&&_0x23e7f3['commentThread']['length'])continue;for(const _0x32885f of _0x23e7f3['getRanges']())_0x320152['isIntersectingWithRange'](_0x32885f)||_0x320152['addRange'](_0x32885f);_0x23e7f3['removeMarkers']();}else{_0x320152=_0x23e7f3;for(const _0x52b24d of _0xa625e5)_0x23e7f3['isIntersectingWithRange'](_0x52b24d)||_0x23e7f3['addRange'](_0x52b24d);}}if(_0x320152)return _0x320152;_0x1d4833['clear']();for(const {suggestion:_0x35b1c0,meta:_0x1b325e}of this['_findSuggestions'](_0xa625e5,'deletion'))_0x1b325e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b325e['containsRangeInObject']&&!_0x1b325e['isInsideObject'])&&zt(_0x35b1c0,_0x361e36)&&_0x1d4833['add'](_0x35b1c0);for(const _0xf61a2d of _0x1d4833){const _0x5b743c=_0xf61a2d['getRanges']();if(!_0x361e36||!_0x361e36['skipNestingCheck']){if(_0xa625e5['every'](_0x99b3e=>_0x5b743c['some'](_0x24c84f=>_0x24c84f['containsRange'](_0x99b3e,!0x0))))return _0xf61a2d;}(!_0xf61a2d['attributes']||!_0xf61a2d['attributes']['skipNestingCheck'])&&(_0x5b743c['every'](_0x2f817c=>_0xa625e5['some'](_0x2379cd=>_0x2379cd['containsRange'](_0x2f817c,!0x0)))&&_0xf61a2d['discard']());}const _0x31027a=_0x3c1805(),_0x17622b=_0x5f22b4['id'],_0x364a44='deletion:'+_0x123ee6,_0x59b334=this['_setSuggestionData']({'id':_0x31027a,'type':_0x364a44,'createdAt':new Date(),'authorId':_0x17622b,'attributes':_0x361e36});for(const _0x4a88ae of _0xa625e5)_0x4a88ae['detach'](),_0x4a88ae['isCollapsed']||'$graveyard'==_0x4a88ae['root']['rootName']||this['_addSuggestionMarker'](_0x364a44,_0x31027a,_0x17622b,_0x4a88ae,Suggestion['getMultiRangeId']());return _0x59b334;}['markAttributeChange'](_0xdaec6d,_0x237078,_0x191770,_0x3de853,_0x5d075b){if(_0xdaec6d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e8864=this['editor']['plugins']['get']('Users')['me']['id'],_0x43e5f2=Array['from'](this['_suggestions']['values']())['filter'](_0x2b5072=>'attribute'==_0x2b5072['type']&&_0x2b5072['data']['key']==_0x237078&&_0x2b5072['isIntersectingWithRange'](_0xdaec6d));if(this['_trackingSessionId']&&(_0x5d075b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2729b6=this['_findSuggestions'](_0xdaec6d,'insertion')['filter'](({meta:_0x254c3f})=>_0x254c3f['isOwn']&&!_0x254c3f['isInsideObject']&&!_0x254c3f['isNextTo'])['map'](({suggestion:_0x393ff3})=>_0x393ff3);_0x43e5f2['unshift'](..._0x2729b6);}const _0x517abc=new Map([[_0xdaec6d,_0x191770]]);for(const _0x1e5eeb of _0x43e5f2){const _0x1e4bbb='attribute'==_0x1e5eeb['type']?_0x1e5eeb['data']['oldValue']:void 0x0,_0x1cf6f8=_0x1e5eeb['getFirstRange'](),_0x593f4d=Array['from'](_0x517abc['keys']())['find'](_0x1fbe2e=>_0x1fbe2e['isIntersecting'](_0x1cf6f8));if(!_0x593f4d)continue;const _0x1c39c0=_0x593f4d['getDifference'](_0x1cf6f8);this['_suggestionsConversion']['isBlockAttribute'](_0x237078)&&'insertion'==_0x1e5eeb['type']&&0x0!=_0x1c39c0['length']||(_0x517abc['delete'](_0x593f4d),_0x1c39c0['forEach'](_0x305e64=>{_0x517abc['set'](_0x305e64,_0x191770);}),'insertion'!=_0x1e5eeb['type']&&_0x1e4bbb!=_0x3de853&&_0x517abc['set'](_0x593f4d['getIntersection'](_0x1cf6f8),_0x1e4bbb));}const _0x32f529=[];for(const [_0xe29def,_0x2081d4]of _0x517abc){const _0x546739=_0x3c1805(),_0x3f7c88={'key':_0x237078,'oldValue':_0x2081d4,'newValue':_0x3de853};_0x237078['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':_0x237078});const _0x4cb58f=('attribute:'+(_0x237078+'|'+xt({'newValue':_0x3de853})))['substring'](0x0,0x3c),_0x588275=this['_setSuggestionData']({'id':_0x546739,'type':_0x4cb58f,'data':_0x3f7c88,'createdAt':new Date(),'authorId':_0x1e8864,'attributes':_0x5d075b});_0x32f529['push'](_0x588275),this['_addSuggestionMarker'](_0x4cb58f,_0x546739,_0x1e8864,_0xe29def);}return _0x32f529;}['enableDefaultAttributesIntegration'](_0x5b4bc8){this['enableCommand'](_0x5b4bc8,(_0x2af4dd,..._0x54d31d)=>{this['recordAttributeChanges'](()=>{_0x2af4dd(..._0x54d31d);});});}['startTrackingSession'](_0x39545d){return this['_trackingSessionId']=void 0x0!==_0x39545d?_0x39545d:_0x3c1805(),this['_trackingSessionId'];}['_getAttributeKey'](_0x11f92d){return'attribute'==_0x11f92d['type']?Xt(_0x11f92d['subType']):null;}['_applyOperationsAsSuggestions'](_0x1b87e7){if(0x0==_0x1b87e7['length'])return;const _0x3869ee=this['editor'],_0x4fadf0=_0x3869ee['plugins']['get'](_0x474491),_0x577086=[];_0x3869ee['model']['change'](_0x5c694e=>{for(let _0x2cfa69=0x0;_0x2cfa69<_0x1b87e7['length'];_0x2cfa69++){const _0x3ee416=_0x1b87e7[_0x2cfa69];if(_0x3ee416['baseVersion']=_0x3869ee['model']['document']['version'],_0x3ee416['isDocumentOperation']=!0x0,_0x4fadf0['isMarkedRemoveOperation'](_0x3ee416)){const _0x4118fa=_0x9cb02(_0x3ee416['newRange'],_0x3869ee['model']);_0x577086['unshift'](_0x39b3ef['fromRange'](_0x4118fa));}else switch(_0x3ee416['type']){case'rename':{const _0x3afc61=_0x3ee416['oldName'],_0x235a0b=_0x3ee416['newName'];if(_0x3afc61==_0x235a0b)break;_0x5c694e['batch']['addOperation'](_0x3ee416),_0x3869ee['model']['applyOperation'](_0x3ee416);const _0x5e6c65='$elementName',_0x290e04=_0x3ee416['position'],_0x2f9e46=_0x3869ee['model']['createRange'](_0x290e04,_0x3869ee['model']['createPositionAt'](_0x290e04['nodeAfter'],'end'));this['markAttributeChange'](_0x2f9e46,_0x5e6c65,_0x3afc61,_0x235a0b,{'groupId':_0x3c1805()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x35ceec=_0x3ee416['oldValue'],_0x44c4f8=_0x3ee416['newValue'];if(_0x35ceec==_0x44c4f8)break;_0x5c694e['batch']['addOperation'](_0x3ee416),_0x3869ee['model']['applyOperation'](_0x3ee416);const _0x4d34e6=_0x3ee416['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4d34e6))break;const _0x29b43f=_0x9cb02(_0x3ee416['range'],_0x3869ee['model']);this['markAttributeChange'](_0x29b43f,_0x4d34e6,_0x35ceec,_0x44c4f8,{'groupId':_0x3c1805()});break;}case'insert':{_0x5c694e['batch']['addOperation'](_0x3ee416),_0x3869ee['model']['applyOperation'](_0x3ee416);if(_0x1b87e7[_0x2cfa69+0x1]&&'move'==_0x1b87e7[_0x2cfa69+0x1]['type'])break;const _0x2fe55f=_0x3ee416['position'],_0x5630a5=_0x3ee416['howMany'],_0x1acb71=_0x9cb02(_0x3869ee['model']['createRange'](_0x2fe55f,_0x2fe55f['getShiftedBy'](_0x5630a5)),_0x3869ee['model']);this['markInsertion'](_0x1acb71);break;}case'split':{_0x5c694e['batch']['addOperation'](_0x3ee416),_0x3869ee['model']['applyOperation'](_0x3ee416);const _0x11a7bd=_0x3ee416['splitPosition'],_0x59222e=_0x3ee416['moveTargetPosition'];this['markInsertion'](_0x3869ee['model']['createRange'](_0x11a7bd,_0x59222e));break;}case'move':case'remove':_0x5c694e['batch']['addOperation'](_0x3ee416),_0x3869ee['model']['applyOperation'](_0x3ee416);}}for(const _0x331c72 of _0x577086)_0x331c72['detach'](),this['markDeletion'](_0x331c72);});}['_setSuggestionRange'](_0x50a2d4,_0x4c06df){const _0x2aadc8=_0x50a2d4['getFirstMarker']();this['_model']['change'](_0x2eb416=>{_0x2eb416['updateMarker'](_0x2aadc8,{'range':_0x4c06df});});}['_addThreadToSuggestion'](_0x479fbe){const _0x2938a4=_0x479fbe['id'],_0x4f2187=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2938a4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f2187,'threadId':_0x2938a4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e1e66=this['_commentsRepository']['getCommentThread'](_0x2938a4);_0x4e1e66['unbind']('isRemovable'),_0x4e1e66['isRemovable']=!0x1,_0x479fbe['commentThread']=_0x4e1e66;}['_checkSuggestionCorrectness'](_0x26b4e2,_0x1d1bcc,_0x3f5e38,_0xef7184){if(_0x26b4e2['type']!=_0x1d1bcc||_0x26b4e2['subType']!=_0x3f5e38||_0x26b4e2['creator']['id']!=_0xef7184)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x423517('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x17c898,_0x3cbc82){const _0x1ed0ff=_0x17c898['getFirstRange']();if(_0x3cbc82['isEqual'](_0x1ed0ff))_0x17c898['removeMarkers']();else{if(_0x1ed0ff['containsRange'](_0x3cbc82)){const _0x11bba9=this['_model']['createPositionAt'](_0x3cbc82['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17c898,this['_model']['createRange'](_0x1ed0ff['start'],_0x11bba9));const _0x38e5a7=_0x3c1805(),_0x4fd956=_0x17c898['creator']['id'],_0x424a11=_0x17c898['type']+':'+_0x17c898['subType'];this['_setSuggestionData']({'id':_0x38e5a7,'type':_0x424a11,'createdAt':new Date(),'authorId':_0x4fd956,'data':_0x17c898['data'],'attributes':_0x17c898['attributes']});const _0x44e691=this['_model']['createPositionAt'](_0x3cbc82['end']['parent'],'after'),_0x1cee1b=this['_model']['createRange'](_0x44e691,_0x1ed0ff['end']);this['_addSuggestionMarker'](_0x424a11,_0x38e5a7,_0x4fd956,_0x1cee1b);}else{if(_0x1ed0ff['containsPosition'](_0x3cbc82['start'])){const _0x104ade=this['_model']['createPositionAt'](_0x3cbc82['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17c898,this['_model']['createRange'](_0x1ed0ff['start'],_0x104ade));}else{const _0x5967db=this['_model']['createPositionAt'](_0x3cbc82['end']['parent'],'after');this['_setSuggestionRange'](_0x17c898,this['_model']['createRange'](_0x5967db,_0x1ed0ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5899bb){for(const {suggestion:_0x1111d1,meta:_0xcb4056}of this['_findSuggestions'](_0x5899bb,'insertion')){if(!_0xcb4056['isOwn'])continue;const _0x12c36e=_0x1111d1['getRanges']();for(const _0x5b80d6 of _0x12c36e)if(!_0x5899bb['getDifference'](_0x5b80d6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ad242){return this['editor']['plugins']['get']('Users')['getUser'](_0x3ad242);}['_getExternalAuthor'](_0xc80a7f){const _0x164897=this['editor']['plugins']['get']('Users'),_0x3e56a7=_0x392215('external:'+_0xc80a7f),_0x3bc52a=_0x164897['getUser'](_0x3e56a7);return _0x3bc52a||_0x164897['addUser']({'id':_0x3e56a7,'name':_0xc80a7f});}['_createSuggestion'](_0x4d9306,_0x49e7a9,_0x598983,_0x292687,_0x4dbfcc,_0x11320d){const _0x374a45=this['_getAuthorFromId'](_0x292687);if(!_0x374a45)throw new _0x423517('track-changes-user-not-found',this,{'authorId':_0x292687,'suggestionId':_0x598983});const _0x550fdb=this['_suggestionFactory']['buildSuggestion'](_0x4d9306,_0x49e7a9,_0x598983,_0x374a45,_0x4dbfcc,_0x456697=>{this['_updateSuggestionData'](_0x598983,{'attributes':_0x456697});const _0x2b8d2b=this['getSuggestion'](_0x598983);this['_joinWithAdjacentSuggestions'](new Set([_0x2b8d2b])),this['_refreshSuggestionsChain'](new Set([_0x2b8d2b]));},_0x11320d);return this['listenTo'](_0x550fdb,'accept',()=>{this['_updateSuggestionData'](_0x598983,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x550fdb,'discard',()=>{this['_updateSuggestionData'](_0x598983,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x598983,_0x550fdb),this['_suggestionState']['set'](_0x550fdb,'notReady'),_0x550fdb;}['_breakSuggestionMarker'](_0x231e54,_0x421f90,_0x32081b){const _0x179a14=_0x231e54['getFirstRange'](),_0x43819b=_0x179a14['start'],_0x19a616=_0x179a14['end'];this['_setSuggestionRange'](_0x231e54,this['_model']['createRange'](_0x43819b,_0x421f90));const _0x10ff04=_0x3c1805(),_0x526f0a=_0x231e54['creator']['id'],_0x1e4f22=_0x231e54['type']+(_0x231e54['subType']?':'+_0x231e54['subType']:'');this['_setSuggestionData']({'id':_0x10ff04,'type':_0x1e4f22,'createdAt':new Date(),'authorId':_0x526f0a,'originalSuggestionId':_0x231e54['_originalSuggestionId']||_0x231e54['id'],'attributes':_0x231e54['attributes'],'data':_0x231e54['data']});const _0x57f3e3=this['_getAttributeKey'](_0x231e54);('formatBlock'==_0x231e54['type']||_0x57f3e3&&this['_suggestionsConversion']['isBlockAttribute'](_0x57f3e3))&&(_0x32081b=this['_model']['createPositionBefore'](_0x32081b['parent'])),this['_addSuggestionMarker'](_0x1e4f22,_0x10ff04,_0x526f0a,this['_model']['createRange'](_0x32081b,_0x19a616));}['_findSuggestions'](_0x189ee7,_0x1631b5=null){const _0x59b4f1=[],_0x293ce4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x189ee7)||(_0x189ee7=[_0x189ee7]);for(const _0x46c1dc of this['getSuggestions']()){if(!_0x46c1dc['isInContent'])continue;if(_0x1631b5&&_0x46c1dc['type']!=_0x1631b5)continue;let _0x415a86=!0x1;for(const _0x19a3ec of _0x46c1dc['getRanges']()){for(const _0x45c3ae of _0x189ee7){const _0x115804=_0x45c3ae['start']['isEqual'](_0x19a3ec['end'])||_0x45c3ae['end']['isEqual'](_0x19a3ec['start']);if(_0x115804||_0x45c3ae['getIntersection'](_0x19a3ec)){const _0x2216a3=_0x45c3ae['containsRange'](_0x19a3ec)&&Dt(this['_model']['schema'],_0x19a3ec['start'],_0x45c3ae),_0x565600=_0x19a3ec['containsRange'](_0x45c3ae)&&Dt(this['_model']['schema'],_0x45c3ae['start'],_0x19a3ec);_0x59b4f1['push']({'suggestion':_0x46c1dc,'meta':{'isOwn':_0x293ce4==_0x46c1dc['author'],'isNextTo':_0x115804,'isInsideObject':_0x2216a3,'containsRangeInObject':_0x565600}}),_0x415a86=!0x0;break;}}if(_0x415a86)break;}}return _0x59b4f1;}['_addSuggestionMarker'](_0x4ce311,_0x2de086,_0x2d7fe9,_0xd0ddb,_0x536656){this['_model']['change'](_0x4f0956=>{let _0x1f1551='suggestion:'+_0x4ce311+':'+_0x2de086+':'+_0x2d7fe9;_0x536656&&(_0x1f1551=_0x1f1551+':'+_0x536656),_0x4f0956['addMarker'](_0x1f1551,{'range':_0xd0ddb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x260c57){const _0x7f7e75=_0x260c57['previous'],_0x288574=_0x260c57['next'];_0x260c57['previous']=null,_0x260c57['next']=null,null!=_0x7f7e75&&_0x7f7e75['next']==_0x260c57&&(_0x7f7e75['next']=_0x288574),null!=_0x288574&&_0x288574['previous']==_0x260c57&&(_0x288574['previous']=_0x7f7e75),'ready'==this['_suggestionState']['get'](_0x260c57)&&(this['_suggestionState']['set'](_0x260c57,'removed'),this['fire']('suggestionUnloaded',_0x260c57,_0x7f7e75,_0x288574));}['_setSuggestionData'](_0x42aa36){const _0x309228=_0x42aa36['id'],_0x186797=this['addSuggestionData'](_0x42aa36);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f0852=this['editor']['plugins']['get']('PendingActions'),_0x2fef84=_0x186797['hasComments'],_0x3d4846=_0x186797['subType']?_0x186797['type']+':'+_0x186797['subType']:_0x186797['type'],_0x2e79f9=this['editor']['locale'],_0x3231c7=_0x2f0852['add'](Tt(_0x2e79f9,'PENDING_ACTION_SUGGESTION')),_0x25836e={'id':_0x309228,'type':_0x3d4846,'hasComments':_0x2fef84,'data':_0x42aa36['data']||null,'originalSuggestionId':_0x42aa36['originalSuggestionId']||null,'attributes':_0x186797['attributes']};this['_adapter']['addSuggestion'](_0x25836e)['then'](_0x91a618=>{_0x186797['_saved']=!0x0,_0x2f0852['remove'](_0x3231c7),_0x91a618&&_0x91a618['createdAt']&&(this['_suggestions']['get'](_0x309228)['createdAt']=_0x91a618['createdAt']);})['catch'](_0x106e3c=>{throw _0x378d01('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x186797['discard']();}),_0x186797['stopListening'](),this['_suggestions']['delete'](_0x186797['id']),this['_suggestionState']['delete'](_0x186797),_0x106e3c;});}return _0x186797;}['_updateSuggestionData'](_0x100dfa,_0xd128de){const _0x225fd1=this['editor']['plugins']['get']('PendingActions'),_0x2a207f=this['getSuggestion'](_0x100dfa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2a207f['_saved']){const _0x28e9c7=_0x225fd1['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x100dfa,_0xd128de)['then'](()=>{_0x225fd1['remove'](_0x28e9c7);});}else _0x2a207f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x100dfa,_0xd128de);});}}['_getSuggestionData'](_0x101ed5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x423517('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x101ed5);}['_handleNewSuggestionMarker'](_0x5d7f4d){const {id:_0x2891b8,type:_0x2a459e,subType:_0x56927b,authorId:_0x228bf7}=_0x46f456(_0x5d7f4d),_0x4b1e8a=this['_suggestions']['get'](_0x2891b8)||this['_createSuggestion'](_0x2a459e,_0x56927b,_0x2891b8,_0x228bf7,{});switch(this['_checkSuggestionCorrectness'](_0x4b1e8a,_0x2a459e,_0x56927b,_0x228bf7),this['_suggestionState']['get'](_0x4b1e8a)){case'notReady':this['_getSuggestionData'](_0x2891b8)['then'](_0x53b4fd=>{let _0x578d7d=Promise['resolve']();_0x53b4fd['hasComments']&&(_0x578d7d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2891b8})),_0x578d7d['then'](()=>{this['addSuggestionData'](_0x53b4fd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b1e8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2891b8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b1e8a,'ready'),this['fire']('suggestionLoaded',_0x4b1e8a);break;case'ready':this['fire']('suggestionChanged',_0x4b1e8a);}return _0x4b1e8a['addMarkerName'](_0x5d7f4d),_0x4b1e8a;}['_refreshSuggestionsChain'](_0x1817dc){const _0x44320e=Array['from'](_0x1817dc),_0x431254=_0x44320e['filter'](_0x441ac4=>'attribute'==_0x441ac4['type']);this['_refreshAttributeSuggestionsChain'](_0x431254);const _0x52a915=_0x44320e['filter'](_0x57d2b9=>!_0x57d2b9['isMultiRange']&&'attribute'!=_0x57d2b9['type']),_0x57f119=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a7d68=>!_0x2a7d68['isMultiRange']&&'attribute'!=_0x2a7d68['type']),_0x1ffe8c=_0x57f119['filter'](_0x48ef1e=>!_0x1817dc['has'](_0x48ef1e)),_0x5a67f9=new Map(_0x57f119['map'](_0x5055a1=>[_0x5055a1,this['_suggestionFactory']['getSuggestionCallback'](_0x5055a1['type'],_0x5055a1['subType'],'chain')])),_0x4d7ef9=new Map(_0x57f119['map'](_0x1a1843=>[_0x1a1843,_0x1a1843['getFirstRange']()])),_0x4b46e5=new Set(),_0x361d05=new Set();for(let _0x1649f3=0x0;_0x1649f3<_0x52a915['length'];_0x1649f3++)_0x352365(_0x52a915[_0x1649f3],_0x52a915,_0x1649f3+0x1);for(let _0x2a3eb3=0x0;_0x2a3eb3<_0x52a915['length'];_0x2a3eb3++)_0x352365(_0x52a915[_0x2a3eb3],_0x1ffe8c,0x0);const _0x4d9c1f=new Set();for(let _0x4e128b=0x0;_0x4e128b<_0x52a915['length'];_0x4e128b++){const _0x51343f=_0x52a915[_0x4e128b];!_0x361d05['has'](_0x51343f)&&_0x51343f['previous']&&(_0x4d9c1f['add'](_0x51343f['previous']),_0x51343f['previous']['next']===_0x51343f&&(_0x51343f['previous']['next']=null),_0x51343f['previous']=null),!_0x4b46e5['has'](_0x51343f)&&_0x51343f['next']&&(_0x4d9c1f['add'](_0x51343f['next']),_0x51343f['next']['previous']===_0x51343f&&(_0x51343f['next']['previous']=null),_0x51343f['next']=null);}function _0x352365(_0x38103c,_0x53a274,_0xc38cee){for(let _0x57a00a=_0xc38cee;_0x57a00a<_0x53a274['length'];_0x57a00a++){const _0x50947c=_0x300ce1(_0x38103c,_0x53a274[_0x57a00a]);_0x50947c&&(_0x50947c[0x0]['next']=_0x50947c[0x1],_0x50947c[0x1]['previous']=_0x50947c[0x0],_0x4b46e5['add'](_0x50947c[0x0]),_0x361d05['add'](_0x50947c[0x1]));}}function _0x300ce1(_0x18743c,_0x27b3a5){if(_0x18743c['author']['id']!==_0x27b3a5['author']['id'])return null;const _0x3db90b=_0x5a67f9['get'](_0x18743c)(_0x18743c,_0x27b3a5,_0x4d7ef9['get'](_0x18743c),_0x4d7ef9['get'](_0x27b3a5));if(!_0x3db90b)return null;return _0x5a67f9['get'](_0x27b3a5)(_0x18743c,_0x27b3a5,_0x4d7ef9['get'](_0x18743c),_0x4d7ef9['get'](_0x27b3a5))?_0x3db90b[0x1]['commentThread']&&_0x3db90b[0x1]['commentThread']['length']?null:_0x3db90b:null;}_0x4d9c1f['size']&&this['_refreshSuggestionsChain'](_0x4d9c1f);}['_refreshAttributeSuggestionsChain'](_0xcd7b71){if(0x0==_0xcd7b71['length'])return;const _0xaf207e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41332d=>'attribute'==_0x41332d['type']&&_0x41332d['_isDataLoaded']),_0x44e06d=[],_0x46e8fa=new Map();for(const _0x49dfd2 of _0xaf207e){const _0x38b284=_0x392215(_0x49dfd2['attributes']);_0x46e8fa['has'](_0x38b284)||(_0x46e8fa['set'](_0x38b284,_0x44e06d['length']),_0x44e06d['push']([]));const _0x533133=_0x46e8fa['get'](_0x38b284);_0x44e06d[_0x533133]['push'](_0x49dfd2);}!(function(){_0x44e06d['sort']((_0x318848,_0x44782c)=>{const _0x17c0af=_0x318848[0x0]['createdAt'],_0x1a4d5d=_0x44782c[0x0]['createdAt'];return _0x17c0af==_0x1a4d5d?_0x318848[0x0]['attributes']['groupId']<_0x44782c[0x0]['attributes']['groupId']?-0x1:0x1:_0x17c0af<_0x1a4d5d?-0x1:0x1;});for(const _0x4cb8bf of _0x44e06d)_0x4cb8bf['sort']((_0x53df18,_0x2f443b)=>_0x53df18['id']<_0x2f443b['id']?-0x1:0x1);}());for(let _0x98fd7e=0x0;_0x98fd7e<_0x44e06d['length'];_0x98fd7e++){if(0x0==_0x44e06d[_0x98fd7e]['length'])continue;const _0x37d676=[];for(let _0x7de98b=_0x98fd7e+0x1;_0x7de98b<_0x44e06d['length'];_0x7de98b++)0x0!=_0x44e06d[_0x7de98b]['length']&&_0x272abf(_0x44e06d[_0x98fd7e],_0x44e06d[_0x7de98b])&&_0x37d676['push'](_0x7de98b);for(const _0x57c44c of _0x37d676)_0x44e06d[_0x98fd7e]=_0x44e06d[_0x98fd7e]['concat'](_0x44e06d[_0x57c44c]),_0x44e06d[_0x57c44c]=[];}for(const _0x1f91be of _0x44e06d)for(let _0x197a4e=0x0;_0x197a4e<_0x1f91be['length'];_0x197a4e++){const _0x369f32=_0x1f91be[_0x197a4e+0x1]||null;_0x1f91be[_0x197a4e]['next']!==_0x369f32&&(_0x1f91be[_0x197a4e]['next']=_0x369f32);}for(const _0x147660 of _0x44e06d)for(let _0x128699=0x0;_0x128699<_0x147660['length'];_0x128699++){const _0x2b136c=_0x147660[_0x128699-0x1]||null;_0x147660[_0x128699]['previous']!==_0x2b136c&&(_0x147660[_0x128699]['previous']=_0x2b136c);}function _0x272abf(_0xe647e2,_0x1ebfa3){if(_0xe647e2[0x0]['attributes']['groupId']!==_0x1ebfa3[0x0]['attributes']['groupId']&&_0xe647e2[0x0]['author']!==_0x1ebfa3[0x0]['author'])return!0x1;if(!function(_0x803a8,_0x57045e){if(!_0x803a8['hasComments']&&!_0x57045e['hasComments'])return!0x0;if(_0x803a8['hasComments']&&_0x57045e['hasComments'])return!0x1;if(_0x803a8['hasComments']&&_0x57045e['createdAt']<_0x803a8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57045e['hasComments']&&_0x803a8['createdAt']<_0x57045e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe647e2[0x0],_0x1ebfa3[0x0]))return!0x1;const _0xbc08a3=ot(_0xe647e2[0x0]['attributes'],['groupId','trackingSessionId']),_0x5a4f13=ot(_0x1ebfa3[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0xbc08a3,_0x5a4f13))return!0x1;if(_0xe647e2[0x0]['attributes']['groupId']==_0x1ebfa3[0x0]['attributes']['groupId'])return!0x0;if(_0xe647e2[0x0]['attributes']['trackingSessionId']!==_0x1ebfa3[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe647e2['every'](_0x55e4f9=>_0x1ebfa3['some'](_0x361e02=>_0x55e4f9['getFirstRange']()['isEqual'](_0x361e02['getFirstRange']())))&&_0x1ebfa3['every'](_0xf0804e=>_0xe647e2['some'](_0x54295f=>_0xf0804e['getFirstRange']()['isEqual'](_0x54295f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x318994){const _0x1e7027=Array['from'](_0x318994),_0x13c287=this['getSuggestions']({'skipNotAttached':!0x0}),_0x447326=_0x13c287['filter'](_0x416d2e=>!_0x318994['has'](_0x416d2e)),_0x64074d=new Map(_0x1e7027['map'](_0x12da45=>[_0x12da45,this['_suggestionFactory']['getSuggestionCallback'](_0x12da45['type'],_0x12da45['subType'],'join')])),_0x2a7a25=new Map(_0x13c287['map'](_0xa4f5fd=>[_0xa4f5fd,_0xa4f5fd['getRanges']()]));for(let _0x1a0dd0=0x0;_0x1a0dd0<_0x1e7027['length'];_0x1a0dd0++){if(_0x34a3dc(this,_0x1e7027[_0x1a0dd0],_0x1e7027,_0x1a0dd0+0x1))return!0x0;}for(let _0x210844=0x0;_0x210844<_0x1e7027['length'];_0x210844++){if(_0x34a3dc(this,_0x1e7027[_0x210844],_0x447326,0x0))return!0x0;}return!0x1;function _0x34a3dc(_0x3e7521,_0x5a97c1,_0x4fb6c5,_0x5efa8c){for(let _0x3c23ea=_0x5efa8c;_0x3c23ea<_0x4fb6c5['length'];_0x3c23ea++){const _0x3e6b4a=_0x4fb6c5[_0x3c23ea];if(_0x3e6b4a['type']!==_0x5a97c1['type']||_0x3e6b4a['author']['id']!==_0x5a97c1['author']['id']||_0x3e6b4a['subType']!==_0x5a97c1['subType'])continue;if(!jt(_0x5a97c1,_0x3e6b4a))continue;if('attribute'==_0x5a97c1['type']&&_0x5a97c1['data']['oldValue']!=_0x3e6b4a['data']['oldValue'])continue;if('attribute'==_0x5a97c1['type']&&_0x3e7521['_suggestionsConversion']['isBlockAttribute'](_0x5a97c1['data']['key']))continue;if('formatBlock'==_0x5a97c1['type']){const _0x4729f6=_0x3e7521['editor']['model'],_0xd10afc=_0x5a97c1['getContainedElement']();if(_0xd10afc&&(_0x4729f6['schema']['isObject'](_0xd10afc)||_0x4729f6['schema']['isLimit'](_0xd10afc)))continue;}const _0x27f1a3=_0x64074d['get'](_0x5a97c1),_0x377b61=_0x2a7a25['get'](_0x5a97c1),_0x7ab36b=_0x2a7a25['get'](_0x3e6b4a),_0x3f535a=_0x5a97c1['commentThread']&&_0x5a97c1['commentThread']['length'],_0x1da70d=_0x3e6b4a['commentThread']&&_0x3e6b4a['commentThread']['length'];if(!_0x3f535a&&_0x27f1a3(_0x7ab36b,_0x377b61))return _0x3e7521['_joinSuggestions'](_0x3e6b4a,_0x5a97c1),_0x2a7a25['delete'](_0x5a97c1),!0x0;if(!_0x1da70d&&_0x27f1a3(_0x377b61,_0x7ab36b))return _0x3e7521['_joinSuggestions'](_0x5a97c1,_0x3e6b4a),_0x2a7a25['delete'](_0x3e6b4a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3f3ae1,_0x23c143){if(_0x3f3ae1['isMultiRange']){for(const _0x3b00da of _0x23c143['getRanges']())_0x3f3ae1['addRange'](_0x3b00da);}else{const _0x2abfa6=_0x23c143['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3f3ae1,this['_model']['createRange'](_0x3f3ae1['getFirstRange']()['start'],_0x2abfa6));}_0x23c143['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f24a,_0x44bd6d,_0x2a483c){const _0x108c4f=_0x5f24a['startsWith']('format')||_0x5f24a['startsWith']('attribute')?'FORMATTING':_0x5f24a['toUpperCase']();return Tt(this['editor']['locale'],_0x44bd6d+'_'+_0x108c4f+'_SUGGESTION_ANNOUNCEMENT',_0x2a483c);}['_initAriaMarkerChangeAnnouncements'](){const _0x34134e=this['editor'];if(!_0x34134e['ui'])return;const {ariaLiveAnnouncer:_0x1fd760}=_0x34134e['ui'];_0x32264c(this['_model'],({left:_0x269b73,entered:_0x3e9e32})=>{for(const _0x22d169 of _0x269b73){const {group:_0x24d166,type:_0x4d6074}=_0x46f456(_0x22d169['name']);if('suggestion'===_0x24d166){_0x1fd760['announce'](this['_getMarkerAnnouncementText'](_0x4d6074,'LEAVE'));break;}}for(const _0x1edc9f of _0x3e9e32){const {group:_0x269f3c,type:_0x41c8ed}=_0x46f456(_0x1edc9f['name']);if('suggestion'===_0x269f3c){_0x1fd760['announce'](this['_getMarkerAnnouncementText'](_0x41c8ed,'ENTER',_0x4761d9(_0x341235)));break;}}});}['_processAttributeChanges'](_0x33b6c5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x325cde=this['editor'],_0x2c4989=_0x325cde['model']['document']['differ']['getChanges']();if(0x0==_0x2c4989['length'])return!0x1;const _0x1780ff=[],_0x5b00d9=_0x2c4989['filter'](_0x4d46e9=>'attribute'==_0x4d46e9['type']),_0x3b621f=_0x2c4989['filter'](_0x499be5=>'insert'==_0x499be5['type']&&'$text'!=_0x499be5['name']),_0x5700bb=_0x2c4989['filter'](_0xba1324=>'remove'==_0xba1324['type']&&'$text'!=_0xba1324['name']);for(const _0x595ab7 of _0x5b00d9)_0x1780ff['push']({'key':_0x595ab7['attributeKey'],'newValue':_0x595ab7['attributeNewValue'],'oldValue':_0x595ab7['attributeOldValue'],'range':$t(_0x595ab7['range'],_0x325cde['model'])});for(const _0x3884da of _0x3b621f){const _0x28ba7c=_0x5700bb['find'](_0x9d66c6=>_0x9d66c6['position']['isEqual'](_0x3884da['position']));_0x28ba7c&&_0x1780ff['push']({'key':Bt,'newValue':_0x3884da['name'],'oldValue':_0x28ba7c['name'],'range':_0x325cde['model']['createRangeOn'](_0x3884da['position']['nodeAfter'])});}return 0x0!=_0x1780ff['length']&&this['_reduceExistingSuggestions'](_0x33b6c5,_0x1780ff);}['_processAttributeSuggestions'](_0x4919cd){let _0x3e5c07=!0x1;const _0x3072b5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e889a=>_0x2e889a['data']['newRange']&&_0x2e889a['name']['startsWith']('suggestion:attribute:'));for(const _0x9cea34 of _0x3072b5){const {subType:_0xb0bf16,id:_0x1868b3}=_0x46f456(_0x9cea34['name']),_0x2117b5=_0xb0bf16['split']('|')[0x0];for(const _0x4bb3e9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4bb3e9['id']!=_0x1868b3&&'attribute'==_0x4bb3e9['type']&&_0x4bb3e9['data']&&_0x4bb3e9['data']['key']==_0x2117b5&&_0x4bb3e9['getFirstRange']()['isIntersecting'](_0x9cea34['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4bb3e9,_0x9cea34['data']['newRange'],_0x4919cd),_0x3e5c07=!0x0);}return _0x3e5c07;}['recordAttributeChanges'](_0x55578e){this['_recordAttributeSuggestions']=!0x0,_0x55578e();}['_reduceExistingSuggestions'](_0x42d3e2,_0x178243){if(0x0==_0x178243['length'])return!0x1;let _0x5b2f87=!0x1;for(const _0xd34398 of _0x178243){const _0xf2494c=this['_findSuggestions'](_0xd34398['range'],'attribute')['filter'](_0x4effe2=>!_0x4effe2['meta']['isNextTo'])['map'](_0x56c0fe=>_0x56c0fe['suggestion']),_0x43808c=_0x392215({'newValue':_0xd34398['newValue']});_0xf2494c['filter'](_0x382ee2=>{const [_0x2ae019,_0xfda3a8]=_0x382ee2['subType']['split']('|');return _0x2ae019==_0xd34398['key']&&_0xfda3a8!=_0x43808c;})['forEach'](_0x2cffd3=>{this['_reduceSuggestionAttributeRange'](_0x2cffd3,_0xd34398['range'],_0x42d3e2),_0x5b2f87=!0x0;});}return _0x5b2f87;}['_reduceSuggestionAttributeRange'](_0x3cbdb9,_0x3937f9,_0x354aa0){const _0xa3dc4a=_0x3cbdb9['getFirstRange']()['getDifference'](_0x3937f9);0x0!==_0xa3dc4a['length']?0x1!==_0xa3dc4a['length']?this['_breakSuggestionMarker'](_0x3cbdb9,_0x3937f9['start'],_0x3937f9['end']):this['_setSuggestionRange'](_0x3cbdb9,_0xa3dc4a[0x0]):_0x354aa0['removeMarker'](_0x3cbdb9['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x430eeb){this['_editor']=_0x430eeb,this['_model']=_0x430eeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x409365,_0x36d7ce,_0x52b776,_0x32de70,_0x2a018a,_0x100d72,_0x24901b){return new Suggestion(this['_model'],{'type':_0x409365,'subType':_0x36d7ce,'id':_0x52b776,'originalSuggestionId':_0x24901b,'author':_0x32de70,'creator':_0x32de70,'attributes':_0x2a018a,'onAttributesChange':_0x100d72,'onAccept':(..._0x190890)=>this['getSuggestionCallback'](_0x409365,_0x36d7ce,'accept')(..._0x190890),'onDiscard':(..._0x2697af)=>this['getSuggestionCallback'](_0x409365,_0x36d7ce,'discard')(..._0x2697af)});}['registerCustomCallback'](_0x1a6960,_0x281f0c,_0x52eef9,_0x4f2b81){const _0x21e4cd=_0x1a6960+':'+_0x281f0c+':'+_0x52eef9;this['_customCallbacks']['set'](_0x21e4cd,_0x4f2b81);}['getSuggestionCallback'](_0x381165,_0x4e17db,_0x42dc99){const _0x259295=_0x381165+':'+_0x4e17db+':'+_0x42dc99;return this['_customCallbacks']['get'](_0x259295)||this['_defaultCallbacks']['get'](_0x381165+':'+_0x42dc99);}['_registerDefaultCallbacks'](){const _0x19a04d=()=>!0x1,_0x366e0e=_0x5705bc=>{_0x5705bc['sort']((_0x3405a6,_0xba9ab2)=>_0x3405a6['start']['isBefore'](_0xba9ab2['start'])?0x1:-0x1),this['_model']['change'](_0x352f88=>{for(const _0x55946f of _0x5705bc){let _0x3349ae;_0x3349ae=_0x55946f['end']['isAtEnd']&&_0x55946f['end']['parent']==_0x55946f['start']['nodeAfter']?_0x352f88['createSelection'](_0x55946f['start']['nodeAfter'],'on'):_0x352f88['createSelection'](_0x55946f),this['_model']['deleteContent'](_0x3349ae,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x63023a=(_0x3fd731,_0x414699)=>{_0x414699&&this['_model']['change'](_0x3be3d0=>{const {commandName:_0x5752e3,commandParams:_0x4133d1=[]}=_0x414699,_0x40fd0c=_0x3fd731['map'](_0x5296f3=>(vt(_0x5296f3)&&(_0x5296f3=this['_model']['createRange'](_0x5296f3['end'])),_0x5296f3))['filter'](_0x58efb8=>'$graveyard'!==_0x58efb8['root']['rootName']);if(_0x40fd0c['length']<0x1)return;const _0x50d799=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b068c=>_0x39b3ef['fromRange'](_0x1b068c));_0x3be3d0['setSelection'](_0x40fd0c);for(const _0xdc147f of this['_editor']['commands']['commands']())_0xdc147f['refresh']();_0x4133d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5752e3,..._0x4133d1);const _0xeab1e2=_0x50d799['filter'](_0x481615=>'$graveyard'!=_0x481615['root']['rootName']);_0xeab1e2['length']>0x0&&_0x3be3d0['setSelection'](_0xeab1e2);for(const _0x488ad2 of _0x50d799)_0x488ad2['detach']();});},_0x4fd364=(_0x17da09,_0xb3747a)=>0x1==_0x17da09['length']&&0x1==_0xb3747a['length']&&_0x17da09[0x0]['end']['isEqual'](_0xb3747a[0x0]['start']),_0x19fe93=(_0x1ccc0e,_0x1347f4,_0x3db2aa,_0x45c887)=>Wt(_0x1ccc0e,_0x1347f4,_0x3db2aa,_0x45c887)?[_0x1ccc0e,_0x1347f4]:Wt(_0x1347f4,_0x1ccc0e,_0x45c887,_0x3db2aa)?[_0x1347f4,_0x1ccc0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19a04d),this['_defaultCallbacks']['set']('insertion:discard',_0x366e0e),this['_defaultCallbacks']['set']('insertion:join',_0x4fd364),this['_defaultCallbacks']['set']('insertion:chain',_0x19fe93),this['_defaultCallbacks']['set']('deletion:accept',_0x366e0e),this['_defaultCallbacks']['set']('deletion:discard',_0x19a04d),this['_defaultCallbacks']['set']('deletion:join',_0x4fd364),this['_defaultCallbacks']['set']('deletion:chain',_0x19fe93),this['_defaultCallbacks']['set']('formatInline:accept',_0x63023a),this['_defaultCallbacks']['set']('formatInline:discard',_0x19a04d),this['_defaultCallbacks']['set']('formatInline:join',_0x4fd364),this['_defaultCallbacks']['set']('formatInline:chain',_0x19a04d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x63023a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19a04d),this['_defaultCallbacks']['set']('formatBlock:join',_0x4fd364),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19a04d),this['_defaultCallbacks']['set']('attribute:accept',_0x19a04d),this['_defaultCallbacks']['set']('attribute:discard',(_0xefbc68,_0x579dbb)=>{if(!_0x579dbb)return;const _0x2e88e5=this['_editor']['plugins']['get'](_0x4f60bc);this['_model']['change'](_0x11d202=>{if(_0x579dbb['key']==Bt)for(const _0x4a8b47 of _0xefbc68){const _0xbe361f=_0x4a8b47['start']['nodeAfter'],_0x3d3336=_0x579dbb['oldValue'];_0x11d202['rename'](_0xbe361f,_0x3d3336);}else{if(_0x2e88e5['isBlockAttribute'](_0x579dbb['key'])){for(const _0x58b06f of _0xefbc68)void 0x0!==_0x579dbb['oldValue']?_0x11d202['setAttribute'](_0x579dbb['key'],_0x579dbb['oldValue'],_0x58b06f['start']['nodeAfter']):_0x11d202['removeAttribute'](_0x579dbb['key'],_0x58b06f['start']['nodeAfter']);}else{for(const _0x319609 of _0xefbc68)_0x579dbb['oldValue']?_0x11d202['setAttribute'](_0x579dbb['key'],_0x579dbb['oldValue'],_0x319609):_0x11d202['removeAttribute'](_0x579dbb['key'],_0x319609);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4fd364);}}function Dt(_0x4ab856,_0x3e93f7,_0x3bf9a4){for(const _0x5adcdc of _0x3e93f7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5adcdc['root']==_0x5adcdc)return!0x1;if(!_0x3bf9a4['containsItem'](_0x5adcdc))return!0x1;if(_0x4ab856['isObject'](_0x5adcdc)||_0x4ab856['isLimit'](_0x5adcdc))return!0x0;}return!0x1;}function vt(_0x3caa33){return _0x3caa33['end']['parent']==_0x3caa33['start']['nodeAfter']&&_0x3caa33['end']['isAtStart'];}function Pt(_0x43b4d2,_0x1e0978,_0x3795e3,_0xb3e5ee){const _0x350347=_0x3c7028=>!_0x3c7028['item']['is']('$textProxy')&&!_0xb3e5ee['isObject'](_0x3c7028['item']),_0x5470e1=_0x43b4d2['start']['getLastMatchingPosition'](_0x350347),_0x2943e3=_0x43b4d2['end']['getLastMatchingPosition'](_0x350347,{'direction':'backward'});return(!_0x43b4d2['start']['isEqual'](_0x5470e1)||!_0x43b4d2['end']['isEqual'](_0x2943e3))&&(_0x5470e1['isBefore'](_0x2943e3)?_0x3795e3['updateMarker'](_0x1e0978,{'range':_0x3795e3['createRange'](_0x5470e1,_0x2943e3)}):_0x3795e3['removeMarker'](_0x1e0978),!0x0);}function xt(_0x46bbe6){return _0x392215(_0x46bbe6);}function Ut(_0x3a8fee){const _0x19f370=_0x3a8fee['start']['nodeAfter'];return _0x19f370&&_0x19f370['is']('element');}function Gt(_0x345e63){return vt(_0x345e63)||function(_0x1e3028){return _0x1e3028['start']['parent']==_0x1e3028['end']['nodeBefore']&&_0x1e3028['start']['isAtEnd'];}(_0x345e63);}function Ht(_0x2db9f6,_0x3cb368){try{const _0x606251=_0x2db9f6['getRange']();for(const _0x39442f of _0x3cb368)if(_0x2db9f6!==_0x39442f&&_0x606251&&_0x606251['isIntersecting'](_0x39442f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x1b7343,_0x5e3d5c){return null==_0x1b7343['end']['nodeBefore']&&_0x1b7343['end']['parent']==_0x1b7343['start']['nodeAfter']?Vt(_0x1b7343['start']['nodeAfter'],_0x5e3d5c):_0x1b7343;}function Vt(_0x7dee4f,_0x73fb24){const _0x1bea56=_0x73fb24['schema']['isObject'](_0x7dee4f)||_0x73fb24['schema']['isSelectable'](_0x7dee4f);return _0x73fb24['createRange'](_0x73fb24['createPositionAt'](_0x7dee4f,'before'),_0x1bea56?_0x73fb24['createPositionAfter'](_0x7dee4f):_0x73fb24['createPositionAt'](_0x7dee4f,'end'));}function Wt(_0x1d2daa,_0x2a04b3,_0xafc370,_0x11fdff){return!!jt(_0x1d2daa,_0x2a04b3)&&_0xafc370['end']['isEqual'](_0x11fdff['start']);}function jt(_0x40daae,_0x2b86c0){if(!_0x40daae['_isDataLoaded']||!_0x2b86c0['_isDataLoaded'])return!0x1;const _0x5ae5fa=new Set(Object['keys'](_0x40daae['attributes'])),_0x5bb03b=new Set(Object['keys'](_0x2b86c0['attributes']));if(_0x5ae5fa['delete']('groupId'),_0x5bb03b['delete']('groupId'),0x0==_0x5ae5fa['size']&&0x0==_0x5bb03b['size'])return!0x0;if(_0x5ae5fa['size']!=_0x5bb03b['size'])return!0x1;const _0x4332c3={..._0x40daae['attributes']},_0x7b7e78={..._0x2b86c0['attributes']};return delete _0x4332c3['groupId'],delete _0x7b7e78['groupId'],JSON['stringify'](_0x4332c3)==JSON['stringify'](_0x7b7e78);}function zt(_0xbeaceb,_0x54da53){const _0x2c3e89=Kt(_0xbeaceb['attributes']),_0x3a7b1e=Kt(_0x54da53);if(!_0xbeaceb['_isDataLoaded'])return!0x1;for(const _0x535f61 of Object['keys'](_0x3a7b1e))if(!st(_0x2c3e89[_0x535f61],_0x3a7b1e[_0x535f61]))return!0x1;return!0x0;}function Kt(_0x76cb41){const _0x8b4869=Object['assign']({},_0x76cb41);return delete _0x8b4869['skipNestingCheck'],delete _0x8b4869['tablePasteChainId'],_0x8b4869;}function Xt(_0x2ab7a8){return _0x2ab7a8['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x2aae75(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2b8aae,_0x11e1ee,_0x4f0e31,_0x553fb7){super(),this['model']=_0x11e1ee,this['view']=_0x4f0e31,this['commentThreadController']=_0x553fb7,this['_editor']=_0x2b8aae,this['_acceptCommand']=_0x2b8aae['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2b8aae['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d9cda,_0x5c7db8)=>_0x5d9cda||_0x5c7db8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x42cba9=>_0x42cba9&&this['_editor']['model']['canEditAt'](_0x11e1ee['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x17fa3f=>_0x17fa3f&&this['_editor']['model']['canEditAt'](_0x11e1ee['getRanges']())),this['_pendingAction']=null,_0x4f0e31['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f0e31,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f0e31,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f0e31,'change:isDirty',()=>{_0x4f0e31['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 _0x3788d8=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3788d8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x4cfb3d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x21dfaa,_0x519df9,_0x28ea3f,_0x42b364){super(_0x21dfaa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x27a588(_0x21dfaa,Tt(_0x21dfaa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x519df9['authoredAt']),this['bind']('authoredAt')['to'](_0x519df9),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',_0x519df9,'authoredAt',this,'descriptionParts',(_0x1819de,_0x2db8d6,_0x1c4a77)=>{const _0x4ba93c=_0x1c4a77['map'](_0x24f735=>ht(_0x24f735['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1819de-0x1,_0x519df9['author']['name'],_0x2db8d6?_0x42b364['formatDateTime'](_0x2db8d6):'',new DOMParser()['parseFromString'](_0x4ba93c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x309c64(),this['focusTracker']=new _0xd3b4f(),this['keystrokes']=new _0x4d3c37(),this['focusCycler']=new _0x38aacf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f187c=>_0x4f187c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x519df9,this['_localUser']=_0x28ea3f,this['_config']=_0x42b364,_0x42b364['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb4ffec(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x119f9f}=this['_config'];this['commentsListView']=new _0x119f9f(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',_0x348c4d=>_0x348c4d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x495cae,_0x26b872)=>_0x495cae||!!_0x26b872);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xadec7d}=this['_config'],_0x205f5a=new _0xadec7d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x37459f=_0x205f5a['commentInputView'];return _0x205f5a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x37459f,'value',(_0x33588d,_0x157a4c,_0x139d40)=>!!_0x139d40||_0x33588d&&!_0x157a4c),_0x37459f['on']('submit',(_0x117c29,_0x5ece3d)=>{this['fire']('addComment',_0x5ece3d),_0x37459f['editor']['setData']('');}),_0x37459f['on']('cancel',()=>this['focus']()),_0x37459f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x205f5a;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x4bf2bc,_0x34023b,_0x436aa7,_0x2ab36c){super(_0x4bf2bc,_0x34023b,_0x436aa7,_0x2ab36c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xfc6217=>_0xfc6217&&_0xfc6217[0x0]?_0xfc6217[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x282ce8,_0x6c4bdb)=>{let _0x2517e2='';for(const _0x4d0293 of _0x282ce8)_0x2517e2+='<p>'+ht(_0x4d0293['content'],_0x4d0293['color'])+'</p>';return _0x6c4bdb?_0x2517e2:_0x3db641(_0x2517e2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2ab36c['SuggestionView'](_0x4bf2bc,_0x34023b,{'formatDateTime':_0x2ab36c['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 _0x61fc18=this['bindTemplate'],_0x258197=[this['suggestionView']];return this['commentsListView']&&_0x258197['push'](this['commentsListView']),this['commentThreadInputView']&&_0x258197['push'](this['commentThreadInputView']),_0x258197['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x61fc18['if']('isActive','ck-suggestion-wrapper--active'),_0x61fc18['to']('type',_0x49d143=>'ck-suggestion-'+_0x49d143),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':_0x61fc18['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x258197};}['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 _0x4cfb3d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4dfab4,_0x58bc90,_0x4d25f7){super(_0x4dfab4),this['_model']=_0x58bc90,this['_config']=_0x4d25f7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58bc90),this['acceptButton']=this['_createButton'](Tt(_0x4dfab4,'Accept\x20suggestion'),_0x23b084,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x4dfab4,'Discard\x20suggestion'),_0x5379dd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f8963(_0x4dfab4,_0x58bc90['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x309c64([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xd3b4f(),this['keystrokes']=new _0x4d3c37(),this['focusCycler']=new _0x38aacf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x360ff3=>_0x360ff3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1b1825=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1b1825['innerHTML']=this['description'],this['on']('change:description',(_0x2905c0,_0x1fe461,_0x12b8dc)=>{_0x1b1825['innerHTML']=_0x12b8dc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x9f2df=this['bindTemplate'],_0x2fcd9a=[{'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':_0x9f2df['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x9f2df['to']('authoredAt',_0x939a60=>this['_config']['formatDateTime'](_0x939a60))}]}]},{'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']&&_0x2fcd9a['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':_0x2fcd9a}]};}['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'](_0x5ae720,_0x1c6f3e,_0xa04a60,_0x28eba9,_0x2cc796){const _0x20ddfa=new _0x79c391(this['locale']);return _0x20ddfa['set']({'label':_0x5ae720,'icon':_0x1c6f3e,'tooltip':!0x0,'tooltipPosition':_0x2cc796}),_0x20ddfa['extendTemplate']({'attributes':{'class':_0xa04a60}}),_0x20ddfa['on']('execute',()=>{this['fire'](_0x28eba9,this['_model']['id']);}),_0x20ddfa;}['_setupKeyboardNavigation'](){const _0x4f34d9=this['element'];this['keystrokes']['listenTo'](_0x4f34d9);for(const _0x3f1d39 of this['focusables'])this['focusTracker']['add'](_0x3f1d39['element']),this['keystrokes']['listenTo'](_0x3f1d39['element']);this['keystrokes']['set']('enter',(_0x16d181,_0x37d5bb)=>{_0x4f34d9===_0x16d181['target']&&(this['focusCycler']['focusFirst'](),_0x37d5bb());}),this['keystrokes']['set']('esc',(_0x47388b,_0x465f1f)=>{_0x4f34d9!==_0x47388b['target']&&(this['focus'](),_0x465f1f());});}}class TrackChangesUI extends _0x4b9de5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0xdcdd0c,_0x473aa1,_0x38c691,_0x5493d1];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b2f0){super(_0x52b2f0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x331aed=this['editor']['config'];_0x331aed['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x331aed['define']('trackChanges.SuggestionView',SuggestionView),_0x331aed['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x331aed['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x477c03,_0xc5f054){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xed683f,_0x353d8b]of this['_handleControllerBuffer']){const _0x182f21=this['_suggestionToController']['has'](_0xed683f);_0x182f21||_0x353d8b?_0x182f21&&_0x353d8b&&this['_destroyController'](_0xed683f):this['_initializeController'](_0xed683f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5493d1)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x477c03,_0xc5f054);}['init'](){const _0x33d158=this['editor'],_0x1f349a=_0x33d158['plugins']['get'](TrackChangesEditing),_0x333a38=_0x33d158['plugins']['get'](_0x38c691),_0x27c33c=_0x33d158['plugins']['get'](_0x5493d1),_0x3391fb=_0x33d158['plugins']['get'](_0x473aa1);this['_addUIComponentsToFactory'](),_0x27c33c['addSourceCollector'](()=>{const _0x56905f=[];for(const [_0x44eb44,_0x349706]of Array['from'](this['_suggestionToController'])){const _0x22676d=_0x44eb44['getAllAdjacentSuggestions'](),_0x476085=[];for(const _0x9d07db of _0x22676d){if(!_0x9d07db['isInContent'])continue;if(_0x9d07db['isMultiRange']){_0x476085['push'](..._0x9d07db['getRanges']());continue;}const _0x412b55=_0x9d07db['getFirstRange']();if(_0x476085['length']>0x0){const _0x68e53b=_0x476085[0x0]['getJoined'](_0x412b55);if(_0x68e53b){_0x476085[0x0]=_0x68e53b;continue;}}_0x476085['push'](_0x412b55);}_0x56905f['push']([_0x349706['view'],_0x476085]);}return _0x56905f;}),this['listenTo'](_0x1f349a,'suggestionLoaded',(_0x4dae98,_0x569c1f)=>{this['listenTo'](_0x569c1f,'change:previous',(_0x2fa53c,_0x4cd7b1,_0x5d7e27,_0x1028bb)=>{_0x569c1f['isInContent']&&(null==_0x5d7e27?(this['_updateController'](_0x1028bb['head']),this['_handleSuggestionControllerDelayed'](_0x569c1f,!0x1)):(this['_updateController'](_0x5d7e27['head']),null==_0x1028bb&&this['_handleSuggestionControllerDelayed'](_0x569c1f,!0x0)));}),null!==_0x569c1f['previous']?this['_updateController'](_0x569c1f['head']):this['_handleSuggestionControllerDelayed'](_0x569c1f,!0x1);}),this['listenTo'](_0x1f349a,'suggestionUnloaded',(_0x594fd4,_0x5e63fa,_0x437c0d)=>{this['stopListening'](_0x5e63fa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e63fa),this['_suggestionToController']['has'](_0x5e63fa)&&this['_destroyController'](_0x5e63fa),_0x437c0d&&this['_updateController'](_0x437c0d['head']);}),this['listenTo'](_0x1f349a,'suggestionChanged',(_0x5b064a,_0x3db52b)=>{this['_updateController'](_0x3db52b);}),this['listenTo'](_0x333a38,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3391fb,'addComment',(_0x1a8f82,{threadId:_0xaba536,isFromAdapter:_0x3d06d3})=>{if(_0x3d06d3||!_0x1f349a['hasSuggestion'](_0xaba536))return;const _0xfbdd5e=_0x1f349a['getSuggestion'](_0xaba536);this['_suggestionToController']['get'](_0xfbdd5e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fb610=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb7bd6c;for(const _0x3d6d0a in _0x2fb610){const _0xcb6bb6=_0x3d6d0a,_0x4ed1dc=_0x2fb610[_0xcb6bb6];if('trackChangesLicenseKeyValid'==_0x4ed1dc||'trackChangesLicenseKeyInvalid'==_0x4ed1dc||'trackChangesLicenseKeyExpired'==_0x4ed1dc||'trackChangesLicenseKeyDomainLimit'==_0x4ed1dc||'trackChangesLicenseKeyNotAllowed'==_0x4ed1dc||'trackChangesLicenseKeyEvaluationLimit'==_0x4ed1dc||'trackChangesLicenseKeyUsageLimit'==_0x4ed1dc){delete _0x2fb610[_0xcb6bb6],_0xb7bd6c=_0x4ed1dc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xb7bd6c&&_0x2fb610['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3af8f3){const _0x1ed76d=this['_suggestionToController']['get'](_0x3af8f3);if(!_0x1ed76d)return null;return this['editor']['plugins']['get'](_0x38c691)['getByInnerView'](_0x1ed76d['view'])||null;}['getSuggestionForAnnotation'](_0x419849){const _0x2968db=this['_viewToController']['get'](_0x419849['innerView']);return _0x2968db?_0x2968db['model']:null;}['_refreshActiveMarkers'](){const _0x50c198=this['editor']['plugins']['get'](_0x38c691),_0x141b1f=this['editor']['plugins']['get'](TrackChangesEditing),_0xb96c0b=Array['from'](_0x50c198['activeAnnotations'],_0x5e37e5=>_0x5e37e5['innerView'])['filter'](_0x4a745a=>this['_viewToController']['has'](_0x4a745a)),_0x467021=[];for(const _0x5ec586 of _0xb96c0b){const _0x492946=this['_viewToController']['get'](_0x5ec586)['model']['getAllAdjacentSuggestions']();_0x467021['push'](..._0x492946['reduce']((_0x9088f7,_0x4f8aaa)=>[..._0x9088f7,..._0x4f8aaa['getMarkerNames']()],[]));}_0x141b1f['activeMarkers']=_0x467021;}['_addUIComponentsToFactory'](){const _0x1eae5b=this['editor'],_0x5d9140=_0x1eae5b['locale'],_0x1339b7=Tt(_0x5d9140,'Track\x20changes'),_0x4385dd=new _0xdc3d1a([{'type':'switchbutton','model':new _0x384582({'withText':!0x0,'isToggleable':!0x0,'label':_0x1339b7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x384582({'withText':!0x0,'label':Tt(_0x5d9140,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x384582({'withText':!0x0,'label':Tt(_0x5d9140,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x384582({'withText':!0x0,'label':Tt(_0x5d9140,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x384582({'withText':!0x0,'label':Tt(_0x5d9140,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1eae5b['plugins']['has']('TrackChangesPreview')&&_0x4385dd['addMany']([{'type':'separator'},{'type':'button','model':new _0x384582({'withText':!0x0,'label':Tt(_0x5d9140,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30d32d of _0x4385dd)if(Yt(_0x30d32d)){const _0x1fa43e=_0x1eae5b['commands']['get'](_0x30d32d['model']['commandName']);_0x30d32d['model']['bind']('isOn','isEnabled')['to'](_0x1fa43e,'value','isEnabled');}_0x1eae5b['ui']['componentFactory']['add']('trackChanges',_0x1d5d37=>this['_createToolbarButton'](_0x1d5d37,_0x4385dd,_0x1339b7)),_0x1eae5b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f3531=>this['_createMenuBarMenu'](_0x3f3531,_0x4385dd,_0x1339b7));}['_createToolbarButton'](_0x42bc7a,_0x4a6e4f,_0xfa486){const _0x1aa35f=_0x587ae5(_0x42bc7a,_0x126d19),_0x2f9fd4=this['editor']['commands']['get']('trackChanges');_0x1aa35f['buttonView']['set']({'tooltip':_0xfa486,'label':_0xfa486,'icon':_0x548737}),_0x1aa35f['buttonView']['bind']('isOn')['to'](_0x2f9fd4,'value'),_0x1aa35f['buttonView']['on']('execute',()=>{_0x2f9fd4['execute'](),this['editor']['editing']['view']['focus']();}),_0x27642b(_0x1aa35f,_0x4a6e4f,{'role':'menu'});const _0x322f39=[];for(const _0x5d9c91 of _0x4a6e4f)Yt(_0x5d9c91)&&_0x322f39['push'](this['editor']['commands']['get'](_0x5d9c91['model']['commandName']));const _0x1b5306=_0x1aa35f['buttonView'];return _0x1b5306['actionView']['unbind']('isEnabled'),_0x1b5306['arrowView']['unbind']('isEnabled'),_0x1b5306['actionView']['bind']('isEnabled')['to'](_0x2f9fd4,'isEnabled'),_0x1b5306['arrowView']['bind']('isEnabled')['toMany'](_0x322f39,'isEnabled',(..._0xf0da11)=>_0xf0da11['some'](_0x15ad52=>_0x15ad52)),_0x1aa35f['on']('execute',_0x36251d=>{this['editor']['execute'](_0x36251d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1aa35f;}['_createMenuBarMenu'](_0x1c720d,_0x4f74f7,_0x1e205a){const _0x150a5f=new _0x1dbc19(_0x1c720d),_0x4a4f27=this['editor']['commands']['get']('trackChanges');_0x150a5f['buttonView']['set']({'label':_0x1e205a,'icon':_0x548737});const _0x5d8c27=new _0x127983(_0x1c720d);for(const _0x3af6d0 of _0x4f74f7){if('separator'==_0x3af6d0['type']){_0x5d8c27['items']['add'](new _0x3874df(_0x1c720d));continue;}const _0x28548d=new _0x81d467(_0x1c720d,_0x150a5f),_0x519ad7=new _0x49628b(_0x1c720d),_0x3f2302=_0x3af6d0['model'];_0x519ad7['bind'](...Object['keys'](_0x3f2302))['to'](_0x3f2302),_0x519ad7['delegate']('execute')['to'](_0x150a5f),_0x519ad7['on']('execute',()=>{this['editor']['execute'](_0x3f2302['commandName']),this['editor']['editing']['view']['focus']();}),_0x28548d['children']['add'](_0x519ad7),_0x5d8c27['items']['add'](_0x28548d);}return _0x150a5f['bind']('isEnabled')['to'](_0x4a4f27,'isEnabled'),_0x150a5f['panelView']['children']['add'](_0x5d8c27),_0x150a5f;}['_initializeController'](_0x2b39d1){const _0xb137b4=this['editor'],_0x465503=_0xb137b4['config'],_0x2ad120=_0xb137b4['plugins']['get'](_0x38c691),_0x4849c3=_0xb137b4['plugins']['get'](_0x473aa1),_0x1d15d0=_0xb137b4['plugins']['get'](_0x5493d1),_0x29770e=_0xb137b4['plugins']['get'](_0xdcdd0c)['me'],_0x5a9ffe=_0x465503['get']('trackChanges')['SuggestionThreadView'],_0x32c347=_0x465503['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x509a69,CommentThreadInputView:_0x5d0eb1}=_0xb137b4['plugins']['get']('CommentsUI');let _0x5d9cb0,_0x39dda3,_0x3eddd9;this['_annotationViews']['has'](_0x2b39d1['id'])?(_0x39dda3=this['_annotationViews']['get'](_0x2b39d1['id']),_0x5d9cb0=_0x39dda3['mainView']):(_0x5d9cb0=new _0x5a9ffe(_0xb137b4['locale'],_0x2b39d1,_0x29770e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x465503['get']('comments.editorConfig'),'licenseKey':_0x465503['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x465503['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x465503['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x465503['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53e2b0(_0x465503['get']('locale'),_0xb137b4['locale']),'CommentView':_0x465503['get']('comments')['CommentView'],'CommentsListView':_0x509a69,'CommentThreadInputView':_0x5d0eb1,'SuggestionView':_0x32c347}),_0x5d9cb0['suggestionView']['acceptButton']['on']('execute',()=>{_0xb137b4['editing']['view']['focus']();}),_0x5d9cb0['suggestionView']['discardButton']['on']('execute',()=>{_0xb137b4['editing']['view']['focus']();}),_0x39dda3=_0x2ad120['createAnnotationView'](this['editor']['locale'],_0x5d9cb0),_0x39dda3['bind']('isDirty')['to'](_0x5d9cb0,'isDirty'),_0x39dda3['bind']('length')['to'](_0x5d9cb0),_0x39dda3['bind']('type')['to'](_0x5d9cb0,'type',_0x48e41e=>'suggestion-'+_0x48e41e),_0x5d9cb0['on']('escape',()=>{_0x3eddd9['fire']('escape');}),this['_annotationViews']['set'](_0x2b39d1['id'],_0x39dda3));const _0x26e63f=_0x4849c3['createCommentThreadController'](_0x2b39d1['commentThread'],_0x5d9cb0),_0x41bb60=new SuggestionController(_0xb137b4,_0x2b39d1,_0x5d9cb0,_0x26e63f),_0x54e7f8=_0x2b39d1['getAllAdjacentSuggestions']()['filter'](_0x561bfa=>_0x561bfa['isInContent']);_0x5d9cb0['descriptionParts']=_0xb137b4['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x54e7f8),this['_suggestionToController']['set'](_0x2b39d1,_0x41bb60),this['_viewToController']['set'](_0x5d9cb0,_0x41bb60);const _0x3f0da5=()=>{const _0x4bbe18=[],_0x5df6ac=_0x2b39d1['getAllAdjacentSuggestions']()['filter'](_0x40012b=>_0x40012b['isInContent']);for(const _0x157aab of _0x5df6ac)_0x4bbe18['push'](..._0x157aab['getMarkers']());return _0xcded4d(_0xb137b4['editing'],_0x4bbe18);};_0x3eddd9=_0x2ad120['createAnnotation']({'view':_0x39dda3,'target':_0x3f0da5,'type':()=>'suggestion-'+_0x41bb60['view']['type'],'isVisible':!!_0x3f0da5()}),_0x4849c3['_bindAnnotationToEditors'](_0x5d9cb0,_0x3eddd9),_0x2ad120['add'](_0x3eddd9),_0x1d15d0['registerAnnotation'](_0x3eddd9);}['_destroyController'](_0x5c9a19){const _0x43890a=this['editor']['plugins']['get'](_0x473aa1),_0x704503=this['editor']['plugins']['get'](_0x38c691),_0x322742=this['_suggestionToController']['get'](_0x5c9a19),_0x1fd70f=_0x322742['view'],_0x299b29=_0x704503['getByInnerView'](_0x1fd70f);_0x43890a['_unbindEditors'](_0x1fd70f),_0x299b29&&_0x704503['remove'](_0x299b29),this['_suggestionToController']['delete'](_0x5c9a19),this['_viewToController']['delete'](_0x1fd70f),_0x322742['destroy']();}['_updateController'](_0x325b06){if(!_0x325b06['isInContent']||!this['_suggestionToController']['has'](_0x325b06))return;const _0x39e7ad=this['editor']['plugins']['get'](TrackChangesEditing),_0x253841=this['_suggestionToController']['get'](_0x325b06),_0x476dab=_0x325b06['getAllAdjacentSuggestions']();_0x253841['view']['descriptionParts']=_0x39e7ad['descriptionFactory']['getDescriptions'](_0x476dab);}['destroy'](){for(const _0x47cd7e of this['_suggestionToController']['keys']())this['_destroyController'](_0x47cd7e);for(const _0x7949f8 of this['_annotationViews']['values']())_0x7949f8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x8ec6f0){return'model'in _0x8ec6f0;}class TrackChanges extends _0x4b9de5{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x2864b4];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x532085){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x532085;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x59070a){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x59070a);}['getSuggestions']({skipNotAttached:_0x3781fc=!0x1,toJSON:_0x1b8c7e=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x3781fc,'toJSON':_0x1b8c7e});}['getSuggestion'](_0x4d1927){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x4d1927);}}const qt=['Pagination'];class TrackChangesData extends _0x4b9de5{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46605e=this['editor'];if(_0x46605e['config']['define']('trackChangesData.editorCreator',_0x4064da=>{const _0x5802d9=_0x46605e['model']['document']['getRootNames']()['reduce']((_0x31e847,_0x61368f)=>(_0x31e847[_0x61368f]='',_0x31e847),{});return _0x46605e['constructor']['create'](_0x5802d9,_0x4064da);}),'function'!=typeof _0x46605e['config']['get']('trackChangesData')['editorCreator'])throw new _0x423517('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x49187a){return Zt(this['editor'],!0x0,_0x49187a);}['getDataWithDiscardedSuggestions'](_0xa8c073){return Zt(this['editor'],!0x1,_0xa8c073);}}class TrackChangesDataGetter extends _0x4b9de5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16ca3c){function _0x2f22c0(_0x51222e){return _0x51222e['map'](_0x28eec3=>String['fromCharCode'](_0x28eec3))['join']('');}super(_0x16ca3c),this['result']='end',_0x16ca3c[_0x2f22c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f22c0([0x76,0x69,0x65,0x77])][_0x2f22c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f22c0([0x61,0x75,0x74,0x6f]),_0x16ca3c[_0x2f22c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f22c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f22c0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f22c0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f22c0([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(_0xb2ab57){return void 0x0!==_0xb2ab57['getRootsAttributes'];}async function Zt(_0xab1630,_0x315e31,_0x42621b){const _0x4332c2=_0x561406(_0xab1630,qt);if(_0x4332c2['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0xab1630)){_0x4332c2['roots']=Object['create'](null);for(const _0xa3ddd4 of _0xab1630['model']['document']['getRootNames']())_0x4332c2['roots'][_0xa3ddd4]={'modelAttributes':_0xab1630['getRootAttributes'](_0xa3ddd4)};}const _0x45e467=document['createDocumentFragment'](),_0x164520=_0xab1630['config']['get']('trackChangesData')['editorCreator'],_0x1d9394=await _0x164520(_0x4332c2,()=>function(_0x42b871){const _0x1c348e=document['createElement']('div');return _0x42b871['appendChild'](_0x1c348e),_0x1c348e;}(_0x45e467));!function(_0x400611,_0x57d9f9){const _0x2155be=_0x400611['model']['document']['getRootNames']()['reduce']((_0x379654,_0x1c133e)=>(_0x379654[_0x1c133e]=_0x400611['data']['get']({'rootName':_0x1c133e}),_0x379654),{}),_0x139a08=_0x400611['plugins']['get']('Users')['users']['map'](_0x321d37=>({'id':_0x321d37['id'],'name':_0x321d37['name']})),_0x1e0587=_0x400611['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38adf8=_0x400611['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18f075=_0x57d9f9['plugins']['get']('Users'),_0xaa5fc5=_0x57d9f9['plugins']['get']('TrackChangesEditing'),_0x57ff73=_0x57d9f9['plugins']['get']('CommentsRepository');for(const _0x5912ec of _0x57ff73['getCommentThreads']())_0x5912ec['remove']();for(const _0x35071a of _0x139a08)_0x18f075['getUser'](_0x35071a['id'])||_0x18f075['addUser'](_0x35071a);_0x18f075['me']||_0x18f075['useAnonymousUser']();for(const _0x2b0cb5 of _0x38adf8)_0x57ff73['addCommentThread'](_0x2b0cb5);for(const _0x5ccfc7 of _0x1e0587)_0xaa5fc5['addSuggestionData'](_0x5ccfc7);_0x57d9f9['data']['set'](_0x2155be);}(_0xab1630,_0x1d9394),_0x1d9394['execute'](_0x315e31?'acceptAllSuggestions':'discardAllSuggestions');const _0x331647=Qt(_0x1d9394)?_0x1d9394['getFullData'](_0x42621b):_0x1d9394['data']['get'](_0x42621b);return await _0x1d9394['destroy'](),_0x331647;}class TrackChangesPreviewView extends _0x4cfb3d{['options'];constructor(_0x2d2960,_0x4b78c0){super(_0x2d2960),this['options']=_0x4b78c0,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'](_0x47f3a8,_0x2388a3){if(!this['element'])return;const _0x539bf2=[];for(const [_0x4c0431,_0x37e3fa]of _0x47f3a8){const _0x247740=document['createElement']('div');_0x247740['setAttribute']('data-ck-root-name',_0x4c0431),_0x247740['className']=_0x37e3fa['classes']+'\x20ck-track-changes-preview__root-container',_0x247740['innerHTML']=_0x37e3fa['content'],_0x539bf2['push'](_0x247740);}_0x2388a3(this['element'],_0x539bf2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x238f27{constructor(_0x278acc){super(_0x278acc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2df723=this['editor'],_0x3a40f0=_0x2df723['locale'],_0xe0a9e3=_0x2df723['plugins']['get']('Dialog');let _0x2f8625;const _0x38f773=function(_0x3d92e4){const _0x5d1b3e={};if('editables'in _0x3d92e4['ui']['view']){for(const [_0x46e278,_0x3874c6]of Object['entries'](_0x3d92e4['ui']['view']['editables']))_0x5d1b3e[_0x46e278]=_0x3874c6['element'];}else _0x5d1b3e[_0x3d92e4['model']['document']['getRootNames']()[0x0]]=_0x3d92e4['ui']['view']['editable']['element'];return _0x5d1b3e;}(_0x2df723),_0x35e5af=function(_0x104e59){let _0x31079f=0x0;for(const _0x468425 of Object['values'](_0x104e59))_0x31079f=Math['max'](_0x31079f,_0x468425['getBoundingClientRect']()['width']);let _0x32b70b=0x0;for(const _0x1549d7 of Object['values'](_0x104e59))_0x32b70b+=_0x1549d7['getBoundingClientRect']()['height'];const _0x8fb410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3b4864=Math['min'](_0x32b70b,_0x8fb410);return{'width':_0x31079f,'height':_0x3b4864};}(_0x38f773);_0xe0a9e3['show']({'id':'finalContentPreview','title':Tt(_0x3a40f0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x3a40f0,{'dialogRects':_0x35e5af}),'onHide':()=>{_0x2f8625['detachFromDom']();},'onShow':()=>{_0x2df723['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1fa98b=>{const _0x42f97b=this['_standarizeRootsData'](_0x1fa98b,_0x2df723,_0x38f773);_0xe0a9e3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x42f97b,_0x2df723['config']['get']('trackChanges.preview.renderFunction'));}),_0x2f8625=new _0x322a33(_0x3a40f0,[_0xe0a9e3['view']]),_0x2f8625['attachToDom'](),_0x2f8625['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2df723['once']('destroy',()=>{_0x2f8625['detachFromDom']();});const _0x4b55b0=_0xe0a9e3['view']['headerView']['class'];_0xe0a9e3['view']['headerView']['class']=_0x4b55b0?_0x4b55b0+'\x20ck-reset_all':'ck-reset_all',_0xe0a9e3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe0a9e3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1d5c38=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x30c0db=_0x1d5c38['previewMode'],_0x1555ec={};if('$labels'===_0x30c0db){for(const _0x321747 of _0x1d5c38['getMergeFieldsIds']())_0x1555ec[_0x321747]=_0x1d5c38['getLabel'](_0x321747)||_0x321747;}else{const _0x12517b='$defaultValues'===_0x30c0db?_0x1d5c38['getDefaultValues']():_0x1d5c38['getDataSetValues'](_0x30c0db,!0x0);for(const _0x632684 of Object['entries'](_0x12517b)){const [_0xdaa402,_0x5e2b80]=_0x632684;_0x1555ec[_0xdaa402]=null!==_0x5e2b80?_0x5e2b80:_0x1d5c38['getLabel'](_0xdaa402)||_0xdaa402;}}return{'mergeFieldsData':_0x1555ec};}['_standarizeRootsData'](_0xa919b1,_0x35513b,_0x17e7ce){let _0x53bde1;if('string'==typeof _0xa919b1){const _0x2e5998=_0x35513b['model']['document']['getRootNames']()[0x0];_0x53bde1={[_0x2e5998]:_0xa919b1};}else _0x53bde1=_0xa919b1;const _0x4f8d49=this['_fixMediaEmbeds'](_0x53bde1,_0x35513b),_0x2abbcd=function(_0xdd7734,_0x4a4769){for(const [_0x595443,_0xf6dfd3]of _0xdd7734)_0xf6dfd3['classes']=_0x4a4769[_0x595443]['classList']['value']['replace']('ck-focused','');return _0xdd7734;}(this['_sortRoots'](_0x35513b)['reduce']((_0x5250dc,_0x5508b2)=>(_0x5250dc['push']([_0x5508b2,{'content':_0x4f8d49[_0x5508b2],'classes':''}]),_0x5250dc),[]),_0x17e7ce);return _0x2abbcd;}['_fixMediaEmbeds'](_0x2a750,_0x437af6){if(!_0x437af6['plugins']['has']('MediaEmbedEditing'))return _0x2a750;const _0x6b46d8=_0x437af6['plugins']['get']('MediaEmbedEditing');for(const [_0x51cca7,_0x2ce74a]of Object['entries'](_0x2a750)){const _0x5bea03=document['createElement']('div');_0x5bea03['innerHTML']=_0x2ce74a,(_0x5bea03['querySelectorAll']('figure.media')['forEach'](_0x44af99=>{const _0x5186bc=_0x44af99['querySelector']('oembed');if(_0x5186bc){const _0xcd5dba=_0x5186bc['getAttribute']('url');if(_0xcd5dba){const _0x131020=_0x6b46d8['registry']['getMediaViewElement'](new et(_0x437af6['editing']['view']['document']),_0xcd5dba,{'elementName':'','renderForEditingView':!0x0}),_0x525ee9=document['createElement']('div');_0x525ee9['classList']['add']('ck-media__wrapper'),_0x131020['render'](_0x525ee9,_0x437af6['editing']['view']['domConverter']),_0x5186bc['replaceWith'](_0x525ee9);}}}),_0x2a750[_0x51cca7]=_0x5bea03['innerHTML']);}return _0x2a750;}['_sortRoots'](_0x38eed2){if(!function(_0x51fff9){return void 0x0!==_0x51fff9['getRootsAttributes'];}(_0x38eed2))return _0x38eed2['model']['document']['getRootNames']();const _0x2209c0=[],_0x42c02d=new Map();for(const _0x4e3ecd of _0x38eed2['model']['document']['getRootNames']()){const _0x3d7131=_0x38eed2['editing']['view']['getDomRoot'](_0x4e3ecd)['getClientRects']()['item'](0x0);_0x2209c0['push'](_0x4e3ecd),_0x42c02d['set'](_0x4e3ecd,_0x3d7131);}return _0x2209c0['sort']((_0x1cfa9,_0xcc9938)=>{const _0x55641f=_0x42c02d['get'](_0x1cfa9),_0x3d24b1=_0x42c02d['get'](_0xcc9938);return _0x55641f['y']-_0x3d24b1['y']||_0x55641f['x']-_0x3d24b1['x'];}),_0x2209c0;}}class TrackChangesPreview extends _0x4b9de5{static get['requires'](){return[TrackChangesData,_0x452b9b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x97f672){super(_0x97f672),_0x97f672['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x97f672['config']['define']('trackChanges.preview.renderFunction',(_0x422ead,_0x5ed5fc)=>{for(const _0x1ea329 of _0x5ed5fc)_0x422ead['appendChild'](_0x1ea329);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
|
|
23
|
+
import{Command as _0x2a8e78,Plugin as _0x203e6b,PendingActions as _0x226c6a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x300715,Annotations as _0x18743c,EditorAnnotations as _0x183fc3,Comments as _0x142b0b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2618c5,ObservableMixin as _0x1ca856,uid as _0x1e5a7d,priorities as _0xcf8801,insertToPriorityArray as _0x24355e,logWarning as _0x39db6c,getEnvKeystrokeText as _0x1d258e,FocusTracker as _0x5def1f,KeystrokeHandler as _0x7c07a3,Collection as _0xa0bdb5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4931a8,IconCancel as _0x39c270,IconTrackChanges as _0xefeca6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x513476,View as _0x7acdaf,ViewCollection as _0x47db65,FocusCycler as _0x5602a4,UIModel as _0x3d4a24,createDropdown as _0x56fb5d,SplitButtonView as _0x1fc7da,addListToDropdown as _0x8a0123,MenuBarMenuView as _0x10e4a3,MenuBarMenuListView as _0x481bf4,ListSeparatorView as _0x1e805e,MenuBarMenuListItemView as _0x18a5b5,MenuBarMenuListItemButtonView as _0x47e243,BodyCollection as _0x234ad1,Dialog as _0x6c10b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4f787f,SuggestionsConversion as _0x540837,Users as _0x3771e4,DocumentCompare as _0x319f4e,fixElementSuggestionRange as _0x494da1,hashObject as _0x1fc623,surroundingMarkersDetector as _0x1a4c74,FOCUS_ANNOTATION_KEYSTROKE as _0x4eb651,AriaDescriptionView as _0x5b849f,setupThreadKeyboardNavigation as _0xdc32b2,trimHtml as _0x4e34a1,UserView as _0x15cd9a,LateFocusButtonView as _0x1f4595,getDateTimeFormatter as _0x59dff4,getAllMarkersDomElementsSorted as _0x521940,sanitizeEditorConfig as _0x49f7c3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x10ec21,ModelLiveRange as _0x4c6b54,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 _0x2a8e78{['_enabledCommands'];constructor(_0x420d3c,_0x348497){super(_0x420d3c),this['_enabledCommands']=_0x348497,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 _0x159b5e of this['editor']['commands']['commands']())_0x159b5e['affectsData']&&!this['_enabledCommands']['has'](_0x159b5e)&&_0x159b5e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3608b4 of this['editor']['commands']['commands']())_0x3608b4['affectsData']&&!this['_enabledCommands']['has'](_0x3608b4)&&_0x3608b4['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x20de2d,_0x481ad3){super(_0x20de2d),this['_suggestions']=_0x481ad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd4cd9e){const _0x223362=this['_suggestions']['get'](_0xd4cd9e);if(!_0x223362)throw new _0x2618c5('track-changes-accept-suggestion-not-found',this);const _0x5a919a=_0x223362['getRanges']();this['editor']['model']['canEditAt'](_0x5a919a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x223362);}}class DiscardSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x315661,_0x920a3){super(_0x315661),this['_suggestions']=_0x920a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db907){const _0x279829=this['_suggestions']['get'](_0x3db907);if(!_0x279829)throw new _0x2618c5('track-changes-discard-suggestion-not-found',this);const _0x4c5df9=_0x279829['getRanges']();this['editor']['model']['canEditAt'](_0x4c5df9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x279829);}}function ht(_0x588296,_0x1e22b3){let _0x4855d8='';return _0x4855d8+=_0x588296['split']('*')['map']((_0x1bcb51,_0x1a3748)=>_0x1a3748%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x1bcb51)+'</span>':dt(_0x1bcb51))['join'](''),_0x1e22b3&&(_0x4855d8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e22b3['value']+'\x22\x20title=\x22'+_0x1e22b3['title']+'\x22></span>'),_0x4855d8;}function dt(_0x2445f0){const _0x199c14=document['createElement']('span');return _0x199c14['innerText']=_0x2445f0,_0x199c14['innerHTML'];}function gt(_0x4dc144){return _0x4dc144['sort']((_0x25b1d1,_0x2b3fe3)=>'attribute'===_0x25b1d1['type']&&'attribute'!==_0x2b3fe3['type']?-0x1:'attribute'!==_0x25b1d1['type']&&'attribute'===_0x2b3fe3['type']?0x1:'deletion'==_0x25b1d1['type']&&'deletion'!=_0x2b3fe3['type']?-0x1:'deletion'!=_0x25b1d1['type']&&'deletion'==_0x2b3fe3['type']?0x1:0x0);}function ft(_0x3dea80,_0x51b5ac){let _0x3fd6d1,_0x2ca768=0x0;const _0x23a6d1=[],_0xcb93a7=_0x51b5ac['schema'];for(;_0x2ca768<_0x3dea80['length'];){const _0x400723=_0x3dea80[_0x2ca768],_0x5daf53=_0x3dea80[_0x2ca768+0x1];_0x3fd6d1||(_0x3fd6d1=_0x51b5ac['createPositionBefore'](_0x400723)),mt(_0x51b5ac,_0x400723,_0x5daf53)||(_0x23a6d1['push'](_0x51b5ac['createRange'](_0x3fd6d1,_0xcb93a7['isObject'](_0x400723)?_0x51b5ac['createPositionAfter'](_0x400723):_0x51b5ac['createPositionAt'](_0x400723,'end'))),_0x3fd6d1=null),_0x2ca768++;}return _0x23a6d1;}function mt(_0x283ec4,_0x2b1260,_0x525667){if(!_0x525667)return!0x1;const _0x113ba8=_0x283ec4['createPositionAfter'](_0x2b1260),_0x1ddfe4=_0x283ec4['createPositionBefore'](_0x525667);return _0x113ba8['isTouching'](_0x1ddfe4);}function Et(_0x9b73ca,_0x5b7dbb,_0x52801a){for(;_0x52801a['length'];){const _0x136a3a=_0x52801a['splice'](0x0,0x64);_0x9b73ca['change'](()=>{for(const _0x14a661 of _0x136a3a)_0x14a661['isInContent']&&_0x5b7dbb['execute'](_0x14a661['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];constructor(_0x877118,_0x3b2878,_0x53657c){super(_0x877118),this['_command']=_0x3b2878,this['_suggestions']=_0x53657c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x267d1d=Array['from'](this['_suggestions']['values']())['some'](_0xc94ee9=>_0xc94ee9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x267d1d;}['execute'](){const _0x460686=gt(Array['from'](this['_suggestions']['values']()));for(const _0x51df12 of _0x460686){const _0x3833e7=_0x51df12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3833e7))return;}Et(this['editor']['model'],this['_command'],_0x460686);}}class ExecuteOnSelectedSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x213bef,_0x32f54a,_0x137f0d){super(_0x213bef),this['_command']=_0x32f54a,this['_suggestions']=_0x137f0d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5582a0=this['editor']['model']['document']['selection'],_0x52a9aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x352311,_0x1b1eb2){const _0x2ff8ac=Array['from'](_0x352311['getRanges']()),_0x4dfb0a=new Set();for(const _0x1ebd83 of _0x1b1eb2)if(_0x1ebd83['isInContent']){for(const _0x50b6e2 of _0x2ff8ac)for(const _0x123274 of _0x1ebd83['getRanges']())(_0x50b6e2['isIntersecting'](_0x123274)||_0x352311['isCollapsed']&&!_0x1ebd83['isMultiRange']&&_0x1ebd83['next']&&_0x123274['end']['isTouching'](_0x50b6e2['start']))&&_0x4dfb0a['add'](_0x1ebd83);}return _0x4dfb0a;}(_0x5582a0,_0x52a9aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3491cf=gt(Array['from'](this['_selectedSuggestions']));for(const _0x450f28 of _0x3491cf){const _0x424296=_0x450f28['getRanges']();if(!this['editor']['model']['canEditAt'](_0x424296))return;}Et(this['editor']['model'],this['_command'],_0x3491cf);}}class Suggestion extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ca856(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x28e10c,_0x139d6f){super(),this['id']=_0x139d6f['id'],this['type']=_0x139d6f['type'],this['subType']=_0x139d6f['subType']||null,this['author']=_0x139d6f['author'],this['creator']=_0x139d6f['creator']||_0x139d6f['author'],this['isExternal']=Boolean(_0x139d6f['attributes']&&_0x139d6f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x139d6f['originalSuggestionId']||null,this['_model']=_0x28e10c,this['_onAccept']=_0x139d6f['onAccept'],this['_onDiscard']=_0x139d6f['onDiscard'],this['_onAttributesChange']=_0x139d6f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x139d6f['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 _0x41de64=this;for(;_0x41de64['previous'];)_0x41de64=_0x41de64['previous'];return _0x41de64;}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'](_0x27c09b){this['_markerNames']['add'](_0x27c09b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32a0dd=>this['_model']['markers']['get'](_0x32a0dd))['filter'](_0x4ecc2a=>_0x4ecc2a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2fe05a=>{for(const _0x2ac0a8 of this['getMarkers']())_0x2fe05a['removeMarker'](_0x2ac0a8);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d91d4){this['_model']['change'](_0x3f2766=>{_0x3f2766['removeMarker'](_0x5d91d4);}),this['_markerNames']['delete'](_0x5d91d4);}['addRange'](_0x282278){const _0x58f606='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x58f606),this['_model']['change'](_0x375949=>{_0x375949['addMarker'](_0x58f606,{'range':_0x282278,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5e9edf){for(const _0x4e14bc of this['getRanges']())if(_0x4e14bc['isIntersecting'](_0x5e9edf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x245a3c=>_0x245a3c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x17c831,_0x305854)=>[..._0x17c831,..._0x305854['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x377a42=this['getRanges']();if(0x1!=_0x377a42['length'])return null;const _0x4ce950=_0x377a42[0x0],_0x53a4e0=_0x4ce950['start']['nodeAfter'],_0x5d683d=_0x4ce950['end']['nodeBefore'];return _0x53a4e0 instanceof _0x10ec21?_0x53a4e0!=_0x5d683d?null:_0x53a4e0: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 _0x55b339=[];let _0x52c775=this['head'];for(;_0x52c775;)_0x55b339['push'](_0x52c775),_0x52c775=_0x52c775['next'];return _0x55b339;}['setAttribute'](_0x53fc3c,_0x101846){const _0x4852e7=nt(this['attributes']);it(_0x4852e7,_0x53fc3c,_0x101846),st(_0x4852e7,this['attributes'])||(this['attributes']=_0x4852e7,this['_onAttributesChange'](_0x4852e7));}['removeAttribute'](_0x5b261d){const _0x30e93e=nt(this['attributes']);rt(_0x30e93e,_0x5b261d),st(_0x30e93e,this['attributes'])||(this['attributes']=_0x30e93e,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 _0x1e5a7d()['substr'](0x1,0x5);}}function Tt(_0xddc335,_0x1d41c2,_0x186c98){const _0xe41321=_0xddc335['t'],t=_0xddc335['t'];switch(_0x1d41c2){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',_0x186c98);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x186c98);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x186c98);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x186c98);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x186c98);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',_0x186c98);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x186c98);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',_0x186c98);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x186c98);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x186c98);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x186c98);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x186c98);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x186c98);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x186c98);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x186c98);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x186c98);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x186c98);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x186c98);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x186c98);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x186c98);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x186c98);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x186c98);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x186c98);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x186c98);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x186c98);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'},_0x186c98);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x186c98);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x186c98);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x186c98);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x186c98);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x186c98);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x186c98);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x186c98);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x186c98);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'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'},_0x186c98);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x186c98);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x186c98);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x186c98);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x186c98);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'},_0x186c98);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x186c98);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'},_0x186c98);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x186c98);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x186c98);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x186c98);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x186c98);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x186c98);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x186c98);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'},_0x186c98);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x186c98);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 _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x186c98);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x186c98);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x186c98);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'},_0x186c98);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'},_0x186c98);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'},_0x186c98);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d41c2;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21e598,_0x246dcf){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21e598,this['_locale']=_0x246dcf;}['getDescriptions'](_0x4b4293){const _0xfe95f4=[],_0x435a6b=new Set(),_0x2412f8=new Set();for(let _0x3d1971=0x0;_0x3d1971<_0x4b4293['length'];_0x3d1971++){const _0x1854cb=_0x4b4293[_0x3d1971];if(!_0x1854cb['isInContent'])continue;const _0x14e44c=this['_handleCustomCallbackDescription'](_0x1854cb);if(_0x14e44c){if(null!=_0x1854cb['subType']){if(_0x435a6b['has'](_0x1854cb['subType']))continue;_0x435a6b['add'](_0x1854cb['subType']);}_0xfe95f4['push'](_0x14e44c);}else{if('attribute'==_0x1854cb['type']){const _0x185448=_0x1854cb['data']['key'];if(_0x2412f8['has'](_0x185448))continue;_0x2412f8['add'](_0x1854cb['data']['key']),_0x185448==Bt?this['_handleRenameSuggestionDescription'](_0xfe95f4,_0x1854cb):this['_handleAttributeSuggestionDescription'](_0xfe95f4,_0x1854cb);continue;}'insertion'!=_0x1854cb['type']&&'deletion'!=_0x1854cb['type']||this['_handleInsertRemoveSuggestionDescription'](_0xfe95f4,_0x1854cb,_0x4b4293[_0x3d1971+0x1]);}}return this['_resolveDescriptionItems'](_0xfe95f4);}['registerDescriptionCallback'](_0x2a5dfa){this['_customCallbacks']['push'](_0x2a5dfa);}['registerElementLabel'](_0x1c80e4,_0x38854a,_0x506dd2=_0xcf8801['normal']){'function'==typeof _0x1c80e4?_0x24355e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1c80e4,'label':_0x38854a,'priority':_0x506dd2}):this['_itemLabels']['set'](_0x1c80e4,_0x38854a);}['registerAttributeLabel'](_0xf871cc,_0x490db1){this['_attributeLabels']['set'](_0xf871cc,_0x490db1);}['getItemLabel'](_0x71a8de,_0x319003=0x1){let _0x2242c3;for(const _0x39f7fe of this['_itemLabelsCallbacks'])if(_0x39f7fe['matchingCallback'](_0x71a8de)){_0x2242c3=_0x39f7fe['label'];break;}return _0x2242c3||(_0x2242c3=this['_itemLabels']['get'](_0x71a8de['name'])),_0x2242c3?_0x2242c3(_0x319003):0x1!==_0x319003?_0x319003+'\x20'+_0x71a8de['name']+'s':''+_0x71a8de['name'];}['_addDescriptionItems'](_0x30f4fb,_0x385e62){const _0x66b532=_0x385e62['getFirstRange']()['getWalker'](),_0x135b49='insertion'==_0x385e62['type']?'add':'remove';for(const _0x14ff36 of _0x66b532){const _0x4ca69f=_0x14ff36['item'],_0x45cf8f=_0x30f4fb[_0x30f4fb['length']-0x1];if(_0x4ca69f['is']('$textProxy'))_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),_0x45cf8f&&'text'==_0x45cf8f['type']?_0x45cf8f[_0x135b49]+=_0x4ca69f['data']:_0x30f4fb['push']({'type':'text','add':'add'==_0x135b49?_0x4ca69f['data']:'','remove':'remove'==_0x135b49?_0x4ca69f['data']:''});else{if(this['_schema']['isObject'](_0x4ca69f)){const _0x39c732=_0x4ca69f;if(_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),'elementEnd'==_0x14ff36['type'])continue;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'Object'&&_0x45cf8f['element']['name']==_0x39c732['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'Object','element':_0x39c732,'quantity':0x1}),_0x66b532['skip'](_0x408331=>!('elementEnd'==_0x408331['type']&&_0x408331['item']==_0x4ca69f));}else{if(this['_schema']['checkChild'](_0x4ca69f,'$text')||_0x4ca69f['is']('element','softBreak')){const _0x533899=_0x4ca69f;if('add'==_0x135b49&&'elementStart'==_0x14ff36['type']||'remove'==_0x135b49&&'elementEnd'==_0x14ff36['type'])continue;if(_0x45cf8f&&-0x1==_0x45cf8f['type']['indexOf']('Container')){'text'==_0x45cf8f['type']&&(_0x45cf8f[_0x135b49]+='\x0a');continue;}let _0x244799;if(_0x244799='add'==_0x135b49?_0x533899['nextSibling']&&!this['_schema']['isObject'](_0x533899['nextSibling'])?_0x533899['nextSibling']:null:_0x533899['previousSibling']&&!this['_schema']['isObject'](_0x533899['previousSibling'])?_0x533899['previousSibling']:null,_0x533899['isEmpty']||_0x244799&&_0x244799['isEmpty']){const _0x111629=_0x244799&&_0x244799['isEmpty']?_0x244799:_0x533899;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'EmptyContainer'&&_0x45cf8f['element']['name']==_0x111629['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'EmptyContainer','element':_0x111629,'quantity':0x1});}else _0x30f4fb['push']({'type':_0x135b49+'Container','element':_0x533899});}}}}}['_resolveDescriptionItems'](_0x326cbd){const _0x3225ca=this['_locale'],_0x33b0ab=[],_0x232c20=[],_0xcac0a6=[];for(const _0x51ff49 of _0x326cbd)switch(_0x51ff49['type']){case'text':if(_0x51ff49['add']=_0x51ff49['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51ff49['remove']=_0x51ff49['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51ff49['add']&&''!=_0x51ff49['remove']){_0x33b0ab['push']({'type':'replace','content':Tt(_0x3225ca,'REPLACE_TEXT',['\x22'+_0x51ff49['remove']+'\x22','\x22'+_0x51ff49['add']+'\x22'])});continue;}if(null!=_0x51ff49['add']['match'](/^ +$/)){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['add']['length']))});continue;}if(null!=_0x51ff49['remove']['match'](/^ +$/)){_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['remove']['length']))});continue;}if(''!=_0x51ff49['add']){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0','\x22'+_0x51ff49['add']+'\x22')});continue;}_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0','\x22'+_0x51ff49['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addContainer':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Split:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeContainer':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Merge:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addFormat':_0x232c20['push'](_0x51ff49['key']);continue;case'removeFormat':_0xcac0a6['push'](_0x51ff49['key']);continue;default:_0x33b0ab['push'](_0x51ff49);}if(_0x232c20['length']){const _0x1c7c11=_0x232c20['map'](_0x5dcf23=>this['_attributeLabels']['has'](_0x5dcf23)?this['_attributeLabels']['get'](_0x5dcf23):_0x5dcf23)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x1c7c11)});}if(_0xcac0a6['length']){const _0x4c1d5b=_0xcac0a6['map'](_0x51cab7=>this['_attributeLabels']['has'](_0x51cab7)?this['_attributeLabels']['get'](_0x51cab7):_0x51cab7)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c1d5b)});}return _0x33b0ab;}['_handleCustomCallbackDescription'](_0xefef9d){for(const _0x3a7565 of this['_customCallbacks']){const _0x29bb29=_0x3a7565(_0xefef9d);if(_0x29bb29&&'type'in _0x29bb29)return _0x29bb29;}}['_handleAttributeSuggestionDescription'](_0x4a79ab,_0x511a36){const _0xed0815=_0x511a36['data'],_0x252cdd=void 0x0===_0xed0815['newValue']?'removeFormat':'addFormat';_0x4a79ab['push']({'type':_0x252cdd,'key':_0xed0815['key']});}['_handleRenameSuggestionDescription'](_0x42264a,_0x50e134){_0x42264a['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50e134['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ad2e2,_0x302342,_0x2ec368){if(this['_addDescriptionItems'](_0x3ad2e2,_0x302342),_0x2ec368&&_0x2ec368['getFirstRange']()&&!_0x302342['getFirstRange']()['end']['isEqual'](_0x2ec368['getFirstRange']()['start'])){const _0x22f79c=_0x3ad2e2[_0x3ad2e2['length']-0x1],_0x5ce050='insertion'==_0x302342['type']?'add':'remove';_0x22f79c&&'text'==_0x22f79c['type']&&(_0x22f79c[_0x5ce050]+='\x0a');}}}class TrackChangesAIAssistant extends _0x203e6b{['afterInit'](){const _0x5ee61e=this['editor'],_0x35f327=_0x5ee61e['plugins']['get']('TrackChangesEditing');_0x5ee61e['commands']['get']('showAIAssistant')&&_0x35f327['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x203e6b{['afterInit'](){const _0x4425af=this['editor'],_0xe6095=_0x4425af['plugins']['get']('TrackChangesEditing');_0x4425af['commands']['get']('toggleAi')&&_0xe6095['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x203e6b{['afterInit'](){const _0x27c643=this['editor'],_0x1c7371=_0x27c643['plugins']['get']('TrackChangesEditing');_0x27c643['commands']['get']('aiQuickAction')&&_0x1c7371['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x203e6b{['afterInit'](){const _0x1d68f7=this['editor'],_0x4a59dc=_0x1d68f7['locale'];if(!_0x1d68f7['plugins']['has']('AlignmentEditing'))return;const _0x28c2c4=_0x1d68f7['plugins']['get']('TrackChangesEditing');_0x28c2c4['enableDefaultAttributesIntegration']('alignment'),_0x28c2c4['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4a59dc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x700f2a=this['editor'],_0xca5749=_0x700f2a['locale'];_0x700f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f6876=>{if('formatBlock'!=_0x4f6876['type'])return;const {data:_0x470658}=_0x4f6876;if(_0x470658&&'alignment'==_0x470658['commandName']){const _0x5161db=_0x470658['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0xca5749,'*Format:*\x20%0',function(_0x30d21b){switch(_0x30d21b){case'left':return Tt(_0xca5749,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0xca5749,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0xca5749,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0xca5749,'FORMAT_JUSTIFY_TEXT');}}(_0x5161db))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x203e6b{['afterInit'](){const _0x4ff137=this['editor'],_0x1ed1a1=_0x4ff137['plugins']['get']('TrackChangesEditing'),_0x3a5e26=_0x4ff137['locale'];for(const _0x40eaf2 of _t){if(!_0x4ff137['plugins']['has'](_0x40eaf2))continue;const _0x2e1cb0=_0x40eaf2['slice'](0x0,-0x7)['toLowerCase'](),_0x4c6b01='FORMAT_'+_0x2e1cb0['toUpperCase']();_0x1ed1a1['enableDefaultAttributesIntegration'](_0x2e1cb0),_0x1ed1a1['descriptionFactory']['registerAttributeLabel'](_0x2e1cb0,Tt(_0x3a5e26,_0x4c6b01));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c60e9=this['editor'],_0x1e860d=_0x4c60e9['locale'],_0x9053a6=_0x4c60e9['plugins']['get']('TrackChangesEditing');function _0x13ec36(_0x4a8df9,_0x4fba11){_0x9053a6['descriptionFactory']['registerDescriptionCallback'](_0x3674aa=>{if('formatInline'!=_0x3674aa['type'])return;const {data:_0x45b25a}=_0x3674aa;return _0x45b25a&&_0x45b25a['commandName']===_0x4a8df9?_0x45b25a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1e860d,'*Format:*\x20%0',_0x4fba11)}:{'type':'format','content':Tt(_0x1e860d,'*Remove\x20format:*\x20%0',_0x4fba11)}:void 0x0;});}_0x13ec36('bold',Tt(_0x1e860d,'FORMAT_BOLD')),_0x13ec36('italic',Tt(_0x1e860d,'FORMAT_ITALIC')),_0x13ec36('underline',Tt(_0x1e860d,'FORMAT_UNDERLINE')),_0x13ec36('code',Tt(_0x1e860d,'FORMAT_CODE')),_0x13ec36('strikethrough',Tt(_0x1e860d,'FORMAT_STRIKETHROUGH')),_0x13ec36('subscript',Tt(_0x1e860d,'FORMAT_SUBSCRIPT')),_0x13ec36('superscript',Tt(_0x1e860d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x203e6b{['afterInit'](){const _0x579510=this['editor'],_0x37cd0b=_0x579510['locale'];if(!_0x579510['plugins']['has']('BlockQuoteEditing'))return;const _0x570c1e=_0x579510['plugins']['get']('TrackChangesEditing'),_0x5014dc=this['editor']['commands']['get']('blockQuote');_0x570c1e['enableCommand']('blockQuote',(_0x1d2800,_0x44ee74={})=>{const _0xdb01cb=this['editor']['model']['document']['selection'],_0xde64a3=_0x44ee74&&void 0x0!==_0x44ee74['forceValue']?_0x44ee74['forceValue']:!_0x5014dc['value'];let _0x225d49=[];if(_0xde64a3){const _0x5d51e8=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0xf83566=>pt(_0xf83566)||function(_0x4663fc,_0x27adc6){const _0x24f5d8=_0x27adc6['createContext'](_0x4663fc['parent']);if(!_0x27adc6['checkChild'](_0x24f5d8,'blockQuote'))return!0x1;if(!_0x27adc6['checkChild'](_0x24f5d8['push']('blockQuote'),_0x4663fc))return!0x1;return!0x0;}(_0xf83566,this['editor']['model']['schema']));_0x225d49=ft(_0x5d51e8,_0x579510['model']);}else{const _0x288000=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0x13ae09=>pt(_0x13ae09));_0x225d49=ft(_0x288000,_0x579510['model']);}_0x579510['model']['change'](()=>{for(const _0x286f78 of _0x225d49)_0x570c1e['markBlockFormat'](_0x286f78,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xde64a3}]});});}),_0x570c1e['descriptionFactory']['registerDescriptionCallback'](_0x2c75de=>{const {data:_0x29a76c}=_0x2c75de;if(_0x29a76c&&'blockQuote'==_0x29a76c['commandName']){const _0x1520fb=Tt(_0x37cd0b,'ELEMENT_BLOCK_QUOTE');return _0x29a76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x37cd0b,'*Set\x20format:*\x20%0',_0x1520fb)}:{'type':'format','content':Tt(_0x37cd0b,'*Remove\x20format:*\x20%0',_0x1520fb)};}});}}function pt(_0x5f421a){return'blockQuote'==_0x5f421a['parent']['name'];}class TrackChangesBookmark extends _0x203e6b{['afterInit'](){const _0x1d140e=this['editor'],_0x4fb4a2=_0x1d140e['locale'],_0xf60d9e=_0x1d140e['plugins']['get']('TrackChangesEditing');_0x1d140e['plugins']['has']('BookmarkEditing')&&(_0xf60d9e['enableCommand']('insertBookmark'),_0xf60d9e['enableDefaultAttributesIntegration']('updateBookmark'),_0xf60d9e['descriptionFactory']['registerDescriptionCallback'](_0x50235d=>{if('insertion'!=_0x50235d['type']&&'deletion'!=_0x50235d['type']&&'attribute'!=_0x50235d['type'])return;const _0x491d99=_0x50235d['getContainedElement']();if(null==_0x491d99)return;if(!_0x491d99['is']('element','bookmark'))return;const _0x3b1917=_0x491d99['getAttribute']('bookmarkId');if('insertion'==_0x50235d['type'])return{'type':'insertion','content':Tt(_0x4fb4a2,'*Insert:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50235d['type'])return{'type':'deletion','content':Tt(_0x4fb4a2,'*Remove:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};const {data:_0x321011}=_0x50235d;if(!_0x321011||'bookmarkId'!=_0x321011['key'])return;return{'type':'format','content':Tt(_0x4fb4a2,'*Set\x20bookmark:*\x20%0','\x22'+_0x321011['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x203e6b{['afterInit'](){const _0x595d1c=this['editor'];_0x595d1c['plugins']['has']('CaseChange')&&(_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x203e6b{['afterInit'](){const _0x337df5=this['editor'];_0x337df5['commands']['get']('ckbox')&&_0x337df5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x203e6b{['afterInit'](){const _0xe4d1a4=this['editor'];if(!_0xe4d1a4['plugins']['has']('CodeBlock'))return;const _0x59d792=_0xe4d1a4['plugins']['get']('TrackChangesEditing'),_0x4e2e1c=_0xe4d1a4['locale'],_0x330c4d=_0xe4d1a4['config']['get']('codeBlock')['languages'],_0x43fc07=_0xe4d1a4['commands']['get']('codeBlock');_0x59d792['enableCommand']('indentCodeBlock'),_0x59d792['enableCommand']('outdentCodeBlock'),_0x59d792['enableCommand']('codeBlock',(_0x48d200,_0xf92f13={})=>{const _0x5c02c8=_0xe4d1a4['model'],_0x5e862a=_0xe4d1a4['model']['document']['selection'],_0x216bdb=_0xf92f13&&void 0x0!==_0xf92f13['forceValue']?_0xf92f13['forceValue']:!_0x43fc07['value'];let _0x3c6445;_0xf92f13['language']||(_0xf92f13['language']=_0x330c4d[0x0]['language']),_0x3c6445=_0x216bdb?Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x47e06a=>Ct(_0x47e06a)||function(_0x4e1f7f,_0x3092a){if(_0x4e1f7f['is']('rootElement')||_0x3092a['isLimit'](_0x4e1f7f))return!0x1;return _0x3092a['checkChild'](_0x4e1f7f['parent'],'codeBlock');}(_0x47e06a,_0x5c02c8['schema'])):Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x42f0da=>Ct(_0x42f0da));const _0x467daa=ft(_0x3c6445,_0x5c02c8);_0x5c02c8['change'](()=>{for(const _0x5e609f of _0x467daa)_0x59d792['markBlockFormat'](_0x5e609f,{'commandName':'codeBlock','commandParams':[{..._0xf92f13,'forceValue':_0x216bdb}],'formatGroupId':'blockName'});});}),(_0x59d792['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ea565=>Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',_0x4ea565)),_0x59d792['descriptionFactory']['registerDescriptionCallback'](_0xbfe060=>{if('formatBlock'!=_0xbfe060['type'])return;const _0x217330=_0x4e2e1c['t'],{data:_0x1036a1}=_0xbfe060;if(!_0x1036a1||'codeBlock'!=_0x1036a1['commandName'])return;const _0x358181=_0x1036a1['commandParams'][0x0]['language'],_0x717c2a=_0x217330(_0x330c4d['find'](_0x54a427=>_0x54a427['language']===_0x358181)['label'])['toLowerCase']();return _0x1036a1['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4e2e1c,'*Set\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x717c2a+')')}:{'type':'format','content':Tt(_0x4e2e1c,'*Remove\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x414b1b){return'codeBlock'==_0x414b1b['name'];}class TrackChangesComments extends _0x203e6b{['afterInit'](){const _0x17a6ca=this['editor'];if(!_0x17a6ca['plugins']['has']('CommentsEditing'))return;_0x17a6ca['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x203e6b{static get['requires'](){return[at];}['init'](){const _0x56a41e=this['editor'],_0x592345=_0x56a41e['plugins']['get']('TrackChangesEditing');_0x592345['enableCommand']('delete');const _0x65e4bf=_0x56a41e['commands']['get']('deleteForward');_0x592345['enableCommand']('deleteForward',(_0x1fab1a,_0x2a4b70={})=>{const _0x12cc7c=_0x56a41e['model']['createSelection'](_0x56a41e['model']['document']['selection']);_0x12cc7c['isCollapsed']&&_0x56a41e['model']['modifySelection'](_0x12cc7c,{'direction':'forward','unit':_0x2a4b70['unit']});const _0x5ceda3=_0x12cc7c['getFirstRange'](),_0xfcdb9f=_0x4c6b54['fromRange'](_0x5ceda3);let _0x39c640;_0x1fab1a(_0x2a4b70),_0x39c640='$graveyard'==_0xfcdb9f['root']['rootName']?_0x56a41e['model']['createRange'](_0x5ceda3['start']):_0x56a41e['model']['createRange'](_0xfcdb9f['start'],_0xfcdb9f['end']),_0xfcdb9f['detach'](),_0x56a41e['model']['enqueueChange'](_0x65e4bf['buffer']['batch'],_0x54bd0e=>{_0x65e4bf['buffer']['lock'](),_0x54bd0e['setSelection'](_0x54bd0e['createRange'](_0x39c640['end'])),_0x65e4bf['buffer']['unlock']();});});}}class TrackChangesList extends _0x203e6b{['afterInit'](){const _0x104654=this['editor'];if(!_0x104654['plugins']['has']('ListEditing'))return;const _0x24f731=_0x104654['locale'],_0x29cc3a=_0x104654['plugins']['get']('TrackChangesEditing'),_0x2be960=_0x104654['plugins']['has']('TodoListEditing'),_0x33673f=!!_0x104654['config']['get']('list.multiBlock');function _0x56661f(_0xcf652a){return{'type':'format','content':''+Tt(_0x24f731,'*Set\x20format:*\x20%0',_0xcf652a)};}function _0xe6cef7(_0x344764){return{'type':'format','content':''+Tt(_0x24f731,'*Remove\x20format:*\x20%0',_0x344764)};}_0x29cc3a['enableDefaultAttributesIntegration']('numberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('bulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customNumberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customBulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('indentList'),_0x29cc3a['enableDefaultAttributesIntegration']('outdentList'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33673f&&(_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2be960&&(_0x29cc3a['enableDefaultAttributesIntegration']('todoList'),_0x29cc3a['enableDefaultAttributesIntegration']('checkTodoList'),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x1a101a=>{const {data:_0x44af8f}=_0x1a101a;if(_0x44af8f&&'todoListChecked'==_0x44af8f['key'])return{'type':'format','content':_0x44af8f['newValue']?Tt(_0x24f731,'*Check\x20item*'):Tt(_0x24f731,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a8701=>{if(_0x2a8701['batch']['isUndo'])return!0x1;let _0xe4f725=!0x1;const _0x272ef3=_0x29cc3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563b96=>'todoListChecked'===_0x29cc3a['_getAttributeKey'](_0x563b96));for(const _0x478fab of _0x272ef3){'todo'!=_0x478fab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29cc3a['_findSuggestions'](_0x478fab['getFirstRange'](),'attribute')['find'](_0x2ac3ce=>'listType'===_0x29cc3a['_getAttributeKey'](_0x2ac3ce['suggestion']))||(_0x2a8701['removeMarker'](_0x478fab['getFirstMarker']()),_0xe4f725=!0x0));}return _0xe4f725;})),_0x29cc3a['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x24f731,'FORMAT_INDENT'));const _0x14d2ac={'type':'format','content':''};_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x374a0a=>{const {data:_0x371823}=_0x374a0a;if(!_0x371823||'listType'!=_0x371823['key'])return;let _0xe7231a=_0x374a0a['head'];for(;_0xe7231a;){if(_0xe7231a['data']&&(('listStyle'==_0xe7231a['data']['key']||'listMarkerStyle'==_0xe7231a['data']['key'])&&(_0xe7231a['data']['newValue']&&'default'!=_0xe7231a['data']['newValue']||'default'!=_0xe7231a['data']['oldValue']&&!_0x371823['newValue'])||!_0x33673f&&_0xe7231a['data']['key']==Bt))return _0x14d2ac;_0xe7231a=_0xe7231a['next'];}if(null==_0x371823['newValue'])switch(_0x371823['oldValue']){case'bulleted':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}switch(_0x371823['newValue']){case'bulleted':return _0x56661f(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56661f(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56661f(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x51341c=>{const {data:_0x1cd3a6}=_0x51341c;if(_0x1cd3a6&&'listIndent'==_0x1cd3a6['key'])return null==_0x1cd3a6['newValue']||null==_0x1cd3a6['oldValue']&&0x0==_0x1cd3a6['newValue']?_0x14d2ac:void 0x0;}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x4ee13c=>{if('attribute'!=_0x4ee13c['type'])return;const {data:_0x47edbe}=_0x4ee13c;if(!_0x47edbe||'listItemId'!=_0x47edbe['key'])return;const _0x1ec3da=kt(_0x4ee13c);return'newValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Split:*\x20list\x20item')}:_0x14d2ac;}),_0x104654['model']['document']['registerPostFixer'](_0x51333d=>this['listItemIdFixer'](_0x51333d)),_0x104654['model']['document']['registerPostFixer'](_0x1d2a85=>this['noTrackChangesFixer'](_0x1d2a85)),_0x104654['model']['document']['on']('change:data',(_0x31878d,_0x42df03)=>{if(_0x42df03['isUndo']||!_0x42df03['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x29db7d){if(_0x29db7d['batch']['isUndo']||!_0x29db7d['batch']['isLocal'])return!0x1;let _0x523f8f=!0x1;const _0x411127=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27fc03=>_0x27fc03['data']&&'listItemId'==_0x27fc03['data']['key'])['filter'](_0x9e6cb2=>_0x9e6cb2['data']['newValue']&&_0x9e6cb2['data']['oldValue']);for(const _0x3fc03f of _0x411127)kt(_0x3fc03f)||(_0x29db7d['removeMarker'](_0x3fc03f['getFirstMarker']()),_0x523f8f=!0x0);return _0x523f8f;}['noTrackChangesFixer'](_0x29f9dd){if(_0x29f9dd['batch']['isUndo']||!_0x29f9dd['batch']['isLocal'])return!0x1;const _0x218419=this['editor']['model']['document']['differ'],_0x394a66=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x394a66['trackChangesCommand']['value'])return!0x1;let _0x1ce0df=!0x1;const _0xaaa6b=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x444492=_0x218419['getChanges']()['filter'](_0x2b1c87=>'attribute'==_0x2b1c87['type'])['filter'](_0x5bcbef=>_0xaaa6b['has'](_0x5bcbef['attributeKey']));if(0x0==_0x444492['length'])return _0x1ce0df;const _0x78f407=new Set(_0x218419['getMarkersToAdd']()['filter'](_0x3e5ac4=>{if(!_0x3e5ac4['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x24b0a1=_0x4f787f(_0x3e5ac4['name'])['subType']['split']('|')[0x0];return _0xaaa6b['has'](_0x24b0a1);})['map'](_0x4fd549=>_0x4f787f(_0x4fd549['name'])['id']));for(const _0x1e23f7 of _0x444492){const _0x3723e7=_0x394a66['_findSuggestions'](_0x1e23f7['range'],'attribute')['filter'](_0x2684c1=>{if(_0x2684c1['meta']['isNextTo'])return!0x1;if(_0x78f407['has'](_0x2684c1['suggestion']['id']))return!0x1;const _0x106f10=_0x394a66['_getAttributeKey'](_0x2684c1['suggestion']);return _0xaaa6b['has'](_0x106f10);})['map'](_0x2eef70=>_0x2eef70['suggestion']);if(_0x3723e7['length']){for(const _0x31296c of _0x3723e7)_0x29f9dd['removeMarker'](_0x31296c['getFirstMarker']());_0x1ce0df=!0x0;}}return _0x1ce0df;}['assureChains'](){const _0x98ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3ce92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e591;const _0x153d8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55e455=>{if(_0x55e455['data']['oldRange']||!_0x55e455['data']['newRange'])return null;if(!_0x55e455['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x281ea5}=_0x4f787f(_0x55e455['name']);if(!_0x98ad['hasSuggestion'](_0x281ea5))return null;const _0x5cdca1=_0x98ad['getSuggestion'](_0x281ea5);return _0xb3ce92['includes'](_0x5cdca1['data']['key']);})['map'](_0x3cc939=>{const {id:_0x27af3e}=_0x4f787f(_0x3cc939['name']),_0x2ed59f=_0x98ad['getSuggestion'](_0x27af3e);return _0x57e591=_0x2ed59f['attributes']['groupId'],_0x2ed59f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x153d8f['size'])return;const _0x1f32ce=_0x98ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42158f=>'attribute'==_0x42158f['type']&&_0x42158f['data']&&_0xb3ce92['includes'](_0x42158f['data']['key'])&&_0x42158f['attributes']['groupId']!=_0x57e591)['map'](_0xf6a803=>({'listItem':_0xf6a803['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf6a803['attributes']['groupId']})),_0x14018d=new Set();for(const {groupId:_0x57bd18,listItem:_0x149713}of _0x1f32ce)_0x153d8f['has'](_0x149713)&&_0x14018d['add'](_0x57bd18);for(const _0x2f5cd8 of _0x98ad['getSuggestions']())_0x14018d['has'](_0x2f5cd8['attributes']['groupId'])&&_0x2f5cd8['setAttribute']('groupId',_0x57e591);}['_supportLegacySuggestions'](){const _0x562b72=this['editor'],_0x701f37=_0x562b72['locale'],_0x1fd51d=_0x562b72['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fd51d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42c29a,_0x4c9e38){const _0x4f1c51=[];for(let _0x10882d of _0x42c29a)_0x10882d['start']['nodeAfter']===_0x10882d['end']['parent']&&(_0x10882d=_0x562b72['model']['createRange'](_0x562b72['model']['createPositionAt'](_0x10882d['start']['nodeAfter'],0x0))),_0x4f1c51['push'](_0x10882d);_0x562b72['model']['change'](_0x4644e9=>{const _0x2f5ffe=_0x562b72['model']['document']['selection'],_0x36433b=Array['from'](_0x2f5ffe['getRanges']())['map'](_0x3a951d=>_0x4c6b54['fromRange'](_0x3a951d));_0x4644e9['setSelection'](_0x4f1c51),_0x562b72['commands']['get'](_0x4c9e38['commandName'])['refresh'](),_0x4c9e38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x562b72['execute'](_0x4c9e38['commandName'],..._0x4c9e38['commandParams']),_0x4644e9['setSelection'](_0x36433b);for(const _0x4ddb03 of _0x36433b)_0x4ddb03['detach']();});}),_0x1fd51d['descriptionFactory']['registerElementLabel'](function(_0x3df6ae){const _0x358381=!_0x562b72['model']['schema']['isObject'](_0x3df6ae),_0x4f8761=_0x3df6ae['previousSibling'],_0x5dcbad=_0x3df6ae['nextSibling'],_0x107fa9=_0x3df6ae['getAttribute']('listItemId'),_0x1c09c5=!_0x4f8761||_0x4f8761['getAttribute']('listItemId')!==_0x107fa9,_0x33453d=!_0x5dcbad||_0x5dcbad['getAttribute']('listItemId')!==_0x107fa9;return _0x358381&&Boolean(_0x107fa9)&&_0x1c09c5&&_0x33453d;},_0x4f67b4=>Tt(_0x701f37,'ELEMENT_LIST_ITEM',_0x4f67b4));}['_registerLegacyDescription'](){const _0x5f5d00=this['editor'],_0x15ab9d=_0x5f5d00['locale'];function _0x8c46c1(_0x5326b1){const _0x1ef9df=_0x5f5d00['commands']['get']('bulletedList')['value'],_0x275837=_0x5f5d00['commands']['get']('numberedList')['value'];return'numberedList'===_0x5326b1?_0x1ef9df:_0x275837;}_0x5f5d00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497079){if('formatBlock'!=_0x497079['type'])return;const {data:_0x20c87d}=_0x497079;if(!_0x20c87d)return;let _0x4bd86c,_0x4d0a71,_0x560604,_0x1964d6;switch(_0x20c87d['commandName']){case'bulletedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4bd86c='*Indent:*\x20%0',_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4bd86c=function(_0x259062){const _0x4c7b05=_0x259062['getFirstRange']();let _0x41be49=_0x4c7b05['start']['nodeAfter'];for(;_0x41be49&&_0x4c7b05['containsItem'](_0x41be49);){if(_0x41be49['getAttribute']('listIndent')>0x0)return!0x1;_0x41be49=_0x41be49['nextSibling'];}return!0x0;}(_0x497079)?Tt(_0x15ab9d,'*Format:*\x20remove\x20from\x20%0',Tt(_0x15ab9d,function(_0x5b3d6e){return'ELEMENT_'+_0x5b3d6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497079))):Tt(_0x15ab9d,'*Outdent:*\x20%0',Tt(_0x15ab9d,'ELEMENT_LIST_ITEM')),_0x4d0a71={'type':'format','content':_0x4bd86c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20c87d['multipleBlocks']&&(_0x4bd86c='*Merge:*\x20%0',_0x4d0a71={'type':'deletion','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))});}return _0x4d0a71;});}}function kt(_0x27aebb){let _0x584d6b=_0x27aebb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x584d6b;){const _0x16899b=_0x584d6b['getAttribute']('listItemId');if(!_0x16899b)return!0x1;if(_0x16899b==_0x27aebb['data']['newValue'])return'newValue';if(_0x16899b==_0x27aebb['data']['oldValue'])return'oldValue';_0x584d6b=_0x584d6b['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4384f7=this['editor']['config']['get']('list.properties'),_0xf08031=this['editor']['plugins']['get']('TrackChangesEditing');_0x4384f7['styles']&&_0xf08031['enableDefaultAttributesIntegration']('listStyle'),_0x4384f7['reversed']&&_0xf08031['enableDefaultAttributesIntegration']('listReversed'),_0x4384f7['startIndex']&&_0xf08031['enableDefaultAttributesIntegration']('listStart');const _0x4d3629={'type':'format','content':''};_0xf08031['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ca609=this['editor']['locale'];_0xf08031['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x4ca609,'FORMAT_LIST_REVERSED')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x2ba2b2=>{const {data:_0x295b91}=_0x2ba2b2;if(_0x295b91&&'listReversed'==_0x295b91['key'])return null==_0x295b91['newValue']||0x0==_0x295b91['newValue']&&null==_0x295b91['oldValue']?_0x4d3629:void 0x0;}),_0xf08031['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x4ca609,'FORMAT_LIST_START')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x5c8d25=>{const {data:_0x6c6385}=_0x5c8d25;if(_0x6c6385&&'listStart'==_0x6c6385['key'])return null==_0x6c6385['newValue']||0x1==_0x6c6385['newValue']&&null==_0x6c6385['oldValue']?_0x4d3629:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14b916=>{if(_0x14b916['batch']['isUndo'])return!0x1;let _0x1cb123=!0x1;const _0x2906f3=_0xf08031['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281945=>{const _0x28d016=_0xf08031['_getAttributeKey'](_0x281945);return'listStart'==_0x28d016||'listReversed'==_0x28d016;});for(const _0x1d2156 of _0x2906f3){const _0x5537f2=_0x1d2156['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5537f2||'customNumbered'==_0x5537f2)continue;_0xf08031['_findSuggestions'](_0x1d2156['getFirstRange'](),'attribute')['find'](_0x54917b=>'listType'==_0xf08031['_getAttributeKey'](_0x54917b['suggestion']))||(_0x14b916['removeMarker'](_0x1d2156['getFirstMarker']()),_0x1cb123=!0x0);}return _0x1cb123;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22d7a1){const _0x50644f=this['editor']['locale'],{data:_0x2b7976}=_0x22d7a1,_0x4239fa={'type':'format','content':''};if(!_0x2b7976||'listStyle'!=_0x2b7976['key'])return;if(!_0x2b7976['oldValue'])return'default'==_0x2b7976['newValue']?_0x4239fa:{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};if(!_0x2b7976['newValue']){if('default'==_0x2b7976['oldValue'])return _0x4239fa;let _0x50505a=_0x22d7a1['head'];for(;_0x50505a;){if(_0x50505a['data']&&'listType'==_0x50505a['data']['key']&&_0x50505a['data']['newValue'])return _0x4239fa;_0x50505a=_0x50505a['next'];}return{'type':'format','content':''+Tt(_0x50644f,'*Remove\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['oldValue'])))};}if('default'!=_0x2b7976['newValue'])return{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};let _0x5f20af=_0x22d7a1['head'];for(;_0x5f20af;){if(_0x5f20af['data']&&'listType'==_0x5f20af['data']['key']&&_0x5f20af['data']['newValue']&&_0x5f20af['data']['oldValue'])return _0x4239fa;_0x5f20af=_0x5f20af['next'];}return{'type':'format','content':Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,'ELEMENT_'+_0x22d7a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27c597=this['editor'],_0x1fffde=_0x27c597['locale'];_0x27c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43dfcb=>{if('formatBlock'!=_0x43dfcb['type'])return;const {data:_0x20fcc9}=_0x43dfcb;if(!_0x20fcc9)return;let _0x5e21ed,_0x23067f;switch(_0x20fcc9['commandName']){case'listStyle':_0x5e21ed='*Change\x20to:*\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,Tt(_0x1fffde,this['_getTranslationKeyForListStyle'](_0x20fcc9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e21ed=_0x20fcc9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed)};break;case'listStart':_0x5e21ed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,_0x20fcc9['commandParams'][0x0]['startIndex'])};}return _0x23067f;});}['_getTranslationKeyForListStyle'](_0x479f09){return'ELEMENT_'+function(_0x45ed41){if(Lt['includes'](_0x45ed41))return'bulleted';if(It['includes'](_0x45ed41))return'numbered';return null;}(_0x479f09)['toUpperCase']()+'_LIST_'+_0x479f09['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 _0x203e6b{['afterInit'](){const _0x10aab6=this['editor'];_0x10aab6['commands']['get']('emoji')&&_0x10aab6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x203e6b{static get['requires'](){return[lt];}['init'](){const _0x5e9b5e=this['editor'],_0x16d2a5=_0x5e9b5e['plugins']['get']('TrackChangesEditing'),_0x168ba9=_0x5e9b5e['commands']['get']('enter');_0x16d2a5['enableCommand']('enter',()=>{_0x5e9b5e['model']['change'](_0x2e230e=>{const _0x1c7e93=_0x5e9b5e['model']['document']['selection'],_0x18160c=_0x1c7e93['getFirstPosition'](),_0x52b751=_0x4c6b54['fromRange'](_0x1c7e93['getFirstRange']());if(_0x168ba9['enterBlock'](_0x2e230e)){const _0x1e194d=_0x5e9b5e['model']['createPositionAt'](_0x18160c['parent']['nextSibling'],0x0),_0x41bc41=_0x2e230e['createRange'](_0x18160c,_0x1e194d);_0x16d2a5['markInsertion'](_0x41bc41);}else _0x2e230e['setSelection'](_0x2e230e['createRange'](_0x52b751['end']));_0x52b751['detach'](),_0x168ba9['fire']('afterExecute',{'writer':_0x2e230e});});});}}class TrackChangesFindAndReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7dae51=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dae51['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7dae51['enableCommand']('findNext'),_0x7dae51['enableCommand']('findPrevious'),_0x7dae51['enableCommand']('replace'),_0x7dae51['enableCommand']('replaceAll');}['handleFindCommand'](_0x2963da,_0x3408d0,_0x2d14fe={}){const _0x1083c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2963da(_0x2be892=>{let _0x33c646=('string'==typeof _0x3408d0?_0x1083c9['findByTextCallback'](_0x3408d0,_0x2d14fe):_0x3408d0)(_0x2be892);Array['isArray'](_0x33c646)&&(_0x33c646={'results':_0x33c646,'searchText':'string'==typeof _0x3408d0?_0x3408d0:''});const _0x2eed8b=_0x33c646['results']['filter'](_0x76a001=>!0x1===this['_isInDeletionRange'](_0x76a001,_0x2be892['item']));return{..._0x33c646,'results':_0x2eed8b};},_0x2d14fe);}['_isInDeletionRange'](_0x56c964,_0x25cbb2){const _0x4075c1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['start']),this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['end']));for(const _0x38740d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4075c1['getIntersection'](_0x38740d['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x203e6b{['afterInit'](){const _0x3eb47c=this['editor']['locale'],_0x3778f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15ffdb,commandName:_0x31372f}of At)this['editor']['plugins']['has'](_0x15ffdb)&&_0x3778f5['enableDefaultAttributesIntegration'](_0x31372f);_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x3eb47c,'FORMAT_FONT_SIZE')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x3eb47c,'FORMAT_FONT_FAMILY')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x3eb47c,'FORMAT_FONT_COLOR')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x3eb47c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x931a92=this['editor'],_0x15be9a=_0x931a92['locale'];_0x931a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b3eb0=>{const _0x59b9fe=_0x15be9a['t'];if('formatInline'!=_0x5b3eb0['type'])return;const {data:_0x573625}=_0x5b3eb0;if(null!=_0x573625){if('fontSize'==_0x573625['commandName']){const _0x50eaa2=_0x573625['commandParams'][0x0]['value'];if(_0x50eaa2){const _0x4a7d57=_0x59b9fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e351b=>_0x3e351b['model']==_0x50eaa2)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20size:*\x20%0',_0x4a7d57)};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x573625['commandName']){const _0x13d00c=_0x573625['commandParams'][0x0]['value'];return _0x13d00c?{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20family:*\x20%0',_0x13d00c)}:{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x573625['commandName']){const _0x1cb26c=_0x573625['commandParams'][0x0]['value'];if(_0x1cb26c){const _0x342ab4=_0x513476(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29956d=>_0x29956d['model']==_0x1cb26c);let _0x450816=_0x1cb26c,_0x3da329='';return _0x342ab4&&(_0x450816=_0x342ab4['label'],_0x3da329=_0x59b9fe(_0x450816)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20color:*\x20%0',_0x3da329)['trim'](),'color':{'value':_0x1cb26c,'title':_0x3da329||_0x450816}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x573625['commandName']){const _0x3e96b6=_0x573625['commandParams'][0x0]['value'];if(_0x3e96b6){const _0x1c3bf0=_0x513476(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11f833=>_0x11f833['model']==_0x3e96b6);let _0x40679e=_0x3e96b6,_0x366420='';return _0x1c3bf0&&(_0x40679e=_0x1c3bf0['label'],_0x366420=_0x59b9fe(_0x40679e)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20background\x20color:*\x20%0',_0x366420)['trim'](),'color':{'value':_0x3e96b6,'title':_0x366420||_0x40679e}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x203e6b{['afterInit'](){const {plugins:_0x2b0347}=this['editor'];_0x2b0347['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2b0347['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x236ae7,plugins:_0x5417d7,commands:_0x434d23}=this['editor'],_0x4a55b2=_0x5417d7['get']('TrackChangesEditing');_0x434d23['get']('footnotesStyle')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x434d23['get']('footnotesStart')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStart'),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3e63c0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x57c125,commands:_0x187870}=this['editor'];_0x187870['get']('insertFootnote')&&_0x3e63c0['enableCommand']('insertFootnote'),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1b30f6=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_REF',_0x1b30f6)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x766278=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_DEFINITION',_0x766278)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x498a9e=>Tt(_0x57c125,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x498a9e));}}class TrackChangesFormatPainter extends _0x203e6b{['afterInit'](){const _0x49b387=this['editor'],_0x57b4be=_0x49b387['plugins']['get']('TrackChangesEditing'),_0x1c1bfb=_0x49b387['commands']['get']('copyFormat'),_0x48ef17=_0x49b387['commands']['get']('pasteFormat');_0x1c1bfb&&_0x48ef17&&(_0x57b4be['enableDefaultAttributesIntegration']('pasteFormat'),_0x57b4be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x122535=this['editor'],_0x25b498=_0x122535['locale'];_0x122535['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x431261=>{if('formatBlock'!=_0x431261['type']&&'formatInline'!=_0x431261['type'])return;const {data:_0x2773c0}=_0x431261;if(_0x2773c0&&'pasteFormat'===_0x2773c0['commandName']){const _0xe373f7=[],_0x1fa0f0=_0x2773c0['commandParams'][0x0];for(const [_0x393e5c,_0x1ef054]of Object['entries'](_0x1fa0f0))_0xe373f7['push'](bt(_0x122535,_0x393e5c,_0x1ef054));return _0xe373f7['length']?{'type':'format','content':Tt(_0x25b498,'*Set\x20format\x20to:*\x20%0',_0xe373f7['join'](',\x20'))}:{'type':'format','content':Tt(_0x25b498,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x251309,_0x1af8fc,_0x3f3518){const _0xfa81fe=_0x251309['locale']['t'],_0x16d771=_0x1af8fc['split'](/(?=[A-Z])/)['join']('\x20'),_0x18bd9f=_0xfa81fe(_0x16d771['charAt'](0x0)['toUpperCase']()+_0x16d771['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f3518)return _0x18bd9f;if('fontColor'===_0x1af8fc||'fontBackgroundColor'===_0x1af8fc){const _0x527175=_0x513476(_0x251309['config']['get']('fontColor.colors'))['find'](_0xa66089=>_0xa66089['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x527175?_0xfa81fe(_0x527175['label'])['toLowerCase']():_0x3f3518)+')';}if('fontSize'===_0x1af8fc&&isNaN(parseFloat(_0x3f3518))){const _0x46a413=_0x251309['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x251309['config']['get']('fontSize.options'))['find'](_0x42ca36=>_0x42ca36['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x46a413?_0xfa81fe(_0x46a413['title'])['toLowerCase']():_0x3f3518)+')';}return _0x18bd9f+'\x20('+_0x3f3518+')';}class TrackChangesGeneralHtmlSupport extends _0x203e6b{['afterInit'](){const _0x2a8cb3=this['editor'];if(!_0x2a8cb3['plugins']['has']('GeneralHtmlSupport')||!_0x2a8cb3['plugins']['has']('DataSchema'))return;const _0x45a30a=_0x2a8cb3['plugins']['get']('TrackChangesEditing'),_0x14b75d=_0x2a8cb3['plugins']['get']('GeneralHtmlSupport'),_0x317d5b=_0x2a8cb3['plugins']['get']('DataSchema'),_0x332a22=_0x2a8cb3['locale'],_0x1ced1e=new Set(['htmlContent']);for(const _0x1f305a of _0x317d5b['getDefinitionsForView'](/.*/,!0x1)){const _0x5d5c0c=_0x1f305a['view'];_0x1ced1e['add'](_0x14b75d['getGhsAttributeNameForElement'](_0x5d5c0c)),_0x1f305a['model']['startsWith']('html')&&_0x45a30a['descriptionFactory']['registerElementLabel'](_0x1f305a['model'],_0x42121a=>Tt(_0x332a22,'ELEMENT_HTML_TAG',[_0x42121a,_0x5d5c0c]));}_0x45a30a['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x332a22,'FORMAT_RAW_HTML_CONTENT')),_0x45a30a['descriptionFactory']['registerDescriptionCallback'](_0x4baba3=>{if('attribute'!==_0x4baba3['type'])return;const _0x1d686a=_0x4baba3['data'];if(!_0x1d686a||!_0x1ced1e['has'](_0x1d686a['key']))return;if('htmlContent'===_0x1d686a['key'])return{'type':'format','content':Tt(_0x332a22,'*Change\x20%0\x20content*',Tt(_0x332a22,'ELEMENT_RAW_HTML'))};const {setItems:_0x1c927f,removeItems:_0x27b978}=function(_0x3a24d7,_0x4ce8c7,_0x37423c){const _0x75aaee=[],_0x8131b5=[],_0x920514=_0x3a24d7['styles']??{},_0x561ae0=_0x4ce8c7['styles']??{};for(const _0x2ba845 of new Set([...Object['keys'](_0x920514),...Object['keys'](_0x561ae0)]))_0x920514[_0x2ba845]!==_0x561ae0[_0x2ba845]&&(void 0x0===_0x561ae0[_0x2ba845]?_0x8131b5['push'](_0x2ba845):_0x75aaee['push'](_0x2ba845+'\x20('+_0x561ae0[_0x2ba845]+')'));const _0x23df27=Tt(_0x37423c,'FORMAT_HTML_CLASS'),_0x54d292=new Set(_0x3a24d7['classes']??[]),_0x49beb0=new Set(_0x4ce8c7['classes']??[]),_0x346d41=[..._0x49beb0]['some'](_0x554b90=>!_0x54d292['has'](_0x554b90)),_0x44b278=[..._0x54d292]['some'](_0x41efae=>!_0x49beb0['has'](_0x41efae));_0x346d41&&_0x75aaee['push'](_0x23df27),_0x44b278&&_0x8131b5['push'](_0x23df27);const _0x1ff27e=Tt(_0x37423c,'FORMAT_HTML_ATTRIBUTE'),_0x1c03db=_0x3a24d7['attributes']??{},_0xae58e1=_0x4ce8c7['attributes']??{};let _0x57cd16=!0x1,_0x13cce7=!0x1;for(const _0x4dc515 of new Set([...Object['keys'](_0x1c03db),...Object['keys'](_0xae58e1)]))_0x1c03db[_0x4dc515]!==_0xae58e1[_0x4dc515]&&(void 0x0===_0xae58e1[_0x4dc515]?_0x13cce7=!0x0:_0x57cd16=!0x0);return _0x57cd16&&_0x75aaee['push'](_0x1ff27e),_0x13cce7&&_0x8131b5['push'](_0x1ff27e),{'setItems':_0x75aaee,'removeItems':_0x8131b5};}(_0x1d686a['oldValue']??{},_0x1d686a['newValue']??{},_0x332a22);if(!_0x1c927f['length']&&!_0x27b978['length'])return;const _0x488892=[];return _0x1c927f['length']&&_0x488892['push'](Tt(_0x332a22,'*Set\x20format:*\x20%0',_0x1c927f['join'](',\x20'))),_0x27b978['length']&&_0x488892['push'](Tt(_0x332a22,'*Remove\x20format:*\x20%0',_0x27b978['join'](',\x20'))),{'type':'format','content':_0x488892['join']('\x0a')};});}}class TrackChangesHeading extends _0x203e6b{['_headingOptions'];['afterInit'](){const _0x89aecd=this['editor'];if(!_0x89aecd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x89aecd['config']['get']('heading.options');const _0x192e9d=_0x89aecd['locale'],_0xa42126=_0x89aecd['plugins']['get']('TrackChangesEditing');_0xa42126['enableDefaultAttributesIntegration']('heading');for(const _0x4aa454 of this['_headingOptions'])'paragraph'!=_0x4aa454['model']&&_0xa42126['descriptionFactory']['registerElementLabel'](_0x4aa454['model'],_0x43e589=>{const _0x2aec48=this['_getHeadingLevel'](_0x4aa454['model']);return null!==_0x2aec48?_0x3eedd2(_0x43e589,_0x2aec48):_0x41c1b3(_0x43e589,_0x4aa454['title']);});function _0x3eedd2(_0x4a020c,_0x1e7bf2){return Tt(_0x192e9d,'ELEMENT_HEADING',[_0x4a020c,_0x1e7bf2]);}function _0x41c1b3(_0x548c2b,_0x29d1eb){return Tt(_0x192e9d,'ELEMENT_HEADING_CUSTOM',[_0x548c2b,_0x29d1eb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31d017=this['editor'],_0x15026b=_0x31d017['locale'];function _0x403678(_0x1ff929,_0x242b8c){return Tt(_0x15026b,'ELEMENT_HEADING_CUSTOM',[_0x1ff929,_0x242b8c]);}_0x31d017['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33a5e9=>{if('formatBlock'!=_0x33a5e9['type'])return;const {data:_0x3696f7}=_0x33a5e9;if(_0x3696f7&&'heading'==_0x3696f7['commandName']){const _0x2e4cae=_0x3696f7['commandParams'][0x0]['value'],_0x25fc31=this['_getHeadingLevel'](_0x2e4cae);if(null!==_0x25fc31)return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',(_0x5295f0=0x1,_0x11f6ea=_0x25fc31,Tt(_0x15026b,'ELEMENT_HEADING',[_0x5295f0,_0x11f6ea])))};const _0x457992=this['_headingOptions']['find'](_0x540056=>_0x540056['model']===_0x2e4cae)['title'];return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',_0x403678(0x1,_0x457992))};}var _0x5295f0,_0x11f6ea;});}['_getHeadingLevel'](_0x35f761){const _0x3b2cb7=_0x35f761['match'](/^heading(\d+)/);if(_0x3b2cb7)return _0x3b2cb7[0x1];const _0x379281=this['_headingOptions']?.['find'](_0x3a04c4=>_0x3a04c4['model']==_0x35f761);if(_0x379281&&_0x379281['view']){const _0xd3c8eb=_0x379281['view'],_0xfe1e84=(_0xd3c8eb['name']??_0xd3c8eb)['match'](/^h(\d+)/);if(_0xfe1e84)return _0xfe1e84[0x1];}return null;}}class TrackChangesHighlight extends _0x203e6b{['afterInit'](){const _0x4ec07e=this['editor'];if(!_0x4ec07e['plugins']['has']('HighlightEditing'))return;const _0x592ede=_0x4ec07e['plugins']['get']('TrackChangesEditing'),_0x557e90=_0x4ec07e['locale'];_0x592ede['enableDefaultAttributesIntegration']('highlight'),_0x592ede['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x557e90,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309310=this['editor'],_0x3292ae=_0x309310['locale'];_0x309310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da7e3=>{if('formatInline'!=_0x5da7e3['type'])return;const {data:_0x3e4407}=_0x5da7e3;if(_0x3e4407&&'highlight'==_0x3e4407['commandName']){const _0x5d2efd=_0x3292ae['t'],_0x11df5e=_0x3e4407['commandParams'][0x0]['value'];if(_0x11df5e){const _0x386830=_0x309310['config']['get']('highlight.options')['find'](_0x50d8df=>_0x50d8df['model']==_0x11df5e),_0x3d308c=_0x5d2efd(_0x386830['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x3292ae,'*Set\x20highlight:*\x20%0',_0x3d308c),'color':{'value':_0x386830['color'],'title':_0x386830['title']}};}return{'type':'format','content':Tt(_0x3292ae,'*Remove\x20highlight*',Tt(_0x3292ae,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x203e6b{['afterInit'](){const _0x6c76d3=this['editor'];if(!_0x6c76d3['plugins']['has']('HorizontalLineEditing'))return;_0x6c76d3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x141ac5=_0x6c76d3['plugins']['get']('TrackChangesEditing'),_0x469ca2=_0x6c76d3['locale'];_0x141ac5['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf2a693=>Tt(_0x469ca2,'ELEMENT_HORIZONTAL_LINE',_0xf2a693));}}class TrackChangesHtmlEmbed extends _0x203e6b{['afterInit'](){const _0x26201e=this['editor'];if(!_0x26201e['plugins']['has']('HtmlEmbed'))return;const _0x5e09c1=_0x26201e['plugins']['get']('TrackChangesEditing'),_0x76ec34=_0x26201e['locale'];_0x5e09c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x5402ca=>Tt(_0x76ec34,'ELEMENT_HTML_EMBED',_0x5402ca)),_0x5e09c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e09c1['descriptionFactory']['registerDescriptionCallback'](_0x3dcd57=>{if('attribute'!=_0x3dcd57['type'])return;const {data:_0x1d973d}=_0x3dcd57;if(_0x1d973d&&'value'==_0x1d973d['key']&&_0x3dcd57['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x287e8d=Tt(_0x76ec34,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x76ec34,'*Change\x20%0\x20content*',_0x287e8d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x295bd3=this['editor'],_0x1844ed=_0x295bd3['locale'];_0x295bd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257160=>{if('formatBlock'!=_0x257160['type'])return;const {data:_0xfd7ee9}=_0x257160;if(_0xfd7ee9&&'htmlEmbed'==_0xfd7ee9['commandName']){const _0x42e236=Tt(_0x1844ed,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x1844ed,'*Change\x20%0\x20content*',_0x42e236)};}});}}class TrackChangesImage extends _0x203e6b{['afterInit'](){const _0x50e2c0=this['editor'];if(!_0x50e2c0['plugins']['has']('ImageEditing'))return;const _0x27034a=_0x50e2c0['plugins']['get']('TrackChangesEditing'),_0x30b96b=_0x50e2c0['plugins']['get']('ImageUtils'),_0x463e46=_0x50e2c0['locale'];_0x27034a['enableCommand']('insertImage'),_0x27034a['descriptionFactory']['registerElementLabel']('imageBlock',_0x43a08e=>Tt(_0x463e46,'ELEMENT_IMAGE',_0x43a08e)),_0x27034a['descriptionFactory']['registerElementLabel']('imageInline',_0xfe1258=>Tt(_0x463e46,'ELEMENT_INLINE_IMAGE',_0xfe1258)),_0x27034a['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x463e46,'ELEMENT_CAPTION')),_0x50e2c0['plugins']['has']('ImageUploadEditing')&&_0x27034a['enableCommand']('uploadImage'),_0x50e2c0['plugins']['has']('ImageBlockEditing')&&_0x50e2c0['plugins']['has']('ImageInlineEditing')&&(_0x27034a['enableCommand']('imageTypeInline',(_0x5da4e5,_0x50b244)=>{const _0x1d3cb7=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']);_0x50e2c0['model']['change'](()=>{_0x27034a['markBlockFormat'](_0x1d3cb7,{'commandName':'imageTypeInline','commandParams':[_0x50b244]},[],'convertBlockImageToInline');});}),_0x27034a['enableCommand']('imageTypeBlock',(_0x446b6c,_0xf03ece)=>{_0x50e2c0['model']['change'](_0x38b1e2=>{let _0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0x26a038=tt['fromPosition'](_0x331f8f['start'],'toPrevious'),_0x34c1bf=tt['fromPosition'](_0x331f8f['end'],'toNext');_0x27034a['forceDefaultExecution'](()=>_0x446b6c(_0xf03ece)),_0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0xe7b706=_0x38b1e2['createRange'](_0x26a038,_0x34c1bf);_0x26a038['detach'](),_0x34c1bf['detach'](),_0x27034a['markBlockFormat'](_0x3ab7b5,{'commandName':'imageTypeInline','commandParams':[_0xf03ece]},[],'convertInlineImageToBlock'),_0xe7b706['start']['isBefore'](_0x331f8f['start'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0xe7b706['start'],_0x331f8f['start']),'convertInlineImageToBlock'),_0x331f8f['end']['isBefore'](_0xe7b706['end'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0x331f8f['end'],_0xe7b706['end']),'convertInlineImageToBlock');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x27034a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x465dc7])=>{const _0x1e70f1=_0x27034a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4829a2=_0x465dc7['start'],_0xa81b7c=_0x465dc7['end'];const _0x2a512f=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0x4829a2,'backward'),_0x210364=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0xa81b7c,'forward');_0x2a512f['isCollapsed']&&(_0x4829a2=_0x2a512f['start']),_0x210364['isCollapsed']&&(_0xa81b7c=_0x210364['end']),_0x1e70f1([_0x50e2c0['model']['createRange'](_0x4829a2,_0xa81b7c)]);}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ae180),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ae180)),_0x50e2c0['plugins']['has']('ImageCaptionEditing')&&(_0x27034a['enableCommand']('toggleImageCaption',(_0xca7bf6,_0x5e1731)=>{const _0x287f07=_0x50e2c0['plugins']['get']('ImageCaptionUtils');let _0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390);_0x50e2c0['model']['change'](()=>{if(_0x18e5bd)return void _0x27034a['markDeletion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd));const _0x41ef5e=_0x30b96b['isBlockImage'](_0x224390);_0xca7bf6(_0x5e1731),_0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390),_0x27034a['markInsertion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd),_0x41ef5e?null:'imageCaption');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ae180));const _0x48b07f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2359e3(_0x397055,_0x11c704){const _0x1e1c82=_0x48b07f['findIndex'](({type:_0x528fe2,subType:_0x4d4ac7})=>_0x397055['type']==_0x528fe2&&_0x397055['subType']==_0x4d4ac7),_0x4e5680=_0x48b07f['findIndex'](({type:_0x9b44e5,subType:_0x1a4e13})=>_0x11c704['type']==_0x9b44e5&&_0x11c704['subType']==_0x1a4e13);if(_0x1e1c82<0x0||_0x4e5680<0x0)return!0x1;const _0x2240cd=_0x397055['getFirstRange'](),_0x5d3672=_0x11c704['getFirstRange']();if((0x0==_0x1e1c82||0x1==_0x1e1c82)&&0x2==_0x4e5680&&_0x2240cd['isIntersecting'](_0x5d3672))return!0x0;if(0x2==_0x1e1c82&&0x3==_0x4e5680){const _0x2ad2ef=_0x27034a['_findSuggestions'](_0x2240cd,'insertion')['filter'](({suggestion:_0x336156,meta:_0x4c0017})=>_0x4c0017['isOwn']&&'convertInlineImageToBlock'==_0x336156['subType']);if(_0x2ad2ef['length']>0x1&&_0x5d3672['end']['isEqual'](_0x2240cd['start']))return!0x0;if(0x1==_0x2ad2ef['length']&&(_0x2240cd['start']['isEqual'](_0x5d3672['end'])||_0x2240cd['end']['isEqual'](_0x5d3672['start'])))return!0x0;}if(0x3==_0x1e1c82&&0x3==_0x4e5680&&_0x2240cd['start']['isBefore'](_0x5d3672['start'])){const _0x15292e=_0x2240cd['end']['nodeAfter'],_0x7dd10a=_0x5d3672['start']['nodeBefore'];return _0x30b96b['isBlockImage'](_0x15292e)&&_0x15292e===_0x7dd10a;}return!0x1;}function _0x1ae180(_0xa58387,_0xf22453){return _0x2359e3(_0xa58387,_0xf22453)?[_0xa58387,_0xf22453]:_0x2359e3(_0xf22453,_0xa58387)?[_0xf22453,_0xa58387]:null;}_0x50e2c0['plugins']['has']('ImageResize')&&(_0x27034a['enableDefaultAttributesIntegration']('resizeImage'),_0x27034a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x463e46,'FORMAT_IMAGE_SIZE'))),_0x50e2c0['plugins']['has']('ImageTextAlternativeEditing')&&_0x27034a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50e2c0['plugins']['has']('PictureEditing')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x581f02=>{if('attribute'!=_0x581f02['type'])return;const {data:_0x409c89}=_0x581f02;return _0x409c89&&'sources'==_0x409c89['key']?{'type':'format','content':''}:void 0x0;}),_0x50e2c0['plugins']['has']('ImageSizeAttributes')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x544409=>{if('attribute'!=_0x544409['type'])return;const {data:_0x3b6d23}=_0x544409;return!_0x3b6d23||'width'!=_0x3b6d23['key']&&'height'!=_0x3b6d23['key']?void 0x0:{'type':'format','content':''};}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x563bb4=>{if(!!_0x48b07f['find'](({type:_0x1dbf38,subType:_0x6fdccf})=>_0x563bb4['type']==_0x1dbf38&&_0x563bb4['subType']==_0x6fdccf))return _0x563bb4['previous']?{}:void 0x0;}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x357223=>{if('insertion'==_0x357223['type']||'deletion'==_0x357223['type']){const _0x480026=_0x357223['getContainedElement']();if(_0x480026&&_0x480026['is']('element','caption'))return{'type':'insertion'==_0x357223['type']?'addObject':'removeObject','element':_0x480026,'quantity':0x1};}}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x17c74e=>'formatBlock'==_0x17c74e['type']&&'convertInlineImageToBlock'==_0x17c74e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17c74e['type']&&'convertBlockImageToInline'==_0x17c74e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x480d64=>{if('attribute'!=_0x480d64['type'])return;const {data:_0x238ca8}=_0x480d64;if(!_0x238ca8||'alt'!=_0x238ca8['key'])return;const _0x5d317c=_0x238ca8['newValue'];return _0x5d317c?{'type':'format','content':Tt(_0x463e46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d317c+'\x22')}:{'type':'format','content':Tt(_0x463e46,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161d29=this['editor'],_0x4d7fef=_0x161d29['locale'];_0x161d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4680c6=>{if('formatBlock'!=_0x4680c6['type']&&'formatInline'!=_0x4680c6['type'])return;const {data:_0x597b38}=_0x4680c6;if(_0x597b38){if('imageTextAlternative'==_0x597b38['commandName']){const _0x4d19d5=_0x597b38['commandParams'][0x0]['newValue'];return _0x4d19d5?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d19d5+'\x22')}:{'type':'format','content':Tt(_0x4d7fef,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x597b38['commandName']){const _0x49a06a=_0x597b38['commandParams'][0x0]['width'];return _0x49a06a?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20width:*\x20%0',_0x49a06a)}:{'type':'format','content':Tt(_0x4d7fef,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bf318=this['editor']['locale'],_0x41b04e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b04e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41b04e['descriptionFactory']['registerDescriptionCallback'](_0x1b9f4a=>{if('attribute'!=_0x1b9f4a['type'])return;const {data:_0x436d7b}=_0x1b9f4a;return _0x436d7b&&'src'==_0x436d7b['key']?_0x436d7b['newValue']&&_0x436d7b['oldValue']?{'type':'format','content':Tt(_0x4bf318,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b4bb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250924=this['editor'],_0x4fd66c=_0x250924['locale'];_0x250924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5f46=>{if('formatBlock'!=_0x4e5f46['type']&&'formatInline'!=_0x4e5f46['type'])return;const {data:_0x36bc3a}=_0x4e5f46;if(!_0x36bc3a||'replaceImageSource'!=_0x36bc3a['commandName'])return;return{'type':'format','content':Tt(_0x4fd66c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x203e6b{['afterInit'](){const _0xdf6fa8=this['editor'];if(!_0xdf6fa8['plugins']['has']('ImageStyleEditing'))return;const _0x2cf383=_0xdf6fa8['plugins']['get']('TrackChangesEditing'),_0x4fa04c=_0xdf6fa8['plugins']['get']('ImageUtils'),_0xbdf096={};_0x2cf383['enableCommand']('imageStyle',(_0x55d506,_0x5f468a)=>{const _0x1c7050=_0xdf6fa8['plugins']['get']('Users')['me'],_0x5f0ab1=_0xdf6fa8['commands']['get']('imageStyle');let _0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x12a991=_0x5f0ab1['value'];if(_0x12a991==_0x5f468a['value'])return;const _0x1f9aa6={'commandName':'imageStyle','commandParams':[_0x5f468a],'formatGroupId':_0x1e5a7d()};_0xdf6fa8['model']['change'](()=>{if(_0x2cf383['getSuggestions']()['filter'](_0x51ea22=>_0x51ea22['isInContent']&&_0x1c7050==_0x51ea22['author']&&('formatBlock'==_0x51ea22['type']||'formatInline'==_0x51ea22['type'])&&('imageStylePreApply'==_0x51ea22['subType']||'imageStylePostApply'==_0x51ea22['subType'])&&_0x51ea22['getFirstRange']()['isEqual'](_0x60daed))['forEach'](_0x2cf773=>_0x2cf383['discardSuggestion'](_0x2cf773['head'])),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x5f0ab1['refresh'](),_0xdf6fa8['commands']['get']('imageTypeInline')['refresh'](),_0xdf6fa8['commands']['get']('imageTypeBlock')['refresh'](),_0x12a991=_0x5f0ab1['value'],_0x12a991!=_0x5f468a['value'])return _0x4fa04c['isInlineImage'](_0x365bf5)&&_0x5f0ab1['shouldConvertImageType'](_0x5f468a['value'],_0x365bf5)?(_0x55d506({..._0x5f468a,'setImageSizes':!0x1}),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),void _0x2cf383['markBlockFormat'](_0x365bf5,{..._0x1f9aa6,'commandReversedParams':[{'value':_0x12a991||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4fa04c['isBlockImage'](_0x365bf5)?_0x2cf383['markBlockFormat'](_0x365bf5,_0x1f9aa6,[],'imageStylePostApply'):_0x2cf383['markInlineFormat'](_0x60daed,_0x1f9aa6,'imageStylePostApply'));});});for(const _0x1bb9db of _0xdf6fa8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xbdf096[_0x1bb9db['name']]=_0x1bb9db['title']['toLowerCase']();_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3016d9])=>{_0x4fa04c['setImageNaturalSizeAttributes'](_0x3016d9['getContainedElement']());}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44e120,_0x5b0f06)=>{_0x2cf383['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44e120,{'commandName':_0x5b0f06['commandName'],'commandParams':_0x5b0f06['commandReversedParams']});}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26bc82,_0x25078b){if(_0x2f52f2(_0x26bc82,_0x25078b))return[_0x26bc82,_0x25078b];if(_0x2f52f2(_0x25078b,_0x26bc82))return[_0x25078b,_0x26bc82];return null;});const _0x26d8a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f52f2(_0x29ad81,_0x2026ed){const _0x443624=_0x26d8a6['findIndex'](({type:_0x1063d9,subType:_0x1453c8})=>_0x29ad81['type']==_0x1063d9&&_0x29ad81['subType']==_0x1453c8),_0x38e4a4=_0x26d8a6['findIndex'](({type:_0x444a81,subType:_0x4ba8bc})=>_0x2026ed['type']==_0x444a81&&_0x2026ed['subType']==_0x4ba8bc);if(_0x443624<0x0||_0x38e4a4<0x0)return!0x1;const _0x53d8ed=_0x29ad81['getFirstRange'](),_0x324f0b=_0x2026ed['getFirstRange']();if((0x0==_0x443624||0x1==_0x443624)&&0x2==_0x38e4a4&&_0x53d8ed['isIntersecting'](_0x324f0b))return!0x0;if(0x2==_0x443624&&0x3==_0x38e4a4){const _0x16e2b8=_0x2cf383['_findSuggestions'](_0x53d8ed,'insertion')['filter'](({suggestion:_0x4dd234,meta:_0x464c3e})=>_0x464c3e['isOwn']&&'convertInlineImageToBlock'==_0x4dd234['subType']);if(_0x16e2b8['length']>0x1&&_0x324f0b['end']['isEqual'](_0x53d8ed['start']))return!0x0;if(0x1==_0x16e2b8['length']&&(_0x53d8ed['start']['isEqual'](_0x324f0b['end'])||_0x53d8ed['end']['isEqual'](_0x324f0b['start'])))return!0x0;}if(0x3==_0x443624&&0x3==_0x38e4a4&&_0x53d8ed['start']['isBefore'](_0x324f0b['start'])){const _0x354545=_0x53d8ed['end']['nodeAfter'],_0x591f4d=_0x324f0b['start']['nodeBefore'];return _0x4fa04c['isBlockImage'](_0x354545)&&_0x354545===_0x591f4d;}return!0x1;}_0xdf6fa8['model']['document']['registerPostFixer'](()=>{let _0x29037b=!0x1;const _0x2e14e6=Array['from'](_0xdf6fa8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d933f,data:_0x1db605}of _0x2e14e6){const {group:_0x44fe0f,type:_0x25bcf4,subType:_0x5b7352,id:_0x3f60c4}=_0x4f787f(_0x4d933f);if('suggestion'==_0x44fe0f&&_0x2cf383['hasSuggestion'](_0x3f60c4)){if('formatBlock'==_0x25bcf4&&('imageStylePreApply'==_0x5b7352||'imageStylePostApply'==_0x5b7352)){const _0x241dda=_0x2cf383['getSuggestion'](_0x3f60c4);if(_0x1db605['newRange']){const _0x99a025=_0x241dda['getFirstRange']()['getContainedElement']();if(_0x4fa04c['isBlockImage'](_0x99a025))continue;_0x2cf383['discardSuggestion'](_0x241dda),_0x29037b=!0x0;}}if('insertion'==_0x25bcf4&&'imageCaption'==_0x5b7352&&!_0x1db605['newRange']){const _0x135bcf=_0x2cf383['getSuggestion'](_0x3f60c4);_0x135bcf['next']&&_0x135bcf['next']['isInContent']&&(_0x2cf383['discardSuggestion'](_0x135bcf['next']),_0x29037b=!0x0);}}}return _0x29037b;}),this['_registerLegacyDescription'](_0xbdf096);}['_registerLegacyDescription'](_0xc346e8){const _0xa24256=this['editor'],_0x144101=_0xa24256['locale'];_0xa24256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2378d8=>{if('formatBlock'!=_0x2378d8['type']&&'formatInline'!=_0x2378d8['type'])return;const {data:_0x483e53}=_0x2378d8;if(!_0x483e53||'imageStyle'!=_0x483e53['commandName'])return;const _0x1c1978=_0x483e53['commandParams'][0x0]['value'];return _0x3038b0('side'===_0x1c1978?Tt(_0x144101,'FORMAT_SIDE_IMAGE'):_0xc346e8[_0x1c1978]||_0x1c1978);function _0x3038b0(_0x59bdd7){return{'type':'format','content':Tt(_0x144101,'*Format:*\x20%0',_0x59bdd7)};}});}}class TrackChangesImportWord extends _0x203e6b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x547d20){super(_0x547d20),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x43e3f5=this['editor'],_0x38b89b=_0x43e3f5['commands']['get']('importWord'),_0x1dc934=_0x43e3f5['commands']['get']('trackChanges');_0x38b89b&&(_0x38b89b['on']('execute',(_0x36c64f,[,_0x1618c9])=>{this['_trackChangesValueDuringImport']=_0x1dc934['value'],_0x1618c9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38b89b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38b89b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1dc934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x43e3f5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2c9a3c,_0x114974){const {suggestions:_0x3381c6}=_0x114974,_0x1f2042=this['editor']['commands']['get']('trackChanges'),_0x1ff47a=_0x1f2042['value'];this['_trackChangesValueDuringImport']!==_0x1ff47a&&(_0x1f2042['execute'](),this['_trackChangesExecuted']=!0x0),_0x3381c6&&_0x3381c6['forEach'](({id:_0x16345d,type:_0x5687eb,author:_0x38d77a,created_at:_0x39d697})=>{const _0x58dd36={'id':_0x16345d,'type':_0x5687eb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38d77a,'createdAt':_0x39d697?new Date(_0x39d697):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x58dd36);});}}class TrackChangesIndent extends _0x203e6b{['afterInit'](){const _0x599c29=this['editor'],_0x154c6f=_0x599c29['plugins']['get']('TrackChangesEditing');if(_0x599c29['plugins']['has']('IndentEditing')&&(_0x154c6f['enableCommand']('indent'),_0x154c6f['enableCommand']('outdent')),_0x599c29['plugins']['has']('IndentBlock')){for(const _0x3ee22c of['indentBlock','outdentBlock'])_0x154c6f['enableDefaultAttributesIntegration'](_0x3ee22c);if(_0x599c29['plugins']['has']('ListEditing')){for(const _0x1dd878 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x154c6f['enableDefaultAttributesIntegration'](_0x1dd878);}}const _0x68e20d=_0x599c29['locale'];_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x68e20d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537493=this['editor'],_0x311db5=_0x537493['locale'],_0x1a5311=_0x537493['plugins']['get']('TrackChangesEditing');_0x1a5311['descriptionFactory']['registerDescriptionCallback'](_0xd8057a=>{if('formatBlock'!=_0xd8057a['type'])return;const {data:_0x3141f9}=_0xd8057a;if(!_0x3141f9)return;if('indentBlock'!=_0x3141f9['commandName']&&'outdentBlock'!=_0x3141f9['commandName'])return;const _0xbe0885=_0xd8057a['getItems']()[0x0],_0x2ee1d0=_0x1a5311['descriptionFactory']['getItemLabel'](_0xbe0885);return'indentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Indent:*\x20%0',_0x2ee1d0)}:'outdentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Outdent:*\x20%0',_0x2ee1d0)}:void 0x0;});}}class TrackChangesInputCommand extends _0x203e6b{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x203e6b{['afterInit'](){const _0x432c88=this['editor'];if(!_0x432c88['plugins']['has']('LinkEditing'))return;const _0x14749a=_0x432c88['plugins']['get']('TrackChangesEditing'),_0x1b7d62=_0x432c88['commands']['get']('link');_0x14749a['enableDefaultAttributesIntegration']('link'),_0x14749a['enableDefaultAttributesIntegration']('unlink');for(const _0x180db0 of _0x1b7d62['manualDecorators'])_0x14749a['descriptionFactory']['registerAttributeLabel'](_0x180db0['id'],'link\x20('+_0x180db0['label']['toLowerCase']()+')');_0x14749a['descriptionFactory']['registerDescriptionCallback'](_0x165b7b=>{if('attribute'!=_0x165b7b['type'])return;const {data:_0x1ad73e}=_0x165b7b;if(!_0x1ad73e||'linkHref'!=_0x1ad73e['key'])return;const _0x54c58b=_0x1ad73e['newValue'],_0x23da30=_0x432c88['locale'];return{'type':'format','content':null==_0x54c58b?Tt(_0x23da30,'*Remove\x20link*'):Tt(_0x23da30,'*Set\x20link:*\x20%0','\x22'+_0x54c58b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595e00=this['editor'],_0x3dc036=_0x595e00['locale'];_0x595e00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24263a=>{if('formatInline'!=_0x24263a['type'])return;const {data:_0x3611ad}=_0x24263a;if(_0x3611ad){if('link'==_0x3611ad['commandName']){const _0x1e3c9a=_0x3611ad['commandParams'][0x0];return{'type':'format','content':Tt(_0x3dc036,'*Set\x20link:*\x20%0','\x22'+_0x1e3c9a+'\x22')};}return'unlink'==_0x3611ad['commandName']?{'type':'format','content':Tt(_0x3dc036,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x203e6b{['afterInit'](){const _0x262399=this['editor'],_0x999dcc=_0x262399['locale'];if(!_0x262399['plugins']['has']('LegacyListEditing'))return;const _0x59d47e=_0x262399['plugins']['get']('TrackChangesEditing'),_0x179a20=_0x262399['plugins']['has']('LegacyTodoListEditing');function _0x11b858(_0x56e78b){return()=>{const _0x297026=_0x262399['model']['document']['selection'],_0x27e9c3=_0x262399['commands']['get'](_0x56e78b);if(_0x27e9c3['value'])return void _0x262399['execute']('paragraph',{});const _0x19b2d5=_0x56e78b['slice'](0x0,-0x4),_0x465056=function(_0x343b9f,_0x49a895,_0x466ead){let _0x52400c=Array['from'](_0x343b9f)['filter'](_0x13682e=>function(_0x2d8465,_0xcb3a55){return _0xcb3a55['checkChild'](_0x2d8465['parent'],'listItem')&&!_0xcb3a55['isObject'](_0x2d8465);}(_0x13682e,_0x466ead));_0x52400c=_0x52400c['filter'](_0x17c08f=>!_0x17c08f['is']('element','listItem')||_0x17c08f['getAttribute']('listType')!=_0x49a895);const _0x261a89=new Set();for(const _0x5ee651 of _0x52400c)_0x5ee651['is']('element','listItem')?_0x261a89['add'](St(_0x5ee651)):_0x261a89['add'](_0x5ee651);return Array['from'](_0x261a89);}(_0x297026['getSelectedBlocks'](),_0x19b2d5,_0x262399['model']['schema']);_0x262399['model']['change'](()=>{for(const _0x9e0798 of _0x465056)_0x59d47e['markBlockFormat'](_0x9e0798,{'commandName':_0x56e78b,'commandParams':[{'forceValue':!_0x27e9c3['value']}],'formatGroupId':'blockName'},Rt(_0x9e0798));});};}function _0x452120(_0x118180){return()=>{const _0xe04c50=function(_0x251a86){let _0x12a4dd=Array['from'](_0x251a86);const _0x16f287=_0x12a4dd['findIndex'](_0x4b9229=>'listItem'!=_0x4b9229['name']);return _0x16f287>-0x1&&(_0x12a4dd=_0x12a4dd['slice'](0x0,_0x16f287)),_0x12a4dd;}(_0x262399['model']['document']['selection']['getSelectedBlocks']()),_0x50c4e8=_0x262399['model']['createRange'](_0x262399['model']['createPositionAt'](_0xe04c50[0x0],'before'),_0x262399['model']['createPositionAt'](_0xe04c50[_0xe04c50['length']-0x1],'end'));_0x262399['model']['change'](()=>{_0x59d47e['markBlockFormat'](_0x50c4e8,{'commandName':_0x118180,'commandParams':[],'formatGroupId':'listIndent'},function(_0x54cc7b){const _0x45adf0=new Set();for(const _0x3c9ba1 of _0x54cc7b){let _0xeda2b8=_0x3c9ba1['nextSibling'];for(;_0xeda2b8&&_0xeda2b8['getAttribute']('listIndent')>_0x3c9ba1['getAttribute']('listIndent');)_0x45adf0['add'](_0xeda2b8),_0xeda2b8=_0xeda2b8['nextSibling'];}return Array['from'](_0x45adf0);}(_0xe04c50));});};}_0x59d47e['enableCommand']('numberedList',_0x11b858('numberedList')),_0x59d47e['enableCommand']('bulletedList',_0x11b858('bulletedList')),_0x179a20&&_0x59d47e['enableCommand']('todoList',_0x11b858('todoList')),_0x59d47e['enableCommand']('indentList',_0x452120('indentList')),_0x59d47e['enableCommand']('outdentList',_0x452120('outdentList')),_0x179a20&&_0x59d47e['enableCommand']('checkTodoList',()=>{const _0x576e00=_0x262399['commands']['get']('checkTodoList'),_0xcf057b=Array['from'](_0x576e00['_selectedElements']);_0xcf057b['filter'](_0x3dad97=>_0x3dad97['getAttribute']('todoListChecked')!=_0x576e00['value']),_0x262399['model']['change'](()=>{for(const _0x4febf0 of _0xcf057b)_0x59d47e['markBlockFormat'](_0x4febf0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x576e00['value']}]});});}),_0x59d47e['descriptionFactory']['registerElementLabel']('listItem',_0xe67996=>Tt(_0x999dcc,'ELEMENT_LIST_ITEM',_0xe67996)),_0x59d47e['descriptionFactory']['registerDescriptionCallback'](_0x558766=>{if('formatBlock'!=_0x558766['type']&&'formatInline'!=_0x558766['type'])return;const {data:_0x1667b9}=_0x558766;if(_0x1667b9){if('numberedList'==_0x1667b9['commandName']||'bulletedList'==_0x1667b9['commandName']||'todoList'==_0x1667b9['commandName'])switch(_0x1667b9['commandName']['replace']('List','')){case'bulleted':return _0x48b673(Tt(_0x999dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48b673(Tt(_0x999dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48b673(Tt(_0x999dcc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Indent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Outdent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1667b9['commandName'])return _0x1667b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x999dcc,'*Check\x20item*')}:{'type':'format','content':Tt(_0x999dcc,'*Uncheck\x20item*')};}function _0x48b673(_0x1e7591){return{'type':'format','content':Tt(_0x999dcc,'*Change\x20to:*\x20%0',_0x1e7591)};}});}}function St(_0x2c6e67){const _0x2f8f4f=_0x2c6e67['getAttribute']('listIndent');if(0x0==_0x2f8f4f)return _0x2c6e67;let _0xd04f16=_0x2c6e67;for(;_0x2c6e67['previousSibling']&&_0x2c6e67['previousSibling']['is']('element','listItem');){const _0x329613=_0x2c6e67['previousSibling']['getAttribute']('listIndent');if(_0x329613==_0x2f8f4f)_0xd04f16=_0x2c6e67['previousSibling'];else{if(_0x329613<_0x2f8f4f)break;}_0x2c6e67=_0x2c6e67['previousSibling'];}return _0xd04f16;}function Rt(_0x134241){const _0x363503=[];if(_0x134241['is']('element','listItem')&&_0x134241['getAttribute']('listIndent')>0x0){let _0x3a1ec8=_0x134241['nextSibling'];for(;_0x3a1ec8&&'listItem'==_0x3a1ec8['name']&&_0x3a1ec8['getAttribute']('listIndent')==_0x134241['getAttribute']('listIndent');)_0x363503['push'](_0x3a1ec8),_0x3a1ec8=_0x3a1ec8['nextSibling'];}return _0x363503;}class TrackChangesLegacyListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4ed53f=this['editor']['config']['get']('list.properties'),_0x324613=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ed53f['styles']&&_0x324613['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4ed53f['reversed']&&_0x324613['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4ed53f['startIndex']&&_0x324613['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x324613['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2876ca,_0x2d7d7f={}){const _0x17bf48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12e442=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17bf48['markMultiRangeBlockFormat'](_0x12e442,{'commandName':'listStyle','commandParams':[{'type':_0x2d7d7f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb89501,_0x2c3a53={}){const _0x430602=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436a5f=this['_getSuggestionBlocks'](_0x109978=>_0x109978['is']('element','listItem')&&'numbered'===_0x109978['getAttribute']('listType'));if(_0x436a5f['length']<0x1)return;const _0x203913=_0x436a5f['map'](_0x36cbb3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36cbb3,'before'),this['editor']['model']['createPositionAt'](_0x36cbb3,0x0)));this['editor']['model']['change'](()=>{_0x430602['markMultiRangeBlockFormat'](_0x203913,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c3a53['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ee92b,_0x49b367={}){const _0x240ecf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567497=this['_getSuggestionBlocks'](_0x4e6a1f=>_0x4e6a1f['is']('element','listItem')&&'numbered'===_0x4e6a1f['getAttribute']('listType'));if(_0x567497['length']<0x1)return;const _0x4a84ff=_0x567497['map'](_0x4b931f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b931f,'before'),this['editor']['model']['createPositionAt'](_0x4b931f,0x0)));this['editor']['model']['change'](()=>{_0x240ecf['markMultiRangeBlockFormat'](_0x4a84ff,{'commandName':'listStart','commandParams':[{'startIndex':_0x49b367['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26b795){if('formatBlock'!=_0x26b795['type']&&'formatInline'!=_0x26b795['type'])return;const _0x4fbcf0=this['editor']['locale'],{data:_0x22554f}=_0x26b795;if(!_0x22554f)return;let _0x404d43,_0x43e955;switch(_0x22554f['commandName']){case'listStyle':_0x404d43='*Change\x20to:*\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,Tt(_0x4fbcf0,this['_getTranslationKeyForListStyle'](_0x22554f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x404d43=_0x22554f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43)};break;case'listStart':_0x404d43='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,_0x22554f['commandParams'][0x0]['startIndex'])};}return _0x43e955;}['_getSuggestionBlocksForListStyle'](){const _0x4503bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x310a3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x310a3a[0x0]?.['is']('element','listItem')&&_0x310a3a['unshift'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x310a3a[_0x310a3a['length']-0x1]?.['is']('element','listItem')&&_0x310a3a['push'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x310a3a=[...new Set(_0x310a3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x310a3a=_0x310a3a['filter'](_0x2b0629=>_0x2b0629['is']('element','listItem'))),_0x310a3a;}['_getSuggestionBlocks'](_0x323579){const _0x4ef969=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d6ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x323579)['map'](_0xefa162=>{const _0x1f2d30=this['editor']['model']['createPositionAt'](_0xefa162,0x0);return[..._0x4ef969['getSiblingNodes'](_0x1f2d30,'backward'),..._0x4ef969['getSiblingNodes'](_0x1f2d30,'forward')];})['flat']();return _0x11d6ee=[...new Set(_0x11d6ee)],_0x11d6ee;}['_getTranslationKeyForListStyle'](_0x532b4a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x532b4a)||'default')['toUpperCase']()+'_LIST_'+_0x532b4a['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x203e6b{['afterInit'](){const _0x3c61a9=this['editor'];if(!_0x3c61a9['plugins']['has']('MediaEmbedEditing'))return;const _0x2cc47d=_0x3c61a9['plugins']['get']('TrackChangesEditing'),_0x451eb7=_0x3c61a9['locale'];_0x2cc47d['enableCommand']('mediaEmbed'),_0x2cc47d['descriptionFactory']['registerElementLabel']('media',_0x2aa7ca=>Tt(_0x451eb7,'ELEMENT_MEDIA',_0x2aa7ca)),_0x3c61a9['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2cc47d['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2cc47d['descriptionFactory']['registerDescriptionCallback'](_0x35c0cd=>{if('attribute'!=_0x35c0cd['type'])return;const {data:_0x1e3955}=_0x35c0cd;if(!_0x1e3955||'resizedWidth'!=_0x1e3955['key'])return;const _0x234e8b=_0x35c0cd['getContainedElement']();if(!_0x234e8b||!_0x234e8b['is']('element','media'))return;const _0x7c50ac=Tt(_0x451eb7,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x451eb7,'*Set\x20format:*\x20%0',_0x7c50ac)};}));}}class TrackChangesMediaEmbedStyle extends _0x203e6b{['afterInit'](){const _0x3c8691=this['editor'];if(!_0x3c8691['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x375e45=_0x3c8691['plugins']['get']('TrackChangesEditing'),_0x36e1a6=_0x3c8691['locale'],_0x171c3f=_0x3c8691['plugins']['get']('MediaEmbedStyleEditing'),_0xe82eb8={};for(const _0x57bf09 of _0x171c3f['normalizedStyles'])_0xe82eb8[_0x57bf09['name']]=_0x57bf09['title']['toLowerCase']();const _0x50b292=_0x171c3f['normalizedStyles']['find'](_0x139c2e=>_0x139c2e['isDefault'])?.['name'];_0x375e45['enableCommand']('mediaStyle',(_0x590692,_0x4e1f71)=>{const _0x1f9174=_0x3c8691['plugins']['get']('Users')['me'],_0x12c48d=_0x3c8691['commands']['get']('mediaStyle'),_0x73a666=function(_0x3dacd1){const _0x38ed6f=_0x3dacd1['model']['document']['selection']['getSelectedElement']();if(_0x38ed6f&&_0x38ed6f['is']('element','media'))return _0x38ed6f;return null;}(_0x3c8691);if(!_0x73a666)return;const _0x2f69f9=_0x3c8691['model']['createRangeOn'](_0x73a666);let _0x543eac=_0x12c48d['value'];if(_0x543eac==_0x4e1f71['value'])return;const _0x1d4393={'commandName':'mediaStyle','commandParams':[_0x4e1f71],'formatGroupId':_0x1e5a7d()};_0x3c8691['model']['change'](()=>{_0x375e45['getSuggestions']()['filter'](_0x4f5c89=>_0x4f5c89['isInContent']&&_0x1f9174==_0x4f5c89['author']&&'formatBlock'==_0x4f5c89['type']&&'mediaStylePostApply'==_0x4f5c89['subType']&&_0x4f5c89['getFirstRange']()['isEqual'](_0x2f69f9))['forEach'](_0x4ab496=>_0x375e45['discardSuggestion'](_0x4ab496['head'])),_0x12c48d['refresh'](),_0x543eac=_0x12c48d['value'],_0x543eac!=_0x4e1f71['value']&&_0x375e45['markBlockFormat'](_0x73a666,{..._0x1d4393,'commandReversedParams':[{'value':'string'==typeof _0x543eac?_0x543eac:null}]},[],'mediaStylePostApply');});}),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0xb27c,_0x5b6899)=>{_0x375e45['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb27c,{'commandName':_0x5b6899['commandName'],'commandParams':_0x5b6899['commandReversedParams']});}),_0x375e45['descriptionFactory']['registerDescriptionCallback'](_0x201a0b=>{if('formatBlock'!=_0x201a0b['type'])return;const {data:_0x141619}=_0x201a0b;if(!_0x141619||'mediaStyle'!=_0x141619['commandName'])return;const _0x2ade39=_0x141619['commandParams'][0x0]['value']||_0x50b292;if(!_0x2ade39)return;const _0x4917cb=_0xe82eb8[_0x2ade39]||_0x2ade39;return{'type':'format','content':Tt(_0x36e1a6,'*Format:*\x20%0',_0x4917cb)};});}}class TrackChangesMention extends _0x203e6b{['afterInit'](){const _0x5020a7=this['editor'];_0x5020a7['plugins']['has']('MentionEditing')&&_0x5020a7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x203e6b{['afterInit'](){const _0x206588=this['editor'];if(!_0x206588['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae3ff=_0x206588['plugins']['get']('TrackChangesEditing'),_0xfcb4db=_0x206588['locale'];_0x2ae3ff['enableCommand']('insertMergeField'),_0x2ae3ff['enableCommand']('insertMergeFieldBlock'),_0x2ae3ff['enableCommand']('insertMergeFieldImage'),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeField',_0x1c64c7=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0x1c64c7)),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe86bec=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0xe86bec)),_0x2ae3ff['descriptionFactory']['registerDescriptionCallback'](_0x7c69ac=>{if('insertion'!=_0x7c69ac['type']&&'deletion'!=_0x7c69ac['type'])return;const _0x3cd862=_0x7c69ac['getContainedElement']();if(null==_0x3cd862)return;const _0x39bcd1=_0x206588['plugins']['get']('MergeFieldsEditing');let _0x4db75d;switch(_0x39bcd1['getMergeFieldType'](_0x3cd862)){case null:return;case'image':{const _0x44e435=_0x39bcd1['unwrapAffixes'](_0x3cd862['getAttribute']('src'));_0x4db75d=_0x39bcd1['getLabel'](_0x44e435)||_0x44e435;break;}default:{const _0x10d1b0=_0x3cd862['getAttribute']('id');_0x4db75d=_0x39bcd1['getLabel'](_0x10d1b0)||_0x10d1b0;break;}}return'insertion'==_0x7c69ac['type']?{'type':'insertion','content':Tt(_0xfcb4db,'*Insert:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xfcb4db,'*Remove:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x203e6b{['afterInit'](){const _0x4d0ec5=this['editor'],_0x89b0e1=_0x4d0ec5['plugins']['get']('TrackChangesEditing');_0x4d0ec5['plugins']['has']('MultiLevelList')&&(_0x89b0e1['enableDefaultAttributesIntegration']('multiLevelList'),_0x89b0e1['descriptionFactory']['registerDescriptionCallback'](_0x2ba504=>this['handleDescriptions'](_0x2ba504)));}['handleDescriptions'](_0x36bc44){const _0x47f715=this['editor']['locale'],{data:_0x315270}=_0x36bc44,_0x2500cf={'type':'format','content':''};if(_0x315270&&'listMarkerStyle'==_0x315270['key']){if(!_0x315270['oldValue'])return{'type':'format','content':Tt(_0x47f715,'*Set\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['newValue']+')'};if(!_0x315270['newValue']){let _0xc858e5=_0x36bc44['head'];for(;_0xc858e5;){if(_0xc858e5['data']&&'listType'==_0xc858e5['data']['key']&&_0xc858e5['data']['newValue'])return _0x2500cf;_0xc858e5=_0xc858e5['next'];}return{'type':'format','content':Tt(_0x47f715,'*Remove\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x203e6b{['afterInit'](){const _0x285b64=this['editor'];if(!_0x285b64['plugins']['has']('PageBreakEditing'))return;_0x285b64['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2efa7b=_0x285b64['plugins']['get']('TrackChangesEditing'),_0x311b20=_0x285b64['locale'];_0x2efa7b['descriptionFactory']['registerElementLabel']('pageBreak',_0x90257c=>Tt(_0x311b20,'ELEMENT_PAGE_BREAK',_0x90257c));}}class TrackChangesParagraph extends _0x203e6b{['afterInit'](){const _0x56a366=this['editor'];if(!_0x56a366['plugins']['has']('Paragraph'))return;const _0x110aae=_0x56a366['locale'],_0x6919e=_0x56a366['plugins']['get']('TrackChangesEditing');_0x6919e['descriptionFactory']['registerElementLabel']('paragraph',_0x3c5d0e=>Tt(_0x110aae,'ELEMENT_PARAGRAPH',_0x3c5d0e)),_0x6919e['enableDefaultAttributesIntegration']('paragraph'),_0x6919e['enableCommand']('insertParagraph');const _0x273eda=_0x6919e['descriptionFactory'];_0x273eda['registerDescriptionCallback'](_0x186bcf=>{if('insertion'!==_0x186bcf['type'])return;const {start:_0x2ef58b,end:_0x56d7a8}=_0x186bcf['getFirstRange']();if(!_0x2ef58b['isTouching'](_0x56d7a8)||!_0x2ef58b['nodeAfter'])return;const _0x45f312=_0x56a366['model']['schema'],_0x3963c2=_0x2ef58b['nodeAfter'];return _0x45f312['isBlock'](_0x3963c2)&&!_0x45f312['isLimit'](_0x3963c2)&&_0x45f312['checkChild'](_0x3963c2,'$text')?{'type':'insertion','content':Tt(_0x110aae,'*Insert:*\x20%0',_0x273eda['getItemLabel'](_0x3963c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f23d7=this['editor'],_0x240abb=_0x1f23d7['locale'];_0x1f23d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2f756=>{if('formatBlock'!=_0xd2f756['type'])return;const {data:_0x20aed4}=_0xd2f756;return _0x20aed4&&'paragraph'==_0x20aed4['commandName']?{'type':'format','content':Tt(_0x240abb,'*Change\x20to:*\x20%0',Tt(_0x240abb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x203e6b{['afterInit'](){const _0x3825e9=this['editor'];_0x3825e9['commands']['get']('replaceSource')&&_0x3825e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x203e6b{['afterInit'](){const _0xb21489=this['editor'];if(!_0xb21489['plugins']['has']('RemoveFormatEditing'))return;_0xb21489['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ef9e=this['editor'];_0x53ef9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75214e=>{if('formatBlock'!=_0x75214e['type']&&'formatInline'!=_0x75214e['type'])return;const {data:_0x903554}=_0x75214e;return _0x903554&&'removeFormat'==_0x903554['commandName']?{'type':'format','content':Tt(_0x53ef9e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x203e6b{['afterInit'](){const _0x26b60c=this['editor'];if(!_0x26b60c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26573c=_0x26b60c['plugins']['get']('TrackChangesEditing');_0x26573c['enableCommand']('goToPreviousRestrictedEditingException'),_0x26573c['enableCommand']('goToNextRestrictedEditingException');const _0x11559a=_0x26b60c['plugins']['get']('RestrictedEditingModeEditing');_0x11559a['enableCommand']('trackChanges'),_0x11559a['enableCommand']('acceptSuggestion'),_0x11559a['enableCommand']('discardSuggestion'),_0x11559a['enableCommand']('acceptAllSuggestions'),_0x11559a['enableCommand']('discardAllSuggestions'),_0x11559a['enableCommand']('acceptSelectedSuggestions'),_0x11559a['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x203e6b{['afterInit'](){const _0x7fa5f3=this['editor'];if(!_0x7fa5f3['plugins']['has']('ShiftEnter'))return;const _0x461649=_0x7fa5f3['plugins']['get']('TrackChangesEditing');_0x461649['enableCommand']('shiftEnter'),_0x461649['descriptionFactory']['registerElementLabel']('softBreak',_0x596367=>Tt(_0x7fa5f3['locale'],'ELEMENT_LINE_BREAK',_0x596367));}}function yt(_0x5a6a7a,_0x9a0014,_0x5d553e){const _0x46da88=[];for(const _0x4f9085 of _0x9a0014['getItems']())_0x4f9085['hasAttribute'](_0x5a6a7a)&&_0x46da88['push'](_0x5d553e['createRangeOn'](_0x4f9085));return _0x46da88;}class TrackChangesStandardEditingMode extends _0x203e6b{['afterInit'](){const _0x1eec13=this['editor'],_0x5379f1=_0x1eec13['plugins']['get']('TrackChangesEditing');_0x1eec13['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5379f1['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x39138d=this['editor'],_0x5c7245=_0x39138d['model'],_0xbbe919=_0x39138d['locale'],_0x40a1da=_0x39138d['plugins']['get']('TrackChangesEditing'),_0x44259e='restrictedEditingException',_0x11f258=_0x39138d['commands']['get'](_0x44259e);_0x40a1da['enableCommand'](_0x44259e,(_0x34a927,_0x254755={})=>{const _0x5183a8=_0x5c7245['document']['selection'];if(_0x5183a8['isCollapsed'])return void _0x34a927(_0x254755);const _0x39febc=void 0x0!==_0x254755['forceValue']?_0x254755['forceValue']:!_0x11f258['value'];_0x5c7245['change'](()=>{const _0x2e23d9=Array['from'](_0x5183a8['getRanges']());for(const _0x508667 of _0x2e23d9){const _0x5b34d1=_0x39febc?[_0x508667]:yt(_0x44259e,_0x508667,_0x5c7245);for(const _0x133ad4 of _0x5b34d1)_0x40a1da['markInlineFormat'](_0x133ad4,{'commandName':_0x44259e,'commandParams':[{'forceValue':_0x39febc}]});}});}),_0x40a1da['descriptionFactory']['registerDescriptionCallback'](_0x4f294e=>{if('formatBlock'!=_0x4f294e['type']&&'formatInline'!=_0x4f294e['type'])return;const {data:_0x467ae7}=_0x4f294e;return _0x467ae7&&_0x467ae7['commandName']==_0x44259e?_0x467ae7['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1dc71f=this['editor'],_0x4dad88=_0x1dc71f['locale'],_0x26d3f9=_0x1dc71f['plugins']['get']('TrackChangesEditing'),_0x3c7aa8='restrictedEditingExceptionBlock',_0x44cd99=this['editor']['commands']['get'](_0x3c7aa8);_0x26d3f9['enableCommand'](_0x3c7aa8,(_0x580fbb,_0x3feda6={})=>{const _0x8a375e=this['editor']['model']['document']['selection'],_0xe64c54=_0x3feda6&&void 0x0!==_0x3feda6['forceValue']?_0x3feda6['forceValue']:!_0x44cd99['value'];let _0x53c6a1=[];if(_0xe64c54){const _0x35b012=Array['from'](_0x8a375e['getSelectedBlocks']())['filter'](_0x13eec9=>function(_0x1804fb){return!!_0x1804fb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x13eec9)||function(_0x5d4d0d,_0xe04732){const _0x335e9e=_0xe04732['createContext'](_0x5d4d0d['parent']);if(!_0xe04732['checkChild'](_0x335e9e,'restrictedEditingException'))return!0x1;if(!_0xe04732['checkChild'](_0x335e9e['push']('restrictedEditingException'),_0x5d4d0d))return!0x1;return!0x0;}(_0x13eec9,this['editor']['model']['schema']));_0x53c6a1=ft(_0x35b012,_0x1dc71f['model']);}else{const _0x4b6c4d=Array['from'](_0x8a375e['getSelectedBlocks']())['map'](_0x51d8ad=>function(_0x51712d){let _0x57e238=_0x51712d;for(;_0x57e238['parent'];){if('restrictedEditingException'==_0x57e238['parent']['name'])return _0x57e238;_0x57e238=_0x57e238['parent'];}return null;}(_0x51d8ad))['filter'](_0x34834e=>!!_0x34834e);_0x53c6a1=ft(_0x4b6c4d,_0x1dc71f['model']);}_0x1dc71f['model']['change'](()=>{for(const _0x2d2e13 of _0x53c6a1)_0x26d3f9['markBlockFormat'](_0x2d2e13,{'commandName':_0x3c7aa8,'commandParams':[{'forceValue':_0xe64c54}]});});}),_0x26d3f9['descriptionFactory']['registerDescriptionCallback'](_0x17780b=>{const {data:_0x3db418}=_0x17780b;if(_0x3db418&&_0x3db418['commandName']==_0x3c7aa8)return _0x3db418['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x203e6b{['afterInit'](){const _0x3e1961=this['editor'];if(!_0x3e1961['plugins']['has']('Style')||!_0x3e1961['plugins']['has']('DataSchema'))return;_0x3e1961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd57e79=this['editor'],_0x29061c=_0xd57e79['locale'];_0xd57e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344dff=>{if('formatBlock'!=_0x344dff['type']&&'formatInline'!=_0x344dff['type'])return;const {data:_0x1e30e3}=_0x344dff;return _0x1e30e3&&'style'===_0x1e30e3['commandName']?_0x1e30e3['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x29061c,'*Set\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x29061c,'*Remove\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x203e6b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x560cea){super(_0x560cea),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x490285=this['editor'],_0x266455=_0x490285['model']['document']['selection'];if(!_0x490285['plugins']['has']('TableEditing'))return;const _0x1adc0a=_0x490285['locale'],_0x2095da=_0x490285['plugins']['get']('TrackChangesEditing'),_0x6523b7=_0x490285['plugins']['get']('TableUtils');_0x2095da['descriptionFactory']['registerElementLabel']('table',_0x358caf=>Tt(_0x1adc0a,'ELEMENT_TABLE',_0x358caf)),this['_setupColumnsRowsFixing'](),_0x2095da['enableCommand']('insertTable'),_0x2095da['enableCommand']('selectTableRow'),_0x2095da['enableCommand']('selectTableColumn');for(const _0x242435 of['insertTableRowAbove','insertTableRowBelow']){const _0x14aecf=_0x490285['commands']['get'](_0x242435);_0x2095da['enableCommand'](_0x242435,_0x482fd1=>{_0x490285['model']['change'](_0x4f4f92=>{_0x482fd1();const _0x3a324c='above'===_0x14aecf['order'],_0x5e06d4=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x21eeac=_0x6523b7['getRowIndexes'](_0x5e06d4),_0x3e3c7e=_0x3a324c?_0x21eeac['first']-0x1:_0x21eeac['last']+0x1,_0x17629c=_0x5e06d4[0x0]['findAncestor']('table'),_0x2f7b89=_0x6523b7['createTableWalker'](_0x17629c,{'startRow':_0x3e3c7e,'endRow':_0x3e3c7e}),_0x41f8dc=Array['from'](_0x2f7b89)['map'](_0x4e01c6=>_0x4f4f92['createRangeOn'](_0x4e01c6['cell']));_0x2095da['markMultiRangeInsertion'](_0x41f8dc,'tableRow');});});}for(const _0x418d97 of['insertTableColumnLeft','insertTableColumnRight']){const _0x36801c=_0x490285['commands']['get'](_0x418d97);_0x2095da['enableCommand'](_0x418d97,_0x25a0e1=>{_0x490285['model']['change'](_0x2cb551=>{_0x25a0e1();const _0x2df334='left'===_0x36801c['order'],_0x153a43=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x63a4b7=_0x6523b7['getColumnIndexes'](_0x153a43),_0x566419=_0x2df334?_0x63a4b7['first']-0x1:_0x63a4b7['last']+0x1,_0x45e1ff=_0x153a43[0x0]['findAncestor']('table'),_0x48f431=_0x6523b7['createTableWalker'](_0x45e1ff,{'startRow':0x0,'column':_0x566419,'includeAllSlots':!0x1}),_0x2f96dd=Array['from'](_0x48f431)['map'](_0x3a9ddf=>_0x2cb551['createRangeOn'](_0x3a9ddf['cell']));_0x2095da['markMultiRangeInsertion'](_0x2f96dd,'tableColumn');});});}for(const _0x57f6f4 of['removeTableRow','removeTableColumn']){const _0x4e0ba8=_0x57f6f4['substr'](0xb),_0x33d929=_0x4e0ba8['toLowerCase'](),_0x117323=_0x33d929['substr'](0x0,0x3)+'span',_0x38a45f='table'+_0x4e0ba8,_0x548583='min'+_0x4e0ba8,_0x2aa9c7='max'+_0x4e0ba8;_0x2095da['enableCommand'](_0x57f6f4,()=>{_0x490285['model']['change'](_0x5112b5=>{const _0x197e00=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x5a9841=_0x197e00[0x0]['findAncestor']('table');let _0x308ab8;if('removeTableRow'==_0x57f6f4){const _0x5f3f1d=_0x6523b7['getRowIndexes'](_0x197e00);_0x308ab8={'startRow':_0x5f3f1d['first'],'endRow':_0x5f3f1d['last'],'includeAllSlots':!0x0};}else{const _0x1c340c=_0x6523b7['getColumnIndexes'](_0x197e00);_0x308ab8={'startColumn':_0x1c340c['first'],'endColumn':_0x1c340c['last'],'includeAllSlots':!0x0};}const _0x359d79=_0x6523b7['createTableWalker'](_0x5a9841,_0x308ab8),_0x5ad6d5=Array['from'](_0x359d79)['map'](({cell:_0x24cfec})=>_0x24cfec),_0x275cda=Nt(_0x5ad6d5['filter'](_0x504977=>_0x504977['hasAttribute'](_0x117323))),_0x5822aa=Nt(_0x5ad6d5['filter'](_0x14420f=>!_0x14420f['hasAttribute'](_0x117323)))['map'](_0x18f3c0=>_0x5112b5['createRangeOn'](_0x18f3c0)),_0x212dd5=_0x2095da['markMultiRangeDeletion'](_0x5822aa,_0x38a45f);if(_0x212dd5&&('tableRow'==_0x212dd5['subType']||'tableColumn'==_0x212dd5['subType'])){const _0xa66193=this['_getSuggestionCoords'](_0x212dd5);for(const _0x437dd6 of _0x275cda){const _0x27ab23=_0x5112b5['createRangeOn'](_0x437dd6),_0x2d8e36=_0x6523b7['getCellLocation'](_0x437dd6),_0xc353ae=_0x437dd6['getAttribute'](_0x117323)-0x1,_0x38c668=_0xa66193[_0x548583],_0x231bc6=_0xa66193[_0x2aa9c7];_0x38c668<=_0x2d8e36[_0x33d929]&&_0x2d8e36[_0x33d929]+_0xc353ae<=_0x231bc6&&_0x212dd5['addRange'](_0x27ab23);}}});});}function _0x4d220a(_0x5bb9f9){const _0x12c484=Array['from'](_0x266455['getRanges']())['map'](_0x2ff7c8=>_0x4c6b54['fromRange'](_0x2ff7c8));_0x490285['model']['change'](_0x2bb2cb=>{const _0x2d20ef=_0x2bb2cb['batch'];_0x5bb9f9=_0x5bb9f9['filter'](_0x1af8ef=>'$graveyard'!=_0x1af8ef['root']['rootName']),_0x2bb2cb['setSelection'](_0x5bb9f9),_0x490285['commands']['get']('removeTableRow')['refresh'](),_0x490285['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x490285['model']['enqueueChange'](()=>{_0x490285['model']['enqueueChange'](_0x2d20ef,_0x139d08=>{const _0x354213=_0x12c484['filter'](_0xb79799=>'$graveyard'!=_0xb79799['root']['rootName']);_0x354213['length']>0x0&&_0x139d08['setSelection'](_0x354213);for(const _0x384e98 of _0x12c484)_0x384e98['detach']();});});});}function _0x5738d2(_0x238961){_0x490285['model']['change'](_0x287224=>{const _0x40d7f0=Array['from'](_0x266455['getRanges']())['map'](_0x294eb2=>_0x4c6b54['fromRange'](_0x294eb2)),_0x4bd9b3=[];for(const _0x476087 of _0x238961)for(const _0x200360 of _0x476087['getItems']({'shallow':!0x0}))_0x4bd9b3['push'](_0x200360);for(const _0x1671a9 of _0x4bd9b3)'$graveyard'!=_0x1671a9['root']['rootName']&&(_0x287224['setSelection'](_0x287224['createPositionAt'](_0x1671a9,0x0)),_0x490285['commands']['get']('removeTableColumn')['refresh'](),_0x490285['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x26c10f=_0x40d7f0['filter'](_0x323f18=>'$graveyard'!=_0x323f18['root']['rootName']);_0x26c10f['length']>0x0&&_0x287224['setSelection'](_0x26c10f);for(const _0x2dd4e3 of _0x40d7f0)_0x2dd4e3['detach']();});}function _0x1f5a50(_0x287de4,_0x18e75e){return _0x18e75e['every'](_0x23d8cf=>_0x287de4['some'](_0x3c308e=>_0x3c308e['end']['isEqual'](_0x23d8cf['start'])||_0x23d8cf['end']['isEqual'](_0x3c308e['start'])));}function _0x1b4f2d(_0x3bc8d8,_0x2a73c8){return!_0x3bc8d8['some'](_0x2d4300=>_0x2a73c8['some'](_0x3cb889=>_0x2d4300['isIntersecting'](_0x3cb889)))&&_0x3bc8d8['some'](_0x5b0afa=>_0x2a73c8['some'](_0x382d7b=>_0x5b0afa['end']['isTouching'](_0x382d7b['start'])));}_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x4349f3=>{if('insertion'!=_0x4349f3['type']&&'deletion'!=_0x4349f3['type'])return;const _0xe886aa=_0x4349f3['getContainedElement']();if(null!=_0xe886aa&&_0xe886aa['is']('element','table')){if('insertion'==_0x4349f3['type']){const _0x19bc0a=_0x4349f3['getItems']()['filter'](_0x3a8862=>_0x3a8862['is']('$textProxy'))['map'](_0x47a7ff=>_0x47a7ff['data']);if(_0x19bc0a['length'])return{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19bc0a['join']('\x20')+'\x22'))};}if('deletion'==_0x4349f3['type']){const _0x2a39c6=_0x4349f3['getItems']()['filter'](_0x28559a=>_0x28559a['is']('$textProxy'))['map'](_0x497e4e=>_0x497e4e['data']);if(_0x2a39c6['length'])return{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a39c6['join']('\x20')+'\x22'))};}}}),_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x7d2f22=>{if('tableRow'==_0x7d2f22['subType']){const _0xee47e6=_0x7d2f22['getItems']()['filter'](_0xc0fce1=>_0xc0fce1['is']('$textProxy'))['map'](_0x3cf07e=>_0x3cf07e['data']),_0x48332a=this['_getSuggestionCoords'](_0x7d2f22),_0x1ff571=_0x48332a['maxRow']-_0x48332a['minRow']+0x1;if('insertion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};if('deletion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};}if('tableColumn'==_0x7d2f22['subType']){const _0x16d5e0=_0x7d2f22['getItems']()['filter'](_0x182f7e=>_0x182f7e['is']('$textProxy'))['map'](_0x1fd0dc=>_0x1fd0dc['data']),_0x2d0385=this['_getSuggestionCoords'](_0x7d2f22),_0x23eef0=_0x2d0385['maxColumn']-_0x2d0385['minColumn']+0x1;if('insertion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};if('deletion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};}}),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b4f2d),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b4f2d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9cd7b=this['editor'],_0x30a51b=_0x9cd7b['model']['document']['selection'];return(_0x31b2ed,_0x2a8bd5)=>{_0x9cd7b['model']['change'](_0x50b085=>{const {commandName:_0x347cb1,commandParams:_0x75d120}=_0x2a8bd5;let _0x1a6440=_0x31b2ed[0x0]['end']['nodeBefore'];_0x75d120&&_0x75d120[0x0]&&!0x1===_0x75d120[0x0]['forceValue']&&(_0x1a6440=_0x31b2ed[0x0]['start']['nodeAfter']);const _0x1bb65a=_0x50b085['createRangeIn'](_0x1a6440);if('$graveyard'==_0x1bb65a['root']['rootName'])return;const _0x308d7c=Array['from'](_0x30a51b['getRanges']())['map'](_0xcd8613=>_0x4c6b54['fromRange'](_0xcd8613));_0x50b085['setSelection'](_0x1bb65a),_0x9cd7b['commands']['get'](_0x347cb1)['refresh'](),_0x75d120['push']({'forceDefaultExecution':!0x0}),_0x9cd7b['execute'](_0x347cb1,..._0x75d120);const _0x5b2a5a=_0x308d7c['filter'](_0x526dbd=>'$graveyard'!=_0x526dbd['root']['rootName']);_0x5b2a5a['length']>0x0&&_0x50b085['setSelection'](_0x5b2a5a);for(const _0x2e3fc5 of _0x308d7c)_0x2e3fc5['detach']();});};}['_getCoordsForCells'](_0x4ce327){const _0x5af1d2=this['editor']['plugins']['get']('TableUtils');let _0x4a71a5=Number['MAX_SAFE_INTEGER'],_0xf24709=Number['MIN_SAFE_INTEGER'],_0x283dae=Number['MAX_SAFE_INTEGER'],_0x3d106a=Number['MIN_SAFE_INTEGER'];for(const _0x2ca958 of _0x4ce327){if('$graveyard'==_0x2ca958['root']['rootName'])continue;const {row:_0x2f89bc,column:_0x151d6e}=_0x5af1d2['getCellLocation'](_0x2ca958),_0x1cbcc6=_0x2ca958['hasAttribute']('rowspan')?_0x2ca958['getAttribute']('rowspan')-0x1:0x0,_0x1607ec=_0x2ca958['hasAttribute']('colspan')?_0x2ca958['getAttribute']('colspan')-0x1:0x0;_0x4a71a5=_0x2f89bc<_0x4a71a5?_0x2f89bc:_0x4a71a5,_0xf24709=_0x2f89bc+_0x1cbcc6>_0xf24709?_0x2f89bc+_0x1cbcc6:_0xf24709,_0x283dae=_0x151d6e<_0x283dae?_0x151d6e:_0x283dae,_0x3d106a=_0x151d6e+_0x1607ec>_0x3d106a?_0x151d6e+_0x1607ec:_0x3d106a;}return{'minRow':_0x4a71a5,'maxRow':_0xf24709,'minColumn':_0x283dae,'maxColumn':_0x3d106a};}['_setupColumnsRowsFixing'](){const _0x146a02=this['editor'],_0x2f626f=_0x146a02['plugins']['get']('TrackChangesEditing'),_0x2ce33f=_0x146a02['plugins']['get']('TableUtils');_0x146a02['model']['document']['on']('change:data',()=>{const _0x563ad4=Array['from'](_0x146a02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15a8bf,data:_0x568c3f}of _0x563ad4){const {group:_0x4ca452,id:_0x2bc8d9,subType:_0x2315e3}=_0x4f787f(_0x15a8bf);if('suggestion'!=_0x4ca452)continue;if(null!=_0x568c3f['oldRange'])continue;const _0x36ce57=_0x2f626f['getSuggestion'](_0x2bc8d9);this['_tablePostFixingSubtypes']['includes'](_0x2315e3)&&this['_tableSuggestions']['add'](_0x36ce57);}},{'priority':'low'});const _0x133f1d=(_0x59f3bc,_0x507f0d)=>{let _0x5d0f8d=!0x1;const _0x3dc7db=_0x507f0d['createRangeOn'](_0x59f3bc),_0x897f4f=_0x59f3bc['findAncestor']('table'),_0x101b23=_0x2ce33f['getCellLocation'](_0x59f3bc);for(const _0x3cfa1f of this['_tableSuggestions']){const _0xec5afe=_0x3cfa1f['subType'],_0x414e1e=_0xec5afe['startsWith']('tablePaste'),_0x27cdcf=_0xec5afe['substr'](_0x414e1e?0xa:0x5),_0x41ad32=_0x27cdcf['toLowerCase'](),_0x52af66=_0x41ad32['substr'](0x0,0x3)+'span',_0x128fdd='min'+_0x27cdcf,_0x193079='max'+_0x27cdcf;if(!_0x3cfa1f['isInContent'])continue;if(_0x897f4f!=_0x3cfa1f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3cfa1f['isIntersectingWithRange'](_0x3dc7db))continue;const _0x567160=_0x59f3bc['hasAttribute'](_0x52af66)?_0x59f3bc['getAttribute'](_0x52af66)-0x1:0x0,_0x3a140c=this['_getSuggestionCoords'](_0x3cfa1f),_0x388c7d=_0x3a140c[_0x128fdd],_0x3bb98a=_0x3a140c[_0x193079];_0x388c7d<=_0x101b23[_0x41ad32]&&_0x101b23[_0x41ad32]+_0x567160<=_0x3bb98a&&(_0x3cfa1f['addRange'](_0x3dc7db),_0x5d0f8d=!0x0);}return _0x5d0f8d;};_0x146a02['model']['document']['registerPostFixer'](_0x1cd869=>{let _0x1374cc=!0x1;for(const _0x3ac011 of _0x146a02['model']['document']['differ']['getChanges']())if('insert'==_0x3ac011['type']){if('tableRow'==_0x3ac011['name']){for(const _0x30ddf5 of _0x3ac011['position']['nodeAfter']['getChildren']())_0x1374cc=_0x1374cc||_0x133f1d(_0x30ddf5,_0x1cd869);}else'tableCell'==_0x3ac011['name']&&(_0x1374cc=_0x1374cc||_0x133f1d(_0x3ac011['position']['nodeAfter'],_0x1cd869));}return _0x1374cc;});}['_getSuggestionCoords'](_0x2d7697){return this['_getCoordsForCells'](_0x2d7697['getRanges']()['map'](_0x52d459=>_0x52d459['start']['nodeAfter']));}}function Nt(_0x5a2934){return Array['from'](new Set(_0x5a2934)['values']());}class TrackChangesTableMergeSplit extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x65dfcc=this['editor'],_0x33a83d=_0x65dfcc['model']['document']['selection'],_0x2234b6=_0x65dfcc['locale'];if(!_0x65dfcc['plugins']['has']('TableEditing'))return;const _0xf1966e=_0x65dfcc['plugins']['get']('TrackChangesEditing'),_0x1efd2b=_0x65dfcc['plugins']['get']('TableUtils'),_0xc0fae5=_0x65dfcc['plugins']['get'](TrackChangesTable);_0xc0fae5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xf1966e['enableCommand']('mergeTableCells',()=>{const _0x1314e1=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection']);_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat'](_0x1314e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x65dfcc['commands']['get']('mergeTableCells')['on']('execute',(_0x4a86b9,_0x2a186c)=>{_0x65dfcc['commands']['get']('trackChanges')['value']&&(_0x2a186c['length']>0x0&&_0x2a186c[_0x2a186c['length']-0x1]&&_0x2a186c[_0x2a186c['length']-0x1]['forceDefaultExecution']||_0xf1966e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a86b9['stop']());},{'priority':'highest'});for(const _0x57bedc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2542e1=_0x65dfcc['commands']['get'](_0x57bedc);_0xf1966e['enableCommand'](_0x57bedc,()=>{const _0x222c7d=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46c871=>_0x46c871['is']('element','tableCell')),_0x4d6b2f=_0x2542e1['value'];_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat']([_0x222c7d,_0x4d6b2f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x436dbb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d6d1a=_0x65dfcc['commands']['get'](_0x436dbb);_0xf1966e['enableCommand'](_0x436dbb,()=>{const _0x334c5e=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection'])[0x0],_0xa98f29=_0x334c5e['findAncestor']('table'),{column:_0x88f742,row:_0x33f588}=_0x1efd2b['getCellLocation'](_0x334c5e);let _0x26ce73=[];if('horizontally'==_0x1d6d1a['direction']){const _0x28f085=_0x1efd2b['createTableWalker'](_0xa98f29,{'startRow':_0x33f588,'endRow':_0x33f588,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x28f085)['map'](_0x88c3fe=>_0x88c3fe['cell']);}else{const _0x1b212c=_0x1efd2b['createTableWalker'](_0xa98f29,{'column':_0x88f742,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x1b212c)['map'](_0xa377b2=>_0xa377b2['cell']);}_0x65dfcc['model']['change'](_0x1cf365=>{_0xf1966e['markBlockFormat'](_0x1cf365['createRangeOn'](_0x334c5e),{'commandName':_0x436dbb,'commandParams':[]},_0x26ce73,_0x436dbb);});});}_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x25fc18=>{if('formatBlock'!=_0x25fc18['type']&&'formatInline'!=_0x25fc18['type'])return;const {data:_0x433b56}=_0x25fc18;return _0x433b56&&'mergeTableCells'==_0x433b56['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Merge\x20cells*')}:void 0x0;}),_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x3090dc=>{if('formatBlock'!=_0x3090dc['type']&&'formatInline'!=_0x3090dc['type'])return;const {data:_0xaa19e3}=_0x3090dc;return _0xaa19e3?'splitTableCellVertically'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x468abe=_0xc0fae5['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b02fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b02fd,'accept',_0x468abe);for(const _0xcbfa6c of['splitTableCellVertically','splitTableCellHorizontally'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcbfa6c,'accept',_0x468abe);_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2db98a=>{_0x65dfcc['model']['change'](_0xe878c9=>{const _0x437084=Array['from'](_0x33a83d['getRanges']())['map'](_0x938f30=>_0x4c6b54['fromRange'](_0x938f30));_0xe878c9['setSelection'](_0x2db98a),_0x65dfcc['commands']['get']('mergeTableCells')['refresh'](),_0x65dfcc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c485f=_0x437084['filter'](_0xceccd2=>'$graveyard'!=_0xceccd2['root']['rootName']);_0x4c485f['length']>0x0&&_0xe878c9['setSelection'](_0x4c485f);for(const _0x3e4a5d of _0x437084)_0x3e4a5d['detach']();});});for(const _0x42397d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1a5232=_0x65dfcc['commands']['get'](_0x42397d);_0x1a5232['on']('set:isEnabled',(_0x1a56f6,_0xd04d33,_0x1af5a1)=>{if(_0x1af5a1){const _0x5e6579=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48a815=>_0x48a815['is']('element','tableCell'));this['_areMergableCells'](_0x1a5232['value'],_0x5e6579)||(_0x1a56f6['return']=!0x1,_0x1a56f6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51b810=this['editor']['commands']['get']('mergeTableCells'),_0x2f8c2a=this['editor']['plugins']['get']('TableUtils');if(!_0x51b810['isEnabled'])return!0x1;const _0x2f3e5f=_0x2f8c2a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x9a2265 of _0x2f3e5f)for(const _0x47aede of _0x2f3e5f)if(_0x9a2265!=_0x47aede&&!this['_areMergableCells'](_0x9a2265,_0x47aede))return!0x1;return!0x0;}['_areMergableCells'](_0x433000,_0x1a7d41){const _0x552cb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3066cf=this['editor']['model']['createRangeOn'](_0x433000),_0x2fa8d9=this['editor']['model']['createRangeOn'](_0x1a7d41),_0x696f47=new Set(),_0x52f566=new Set();for(const _0x51a3eb of _0x552cb8['getSuggestions']())if(('insertion'==_0x51a3eb['type']||'deletion'==_0x51a3eb['type']||'mergeTableCells'==_0x51a3eb['subType'])&&_0x51a3eb['isInContent']){for(const _0x44b78b of _0x51a3eb['getRanges']())_0x44b78b['containsRange'](_0x3066cf,!0x0)&&_0x696f47['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']),_0x44b78b['containsRange'](_0x2fa8d9,!0x0)&&_0x52f566['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']);}if(_0x696f47['size']!=_0x52f566['size'])return!0x1;for(const _0x1ccab9 of _0x696f47)if(!_0x52f566['has'](_0x1ccab9))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x37d39e=this['editor'];if(!_0x37d39e['plugins']['has']('TableEditing'))return;const _0x3caa25=_0x37d39e['locale'],_0x17c1dc=_0x37d39e['plugins']['get']('TrackChangesEditing');_0x17c1dc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17c1dc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x3caa25,'FORMAT_HEADER_ROW')),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x3caa25,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22609b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5532d4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5532d4),_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5532d4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4a72ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8fc=this['editor']['plugins']['get']('TableUtils');function _0x19b271({showActiveMarker:_0x463f24=!0x0,setDataAttribute:_0x56cd60=!0x0}={}){return(_0x392fa0,_0x5e2744,_0x1a4a4b)=>{const {type:_0x56e1a5,id:_0xf80f20}=_0x4f787f(_0x5e2744['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xf80f20))return;const _0x432f89=_0x4a72ce['getSuggestion'](_0xf80f20),_0x1f5914=_0x432f89['data'];if('formatBlock'!=_0x432f89['type']||!_0x1f5914||'setTableColumnHeader'!=_0x1f5914['commandName'])return;if(_0x5e2744['item'])return void _0x392fa0['stop']();if(!_0x1a4a4b['consumable']['consume'](_0x5e2744['markerRange'],_0x392fa0['name']))return;const _0xe9b840=_0x5e2744['markerRange']['start']['nodeAfter'],_0x4d77a2=_0x5e2744['markerRange']['end']['nodeBefore'],_0x1831be=_0xe9b840['parent']['parent'],{column:_0x47f4ca}=_0x1ba8fc['getCellLocation'](_0xe9b840),{column:_0x57382f}=_0x1ba8fc['getCellLocation'](_0x4d77a2);for(let _0x81046c=_0x47f4ca;_0x81046c<=_0x57382f;_0x81046c++){const _0x2c8f57=_0x1ba8fc['createTableWalker'](_0x1831be,{'column':_0x81046c,'includeAllSlots':!0x1});for(const _0x1e4095 of _0x2c8f57){const _0x4b5c5e=_0x1e4095['cell'],_0x3aa4ee=_0x1a4a4b['mapper']['toViewElement'](_0x4b5c5e);_0x1a4a4b['writer']['addClass']('ck-suggestion-marker-'+_0x56e1a5,_0x3aa4ee),_0x56cd60&&_0x1a4a4b['writer']['setAttribute']('data-suggestion',_0xf80f20,_0x3aa4ee),_0x1a4a4b['mapper']['bindElementToMarker'](_0x3aa4ee,_0x5e2744['markerName']),_0x463f24&&(_0x4a72ce['activeMarkers']['includes'](_0x5e2744['markerName'])?_0x1a4a4b['writer']['addClass']('ck-suggestion-marker--active',_0x3aa4ee):_0x1a4a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x3aa4ee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19b271(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x99fcbf,_0x46b759,_0x163b79)=>{_0x163b79['options']['showSuggestionHighlights']&&_0x19b271({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x99fcbf,_0x46b759,_0x163b79);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1afb2e,_0x3de285,_0x2a6df3)=>{const {type:_0x94acd0,id:_0xdb42a8}=_0x4f787f(_0x3de285['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xdb42a8))return;const _0x3b4642=_0x4a72ce['getSuggestion'](_0xdb42a8),_0x117402=_0x3b4642['data'];if('formatBlock'!=_0x3b4642['type']||!_0x117402||'setTableColumnHeader'!=_0x117402['commandName'])return;const _0x251d45=_0x2a6df3['mapper']['markerNameToElements'](_0x3de285['markerName']);if(_0x251d45){for(const _0xc5eb32 of _0x251d45)_0x2a6df3['writer']['removeClass']('ck-suggestion-marker-'+_0x94acd0,_0xc5eb32),_0x2a6df3['writer']['removeClass']('ck-suggestion-marker--active',_0xc5eb32),_0x2a6df3['writer']['removeAttribute']('data-suggestion',_0xc5eb32),_0x2a6df3['mapper']['unbindElementFromMarkerName'](_0xc5eb32,_0x3de285['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2c93db=this['editor'],_0x1f7ad7=_0x2c93db['locale'];function _0x5e4835(_0xdb955b){return{'type':'format','content':Tt(_0x1f7ad7,'*Format:*\x20%0',_0xdb955b)};}_0x2c93db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x325d32=>{if('formatBlock'!=_0x325d32['type'])return;const {data:_0x25c176}=_0x325d32;if(_0x25c176){if('setTableRowHeader'==_0x25c176['commandName']){const _0x3f2742=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x3f2742?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25c176['commandName']){const _0x1dcb21=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x1dcb21?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4c6e64=this['editor'];if(!_0x4c6e64['plugins']['has']('TableEditing')||!_0x4c6e64['config']['get']('table.enableFooters'))return;const _0x8a3484=_0x4c6e64['locale'],_0x5c62e2=_0x4c6e64['plugins']['get']('TrackChangesEditing');_0x5c62e2['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5c62e2['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x8a3484,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x203e6b{['afterInit'](){const _0x4f9df4=this['editor'],_0x3ae4cb=_0x4f9df4['locale'],_0x2076ed=_0x4f9df4['plugins']['get']('TrackChangesEditing');function _0x53655d(_0x483e7a){return{'type':'format','content':''+Tt(_0x3ae4cb,'*Set\x20table\x20type:*\x20%0',_0x483e7a)};}_0x4f9df4['plugins']['has']('TableLayout')&&(_0x2076ed['enableCommand']('insertTableLayout'),_0x2076ed['enableDefaultAttributesIntegration']('tableType'),_0x2076ed['descriptionFactory']['registerElementLabel'](_0x3f166e=>_0x3f166e['is']('element','table')&&'layout'===_0x3f166e['getAttribute']('tableType'),_0x347a16=>Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE',_0x347a16)),_0x2076ed['descriptionFactory']['registerDescriptionCallback'](_0x41f5e3=>{const {data:_0xa8670}=_0x41f5e3;if(_0xa8670&&'tableType'==_0xa8670['key'])switch(_0xa8670['newValue']){case'layout':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Mt['map'](_0x4bf834=>[_0x4bf834,null]));class TrackChangesTableClipboard extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x378ac7=this['editor'];if(!_0x378ac7['plugins']['has']('TableClipboard'))return;const _0x529896=_0x378ac7['plugins']['get']('TrackChangesEditing'),_0xf411dc=_0x378ac7['plugins']['get']('TableUtils'),_0x482b2e=_0x378ac7['plugins']['get'](TrackChangesTable),_0x50a1ae=_0x378ac7['plugins']['get']('TableClipboard'),_0x4f045f=_0x378ac7['plugins']['get']('TableSelection'),_0x16e9ac=_0x378ac7['plugins']['get'](ut);_0x482b2e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x378ac7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x378ac7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b0775=null,_0x32c01c=!0x1;_0x16e9ac['on']('contentInsertion',(_0x457b6c,_0x22db33)=>{_0x32c01c='paste'===_0x22db33['method'];}),_0x378ac7['model']['on']('insertContent',(_0x48fd16,_0x1b4b14)=>{if(!_0x32c01c&&null===_0x4f045f['getSelectedTableCells']())return;const [_0x5137e0,_0x2a0677]=_0x1b4b14,_0x589176=_0x1b4b14[_0x1b4b14['length']-0x1];_0x589176&&_0x589176['forceDefaultExecution']||_0x529896['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x120c2c,_0x24c1c2,_0x55433e,_0x5875bd,_0x2e916a){if(_0x24c1c2&&!_0x24c1c2['is']('documentSelection'))return!0x1;const _0xdfcfb=_0x2e916a['getTableIfOnlyTableInContent'](_0x120c2c,_0x55433e);if(!_0xdfcfb||!Ft(_0xdfcfb,void 0x0,_0x5875bd))return!0x1;const _0x2308a5=_0x5875bd['getSelectionAffectedTableCells'](_0x55433e['document']['selection']);if(!_0x2308a5['length'])return!0x1;const _0x2fc9bb=_0x2308a5[0x0]['findAncestor']('table'),_0x49b477=_0x5875bd['getRowIndexes'](_0x2308a5),_0xab5550=_0x5875bd['getColumnIndexes'](_0x2308a5),_0x1d2d78={'startRow':_0x49b477['first'],'endRow':_0x49b477['last'],'startColumn':_0xab5550['first'],'endColumn':_0xab5550['last']};return 0x1==_0x2308a5['length']&&(_0x1d2d78['endRow']+=_0x5875bd['getRows'](_0xdfcfb)-0x1,_0x1d2d78['endColumn']+=_0x5875bd['getColumns'](_0xdfcfb)-0x1),Ft(_0x2fc9bb,_0x1d2d78,_0x5875bd);}(_0x5137e0,_0x2a0677,_0x378ac7['model'],_0xf411dc,_0x50a1ae)&&(_0x48fd16['stop'](),_0x5b0775={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x378ac7['model']['change'](()=>{_0x378ac7['model']['insertContent'](_0x1b4b14[0x0],_0x1b4b14[0x1],_0x1b4b14[0x2],{'forceDefaultExecution':!0x0});const _0x22da38=_0x1e5a7d(),{rowInsertionRanges:_0x85ba2,columnInsertionRanges:_0x335025,insertionRanges:_0x5413a8,deletionRanges:_0x3fc7fd,cells:_0x4cd61f}=_0x5b0775;_0x85ba2['length']&&_0x529896['markMultiRangeInsertion'](_0x85ba2,'tablePasteRow',{'tablePasteChainId':_0x22da38}),_0x335025['length']&&_0x529896['markMultiRangeInsertion'](_0x335025,'tablePasteColumn',{'tablePasteChainId':_0x22da38}),_0x5413a8['length']&&(_0x529896['markMultiRangeInsertion'](_0x5413a8,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x5413a8['forEach'](_0x48a289=>_0x48a289['detach']?.())),_0x3fc7fd['length']&&(_0x529896['markMultiRangeDeletion'](_0x3fc7fd,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x3fc7fd['forEach'](_0x76ed5a=>_0x76ed5a['detach']?.()));const _0x13a893=_0x529896['markMultiRangeBlockFormat'](_0x4cd61f['map'](({element:_0x2ad931})=>_0x2ad931),{'formatGroupId':_0x1e5a7d()},[],'tablePasteCell',{'tablePasteChainId':_0x22da38});if(_0x13a893){const _0x4ac13d=_0x13a893['getMarkers'](),_0x4c5619=[];for(const {element:_0x870c8e,attributes:_0x42e56e}of _0x4cd61f){if(!_0x42e56e)continue;const _0x50ecf7=_0x378ac7['model']['createRangeOn'](_0x870c8e),_0x1779f5=_0x4ac13d['find'](_0x2443b4=>_0x2443b4['getRange']()['isEqual'](_0x50ecf7));_0x1779f5&&_0x4c5619['push']([_0x1779f5['name'],_0x42e56e]);}_0x4c5619['length']&&_0x13a893['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c5619));}_0x5b0775=null;}));},{'priority':_0xcf8801['high']+0xa}),_0x16e9ac['on']('contentInsertion',()=>{_0x32c01c=!0x1;},{'priority':'lowest'}),_0x378ac7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x6f0b7a,_0x495474)=>{const [_0x3c94bd,_0x14e48f,,_0x2e9ab7]=_0x495474;if(!_0x5b0775)return;_0x6f0b7a['stop']();const _0x2281b0=_0x3c94bd['cell'],_0x3d8fb2=_0x14e48f,_0x569c3c=wt(_0x2281b0),_0x15e73b=wt(_0x3d8fb2);_0x6f0b7a['return']=_0x2281b0;let _0x396a0a=null,_0x12b3c5=null;if(_0x15e73b||_0x569c3c){if(_0x569c3c&&!_0x15e73b){_0x2e9ab7['remove'](_0x2281b0['getChild'](0x0));for(const _0x236067 of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x236067,_0x2281b0,'end');const _0x4d6fd5=_0x5b0775['rowInsertionIndexes']['includes'](_0x3c94bd['row']),_0xbe8e6f=_0x5b0775['columnInsertionIndexes']['includes'](_0x3c94bd['column']);_0x4d6fd5||_0xbe8e6f||(_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeIn'](_0x2281b0)));}else _0x15e73b&&!_0x569c3c&&(_0x12b3c5=_0x2e9ab7['createRangeIn'](_0x2281b0));}else{const _0x117612=_0x2e9ab7['createElement']('tableCellSuggestion'),_0x26c282=_0x2e9ab7['createElement']('tableCellSuggestion');_0x2e9ab7['wrap'](_0x2e9ab7['createRangeIn'](_0x2281b0),_0x26c282),_0x2e9ab7['insert'](_0x117612,_0x2281b0,0x0);for(const _0x58d28b of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x58d28b,_0x117612,'end');_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x117612)),_0x12b3c5=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x26c282));}const _0x2917da=Array['from'](_0x3d8fb2['getAttributes']())['filter'](([_0x22c707])=>Mt['includes'](_0x22c707));_0x5b0775['cells']['push']({'element':_0x2281b0,'attributes':_0x2917da['length']?Object['fromEntries'](_0x2917da):null}),_0x396a0a&&_0x5b0775['insertionRanges']['push'](_0x396a0a),_0x12b3c5&&_0x5b0775['deletionRanges']['push'](_0x12b3c5);},{'priority':'high'}),_0xf411dc['on']('insertColumns',(_0x187ac3,_0x4b18a3)=>{const [_0x1f03be,_0x1aecf2={}]=_0x4b18a3;if(!_0x5b0775)return;const _0x55edb9=_0x1aecf2['at']||0x0,_0x57456d=_0x1aecf2['columns']||0x1;_0x5b0775['columnInsertionIndexes']=new Array(_0x57456d)['fill'](_0x55edb9)['map']((_0xfb4609,_0x1bb603)=>_0xfb4609+_0x1bb603);for(const {cell:_0x34729b}of _0xf411dc['createTableWalker'](_0x1f03be,{'startColumn':_0x55edb9,'endColumn':_0x55edb9+_0x57456d-0x1}))_0x5b0775['columnInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x34729b));},{'priority':'low'}),_0xf411dc['on']('insertRows',(_0x267c56,_0x125084)=>{const [_0x25cd12,_0x370b99={}]=_0x125084;if(!_0x5b0775)return;const _0xb9f1c7=_0x370b99['at']||0x0,_0xf5a3b1=_0x370b99['rows']||0x1;_0x5b0775['rowInsertionIndexes']=new Array(_0xf5a3b1)['fill'](_0xb9f1c7)['map']((_0x11e806,_0x3cb65b)=>_0x11e806+_0x3cb65b);for(const {cell:_0x3d993d}of _0xf411dc['createTableWalker'](_0x25cd12,{'startRow':_0xb9f1c7,'endRow':_0xb9f1c7+_0xf5a3b1-0x1}))_0x5b0775['rowInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x3d993d));},{'priority':'low'}),_0x529896['descriptionFactory']['registerDescriptionCallback'](_0x176368=>{if(_0x176368['subType']&&_0x176368['subType']['startsWith']('tablePaste'))return _0x176368['previous']?{}:{'type':'insertion','content':Tt(_0x378ac7['locale'],'*Replace\x20table\x20cells*')};});const _0x47ef9d=()=>!0x1;for(const _0x13ea53 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x529896['_suggestionFactory']['registerCustomCallback']('insertion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('deletion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13ea53,'join',_0x47ef9d);_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e8ab,_0x5a2781,_0x2c7652)=>{const _0x43ca0c=_0x3e8ab['map'](_0x1c6d99=>_0x1c6d99['getContainedElement']())['filter'](_0xfd42ae=>_0xfd42ae),_0x176ce6=new Map(_0x43ca0c['map'](_0x5375a2=>[_0x5375a2,null]));if(_0x5b0775){for(const {element:_0x61a71,attributes:_0x46ff86}of _0x5b0775['cells'])_0x46ff86&&_0x176ce6['set'](_0x61a71,_0x46ff86);}else{if(_0x2c7652&&_0x2c7652['markerAttributes'])for(const [_0x39483a,_0x36a91e]of Object['entries'](_0x2c7652['markerAttributes'])){const _0x40bd20=_0x378ac7['model']['markers']['get'](_0x39483a),_0x5de9d5=_0x40bd20?_0x40bd20['getRange']()['getContainedElement']():null;_0x5de9d5&&_0x176ce6['set'](_0x5de9d5,_0x36a91e);}}_0x378ac7['model']['change'](_0x382261=>{for(const [_0x5e3358,_0x1b79e8]of _0x176ce6)_0x382261['setAttributes']({...Ot,..._0x1b79e8},_0x5e3358);});});const _0x4a5224=(_0x3076ec,_0x3f23f8)=>{_0x529896['_suggestionFactory']['registerCustomCallback'](_0x3076ec,'tablePaste',_0x3f23f8,(_0x3265de,_0x4e499a,_0x3e98a9)=>{_0x378ac7['model']['change'](_0x59daac=>{const _0x40bd08=[];for(const _0x410171 of _0x3265de){const _0x2ce8af=_0x410171['start']['nodeAfter'];_0x2ce8af['is']('element','tableCellSuggestion')&&_0x40bd08['push'](_0x2ce8af);}_0x529896['_suggestionFactory']['getSuggestionCallback'](_0x3076ec,null,_0x3f23f8)(_0x3265de,_0x4e499a,_0x3e98a9);for(const _0x499e6c of _0x40bd08)'$graveyard'!=_0x499e6c['root']['rootName']&&_0x59daac['unwrap'](_0x499e6c);});});};_0x4a5224('insertion','accept'),_0x4a5224('insertion','discard'),_0x4a5224('deletion','accept'),_0x4a5224('deletion','discard'),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38b723=>{const _0x133c1d=_0x38b723['map'](_0x4b5ac6=>_0x4b5ac6['getContainedElement']()),_0x3b6f7e=_0x133c1d[0x0]['findAncestor']('table'),{minRow:_0x1340c3,maxRow:_0x916ec8}=_0x482b2e['_getCoordsForCells'](_0x133c1d);_0xf411dc['removeRows'](_0x3b6f7e,{'at':_0x1340c3,'rows':_0x916ec8-_0x1340c3+0x1});}),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1884d0=>{const _0x5507f5=_0x1884d0['map'](_0x5d9d62=>_0x5d9d62['getContainedElement']()),_0x8a1b2a=_0x5507f5[0x0]['findAncestor']('table'),{minColumn:_0x47943e,maxColumn:_0x10dde1}=_0x482b2e['_getCoordsForCells'](_0x5507f5);_0xf411dc['removeColumns'](_0x8a1b2a,{'at':_0x47943e,'columns':_0x10dde1-_0x47943e+0x1});});const _0x10a81b=(_0x90256,_0xc4c1a1)=>{if(!_0xc4c1a1['subType']||!_0xc4c1a1['subType']['startsWith']('tablePaste'))return;const _0x137404=_0xc4c1a1['attributes']['tablePasteChainId'],_0x3447f9=_0x529896['getSuggestions']()['filter'](_0x5585c3=>_0x5585c3['isInContent']&&_0x5585c3['attributes']&&_0x5585c3['attributes']['tablePasteChainId']==_0x137404);_0x3447f9['length']&&_0xc4c1a1['getAllAdjacentSuggestions']()['length']!=_0x3447f9['length']&&_0x3447f9['reduce']((_0x4c7e3d,_0x49794b)=>(_0x4c7e3d['next']=_0x49794b,_0x49794b['previous']=_0x4c7e3d,_0x49794b));};function _0x5e5762(_0x1392ed,_0x5aec58=!0x0){const {id:_0x4cee49,authorId:_0x2234e1}=_0x4f787f(_0x1392ed['markerName']),_0x42e66c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x53cc73=_0x529896['activeMarkers']['includes'](_0x1392ed['markerName']);return _0x53cc73&&_0x42e66c['push']('ck-suggestion-marker--active'),{'classes':_0x42e66c,'attributes':{'data-suggestion':_0x4cee49,'data-author-id':_0x2234e1},'priority':_0x53cc73&&_0x5aec58?0xbc2:0xbb8};}_0x529896['on']('suggestionLoaded',_0x10a81b,{'priority':'high'}),_0x529896['on']('suggestionUnloaded',_0x10a81b,{'priority':'high'}),_0x378ac7['model']['document']['registerPostFixer'](()=>{let _0x46ebd1=!0x1;const _0x25b7f6=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a1fc,data:_0x3fcee3}of _0x25b7f6){const {group:_0x4652b5,type:_0x591369,id:_0x50c330}=_0x4f787f(_0x5a1fc);if('suggestion'!=_0x4652b5||'deletion'!=_0x591369||_0x3fcee3['oldRange'])continue;if(!_0x529896['hasSuggestion'](_0x50c330))continue;const _0x3be984=_0x529896['getSuggestion'](_0x50c330)['getRanges'](),_0x398fe4=_0x378ac7['plugins']['get']('Users')['me'];for(const _0x1dff8a of _0x529896['getSuggestions']()){if(!_0x1dff8a['isInContent']||_0x1dff8a['author']!=_0x398fe4)continue;if('formatBlock'!=_0x1dff8a['type']||'tablePasteCell'!=_0x1dff8a['subType'])continue;if(_0x1dff8a['getRanges']()['every'](_0x87170c=>_0x3be984['some'](_0x11c1ab=>_0x11c1ab['containsRange'](_0x87170c,!0x0)))){for(const _0x47e94e of _0x1dff8a['getAllAdjacentSuggestions']())_0x47e94e['isInContent']&&(_0x47e94e['discard'](),_0x46ebd1=!0x0);}}}return _0x46ebd1;}),_0x378ac7['model']['document']['registerPostFixer'](_0x50cb68=>{const _0x2eb583=_0x378ac7['commands']['get']('redo');if(!_0x2eb583||!_0x2eb583['_createdBatches']['has'](_0x50cb68['batch']))return!0x1;let _0x3cb9a6=!0x1;const _0xe83635=_0x378ac7['plugins']['get']('Users')['me'],_0x4fd813=_0x378ac7['model']['document']['differ']['getChanges'](),_0x554bfd=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3530a1,data:_0x245537})=>{const {group:_0x1fb9fc,subType:_0x3fb9cf,authorId:_0x96fb81}=_0x4f787f(_0x3530a1);return'suggestion'==_0x1fb9fc&&'tablePaste'==_0x3fb9cf&&_0x96fb81==_0xe83635['id']&&!_0x245537['oldRange'];});for(const _0x18fa8a of _0x4fd813){if('insert'!=_0x18fa8a['type']||'tableCellSuggestion'!=_0x18fa8a['name']||0x1!=_0x18fa8a['length'])continue;const _0x1633b2=_0x50cb68['createRange'](_0x18fa8a['position'],_0x18fa8a['position']['getShiftedBy'](0x1));if(!_0x554bfd['find'](({data:_0x3aea58})=>_0x3aea58['newRange']['isEqual'](_0x1633b2))){for(const {name:_0x9b44fc,data:_0x5bc2d6}of _0x554bfd)if(_0x1633b2['containsRange'](_0x5bc2d6['newRange'])){_0x50cb68['updateMarker'](_0x9b44fc,{'range':_0x1633b2}),_0x3cb9a6=!0x0;break;}}}return _0x3cb9a6;}),_0x378ac7['model']['document']['registerPostFixer'](_0x512751=>{let _0x3a31b5=!0x1;const _0x399af2=_0x378ac7['plugins']['get']('Users')['me'],_0x26e2cb=_0x529896['getSuggestions']()['filter'](_0x1576f8=>_0x1576f8['isInContent']&&_0x1576f8['author']==_0x399af2),_0x20d005=new Set(),_0x10b731=new Set();for(const _0x4c1c80 of _0x26e2cb)if('tablePaste'==_0x4c1c80['subType'])for(const _0x304ecd of _0x4c1c80['getMarkers']()){const _0x2e74ed=_0x304ecd['getRange']()['getContainedElement']();if(_0x2e74ed){if(_0x2e74ed['is']('element','tableCellSuggestion')&&wt(_0x2e74ed)){_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x20d005['add'](_0x2e74ed),_0x3a31b5=!0x0;const _0x52675e=_0x2e74ed['nextSibling'],_0x4a1175=_0x2e74ed['previousSibling'],_0x1bfe0c=_0x52675e&&_0x52675e['is']('element','tableCellSuggestion'),_0x154c4b=_0x4a1175&&_0x4a1175['is']('element','tableCellSuggestion');_0x1bfe0c&&!_0x20d005['has'](_0x52675e)&&_0x10b731['add'](_0x52675e),_0x154c4b&&!_0x20d005['has'](_0x4a1175)&&_0x10b731['add'](_0x4a1175);}else _0x2e74ed['is']('element','paragraph')&&_0x2e74ed['isEmpty']&&(_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x3a31b5=!0x0);}}else{if('tablePasteCell'==_0x4c1c80['subType']){if(!_0x4c1c80['attributes']||!_0x4c1c80['attributes']['tablePasteChainId'])continue;const _0x3bcd8d=_0x4c1c80['attributes']['markerAttributes'];if(_0x3bcd8d&&Object['keys'](_0x3bcd8d)['length'])continue;const _0x368856=_0x4c1c80['attributes']['tablePasteChainId'];let _0x3ba2c9=!0x0,_0x1022a8=!0x0;for(const _0x1466d7 of _0x26e2cb)if(_0x1466d7['subType']&&_0x1466d7['subType']['startsWith']('tablePaste')){if(!_0x1466d7['attributes']['tablePasteChainId']){_0x1022a8=!0x1;break;}if(_0x1466d7['id']!=_0x4c1c80['id']&&_0x1466d7['attributes']['tablePasteChainId']==_0x368856){_0x3ba2c9=!0x1;break;}}_0x1022a8&&_0x3ba2c9&&(_0x4c1c80['removeMarkers'](),_0x3a31b5=!0x0);}}for(const _0x5ce948 of _0x20d005)_0x512751['remove'](_0x5ce948);for(const _0x5d6331 of _0x10b731)_0x512751['unwrap'](_0x5d6331);return _0x3a31b5;}),_0x378ac7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x283aa7=>_0x5e5762(_0x283aa7),'converterPriority':'high'}),_0x378ac7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a39dc,_0xeef916)=>_0xeef916['options']['showSuggestionHighlights']?_0x5e5762(_0x2a39dc,!0x1):null,'converterPriority':'high'});const _0x4fd9b1=_0x378ac7['editing']['view'];this['listenTo'](_0x4fd9b1['document'],'clipboardOutput',(_0x58ef6d,_0x420a8b)=>{const _0x4594d4=[];for(const _0x4cc76e of _0x4fd9b1['createRangeIn'](_0x420a8b['content'])['getItems']())_0x4cc76e['is']('element','suggestion-td')&&_0x4594d4['push'](_0x4cc76e);_0x4fd9b1['change'](_0x25f13b=>{for(const _0x5b9eba of _0x4594d4)_0x25f13b['move'](_0x25f13b['createRangeIn'](_0x5b9eba),_0x25f13b['createPositionBefore'](_0x5b9eba)),_0x25f13b['remove'](_0x5b9eba);});});}}function wt(_0x4dccab){if(_0x4dccab['isEmpty'])return!0x0;const _0x59fe3=_0x4dccab['getChild'](0x0);return _0x59fe3['is']('element','paragraph')&&_0x59fe3['isEmpty'];}function Ft(_0x44345e,_0x3e9b41={},_0x189740){for(const {isAnchor:_0x35ae61,cellHeight:_0x5ce8d0,cellWidth:_0x21b25e}of _0x189740['createTableWalker'](_0x44345e,{'includeAllSlots':!0x0,..._0x3e9b41}))if(!_0x35ae61||0x1!=_0x5ce8d0||0x1!=_0x21b25e)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3be106=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be106['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3be106['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x243361,_0x2496ef){const _0x3e46cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x874386=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10a14a=_0x2496ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4514da=_0x874386['getColumnGroupElement'](_0x10a14a);let _0x495a20=_0x4514da?_0x874386['getTableColumnsWidths'](_0x4514da):null,_0x1c062a=_0x10a14a['getAttribute']('tableWidth')||null;const _0x1beb75=_0x2496ef['tableWidth']||_0x1c062a,_0x1e6649=_0x2496ef['columnWidths']||_0x495a20,_0x59ed35=this['editor']['plugins']['get']('Users')['me'];for(const _0x5555d3 of _0x3e46cf['getSuggestions']()){const _0x492870=_0x5555d3['getContainedElement']();if('resizeTable'===_0x5555d3['subType']&&_0x492870===_0x10a14a){_0x5555d3['author']!==_0x59ed35&&_0x5555d3['discard']();const _0x2cb351=_0x5555d3['data']['commandParams'];_0x1c062a=_0x2cb351[0x0]['tableWidth'],_0x495a20=_0x2cb351[0x0]['columnWidths'];break;}}_0x243361({'table':_0x10a14a,'tableWidth':_0x1beb75,'columnWidths':_0x1e6649}),_0x3e46cf['markBlockFormat'](_0x10a14a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c062a,'columnWidths':_0x495a20}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2ac0bc){if('formatBlock'!=_0x2ac0bc['type']&&'formatInline'!=_0x2ac0bc['type'])return;const {data:_0x549c29}=_0x2ac0bc;if(_0x549c29&&'resizeTable'===_0x549c29['formatGroupId']){const _0x10b1e3='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x10b1e3)};}}}class TrackChangesTemplate extends _0x203e6b{['afterInit'](){const _0x582716=this['editor'];_0x582716['plugins']['has']('Template')&&_0x582716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x203e6b{['afterInit'](){const _0x4bfacb=this['editor'];if(!_0x4bfacb['commands']['get']('insertTableOfContents'))return;_0x4bfacb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4dc6e4=_0x4bfacb['plugins']['get']('TrackChangesEditing'),_0xb40612=_0x4bfacb['locale'];_0x4dc6e4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f17de=>Tt(_0xb40612,'ELEMENT_TABLE_OF_CONTENTS',_0x1f17de));}}class TrackChangesTitle extends _0x203e6b{['afterInit'](){const _0xc7568b=this['editor'];if(!_0xc7568b['plugins']['has']('Title'))return;_0xc7568b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0xc7568b['locale'],'ELEMENT_TITLE')),_0xc7568b['model']['document']['registerPostFixer'](_0x2d0d92=>{let _0x300862=!0x1;const _0x5b9802=Array['from'](_0xc7568b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f324b,data:_0x2c9ede}of _0x5b9802){const {group:_0x1e823f}=_0x4f787f(_0x1f324b);if('suggestion'!==_0x1e823f||!_0x2c9ede['newRange'])continue;const _0x16cf81=_0x2c9ede['newRange'],_0x232ded=_0x16cf81['end']['nodeBefore'];if(!_0x232ded||!_0x232ded['is']('element','title-content'))continue;if(!_0x16cf81['start']['isTouching'](_0x16cf81['end']))continue;const _0x543b7c=_0xc7568b['model']['schema']['getNearestSelectionRange'](_0x16cf81['end'],'forward');if(_0x543b7c&&_0x543b7c['isCollapsed']){const _0x504b7e=_0x2d0d92['createRange'](_0x16cf81['start'],_0x543b7c['start']);_0x504b7e['isEqual'](_0x16cf81)||(_0x2d0d92['updateMarker'](_0x1f324b,{'range':_0x504b7e}),_0x300862=!0x0);}_0x300862||(_0x2d0d92['removeMarker'](_0x1f324b),_0x300862=!0x0);}return _0x300862;});}}class TrackChangesUploadcare extends _0x203e6b{['afterInit'](){const _0x39996a=this['editor'],_0x2022e4=_0x39996a['plugins']['get']('TrackChangesEditing');_0x39996a['plugins']['has']('Uploadcare')&&(_0x2022e4['enableCommand']('uploadcare'),_0x39996a['plugins']['has']('UploadcareImageEdit')&&(_0x2022e4['enableCommand']('uploadcareImageEdit'),_0x2022e4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2022e4['descriptionFactory']['registerDescriptionCallback'](_0x2c71f3=>{if('attribute'!=_0x2c71f3['type'])return;const {data:_0x249dee}=_0x2c71f3;return _0x249dee&&'uploadcareImageId'==_0x249dee['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x203e6b{['afterInit'](){const _0x32622a=this['editor'],_0x222be7=_0x32622a['plugins']['get']('TrackChangesEditing');_0x32622a['plugins']['has']('UndoEditing')&&(_0x222be7['enableCommand']('undo'),_0x222be7['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x58254a=this['editor'];if(!_0x58254a['plugins']['has']('TableCaptionEditing'))return;_0x58254a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x203e6b{['tableProperties'];['tableCellProperties'];constructor(_0x4e61a2){super(_0x4e61a2),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 _0x1213e8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x533b66 of this['tableProperties'])_0x1213e8['enableCommand'](_0x533b66,(_0x5288f1,_0x54e56d)=>{const _0x353578=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x533b66,[_0x353578],this['tableProperties'],'tableProperties',_0x5288f1,_0x54e56d);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27b003,_0x4adad6)=>this['handleDiscardAction'](this['tableProperties'],_0x27b003,_0x4adad6)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14f9ea of this['tableCellProperties'])this['editor']['commands']['get'](_0x14f9ea)&&_0x1213e8['enableCommand'](_0x14f9ea,(_0x153816,_0x369677)=>{const _0x3e3d76=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14f9ea,_0x3e3d76,this['tableCellProperties'],'tableCellProperties',_0x153816,_0x369677);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x506628,_0x5b793a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x506628,_0x5b793a)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1213e8['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1213e8['descriptionFactory']['registerDescriptionCallback'](_0x51cbcf=>this['handleSuggestionDescription'](_0x51cbcf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2cacb2,_0x224565,_0x2bcf76,_0x979664,_0x5b5306,_0x554c2e){const _0x1da7d9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x554c2e['batch'],()=>{for(const _0x3e810b of _0x224565){if(this['_getSuggestion'](_0x3e810b,_0x979664))_0x5b5306(_0x554c2e);else{const _0x3098d7={};for(const _0x3a09e3 of _0x2bcf76){const _0x48b92d=_0x3e810b['getAttribute'](_0x3a09e3);void 0x0!==_0x48b92d&&(_0x3098d7[_0x3a09e3]=_0x48b92d);}_0x5b5306(_0x554c2e),_0x1da7d9['markBlockFormat'](_0x3e810b,{'commandParams':[_0x3098d7]},[],_0x979664);}}});}['handleDiscardAction'](_0x1adae0,_0x306f78,_0x88bd64){const _0xfa2f83=_0x306f78[0x0]['start']['nodeAfter'],_0x107454=_0x88bd64['commandParams'][0x0];this['editor']['model']['change'](_0xe5fb7b=>{for(const _0x1c10a4 of _0x1adae0)void 0x0!==_0x107454[_0x1c10a4]?_0xe5fb7b['setAttribute'](_0x1c10a4,_0x107454[_0x1c10a4],_0xfa2f83):_0xe5fb7b['removeAttribute'](_0x1c10a4,_0xfa2f83);});}['handleSuggestionDescription'](_0x585add){if(_0x585add['data'])switch(_0x585add['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'](_0xb0cd48,_0x3b62b9){const _0x34f8b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc9872e of _0x34f8b0['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9588c=_0xc9872e['getContainedElement']();if(_0xc9872e['subType']===_0x3b62b9&&_0xe9588c===_0xb0cd48)return _0xc9872e;}return null;}['_registerTablePropertiesAttributes'](){const _0x2813b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a210=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3af140 of _0x54a210){const _0x427cda=_0x3af140['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2813b5['descriptionFactory']['registerAttributeLabel'](_0x3af140,Tt(this['editor']['locale'],'FORMAT_'+_0x427cda));}}}class TrackChangesLineHeight extends _0x203e6b{['afterInit'](){const _0x2c23ac=this['editor'];if(!_0x2c23ac['plugins']['has']('LineHeight'))return;const _0x326f85=_0x2c23ac['plugins']['get']('TrackChangesEditing'),_0x4bba16=_0x2c23ac['locale'];_0x326f85['enableDefaultAttributesIntegration']('lineHeight'),_0x326f85['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x4bba16,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x203e6b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x300715,_0x540837,_0x3771e4,_0x226c6a,_0x319f4e,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,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(_0x19b24b){super(_0x19b24b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f895c,_0x3be037,_0x48351e,_0x4776d3)=>{this['_model']['change'](()=>{for(const _0x498ad7 of[..._0x4776d3,..._0x48351e])this['_model']['markers']['has'](_0x498ad7)&&_0x19b24b['editing']['reconvertMarker'](_0x498ad7);});}),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']=_0x19b24b['plugins']['get'](_0x300715),this['_suggestionsConversion']=_0x19b24b['plugins']['get'](_0x540837),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x19b24b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19b24b['config']['get']('trackChanges.trackFormatChanges'),_0x19b24b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19b24b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x19b24b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3595f2=this['editor'];_0x3595f2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2d50ff,{writer:_0x59a351})=>{let _0x4ce287='suggestion:'+_0x2d50ff['getAttribute']('suggestion-type')+':'+_0x2d50ff['getAttribute']('id');return _0x2d50ff['getAttribute']('marker-count')&&(_0x4ce287+=':'+_0x2d50ff['getAttribute']('marker-count')),_0x59a351['createElement']('$marker',{'data-name':_0x4ce287});}}),_0x3595f2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3595f2['model']['document']['registerPostFixer'](_0x38c47e=>{let _0x28c87c=!0x1;const _0x50f8b7=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']()),_0xf81996=new Set();for(const {name:_0x5219ec,data:_0x4c8f64}of _0x50f8b7){const {group:_0x2277a6,type:_0x397830,subType:_0x47336b,id:_0x517cd7}=_0x4f787f(_0x5219ec);if('suggestion'!==_0x2277a6)continue;const _0xeafaf7=_0x47336b?'suggestion:'+_0x397830+':'+_0x47336b+':'+_0x517cd7:'suggestion:'+_0x397830+':'+_0x517cd7,_0x3d9692=_0x3595f2['model']['markers']['getMarkersGroup'](_0xeafaf7),_0x3c98a7=_0x3595f2['model']['markers']['get'](_0x5219ec),_0x405136=this['_suggestions']['get'](_0x517cd7);if(null!=_0x4c8f64['newRange']){'formatInline'==_0x397830&&(_0x28c87c=_0x28c87c||Pt(_0x4c8f64['newRange'],_0x5219ec,_0x38c47e,_0x3595f2['model']['schema']));const _0x3beb1b='attribute'==_0x397830&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x47336b)),_0x317a7b='attribute'==_0x397830&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x47336b));if(_0x4c8f64['newRange']['isCollapsed']||'$graveyard'==_0x4c8f64['newRange']['root']['rootName']||'formatBlock'==_0x397830&&!Ut(_0x4c8f64['newRange'])||_0x3beb1b&&!Ut(_0x4c8f64['newRange'])||_0x317a7b&&Gt(_0x4c8f64['newRange'])||'deletion'==_0x397830&&Gt(_0x4c8f64['newRange'])||_0x3c98a7&&Ht(_0x3c98a7,_0x3d9692))_0x38c47e['removeMarker'](_0x5219ec),_0x28c87c=!0x0;else{if(!_0x405136||!_0x405136['isInContent'])continue;if(_0x4c8f64['newRange']&&_0x4c8f64['oldRange']&&_0x4c8f64['newRange']['isEqual'](_0x4c8f64['oldRange']))continue;_0xf81996['add'](_0x405136);}}}return _0xf81996['size']>0x0&&(_0x28c87c=!!this['_joinWithAdjacentSuggestions'](_0xf81996)||_0x28c87c),_0x28c87c;}),_0x3595f2['model']['document']['registerPostFixer'](_0x570217=>{let _0x489c9d=!0x1;for(const _0x564845 of _0x3595f2['model']['document']['differ']['getChanges']())if('insert'==_0x564845['type'])for(const _0x305282 of this['_suggestions']['values']()){if(_0x305282['isMultiRange']||!_0x305282['isInContent'])continue;const _0x2e40ce='formatBlock'==_0x305282['type'],_0x24625d=this['_getAttributeKey'](_0x305282),_0x96a89f=_0x24625d&&this['_suggestionsConversion']['isBlockAttribute'](_0x24625d);if(!_0x2e40ce&&!_0x96a89f)continue;const _0x5c65ed=_0x305282['getFirstRange']();if(_0x5c65ed['start']['parent']!=_0x5c65ed['end']['parent']&&!_0x5c65ed['end']['isAtEnd']){const _0x4843af=_0x3595f2['model']['createPositionAt'](_0x5c65ed['start']['nodeAfter'],'end'),_0x470789=_0x3595f2['model']['createRange'](_0x5c65ed['start'],_0x4843af);_0x570217['updateMarker'](_0x305282['getFirstMarker'](),{'range':_0x470789}),_0x489c9d=!0x0;}}return _0x489c9d;}),_0x3595f2['model']['document']['registerPostFixer'](_0x4e073e=>this['_processAttributeChanges'](_0x4e073e)),_0x3595f2['model']['document']['registerPostFixer'](_0x38325c=>!_0x38325c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38325c)),_0x3595f2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3595f2['model']['document']['on']('change:data',(_0x2962d2,_0x3fdda8)=>{if(!_0x3fdda8['isLocal']||_0x3fdda8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3b4aad=_0x3595f2['model']['document']['differ']['getChanges']();if(0x0==_0x3b4aad['length'])return;const _0x394228=[],_0x3a300a=_0x3b4aad['filter'](_0xe05b7f=>'attribute'==_0xe05b7f['type']),_0x534d4a=_0x3b4aad['filter'](_0x5bc7e3=>'insert'==_0x5bc7e3['type']&&'$text'!=_0x5bc7e3['name']);for(const _0x3c8052 of _0x3a300a)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3c8052['attributeKey'])&&_0x394228['push']({'key':_0x3c8052['attributeKey'],'newValue':_0x3c8052['attributeNewValue'],'oldValue':_0x3c8052['attributeOldValue'],'range':$t(_0x3c8052['range'],_0x3595f2['model'])});for(const _0x3177ee of _0x534d4a){if('rename'!=_0x3177ee['action']&&'refresh'!=_0x3177ee['action'])continue;const _0x5a5687=Vt(_0x3177ee['position']['nodeAfter'],_0x3595f2['model']),_0x24cea5=_0x3177ee['before'];'rename'==_0x3177ee['action']&&_0x394228['push']({'key':Bt,'newValue':_0x3177ee['name'],'oldValue':_0x24cea5['name'],'range':_0x5a5687});for(const [_0x191d48,_0x49c5f0]of _0x24cea5['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x191d48))continue;const _0xb271d=_0x3177ee['attributes']['get'](_0x191d48);_0x49c5f0!==_0xb271d&&_0x394228['push']({'key':_0x191d48,'newValue':_0xb271d,'oldValue':_0x49c5f0,'range':_0x5a5687});}for(const [_0x19c352,_0x501cd0]of _0x3177ee['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x19c352)&&(_0x24cea5['attributes']['has'](_0x19c352)||_0x394228['push']({'key':_0x19c352,'newValue':_0x501cd0,'oldValue':null,'range':_0x5a5687}));}0x0!=_0x394228['length']&&_0x3595f2['model']['enqueueChange'](_0x3fdda8,_0x1990f2=>{const _0x5c5b43=_0x1e5a7d();for(const {range:_0x10e5d1,key:_0x2d51ed,oldValue:_0x12634e,newValue:_0xe77b88}of _0x394228)this['markAttributeChange'](_0x10e5d1,_0x2d51ed,_0x12634e,_0xe77b88,{'groupId':_0x5c5b43});this['_reduceExistingSuggestions'](_0x1990f2,_0x394228);});},{'priority':'lowest'}),_0x3595f2['model']['markers']['on']('update:suggestion',(_0x1eb798,_0xaf2cdc,_0x2fec13)=>{if(null==_0x2fec13){const {id:_0x2952cf}=_0x4f787f(_0xaf2cdc['name']),_0x10a8cc=this['_suggestions']['get'](_0x2952cf);_0x10a8cc&&_0x10a8cc['addMarkerName'](_0xaf2cdc['name']);}}),_0x3595f2['model']['document']['on']('change:data',()=>{const _0x47f387=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']())['filter'](_0xb7553=>'suggestion'===_0x4f787f(_0xb7553['name'])['group']);if(0x0===_0x47f387['length'])return;_0x47f387['sort']((_0x59fbad,_0x4800ca)=>{const _0x298448=_0x59fbad['data']['oldRange'],_0x206cee=_0x4800ca['data']['oldRange'];return null===_0x298448&&null===_0x206cee?0x0:null===_0x298448&&null!==_0x206cee?-0x1:null!==_0x298448&&null===_0x206cee?0x1:_0x298448['start']['isBefore'](_0x206cee['start'])?-0x1:0x1;});const _0x181786=new Set(),_0x15b399=new Set();for(const {name:_0x31aedf,data:_0x582163}of _0x47f387){const {id:_0x1d4377}=_0x4f787f(_0x31aedf);if(null===_0x582163['oldRange']){const _0x147af1=this['_handleNewSuggestionMarker'](_0x31aedf);_0x15b399['add'](_0x147af1);}else{const _0x394e33=this['_suggestions']['get'](_0x1d4377);null!==_0x582163['newRange']||_0x394e33['isInContent']?(_0x181786['add'](_0x394e33['head']),_0x15b399['add'](_0x394e33)):this['_removeSuggestion'](_0x394e33);}}_0x15b399['size']>0x0&&this['_refreshSuggestionsChain'](_0x15b399);for(const _0x4a5093 of _0x181786)this['fire']('suggestionChanged',_0x4a5093);}),_0x3595f2['model']['on']('applyOperation',(_0x155b11,_0x5da96a)=>{const _0x3ca503=_0x5da96a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3ca503['isDocumentOperation'])return;if(_0x3ca503['batch']['isUndo']||!_0x3ca503['batch']['isLocal'])return;let _0x4f3bf2,_0x39f0e6;switch(_0x3ca503['type']){case'insert':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['position']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;case'split':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['splitPosition']),_0x39f0e6=_0x3595f2['model']['createPositionAt'](_0x3ca503['moveTargetPosition']);break;case'move':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['targetPosition']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;default:return;}const _0xf5ed5c=_0x3595f2['model']['createRange'](_0x4f3bf2,_0x39f0e6);_0x3595f2['model']['change'](()=>{for(const {suggestion:_0x14e2a5,meta:_0x48fa68}of this['_findSuggestions'](_0xf5ed5c)){if(_0x14e2a5['isMultiRange'])continue;if('formatInline'==_0x14e2a5['type'])continue;const _0x1f3141=this['_getAttributeKey'](_0x14e2a5);if(_0x1f3141&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f3141)&&'split'!=_0x3ca503['type'])continue;const _0x49c33f=_0x14e2a5['data']&&_0x14e2a5['data']['multipleBlocks'];('formatBlock'!=_0x14e2a5['type']||'split'==_0x3ca503['type']&&!_0x49c33f)&&(_0x48fa68['containsRangeInObject']||'insertion'==_0x14e2a5['type']&&_0x48fa68['isOwn']||_0x14e2a5['getFirstRange']()['containsRange'](_0xf5ed5c)&&this['_breakSuggestionMarker'](_0x14e2a5,_0x4f3bf2,_0x39f0e6));}});},{'priority':'lowest'}),_0x3595f2['model']['on']('deleteContent',(_0x3947f1,_0x4f06dd)=>{const _0x4ed79e=_0x4f06dd[0x0],_0x20ce70=_0x4f06dd[0x1];if(_0x20ce70&&_0x20ce70['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ed79e['isCollapsed'])return;const _0x494775=_0x3595f2['model']['schema'],{start:_0x3b0bd8,end:_0x568e1b}=_0x4ed79e['getFirstRange'](),_0x22f182=_0x3b0bd8['nodeAfter']&&_0x494775['isLimit'](_0x3b0bd8['nodeAfter'])?null:_0x494775['getNearestSelectionRange'](_0x3b0bd8,'forward'),_0x250879=_0x568e1b['nodeBefore']&&_0x494775['isLimit'](_0x568e1b['nodeBefore'])?null:_0x494775['getNearestSelectionRange'](_0x568e1b,'backward'),_0x1946b5=_0x3595f2['model']['createRange'](_0x22f182?_0x22f182['start']:_0x3b0bd8,_0x250879?_0x250879['end']:_0x568e1b);_0x3595f2['model']['change'](_0xa56b87=>{this['markDeletion'](_0x1946b5);const _0x1755f2=_0x3595f2['model']['schema']['getNearestSelectionRange'](_0x1946b5['start']);_0x4ed79e['is']('documentSelection')?_0xa56b87['setSelection'](_0x1755f2):_0x4ed79e['setTo'](_0x1755f2);}),_0x3947f1['stop']();},{'priority':_0xcf8801['normal']+0xa}),_0x3595f2['model']['on']('insertContent',(_0x4da67e,_0x159b21)=>{const _0x20940b=_0x159b21[_0x159b21['length']-0x1];_0x20940b&&_0x20940b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3595f2['model']['change'](()=>{let _0x566818=_0x3595f2['model']['insertContent'](_0x159b21[0x0],_0x159b21[0x1],_0x159b21[0x2],{'forceDefaultExecution':!0x0});if(!_0x566818)return;_0x4da67e['return']=_0x566818['clone']();const _0x18e4f0=_0x566818['end']['nodeBefore'],_0x47216b=_0x3595f2['model']['schema'];_0x18e4f0&&_0x47216b['isBlock'](_0x18e4f0)&&!_0x47216b['isObject'](_0x18e4f0)&&(_0x566818=_0x3595f2['model']['createRange'](_0x566818['start'],_0x3595f2['model']['createPositionAt'](_0x18e4f0,'end'))),this['markInsertion'](_0x566818);}),_0x4da67e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x258476=new AcceptSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('acceptSuggestion',_0x258476),this['enableCommand']('acceptSuggestion');const _0x441a70=new DiscardSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('discardSuggestion',_0x441a70),this['enableCommand']('discardSuggestion'),_0x3595f2['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3595f2['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3595f2['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3595f2['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4543d4=_0x3595f2['plugins']['get'](_0x300715);this['listenTo'](_0x4543d4,'addComment',(_0x500bf6,{threadId:_0x543ed8})=>{const _0x50f2d5=this['_suggestions']['get'](_0x543ed8);_0x50f2d5&&_0x50f2d5['commentThread']&&0x1===_0x50f2d5['commentThread']['length']&&this['_updateSuggestionData'](_0x543ed8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4543d4,'removeComment',(_0x5a29c7,{threadId:_0x111538})=>{const _0x2659c7=this['_suggestions']['get'](_0x111538);_0x2659c7&&_0x2659c7['commentThread']&&!_0x2659c7['commentThread']['length']&&this['_updateSuggestionData'](_0x111538,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f9aa0){const _0x39aa5e=_0x2233b1([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]),_0xfcc9f1=0x3d8d0df,_0x4f05ce=0x3df5b7f^_0xfcc9f1,_0x2c4fab=window[_0x2233b1([0x44,0x61,0x74,0x65])][_0x2233b1([0x6e,0x6f,0x77])](),_0x4f7a8b=_0x2f9aa0[_0x2233b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2683bc=new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49af47=>{_0x4f7a8b[_0x2233b1([0x6f,0x6e,0x63,0x65])](_0x2233b1([0x72,0x65,0x61,0x64,0x79]),_0x49af47);}),_0x564f24={[_0x2233b1([0x6b,0x74,0x79])]:_0x2233b1([0x45,0x43]),[_0x2233b1([0x75,0x73,0x65])]:_0x2233b1([0x73,0x69,0x67]),[_0x2233b1([0x63,0x72,0x76])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36]),[_0x2233b1([0x78])]:_0x2233b1([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]),[_0x2233b1([0x79])]:_0x2233b1([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]),[_0x2233b1([0x61,0x6c,0x67])]:_0x2233b1([0x45,0x53,0x32,0x35,0x36])},_0x590824=_0x4f7a8b[_0x2233b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2233b1([0x67,0x65,0x74])](_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x63ae69(){let _0x6d725c,_0x1ed348=null,_0x519b41=null;try{if(_0x590824==_0x2233b1([0x47,0x50,0x4c]))return _0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6d725c=_0x345889(),!_0x6d725c)return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x519b41=_0x2421b3(_0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6d725c[_0x2233b1([0x6a,0x74,0x69])])),await _0x1a2d38()?_0x5887b2()?_0x2b7d92()?_0x2233b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d3327()?(_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ed348=_0x2bc52f(_0x2233b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x380016()):_0x2233b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b7d92(){const _0x36fcd3=[_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2233b1([0x74,0x72,0x69,0x61,0x6c])][_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c4fab/0x3e8:0xe10*_0x4f05ce;return _0x6d725c[_0x2233b1([0x65,0x78,0x70])]<_0x36fcd3;}function _0x5887b2(){const _0x2e9804=_0x6d725c[_0x2233b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e9804)return!0x1;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x54,0x43])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x52,0x54,0x43]))){if(_0x104c8e())return!0x0;if(_0x516f43()||_0x3e8122())return!0x0;}return!0x1;}function _0x5d3327(){const _0x4c3655=_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c3655||0x0==_0x4c3655[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35378f}=new URL(window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c3655[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35378f))return!0x0;const _0x28d04b=_0x35378f[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));return _0x4c3655[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e759c=>_0x3e759c[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))[_0x2233b1([0x6d,0x61,0x70])](_0x2f2290=>_0x2f2290[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])))[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41283c=>_0x41283c[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x6d,0x61,0x70])](_0x2e9a00=>Array(_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e9a00[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x66,0x69,0x6c,0x6c])](_0x2e9a00[0x0]===_0x2233b1([0x2a])?_0x2233b1([0x2a]):'')[_0x2233b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e9a00))[_0x2233b1([0x73,0x6f,0x6d,0x65])](_0x1cd19a=>_0x28d04b[_0x2233b1([0x65,0x76,0x65,0x72,0x79])]((_0xb8cb7e,_0xe796bd)=>_0x1cd19a[_0xe796bd]===_0xb8cb7e||_0x1cd19a[_0xe796bd]===_0x2233b1([0x2a])));}function _0x380016(){return _0x1ed348&&_0x519b41?new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ebff,_0x16f3a3)=>{_0x1ed348[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x18ebff,_0x16f3a3),_0x519b41[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x16d696=>{_0x16d696!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x18ebff(_0x16d696);},_0x16f3a3);}):_0x1ed348||_0x519b41||_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2421b3(_0x1c71b4,_0xd5ffdc){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ead57=>{if(_0x27a7e9())return _0x5ead57(_0x2233b1([0x56,0x61,0x6c,0x69,0x64]));_0x1ee218(),_0x4f7a8b[_0x2233b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb1ae61=!0x1;const _0x126e38=_0x1e5a7d();function _0xc5f7f4(_0x4f8ff1){return!!_0x4f8ff1&&(typeof _0x4f8ff1===_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f8ff1===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f8ff1[_0x2233b1([0x74,0x68,0x65,0x6e])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f8ff1[_0x2233b1([0x63,0x61,0x74,0x63,0x68])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e70ed(_0x1987df){_0x4e2eb7(_0x1987df)[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x2d9bbc=>{if(!_0x2d9bbc||_0x2d9bbc[_0x2233b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2233b1([0x6f,0x6b]))return _0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5600d0(_0x4f8825(_0x126e38+_0xd5ffdc))!=_0x2d9bbc[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x392e87=>(_0x503c61(),_0x392e87),()=>{const _0x157ece=_0x3ceaf1();return null==_0x157ece?(_0x503c61(),_0x2233b1([0x56,0x61,0x6c,0x69,0x64])):_0x2233b1(_0x2c4fab-_0x157ece>(0x27d454df^_0xfcc9f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x5ead57)[_0x2233b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a3442=0x3ee3e5f^_0xfcc9f1;function _0x503c61(){const _0x15d101=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0xb89efc=_0x448d8d(_0x5600d0(window[_0x2233b1([0x4d,0x61,0x74,0x68])][_0x2233b1([0x63,0x65,0x69,0x6c])](_0x2c4fab/_0x2a3442)));window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d101,_0xb89efc);}function _0x3ceaf1(){const _0x140099=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0x6b2898=window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x140099);return _0x6b2898?window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x448d8d(_0x6b2898),0x10)*_0x2a3442:null;}function _0x4e2eb7(_0x529763){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x405c22,_0x39e8f2)=>{_0x529763[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x405c22,_0x39e8f2),window[_0x2233b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39e8f2,0x3d9041f^_0xfcc9f1);});}}_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e363c,_0xf338b9)=>{if(_0xf338b9[0x0]!=_0x1c71b4)return _0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf338b9[0x1]={..._0xf338b9[0x1],[_0x2233b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x126e38};},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x68,0x69,0x67,0x68])}),_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a2ed4=>{_0xc5f7f4(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb1ae61=!0x0,_0x3e70ed(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x6c,0x6f,0x77])}),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>{_0xb1ae61||_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27a7e9(){return _0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2233b1([0x61,0x75,0x74,0x6f]);}function _0x1ee218(){_0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2233b1([0x61,0x75,0x74,0x6f]);}}function _0x2bc52f(_0x2d1618){const _0x595587=[new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591b93=>setTimeout(_0x591b93,0x3d1ee13^_0xfcc9f1)),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aed4f=>{let _0x256c79=0x0;_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x6f,0x6e])](_0x2233b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261ca4,_0x405437)=>{_0x405437[0x0][_0x2233b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x256c79++,_0x256c79==(0x3d8d537^_0xfcc9f1)&&(_0x4aed4f(),_0x261ca4[_0x2233b1([0x6f,0x66,0x66])]());});}))];return window[_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2233b1([0x72,0x61,0x63,0x65])](_0x595587)[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>_0x2d1618);}async function _0x34e265(){await _0x2683bc,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x104c8e(){return _0x1e51af(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1769e0(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2233b1([0x73,0x74,0x61,0x74,0x65])]==_0x2233b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x516f43(){return _0x1e51af(_0x2233b1([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 _0x3e8122(){return _0x1e51af(_0x2233b1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24d8c0(_0x1b9251){const _0x5a80f1=_0x3c08a1();_0x4f7a8b[_0x5a80f1]=_0x2233b1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9251,_0x1b9251!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x34e265();}function _0x3c08a1(){const _0x5bb1b4=window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2233b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2233b1([0x6e,0x6f,0x77])]())[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2233b1([0x2e]),'');let _0x324b81=_0x2233b1([0x52]);for(let _0x4fea70=0x0;_0x4fea70<_0x5bb1b4[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fea70+=0x2){let _0xe35390=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bb1b4[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fea70,_0x4fea70+0x2));_0xe35390>=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe35390-=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x324b81+=_0x39aa5e[_0xe35390];}return _0x324b81;}function _0x345889(){const _0x3094f0=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));if(0x3!=_0x3094f0[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaccc43(_0x3094f0[0x1]);function _0xaccc43(_0x17a7ea){const _0x534ca6=_0x3e940e(_0x17a7ea);return _0x534ca6&&_0x3a97ca()?_0x534ca6:null;function _0x3a97ca(){const _0x304e8d=_0x534ca6[_0x2233b1([0x6a,0x74,0x69])],_0x2852c4=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5516a7={..._0x534ca6,[_0x2233b1([0x6a,0x74,0x69])]:_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5516a7[_0x2233b1([0x76,0x63])],_0x4f8825(_0x5516a7)==_0x2852c4;}}}async function _0x1a2d38(){let _0x2984c2=!0x0;try{const _0x3a4dd4=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])),[_0x3b80ea,_0x40f157,_0x59ce7c]=_0x3a4dd4;return _0x2dce7c(_0x3b80ea),await _0x2ff9bb(_0x3b80ea,_0x40f157,_0x59ce7c),_0x2984c2;}catch{return!0x1;}function _0x2dce7c(_0x5c10ed){const _0x27331e=_0x3e940e(_0x5c10ed);_0x27331e&&_0x27331e[_0x2233b1([0x61,0x6c,0x67])]==_0x2233b1([0x45,0x53,0x32,0x35,0x36])||(_0x2984c2=!0x1);}async function _0x2ff9bb(_0x189bfe,_0x419ea3,_0xe99e4d){const _0x4ea6ba=window[_0x2233b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2233b1([0x66,0x72,0x6f,0x6d])](_0x8bc3d7(_0xe99e4d),_0x204bde=>_0x204bde[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ed203=new window[(_0x2233b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2233b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x189bfe+_0x2233b1([0x2e])+_0x419ea3),_0x2453dd=window[_0x2233b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2233b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2453dd)return;const _0x534a94=await _0x2453dd[_0x2233b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2233b1([0x6a,0x77,0x6b]),_0x564f24,{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2453dd[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x68,0x61,0x73,0x68])]:{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x534a94,_0x4ea6ba,_0x4ed203)||(_0x2984c2=!0x1);}}function _0x3e940e(_0x3ce01e){return _0x3ce01e[_0x2233b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2233b1([0x65,0x79]))?JSON[_0x2233b1([0x70,0x61,0x72,0x73,0x65])](_0x8bc3d7(_0x3ce01e)):null;}function _0x8bc3d7(_0x3422a9){return window[_0x2233b1([0x61,0x74,0x6f,0x62])](_0x3422a9[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2233b1([0x2b]))[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2233b1([0x2f])));}function _0x4f8825(_0x504237){let _0x3ad7fd=0x1505;function _0x22a800(_0x22ed91){for(let _0x2a69f2=0x0;_0x2a69f2<_0x22ed91[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a69f2++){const _0x767243=_0x22ed91[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a69f2);_0x3ad7fd=(_0x3ad7fd<<0x5)+_0x3ad7fd+_0x767243,_0x3ad7fd&=_0x3ad7fd;}}function _0x504420(_0x2b31a4){Array[_0x2233b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b31a4)?_0x2b31a4[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x504420):_0x2b31a4&&typeof _0x2b31a4==_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2233b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b31a4)[_0x2233b1([0x73,0x6f,0x72,0x74])]()[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x402a92,_0x40d8a5])=>{_0x22a800(_0x402a92),_0x504420(_0x40d8a5);}):_0x22a800(window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b31a4));}return _0x504420(_0x504237),_0x3ad7fd>>>0x0;}function _0x5600d0(_0x5a77b0){return _0x5a77b0[_0x2233b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2233b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2233b1([0x30]));}function _0x448d8d(_0x1d14cd){return _0x1d14cd[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2233b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2233b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e51af(_0x23ce8a){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x68,0x61,0x73])](_0x23ce8a);}function _0x1769e0(_0x17df4c){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x67,0x65,0x74])](_0x17df4c);}function _0x2125e9(){}function _0x2233b1(_0x521564){return _0x521564['map'](_0x2008eb=>String['fromCharCode'](_0x2008eb))['join']('');}_0x24d8c0(await _0x63ae69());}(this);}set['adapter'](_0x545dc8){if(this['_adapter'])throw new _0x2618c5('track-changes-adapter-already-set',this);this['_adapter']=_0x545dc8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x17b6f3=!0x1,toJSON:_0x5300a0=!0x1}={}){const _0x4eea77=[];for(const _0x5b2909 of this['_suggestions']['values']())_0x17b6f3&&!_0x5b2909['isInContent']||_0x4eea77['push'](_0x5b2909);return _0x5300a0?_0x4eea77['map'](_0x7171b5=>_0x7171b5['toJSON']()):_0x4eea77;}['getSuggestion'](_0x96b25c){const _0x3e1c71=this['_suggestions']['get'](_0x96b25c);if(!_0x3e1c71)throw new _0x2618c5('track-changes-suggestion-not-found',this);return _0x3e1c71;}['hasSuggestion'](_0x35bb65){return this['_suggestions']['has'](_0x35bb65);}['addSuggestionData'](_0x24bdb7){const {authorId:_0x5e8726,id:_0x4cab32,originalSuggestionId:_0x4865ce,attributes:_0x3f26f8}=_0x24bdb7,[_0x58fa1c,_0x55d7b8]=_0x24bdb7['type']['split'](':'),_0x5924a0=this['_suggestions']['get'](_0x4cab32)||this['_createSuggestion'](_0x58fa1c,_0x55d7b8,_0x4cab32,_0x5e8726,_0x3f26f8,_0x4865ce);if(this['_addThreadToSuggestion'](_0x5924a0),this['_checkSuggestionCorrectness'](_0x5924a0,_0x58fa1c,_0x55d7b8||null,_0x5e8726),_0x5924a0['createdAt']=_0x24bdb7['createdAt'],_0x5924a0['_isDataLoaded']=!0x0,_0x3f26f8&&_0x3f26f8['@external']){const _0x981a06=_0x3f26f8['@external'],_0x267b12=this['_getExternalAuthor'](_0x981a06['authorName']);_0x5924a0['authoredAt']=_0x981a06['createdAt'],_0x5924a0['author']=_0x267b12,_0x5924a0['isExternal']=!0x0;}else _0x5924a0['authoredAt']=_0x24bdb7['createdAt'];switch(_0x24bdb7['data']&&(_0x5924a0['data']=_0x24bdb7['data']),_0x24bdb7['attributes']&&(_0x5924a0['attributes']=_0x24bdb7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5924a0['_saved']=!0x0),this['_suggestionState']['get'](_0x5924a0)){case'notReady':this['_suggestionState']['set'](_0x5924a0,'dataReady');break;case'markerReady':_0x5924a0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5924a0])),this['_refreshSuggestionsChain'](new Set([_0x5924a0])),this['_suggestionState']['set'](_0x5924a0,'ready'),this['fire']('suggestionLoaded',_0x5924a0)):this['_suggestionState']['set'](_0x5924a0,'removed');}return _0x5924a0;}['acceptSuggestion'](_0x40f843){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18ab16 of _0x40f843['getAllAdjacentSuggestions']())_0x18ab16['accept']();});});}['discardSuggestion'](_0x1c8321){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x86c079 of _0x1c8321['getAllAdjacentSuggestions']())_0x86c079['discard']();});});}['enableCommand'](_0xd27674,_0x29523c){const _0x82af66=this['editor']['commands']['get'](_0xd27674);if(!_0x82af66)throw new _0x2618c5('track-changes-command-not-found',this,{'commandName':_0xd27674});if(this['_enabledCommands']['has'](_0x82af66))throw new _0x2618c5('track-changes-enable-command-twice',this,{'commandName':_0xd27674});this['_enabledCommands']['add'](_0x82af66),_0x29523c&&_0x82af66['on']('execute',(_0x24072a,_0x2aba68)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2aba68['length']>0x0&&_0x2aba68[_0x2aba68['length']-0x1]&&_0x2aba68[_0x2aba68['length']-0x1]['forceDefaultExecution']?_0x2aba68['pop']():(_0x24072a['return']=_0x29523c((..._0x14c94a)=>_0x82af66['execute'](..._0x14c94a,{'forceDefaultExecution':!0x0}),..._0x2aba68),_0x24072a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x227098){let _0x2a0cf2,_0x10a9c5;const _0x7b7bbd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2a0cf2=_0x227098();}catch(_0x5d52df){_0x10a9c5=_0x5d52df;}return _0x7b7bbd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10a9c5&&_0x2618c5['rethrowUnexpectedError'](_0x10a9c5,this),_0x2a0cf2;}['markInsertion'](_0x46e8aa,_0x398410=null,_0x35910b={}){if(_0x46e8aa['isCollapsed'])return null;const _0x18a108=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x35910b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x144aac,meta:_0x1d4697}of this['_findSuggestions'](_0x46e8aa,'insertion'))if(_0x1d4697['isOwn']){if(!_0x1d4697['isNextTo']){if(_0x1d4697['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x144aac,_0x35910b))continue;return _0x144aac;}if(zt(_0x144aac,_0x35910b))return _0x144aac;this['_breakSuggestionMarker'](_0x144aac,_0x46e8aa['start'],_0x46e8aa['end']);break;}if(_0x398410==_0x144aac['subType']&&zt(_0x144aac,_0x35910b)){const _0x269f53=_0x144aac['getFirstRange']();return _0x269f53['start']['isEqual'](_0x46e8aa['end'])?this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x46e8aa['start'],_0x269f53['end'])):this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x269f53['start'],_0x46e8aa['end'])),_0x144aac;}}const _0x255409=_0x1e5a7d(),_0x549f6c=_0x18a108['id'],_0x5203f3=_0x398410?'insertion:'+_0x398410:'insertion',_0x587d05=this['_setSuggestionData']({'id':_0x255409,'type':_0x5203f3,'createdAt':new Date(),'authorId':_0x549f6c,'attributes':_0x35910b});return this['_addSuggestionMarker'](_0x5203f3,_0x255409,_0x549f6c,_0x46e8aa),_0x587d05;}['markMultiRangeInsertion'](_0x2593d7,_0x587bc7='multi',_0x4eee45={}){const _0x546a6f=this['editor']['plugins']['get']('Users')['me'],_0x3ba927=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x587bc7,'join');this['_trackingSessionId']&&(_0x4eee45['trackingSessionId']=this['_trackingSessionId']);for(const _0x118873 of this['getSuggestions']())if(_0x118873['author']['id']==_0x546a6f['id']&&'insertion'==_0x118873['type']&&_0x118873['subType']==_0x587bc7&&zt(_0x118873,_0x4eee45)&&(_0x3ba927(_0x118873['getRanges'](),_0x2593d7)||_0x3ba927(_0x2593d7,_0x118873['getRanges']()))){for(const _0x417711 of _0x2593d7)_0x118873['addRange'](_0x417711);return _0x118873;}for(const {suggestion:_0x208fe7,meta:_0xb1e04a}of this['_findSuggestions'](_0x2593d7,'insertion')){if(!_0xb1e04a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xb1e04a['containsRangeInObject'])continue;if(!zt(_0x208fe7,_0x4eee45))continue;let _0x241d66=!0x0;for(const _0x238219 of _0x208fe7['getRanges']())for(const _0xa0c42 of _0x2593d7)if(!_0x238219['containsRange'](_0xa0c42)){_0x241d66=!0x1;break;}if(_0x241d66)return _0x208fe7;}const _0x2528e4=_0x1e5a7d(),_0x5e9626=_0x546a6f['id'],_0x33935a='insertion:'+_0x587bc7,_0x1a0558=this['_setSuggestionData']({'id':_0x2528e4,'type':_0x33935a,'createdAt':new Date(),'authorId':_0x5e9626,'attributes':_0x4eee45});for(const _0x1cd8dc of _0x2593d7)this['_addSuggestionMarker'](_0x33935a,_0x2528e4,_0x5e9626,_0x1cd8dc,Suggestion['getMultiRangeId']());return _0x1a0558;}['markInlineFormat'](_0x42d137,_0x3cd967,_0xe93851=null,_0x106862={}){if(_0xe93851=_0xe93851||xt(_0x3cd967),_0x42d137['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x106862['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58ff52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');return this['forceDefaultExecution'](()=>_0x58ff52([_0x42d137],_0x3cd967,_0x106862)),null;}const _0x3f8aa6=this['editor']['plugins']['get']('Users')['me'],_0xbc9ae1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x59ae9b,meta:_0x41564d}of this['_findSuggestions'](_0x42d137,'insertion'))_0x41564d['isOwn']&&!_0x41564d['isInsideObject']&&_0xbc9ae1['push'](..._0x59ae9b['getRanges']());}const _0x6fa705=function(_0x198c7f,_0x13f41a){const _0x224204=[];for(const _0x5b3e16 of _0x13f41a){const _0x43dec6=_0x198c7f['getIntersection'](_0x5b3e16);_0x43dec6&&_0x224204['push'](_0x43dec6);}return _0x224204;}(_0x42d137,_0xbc9ae1),_0x2d6aec=function(_0x5a1f74,_0x479159){const _0x5eda5e=[_0x5a1f74];for(const _0x953eea of _0x479159){let _0x423049=0x0;for(;_0x423049<_0x5eda5e['length'];){const _0x464365=_0x5eda5e[_0x423049]['getDifference'](_0x953eea);_0x5eda5e['splice'](_0x423049,0x1,..._0x464365),_0x423049+=_0x464365['length'];}}return _0x5eda5e;}(_0x42d137,_0xbc9ae1);_0x6fa705['length']&&this['_model']['change'](()=>{for(const _0x1dc95d of _0x6fa705){const _0x1c5ae3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');this['forceDefaultExecution'](()=>_0x1c5ae3([_0x1dc95d],_0x3cd967,_0x106862));}});for(const _0x2c7e75 of _0x2d6aec){let _0x3b5321=null,_0x5e133b=_0x2c7e75['start'],_0x89b30f=_0x2c7e75['end'];for(const {suggestion:_0x29fbd5,meta:_0x4f2fbf}of this['_findSuggestions'](_0x2c7e75,'formatInline')){if(!_0x4f2fbf['isOwn'])continue;if(_0x29fbd5['subType']!=_0xe93851)continue;if(!zt(_0x29fbd5,_0x106862))continue;const _0x29f0b=_0x29fbd5['getFirstRange']();if(_0x29f0b['containsRange'](_0x2c7e75,!0x0))return null;_0x5e133b=_0x5e133b['isBefore'](_0x29f0b['start'])?_0x5e133b:_0x29f0b['start'],_0x89b30f=_0x89b30f['isAfter'](_0x29f0b['end'])?_0x89b30f:_0x29f0b['end'],_0x3b5321?_0x29f0b['start']['isBefore'](_0x3b5321['getFirstRange']()['start'])?(_0x3b5321['removeMarkers'](),_0x3b5321=_0x29fbd5):_0x29fbd5['removeMarkers']():_0x3b5321=_0x29fbd5;}const _0x1bbcd2=this['_model']['createRange'](_0x5e133b,_0x89b30f);if(_0x3b5321)this['_setSuggestionRange'](_0x3b5321,_0x1bbcd2);else{const _0x51876c=_0x1e5a7d(),_0x504f1a=_0x3f8aa6['id'];this['_setSuggestionData']({'id':_0x51876c,'type':'formatInline:'+_0xe93851,'data':_0x3cd967,'createdAt':new Date(),'authorId':_0x504f1a,'attributes':_0x106862}),this['_addSuggestionMarker']('formatInline:'+_0xe93851,_0x51876c,_0x504f1a,_0x1bbcd2);}}return null;}['markBlockFormat'](_0x43053e,_0x837b53,_0x37c55c=[],_0x4f9d15=null,_0x417927={}){_0x837b53['formatGroupId']||(_0x837b53['formatGroupId']=_0x837b53['commandName']),_0x837b53['multipleBlocks']=_0x43053e['is']('range'),_0x4f9d15=_0x4f9d15||xt(_0x837b53);const _0x57ddd5=_0x37c55c['map'](_0x3bb118=>Vt(_0x3bb118,this['_model'])),_0x68a509=_0x43053e['is']('range')?_0x43053e:Vt(_0x43053e,this['_model']);if(this['_trackingSessionId']&&(_0x417927['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x431da7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x431da7([_0x68a509],_0x837b53,_0x417927)),null;}_0x57ddd5['push'](_0x68a509);let _0x5a206d=!0x0;for(const _0x436a18 of _0x57ddd5)if(!this['_rangeIsInLocalUserInsertion'](_0x436a18)){_0x5a206d=!0x1;break;}if(_0x5a206d&&'always'!==this['_trackFormatChanges']){const _0x49eb0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x49eb0a([_0x68a509],_0x837b53,_0x417927)),null;}let _0x157a97=null,_0xfbf0a3=_0x68a509['start'],_0xd3c722=_0x68a509['end'];for(const {suggestion:_0x5a541f,meta:_0x328677}of this['_findSuggestions'](_0x68a509,'formatBlock')){if(!_0x328677['isOwn'])continue;if(_0x328677['isNextTo']||_0x328677['containsRangeInObject']||_0x328677['isInsideObject'])continue;if(_0x5a541f['data']['formatGroupId']!=_0x837b53['formatGroupId'])continue;if(!zt(_0x5a541f,_0x417927))continue;const _0x4bd7ae=_0x5a541f['getFirstRange']();if(_0x5a541f['subType']==_0x4f9d15){if(_0x4bd7ae['containsRange'](_0x68a509,!0x0))return null;_0xfbf0a3=_0xfbf0a3['isBefore'](_0x4bd7ae['start'])?_0xfbf0a3:_0x4bd7ae['start'],_0xd3c722=_0xd3c722['isAfter'](_0x4bd7ae['end'])?_0xd3c722:_0x4bd7ae['end'],_0x157a97?_0x4bd7ae['start']['isBefore'](_0x157a97['getFirstRange']()['start'])?(_0x157a97['removeMarkers'](),_0x157a97=_0x5a541f):_0x5a541f['removeMarkers']():_0x157a97=_0x5a541f;}else{const _0x4505c6=_0x68a509['getIntersection'](_0x4bd7ae);this['_cutOutSuggestionMarker'](_0x5a541f,_0x4505c6);}}const _0x10ba12=this['editor']['plugins']['get']('Users')['me'],_0x56a4de=_0x1e5a7d(),_0x5bac29=_0x10ba12['id'];if(_0x157a97)return this['_setSuggestionRange'](_0x157a97,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x157a97;{const _0x4b3fc7=this['_setSuggestionData']({'id':_0x56a4de,'type':'formatBlock:'+_0x4f9d15,'data':_0x837b53,'createdAt':new Date(),'authorId':_0x5bac29,'attributes':_0x417927});return this['_addSuggestionMarker']('formatBlock:'+_0x4f9d15,_0x56a4de,_0x5bac29,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x4b3fc7;}}['markMultiRangeBlockFormat'](_0xc00cd2,_0x2f0a49,_0x1f6d89=[],_0x1c398=null,_0x27f26c={}){_0x2f0a49['formatGroupId']||(_0x2f0a49['formatGroupId']=_0x2f0a49['commandName']);const _0x5dbbeb=_0xc00cd2[0x0];_0x2f0a49['multipleBlocks']=_0x5dbbeb['is']('range'),_0x1c398=_0x1c398||xt(_0x2f0a49);const _0x478e9c=_0x1f6d89['map'](_0x4389c9=>Vt(_0x4389c9,this['_model'])),_0x60dbbe=_0x5dbbeb['is']('range')?_0xc00cd2:_0xc00cd2['map'](_0x47c73f=>Vt(_0x47c73f,this['_model']));if(this['_trackingSessionId']&&(_0x27f26c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x50224a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0x50224a(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}_0x478e9c['push'](..._0x60dbbe);let _0x5c1f28=!0x0;for(const _0x2863ee of _0x478e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x2863ee)){_0x5c1f28=!0x1;break;}if(_0x5c1f28&&'always'!==this['_trackFormatChanges']){const _0xd6e344=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0xd6e344(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}const _0x5ece22=this['editor']['plugins']['get']('Users')['me'];for(const _0x9948cf of this['getSuggestions']()){const _0x2519fd=_0x9948cf['data'];if(_0x9948cf['author']['id']!=_0x5ece22['id'])continue;if('formatBlock'!=_0x9948cf['type']||_0x2519fd['formatGroupId']!=_0x2f0a49['formatGroupId'])continue;if(!zt(_0x9948cf,_0x27f26c))continue;const _0x9fcdfb=_0x9948cf['subType']==_0x1c398;for(let _0x547480=0x0;_0x547480<_0x60dbbe['length'];_0x547480++){const _0x181299=_0x60dbbe[_0x547480];for(const _0x15e5c0 of _0x9948cf['getMarkers']()){const _0x16fb47=_0x15e5c0['getRange']();if(_0x181299['isEqual'](_0x16fb47)){_0x9fcdfb?(_0x60dbbe['splice'](_0x547480,0x1),_0x547480--):_0x9948cf['removeMarker'](_0x15e5c0['name']);break;}}}}if(0x0==_0x60dbbe['length'])return null;const _0x5db80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'join');for(const _0x36df1e of this['getSuggestions']()){const _0x7e20a6=_0x36df1e['data'];if(_0x36df1e['author']['id']==_0x5ece22['id']&&('formatBlock'==_0x36df1e['type']&&_0x7e20a6['formatGroupId']==_0x2f0a49['formatGroupId']&&_0x36df1e['subType']==_0x1c398&&zt(_0x36df1e,_0x27f26c)&&(_0x5db80e(_0x36df1e['getRanges'](),_0x60dbbe)||_0x5db80e(_0x60dbbe,_0x36df1e['getRanges']())))){for(const _0x6fd097 of _0x60dbbe)_0x36df1e['addRange'](_0x6fd097);return _0x36df1e;}}const _0x4966f2=_0x1e5a7d(),_0x511718=_0x5ece22['id'],_0x49d195='formatBlock:'+_0x1c398,_0x1d1bc0=this['_setSuggestionData']({'id':_0x4966f2,'type':_0x49d195,'data':_0x2f0a49,'createdAt':new Date(),'authorId':_0x511718,'attributes':_0x27f26c});for(const _0x63ccf of _0x60dbbe)this['_addSuggestionMarker'](_0x49d195,_0x4966f2,_0x511718,_0x63ccf,Suggestion['getMultiRangeId']());return _0x1d1bc0;}['markDeletion'](_0x696cd,_0x47ded5=null,_0x1e5046={}){if(_0x696cd['isCollapsed'])return null;const _0x158289=this['editor']['plugins']['get']('Users')['me'],_0x2b0275=new _0x4c6b54(_0x696cd['start'],_0x696cd['end']);this['_trackingSessionId']&&(_0x1e5046['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc6b919,meta:_0x141775}of this['_findSuggestions'](_0x2b0275,'insertion'))if(_0x141775['isOwn']&&!_0x141775['isNextTo']){if(_0xc6b919['isMultiRange']){const _0x3d4c20=_0xc6b919['getRanges']()['filter'](_0x4283d5=>'$graveyard'!=_0x4283d5['root']['rootName']);_0x3d4c20['every'](_0x4e1291=>_0x2b0275['containsRange'](_0x4e1291,!0x0))&&_0xc6b919['discard']();if(_0x3d4c20['some'](_0x2116f9=>_0x2116f9['containsRange'](_0x2b0275,!0x0))){const _0x5f7792=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47ded5,'accept');return this['forceDefaultExecution'](()=>_0x5f7792([_0x2b0275],null,_0x1e5046)),null;}}else{const _0x22ac17=_0x2b0275['getIntersection'](_0xc6b919['getFirstRange']());null!==_0x22ac17&&_0xc6b919['_onDiscard']([_0x22ac17],null,_0x1e5046);}}if(_0x2b0275['detach'](),_0x2b0275['isCollapsed']||'$graveyard'==_0x2b0275['root']['rootName'])return null;let _0x118809=null,_0x17b438=_0x2b0275['start'],_0x5b123a=_0x2b0275['end'];const _0x4e4182=this['_findSuggestions'](_0x2b0275,'deletion');for(const {suggestion:_0x2c07c7,meta:_0x49f5ec}of _0x4e4182){const _0x1e57e4=this['_model']['createRange'](_0x17b438,_0x5b123a);if(_0x49f5ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49f5ec['containsRangeInObject']&&!_0x49f5ec['isInsideObject'])){if(_0x2c07c7['isMultiRange']){if(!zt(_0x2c07c7,_0x1e5046))continue;let _0x773df0=!0x0;for(const _0x1ca694 of _0x2c07c7['getRanges']()){if(_0x1ca694['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;_0x1e57e4['containsRange'](_0x1ca694)||(_0x773df0=!0x1);}_0x773df0&&_0x2c07c7['discard']();}else{const _0x577f95=_0x2c07c7['getFirstRange']();if(_0x577f95['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;if(!zt(_0x2c07c7,_0x1e5046)){_0x1e57e4['containsRange'](_0x577f95)?_0x2c07c7['removeMarkers']():_0x577f95['containsPosition'](_0x17b438)?_0x17b438=_0x577f95['end']:_0x577f95['containsPosition'](_0x5b123a)&&(_0x5b123a=_0x577f95['start']);continue;}_0x17b438=_0x17b438['isBefore'](_0x577f95['start'])?_0x17b438:_0x577f95['start'],_0x5b123a=_0x5b123a['isAfter'](_0x577f95['end'])?_0x5b123a:_0x577f95['end'],_0x1e5046=Object['assign']({},_0x2c07c7['attributes']),_0x118809?_0x577f95['start']['isBefore'](_0x118809['getFirstRange']()['start'])?(_0x118809['removeMarkers'](),_0x118809=_0x2c07c7):_0x2c07c7['removeMarkers']():_0x118809=_0x2c07c7;}}}if(_0x118809)return this['_setSuggestionRange'](_0x118809,this['_model']['createRange'](_0x17b438,_0x5b123a)),_0x118809;{const _0x905bc=_0x1e5a7d(),_0x2f3782=this['_model']['createRange'](_0x17b438,_0x5b123a),_0x1ed209=_0x158289['id'],_0xdda4a2=_0x47ded5?'deletion:'+_0x47ded5:'deletion',_0x35f439=this['_setSuggestionData']({'id':_0x905bc,'type':_0xdda4a2,'createdAt':new Date(),'authorId':_0x1ed209,'attributes':_0x1e5046});return this['_addSuggestionMarker'](_0xdda4a2,_0x905bc,_0x1ed209,_0x2f3782),_0x35f439;}}['markMultiRangeDeletion'](_0x541a07,_0x64ef2a='multi',_0x23d3a4={}){const _0x385f75=this['editor']['plugins']['get']('Users')['me'],_0xdefd64=_0x541a07['map'](_0x5a26ee=>new _0x4c6b54(_0x5a26ee['start'],_0x5a26ee['end'])),_0x50c9fe=new Set();this['_trackingSessionId']&&(_0x23d3a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb5b688,meta:_0x10b044}of this['_findSuggestions'](_0xdefd64,'insertion'))_0x10b044['isOwn']&&!_0x10b044['isNextTo']&&_0x50c9fe['add'](_0xb5b688);for(const _0x351f7a of _0x50c9fe)if(_0x351f7a['isMultiRange']){const _0x51bc22=_0x351f7a['getRanges']();(!_0x351f7a['attributes']||!_0x351f7a['attributes']['skipNestingCheck'])&&(_0x51bc22['every'](_0x58fcd8=>_0xdefd64['some'](_0x3f1fcf=>_0x3f1fcf['containsRange'](_0x58fcd8,!0x0)))&&_0x351f7a['discard']());if(_0xdefd64['every'](_0x33d01c=>_0x51bc22['some'](_0x1e2206=>_0x1e2206['containsRange'](_0x33d01c,!0x0)))){const _0x381c7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x381c7c(_0x541a07,null,_0x23d3a4)),null;}}else{const _0xc894eb=_0x351f7a['getFirstRange']();_0xdefd64['some'](_0x52d78c=>_0x52d78c['containsRange'](_0xc894eb,!0x0))&&_0x351f7a['discard']();if(_0xdefd64['every'](_0xbc56b2=>_0xc894eb['containsRange'](_0xbc56b2,!0x0))){const _0x1eee7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x1eee7c(_0xdefd64,null,_0x23d3a4)),null;}}const _0x59a2a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'join');let _0x3e275e=null;for(const _0x483fb5 of this['getSuggestions']())if(_0x483fb5['author']['id']==_0x385f75['id']&&_0x483fb5['isInContent']&&'deletion'==_0x483fb5['type']&&_0x483fb5['subType']==_0x64ef2a&&zt(_0x483fb5,_0x23d3a4)&&(_0x59a2a9(_0x483fb5['getRanges'](),_0xdefd64)||_0x59a2a9(_0xdefd64,_0x483fb5['getRanges']()))){if(_0x3e275e){if(_0x483fb5['commentThread']&&_0x483fb5['commentThread']['length'])continue;for(const _0x10e646 of _0x483fb5['getRanges']())_0x3e275e['isIntersectingWithRange'](_0x10e646)||_0x3e275e['addRange'](_0x10e646);_0x483fb5['removeMarkers']();}else{_0x3e275e=_0x483fb5;for(const _0x2723ba of _0xdefd64)_0x483fb5['isIntersectingWithRange'](_0x2723ba)||_0x483fb5['addRange'](_0x2723ba);}}if(_0x3e275e)return _0x3e275e;_0x50c9fe['clear']();for(const {suggestion:_0x4e083d,meta:_0x9487d5}of this['_findSuggestions'](_0xdefd64,'deletion'))_0x9487d5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9487d5['containsRangeInObject']&&!_0x9487d5['isInsideObject'])&&zt(_0x4e083d,_0x23d3a4)&&_0x50c9fe['add'](_0x4e083d);for(const _0x28cd4d of _0x50c9fe){const _0x14e59f=_0x28cd4d['getRanges']();if(!_0x23d3a4||!_0x23d3a4['skipNestingCheck']){if(_0xdefd64['every'](_0x2b5d0d=>_0x14e59f['some'](_0x4ff578=>_0x4ff578['containsRange'](_0x2b5d0d,!0x0))))return _0x28cd4d;}(!_0x28cd4d['attributes']||!_0x28cd4d['attributes']['skipNestingCheck'])&&(_0x14e59f['every'](_0x4e0724=>_0xdefd64['some'](_0x1acb08=>_0x1acb08['containsRange'](_0x4e0724,!0x0)))&&_0x28cd4d['discard']());}const _0x32150f=_0x1e5a7d(),_0x8e3e5c=_0x385f75['id'],_0x5b39c0='deletion:'+_0x64ef2a,_0x534b3b=this['_setSuggestionData']({'id':_0x32150f,'type':_0x5b39c0,'createdAt':new Date(),'authorId':_0x8e3e5c,'attributes':_0x23d3a4});for(const _0x2be20c of _0xdefd64)_0x2be20c['detach'](),_0x2be20c['isCollapsed']||'$graveyard'==_0x2be20c['root']['rootName']||this['_addSuggestionMarker'](_0x5b39c0,_0x32150f,_0x8e3e5c,_0x2be20c,Suggestion['getMultiRangeId']());return _0x534b3b;}['markAttributeChange'](_0x1e4223,_0x1df317,_0x379ba1,_0x2148b9,_0x26c167){if(_0x1e4223['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x145061=this['editor']['plugins']['get']('Users')['me']['id'],_0x5803f3=Array['from'](this['_suggestions']['values']())['filter'](_0x23527e=>'attribute'==_0x23527e['type']&&_0x23527e['data']['key']==_0x1df317&&_0x23527e['isIntersectingWithRange'](_0x1e4223));if(this['_trackingSessionId']&&(_0x26c167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3061de=this['_findSuggestions'](_0x1e4223,'insertion')['filter'](({meta:_0x3ac433})=>_0x3ac433['isOwn']&&!_0x3ac433['isInsideObject']&&!_0x3ac433['isNextTo'])['map'](({suggestion:_0x32065f})=>_0x32065f);_0x5803f3['unshift'](..._0x3061de);}const _0x5e98f5=new Map([[_0x1e4223,_0x379ba1]]);for(const _0x566b01 of _0x5803f3){const _0x3fa3f1='attribute'==_0x566b01['type']?_0x566b01['data']['oldValue']:void 0x0,_0x281c3a=_0x566b01['getFirstRange'](),_0x3dcb2c=Array['from'](_0x5e98f5['keys']())['find'](_0x4067a8=>_0x4067a8['isIntersecting'](_0x281c3a));if(!_0x3dcb2c)continue;const _0x58201f=_0x3dcb2c['getDifference'](_0x281c3a);this['_suggestionsConversion']['isBlockAttribute'](_0x1df317)&&'insertion'==_0x566b01['type']&&0x0!=_0x58201f['length']||(_0x5e98f5['delete'](_0x3dcb2c),_0x58201f['forEach'](_0x5ea526=>{_0x5e98f5['set'](_0x5ea526,_0x379ba1);}),'insertion'!=_0x566b01['type']&&_0x3fa3f1!=_0x2148b9&&_0x5e98f5['set'](_0x3dcb2c['getIntersection'](_0x281c3a),_0x3fa3f1));}const _0x1628ff=[];for(const [_0x4e7b48,_0xd6fb25]of _0x5e98f5){const _0x122357=_0x1e5a7d(),_0x4fb747={'key':_0x1df317,'oldValue':_0xd6fb25,'newValue':_0x2148b9};_0x1df317['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':_0x1df317});const _0x3041f1=('attribute:'+(_0x1df317+'|'+xt({'newValue':_0x2148b9})))['substring'](0x0,0x3c),_0x30df3b=this['_setSuggestionData']({'id':_0x122357,'type':_0x3041f1,'data':_0x4fb747,'createdAt':new Date(),'authorId':_0x145061,'attributes':_0x26c167});_0x1628ff['push'](_0x30df3b),this['_addSuggestionMarker'](_0x3041f1,_0x122357,_0x145061,_0x4e7b48);}return _0x1628ff;}['enableDefaultAttributesIntegration'](_0x53db7c){this['enableCommand'](_0x53db7c,(_0x12e46e,..._0x271b47)=>{this['recordAttributeChanges'](()=>{_0x12e46e(..._0x271b47);});});}['startTrackingSession'](_0x5c9d76){return this['_trackingSessionId']=void 0x0!==_0x5c9d76?_0x5c9d76:_0x1e5a7d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21462b){return'attribute'==_0x21462b['type']?Xt(_0x21462b['subType']):null;}['_applyOperationsAsSuggestions'](_0x3b5f00){if(0x0==_0x3b5f00['length'])return;const _0x2837ff=this['editor'],_0x30a368=_0x2837ff['plugins']['get'](_0x319f4e),_0x191a90=[];_0x2837ff['model']['change'](_0x531010=>{for(let _0x1eeb6a=0x0;_0x1eeb6a<_0x3b5f00['length'];_0x1eeb6a++){const _0x27e0b6=_0x3b5f00[_0x1eeb6a];if(_0x27e0b6['baseVersion']=_0x2837ff['model']['document']['version'],_0x27e0b6['isDocumentOperation']=!0x0,_0x30a368['isMarkedRemoveOperation'](_0x27e0b6)){const _0x1ca3c4=_0x494da1(_0x27e0b6['newRange'],_0x2837ff['model']);_0x191a90['unshift'](_0x4c6b54['fromRange'](_0x1ca3c4));}else switch(_0x27e0b6['type']){case'rename':{const _0x366a41=_0x27e0b6['oldName'],_0x12c8d9=_0x27e0b6['newName'];if(_0x366a41==_0x12c8d9)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x53c5a3='$elementName',_0x2efc9c=_0x27e0b6['position'],_0x1412be=_0x2837ff['model']['createRange'](_0x2efc9c,_0x2837ff['model']['createPositionAt'](_0x2efc9c['nodeAfter'],'end'));this['markAttributeChange'](_0x1412be,_0x53c5a3,_0x366a41,_0x12c8d9,{'groupId':_0x1e5a7d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xca76d8=_0x27e0b6['oldValue'],_0x373e2b=_0x27e0b6['newValue'];if(_0xca76d8==_0x373e2b)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x594712=_0x27e0b6['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x594712))break;const _0x21fa58=_0x494da1(_0x27e0b6['range'],_0x2837ff['model']);this['markAttributeChange'](_0x21fa58,_0x594712,_0xca76d8,_0x373e2b,{'groupId':_0x1e5a7d()});break;}case'insert':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);if(_0x3b5f00[_0x1eeb6a+0x1]&&'move'==_0x3b5f00[_0x1eeb6a+0x1]['type'])break;const _0x455618=_0x27e0b6['position'],_0x20baf3=_0x27e0b6['howMany'],_0x1817f8=_0x494da1(_0x2837ff['model']['createRange'](_0x455618,_0x455618['getShiftedBy'](_0x20baf3)),_0x2837ff['model']);this['markInsertion'](_0x1817f8);break;}case'split':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x2152e7=_0x27e0b6['splitPosition'],_0x53955f=_0x27e0b6['moveTargetPosition'];this['markInsertion'](_0x2837ff['model']['createRange'](_0x2152e7,_0x53955f));break;}case'move':case'remove':_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);}}for(const _0x5cdcd0 of _0x191a90)_0x5cdcd0['detach'](),this['markDeletion'](_0x5cdcd0);});}['_setSuggestionRange'](_0x5a6e25,_0x190fdb){const _0x14a141=_0x5a6e25['getFirstMarker']();this['_model']['change'](_0x36c9b0=>{_0x36c9b0['updateMarker'](_0x14a141,{'range':_0x190fdb});});}['_addThreadToSuggestion'](_0x5f090c){const _0x2195d3=_0x5f090c['id'],_0x506865=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2195d3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x506865,'threadId':_0x2195d3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc41793=this['_commentsRepository']['getCommentThread'](_0x2195d3);_0xc41793['unbind']('isRemovable'),_0xc41793['isRemovable']=!0x1,_0x5f090c['commentThread']=_0xc41793;}['_checkSuggestionCorrectness'](_0x1a5d5d,_0x1518d0,_0x212996,_0x276424){if(_0x1a5d5d['type']!=_0x1518d0||_0x1a5d5d['subType']!=_0x212996||_0x1a5d5d['creator']['id']!=_0x276424)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2618c5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2bb5bb,_0xa9b25c){const _0x5a60cd=_0x2bb5bb['getFirstRange']();if(_0xa9b25c['isEqual'](_0x5a60cd))_0x2bb5bb['removeMarkers']();else{if(_0x5a60cd['containsRange'](_0xa9b25c)){const _0x4105f8=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x4105f8));const _0x4197bb=_0x1e5a7d(),_0x46b10a=_0x2bb5bb['creator']['id'],_0x13aa13=_0x2bb5bb['type']+':'+_0x2bb5bb['subType'];this['_setSuggestionData']({'id':_0x4197bb,'type':_0x13aa13,'createdAt':new Date(),'authorId':_0x46b10a,'data':_0x2bb5bb['data'],'attributes':_0x2bb5bb['attributes']});const _0x734459=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after'),_0x1d266c=this['_model']['createRange'](_0x734459,_0x5a60cd['end']);this['_addSuggestionMarker'](_0x13aa13,_0x4197bb,_0x46b10a,_0x1d266c);}else{if(_0x5a60cd['containsPosition'](_0xa9b25c['start'])){const _0x53f101=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x53f101));}else{const _0x4fc1fe=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x4fc1fe,_0x5a60cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x597ded){for(const {suggestion:_0x1792ca,meta:_0x46dfe0}of this['_findSuggestions'](_0x597ded,'insertion')){if(!_0x46dfe0['isOwn'])continue;const _0xc1b9df=_0x1792ca['getRanges']();for(const _0x23165b of _0xc1b9df)if(!_0x597ded['getDifference'](_0x23165b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x51e351){return this['editor']['plugins']['get']('Users')['getUser'](_0x51e351);}['_getExternalAuthor'](_0xee9493){const _0x12ba74=this['editor']['plugins']['get']('Users'),_0x27e1c1=_0x1fc623('external:'+_0xee9493),_0x237c81=_0x12ba74['getUser'](_0x27e1c1);return _0x237c81||_0x12ba74['addUser']({'id':_0x27e1c1,'name':_0xee9493});}['_createSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x4c0c50,_0xfa39e8,_0x47e205){const _0x15b6e4=this['_getAuthorFromId'](_0x4c0c50);if(!_0x15b6e4)throw new _0x2618c5('track-changes-user-not-found',this,{'authorId':_0x4c0c50,'suggestionId':_0x5b0ce4});const _0x31cbe4=this['_suggestionFactory']['buildSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x15b6e4,_0xfa39e8,_0x5c1426=>{this['_updateSuggestionData'](_0x5b0ce4,{'attributes':_0x5c1426});const _0x4b31d6=this['getSuggestion'](_0x5b0ce4);this['_joinWithAdjacentSuggestions'](new Set([_0x4b31d6])),this['_refreshSuggestionsChain'](new Set([_0x4b31d6]));},_0x47e205);return this['listenTo'](_0x31cbe4,'accept',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x31cbe4,'discard',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b0ce4,_0x31cbe4),this['_suggestionState']['set'](_0x31cbe4,'notReady'),_0x31cbe4;}['_breakSuggestionMarker'](_0x5e2ee0,_0x1a4ef1,_0x517506){const _0x5d10a3=_0x5e2ee0['getFirstRange'](),_0x4a2fd5=_0x5d10a3['start'],_0x575d87=_0x5d10a3['end'];this['_setSuggestionRange'](_0x5e2ee0,this['_model']['createRange'](_0x4a2fd5,_0x1a4ef1));const _0x1b2535=_0x1e5a7d(),_0x12bd1d=_0x5e2ee0['creator']['id'],_0x577f18=_0x5e2ee0['type']+(_0x5e2ee0['subType']?':'+_0x5e2ee0['subType']:'');this['_setSuggestionData']({'id':_0x1b2535,'type':_0x577f18,'createdAt':new Date(),'authorId':_0x12bd1d,'originalSuggestionId':_0x5e2ee0['_originalSuggestionId']||_0x5e2ee0['id'],'attributes':_0x5e2ee0['attributes'],'data':_0x5e2ee0['data']});const _0x18ea48=this['_getAttributeKey'](_0x5e2ee0);('formatBlock'==_0x5e2ee0['type']||_0x18ea48&&this['_suggestionsConversion']['isBlockAttribute'](_0x18ea48))&&(_0x517506=this['_model']['createPositionBefore'](_0x517506['parent'])),this['_addSuggestionMarker'](_0x577f18,_0x1b2535,_0x12bd1d,this['_model']['createRange'](_0x517506,_0x575d87));}['_findSuggestions'](_0x116df1,_0x4dcae8=null){const _0x33b4c4=[],_0x42ba32=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x116df1)||(_0x116df1=[_0x116df1]);for(const _0x11b579 of this['getSuggestions']()){if(!_0x11b579['isInContent'])continue;if(_0x4dcae8&&_0x11b579['type']!=_0x4dcae8)continue;let _0x1a810b=!0x1;for(const _0x78f004 of _0x11b579['getRanges']()){for(const _0x363793 of _0x116df1){const _0x4378ca=_0x363793['start']['isEqual'](_0x78f004['end'])||_0x363793['end']['isEqual'](_0x78f004['start']);if(_0x4378ca||_0x363793['getIntersection'](_0x78f004)){const _0x2b3761=_0x363793['containsRange'](_0x78f004)&&Dt(this['_model']['schema'],_0x78f004['start'],_0x363793),_0x3e6b28=_0x78f004['containsRange'](_0x363793)&&Dt(this['_model']['schema'],_0x363793['start'],_0x78f004);_0x33b4c4['push']({'suggestion':_0x11b579,'meta':{'isOwn':_0x42ba32==_0x11b579['author'],'isNextTo':_0x4378ca,'isInsideObject':_0x2b3761,'containsRangeInObject':_0x3e6b28}}),_0x1a810b=!0x0;break;}}if(_0x1a810b)break;}}return _0x33b4c4;}['_addSuggestionMarker'](_0x161e3d,_0x4df4a8,_0x564c31,_0x4782fb,_0x10a1d8){this['_model']['change'](_0x56aff4=>{let _0x5344d8='suggestion:'+_0x161e3d+':'+_0x4df4a8+':'+_0x564c31;_0x10a1d8&&(_0x5344d8=_0x5344d8+':'+_0x10a1d8),_0x56aff4['addMarker'](_0x5344d8,{'range':_0x4782fb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a8a7d){const _0x4ce5ee=_0x4a8a7d['previous'],_0x5b163c=_0x4a8a7d['next'];_0x4a8a7d['previous']=null,_0x4a8a7d['next']=null,null!=_0x4ce5ee&&_0x4ce5ee['next']==_0x4a8a7d&&(_0x4ce5ee['next']=_0x5b163c),null!=_0x5b163c&&_0x5b163c['previous']==_0x4a8a7d&&(_0x5b163c['previous']=_0x4ce5ee),'ready'==this['_suggestionState']['get'](_0x4a8a7d)&&(this['_suggestionState']['set'](_0x4a8a7d,'removed'),this['fire']('suggestionUnloaded',_0x4a8a7d,_0x4ce5ee,_0x5b163c));}['_setSuggestionData'](_0x54fb54){const _0x23fb94=_0x54fb54['id'],_0x423aaf=this['addSuggestionData'](_0x54fb54);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2fb34d=this['editor']['plugins']['get']('PendingActions'),_0x3ff00e=_0x423aaf['hasComments'],_0x842ee3=_0x423aaf['subType']?_0x423aaf['type']+':'+_0x423aaf['subType']:_0x423aaf['type'],_0x43ceb3=this['editor']['locale'],_0x5562e0=_0x2fb34d['add'](Tt(_0x43ceb3,'PENDING_ACTION_SUGGESTION')),_0x547c38={'id':_0x23fb94,'type':_0x842ee3,'hasComments':_0x3ff00e,'data':_0x54fb54['data']||null,'originalSuggestionId':_0x54fb54['originalSuggestionId']||null,'attributes':_0x423aaf['attributes']};this['_adapter']['addSuggestion'](_0x547c38)['then'](_0xb6f1ad=>{_0x423aaf['_saved']=!0x0,_0x2fb34d['remove'](_0x5562e0),_0xb6f1ad&&_0xb6f1ad['createdAt']&&(this['_suggestions']['get'](_0x23fb94)['createdAt']=_0xb6f1ad['createdAt']);})['catch'](_0x490286=>{throw _0x39db6c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x423aaf['discard']();}),_0x423aaf['stopListening'](),this['_suggestions']['delete'](_0x423aaf['id']),this['_suggestionState']['delete'](_0x423aaf),_0x490286;});}return _0x423aaf;}['_updateSuggestionData'](_0x4f3fc1,_0x1387a2){const _0x1509bf=this['editor']['plugins']['get']('PendingActions'),_0x2d74bc=this['getSuggestion'](_0x4f3fc1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d74bc['_saved']){const _0x5dfa9b=_0x1509bf['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f3fc1,_0x1387a2)['then'](()=>{_0x1509bf['remove'](_0x5dfa9b);});}else _0x2d74bc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f3fc1,_0x1387a2);});}}['_getSuggestionData'](_0x1aa8ee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2618c5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1aa8ee);}['_handleNewSuggestionMarker'](_0x3acd3c){const {id:_0x6703e2,type:_0xa9264e,subType:_0x43cae3,authorId:_0x12ea0b}=_0x4f787f(_0x3acd3c),_0x281d61=this['_suggestions']['get'](_0x6703e2)||this['_createSuggestion'](_0xa9264e,_0x43cae3,_0x6703e2,_0x12ea0b,{});switch(this['_checkSuggestionCorrectness'](_0x281d61,_0xa9264e,_0x43cae3,_0x12ea0b),this['_suggestionState']['get'](_0x281d61)){case'notReady':this['_getSuggestionData'](_0x6703e2)['then'](_0x314f40=>{let _0x7d6a7e=Promise['resolve']();_0x314f40['hasComments']&&(_0x7d6a7e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x6703e2})),_0x7d6a7e['then'](()=>{this['addSuggestionData'](_0x314f40)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x281d61,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x6703e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x281d61,'ready'),this['fire']('suggestionLoaded',_0x281d61);break;case'ready':this['fire']('suggestionChanged',_0x281d61);}return _0x281d61['addMarkerName'](_0x3acd3c),_0x281d61;}['_refreshSuggestionsChain'](_0x3bc1a8){const _0x368cc8=Array['from'](_0x3bc1a8),_0x5726e0=_0x368cc8['filter'](_0x2432cb=>'attribute'==_0x2432cb['type']);this['_refreshAttributeSuggestionsChain'](_0x5726e0);const _0x256a8c=_0x368cc8['filter'](_0x235c7c=>!_0x235c7c['isMultiRange']&&'attribute'!=_0x235c7c['type']),_0x2e3066=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e18a2=>!_0x1e18a2['isMultiRange']&&'attribute'!=_0x1e18a2['type']),_0x30d9bd=_0x2e3066['filter'](_0x4a57fc=>!_0x3bc1a8['has'](_0x4a57fc)),_0x525b46=new Map(_0x2e3066['map'](_0x1493c1=>[_0x1493c1,this['_suggestionFactory']['getSuggestionCallback'](_0x1493c1['type'],_0x1493c1['subType'],'chain')])),_0x5ba4c7=new Map(_0x2e3066['map'](_0x39b2b9=>[_0x39b2b9,_0x39b2b9['getFirstRange']()])),_0x4375f2=new Set(),_0x2ef8ae=new Set();for(let _0xb9aa2c=0x0;_0xb9aa2c<_0x256a8c['length'];_0xb9aa2c++)_0x55f671(_0x256a8c[_0xb9aa2c],_0x256a8c,_0xb9aa2c+0x1);for(let _0x156012=0x0;_0x156012<_0x256a8c['length'];_0x156012++)_0x55f671(_0x256a8c[_0x156012],_0x30d9bd,0x0);const _0xb5a061=new Set();for(let _0x4a489f=0x0;_0x4a489f<_0x256a8c['length'];_0x4a489f++){const _0x365ff4=_0x256a8c[_0x4a489f];!_0x2ef8ae['has'](_0x365ff4)&&_0x365ff4['previous']&&(_0xb5a061['add'](_0x365ff4['previous']),_0x365ff4['previous']['next']===_0x365ff4&&(_0x365ff4['previous']['next']=null),_0x365ff4['previous']=null),!_0x4375f2['has'](_0x365ff4)&&_0x365ff4['next']&&(_0xb5a061['add'](_0x365ff4['next']),_0x365ff4['next']['previous']===_0x365ff4&&(_0x365ff4['next']['previous']=null),_0x365ff4['next']=null);}function _0x55f671(_0x4eae2f,_0x250434,_0x5b2c6c){for(let _0x46c020=_0x5b2c6c;_0x46c020<_0x250434['length'];_0x46c020++){const _0xf0bcae=_0x27be2a(_0x4eae2f,_0x250434[_0x46c020]);_0xf0bcae&&(_0xf0bcae[0x0]['next']=_0xf0bcae[0x1],_0xf0bcae[0x1]['previous']=_0xf0bcae[0x0],_0x4375f2['add'](_0xf0bcae[0x0]),_0x2ef8ae['add'](_0xf0bcae[0x1]));}}function _0x27be2a(_0x1daf07,_0x32710f){if(_0x1daf07['author']['id']!==_0x32710f['author']['id'])return null;const _0x2078c4=_0x525b46['get'](_0x1daf07)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f));if(!_0x2078c4)return null;return _0x525b46['get'](_0x32710f)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f))?_0x2078c4[0x1]['commentThread']&&_0x2078c4[0x1]['commentThread']['length']?null:_0x2078c4:null;}_0xb5a061['size']&&this['_refreshSuggestionsChain'](_0xb5a061);}['_refreshAttributeSuggestionsChain'](_0x3c739a){if(0x0==_0x3c739a['length'])return;const _0x3b1c17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x79af9d=>'attribute'==_0x79af9d['type']&&_0x79af9d['_isDataLoaded']),_0x194e41=[],_0x171672=new Map();for(const _0x433a94 of _0x3b1c17){const _0x511e59=_0x1fc623(_0x433a94['attributes']);_0x171672['has'](_0x511e59)||(_0x171672['set'](_0x511e59,_0x194e41['length']),_0x194e41['push']([]));const _0x393ee8=_0x171672['get'](_0x511e59);_0x194e41[_0x393ee8]['push'](_0x433a94);}!(function(){_0x194e41['sort']((_0x343127,_0x2b2646)=>{const _0x45481a=_0x343127[0x0]['createdAt'],_0x3508a8=_0x2b2646[0x0]['createdAt'];return _0x45481a==_0x3508a8?_0x343127[0x0]['attributes']['groupId']<_0x2b2646[0x0]['attributes']['groupId']?-0x1:0x1:_0x45481a<_0x3508a8?-0x1:0x1;});for(const _0x2c0a26 of _0x194e41)_0x2c0a26['sort']((_0x4179a2,_0x2bddc5)=>_0x4179a2['id']<_0x2bddc5['id']?-0x1:0x1);}());for(let _0x5c9de4=0x0;_0x5c9de4<_0x194e41['length'];_0x5c9de4++){if(0x0==_0x194e41[_0x5c9de4]['length'])continue;const _0x19f35c=[];for(let _0x232f69=_0x5c9de4+0x1;_0x232f69<_0x194e41['length'];_0x232f69++)0x0!=_0x194e41[_0x232f69]['length']&&_0x5f04ad(_0x194e41[_0x5c9de4],_0x194e41[_0x232f69])&&_0x19f35c['push'](_0x232f69);for(const _0x1f53f8 of _0x19f35c)_0x194e41[_0x5c9de4]=_0x194e41[_0x5c9de4]['concat'](_0x194e41[_0x1f53f8]),_0x194e41[_0x1f53f8]=[];}for(const _0x5ac8e6 of _0x194e41)for(let _0x1f6c6d=0x0;_0x1f6c6d<_0x5ac8e6['length'];_0x1f6c6d++){const _0x1d0386=_0x5ac8e6[_0x1f6c6d+0x1]||null;_0x5ac8e6[_0x1f6c6d]['next']!==_0x1d0386&&(_0x5ac8e6[_0x1f6c6d]['next']=_0x1d0386);}for(const _0x4211b8 of _0x194e41)for(let _0x4ea807=0x0;_0x4ea807<_0x4211b8['length'];_0x4ea807++){const _0x241cca=_0x4211b8[_0x4ea807-0x1]||null;_0x4211b8[_0x4ea807]['previous']!==_0x241cca&&(_0x4211b8[_0x4ea807]['previous']=_0x241cca);}function _0x5f04ad(_0x29925b,_0x438555){if(_0x29925b[0x0]['attributes']['groupId']!==_0x438555[0x0]['attributes']['groupId']&&_0x29925b[0x0]['author']!==_0x438555[0x0]['author'])return!0x1;if(!function(_0x4aefdd,_0x56190f){if(!_0x4aefdd['hasComments']&&!_0x56190f['hasComments'])return!0x0;if(_0x4aefdd['hasComments']&&_0x56190f['hasComments'])return!0x1;if(_0x4aefdd['hasComments']&&_0x56190f['createdAt']<_0x4aefdd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56190f['hasComments']&&_0x4aefdd['createdAt']<_0x56190f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29925b[0x0],_0x438555[0x0]))return!0x1;const _0x177f73=ot(_0x29925b[0x0]['attributes'],['groupId','trackingSessionId']),_0x27bedc=ot(_0x438555[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x177f73,_0x27bedc))return!0x1;if(_0x29925b[0x0]['attributes']['groupId']==_0x438555[0x0]['attributes']['groupId'])return!0x0;if(_0x29925b[0x0]['attributes']['trackingSessionId']!==_0x438555[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29925b['every'](_0x5334c3=>_0x438555['some'](_0x380c14=>_0x5334c3['getFirstRange']()['isEqual'](_0x380c14['getFirstRange']())))&&_0x438555['every'](_0x259f49=>_0x29925b['some'](_0x6eed2a=>_0x259f49['getFirstRange']()['isEqual'](_0x6eed2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x79c33b){const _0x8b4660=Array['from'](_0x79c33b),_0x4e6915=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492976=_0x4e6915['filter'](_0x1add4d=>!_0x79c33b['has'](_0x1add4d)),_0x1a2502=new Map(_0x8b4660['map'](_0x2c9a76=>[_0x2c9a76,this['_suggestionFactory']['getSuggestionCallback'](_0x2c9a76['type'],_0x2c9a76['subType'],'join')])),_0x23bfe6=new Map(_0x4e6915['map'](_0x5dfe68=>[_0x5dfe68,_0x5dfe68['getRanges']()]));for(let _0xa389b3=0x0;_0xa389b3<_0x8b4660['length'];_0xa389b3++){if(_0xb5f176(this,_0x8b4660[_0xa389b3],_0x8b4660,_0xa389b3+0x1))return!0x0;}for(let _0x50fc90=0x0;_0x50fc90<_0x8b4660['length'];_0x50fc90++){if(_0xb5f176(this,_0x8b4660[_0x50fc90],_0x492976,0x0))return!0x0;}return!0x1;function _0xb5f176(_0x1e723f,_0x5bb651,_0xb7c3a,_0x31d115){for(let _0x1b5f9d=_0x31d115;_0x1b5f9d<_0xb7c3a['length'];_0x1b5f9d++){const _0x378518=_0xb7c3a[_0x1b5f9d];if(_0x378518['type']!==_0x5bb651['type']||_0x378518['author']['id']!==_0x5bb651['author']['id']||_0x378518['subType']!==_0x5bb651['subType'])continue;if(!jt(_0x5bb651,_0x378518))continue;if('attribute'==_0x5bb651['type']&&_0x5bb651['data']['oldValue']!=_0x378518['data']['oldValue'])continue;if('attribute'==_0x5bb651['type']&&_0x1e723f['_suggestionsConversion']['isBlockAttribute'](_0x5bb651['data']['key']))continue;if('formatBlock'==_0x5bb651['type']){const _0x1e0442=_0x1e723f['editor']['model'],_0x448184=_0x5bb651['getContainedElement']();if(_0x448184&&(_0x1e0442['schema']['isObject'](_0x448184)||_0x1e0442['schema']['isLimit'](_0x448184)))continue;}const _0x5b73c0=_0x1a2502['get'](_0x5bb651),_0xafc620=_0x23bfe6['get'](_0x5bb651),_0x5856af=_0x23bfe6['get'](_0x378518),_0x52ae76=_0x5bb651['commentThread']&&_0x5bb651['commentThread']['length'],_0x44b0a3=_0x378518['commentThread']&&_0x378518['commentThread']['length'];if(!_0x52ae76&&_0x5b73c0(_0x5856af,_0xafc620))return _0x1e723f['_joinSuggestions'](_0x378518,_0x5bb651),_0x23bfe6['delete'](_0x5bb651),!0x0;if(!_0x44b0a3&&_0x5b73c0(_0xafc620,_0x5856af))return _0x1e723f['_joinSuggestions'](_0x5bb651,_0x378518),_0x23bfe6['delete'](_0x378518),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f1465,_0x41ad74){if(_0x5f1465['isMultiRange']){for(const _0x557856 of _0x41ad74['getRanges']())_0x5f1465['addRange'](_0x557856);}else{const _0x523a6d=_0x41ad74['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f1465,this['_model']['createRange'](_0x5f1465['getFirstRange']()['start'],_0x523a6d));}_0x41ad74['removeMarkers']();}['_getMarkerAnnouncementText'](_0x372a6a,_0xff997a,_0x3ec2d2){const _0x6bba03=_0x372a6a['startsWith']('format')||_0x372a6a['startsWith']('attribute')?'FORMATTING':_0x372a6a['toUpperCase']();return Tt(this['editor']['locale'],_0xff997a+'_'+_0x6bba03+'_SUGGESTION_ANNOUNCEMENT',_0x3ec2d2);}['_initAriaMarkerChangeAnnouncements'](){const _0xb905ca=this['editor'];if(!_0xb905ca['ui'])return;const {ariaLiveAnnouncer:_0x38b796}=_0xb905ca['ui'];_0x1a4c74(this['_model'],({left:_0x2daaa6,entered:_0xbcf942})=>{for(const _0x5e383e of _0x2daaa6){const {group:_0x1e34ca,type:_0x5b7d8b}=_0x4f787f(_0x5e383e['name']);if('suggestion'===_0x1e34ca){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5b7d8b,'LEAVE'));break;}}for(const _0x40c0b4 of _0xbcf942){const {group:_0x518f83,type:_0x5dce09}=_0x4f787f(_0x40c0b4['name']);if('suggestion'===_0x518f83){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5dce09,'ENTER',_0x1d258e(_0x4eb651)));break;}}});}['_processAttributeChanges'](_0x32b897){if(this['_recordAttributeSuggestions'])return!0x1;const _0x34ab74=this['editor'],_0x237e20=_0x34ab74['model']['document']['differ']['getChanges']();if(0x0==_0x237e20['length'])return!0x1;const _0x27b1e5=[],_0x4720f5=_0x237e20['filter'](_0x7b3504=>'attribute'==_0x7b3504['type']),_0x168b41=_0x237e20['filter'](_0xc6b4a=>'insert'==_0xc6b4a['type']&&'$text'!=_0xc6b4a['name']),_0x143bb3=_0x237e20['filter'](_0x37620e=>'remove'==_0x37620e['type']&&'$text'!=_0x37620e['name']);for(const _0x58cea2 of _0x4720f5)_0x27b1e5['push']({'key':_0x58cea2['attributeKey'],'newValue':_0x58cea2['attributeNewValue'],'oldValue':_0x58cea2['attributeOldValue'],'range':$t(_0x58cea2['range'],_0x34ab74['model'])});for(const _0x482106 of _0x168b41){const _0x114a48=_0x143bb3['find'](_0x8b503f=>_0x8b503f['position']['isEqual'](_0x482106['position']));_0x114a48&&_0x27b1e5['push']({'key':Bt,'newValue':_0x482106['name'],'oldValue':_0x114a48['name'],'range':_0x34ab74['model']['createRangeOn'](_0x482106['position']['nodeAfter'])});}return 0x0!=_0x27b1e5['length']&&this['_reduceExistingSuggestions'](_0x32b897,_0x27b1e5);}['_processAttributeSuggestions'](_0x48f89a){let _0x3a0b48=!0x1;const _0x400662=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbf8d9d=>_0xbf8d9d['data']['newRange']&&_0xbf8d9d['name']['startsWith']('suggestion:attribute:'));for(const _0x184d2f of _0x400662){const {subType:_0x45c198,id:_0x2fe882}=_0x4f787f(_0x184d2f['name']),_0x318c0b=_0x45c198['split']('|')[0x0];for(const _0x53b970 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53b970['id']!=_0x2fe882&&'attribute'==_0x53b970['type']&&_0x53b970['data']&&_0x53b970['data']['key']==_0x318c0b&&_0x53b970['getFirstRange']()['isIntersecting'](_0x184d2f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53b970,_0x184d2f['data']['newRange'],_0x48f89a),_0x3a0b48=!0x0);}return _0x3a0b48;}['recordAttributeChanges'](_0x33c68b){this['_recordAttributeSuggestions']=!0x0,_0x33c68b();}['_reduceExistingSuggestions'](_0x3e9437,_0x1c00d4){if(0x0==_0x1c00d4['length'])return!0x1;let _0x3dc94a=!0x1;for(const _0x5c33bb of _0x1c00d4){const _0x59210f=this['_findSuggestions'](_0x5c33bb['range'],'attribute')['filter'](_0x1d284f=>!_0x1d284f['meta']['isNextTo'])['map'](_0x55b7f8=>_0x55b7f8['suggestion']),_0x3cabc4=_0x1fc623({'newValue':_0x5c33bb['newValue']});_0x59210f['filter'](_0xc19ba2=>{const [_0x18af0a,_0x4fbbef]=_0xc19ba2['subType']['split']('|');return _0x18af0a==_0x5c33bb['key']&&_0x4fbbef!=_0x3cabc4;})['forEach'](_0x317942=>{this['_reduceSuggestionAttributeRange'](_0x317942,_0x5c33bb['range'],_0x3e9437),_0x3dc94a=!0x0;});}return _0x3dc94a;}['_reduceSuggestionAttributeRange'](_0x52a187,_0x663606,_0x5c0d64){const _0xa2031f=_0x52a187['getFirstRange']()['getDifference'](_0x663606);0x0!==_0xa2031f['length']?0x1!==_0xa2031f['length']?this['_breakSuggestionMarker'](_0x52a187,_0x663606['start'],_0x663606['end']):this['_setSuggestionRange'](_0x52a187,_0xa2031f[0x0]):_0x5c0d64['removeMarker'](_0x52a187['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x55c9bd){this['_editor']=_0x55c9bd,this['_model']=_0x55c9bd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e589b,_0xd9b9d2,_0x404511,_0x3eb02b,_0x22f1db,_0x1495f8,_0x27852a){return new Suggestion(this['_model'],{'type':_0x2e589b,'subType':_0xd9b9d2,'id':_0x404511,'originalSuggestionId':_0x27852a,'author':_0x3eb02b,'creator':_0x3eb02b,'attributes':_0x22f1db,'onAttributesChange':_0x1495f8,'onAccept':(..._0x5e462f)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'accept')(..._0x5e462f),'onDiscard':(..._0xcf937d)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'discard')(..._0xcf937d)});}['registerCustomCallback'](_0x743547,_0x20401a,_0xa69931,_0x27fcce){const _0x126271=_0x743547+':'+_0x20401a+':'+_0xa69931;this['_customCallbacks']['set'](_0x126271,_0x27fcce);}['getSuggestionCallback'](_0x220538,_0x4efe5e,_0x597aa1){const _0x59616a=_0x220538+':'+_0x4efe5e+':'+_0x597aa1;return this['_customCallbacks']['get'](_0x59616a)||this['_defaultCallbacks']['get'](_0x220538+':'+_0x597aa1);}['_registerDefaultCallbacks'](){const _0x264e8c=()=>!0x1,_0x8c58e6=_0x965602=>{_0x965602['sort']((_0x513c24,_0xd80a85)=>_0x513c24['start']['isBefore'](_0xd80a85['start'])?0x1:-0x1),this['_model']['change'](_0xdde8cb=>{for(const _0x356042 of _0x965602){let _0x5e69c4;_0x5e69c4=_0x356042['end']['isAtEnd']&&_0x356042['end']['parent']==_0x356042['start']['nodeAfter']?_0xdde8cb['createSelection'](_0x356042['start']['nodeAfter'],'on'):_0xdde8cb['createSelection'](_0x356042),this['_model']['deleteContent'](_0x5e69c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3f1a61=(_0x4bab47,_0x10276d)=>{_0x10276d&&this['_model']['change'](_0x3851e4=>{const {commandName:_0x3a1186,commandParams:_0x45871e=[]}=_0x10276d,_0x238eec=_0x4bab47['map'](_0x1a944c=>(vt(_0x1a944c)&&(_0x1a944c=this['_model']['createRange'](_0x1a944c['end'])),_0x1a944c))['filter'](_0x4b1aaf=>'$graveyard'!==_0x4b1aaf['root']['rootName']);if(_0x238eec['length']<0x1)return;const _0x31bb4f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2cc699=>_0x4c6b54['fromRange'](_0x2cc699));_0x3851e4['setSelection'](_0x238eec);for(const _0x48962b of this['_editor']['commands']['commands']())_0x48962b['refresh']();_0x45871e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a1186,..._0x45871e);const _0x19440d=_0x31bb4f['filter'](_0x4a3c4d=>'$graveyard'!=_0x4a3c4d['root']['rootName']);_0x19440d['length']>0x0&&_0x3851e4['setSelection'](_0x19440d);for(const _0x96b7cc of _0x31bb4f)_0x96b7cc['detach']();});},_0x511ead=(_0x54c059,_0xd62545)=>0x1==_0x54c059['length']&&0x1==_0xd62545['length']&&_0x54c059[0x0]['end']['isEqual'](_0xd62545[0x0]['start']),_0x23498e=(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)=>Wt(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)?[_0x21247c,_0xe4806a]:Wt(_0xe4806a,_0x21247c,_0x88ffc7,_0x578823)?[_0xe4806a,_0x21247c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x264e8c),this['_defaultCallbacks']['set']('insertion:discard',_0x8c58e6),this['_defaultCallbacks']['set']('insertion:join',_0x511ead),this['_defaultCallbacks']['set']('insertion:chain',_0x23498e),this['_defaultCallbacks']['set']('deletion:accept',_0x8c58e6),this['_defaultCallbacks']['set']('deletion:discard',_0x264e8c),this['_defaultCallbacks']['set']('deletion:join',_0x511ead),this['_defaultCallbacks']['set']('deletion:chain',_0x23498e),this['_defaultCallbacks']['set']('formatInline:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatInline:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatInline:join',_0x511ead),this['_defaultCallbacks']['set']('formatInline:chain',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:join',_0x511ead),this['_defaultCallbacks']['set']('formatBlock:chain',_0x264e8c),this['_defaultCallbacks']['set']('attribute:accept',_0x264e8c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e5fa4,_0x41d10c)=>{if(!_0x41d10c)return;const _0x194cd2=this['_editor']['plugins']['get'](_0x540837);this['_model']['change'](_0x3a9530=>{if(_0x41d10c['key']==Bt)for(const _0x4983d2 of _0x3e5fa4){const _0x5c5d1d=_0x4983d2['start']['nodeAfter'],_0x2c0292=_0x41d10c['oldValue'];_0x3a9530['rename'](_0x5c5d1d,_0x2c0292);}else{if(_0x194cd2['isBlockAttribute'](_0x41d10c['key'])){for(const _0x1653ee of _0x3e5fa4)void 0x0!==_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x1653ee['start']['nodeAfter']):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x1653ee['start']['nodeAfter']);}else{for(const _0x15bbca of _0x3e5fa4)_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x15bbca):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x15bbca);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x511ead);}}function Dt(_0x574cb3,_0x4e5b70,_0x529998){for(const _0x343b5c of _0x4e5b70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x343b5c['root']==_0x343b5c)return!0x1;if(!_0x529998['containsItem'](_0x343b5c))return!0x1;if(_0x574cb3['isObject'](_0x343b5c)||_0x574cb3['isLimit'](_0x343b5c))return!0x0;}return!0x1;}function vt(_0x39fbff){return _0x39fbff['end']['parent']==_0x39fbff['start']['nodeAfter']&&_0x39fbff['end']['isAtStart'];}function Pt(_0x3cc182,_0x359311,_0xf439de,_0x5bc79c){const _0x330d90=_0x54d4f7=>!_0x54d4f7['item']['is']('$textProxy')&&!_0x5bc79c['isObject'](_0x54d4f7['item']),_0x144d20=_0x3cc182['start']['getLastMatchingPosition'](_0x330d90),_0x44deb3=_0x3cc182['end']['getLastMatchingPosition'](_0x330d90,{'direction':'backward'});return(!_0x3cc182['start']['isEqual'](_0x144d20)||!_0x3cc182['end']['isEqual'](_0x44deb3))&&(_0x144d20['isBefore'](_0x44deb3)?_0xf439de['updateMarker'](_0x359311,{'range':_0xf439de['createRange'](_0x144d20,_0x44deb3)}):_0xf439de['removeMarker'](_0x359311),!0x0);}function xt(_0x3b55c5){return _0x1fc623(_0x3b55c5);}function Ut(_0x56203e){const _0x467efc=_0x56203e['start']['nodeAfter'];return _0x467efc&&_0x467efc['is']('element');}function Gt(_0x5ae36e){return vt(_0x5ae36e)||function(_0x1bd351){return _0x1bd351['start']['parent']==_0x1bd351['end']['nodeBefore']&&_0x1bd351['start']['isAtEnd'];}(_0x5ae36e);}function Ht(_0x2a6069,_0x2524cd){try{const _0x182137=_0x2a6069['getRange']();for(const _0xd6bf38 of _0x2524cd)if(_0x2a6069!==_0xd6bf38&&_0x182137&&_0x182137['isIntersecting'](_0xd6bf38['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x4014dd,_0x164f99){return null==_0x4014dd['end']['nodeBefore']&&_0x4014dd['end']['parent']==_0x4014dd['start']['nodeAfter']?Vt(_0x4014dd['start']['nodeAfter'],_0x164f99):_0x4014dd;}function Vt(_0x2d0bd7,_0x33b795){const _0x4b3f34=_0x33b795['schema']['isObject'](_0x2d0bd7)||_0x33b795['schema']['isSelectable'](_0x2d0bd7);return _0x33b795['createRange'](_0x33b795['createPositionAt'](_0x2d0bd7,'before'),_0x4b3f34?_0x33b795['createPositionAfter'](_0x2d0bd7):_0x33b795['createPositionAt'](_0x2d0bd7,'end'));}function Wt(_0x158848,_0x43cd55,_0x3e211d,_0x442d37){return!!jt(_0x158848,_0x43cd55)&&_0x3e211d['end']['isEqual'](_0x442d37['start']);}function jt(_0x316ba1,_0x46f967){if(!_0x316ba1['_isDataLoaded']||!_0x46f967['_isDataLoaded'])return!0x1;const _0xeeeffc=new Set(Object['keys'](_0x316ba1['attributes'])),_0x259e6c=new Set(Object['keys'](_0x46f967['attributes']));if(_0xeeeffc['delete']('groupId'),_0x259e6c['delete']('groupId'),0x0==_0xeeeffc['size']&&0x0==_0x259e6c['size'])return!0x0;if(_0xeeeffc['size']!=_0x259e6c['size'])return!0x1;const _0x5aeff9={..._0x316ba1['attributes']},_0x2a13d9={..._0x46f967['attributes']};return delete _0x5aeff9['groupId'],delete _0x2a13d9['groupId'],JSON['stringify'](_0x5aeff9)==JSON['stringify'](_0x2a13d9);}function zt(_0x375b25,_0x52110c){const _0x5c5b83=Kt(_0x375b25['attributes']),_0x35d4d2=Kt(_0x52110c);if(!_0x375b25['_isDataLoaded'])return!0x1;for(const _0x31846d of Object['keys'](_0x35d4d2))if(!st(_0x5c5b83[_0x31846d],_0x35d4d2[_0x31846d]))return!0x1;return!0x0;}function Kt(_0x21a912){const _0x316304=Object['assign']({},_0x21a912);return delete _0x316304['skipNestingCheck'],delete _0x316304['tablePasteChainId'],_0x316304;}function Xt(_0x2a0c5c){return _0x2a0c5c['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1ca856(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30f2da,_0x193aef,_0x1d5e9a,_0x4b7fab){super(),this['model']=_0x193aef,this['view']=_0x1d5e9a,this['commentThreadController']=_0x4b7fab,this['_editor']=_0x30f2da,this['_acceptCommand']=_0x30f2da['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30f2da['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b4bf5,_0x1b1a65)=>_0x2b4bf5||_0x1b1a65),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bc64c=>_0x4bc64c&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x23590d=>_0x23590d&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['_pendingAction']=null,_0x1d5e9a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1d5e9a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1d5e9a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1d5e9a,'change:isDirty',()=>{_0x1d5e9a['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 _0xc44b78=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xc44b78);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x7acdaf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f5dd6,_0x261849,_0x189cc0,_0x2dbeda){super(_0x4f5dd6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b849f(_0x4f5dd6,Tt(_0x4f5dd6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x261849['authoredAt']),this['bind']('authoredAt')['to'](_0x261849),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',_0x261849,'authoredAt',this,'descriptionParts',(_0x5cfd18,_0x73c21,_0x1fe534)=>{const _0x5701cf=_0x1fe534['map'](_0x28578b=>ht(_0x28578b['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5cfd18-0x1,_0x261849['author']['name'],_0x73c21?_0x2dbeda['formatDateTime'](_0x73c21):'',new DOMParser()['parseFromString'](_0x5701cf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47db65(),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x424886=>_0x424886['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x261849,this['_localUser']=_0x189cc0,this['_config']=_0x2dbeda,_0x2dbeda['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdc32b2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1fde34}=this['_config'];this['commentsListView']=new _0x1fde34(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',_0x1072a1=>_0x1072a1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8643,_0x2bb3cd)=>_0x4e8643||!!_0x2bb3cd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x208114}=this['_config'],_0x16e4bb=new _0x208114(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c9323=_0x16e4bb['commentInputView'];return _0x16e4bb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c9323,'value',(_0x3e5b93,_0x4c702a,_0x20eaf0)=>!!_0x20eaf0||_0x3e5b93&&!_0x4c702a),_0x4c9323['on']('submit',(_0xb0af9b,_0x78fc3d)=>{this['fire']('addComment',_0x78fc3d),_0x4c9323['editor']['setData']('');}),_0x4c9323['on']('cancel',()=>this['focus']()),_0x4c9323['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16e4bb;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340){super(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x280cf4=>_0x280cf4&&_0x280cf4[0x0]?_0x280cf4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25d415,_0x2164a9)=>{let _0x402f32='';for(const _0x4ac60e of _0x25d415)_0x402f32+='<p>'+ht(_0x4ac60e['content'],_0x4ac60e['color'])+'</p>';return _0x2164a9?_0x402f32:_0x4e34a1(_0x402f32,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1df340['SuggestionView'](_0x416f40,_0x4f2af5,{'formatDateTime':_0x1df340['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 _0x1ea277=this['bindTemplate'],_0x3aa9f8=[this['suggestionView']];return this['commentsListView']&&_0x3aa9f8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3aa9f8['push'](this['commentThreadInputView']),_0x3aa9f8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1ea277['if']('isActive','ck-suggestion-wrapper--active'),_0x1ea277['to']('type',_0x435830=>'ck-suggestion-'+_0x435830),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':_0x1ea277['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3aa9f8};}['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 _0x7acdaf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xdc5ab3,_0x189b9c,_0xa5022){super(_0xdc5ab3),this['_model']=_0x189b9c,this['_config']=_0xa5022,this['set']('description',''),this['bind']('authoredAt')['to'](_0x189b9c),this['acceptButton']=this['_createButton'](Tt(_0xdc5ab3,'Accept\x20suggestion'),_0x4931a8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0xdc5ab3,'Discard\x20suggestion'),_0x39c270,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15cd9a(_0xdc5ab3,_0x189b9c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47db65([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xef31d8=>_0xef31d8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x109e15=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x109e15['innerHTML']=this['description'],this['on']('change:description',(_0x33f5c9,_0x40f3dc,_0x163d1c)=>{_0x109e15['innerHTML']=_0x163d1c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1ab711=this['bindTemplate'],_0x42acae=[{'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':_0x1ab711['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ab711['to']('authoredAt',_0x518725=>this['_config']['formatDateTime'](_0x518725))}]}]},{'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']&&_0x42acae['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':_0x42acae}]};}['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'](_0x1e85bb,_0xf2636d,_0x329057,_0x1b558b,_0xf567a6){const _0x3c08f2=new _0x1f4595(this['locale']);return _0x3c08f2['set']({'label':_0x1e85bb,'icon':_0xf2636d,'tooltip':!0x0,'tooltipPosition':_0xf567a6}),_0x3c08f2['extendTemplate']({'attributes':{'class':_0x329057}}),_0x3c08f2['on']('execute',()=>{this['fire'](_0x1b558b,this['_model']['id']);}),_0x3c08f2;}['_setupKeyboardNavigation'](){const _0x478787=this['element'];this['keystrokes']['listenTo'](_0x478787);for(const _0x54bfcb of this['focusables'])this['focusTracker']['add'](_0x54bfcb['element']),this['keystrokes']['listenTo'](_0x54bfcb['element']);this['keystrokes']['set']('enter',(_0x15886e,_0x2c0c9a)=>{_0x478787===_0x15886e['target']&&(this['focusCycler']['focusFirst'](),_0x2c0c9a());}),this['keystrokes']['set']('esc',(_0x31f599,_0x4723d1)=>{_0x478787!==_0x31f599['target']&&(this['focus'](),_0x4723d1());});}}class TrackChangesUI extends _0x203e6b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x3771e4,_0x300715,_0x18743c,_0x183fc3];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5925b3){super(_0x5925b3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x291382=this['editor']['config'];_0x291382['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x291382['define']('trackChanges.SuggestionView',SuggestionView),_0x291382['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x291382['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d31ef,_0x499973){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44912b,_0x13bc62]of this['_handleControllerBuffer']){const _0x419f27=this['_suggestionToController']['has'](_0x44912b);_0x419f27||_0x13bc62?_0x419f27&&_0x13bc62&&this['_destroyController'](_0x44912b):this['_initializeController'](_0x44912b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x183fc3)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d31ef,_0x499973);}['init'](){const _0xb956fe=this['editor'],_0x45068c=_0xb956fe['plugins']['get'](TrackChangesEditing),_0x403349=_0xb956fe['plugins']['get'](_0x18743c),_0xe8db52=_0xb956fe['plugins']['get'](_0x183fc3),_0x4f9e29=_0xb956fe['plugins']['get'](_0x300715);this['_addUIComponentsToFactory'](),_0xe8db52['addSourceCollector'](()=>{const _0x39d423=[];for(const [_0x2c67d7,_0x452144]of Array['from'](this['_suggestionToController'])){const _0x5c5fc=_0x2c67d7['getAllAdjacentSuggestions'](),_0x454758=[];for(const _0x16097d of _0x5c5fc){if(!_0x16097d['isInContent'])continue;if(_0x16097d['isMultiRange']){_0x454758['push'](..._0x16097d['getRanges']());continue;}const _0x291177=_0x16097d['getFirstRange']();if(_0x454758['length']>0x0){const _0x1d2f50=_0x454758[0x0]['getJoined'](_0x291177);if(_0x1d2f50){_0x454758[0x0]=_0x1d2f50;continue;}}_0x454758['push'](_0x291177);}_0x39d423['push']([_0x452144['view'],_0x454758]);}return _0x39d423;}),this['listenTo'](_0x45068c,'suggestionLoaded',(_0x5ed4dc,_0x46dbd0)=>{this['listenTo'](_0x46dbd0,'change:previous',(_0x106328,_0x427744,_0x5acd4b,_0xacb76f)=>{_0x46dbd0['isInContent']&&(null==_0x5acd4b?(this['_updateController'](_0xacb76f['head']),this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1)):(this['_updateController'](_0x5acd4b['head']),null==_0xacb76f&&this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x0)));}),null!==_0x46dbd0['previous']?this['_updateController'](_0x46dbd0['head']):this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1);}),this['listenTo'](_0x45068c,'suggestionUnloaded',(_0x479177,_0xc43c9d,_0x39becb)=>{this['stopListening'](_0xc43c9d,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc43c9d),this['_suggestionToController']['has'](_0xc43c9d)&&this['_destroyController'](_0xc43c9d),_0x39becb&&this['_updateController'](_0x39becb['head']);}),this['listenTo'](_0x45068c,'suggestionChanged',(_0x5044ec,_0x2ef702)=>{this['_updateController'](_0x2ef702);}),this['listenTo'](_0x403349,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f9e29,'addComment',(_0x273957,{threadId:_0x34c82b,isFromAdapter:_0x72e9af})=>{if(_0x72e9af||!_0x45068c['hasSuggestion'](_0x34c82b))return;const _0x2f72cc=_0x45068c['getSuggestion'](_0x34c82b);this['_suggestionToController']['get'](_0x2f72cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36e6e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23581a;for(const _0x34a36f in _0x36e6e7){const _0xf7ecb8=_0x34a36f,_0x7b637b=_0x36e6e7[_0xf7ecb8];if('trackChangesLicenseKeyValid'==_0x7b637b||'trackChangesLicenseKeyInvalid'==_0x7b637b||'trackChangesLicenseKeyExpired'==_0x7b637b||'trackChangesLicenseKeyDomainLimit'==_0x7b637b||'trackChangesLicenseKeyNotAllowed'==_0x7b637b||'trackChangesLicenseKeyEvaluationLimit'==_0x7b637b||'trackChangesLicenseKeyUsageLimit'==_0x7b637b){delete _0x36e6e7[_0xf7ecb8],_0x23581a=_0x7b637b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23581a&&_0x36e6e7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23581a&&_0x36e6e7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23581a&&_0x36e6e7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x40a874){const _0x2365cb=this['_suggestionToController']['get'](_0x40a874);if(!_0x2365cb)return null;return this['editor']['plugins']['get'](_0x18743c)['getByInnerView'](_0x2365cb['view'])||null;}['getSuggestionForAnnotation'](_0x3d038d){const _0x56df33=this['_viewToController']['get'](_0x3d038d['innerView']);return _0x56df33?_0x56df33['model']:null;}['_refreshActiveMarkers'](){const _0x548535=this['editor']['plugins']['get'](_0x18743c),_0x37f2a8=this['editor']['plugins']['get'](TrackChangesEditing),_0x50fd67=Array['from'](_0x548535['activeAnnotations'],_0x38b966=>_0x38b966['innerView'])['filter'](_0x44cb0e=>this['_viewToController']['has'](_0x44cb0e)),_0x445a35=[];for(const _0x394b3e of _0x50fd67){const _0x31480c=this['_viewToController']['get'](_0x394b3e)['model']['getAllAdjacentSuggestions']();_0x445a35['push'](..._0x31480c['reduce']((_0x32bb29,_0x10ad66)=>[..._0x32bb29,..._0x10ad66['getMarkerNames']()],[]));}_0x37f2a8['activeMarkers']=_0x445a35;}['_addUIComponentsToFactory'](){const _0x1080c0=this['editor'],_0x5ece4f=_0x1080c0['locale'],_0x4841a3=Tt(_0x5ece4f,'Track\x20changes'),_0x21b64e=new _0xa0bdb5([{'type':'switchbutton','model':new _0x3d4a24({'withText':!0x0,'isToggleable':!0x0,'label':_0x4841a3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1080c0['plugins']['has']('TrackChangesPreview')&&_0x21b64e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3da9db of _0x21b64e)if(Yt(_0x3da9db)){const _0x3e4aa1=_0x1080c0['commands']['get'](_0x3da9db['model']['commandName']);_0x3da9db['model']['bind']('isOn','isEnabled')['to'](_0x3e4aa1,'value','isEnabled');}_0x1080c0['ui']['componentFactory']['add']('trackChanges',_0x12bd75=>this['_createToolbarButton'](_0x12bd75,_0x21b64e,_0x4841a3)),_0x1080c0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c72d4=>this['_createMenuBarMenu'](_0x4c72d4,_0x21b64e,_0x4841a3));}['_createToolbarButton'](_0x498077,_0x17ba74,_0x4d51c1){const _0x2650fa=_0x56fb5d(_0x498077,_0x1fc7da),_0x44807b=this['editor']['commands']['get']('trackChanges');_0x2650fa['buttonView']['set']({'tooltip':_0x4d51c1,'label':_0x4d51c1,'icon':_0xefeca6}),_0x2650fa['buttonView']['bind']('isOn')['to'](_0x44807b,'value'),_0x2650fa['buttonView']['on']('execute',()=>{_0x44807b['execute'](),this['editor']['editing']['view']['focus']();}),_0x8a0123(_0x2650fa,_0x17ba74,{'role':'menu'});const _0x1622dc=[];for(const _0x4d9a77 of _0x17ba74)Yt(_0x4d9a77)&&_0x1622dc['push'](this['editor']['commands']['get'](_0x4d9a77['model']['commandName']));const _0x519ffc=_0x2650fa['buttonView'];return _0x519ffc['actionView']['unbind']('isEnabled'),_0x519ffc['arrowView']['unbind']('isEnabled'),_0x519ffc['actionView']['bind']('isEnabled')['to'](_0x44807b,'isEnabled'),_0x519ffc['arrowView']['bind']('isEnabled')['toMany'](_0x1622dc,'isEnabled',(..._0x51d805)=>_0x51d805['some'](_0x4ae65d=>_0x4ae65d)),_0x2650fa['on']('execute',_0x8a1d42=>{this['editor']['execute'](_0x8a1d42['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2650fa;}['_createMenuBarMenu'](_0x462426,_0x3a7cb2,_0x20d0c3){const _0xcdb5f2=new _0x10e4a3(_0x462426),_0x25c82e=this['editor']['commands']['get']('trackChanges');_0xcdb5f2['buttonView']['set']({'label':_0x20d0c3,'icon':_0xefeca6});const _0x4a67a8=new _0x481bf4(_0x462426);for(const _0x8b2044 of _0x3a7cb2){if('separator'==_0x8b2044['type']){_0x4a67a8['items']['add'](new _0x1e805e(_0x462426));continue;}const _0x47aa07=new _0x18a5b5(_0x462426,_0xcdb5f2),_0x5eefa7=new _0x47e243(_0x462426),_0x3eb008=_0x8b2044['model'];_0x5eefa7['bind'](...Object['keys'](_0x3eb008))['to'](_0x3eb008),_0x5eefa7['delegate']('execute')['to'](_0xcdb5f2),_0x5eefa7['on']('execute',()=>{this['editor']['execute'](_0x3eb008['commandName']),this['editor']['editing']['view']['focus']();}),_0x47aa07['children']['add'](_0x5eefa7),_0x4a67a8['items']['add'](_0x47aa07);}return _0xcdb5f2['bind']('isEnabled')['to'](_0x25c82e,'isEnabled'),_0xcdb5f2['panelView']['children']['add'](_0x4a67a8),_0xcdb5f2;}['_initializeController'](_0x57589d){const _0x774832=this['editor'],_0x39f792=_0x774832['config'],_0x53ddf3=_0x774832['plugins']['get'](_0x18743c),_0x4c2e3c=_0x774832['plugins']['get'](_0x300715),_0xa1b311=_0x774832['plugins']['get'](_0x183fc3),_0x27cdb0=_0x774832['plugins']['get'](_0x3771e4)['me'],_0x5a21e9=_0x39f792['get']('trackChanges')['SuggestionThreadView'],_0x3fa233=_0x39f792['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xc758a8,CommentThreadInputView:_0xa36bb1}=_0x774832['plugins']['get']('CommentsUI');let _0x2e14c7,_0x255c25,_0x44e937;this['_annotationViews']['has'](_0x57589d['id'])?(_0x255c25=this['_annotationViews']['get'](_0x57589d['id']),_0x2e14c7=_0x255c25['mainView']):(_0x2e14c7=new _0x5a21e9(_0x774832['locale'],_0x57589d,_0x27cdb0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39f792['get']('comments.editorConfig'),'licenseKey':_0x39f792['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39f792['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39f792['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39f792['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59dff4(_0x39f792['get']('locale'),_0x774832['locale']),'CommentView':_0x39f792['get']('comments')['CommentView'],'CommentsListView':_0xc758a8,'CommentThreadInputView':_0xa36bb1,'SuggestionView':_0x3fa233}),_0x2e14c7['suggestionView']['acceptButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x2e14c7['suggestionView']['discardButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x255c25=_0x53ddf3['createAnnotationView'](this['editor']['locale'],_0x2e14c7),_0x255c25['bind']('isDirty')['to'](_0x2e14c7,'isDirty'),_0x255c25['bind']('length')['to'](_0x2e14c7),_0x255c25['bind']('type')['to'](_0x2e14c7,'type',_0x2a2c4a=>'suggestion-'+_0x2a2c4a),_0x2e14c7['on']('escape',()=>{_0x44e937['fire']('escape');}),this['_annotationViews']['set'](_0x57589d['id'],_0x255c25));const _0x192ad2=_0x4c2e3c['createCommentThreadController'](_0x57589d['commentThread'],_0x2e14c7),_0x51cf46=new SuggestionController(_0x774832,_0x57589d,_0x2e14c7,_0x192ad2),_0x2c1e61=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x53c484=>_0x53c484['isInContent']);_0x2e14c7['descriptionParts']=_0x774832['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x2c1e61),this['_suggestionToController']['set'](_0x57589d,_0x51cf46),this['_viewToController']['set'](_0x2e14c7,_0x51cf46);const _0x394b57=()=>{const _0x769a2b=[],_0x4897dc=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x3a0d18=>_0x3a0d18['isInContent']);for(const _0x384273 of _0x4897dc)_0x769a2b['push'](..._0x384273['getMarkers']());return _0x521940(_0x774832['editing'],_0x769a2b);};_0x44e937=_0x53ddf3['createAnnotation']({'view':_0x255c25,'target':_0x394b57,'type':()=>'suggestion-'+_0x51cf46['view']['type'],'isVisible':!!_0x394b57()}),_0x4c2e3c['_bindAnnotationToEditors'](_0x2e14c7,_0x44e937),_0x53ddf3['add'](_0x44e937),_0xa1b311['registerAnnotation'](_0x44e937);}['_destroyController'](_0x41c34d){const _0x2aba02=this['editor']['plugins']['get'](_0x300715),_0x13d280=this['editor']['plugins']['get'](_0x18743c),_0x4ad8c8=this['_suggestionToController']['get'](_0x41c34d),_0x3e2b38=_0x4ad8c8['view'],_0x356470=_0x13d280['getByInnerView'](_0x3e2b38);_0x2aba02['_unbindEditors'](_0x3e2b38),_0x356470&&_0x13d280['remove'](_0x356470),this['_suggestionToController']['delete'](_0x41c34d),this['_viewToController']['delete'](_0x3e2b38),_0x4ad8c8['destroy']();}['_updateController'](_0x1f4bea){if(!_0x1f4bea['isInContent']||!this['_suggestionToController']['has'](_0x1f4bea))return;const _0x4363aa=this['editor']['plugins']['get'](TrackChangesEditing),_0x4ef1db=this['_suggestionToController']['get'](_0x1f4bea),_0x17fb90=_0x1f4bea['getAllAdjacentSuggestions']();_0x4ef1db['view']['descriptionParts']=_0x4363aa['descriptionFactory']['getDescriptions'](_0x17fb90);}['destroy'](){for(const _0x3cc798 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3cc798);for(const _0x3fa028 of this['_annotationViews']['values']())_0x3fa028['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x386716){return'model'in _0x386716;}class TrackChanges extends _0x203e6b{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x142b0b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x409d4b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x409d4b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x3a7484){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x3a7484);}['getSuggestions']({skipNotAttached:_0x5c7b7e=!0x1,toJSON:_0x4b55bd=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x5c7b7e,'toJSON':_0x4b55bd});}['getSuggestion'](_0xb54f4b){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0xb54f4b);}}const qt=['Pagination'];class TrackChangesData extends _0x203e6b{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21d92c=this['editor'];if(_0x21d92c['config']['define']('trackChangesData.editorCreator',_0x4ada36=>{const _0x3f6756=_0x21d92c['model']['document']['getRootNames']()['reduce']((_0x16a77b,_0x2f9ce0)=>(_0x16a77b[_0x2f9ce0]='',_0x16a77b),{});return _0x21d92c['constructor']['create'](_0x3f6756,_0x4ada36);}),'function'!=typeof _0x21d92c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2618c5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5849bd){return Zt(this['editor'],!0x0,_0x5849bd);}['getDataWithDiscardedSuggestions'](_0x241426){return Zt(this['editor'],!0x1,_0x241426);}}class TrackChangesDataGetter extends _0x203e6b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x143900){function _0x1da775(_0xc7622f){return _0xc7622f['map'](_0x3833f8=>String['fromCharCode'](_0x3833f8))['join']('');}super(_0x143900),this['result']='end',_0x143900[_0x1da775([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1da775([0x76,0x69,0x65,0x77])][_0x1da775([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1da775([0x61,0x75,0x74,0x6f]),_0x143900[_0x1da775([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1da775([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1da775([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1da775([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1da775([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(_0x2b70f5){return void 0x0!==_0x2b70f5['getRootsAttributes'];}async function Zt(_0x294e68,_0x3bee75,_0xa57a9e){const _0x585221=_0x49f7c3(_0x294e68,qt);if(_0x585221['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x294e68)){_0x585221['roots']=Object['create'](null);for(const _0x25e840 of _0x294e68['model']['document']['getRootNames']())_0x585221['roots'][_0x25e840]={'modelAttributes':_0x294e68['getRootAttributes'](_0x25e840)};}const _0x3956f3=document['createDocumentFragment'](),_0x3d44fb=_0x294e68['config']['get']('trackChangesData')['editorCreator'],_0x45133a=await _0x3d44fb(_0x585221,()=>function(_0x3355a8){const _0x457a1a=document['createElement']('div');return _0x3355a8['appendChild'](_0x457a1a),_0x457a1a;}(_0x3956f3));!function(_0x42a654,_0x8b1e8d){const _0x81ae41=_0x42a654['model']['document']['getRootNames']()['reduce']((_0x346419,_0x28034b)=>(_0x346419[_0x28034b]=_0x42a654['data']['get']({'rootName':_0x28034b}),_0x346419),{}),_0xd8759a=_0x42a654['plugins']['get']('Users')['users']['map'](_0x3bcb18=>({'id':_0x3bcb18['id'],'name':_0x3bcb18['name']})),_0x2af500=_0x42a654['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x181ceb=_0x42a654['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ee071=_0x8b1e8d['plugins']['get']('Users'),_0x18433d=_0x8b1e8d['plugins']['get']('TrackChangesEditing'),_0x52ffee=_0x8b1e8d['plugins']['get']('CommentsRepository');for(const _0x245c2a of _0x52ffee['getCommentThreads']())_0x245c2a['remove']();for(const _0x45acbd of _0xd8759a)_0x3ee071['getUser'](_0x45acbd['id'])||_0x3ee071['addUser'](_0x45acbd);_0x3ee071['me']||_0x3ee071['useAnonymousUser']();for(const _0x265389 of _0x181ceb)_0x52ffee['addCommentThread'](_0x265389);for(const _0x1df341 of _0x2af500)_0x18433d['addSuggestionData'](_0x1df341);_0x8b1e8d['data']['set'](_0x81ae41);}(_0x294e68,_0x45133a),_0x45133a['execute'](_0x3bee75?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c5d7a=Qt(_0x45133a)?_0x45133a['getFullData'](_0xa57a9e):_0x45133a['data']['get'](_0xa57a9e);return await _0x45133a['destroy'](),_0x2c5d7a;}class TrackChangesPreviewView extends _0x7acdaf{['options'];constructor(_0x43fc29,_0x11b841){super(_0x43fc29),this['options']=_0x11b841,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'](_0x2be319,_0x5e9756){if(!this['element'])return;const _0x413261=[];for(const [_0x21906f,_0x36dbb8]of _0x2be319){const _0x25ab2f=document['createElement']('div');_0x25ab2f['setAttribute']('data-ck-root-name',_0x21906f),_0x25ab2f['className']=_0x36dbb8['classes']+'\x20ck-track-changes-preview__root-container',_0x25ab2f['innerHTML']=_0x36dbb8['content'],_0x413261['push'](_0x25ab2f);}_0x5e9756(this['element'],_0x413261),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x2a8e78{constructor(_0x16e428){super(_0x16e428),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x536786=this['editor'],_0x382e65=_0x536786['locale'],_0x347a5b=_0x536786['plugins']['get']('Dialog');let _0x39dd39;const _0x1a4647=function(_0x1ef8be){const _0x12f58b={};if('editables'in _0x1ef8be['ui']['view']){for(const [_0x5b1a3b,_0x5f0e52]of Object['entries'](_0x1ef8be['ui']['view']['editables']))_0x12f58b[_0x5b1a3b]=_0x5f0e52['element'];}else _0x12f58b[_0x1ef8be['model']['document']['getRootNames']()[0x0]]=_0x1ef8be['ui']['view']['editable']['element'];return _0x12f58b;}(_0x536786),_0x26a7d9=function(_0x3bd368){let _0x268609=0x0;for(const _0x1d3113 of Object['values'](_0x3bd368))_0x268609=Math['max'](_0x268609,_0x1d3113['getBoundingClientRect']()['width']);let _0x5a18ba=0x0;for(const _0x402bc9 of Object['values'](_0x3bd368))_0x5a18ba+=_0x402bc9['getBoundingClientRect']()['height'];const _0x4bd44c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4fa4f5=Math['min'](_0x5a18ba,_0x4bd44c);return{'width':_0x268609,'height':_0x4fa4f5};}(_0x1a4647);_0x347a5b['show']({'id':'finalContentPreview','title':Tt(_0x382e65,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x382e65,{'dialogRects':_0x26a7d9}),'onHide':()=>{_0x39dd39['detachFromDom']();},'onShow':()=>{_0x536786['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56a40a=>{const _0x25f5f7=this['_standarizeRootsData'](_0x56a40a,_0x536786,_0x1a4647);_0x347a5b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x25f5f7,_0x536786['config']['get']('trackChanges.preview.renderFunction'));}),_0x39dd39=new _0x234ad1(_0x382e65,[_0x347a5b['view']]),_0x39dd39['attachToDom'](),_0x39dd39['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x536786['once']('destroy',()=>{_0x39dd39['detachFromDom']();});const _0x2e1596=_0x347a5b['view']['headerView']['class'];_0x347a5b['view']['headerView']['class']=_0x2e1596?_0x2e1596+'\x20ck-reset_all':'ck-reset_all',_0x347a5b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x347a5b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x14f1f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x34a52f=_0x14f1f2['previewMode'],_0x191ea7={};if('$labels'===_0x34a52f){for(const _0x2808e7 of _0x14f1f2['getMergeFieldsIds']())_0x191ea7[_0x2808e7]=_0x14f1f2['getLabel'](_0x2808e7)||_0x2808e7;}else{const _0x22582f='$defaultValues'===_0x34a52f?_0x14f1f2['getDefaultValues']():_0x14f1f2['getDataSetValues'](_0x34a52f,!0x0);for(const _0x5ea9f0 of Object['entries'](_0x22582f)){const [_0x8069d4,_0x233f08]=_0x5ea9f0;_0x191ea7[_0x8069d4]=null!==_0x233f08?_0x233f08:_0x14f1f2['getLabel'](_0x8069d4)||_0x8069d4;}}return{'mergeFieldsData':_0x191ea7};}['_standarizeRootsData'](_0x12e54b,_0x5801e6,_0x2c8a14){let _0x25ff1a;if('string'==typeof _0x12e54b){const _0x3eff0a=_0x5801e6['model']['document']['getRootNames']()[0x0];_0x25ff1a={[_0x3eff0a]:_0x12e54b};}else _0x25ff1a=_0x12e54b;const _0x5803e4=this['_fixMediaEmbeds'](_0x25ff1a,_0x5801e6),_0x37145b=function(_0xdc54b8,_0x2d1620){for(const [_0x105cfe,_0x5c7ce1]of _0xdc54b8)_0x5c7ce1['classes']=_0x2d1620[_0x105cfe]['classList']['value']['replace']('ck-focused','');return _0xdc54b8;}(this['_sortRoots'](_0x5801e6)['reduce']((_0x1f260e,_0x1a27b5)=>(_0x1f260e['push']([_0x1a27b5,{'content':_0x5803e4[_0x1a27b5],'classes':''}]),_0x1f260e),[]),_0x2c8a14);return _0x37145b;}['_fixMediaEmbeds'](_0x58608a,_0x4135a6){if(!_0x4135a6['plugins']['has']('MediaEmbedEditing'))return _0x58608a;const _0x487746=_0x4135a6['plugins']['get']('MediaEmbedEditing');for(const [_0x4a439d,_0x47a6a1]of Object['entries'](_0x58608a)){const _0x43e94e=document['createElement']('div');_0x43e94e['innerHTML']=_0x47a6a1,(_0x43e94e['querySelectorAll']('figure.media')['forEach'](_0x1ea322=>{const _0x1f247f=_0x1ea322['querySelector']('oembed');if(_0x1f247f){const _0x455a63=_0x1f247f['getAttribute']('url');if(_0x455a63){const _0x5554b4=_0x487746['registry']['getMediaViewElement'](new et(_0x4135a6['editing']['view']['document']),_0x455a63,{'elementName':'','renderForEditingView':!0x0}),_0x392055=document['createElement']('div');_0x392055['classList']['add']('ck-media__wrapper'),_0x5554b4['render'](_0x392055,_0x4135a6['editing']['view']['domConverter']),_0x1f247f['replaceWith'](_0x392055);}}}),_0x58608a[_0x4a439d]=_0x43e94e['innerHTML']);}return _0x58608a;}['_sortRoots'](_0xe09da9){if(!function(_0x479b1b){return void 0x0!==_0x479b1b['getRootsAttributes'];}(_0xe09da9))return _0xe09da9['model']['document']['getRootNames']();const _0x25c8f6=[],_0x28b3c8=new Map();for(const _0x52876e of _0xe09da9['model']['document']['getRootNames']()){const _0x15c54d=_0xe09da9['editing']['view']['getDomRoot'](_0x52876e)['getClientRects']()['item'](0x0);_0x25c8f6['push'](_0x52876e),_0x28b3c8['set'](_0x52876e,_0x15c54d);}return _0x25c8f6['sort']((_0x280669,_0x29f1f7)=>{const _0x1f1bb7=_0x28b3c8['get'](_0x280669),_0x663c9a=_0x28b3c8['get'](_0x29f1f7);return _0x1f1bb7['y']-_0x663c9a['y']||_0x1f1bb7['x']-_0x663c9a['x'];}),_0x25c8f6;}}class TrackChangesPreview extends _0x203e6b{static get['requires'](){return[TrackChangesData,_0x6c10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59feb6){super(_0x59feb6),_0x59feb6['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x59feb6['config']['define']('trackChanges.preview.renderFunction',(_0x53f7e2,_0x1a7c2e)=>{for(const _0x2f7512 of _0x1a7c2e)_0x53f7e2['appendChild'](_0x2f7512);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
|