@ckeditor/ckeditor5-track-changes 48.4.0 → 48.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/suggestion.d.ts +2 -2
- package/dist/trackchangesediting.d.ts +2 -2
- 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
|
-
_0x561130();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x3fc82d,_0x4c1ad4){super(),this['id']=_0x4c1ad4['id'],this['type']=_0x4c1ad4['type'],this['subType']=_0x4c1ad4['subType']||null,this['author']=_0x4c1ad4['author'],this['creator']=_0x4c1ad4['creator']||_0x4c1ad4['author'],this['data']=null,this['_originalSuggestionId']=_0x4c1ad4['originalSuggestionId']||null,this['_model']=_0x3fc82d,this['_onAccept']=_0x4c1ad4['onAccept'],this['_onDiscard']=_0x4c1ad4['onDiscard'],this['_onAttributesChange']=_0x4c1ad4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4c1ad4['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x47de14=this;for(;_0x47de14['previous'];)_0x47de14=_0x47de14['previous'];return _0x47de14;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x474e39){this['_markerNames']['add'](_0x474e39);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x598445=>this['_model']['markers']['get'](_0x598445))['filter'](_0x2056e9=>_0x2056e9);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f29ab=>{for(const _0x8703fb of this['getMarkers']())_0x5f29ab['removeMarker'](_0x8703fb);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c67ac){this['_model']['change'](_0x54e9e8=>{_0x54e9e8['removeMarker'](_0x1c67ac);}),this['_markerNames']['delete'](_0x1c67ac);}['addRange'](_0xdc8326){const _0x49e448='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x49e448),this['_model']['change'](_0x2b9950=>{_0x2b9950['addMarker'](_0x49e448,{'range':_0xdc8326,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2a8dc1){for(const _0x4a70ef of this['getRanges']())if(_0x4a70ef['isIntersecting'](_0x2a8dc1))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0xa6d19f=>_0xa6d19f['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x1df17d,_0xf89fcc)=>[..._0x1df17d,..._0xf89fcc['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x59a311=this['getRanges']();if(0x1!=_0x59a311['length'])return null;const _0x1e795=_0x59a311[0x0],_0x4eaa62=_0x1e795['start']['nodeAfter'],_0x338699=_0x1e795['end']['nodeBefore'];return _0x4eaa62 instanceof st?_0x4eaa62!=_0x338699?null:_0x4eaa62: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 _0x4230e2=[];let _0x52d6f9=this['head'];for(;_0x52d6f9;)_0x4230e2['push'](_0x52d6f9),_0x52d6f9=_0x52d6f9['next'];return _0x4230e2;}setAttribute(_0x47d02a,_0x5dff86){const _0x16a757=ct(this['attributes']);dt(_0x16a757,_0x47d02a,_0x5dff86),lt(_0x16a757,this['attributes'])||(this['attributes']=_0x16a757,this['_onAttributesChange'](_0x16a757));}removeAttribute(_0x178abf){const _0x46ec5a=ct(this['attributes']);ht(_0x46ec5a,_0x178abf),lt(_0x46ec5a,this['attributes'])||(this['attributes']=_0x46ec5a,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 _0x51282a()['substr'](0x1,0x5);}};function Ot(_0x2a6d28,_0x283dcf,_0x535e59){const _0x464cb3=_0x2a6d28['t'],t=_0x2a6d28['t'];switch(_0x283dcf){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',_0x535e59);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x535e59);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x535e59);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x535e59);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x535e59);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',_0x535e59);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x535e59);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',_0x535e59);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x535e59);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x535e59);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x535e59);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x535e59);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x535e59);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x535e59);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x535e59);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x535e59);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x535e59);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x535e59);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x535e59);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x535e59);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x535e59);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x535e59);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x535e59);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x535e59);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x535e59);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'},_0x535e59);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x535e59);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x535e59);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x535e59);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x535e59);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x535e59);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x535e59);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x535e59);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'},_0x535e59);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x535e59);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x535e59);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x535e59);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x535e59);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x535e59);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'},_0x535e59);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x535e59);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'},_0x535e59);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'},_0x535e59);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x535e59);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'},_0x535e59);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x535e59);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'},_0x535e59);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x535e59);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x535e59);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x535e59);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x535e59);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x535e59);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'},_0x535e59);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x535e59);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x464cb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x535e59);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x464cb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x535e59);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x535e59);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'},_0x535e59);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'},_0x535e59);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'},_0x535e59);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x283dcf;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x3db952,_0x5ba327){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3db952,this['_locale']=_0x5ba327;}getDescriptions(_0x4b056a){const _0x275f69=[],_0x79907e=new Set(),_0x4d3484=new Set();for(let _0x207e23=0x0;_0x207e23<_0x4b056a['length'];_0x207e23++){const _0xedc752=_0x4b056a[_0x207e23];if(!_0xedc752['isInContent'])continue;const _0x1780bf=this['_handleCustomCallbackDescription'](_0xedc752);if(_0x1780bf){if(null!=_0xedc752['subType']){if(_0x79907e['has'](_0xedc752['subType']))continue;_0x79907e['add'](_0xedc752['subType']);}_0x275f69['push'](_0x1780bf);}else{if('attribute'==_0xedc752['type']){const _0x49e063=_0xedc752['data']['key'];if(_0x4d3484['has'](_0x49e063))continue;_0x4d3484['add'](_0xedc752['data']['key']),'$elementName'==_0x49e063?this['_handleRenameSuggestionDescription'](_0x275f69,_0xedc752):this['_handleAttributeSuggestionDescription'](_0x275f69,_0xedc752);continue;}'insertion'!=_0xedc752['type']&&'deletion'!=_0xedc752['type']||this['_handleInsertRemoveSuggestionDescription'](_0x275f69,_0xedc752,_0x4b056a[_0x207e23+0x1]);}}return this['_resolveDescriptionItems'](_0x275f69);}registerDescriptionCallback(_0x4e727f){this['_customCallbacks']['push'](_0x4e727f);}registerElementLabel(_0x3ef8fb,_0x33c44e,_0x2ac237=_0x15636f['normal']){'function'==typeof _0x3ef8fb?_0x4972bf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ef8fb,'label':_0x33c44e,'priority':_0x2ac237}):this['_itemLabels']['set'](_0x3ef8fb,_0x33c44e);}registerAttributeLabel(_0x54a77e,_0xc2bb97){this['_attributeLabels']['set'](_0x54a77e,_0xc2bb97);}getItemLabel(_0x22e069,_0x35742a=0x1){let _0x49ddf9;for(const _0x489cc7 of this['_itemLabelsCallbacks'])if(_0x489cc7['matchingCallback'](_0x22e069)){_0x49ddf9=_0x489cc7['label'];break;}return _0x49ddf9||(_0x49ddf9=this['_itemLabels']['get'](_0x22e069['name'])),_0x49ddf9?_0x49ddf9(_0x35742a):0x1!==_0x35742a?_0x35742a+'\x20'+_0x22e069['name']+'s':''+_0x22e069['name'];}_addDescriptionItems(_0x26fee7,_0x56a725){const _0x17dcb1=_0x56a725['getFirstRange']()['getWalker'](),_0x3f98d9='insertion'==_0x56a725['type']?'add':'remove';for(const _0x54f1dc of _0x17dcb1){const _0x43442c=_0x54f1dc['item'],_0x5cfd0b=_0x26fee7[_0x26fee7['length']-0x1];if(_0x43442c['is']('$textProxy'))_0x5cfd0b&&_0x5cfd0b['type']['indexOf']('Container')>-0x1&&_0x26fee7['pop'](),_0x5cfd0b&&'text'==_0x5cfd0b['type']?_0x5cfd0b[_0x3f98d9]+=_0x43442c['data']:_0x26fee7['push']({'type':'text','add':'add'==_0x3f98d9?_0x43442c['data']:'','remove':'remove'==_0x3f98d9?_0x43442c['data']:''});else{if(this['_schema']['isObject'](_0x43442c)){const _0x1d707c=_0x43442c;if(_0x5cfd0b&&_0x5cfd0b['type']['indexOf']('Container')>-0x1&&_0x26fee7['pop'](),'elementEnd'==_0x54f1dc['type'])continue;_0x5cfd0b&&_0x5cfd0b['type']==_0x3f98d9+'Object'&&_0x5cfd0b['element']['name']==_0x1d707c['name']?_0x5cfd0b['quantity']++:_0x26fee7['push']({'type':_0x3f98d9+'Object','element':_0x1d707c,'quantity':0x1}),_0x17dcb1['skip'](_0x3887dc=>!('elementEnd'==_0x3887dc['type']&&_0x3887dc['item']==_0x43442c));}else{if(this['_schema']['checkChild'](_0x43442c,'$text')||_0x43442c['is']('element','softBreak')){const _0x2c943d=_0x43442c;if('add'==_0x3f98d9&&'elementStart'==_0x54f1dc['type']||'remove'==_0x3f98d9&&'elementEnd'==_0x54f1dc['type'])continue;if(_0x5cfd0b&&-0x1==_0x5cfd0b['type']['indexOf']('Container')){'text'==_0x5cfd0b['type']&&(_0x5cfd0b[_0x3f98d9]+='\x0a');continue;}let _0x572230;if(_0x572230='add'==_0x3f98d9?_0x2c943d['nextSibling']&&!this['_schema']['isObject'](_0x2c943d['nextSibling'])?_0x2c943d['nextSibling']:null:_0x2c943d['previousSibling']&&!this['_schema']['isObject'](_0x2c943d['previousSibling'])?_0x2c943d['previousSibling']:null,_0x2c943d['isEmpty']||_0x572230&&_0x572230['isEmpty']){const _0x1e2b8c=_0x572230&&_0x572230['isEmpty']?_0x572230:_0x2c943d;_0x5cfd0b&&_0x5cfd0b['type']==_0x3f98d9+'EmptyContainer'&&_0x5cfd0b['element']['name']==_0x1e2b8c['name']?_0x5cfd0b['quantity']++:_0x26fee7['push']({'type':_0x3f98d9+'EmptyContainer','element':_0x1e2b8c,'quantity':0x1});}else _0x26fee7['push']({'type':_0x3f98d9+'Container','element':_0x2c943d});}}}}}_resolveDescriptionItems(_0x5f2cda){const _0x2d166d=this['_locale'],_0x3681b6=[],_0x145d0d=[],_0x4f39c2=[];for(const _0x4251ca of _0x5f2cda)switch(_0x4251ca['type']){case'text':if(_0x4251ca['add']=_0x4251ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4251ca['remove']=_0x4251ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4251ca['add']&&''!=_0x4251ca['remove']){_0x3681b6['push']({'type':'replace','content':Ot(_0x2d166d,'REPLACE_TEXT',['\x22'+_0x4251ca['remove']+'\x22','\x22'+_0x4251ca['add']+'\x22'])});continue;}if(null!=_0x4251ca['add']['match'](/^ +$/)){_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0',Ot(_0x2d166d,'ELEMENT_SPACE',_0x4251ca['add']['length']))});continue;}if(null!=_0x4251ca['remove']['match'](/^ +$/)){_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0',Ot(_0x2d166d,'ELEMENT_SPACE',_0x4251ca['remove']['length']))});continue;}if(''!=_0x4251ca['add']){_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0','\x22'+_0x4251ca['add']+'\x22')});continue;}_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0','\x22'+_0x4251ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Insert:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Remove:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'addContainer':_0x3681b6['push']({'type':'insertion','content':Ot(_0x2d166d,'*Split:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'removeContainer':_0x3681b6['push']({'type':'deletion','content':Ot(_0x2d166d,'*Merge:*\x20%0',this['getItemLabel'](_0x4251ca['element'],_0x4251ca['quantity']))});continue;case'addFormat':_0x145d0d['push'](_0x4251ca['key']);continue;case'removeFormat':_0x4f39c2['push'](_0x4251ca['key']);continue;default:_0x3681b6['push'](_0x4251ca);}if(_0x145d0d['length']){const _0x12d347=_0x145d0d['map'](_0x1f2ad2=>this['_attributeLabels']['has'](_0x1f2ad2)?this['_attributeLabels']['get'](_0x1f2ad2):_0x1f2ad2)['join'](',\x20');_0x3681b6['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x12d347)});}if(_0x4f39c2['length']){const _0xc2e55=_0x4f39c2['map'](_0x3da3be=>this['_attributeLabels']['has'](_0x3da3be)?this['_attributeLabels']['get'](_0x3da3be):_0x3da3be)['join'](',\x20');_0x3681b6['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0xc2e55)});}return _0x3681b6;}_handleCustomCallbackDescription(_0x2e99cf){for(const _0x4f68f7 of this['_customCallbacks']){const _0x3a451b=_0x4f68f7(_0x2e99cf);if(_0x3a451b&&'type'in _0x3a451b)return _0x3a451b;}}_handleAttributeSuggestionDescription(_0x4d4eaa,_0x153db5){const _0x5f4b52=_0x153db5['data'],_0x3ebe11=void 0x0===_0x5f4b52['newValue']?'removeFormat':'addFormat';_0x4d4eaa['push']({'type':_0x3ebe11,'key':_0x5f4b52['key']});}_handleRenameSuggestionDescription(_0x24a968,_0x44d700){_0x24a968['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44d700['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x418de8,_0x183b6e,_0x2f7e90){if(this['_addDescriptionItems'](_0x418de8,_0x183b6e),_0x2f7e90&&_0x2f7e90['getFirstRange']()&&!_0x183b6e['getFirstRange']()['end']['isEqual'](_0x2f7e90['getFirstRange']()['start'])){const _0x4d6629=_0x418de8[_0x418de8['length']-0x1],_0x25d6af='insertion'==_0x183b6e['type']?'add':'remove';_0x4d6629&&'text'==_0x4d6629['type']&&(_0x4d6629[_0x25d6af]+='\x0a');}}},Ft=class extends _0x1f600{afterInit(){const _0x59dd90=this['editor'],_0x165849=_0x59dd90['plugins']['get']('TrackChangesEditing');_0x59dd90['commands']['get']('showAIAssistant')&&_0x165849['enableCommand']('showAIAssistant');}},Bt=class extends _0x1f600{afterInit(){const _0x26ecd5=this['editor'],_0x168ae6=_0x26ecd5['plugins']['get']('TrackChangesEditing');_0x26ecd5['commands']['get']('toggleAi')&&_0x168ae6['enableCommand']('toggleAi');}},vt=class extends _0x1f600{afterInit(){const _0x256735=this['editor'],_0xade325=_0x256735['plugins']['get']('TrackChangesEditing');_0x256735['commands']['get']('aiQuickAction')&&_0xade325['enableCommand']('aiQuickAction');}},Dt=class extends _0x1f600{afterInit(){const _0x9ba413=this['editor'],_0x53c0dd=_0x9ba413['locale'];if(!_0x9ba413['plugins']['has']('AlignmentEditing'))return;const _0x1a7f7a=_0x9ba413['plugins']['get']('TrackChangesEditing');_0x1a7f7a['enableDefaultAttributesIntegration']('alignment'),_0x1a7f7a['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x53c0dd,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x40d839=this['editor'],_0x2b6a19=_0x40d839['locale'];_0x40d839['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242ca2=>{if('formatBlock'!=_0x242ca2['type'])return;const {data:_0x4d3134}=_0x242ca2;if(_0x4d3134&&'alignment'==_0x4d3134['commandName']){const _0x24d364=_0x4d3134['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x2b6a19,'*Format:*\x20%0',function(_0x12e509){switch(_0x12e509){case'left':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x2b6a19,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x2b6a19,'FORMAT_JUSTIFY_TEXT');}}(_0x24d364))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x1f600{afterInit(){const _0x1c1b0f=this['editor'],_0x137abe=_0x1c1b0f['plugins']['get']('TrackChangesEditing'),_0x164b67=_0x1c1b0f['locale'];for(const _0x434e27 of Ut){if(!_0x1c1b0f['plugins']['has'](_0x434e27))continue;const _0x2f5a00=_0x434e27['slice'](0x0,-0x7)['toLowerCase'](),_0x4e0ab9='FORMAT_'+_0x2f5a00['toUpperCase']();_0x137abe['enableDefaultAttributesIntegration'](_0x2f5a00),_0x137abe['descriptionFactory']['registerAttributeLabel'](_0x2f5a00,Ot(_0x164b67,_0x4e0ab9));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xe1593b=this['editor'],_0x2e1af4=_0xe1593b['locale'],_0x338060=_0xe1593b['plugins']['get']('TrackChangesEditing');function _0x401a7a(_0x57aaaa,_0x3bae98){_0x338060['descriptionFactory']['registerDescriptionCallback'](_0x5c40fe=>{if('formatInline'!=_0x5c40fe['type'])return;const {data:_0x1a48d6}=_0x5c40fe;return _0x1a48d6&&_0x1a48d6['commandName']===_0x57aaaa?_0x1a48d6['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x2e1af4,'*Format:*\x20%0',_0x3bae98)}:{'type':'format','content':Ot(_0x2e1af4,'*Remove\x20format:*\x20%0',_0x3bae98)}:void 0x0;});}_0x401a7a('bold',Ot(_0x2e1af4,'FORMAT_BOLD')),_0x401a7a('italic',Ot(_0x2e1af4,'FORMAT_ITALIC')),_0x401a7a('underline',Ot(_0x2e1af4,'FORMAT_UNDERLINE')),_0x401a7a('code',Ot(_0x2e1af4,'FORMAT_CODE')),_0x401a7a('strikethrough',Ot(_0x2e1af4,'FORMAT_STRIKETHROUGH')),_0x401a7a('subscript',Ot(_0x2e1af4,'FORMAT_SUBSCRIPT')),_0x401a7a('superscript',Ot(_0x2e1af4,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x1f600{afterInit(){const _0x2be0e8=this['editor'],_0x47e478=_0x2be0e8['locale'];if(!_0x2be0e8['plugins']['has']('BlockQuoteEditing'))return;const _0x1150c5=_0x2be0e8['plugins']['get']('TrackChangesEditing'),_0x3ff120=this['editor']['commands']['get']('blockQuote');_0x1150c5['enableCommand']('blockQuote',(_0xddbf1d,_0x43f0ec={})=>{const _0x570a36=this['editor']['model']['document']['selection'],_0x79e4d1=_0x43f0ec&&void 0x0!==_0x43f0ec['forceValue']?_0x43f0ec['forceValue']:!_0x3ff120['value'];let _0x598dfd=[];_0x598dfd=Ct(_0x79e4d1?Array['from'](_0x570a36['getSelectedBlocks']())['filter'](_0x3a6d43=>Gt(_0x3a6d43)||function(_0x566c05,_0x2e63e2){const _0x2de5a2=_0x2e63e2['createContext'](_0x566c05['parent']);return!!_0x2e63e2['checkChild'](_0x2de5a2,'blockQuote')&&!!_0x2e63e2['checkChild'](_0x2de5a2['push']('blockQuote'),_0x566c05);}(_0x3a6d43,this['editor']['model']['schema'])):Array['from'](_0x570a36['getSelectedBlocks']())['filter'](_0x235166=>Gt(_0x235166)),_0x2be0e8['model']),_0x2be0e8['model']['change'](()=>{for(const _0x2305d7 of _0x598dfd)_0x1150c5['markBlockFormat'](_0x2305d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x79e4d1}]});});}),_0x1150c5['descriptionFactory']['registerDescriptionCallback'](_0xa66838=>{const {data:_0x35300b}=_0xa66838;if(_0x35300b&&'blockQuote'==_0x35300b['commandName']){const _0x2081c1=Ot(_0x47e478,'ELEMENT_BLOCK_QUOTE');return _0x35300b['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x47e478,'*Set\x20format:*\x20%0',_0x2081c1)}:{'type':'format','content':Ot(_0x47e478,'*Remove\x20format:*\x20%0',_0x2081c1)};}});}};function Gt(_0x797c91){return'blockQuote'==_0x797c91['parent']['name'];}var Ht=class extends _0x1f600{afterInit(){const _0x28c2c5=this['editor'],_0x552f60=_0x28c2c5['locale'],_0x38c053=_0x28c2c5['plugins']['get']('TrackChangesEditing');_0x28c2c5['plugins']['has']('BookmarkEditing')&&(_0x38c053['enableCommand']('insertBookmark'),_0x38c053['enableDefaultAttributesIntegration']('updateBookmark'),_0x38c053['descriptionFactory']['registerDescriptionCallback'](_0x3513e6=>{if('insertion'!=_0x3513e6['type']&&'deletion'!=_0x3513e6['type']&&'attribute'!=_0x3513e6['type'])return;const _0x3e1c84=_0x3513e6['getContainedElement']();if(null==_0x3e1c84)return;if(!_0x3e1c84['is']('element','bookmark'))return;const _0xf7634d=_0x3e1c84['getAttribute']('bookmarkId');if('insertion'==_0x3513e6['type'])return{'type':'insertion','content':Ot(_0x552f60,'*Insert:*\x20%0','\x22'+_0xf7634d+'\x22\x20'+Ot(_0x552f60,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3513e6['type'])return{'type':'deletion','content':Ot(_0x552f60,'*Remove:*\x20%0','\x22'+_0xf7634d+'\x22\x20'+Ot(_0x552f60,'ELEMENT_BOOKMARK'))};const {data:_0x2789ce}=_0x3513e6;return _0x2789ce&&'bookmarkId'==_0x2789ce['key']?{'type':'format','content':Ot(_0x552f60,'*Set\x20bookmark:*\x20%0','\x22'+_0x2789ce['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x1f600{afterInit(){const _0x2178bd=this['editor'];_0x2178bd['plugins']['has']('CaseChange')&&(_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2178bd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x1f600{afterInit(){const _0x1a9ed5=this['editor'];_0x1a9ed5['commands']['get']('ckbox')&&_0x1a9ed5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x1f600{static get requires(){return[gt,ft];}constructor(_0xb304e9){super(_0xb304e9),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x4619ea=this['editor'],_0x2f7c11=_0x4619ea['plugins']['get']('ClipboardMarkersUtils'),_0x5bf274=_0x4619ea['plugins']['get'](ft);_0x2f7c11['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x5bf274['on']('outputTransformation',(_0x278db8,_0x36af60)=>{const _0x3cc3b0=this['_getSuggestionEntries'](_0x36af60);for(const [_0x5d9fb2,_0x165425]of _0x36af60['content']['markers']){const _0x219449=ot['_fromRangeInDocumentFragment'](_0x165425,_0x4619ea['model']);function _0x5d51fb(){_0x219449['detach'](),_0x36af60['content']['markers']['delete'](_0x5d9fb2);}_0x219449['on']('change:drop',_0x5d51fb),(_0x5d9fb2['startsWith']('suggestion:')||_0x5d9fb2['startsWith']('comment:'))&&_0x219449['on']('change:range',()=>{_0x219449['isCollapsed']&&_0x5d51fb();}),_0x36af60['content']['markers']['set'](_0x5d9fb2,_0x219449);}const _0x47d058=_0x3cc3b0['filter'](_0xbc2c28=>'deletion'===_0xbc2c28['meta']['type'])['map'](_0x4f4870=>_0x4f4870['modelRange']);if(this['_shouldSkipDeletions'](_0x47d058,_0x36af60['content']))return[..._0x3cc3b0]['forEach'](_0x7e01c9=>{_0x36af60['content']['markers']['get'](_0x7e01c9['markerName'])['detach'](),_0x36af60['content']['markers']['delete'](_0x7e01c9['markerName']);}),void this['_restoreRegularRanges'](_0x36af60['content']['markers']);[..._0x3cc3b0]['forEach'](_0x58f597=>{const _0x1c35f8=_0x4619ea['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x58f597['meta']['type'],_0x58f597['meta']['subType'],'accept'),{markerName:_0x1965e2,meta:_0x5d0c15}=_0x58f597;if(_0x36af60['content']['markers']['has'](_0x1965e2)){switch(_0x5d0c15['type']){case'deletion':if('tableRow'===_0x5d0c15['subType']||'tableColumn'===_0x5d0c15['subType']){if(!_0x4619ea['plugins']['has']('TableUtils'))break;const _0x340c48=_0x4619ea['plugins']['get']('TableUtils'),_0x5891d3=_0x340c48['getSelectionAffectedTableCells'](_0x4619ea['model']['createSelection'](_0x36af60['content']['markers']['get'](_0x1965e2))),_0x330869=_0x5891d3[0x0]['findAncestor']('table');if('tableRow'===_0x5d0c15['subType']){const {first:_0x507dbe,last:_0x464f10}=_0x340c48['getRowIndexes'](_0x5891d3);_0x340c48['removeRows'](_0x330869,{'at':_0x507dbe,'rows':_0x464f10-_0x507dbe+0x1});}else{const {first:_0x2ceee8,last:_0x3c9f24}=_0x340c48['getColumnIndexes'](_0x5891d3);_0x340c48['removeColumns'](_0x330869,{'at':_0x2ceee8,'columns':_0x3c9f24-_0x2ceee8+0x1});}break;}_0x1c35f8([_0x36af60['content']['markers']['get'](_0x1965e2)]);}_0x36af60['content']['markers']['has'](_0x1965e2)&&(_0x36af60['content']['markers']['get'](_0x1965e2)['detach'](),_0x36af60['content']['markers']['delete'](_0x1965e2));}}),this['_restoreRegularRanges'](_0x36af60['content']['markers']);});}_getSuggestionEntries(_0x50d507){const _0x281717=_0x2f2ed6=>'dragstart'===_0x50d507['method']?_0x2f2ed6['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x2f2ed6;return Array['from'](_0x50d507['content']['markers'])['map'](([_0x251913,_0x541677])=>({'markerName':_0x251913,'modelRange':_0x541677,'meta':et(_0x281717(_0x251913))}))['filter'](({meta:_0xb800ce})=>'suggestion'===_0xb800ce['group']);}_shouldSkipDeletions(_0x850e4c,_0x2347ca){if(!_0x850e4c['length'])return!0x1;let _0x2922a4=[this['editor']['model']['createRangeIn'](_0x2347ca)];for(const _0x26270f of _0x850e4c)_0x2922a4=_0x2922a4['flatMap'](_0x3ba5af=>_0x3ba5af['getDifference'](_0x26270f));return!_0x2922a4['some'](_0x3fdf57=>this['editor']['model']['hasContent'](_0x3fdf57,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x57ed2f){[..._0x57ed2f['keys']()]['forEach'](_0x3ea0ca=>{const _0x39de0e=_0x57ed2f['get'](_0x3ea0ca);_0x39de0e['detach'](),_0x57ed2f['set'](_0x3ea0ca,_0x39de0e['toRange']());});}},jt=class extends _0x1f600{afterInit(){const _0x2b684a=this['editor'];if(!_0x2b684a['plugins']['has']('CodeBlock'))return;const _0x2e4a87=_0x2b684a['plugins']['get']('TrackChangesEditing'),_0x5b0a3d=_0x2b684a['locale'],_0x4028ed=_0x2b684a['config']['get']('codeBlock')['languages'],_0x3ed7c1=_0x2b684a['commands']['get']('codeBlock');_0x2e4a87['enableCommand']('indentCodeBlock'),_0x2e4a87['enableCommand']('outdentCodeBlock'),_0x2e4a87['enableCommand']('codeBlock',(_0x56fcad,_0x108c4f={})=>{const _0x9bfa19=_0x2b684a['model'],_0x14b916=_0x2b684a['model']['document']['selection'],_0x22574a=_0x108c4f&&void 0x0!==_0x108c4f['forceValue']?_0x108c4f['forceValue']:!_0x3ed7c1['value'];let _0x40ad25;_0x108c4f['language']||(_0x108c4f['language']=_0x4028ed[0x0]['language']),_0x40ad25=_0x22574a?Array['from'](_0x14b916['getSelectedBlocks']())['filter'](_0x55d1b1=>{return zt(_0x55d1b1)||(_0x2d4e12=_0x55d1b1,_0x53cc8e=_0x9bfa19['schema'],!_0x2d4e12['is']('rootElement')&&!_0x53cc8e['isLimit'](_0x2d4e12)&&_0x53cc8e['checkChild'](_0x2d4e12['parent'],'codeBlock'));var _0x2d4e12,_0x53cc8e;}):Array['from'](_0x14b916['getSelectedBlocks']())['filter'](_0xeef531=>zt(_0xeef531));const _0x5bff47=Ct(_0x40ad25,_0x9bfa19);_0x9bfa19['change'](()=>{for(const _0x5d51c7 of _0x5bff47)_0x2e4a87['markBlockFormat'](_0x5d51c7,{'commandName':'codeBlock','commandParams':[{..._0x108c4f,'forceValue':_0x22574a}],'formatGroupId':'blockName'});});}),(_0x2e4a87['descriptionFactory']['registerElementLabel']('codeBlock',_0x287522=>Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',_0x287522)),_0x2e4a87['descriptionFactory']['registerDescriptionCallback'](_0x58ab8d=>{if('formatBlock'!=_0x58ab8d['type'])return;const _0x2e3cc9=_0x5b0a3d['t'],{data:_0x2d53a2}=_0x58ab8d;if(!_0x2d53a2||'codeBlock'!=_0x2d53a2['commandName'])return;const _0x464897=_0x2d53a2['commandParams'][0x0]['language'],_0x177ad7=_0x2e3cc9(_0x4028ed['find'](_0x3e4efd=>_0x3e4efd['language']===_0x464897)['label'])['toLowerCase']();return _0x2d53a2['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x5b0a3d,'*Set\x20format:*\x20%0',Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x177ad7+')')}:{'type':'format','content':Ot(_0x5b0a3d,'*Remove\x20format:*\x20%0',Ot(_0x5b0a3d,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x1c5e75){return'codeBlock'==_0x1c5e75['name'];}var Kt=class extends _0x1f600{afterInit(){const _0x15910f=this['editor'];_0x15910f['plugins']['has']('CommentsEditing')&&_0x15910f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x1f600{static get requires(){return[mt];}init(){const _0x59dd0b=this['editor'],_0x3edaa9=_0x59dd0b['plugins']['get']('TrackChangesEditing');_0x3edaa9['enableCommand']('delete');const _0x1c5664=_0x59dd0b['commands']['get']('deleteForward');_0x3edaa9['enableCommand']('deleteForward',(_0x3124c6,_0x4d88d2={})=>{const _0x186092=_0x59dd0b['model']['createSelection'](_0x59dd0b['model']['document']['selection']);_0x186092['isCollapsed']&&_0x59dd0b['model']['modifySelection'](_0x186092,{'direction':'forward','unit':_0x4d88d2['unit']});const _0x152735=_0x186092['getFirstRange'](),_0x78455f=ot['fromRange'](_0x152735);let _0x1c5822;_0x3124c6(_0x4d88d2),_0x1c5822='$graveyard'==_0x78455f['root']['rootName']?_0x59dd0b['model']['createRange'](_0x152735['start']):_0x59dd0b['model']['createRange'](_0x78455f['start'],_0x78455f['end']),_0x78455f['detach'](),_0x59dd0b['model']['enqueueChange'](_0x1c5664['buffer']['batch'],_0x36ce70=>{_0x1c5664['buffer']['lock'](),_0x36ce70['setSelection'](_0x36ce70['createRange'](_0x1c5822['end'])),_0x1c5664['buffer']['unlock']();});});}},qt=class extends _0x1f600{afterInit(){const _0x33b585=this['editor'];if(!_0x33b585['plugins']['has']('ListEditing'))return;const _0x33788d=_0x33b585['locale'],_0x39755d=_0x33b585['plugins']['get']('TrackChangesEditing'),_0xb154ca=_0x33b585['plugins']['has']('TodoListEditing'),_0x40c14f=!!_0x33b585['config']['get']('list.multiBlock');function _0x2351e6(_0x356837){return{'type':'format','content':''+Ot(_0x33788d,'*Set\x20format:*\x20%0',_0x356837)};}function _0x25efcb(_0x33715a){return{'type':'format','content':''+Ot(_0x33788d,'*Remove\x20format:*\x20%0',_0x33715a)};}_0x39755d['enableDefaultAttributesIntegration']('numberedList'),_0x39755d['enableDefaultAttributesIntegration']('bulletedList'),_0x39755d['enableDefaultAttributesIntegration']('customNumberedList'),_0x39755d['enableDefaultAttributesIntegration']('customBulletedList'),_0x39755d['enableDefaultAttributesIntegration']('indentList'),_0x39755d['enableDefaultAttributesIntegration']('outdentList'),_0x39755d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39755d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x40c14f&&(_0x39755d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39755d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb154ca&&(_0x39755d['enableDefaultAttributesIntegration']('todoList'),_0x39755d['enableDefaultAttributesIntegration']('checkTodoList'),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x46b49d=>{const {data:_0x576401}=_0x46b49d;if(_0x576401&&'todoListChecked'==_0x576401['key'])return{'type':'format','content':_0x576401['newValue']?Ot(_0x33788d,'*Check\x20item*'):Ot(_0x33788d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x145ae1=>{if(_0x145ae1['batch']['isUndo'])return!0x1;let _0x4540ea=!0x1;const _0x117c22=_0x39755d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x25d581=>'todoListChecked'===_0x39755d['_getAttributeKey'](_0x25d581));for(const _0xacb8f4 of _0x117c22)'todo'!=_0xacb8f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39755d['_findSuggestions'](_0xacb8f4['getFirstRange'](),'attribute')['find'](_0x187d25=>'listType'===_0x39755d['_getAttributeKey'](_0x187d25['suggestion']))||(_0x145ae1['removeMarker'](_0xacb8f4['getFirstMarker']()),_0x4540ea=!0x0));return _0x4540ea;})),_0x39755d['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x33788d,'FORMAT_INDENT'));const _0x18848f={'type':'format','content':''};_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x458c7c=>{const {data:_0x77de21}=_0x458c7c;if(!_0x77de21||'listType'!=_0x77de21['key'])return;let _0x38e2b8=_0x458c7c['head'];for(;_0x38e2b8;){if(_0x38e2b8['data']&&(('listStyle'==_0x38e2b8['data']['key']||'listMarkerStyle'==_0x38e2b8['data']['key'])&&(_0x38e2b8['data']['newValue']&&'default'!=_0x38e2b8['data']['newValue']||'default'!=_0x38e2b8['data']['oldValue']&&!_0x77de21['newValue'])||!_0x40c14f&&'$elementName'==_0x38e2b8['data']['key']))return _0x18848f;_0x38e2b8=_0x38e2b8['next'];}if(null==_0x77de21['newValue'])switch(_0x77de21['oldValue']){case'bulleted':return _0x25efcb(Ot(_0x33788d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25efcb(Ot(_0x33788d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25efcb(Ot(_0x33788d,'ELEMENT_TODO_LIST'));}switch(_0x77de21['newValue']){case'bulleted':return _0x2351e6(Ot(_0x33788d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2351e6(Ot(_0x33788d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2351e6(Ot(_0x33788d,'ELEMENT_TODO_LIST'));}}),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x2f91eb=>{const {data:_0x21654}=_0x2f91eb;if(_0x21654&&'listIndent'==_0x21654['key'])return null==_0x21654['newValue']||null==_0x21654['oldValue']&&0x0==_0x21654['newValue']?_0x18848f:void 0x0;}),_0x39755d['descriptionFactory']['registerDescriptionCallback'](_0x1ac1be=>{if('attribute'!=_0x1ac1be['type'])return;const {data:_0x242390}=_0x1ac1be;if(!_0x242390||'listItemId'!=_0x242390['key'])return;const _0x123770=Yt(_0x1ac1be);return'newValue'==_0x123770?{'type':'format','content':Ot(_0x33788d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x123770?{'type':'format','content':Ot(_0x33788d,'*Split:*\x20list\x20item')}:_0x18848f;}),_0x33b585['model']['document']['registerPostFixer'](_0x485e32=>this['listItemIdFixer'](_0x485e32)),_0x33b585['model']['document']['registerPostFixer'](_0xc564a0=>this['noTrackChangesFixer'](_0xc564a0)),_0x33b585['model']['document']['on']('change:data',(_0x214d2b,_0x2fb614)=>{if(_0x2fb614['isUndo']||!_0x2fb614['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x4bac87){if(_0x4bac87['batch']['isUndo']||!_0x4bac87['batch']['isLocal'])return!0x1;let _0x45e4d4=!0x1;const _0xc5e0de=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x411cb8=>_0x411cb8['data']&&'listItemId'==_0x411cb8['data']['key'])['filter'](_0x1cb35f=>_0x1cb35f['data']['newValue']&&_0x1cb35f['data']['oldValue']);for(const _0xdd9ad2 of _0xc5e0de)Yt(_0xdd9ad2)||(_0x4bac87['removeMarker'](_0xdd9ad2['getFirstMarker']()),_0x45e4d4=!0x0);return _0x45e4d4;}['noTrackChangesFixer'](_0x5b64e6){if(_0x5b64e6['batch']['isUndo']||!_0x5b64e6['batch']['isLocal'])return!0x1;const _0x27a20a=this['editor']['model']['document']['differ'],_0x23e361=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23e361['trackChangesCommand']['value'])return!0x1;let _0x9680bd=!0x1;const _0x214dee=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x744ca8=_0x27a20a['getChanges']()['filter'](_0x4a3dd0=>'attribute'==_0x4a3dd0['type'])['filter'](_0x3fb59b=>_0x214dee['has'](_0x3fb59b['attributeKey']));if(0x0==_0x744ca8['length'])return _0x9680bd;const _0x4b3140=new Set(_0x27a20a['getMarkersToAdd']()['filter'](_0x15221c=>{if(!_0x15221c['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x19c71f=et(_0x15221c['name'])['subType']['split']('|')[0x0];return _0x214dee['has'](_0x19c71f);})['map'](_0x1d0822=>et(_0x1d0822['name'])['id']));for(const _0x154da5 of _0x744ca8){const _0x202543=_0x23e361['_findSuggestions'](_0x154da5['range'],'attribute')['filter'](_0x12bc20=>{if(_0x12bc20['meta']['isNextTo'])return!0x1;if(_0x4b3140['has'](_0x12bc20['suggestion']['id']))return!0x1;const _0xb1e5c4=_0x23e361['_getAttributeKey'](_0x12bc20['suggestion']);return _0x214dee['has'](_0xb1e5c4);})['map'](_0x4cfa2c=>_0x4cfa2c['suggestion']);if(_0x202543['length']){for(const _0x80bd2b of _0x202543)_0x5b64e6['removeMarker'](_0x80bd2b['getFirstMarker']());_0x9680bd=!0x0;}}return _0x9680bd;}['assureChains'](){const _0xe0a4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac3a9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x280033;const _0x5a175d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x150963=>{if(_0x150963['data']['oldRange']||!_0x150963['data']['newRange'])return null;if(!_0x150963['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e3cb2}=et(_0x150963['name']);if(!_0xe0a4d['hasSuggestion'](_0x3e3cb2))return null;const _0x51bd7a=_0xe0a4d['getSuggestion'](_0x3e3cb2);return _0x1ac3a9['includes'](_0x51bd7a['data']['key']);})['map'](_0x53e5ed=>{const {id:_0xed5f13}=et(_0x53e5ed['name']),_0x2f9977=_0xe0a4d['getSuggestion'](_0xed5f13);return _0x280033=_0x2f9977['attributes']['groupId'],_0x2f9977['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a175d['size'])return;const _0x41f92b=_0xe0a4d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x298843=>'attribute'==_0x298843['type']&&_0x298843['data']&&_0x1ac3a9['includes'](_0x298843['data']['key'])&&_0x298843['attributes']['groupId']!=_0x280033)['map'](_0x371433=>({'listItem':_0x371433['getFirstRange']()['start']['nodeAfter'],'groupId':_0x371433['attributes']['groupId']})),_0xcc0da6=new Set();for(const {groupId:_0x431323,listItem:_0x545d87}of _0x41f92b)_0x5a175d['has'](_0x545d87)&&_0xcc0da6['add'](_0x431323);for(const _0x183d41 of _0xe0a4d['getSuggestions']())_0xcc0da6['has'](_0x183d41['attributes']['groupId'])&&_0x183d41['setAttribute']('groupId',_0x280033);}_supportLegacySuggestions(){const _0x27ac73=this['editor'],_0x375c27=_0x27ac73['locale'],_0x5da578=_0x27ac73['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5da578['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x333b46,_0x334388){const _0x36aa25=[];for(let _0x1c7006 of _0x333b46)_0x1c7006['start']['nodeAfter']===_0x1c7006['end']['parent']&&(_0x1c7006=_0x27ac73['model']['createRange'](_0x27ac73['model']['createPositionAt'](_0x1c7006['start']['nodeAfter'],0x0))),_0x36aa25['push'](_0x1c7006);_0x27ac73['model']['change'](_0xe339e2=>{const _0x2b7eef=_0x27ac73['model']['document']['selection'],_0x263d44=Array['from'](_0x2b7eef['getRanges']())['map'](_0x5212b8=>ot['fromRange'](_0x5212b8));_0xe339e2['setSelection'](_0x36aa25),_0x27ac73['commands']['get'](_0x334388['commandName'])['refresh'](),_0x334388['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27ac73['execute'](_0x334388['commandName'],..._0x334388['commandParams']),_0xe339e2['setSelection'](_0x263d44);for(const _0x556f73 of _0x263d44)_0x556f73['detach']();});}),_0x5da578['descriptionFactory']['registerElementLabel'](function(_0x3f6609){const _0x5cca05=!_0x27ac73['model']['schema']['isObject'](_0x3f6609),_0x1628c6=_0x3f6609['previousSibling'],_0x2dd7dc=_0x3f6609['nextSibling'],_0x1de6b3=_0x3f6609['getAttribute']('listItemId'),_0x288746=!_0x1628c6||_0x1628c6['getAttribute']('listItemId')!==_0x1de6b3,_0x3e6131=!_0x2dd7dc||_0x2dd7dc['getAttribute']('listItemId')!==_0x1de6b3;return _0x5cca05&&Boolean(_0x1de6b3)&&_0x288746&&_0x3e6131;},_0x4397fa=>Ot(_0x375c27,'ELEMENT_LIST_ITEM',_0x4397fa));}_registerLegacyDescription(){const _0x577d80=this['editor'],_0x124d3b=_0x577d80['locale'];function _0x4dc436(_0x5f169d){const _0x49b23a=_0x577d80['commands']['get']('bulletedList')['value'],_0x3417c6=_0x577d80['commands']['get']('numberedList')['value'];return'numberedList'===_0x5f169d?_0x49b23a:_0x3417c6;}_0x577d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2eb352){if('formatBlock'!=_0x2eb352['type'])return;const {data:_0x46e4ea}=_0x2eb352;if(!_0x46e4ea)return;let _0x55f78c,_0x41ea34,_0x283f55,_0x3e943a;switch(_0x46e4ea['commandName']){case'bulletedList':_0x283f55=_0x46e4ea['commandParams'][0x0]['forceValue'],_0x3e943a=_0x4dc436(_0x46e4ea['commandName']),_0x55f78c=_0x283f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e943a&&_0x577d80['config']['get']('list.multiBlock')||(_0x55f78c='*Change\x20to:*\x20%0'),_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x283f55=_0x46e4ea['commandParams'][0x0]['forceValue'],_0x3e943a=_0x4dc436(_0x46e4ea['commandName']),_0x55f78c=_0x283f55?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e943a&&_0x577d80['config']['get']('list.multiBlock')||(_0x55f78c='*Change\x20to:*\x20%0'),_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x55f78c='*Indent:*\x20%0',_0x41ea34={'type':'format','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x55f78c=function(_0x56cbc3){const _0x18a29c=_0x56cbc3['getFirstRange']();let _0xa71cc6=_0x18a29c['start']['nodeAfter'];for(;_0xa71cc6&&_0x18a29c['containsItem'](_0xa71cc6);){if(_0xa71cc6['getAttribute']('listIndent')>0x0)return!0x1;_0xa71cc6=_0xa71cc6['nextSibling'];}return!0x0;}(_0x2eb352)?Ot(_0x124d3b,'*Format:*\x20remove\x20from\x20%0',Ot(_0x124d3b,function(_0x5477e1){return'ELEMENT_'+_0x5477e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2eb352))):Ot(_0x124d3b,'*Outdent:*\x20%0',Ot(_0x124d3b,'ELEMENT_LIST_ITEM')),_0x41ea34={'type':'format','content':_0x55f78c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46e4ea['multipleBlocks']&&(_0x55f78c='*Merge:*\x20%0',_0x41ea34={'type':'deletion','content':Ot(_0x124d3b,_0x55f78c,Ot(_0x124d3b,'ELEMENT_LIST_ITEM'))});}return _0x41ea34;});}};function Yt(_0x27b453){let _0x469e26=_0x27b453['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x469e26;){const _0x1081bc=_0x469e26['getAttribute']('listItemId');if(!_0x1081bc)return!0x1;if(_0x1081bc==_0x27b453['data']['newValue'])return'newValue';if(_0x1081bc==_0x27b453['data']['oldValue'])return'oldValue';_0x469e26=_0x469e26['previousSibling'];}return!0x1;}var Qt=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2138be=this['editor']['config']['get']('list.properties'),_0x172048=this['editor']['plugins']['get']('TrackChangesEditing');_0x2138be['styles']&&_0x172048['enableDefaultAttributesIntegration']('listStyle'),_0x2138be['reversed']&&_0x172048['enableDefaultAttributesIntegration']('listReversed'),_0x2138be['startIndex']&&_0x172048['enableDefaultAttributesIntegration']('listStart');const _0x4bb036={'type':'format','content':''};_0x172048['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ff62b=this['editor']['locale'];_0x172048['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4ff62b,'FORMAT_LIST_REVERSED')),_0x172048['descriptionFactory']['registerDescriptionCallback'](_0x5e51cc=>{const {data:_0x5efd0a}=_0x5e51cc;if(_0x5efd0a&&'listReversed'==_0x5efd0a['key'])return null==_0x5efd0a['newValue']||0x0==_0x5efd0a['newValue']&&null==_0x5efd0a['oldValue']?_0x4bb036:void 0x0;}),_0x172048['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4ff62b,'FORMAT_LIST_START')),_0x172048['descriptionFactory']['registerDescriptionCallback'](_0x10eed9=>{const {data:_0x3edae5}=_0x10eed9;if(_0x3edae5&&'listStart'==_0x3edae5['key'])return null==_0x3edae5['newValue']||0x1==_0x3edae5['newValue']&&null==_0x3edae5['oldValue']?_0x4bb036:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e34a7=>{if(_0x1e34a7['batch']['isUndo'])return!0x1;let _0x326958=!0x1;const _0x5a934e=_0x172048['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13359c=>{const _0x892951=_0x172048['_getAttributeKey'](_0x13359c);return'listStart'==_0x892951||'listReversed'==_0x892951;});for(const _0x1cb9d7 of _0x5a934e){const _0x3fb2ae=_0x1cb9d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x3fb2ae&&'customNumbered'!=_0x3fb2ae&&(_0x172048['_findSuggestions'](_0x1cb9d7['getFirstRange'](),'attribute')['find'](_0x415359=>'listType'==_0x172048['_getAttributeKey'](_0x415359['suggestion']))||(_0x1e34a7['removeMarker'](_0x1cb9d7['getFirstMarker']()),_0x326958=!0x0));}return _0x326958;}),this['_registerLegacyDescription']();}handleDescriptions(_0x221a73){const _0x29b439=this['editor']['locale'],{data:_0x2c0afa}=_0x221a73,_0x278a31={'type':'format','content':''};if(!_0x2c0afa||'listStyle'!=_0x2c0afa['key'])return;if(!_0x2c0afa['oldValue'])return'default'==_0x2c0afa['newValue']?_0x278a31:{'type':'format','content':''+Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['newValue'])))};if(!_0x2c0afa['newValue']){if('default'==_0x2c0afa['oldValue'])return _0x278a31;let _0x56d744=_0x221a73['head'];for(;_0x56d744;){if(_0x56d744['data']&&'listType'==_0x56d744['data']['key']&&_0x56d744['data']['newValue'])return _0x278a31;_0x56d744=_0x56d744['next'];}return{'type':'format','content':''+Ot(_0x29b439,'*Remove\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['oldValue'])))};}if('default'!=_0x2c0afa['newValue'])return{'type':'format','content':''+Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,this['_getTranslationKeyForListStyle'](_0x2c0afa['newValue'])))};let _0x58d9c3=_0x221a73['head'];for(;_0x58d9c3;){if(_0x58d9c3['data']&&'listType'==_0x58d9c3['data']['key']&&_0x58d9c3['data']['newValue']&&_0x58d9c3['data']['oldValue'])return _0x278a31;_0x58d9c3=_0x58d9c3['next'];}return{'type':'format','content':Ot(_0x29b439,'*Set\x20format:*\x20%0',Ot(_0x29b439,'ELEMENT_'+_0x221a73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xd8b2bd=this['editor'],_0x3b95d6=_0xd8b2bd['locale'];_0xd8b2bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ce472=>{if('formatBlock'!=_0x5ce472['type'])return;const {data:_0x488905}=_0x5ce472;if(!_0x488905)return;let _0x124b9e,_0x5a2a83;switch(_0x488905['commandName']){case'listStyle':_0x124b9e='*Change\x20to:*\x20%0',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e,Ot(_0x3b95d6,this['_getTranslationKeyForListStyle'](_0x488905['commandParams'][0x0]['type'])))};break;case'listReversed':_0x124b9e=_0x488905['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e)};break;case'listStart':_0x124b9e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a2a83={'type':'format','content':Ot(_0x3b95d6,_0x124b9e,_0x488905['commandParams'][0x0]['startIndex'])};}return _0x5a2a83;});}_getTranslationKeyForListStyle(_0x32bc31){return'ELEMENT_'+(_0x3c9f94=_0x32bc31,Zt['includes'](_0x3c9f94)?'bulleted':Jt['includes'](_0x3c9f94)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x32bc31['toUpperCase']()['replace'](/-/g,'_');var _0x3c9f94;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x1f600{afterInit(){const _0x15c8de=this['editor'];_0x15c8de['commands']['get']('emoji')&&_0x15c8de['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x1f600{static get requires(){return[Tt];}init(){const _0x205524=this['editor'],_0x5eb907=_0x205524['plugins']['get']('TrackChangesEditing'),_0x5789e6=_0x205524['commands']['get']('enter');_0x5eb907['enableCommand']('enter',()=>{_0x205524['model']['change'](_0x3e39b7=>{const _0x2594d8=_0x205524['model']['document']['selection'],_0x49e814=_0x2594d8['getFirstPosition'](),_0x35d037=ot['fromRange'](_0x2594d8['getFirstRange']());if(_0x5789e6['enterBlock'](_0x3e39b7)){const _0x19cc0f=_0x205524['model']['createPositionAt'](_0x49e814['parent']['nextSibling'],0x0),_0x1c4199=_0x3e39b7['createRange'](_0x49e814,_0x19cc0f);_0x5eb907['markInsertion'](_0x1c4199);}else _0x3e39b7['setSelection'](_0x3e39b7['createRange'](_0x35d037['end']));_0x35d037['detach'](),_0x5789e6['fire']('afterExecute',{'writer':_0x3e39b7});});});}},ne=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x112890=this['editor']['plugins']['get']('TrackChangesEditing');_0x112890['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x112890['enableCommand']('findNext'),_0x112890['enableCommand']('findPrevious'),_0x112890['enableCommand']('replace'),_0x112890['enableCommand']('replaceAll');}['handleFindCommand'](_0x3acfbc,_0x472b39,_0xe484ea={}){const _0x1f192a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3acfbc(_0x21ff12=>{let _0x53cbb3=('string'==typeof _0x472b39?_0x1f192a['findByTextCallback'](_0x472b39,_0xe484ea):_0x472b39)(_0x21ff12);Array['isArray'](_0x53cbb3)&&(_0x53cbb3={'results':_0x53cbb3,'searchText':'string'==typeof _0x472b39?_0x472b39:''});const _0x5248fe=_0x53cbb3['results']['filter'](_0x3dee60=>!0x1===this['_isInDeletionRange'](_0x3dee60,_0x21ff12['item']));return{..._0x53cbb3,'results':_0x5248fe};},_0xe484ea);}_isInDeletionRange(_0x48ecbb,_0x22cfba){const _0x34e2eb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22cfba,_0x48ecbb['start']),this['editor']['model']['createPositionAt'](_0x22cfba,_0x48ecbb['end']));for(const _0x4aa3c5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x34e2eb['getIntersection'](_0x4aa3c5['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x1f600{afterInit(){const _0xacbdb1=this['editor']['locale'],_0x5b3772=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xaa6145,commandName:_0x51fe89}of ie)this['editor']['plugins']['has'](_0xaa6145)&&_0x5b3772['enableDefaultAttributesIntegration'](_0x51fe89);_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0xacbdb1,'FORMAT_FONT_SIZE')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0xacbdb1,'FORMAT_FONT_FAMILY')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0xacbdb1,'FORMAT_FONT_COLOR')),_0x5b3772['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0xacbdb1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x510cba=this['editor'],_0x352c92=_0x510cba['locale'];_0x510cba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbdd975=>{const _0x20fba5=_0x352c92['t'];if('formatInline'!=_0xbdd975['type'])return;const {data:_0x1d9be2}=_0xbdd975;if(null!=_0x1d9be2){if('fontSize'==_0x1d9be2['commandName']){const _0x412539=_0x1d9be2['commandParams'][0x0]['value'];if(_0x412539){const _0x45167f=_0x20fba5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x103113=>_0x103113['model']==_0x412539)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20size:*\x20%0',_0x45167f)};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d9be2['commandName']){const _0x5ecaa7=_0x1d9be2['commandParams'][0x0]['value'];return _0x5ecaa7?{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20family:*\x20%0',_0x5ecaa7)}:{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d9be2['commandName']){const _0x57be43=_0x1d9be2['commandParams'][0x0]['value'];if(_0x57be43){const _0x1e388a=_0x440930(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3c8c50=>_0x3c8c50['model']==_0x57be43);let _0x2be1da=_0x57be43,_0x5836d3='';return _0x1e388a&&(_0x2be1da=_0x1e388a['label'],_0x5836d3=_0x20fba5(_0x2be1da)['toLowerCase']()),{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20color:*\x20%0',_0x5836d3)['trim'](),'color':{'value':_0x57be43,'title':_0x5836d3||_0x2be1da}};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d9be2['commandName']){const _0x1c5a89=_0x1d9be2['commandParams'][0x0]['value'];if(_0x1c5a89){const _0x2cea40=_0x440930(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a9293=>_0x5a9293['model']==_0x1c5a89);let _0x3095b0=_0x1c5a89,_0x52bf52='';return _0x2cea40&&(_0x3095b0=_0x2cea40['label'],_0x52bf52=_0x20fba5(_0x3095b0)['toLowerCase']()),{'type':'format','content':Ot(_0x352c92,'*Set\x20font\x20background\x20color:*\x20%0',_0x52bf52)['trim'](),'color':{'value':_0x1c5a89,'title':_0x52bf52||_0x3095b0}};}return{'type':'format','content':Ot(_0x352c92,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x1f600{afterInit(){const {plugins:_0x1335e2}=this['editor'];_0x1335e2['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1335e2['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1a29df,plugins:_0xaeb3e0,commands:_0x2a9502}=this['editor'],_0x372364=_0xaeb3e0['get']('TrackChangesEditing');_0x2a9502['get']('footnotesStyle')&&_0x372364['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2a9502['get']('footnotesStart')&&_0x372364['enableDefaultAttributesIntegration']('footnotesStart'),_0x372364['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x1a29df,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x372364['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x1a29df,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x1702fd=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2e776a,commands:_0x1e3cf1}=this['editor'];_0x1e3cf1['get']('insertFootnote')&&_0x1702fd['enableCommand']('insertFootnote'),_0x1702fd['descriptionFactory']['registerElementLabel']('footnoteRef',_0x12f769=>Ot(_0x2e776a,'ELEMENT_FOOTNOTE_REF',_0x12f769)),_0x1702fd['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1db4f8=>Ot(_0x2e776a,'ELEMENT_FOOTNOTE_DEFINITION',_0x1db4f8)),_0x1702fd['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4189eb=>Ot(_0x2e776a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4189eb));}},oe=class extends _0x1f600{afterInit(){const _0x1695f2=this['editor'],_0x3380ad=_0x1695f2['plugins']['get']('TrackChangesEditing'),_0x54631b=_0x1695f2['commands']['get']('copyFormat'),_0x3d3e5a=_0x1695f2['commands']['get']('pasteFormat');_0x54631b&&_0x3d3e5a&&(_0x3380ad['enableDefaultAttributesIntegration']('pasteFormat'),_0x3380ad['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x256fb5=this['editor'],_0x1ae1dd=_0x256fb5['locale'];_0x256fb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x267a1c=>{if('formatBlock'!=_0x267a1c['type']&&'formatInline'!=_0x267a1c['type'])return;const {data:_0x4bc818}=_0x267a1c;if(_0x4bc818&&'pasteFormat'===_0x4bc818['commandName']){const _0x4765a7=[],_0x2a06ce=_0x4bc818['commandParams'][0x0];for(const [_0x594d84,_0x42a6a8]of Object['entries'](_0x2a06ce))_0x4765a7['push'](ae(_0x256fb5,_0x594d84,_0x42a6a8));return _0x4765a7['length']?{'type':'format','content':Ot(_0x1ae1dd,'*Set\x20format\x20to:*\x20%0',_0x4765a7['join'](',\x20'))}:{'type':'format','content':Ot(_0x1ae1dd,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x336caa,_0x40c422,_0x46e81b){const _0x1d6ed2=_0x336caa['locale']['t'],_0x520e1f=_0x40c422['split'](/(?=[A-Z])/)['join']('\x20'),_0x452e33=_0x1d6ed2(_0x520e1f['charAt'](0x0)['toUpperCase']()+_0x520e1f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x46e81b)return _0x452e33;if('fontColor'===_0x40c422||'fontBackgroundColor'===_0x40c422){const _0x5a30b3=_0x440930(_0x336caa['config']['get']('fontColor.colors'))['find'](_0xb22a6d=>_0xb22a6d['model']==_0x46e81b);return _0x452e33+'\x20('+(_0x5a30b3?_0x1d6ed2(_0x5a30b3['label'])['toLowerCase']():_0x46e81b)+')';}if('fontSize'===_0x40c422&&isNaN(parseFloat(_0x46e81b))){const _0xd20ca4=_0x336caa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x336caa['config']['get']('fontSize.options'))['find'](_0x24760b=>_0x24760b['model']==_0x46e81b);return _0x452e33+'\x20('+(_0xd20ca4?_0x1d6ed2(_0xd20ca4['title'])['toLowerCase']():_0x46e81b)+')';}return _0x452e33+'\x20('+_0x46e81b+')';}var ce=class extends _0x1f600{afterInit(){const _0x3a1813=this['editor'];if(!_0x3a1813['plugins']['has']('GeneralHtmlSupport')||!_0x3a1813['plugins']['has']('DataSchema'))return;const _0x4e65a6=_0x3a1813['plugins']['get']('TrackChangesEditing'),_0xea1743=_0x3a1813['plugins']['get']('GeneralHtmlSupport'),_0x4ded84=_0x3a1813['plugins']['get']('DataSchema'),_0x2d3cfa=_0x3a1813['locale'],_0x26e64c=new Set(['htmlContent']);for(const _0x471e81 of _0x4ded84['getDefinitionsForView'](/.*/,!0x1)){const _0x2e5d8d=_0x471e81['view'],_0x38d956=_0xea1743['getGhsAttributeNameForElement'](_0x2e5d8d);_0x26e64c['add'](_0x38d956),!_0x471e81['isInline']||_0x471e81['isObject']||'appliesToBlock'in _0x471e81&&_0x471e81['appliesToBlock']||_0x4e65a6['descriptionFactory']['registerAttributeLabel'](_0x38d956,_0x2e5d8d),_0x471e81['model']['startsWith']('html')&&_0x4e65a6['descriptionFactory']['registerElementLabel'](_0x471e81['model'],_0x5c5a4a=>Ot(_0x2d3cfa,'ELEMENT_HTML_TAG',[_0x5c5a4a,_0x2e5d8d]));}_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2d3cfa,'FORMAT_RAW_HTML_CONTENT')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_LIST_ITEM')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_BULLETED_LIST')),_0x4e65a6['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2d3cfa,'FORMAT_HTML_NUMBERED_LIST')),_0x4e65a6['descriptionFactory']['registerDescriptionCallback'](_0xbb862f=>{if('attribute'!==_0xbb862f['type'])return;const _0x22dbe5=_0xbb862f['data'];if(!_0x22dbe5||!_0x26e64c['has'](_0x22dbe5['key']))return;if('htmlContent'===_0x22dbe5['key'])return{'type':'format','content':Ot(_0x2d3cfa,'*Change\x20%0\x20content*',Ot(_0x2d3cfa,'ELEMENT_RAW_HTML'))};const {setItems:_0x5d3c14,removeItems:_0x34a8ad}=function(_0x3261d,_0x48968c,_0x28267d){const _0x5e4649=[],_0x308700=[],_0x47bff6=_0x3261d['styles']??{},_0x4ba661=_0x48968c['styles']??{};for(const _0xf96d64 of new Set([...Object['keys'](_0x47bff6),...Object['keys'](_0x4ba661)]))_0x47bff6[_0xf96d64]!==_0x4ba661[_0xf96d64]&&(void 0x0===_0x4ba661[_0xf96d64]?_0x308700['push'](_0xf96d64):_0x5e4649['push'](_0xf96d64+'\x20('+_0x4ba661[_0xf96d64]+')'));const _0x403cc3=Ot(_0x28267d,'FORMAT_HTML_CLASS'),_0x469b74=new Set(_0x3261d['classes']??[]),_0x25ddcb=new Set(_0x48968c['classes']??[]),_0x25ff43=[..._0x25ddcb]['some'](_0x2db71b=>!_0x469b74['has'](_0x2db71b)),_0x272310=[..._0x469b74]['some'](_0x1823d6=>!_0x25ddcb['has'](_0x1823d6));_0x25ff43&&_0x5e4649['push'](_0x403cc3),_0x272310&&_0x308700['push'](_0x403cc3);const _0x11125c=Ot(_0x28267d,'FORMAT_HTML_ATTRIBUTE'),_0x25e887=_0x3261d['attributes']??{},_0x4427df=_0x48968c['attributes']??{};let _0x1b5d49=!0x1,_0x1122ce=!0x1;for(const _0x3e1d98 of new Set([...Object['keys'](_0x25e887),...Object['keys'](_0x4427df)]))_0x25e887[_0x3e1d98]!==_0x4427df[_0x3e1d98]&&(void 0x0===_0x4427df[_0x3e1d98]?_0x1122ce=!0x0:_0x1b5d49=!0x0);return _0x1b5d49&&_0x5e4649['push'](_0x11125c),_0x1122ce&&_0x308700['push'](_0x11125c),{'setItems':_0x5e4649,'removeItems':_0x308700};}(_0x22dbe5['oldValue']??{},_0x22dbe5['newValue']??{},_0x2d3cfa);if(!_0x5d3c14['length']&&!_0x34a8ad['length'])return;const _0x2732a1=[];return _0x5d3c14['length']&&_0x2732a1['push'](Ot(_0x2d3cfa,'*Set\x20format:*\x20%0',_0x5d3c14['join'](',\x20'))),_0x34a8ad['length']&&_0x2732a1['push'](Ot(_0x2d3cfa,'*Remove\x20format:*\x20%0',_0x34a8ad['join'](',\x20'))),{'type':'format','content':_0x2732a1['join']('\x0a')};});}},le=class extends _0x1f600{_headingOptions;afterInit(){const _0x3d11ac=this['editor'];if(!_0x3d11ac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3d11ac['config']['get']('heading.options');const _0x120737=_0x3d11ac['locale'],_0x33c2ae=_0x3d11ac['plugins']['get']('TrackChangesEditing');_0x33c2ae['enableDefaultAttributesIntegration']('heading');for(const _0x226370 of this['_headingOptions'])'paragraph'!=_0x226370['model']&&_0x33c2ae['descriptionFactory']['registerElementLabel'](_0x226370['model'],_0x167599=>{const _0x245d8a=this['_getHeadingLevel'](_0x226370['model']);return null!==_0x245d8a?_0x1fa7e8(_0x167599,_0x245d8a):_0xe5d75f(_0x167599,_0x226370['title']);});function _0x1fa7e8(_0x5273b0,_0x2334c7){return Ot(_0x120737,'ELEMENT_HEADING',[_0x5273b0,_0x2334c7]);}function _0xe5d75f(_0x30029c,_0x6fb2e6){return Ot(_0x120737,'ELEMENT_HEADING_CUSTOM',[_0x30029c,_0x6fb2e6]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e4257=this['editor'],_0x53bb29=_0x2e4257['locale'];function _0x5f59c0(_0x1f7163,_0x22bf2f){return Ot(_0x53bb29,'ELEMENT_HEADING_CUSTOM',[_0x1f7163,_0x22bf2f]);}_0x2e4257['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x301bb0=>{if('formatBlock'!=_0x301bb0['type'])return;const {data:_0x5de44c}=_0x301bb0;if(_0x5de44c&&'heading'==_0x5de44c['commandName']){const _0x4e8d2e=_0x5de44c['commandParams'][0x0]['value'],_0x56dda8=this['_getHeadingLevel'](_0x4e8d2e);if(null!==_0x56dda8)return{'type':'format','content':Ot(_0x53bb29,'*Change\x20to:*\x20%0',(_0x1063d3=0x1,_0x2b1346=_0x56dda8,Ot(_0x53bb29,'ELEMENT_HEADING',[_0x1063d3,_0x2b1346])))};const _0x185a74=this['_headingOptions']['find'](_0x369910=>_0x369910['model']===_0x4e8d2e)['title'];return{'type':'format','content':Ot(_0x53bb29,'*Change\x20to:*\x20%0',_0x5f59c0(0x1,_0x185a74))};}var _0x1063d3,_0x2b1346;});}_getHeadingLevel(_0x16018b){const _0xfb30e4=_0x16018b['match'](/^heading(\d+)/);if(_0xfb30e4)return _0xfb30e4[0x1];const _0x583f96=this['_headingOptions']?.['find'](_0xaa9b1b=>_0xaa9b1b['model']==_0x16018b);if(_0x583f96&&_0x583f96['view']){const _0x59d014=_0x583f96['view'],_0x146f0a=(_0x59d014['name']??_0x59d014)['match'](/^h(\d+)/);if(_0x146f0a)return _0x146f0a[0x1];}return null;}},ue=class extends _0x1f600{afterInit(){const _0x7adb04=this['editor'];if(!_0x7adb04['plugins']['has']('HighlightEditing'))return;const _0x574eb7=_0x7adb04['plugins']['get']('TrackChangesEditing'),_0x20ce35=_0x7adb04['locale'];_0x574eb7['enableDefaultAttributesIntegration']('highlight'),_0x574eb7['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x20ce35,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b2871=this['editor'],_0x903ae8=_0x5b2871['locale'];_0x5b2871['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4a60=>{if('formatInline'!=_0x5e4a60['type'])return;const {data:_0x5f5c2f}=_0x5e4a60;if(_0x5f5c2f&&'highlight'==_0x5f5c2f['commandName']){const _0x35e79e=_0x903ae8['t'],_0x25857c=_0x5f5c2f['commandParams'][0x0]['value'];if(_0x25857c){const _0xa81d56=_0x5b2871['config']['get']('highlight.options')['find'](_0x189e4e=>_0x189e4e['model']==_0x25857c),_0x4b2b2c=_0x35e79e(_0xa81d56['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x903ae8,'*Set\x20highlight:*\x20%0',_0x4b2b2c),'color':{'value':_0xa81d56['color'],'title':_0xa81d56['title']}};}return{'type':'format','content':Ot(_0x903ae8,'*Remove\x20highlight*',Ot(_0x903ae8,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x1f600{afterInit(){const _0x9719d6=this['editor'];if(!_0x9719d6['plugins']['has']('HorizontalLineEditing'))return;_0x9719d6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2acec0=_0x9719d6['plugins']['get']('TrackChangesEditing'),_0x222fbc=_0x9719d6['locale'];_0x2acec0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x23e635=>Ot(_0x222fbc,'ELEMENT_HORIZONTAL_LINE',_0x23e635));}},he=class extends _0x1f600{afterInit(){const _0x4c6e9b=this['editor'];if(!_0x4c6e9b['plugins']['has']('HtmlEmbed'))return;const _0x467831=_0x4c6e9b['plugins']['get']('TrackChangesEditing'),_0x11c903=_0x4c6e9b['locale'];_0x467831['descriptionFactory']['registerElementLabel']('rawHtml',_0x4707b7=>Ot(_0x11c903,'ELEMENT_HTML_EMBED',_0x4707b7)),_0x467831['enableDefaultAttributesIntegration']('htmlEmbed'),_0x467831['descriptionFactory']['registerDescriptionCallback'](_0x16932a=>{if('attribute'!=_0x16932a['type'])return;const {data:_0x27948c}=_0x16932a;if(_0x27948c&&'value'==_0x27948c['key']&&_0x16932a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5317e8=Ot(_0x11c903,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x11c903,'*Change\x20%0\x20content*',_0x5317e8)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2d2005=this['editor'],_0x1aa509=_0x2d2005['locale'];_0x2d2005['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0b9d=>{if('formatBlock'!=_0x3e0b9d['type'])return;const {data:_0x5f32ac}=_0x3e0b9d;if(_0x5f32ac&&'htmlEmbed'==_0x5f32ac['commandName']){const _0x23745e=Ot(_0x1aa509,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x1aa509,'*Change\x20%0\x20content*',_0x23745e)};}});}},ge=class extends _0x1f600{afterInit(){const _0xc30e72=this['editor'];if(!_0xc30e72['plugins']['has']('ImageEditing'))return;const _0xd56c5f=_0xc30e72['plugins']['get']('TrackChangesEditing'),_0x9cbaaa=_0xc30e72['plugins']['get']('ImageUtils'),_0x3c96c5=_0xc30e72['locale'];_0xd56c5f['enableCommand']('insertImage'),_0xd56c5f['descriptionFactory']['registerElementLabel']('imageBlock',_0x4bcf13=>Ot(_0x3c96c5,'ELEMENT_IMAGE',_0x4bcf13)),_0xd56c5f['descriptionFactory']['registerElementLabel']('imageInline',_0x5a8543=>Ot(_0x3c96c5,'ELEMENT_INLINE_IMAGE',_0x5a8543)),_0xd56c5f['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x3c96c5,'ELEMENT_CAPTION')),_0xc30e72['plugins']['has']('ImageUploadEditing')&&_0xd56c5f['enableCommand']('uploadImage'),_0xc30e72['plugins']['has']('ImageBlockEditing')&&_0xc30e72['plugins']['has']('ImageInlineEditing')&&(_0xd56c5f['enableCommand']('imageTypeInline',(_0x292b7d,_0x14db67)=>{const _0x930c40=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']);_0xc30e72['model']['change'](()=>{_0xd56c5f['markBlockFormat'](_0x930c40,{'commandName':'imageTypeInline','commandParams':[_0x14db67]},[],'convertBlockImageToInline');});}),_0xd56c5f['enableCommand']('imageTypeBlock',(_0xc672cd,_0x2aca32)=>{_0xc30e72['model']['change'](_0x5af069=>{let _0xb47c10=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0xb95049=_0x5af069['createRangeOn'](_0xb47c10);const _0x925587=rt['fromPosition'](_0xb95049['start'],'toPrevious'),_0x1c38d7=rt['fromPosition'](_0xb95049['end'],'toNext');_0xd56c5f['forceDefaultExecution'](()=>_0xc672cd(_0x2aca32)),_0xb47c10=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0xb95049=_0x5af069['createRangeOn'](_0xb47c10);const _0x1945d3=_0x5af069['createRange'](_0x925587,_0x1c38d7);_0x925587['detach'](),_0x1c38d7['detach'](),_0xd56c5f['markBlockFormat'](_0xb47c10,{'commandName':'imageTypeInline','commandParams':[_0x2aca32]},[],'convertInlineImageToBlock'),_0x1945d3['start']['isBefore'](_0xb95049['start'])&&_0xd56c5f['markInsertion'](_0x5af069['createRange'](_0x1945d3['start'],_0xb95049['start']),'convertInlineImageToBlock'),_0xb95049['end']['isBefore'](_0x1945d3['end'])&&_0xd56c5f['markInsertion'](_0x5af069['createRange'](_0xb95049['end'],_0x1945d3['end']),'convertInlineImageToBlock');});}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xd56c5f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3eaca8])=>{const _0x9477f4=_0xd56c5f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x32972c=_0x3eaca8['start'],_0x56d755=_0x3eaca8['end'];const _0x4319dc=_0xc30e72['model']['schema']['getNearestSelectionRange'](_0x32972c,'backward'),_0x34ef28=_0xc30e72['model']['schema']['getNearestSelectionRange'](_0x56d755,'forward');_0x4319dc['isCollapsed']&&(_0x32972c=_0x4319dc['start']),_0x34ef28['isCollapsed']&&(_0x56d755=_0x34ef28['end']),_0x9477f4([_0xc30e72['model']['createRange'](_0x32972c,_0x56d755)]);}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2f4d14),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2f4d14)),_0xc30e72['plugins']['has']('ImageCaptionEditing')&&(_0xd56c5f['enableCommand']('toggleImageCaption',(_0x428b4c,_0x458c4a)=>{const _0x3cc459=_0xc30e72['plugins']['get']('ImageCaptionUtils');let _0x46703c=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0x3076ca=_0x3cc459['getCaptionFromImageModelElement'](_0x46703c);_0xc30e72['model']['change'](()=>{if(_0x3076ca)return void _0xd56c5f['markDeletion'](_0xc30e72['model']['createRangeOn'](_0x3076ca));const _0x224349=_0x9cbaaa['isBlockImage'](_0x46703c);_0x428b4c(_0x458c4a),_0x46703c=_0x9cbaaa['getClosestSelectedImageElement'](_0xc30e72['model']['document']['selection']),_0x3076ca=_0x3cc459['getCaptionFromImageModelElement'](_0x46703c),_0xd56c5f['markInsertion'](_0xc30e72['model']['createRangeOn'](_0x3076ca),_0x224349?null:'imageCaption');});}),_0xd56c5f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2f4d14));const _0x1a6739=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x111d93(_0x1ade20,_0x5f3e00){const _0x365673=_0x1a6739['findIndex'](({type:_0x332130,subType:_0x312ee3})=>_0x1ade20['type']==_0x332130&&_0x1ade20['subType']==_0x312ee3),_0x170a15=_0x1a6739['findIndex'](({type:_0x57e236,subType:_0x7f4eb1})=>_0x5f3e00['type']==_0x57e236&&_0x5f3e00['subType']==_0x7f4eb1);if(_0x365673<0x0||_0x170a15<0x0)return!0x1;const _0x1a01cc=_0x1ade20['getFirstRange'](),_0x4fa27c=_0x5f3e00['getFirstRange']();if((0x0==_0x365673||0x1==_0x365673)&&0x2==_0x170a15&&_0x1a01cc['isIntersecting'](_0x4fa27c))return!0x0;if(0x2==_0x365673&&0x3==_0x170a15){const _0x1faf0e=_0xd56c5f['_findSuggestions'](_0x1a01cc,'insertion')['filter'](({suggestion:_0x27e3bd,meta:_0x5f0d0a})=>_0x5f0d0a['isOwn']&&'convertInlineImageToBlock'==_0x27e3bd['subType']);if(_0x1faf0e['length']>0x1&&_0x4fa27c['end']['isEqual'](_0x1a01cc['start']))return!0x0;if(0x1==_0x1faf0e['length']&&(_0x1a01cc['start']['isEqual'](_0x4fa27c['end'])||_0x1a01cc['end']['isEqual'](_0x4fa27c['start'])))return!0x0;}if(0x3==_0x365673&&0x3==_0x170a15&&_0x1a01cc['start']['isBefore'](_0x4fa27c['start'])){const _0x31636=_0x1a01cc['end']['nodeAfter'],_0x49a24d=_0x4fa27c['start']['nodeBefore'];return _0x9cbaaa['isBlockImage'](_0x31636)&&_0x31636===_0x49a24d;}return!0x1;}function _0x2f4d14(_0x481ecd,_0x263231){return _0x111d93(_0x481ecd,_0x263231)?[_0x481ecd,_0x263231]:_0x111d93(_0x263231,_0x481ecd)?[_0x263231,_0x481ecd]:null;}_0xc30e72['plugins']['has']('ImageResize')&&(_0xd56c5f['enableDefaultAttributesIntegration']('resizeImage'),_0xd56c5f['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x3c96c5,'FORMAT_IMAGE_SIZE'))),_0xc30e72['plugins']['has']('ImageTextAlternativeEditing')&&_0xd56c5f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xc30e72['plugins']['has']('PictureEditing')&&_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x2b04be=>{if('attribute'!=_0x2b04be['type'])return;const {data:_0x5a8dd8}=_0x2b04be;return _0x5a8dd8&&'sources'==_0x5a8dd8['key']?{'type':'format','content':''}:void 0x0;}),_0xc30e72['plugins']['has']('ImageSizeAttributes')&&_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x2c4755=>{if('attribute'!=_0x2c4755['type'])return;const {data:_0x469e19}=_0x2c4755;return!_0x469e19||'width'!=_0x469e19['key']&&'height'!=_0x469e19['key']?void 0x0:{'type':'format','content':''};}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x6a0c61=>{if(_0x1a6739['find'](({type:_0x2bad41,subType:_0x282f7c})=>_0x6a0c61['type']==_0x2bad41&&_0x6a0c61['subType']==_0x282f7c))return _0x6a0c61['previous']?{}:void 0x0;}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x51ee06=>{if('insertion'==_0x51ee06['type']||'deletion'==_0x51ee06['type']){const _0xdd8b4c=_0x51ee06['getContainedElement']();if(_0xdd8b4c&&_0xdd8b4c['is']('element','caption'))return{'type':'insertion'==_0x51ee06['type']?'addObject':'removeObject','element':_0xdd8b4c,'quantity':0x1};}}),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x12009a=>'formatBlock'==_0x12009a['type']&&'convertInlineImageToBlock'==_0x12009a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12009a['type']&&'convertBlockImageToInline'==_0x12009a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xd56c5f['descriptionFactory']['registerDescriptionCallback'](_0x3c6cf0=>{if('attribute'!=_0x3c6cf0['type'])return;const {data:_0x4a8c0e}=_0x3c6cf0;if(!_0x4a8c0e||'alt'!=_0x4a8c0e['key'])return;const _0x134ae0=_0x4a8c0e['newValue'];return _0x134ae0?{'type':'format','content':Ot(_0x3c96c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x134ae0+'\x22')}:{'type':'format','content':Ot(_0x3c96c5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5359ed=this['editor'],_0x286a9e=_0x5359ed['locale'];_0x5359ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487e6d=>{if('formatBlock'!=_0x487e6d['type']&&'formatInline'!=_0x487e6d['type'])return;const {data:_0x675f11}=_0x487e6d;if(_0x675f11){if('imageTextAlternative'==_0x675f11['commandName']){const _0x4849c2=_0x675f11['commandParams'][0x0]['newValue'];return _0x4849c2?{'type':'format','content':Ot(_0x286a9e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4849c2+'\x22')}:{'type':'format','content':Ot(_0x286a9e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x675f11['commandName']){const _0x1b4c1b=_0x675f11['commandParams'][0x0]['width'];return _0x1b4c1b?{'type':'format','content':Ot(_0x286a9e,'*Set\x20image\x20width:*\x20%0',_0x1b4c1b)}:{'type':'format','content':Ot(_0x286a9e,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4991ab=this['editor']['locale'],_0x485fe0=this['editor']['plugins']['get']('TrackChangesEditing');_0x485fe0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x485fe0['descriptionFactory']['registerDescriptionCallback'](_0x298e27=>{if('attribute'!=_0x298e27['type'])return;const {data:_0x2e8247}=_0x298e27;return _0x2e8247&&'src'==_0x2e8247['key']?_0x2e8247['newValue']&&_0x2e8247['oldValue']?{'type':'format','content':Ot(_0x4991ab,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xddb8d2=this['editor']['plugins']['get']('TrackChangesEditing');_0xddb8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xddb8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xddb8d2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xddb8d2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3ad92c=this['editor'],_0x9945c4=_0x3ad92c['locale'];_0x3ad92c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38a79b=>{if('formatBlock'!=_0x38a79b['type']&&'formatInline'!=_0x38a79b['type'])return;const {data:_0x43d9b3}=_0x38a79b;return _0x43d9b3&&'replaceImageSource'==_0x43d9b3['commandName']?{'type':'format','content':Ot(_0x9945c4,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x1f600{afterInit(){const _0x232499=this['editor'];if(!_0x232499['plugins']['has']('ImageStyleEditing'))return;const _0xaf89ab=_0x232499['plugins']['get']('TrackChangesEditing'),_0x58a909=_0x232499['plugins']['get']('ImageUtils'),_0x133f65={};_0xaf89ab['enableCommand']('imageStyle',(_0xaf47b2,_0xa61c10)=>{const _0x43f135=_0x232499['plugins']['get']('Users')['me'],_0x20c0c8=_0x232499['commands']['get']('imageStyle');let _0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),_0x5d67f3=_0x232499['model']['createRangeOn'](_0x5c2a74),_0x29170b=_0x20c0c8['value'];if(_0x29170b==_0xa61c10['value'])return;if(_0xa61c10['value']&&_0x58a909['isInlineImage'](_0x5c2a74)&&!_0x20c0c8['isStyleEnabled'](_0xa61c10['value']))return;const _0x2fae88={'commandName':'imageStyle','commandParams':[_0xa61c10],'formatGroupId':_0x51282a()};_0x232499['model']['change'](()=>{if(_0xaf89ab['getSuggestions']()['filter'](_0x206858=>_0x206858['isInContent']&&_0x43f135==_0x206858['author']&&('formatBlock'==_0x206858['type']||'formatInline'==_0x206858['type'])&&('imageStylePreApply'==_0x206858['subType']||'imageStylePostApply'==_0x206858['subType'])&&_0x206858['getFirstRange']()['isEqual'](_0x5d67f3))['forEach'](_0xd90754=>_0xaf89ab['discardSuggestion'](_0xd90754['head'])),_0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),_0x5d67f3=_0x232499['model']['createRangeOn'](_0x5c2a74),_0x20c0c8['refresh'](),_0x232499['commands']['get']('imageTypeInline')['refresh'](),_0x232499['commands']['get']('imageTypeBlock')['refresh'](),_0x29170b=_0x20c0c8['value'],_0x29170b!=_0xa61c10['value'])return _0x58a909['isInlineImage'](_0x5c2a74)&&_0x20c0c8['shouldConvertImageType'](_0xa61c10['value'],_0x5c2a74)?(_0xaf47b2({..._0xa61c10,'setImageSizes':!0x1}),_0x5c2a74=_0x58a909['getClosestSelectedImageElement'](_0x232499['model']['document']['selection']),void _0xaf89ab['markBlockFormat'](_0x5c2a74,{..._0x2fae88,'commandReversedParams':[{'value':_0x29170b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58a909['isBlockImage'](_0x5c2a74)?_0xaf89ab['markBlockFormat'](_0x5c2a74,_0x2fae88,[],'imageStylePostApply'):_0xaf89ab['markInlineFormat'](_0x5d67f3,_0x2fae88,'imageStylePostApply'));});});for(const _0x3592e9 of _0x232499['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x133f65[_0x3592e9['name']]=_0x3592e9['title']['toLowerCase']();_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf7a335])=>{_0x58a909['setImageNaturalSizeAttributes'](_0xf7a335['getContainedElement']());}),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6e8d13,_0x103a6f)=>{_0xaf89ab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6e8d13,{'commandName':_0x103a6f['commandName'],'commandParams':_0x103a6f['commandReversedParams']});}),_0xaf89ab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35434b,_0x127918){return _0x1be680(_0x35434b,_0x127918)?[_0x35434b,_0x127918]:_0x1be680(_0x127918,_0x35434b)?[_0x127918,_0x35434b]:null;});const _0x53873f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1be680(_0x33013f,_0x47f38a){const _0x1a3e70=_0x53873f['findIndex'](({type:_0x14aa7,subType:_0x51e534})=>_0x33013f['type']==_0x14aa7&&_0x33013f['subType']==_0x51e534),_0xb8f7b9=_0x53873f['findIndex'](({type:_0x42495e,subType:_0x2154d4})=>_0x47f38a['type']==_0x42495e&&_0x47f38a['subType']==_0x2154d4);if(_0x1a3e70<0x0||_0xb8f7b9<0x0)return!0x1;const _0x108d99=_0x33013f['getFirstRange'](),_0x4c60f8=_0x47f38a['getFirstRange']();if((0x0==_0x1a3e70||0x1==_0x1a3e70)&&0x2==_0xb8f7b9&&_0x108d99['isIntersecting'](_0x4c60f8))return!0x0;if(0x2==_0x1a3e70&&0x3==_0xb8f7b9){const _0x3a3b9c=_0xaf89ab['_findSuggestions'](_0x108d99,'insertion')['filter'](({suggestion:_0x210978,meta:_0x9b272e})=>_0x9b272e['isOwn']&&'convertInlineImageToBlock'==_0x210978['subType']);if(_0x3a3b9c['length']>0x1&&_0x4c60f8['end']['isEqual'](_0x108d99['start']))return!0x0;if(0x1==_0x3a3b9c['length']&&(_0x108d99['start']['isEqual'](_0x4c60f8['end'])||_0x108d99['end']['isEqual'](_0x4c60f8['start'])))return!0x0;}if(0x3==_0x1a3e70&&0x3==_0xb8f7b9&&_0x108d99['start']['isBefore'](_0x4c60f8['start'])){const _0x41c820=_0x108d99['end']['nodeAfter'],_0x4a609b=_0x4c60f8['start']['nodeBefore'];return _0x58a909['isBlockImage'](_0x41c820)&&_0x41c820===_0x4a609b;}return!0x1;}_0x232499['model']['document']['registerPostFixer'](()=>{let _0x4105f1=!0x1;const _0x2abe1d=Array['from'](_0x232499['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e193d,data:_0x543fdd}of _0x2abe1d){const {group:_0x471c03,type:_0x47490c,subType:_0x27b352,id:_0x50665d}=et(_0x2e193d);if('suggestion'==_0x471c03&&_0xaf89ab['hasSuggestion'](_0x50665d)){if('formatBlock'==_0x47490c&&('imageStylePreApply'==_0x27b352||'imageStylePostApply'==_0x27b352)){const _0x5f3035=_0xaf89ab['getSuggestion'](_0x50665d);if(_0x543fdd['newRange']){const _0x332b44=_0x5f3035['getFirstRange']()['getContainedElement']();if(_0x58a909['isBlockImage'](_0x332b44))continue;_0xaf89ab['discardSuggestion'](_0x5f3035),_0x4105f1=!0x0;}}if('insertion'==_0x47490c&&'imageCaption'==_0x27b352&&!_0x543fdd['newRange']){const _0x25326b=_0xaf89ab['getSuggestion'](_0x50665d);_0x25326b['next']&&_0x25326b['next']['isInContent']&&(_0xaf89ab['discardSuggestion'](_0x25326b['next']),_0x4105f1=!0x0);}}}return _0x4105f1;}),this['_registerLegacyDescription'](_0x133f65);}_registerLegacyDescription(_0x564eaf){const _0x21ac9f=this['editor'],_0x209230=_0x21ac9f['locale'];_0x21ac9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x364e49=>{if('formatBlock'!=_0x364e49['type']&&'formatInline'!=_0x364e49['type'])return;const {data:_0x5708fb}=_0x364e49;if(!_0x5708fb||'imageStyle'!=_0x5708fb['commandName'])return;const _0x2ac2ab=_0x5708fb['commandParams'][0x0]['value'];return _0x32668b('side'===_0x2ac2ab?Ot(_0x209230,'FORMAT_SIDE_IMAGE'):_0x564eaf[_0x2ac2ab]||_0x2ac2ab);function _0x32668b(_0x4ff708){return{'type':'format','content':Ot(_0x209230,'*Format:*\x20%0',_0x4ff708)};}});}},Ee=class extends _0x1f600{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x1d89b2){super(_0x1d89b2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x35c311=this['editor'],_0x378ed5=_0x35c311['commands']['get']('importWord'),_0x505e5a=_0x35c311['commands']['get']('trackChanges');_0x378ed5&&(_0x378ed5['on']('execute',(_0x2cad40,[,_0x1bf619])=>{this['_trackChangesValueDuringImport']=_0x505e5a['value'],_0x1bf619['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x378ed5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x378ed5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x505e5a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35c311['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x1d37a6,_0x4dcc9d){const {suggestions:_0x540744}=_0x4dcc9d,_0x3eaeae=this['editor']['commands']['get']('trackChanges'),_0x5f550e=_0x3eaeae['value'];this['_trackChangesValueDuringImport']!==_0x5f550e&&(_0x3eaeae['execute'](),this['_trackChangesExecuted']=!0x0),_0x540744&&_0x540744['forEach'](({id:_0xefa5a1,type:_0x27e2e7,author:_0x3159b2,created_at:_0x18a041})=>{const _0xcf013b={'id':_0xefa5a1,'type':_0x27e2e7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3159b2,'createdAt':_0x18a041?new Date(_0x18a041):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xcf013b);});}},Te=class extends _0x1f600{afterInit(){const _0x22050b=this['editor'],_0x353beb=_0x22050b['plugins']['get']('TrackChangesEditing');if(_0x22050b['plugins']['has']('IndentEditing')&&(_0x353beb['enableCommand']('indent'),_0x353beb['enableCommand']('outdent')),_0x22050b['plugins']['has']('IndentBlock')){for(const _0x1d893a of['indentBlock','outdentBlock'])_0x353beb['enableDefaultAttributesIntegration'](_0x1d893a);if(_0x22050b['plugins']['has']('ListEditing')){for(const _0x463bfa of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x353beb['enableDefaultAttributesIntegration'](_0x463bfa);}}const _0xcd13d8=_0x22050b['locale'];_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0xcd13d8,'FORMAT_INDENT')),_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0xcd13d8,'FORMAT_INDENT')),_0x353beb['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0xcd13d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x38f859=this['editor'],_0x6eb9fd=_0x38f859['locale'],_0xd0753e=_0x38f859['plugins']['get']('TrackChangesEditing');_0xd0753e['descriptionFactory']['registerDescriptionCallback'](_0x59e924=>{if('formatBlock'!=_0x59e924['type'])return;const {data:_0x342781}=_0x59e924;if(!_0x342781)return;if('indentBlock'!=_0x342781['commandName']&&'outdentBlock'!=_0x342781['commandName'])return;const _0x4190dd=_0x59e924['getItems']()[0x0],_0x31e805=_0xd0753e['descriptionFactory']['getItemLabel'](_0x4190dd);return'indentBlock'==_0x342781['commandName']?{'type':'format','content':Ot(_0x6eb9fd,'*Indent:*\x20%0',_0x31e805)}:'outdentBlock'==_0x342781['commandName']?{'type':'format','content':Ot(_0x6eb9fd,'*Outdent:*\x20%0',_0x31e805)}:void 0x0;});}},_e=class extends _0x1f600{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x1f600{afterInit(){const _0x4535a5=this['editor'];if(!_0x4535a5['plugins']['has']('LinkEditing'))return;const _0x1565bf=_0x4535a5['plugins']['get']('TrackChangesEditing'),_0x240f09=_0x4535a5['commands']['get']('link');_0x1565bf['enableDefaultAttributesIntegration']('link'),_0x1565bf['enableDefaultAttributesIntegration']('unlink');for(const _0x4b5725 of _0x240f09['manualDecorators'])_0x1565bf['descriptionFactory']['registerAttributeLabel'](_0x4b5725['id'],'link\x20('+_0x4b5725['label']['toLowerCase']()+')');_0x1565bf['descriptionFactory']['registerDescriptionCallback'](_0x4f44a9=>{if('attribute'!=_0x4f44a9['type'])return;const {data:_0x7383d7}=_0x4f44a9;if(!_0x7383d7||'linkHref'!=_0x7383d7['key'])return;const _0x34cd28=_0x7383d7['newValue'],_0x10826c=_0x4535a5['locale'];return{'type':'format','content':null==_0x34cd28?Ot(_0x10826c,'*Remove\x20link*'):Ot(_0x10826c,'*Set\x20link:*\x20%0','\x22'+_0x34cd28+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3aa2f6=this['editor'],_0x4b9963=_0x3aa2f6['locale'];_0x3aa2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8bd2=>{if('formatInline'!=_0x4f8bd2['type'])return;const {data:_0x2fd5dd}=_0x4f8bd2;if(_0x2fd5dd){if('link'==_0x2fd5dd['commandName']){const _0x5e9480=_0x2fd5dd['commandParams'][0x0];return{'type':'format','content':Ot(_0x4b9963,'*Set\x20link:*\x20%0','\x22'+_0x5e9480+'\x22')};}return'unlink'==_0x2fd5dd['commandName']?{'type':'format','content':Ot(_0x4b9963,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x1f600{afterInit(){const _0xd7a325=this['editor'],_0x6192de=_0xd7a325['locale'];if(!_0xd7a325['plugins']['has']('LegacyListEditing'))return;const _0x3f3c72=_0xd7a325['plugins']['get']('TrackChangesEditing'),_0x175535=_0xd7a325['plugins']['has']('LegacyTodoListEditing');function _0x547e69(_0x20841c){return()=>{const _0x33d45b=_0xd7a325['model']['document']['selection'],_0x54f309=_0xd7a325['commands']['get'](_0x20841c);if(_0x54f309['value'])return void _0xd7a325['execute']('paragraph',{});const _0x102b44=_0x20841c['slice'](0x0,-0x4),_0x4ad0f2=function(_0x26fd85,_0x100a23,_0x3bae99){let _0x5d61cb=Array['from'](_0x26fd85)['filter'](_0x521247=>function(_0x1d609e,_0x18b6f5){return _0x18b6f5['checkChild'](_0x1d609e['parent'],'listItem')&&!_0x18b6f5['isObject'](_0x1d609e);}(_0x521247,_0x3bae99));_0x5d61cb=_0x5d61cb['filter'](_0x1d7002=>!_0x1d7002['is']('element','listItem')||_0x1d7002['getAttribute']('listType')!=_0x100a23);const _0x3d783a=new Set();for(const _0x303f21 of _0x5d61cb)_0x303f21['is']('element','listItem')?_0x3d783a['add'](Ie(_0x303f21)):_0x3d783a['add'](_0x303f21);return Array['from'](_0x3d783a);}(_0x33d45b['getSelectedBlocks'](),_0x102b44,_0xd7a325['model']['schema']);_0xd7a325['model']['change'](()=>{for(const _0x21dcb2 of _0x4ad0f2)_0x3f3c72['markBlockFormat'](_0x21dcb2,{'commandName':_0x20841c,'commandParams':[{'forceValue':!_0x54f309['value']}],'formatGroupId':'blockName'},Ae(_0x21dcb2));});};}function _0x2cc7a1(_0x2f9dfc){return()=>{const _0x23923e=function(_0x4b4925){let _0x1384e1=Array['from'](_0x4b4925);const _0x36994c=_0x1384e1['findIndex'](_0x62ca25=>'listItem'!=_0x62ca25['name']);return _0x36994c>-0x1&&(_0x1384e1=_0x1384e1['slice'](0x0,_0x36994c)),_0x1384e1;}(_0xd7a325['model']['document']['selection']['getSelectedBlocks']()),_0x5d8625=_0xd7a325['model']['createRange'](_0xd7a325['model']['createPositionAt'](_0x23923e[0x0],'before'),_0xd7a325['model']['createPositionAt'](_0x23923e[_0x23923e['length']-0x1],'end'));_0xd7a325['model']['change'](()=>{_0x3f3c72['markBlockFormat'](_0x5d8625,{'commandName':_0x2f9dfc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x86af2d){const _0x23b58d=new Set();for(const _0x464b70 of _0x86af2d){let _0x3a0cb0=_0x464b70['nextSibling'];for(;_0x3a0cb0&&_0x3a0cb0['getAttribute']('listIndent')>_0x464b70['getAttribute']('listIndent');)_0x23b58d['add'](_0x3a0cb0),_0x3a0cb0=_0x3a0cb0['nextSibling'];}return Array['from'](_0x23b58d);}(_0x23923e));});};}_0x3f3c72['enableCommand']('numberedList',_0x547e69('numberedList')),_0x3f3c72['enableCommand']('bulletedList',_0x547e69('bulletedList')),_0x175535&&_0x3f3c72['enableCommand']('todoList',_0x547e69('todoList')),_0x3f3c72['enableCommand']('indentList',_0x2cc7a1('indentList')),_0x3f3c72['enableCommand']('outdentList',_0x2cc7a1('outdentList')),_0x175535&&_0x3f3c72['enableCommand']('checkTodoList',()=>{const _0x2aaa3d=_0xd7a325['commands']['get']('checkTodoList'),_0x3effe7=Array['from'](_0x2aaa3d['_selectedElements']);_0x3effe7['filter'](_0x29141a=>_0x29141a['getAttribute']('todoListChecked')!=_0x2aaa3d['value']),_0xd7a325['model']['change'](()=>{for(const _0x28f85c of _0x3effe7)_0x3f3c72['markBlockFormat'](_0x28f85c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2aaa3d['value']}]});});}),_0x3f3c72['descriptionFactory']['registerElementLabel']('listItem',_0x1f2140=>Ot(_0x6192de,'ELEMENT_LIST_ITEM',_0x1f2140)),_0x3f3c72['descriptionFactory']['registerDescriptionCallback'](_0x4a4166=>{if('formatBlock'!=_0x4a4166['type']&&'formatInline'!=_0x4a4166['type'])return;const {data:_0x3edda3}=_0x4a4166;if(_0x3edda3){if('numberedList'==_0x3edda3['commandName']||'bulletedList'==_0x3edda3['commandName']||'todoList'==_0x3edda3['commandName'])switch(_0x3edda3['commandName']['replace']('List','')){case'bulleted':return _0x20464a(Ot(_0x6192de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20464a(Ot(_0x6192de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20464a(Ot(_0x6192de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3edda3['commandName'])return{'type':'format','content':Ot(_0x6192de,'*Indent:*\x20%0',Ot(_0x6192de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3edda3['commandName'])return{'type':'format','content':Ot(_0x6192de,'*Outdent:*\x20%0',Ot(_0x6192de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3edda3['commandName'])return _0x3edda3['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x6192de,'*Check\x20item*')}:{'type':'format','content':Ot(_0x6192de,'*Uncheck\x20item*')};}function _0x20464a(_0x4285ae){return{'type':'format','content':Ot(_0x6192de,'*Change\x20to:*\x20%0',_0x4285ae)};}});}};function Ie(_0x2ec26f){const _0x1ae4db=_0x2ec26f['getAttribute']('listIndent');if(0x0==_0x1ae4db)return _0x2ec26f;let _0x4c548f=_0x2ec26f;for(;_0x2ec26f['previousSibling']&&_0x2ec26f['previousSibling']['is']('element','listItem');){const _0x61190=_0x2ec26f['previousSibling']['getAttribute']('listIndent');if(_0x61190==_0x1ae4db)_0x4c548f=_0x2ec26f['previousSibling'];else{if(_0x61190<_0x1ae4db)break;}_0x2ec26f=_0x2ec26f['previousSibling'];}return _0x4c548f;}function Ae(_0x188906){const _0x33b559=[];if(_0x188906['is']('element','listItem')&&_0x188906['getAttribute']('listIndent')>0x0){let _0x59db73=_0x188906['nextSibling'];for(;_0x59db73&&'listItem'==_0x59db73['name']&&_0x59db73['getAttribute']('listIndent')==_0x188906['getAttribute']('listIndent');)_0x33b559['push'](_0x59db73),_0x59db73=_0x59db73['nextSibling'];}return _0x33b559;}var be=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d710f=this['editor']['config']['get']('list.properties'),_0x28b2a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d710f['styles']&&_0x28b2a4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d710f['reversed']&&_0x28b2a4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d710f['startIndex']&&_0x28b2a4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x28b2a4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x357473,_0x328756={}){const _0x232df3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4600ca=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x232df3['markMultiRangeBlockFormat'](_0x4600ca,{'commandName':'listStyle','commandParams':[{'type':_0x328756['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x4fee2f,_0x5cda60={}){const _0x4ea4ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266fe0=this['_getSuggestionBlocks'](_0xabce07=>_0xabce07['is']('element','listItem')&&'numbered'===_0xabce07['getAttribute']('listType'));if(_0x266fe0['length']<0x1)return;const _0x2f9c1f=_0x266fe0['map'](_0x2f50fb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f50fb,'before'),this['editor']['model']['createPositionAt'](_0x2f50fb,0x0)));this['editor']['model']['change'](()=>{_0x4ea4ca['markMultiRangeBlockFormat'](_0x2f9c1f,{'commandName':'listReversed','commandParams':[{'reversed':_0x5cda60['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x2d2e60,_0x11dc65={}){const _0x101385=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4f77=this['_getSuggestionBlocks'](_0x3dcdaf=>_0x3dcdaf['is']('element','listItem')&&'numbered'===_0x3dcdaf['getAttribute']('listType'));if(_0x1e4f77['length']<0x1)return;const _0x540761=_0x1e4f77['map'](_0x1de66b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1de66b,'before'),this['editor']['model']['createPositionAt'](_0x1de66b,0x0)));this['editor']['model']['change'](()=>{_0x101385['markMultiRangeBlockFormat'](_0x540761,{'commandName':'listStart','commandParams':[{'startIndex':_0x11dc65['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x31d263){if('formatBlock'!=_0x31d263['type']&&'formatInline'!=_0x31d263['type'])return;const _0x2a733e=this['editor']['locale'],{data:_0x47857c}=_0x31d263;if(!_0x47857c)return;let _0x2f0121,_0x224085;switch(_0x47857c['commandName']){case'listStyle':_0x2f0121='*Change\x20to:*\x20%0',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121,Ot(_0x2a733e,this['_getTranslationKeyForListStyle'](_0x47857c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f0121=_0x47857c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121)};break;case'listStart':_0x2f0121='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x224085={'type':'format','content':Ot(_0x2a733e,_0x2f0121,_0x47857c['commandParams'][0x0]['startIndex'])};}return _0x224085;}_getSuggestionBlocksForListStyle(){const _0x3478ec=this['editor']['plugins']['get']('LegacyListUtils');let _0x52c5c3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x52c5c3[0x0]?.['is']('element','listItem')&&_0x52c5c3['unshift'](..._0x3478ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x52c5c3[_0x52c5c3['length']-0x1]?.['is']('element','listItem')&&_0x52c5c3['push'](..._0x3478ec['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x52c5c3=[...new Set(_0x52c5c3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x52c5c3=_0x52c5c3['filter'](_0x348598=>_0x348598['is']('element','listItem'))),_0x52c5c3;}_getSuggestionBlocks(_0x441ea6){const _0x4b464a=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b6174=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x441ea6)['map'](_0x29db35=>{const _0xccb178=this['editor']['model']['createPositionAt'](_0x29db35,0x0);return[..._0x4b464a['getSiblingNodes'](_0xccb178,'backward'),..._0x4b464a['getSiblingNodes'](_0xccb178,'forward')];})['flat']();return _0x3b6174=[...new Set(_0x3b6174)],_0x3b6174;}_getTranslationKeyForListStyle(_0x42773f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x42773f)||'default')['toUpperCase']()+'_LIST_'+_0x42773f['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x1f600{afterInit(){const _0x106fbe=this['editor'];if(!_0x106fbe['plugins']['has']('MediaEmbedEditing'))return;const _0x196e64=_0x106fbe['plugins']['get']('TrackChangesEditing'),_0x273a84=_0x106fbe['locale'];_0x196e64['enableCommand']('mediaEmbed'),_0x196e64['descriptionFactory']['registerElementLabel']('media',_0x4f52cd=>Ot(_0x273a84,'ELEMENT_MEDIA',_0x4f52cd)),_0x106fbe['plugins']['has']('MediaEmbedResizeEditing')&&(_0x196e64['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x196e64['descriptionFactory']['registerDescriptionCallback'](_0x58b835=>{if('attribute'!=_0x58b835['type'])return;const {data:_0x28d15d}=_0x58b835;if(!_0x28d15d||'resizedWidth'!=_0x28d15d['key'])return;const _0x50f31c=_0x58b835['getContainedElement']();if(!_0x50f31c||!_0x50f31c['is']('element','media'))return;const _0x35e2c4=Ot(_0x273a84,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x273a84,'*Set\x20format:*\x20%0',_0x35e2c4)};}));}},ke=class extends _0x1f600{afterInit(){const _0x3c1c86=this['editor'];if(!_0x3c1c86['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x10eb98=_0x3c1c86['plugins']['get']('TrackChangesEditing'),_0x246c8f=_0x3c1c86['locale'],_0x280732=_0x3c1c86['plugins']['get']('MediaEmbedStyleEditing'),_0x513395={};for(const _0x5a4438 of _0x280732['normalizedStyles'])_0x513395[_0x5a4438['name']]=_0x5a4438['title']['toLowerCase']();const _0x2e7bfe=_0x280732['normalizedStyles']['find'](_0x54513e=>_0x54513e['isDefault'])?.['name'];_0x10eb98['enableCommand']('mediaStyle',(_0x569d68,_0x35dd81)=>{const _0x4f8f99=_0x3c1c86['plugins']['get']('Users')['me'],_0x47439a=_0x3c1c86['commands']['get']('mediaStyle'),_0x403fef=function(_0x25fcb0){const _0x50f7ef=_0x25fcb0['model']['document']['selection']['getSelectedElement']();return _0x50f7ef&&_0x50f7ef['is']('element','media')?_0x50f7ef:null;}(_0x3c1c86);if(!_0x403fef)return;const _0x4b0713=_0x3c1c86['model']['createRangeOn'](_0x403fef);let _0x48ba1f=_0x47439a['value'];if(_0x48ba1f==_0x35dd81['value'])return;const _0x585af8={'commandName':'mediaStyle','commandParams':[_0x35dd81],'formatGroupId':_0x51282a()};_0x3c1c86['model']['change'](()=>{_0x10eb98['getSuggestions']()['filter'](_0x14f27c=>_0x14f27c['isInContent']&&_0x4f8f99==_0x14f27c['author']&&'formatBlock'==_0x14f27c['type']&&'mediaStylePostApply'==_0x14f27c['subType']&&_0x14f27c['getFirstRange']()['isEqual'](_0x4b0713))['forEach'](_0x5c2a65=>_0x10eb98['discardSuggestion'](_0x5c2a65['head'])),_0x47439a['refresh'](),_0x48ba1f=_0x47439a['value'],_0x48ba1f!=_0x35dd81['value']&&_0x10eb98['markBlockFormat'](_0x403fef,{..._0x585af8,'commandReversedParams':[{'value':'string'==typeof _0x48ba1f?_0x48ba1f:null}]},[],'mediaStylePostApply');});}),_0x10eb98['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x10eb98['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1fd361,_0x345471)=>{_0x10eb98['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1fd361,{'commandName':_0x345471['commandName'],'commandParams':_0x345471['commandReversedParams']});}),_0x10eb98['descriptionFactory']['registerDescriptionCallback'](_0x2ec8e1=>{if('formatBlock'!=_0x2ec8e1['type'])return;const {data:_0x461d7a}=_0x2ec8e1;if(!_0x461d7a||'mediaStyle'!=_0x461d7a['commandName'])return;const _0x1e6c40=_0x461d7a['commandParams'][0x0]['value']||_0x2e7bfe;if(!_0x1e6c40)return;const _0x50eb1e=_0x513395[_0x1e6c40]||_0x1e6c40;return{'type':'format','content':Ot(_0x246c8f,'*Format:*\x20%0',_0x50eb1e)};});}},Re=class extends _0x1f600{afterInit(){const _0x3889cd=this['editor'];_0x3889cd['plugins']['has']('MentionEditing')&&_0x3889cd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x1f600{afterInit(){const _0x3f8dd2=this['editor'];if(!_0x3f8dd2['plugins']['has']('MergeFieldsEditing'))return;const _0x42fd08=_0x3f8dd2['plugins']['get']('TrackChangesEditing'),_0x3534ca=_0x3f8dd2['locale'];_0x42fd08['enableCommand']('insertMergeField'),_0x42fd08['enableCommand']('insertMergeFieldBlock'),_0x42fd08['enableCommand']('insertMergeFieldImage'),_0x42fd08['descriptionFactory']['registerElementLabel']('mergeField',_0x2e6ed8=>Ot(_0x3534ca,'ELEMENT_MERGE_FIELD',_0x2e6ed8)),_0x42fd08['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x426a67=>Ot(_0x3534ca,'ELEMENT_MERGE_FIELD',_0x426a67)),_0x42fd08['descriptionFactory']['registerDescriptionCallback'](_0x3663b9=>{if('insertion'!=_0x3663b9['type']&&'deletion'!=_0x3663b9['type'])return;const _0x2bd27b=_0x3663b9['getContainedElement']();if(null==_0x2bd27b)return;const _0x55aa28=_0x3f8dd2['plugins']['get']('MergeFieldsEditing');let _0xb2b20f;switch(_0x55aa28['getMergeFieldType'](_0x2bd27b)){case null:return;case'image':{const _0x188464=_0x55aa28['unwrapAffixes'](_0x2bd27b['getAttribute']('src'));_0xb2b20f=_0x55aa28['getLabel'](_0x188464)||_0x188464;break;}default:{const _0x35f43f=_0x2bd27b['getAttribute']('id');_0xb2b20f=_0x55aa28['getLabel'](_0x35f43f)||_0x35f43f;break;}}return'insertion'==_0x3663b9['type']?{'type':'insertion','content':Ot(_0x3534ca,'*Insert:*\x20%0','\x22'+_0xb2b20f+'\x22\x20'+Ot(_0x3534ca,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x3534ca,'*Remove:*\x20%0','\x22'+_0xb2b20f+'\x22\x20'+Ot(_0x3534ca,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x1f600{afterInit(){const _0x3c3848=this['editor'],_0x362187=_0x3c3848['plugins']['get']('TrackChangesEditing');_0x3c3848['plugins']['has']('MultiLevelList')&&(_0x362187['enableDefaultAttributesIntegration']('multiLevelList'),_0x362187['descriptionFactory']['registerDescriptionCallback'](_0x4b234a=>this['handleDescriptions'](_0x4b234a)));}handleDescriptions(_0x4a1e55){const _0x3b2723=this['editor']['locale'],{data:_0x5a29df}=_0x4a1e55,_0x245a8e={'type':'format','content':''};if(_0x5a29df&&'listMarkerStyle'==_0x5a29df['key']){if(!_0x5a29df['oldValue'])return{'type':'format','content':Ot(_0x3b2723,'*Set\x20format:*\x20%0',Ot(_0x3b2723,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a29df['newValue']+')'};if(!_0x5a29df['newValue']){let _0x5dbc10=_0x4a1e55['head'];for(;_0x5dbc10;){if(_0x5dbc10['data']&&'listType'==_0x5dbc10['data']['key']&&_0x5dbc10['data']['newValue'])return _0x245a8e;_0x5dbc10=_0x5dbc10['next'];}return{'type':'format','content':Ot(_0x3b2723,'*Remove\x20format:*\x20%0',Ot(_0x3b2723,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a29df['oldValue']+')'};}}}},Se=class extends _0x1f600{afterInit(){const _0x1abb03=this['editor'];if(!_0x1abb03['plugins']['has']('PageBreakEditing'))return;_0x1abb03['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2580f7=_0x1abb03['plugins']['get']('TrackChangesEditing'),_0xc4c969=_0x1abb03['locale'];_0x2580f7['descriptionFactory']['registerElementLabel']('pageBreak',_0x1cb68c=>Ot(_0xc4c969,'ELEMENT_PAGE_BREAK',_0x1cb68c));}},Me=class extends _0x1f600{afterInit(){const _0x42a398=this['editor'];if(!_0x42a398['plugins']['has']('Paragraph'))return;const _0x2348e2=_0x42a398['locale'],_0xa73b85=_0x42a398['plugins']['get']('TrackChangesEditing');_0xa73b85['descriptionFactory']['registerElementLabel']('paragraph',_0x2aa51d=>Ot(_0x2348e2,'ELEMENT_PARAGRAPH',_0x2aa51d)),_0xa73b85['enableDefaultAttributesIntegration']('paragraph'),_0xa73b85['enableCommand']('insertParagraph');const _0x4b6b6a=_0xa73b85['descriptionFactory'];_0x4b6b6a['registerDescriptionCallback'](_0x537849=>{if('insertion'!==_0x537849['type'])return;const {start:_0x14d154,end:_0x3f2144}=_0x537849['getFirstRange']();if(!_0x14d154['isTouching'](_0x3f2144)||!_0x14d154['nodeAfter'])return;const _0x5058fa=_0x42a398['model']['schema'],_0x225a1a=_0x14d154['nodeAfter'];return _0x5058fa['isBlock'](_0x225a1a)&&!_0x5058fa['isLimit'](_0x225a1a)&&_0x5058fa['checkChild'](_0x225a1a,'$text')?{'type':'insertion','content':Ot(_0x2348e2,'*Insert:*\x20%0',_0x4b6b6a['getItemLabel'](_0x225a1a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x446a18=this['editor'],_0x151e8b=_0x446a18['locale'];_0x446a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525f8d=>{if('formatBlock'!=_0x525f8d['type'])return;const {data:_0x15b046}=_0x525f8d;return _0x15b046&&'paragraph'==_0x15b046['commandName']?{'type':'format','content':Ot(_0x151e8b,'*Change\x20to:*\x20%0',Ot(_0x151e8b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x1f600{afterInit(){const _0x34d925=this['editor'];_0x34d925['commands']['get']('replaceSource')&&_0x34d925['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x1f600{afterInit(){const _0x522c60=this['editor'];_0x522c60['plugins']['has']('RemoveFormatEditing')&&(_0x522c60['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xf94ebc=this['editor'];_0xf94ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c782=>{if('formatBlock'!=_0x16c782['type']&&'formatInline'!=_0x16c782['type'])return;const {data:_0x177c45}=_0x16c782;return _0x177c45&&'removeFormat'==_0x177c45['commandName']?{'type':'format','content':Ot(_0xf94ebc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x1f600{afterInit(){const _0x1f5e97=this['editor'];if(!_0x1f5e97['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30db66=_0x1f5e97['plugins']['get']('TrackChangesEditing');_0x30db66['enableCommand']('goToPreviousRestrictedEditingException'),_0x30db66['enableCommand']('goToNextRestrictedEditingException');const _0x1c47f2=_0x1f5e97['plugins']['get']('RestrictedEditingModeEditing');_0x1c47f2['enableCommand']('trackChanges'),_0x1c47f2['enableCommand']('acceptSuggestion'),_0x1c47f2['enableCommand']('discardSuggestion'),_0x1c47f2['enableCommand']('acceptAllSuggestions'),_0x1c47f2['enableCommand']('discardAllSuggestions'),_0x1c47f2['enableCommand']('acceptSelectedSuggestions'),_0x1c47f2['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x1f600{afterInit(){const _0x443f77=this['editor'];if(!_0x443f77['plugins']['has']('ShiftEnter'))return;const _0x38e08e=_0x443f77['plugins']['get']('TrackChangesEditing');_0x38e08e['enableCommand']('shiftEnter'),_0x38e08e['descriptionFactory']['registerElementLabel']('softBreak',_0x5d95d4=>Ot(_0x443f77['locale'],'ELEMENT_LINE_BREAK',_0x5d95d4));}};function ve(_0x278faf,_0x303f0d,_0x1dae76){const _0x1a7e20=[];for(const _0x404edf of _0x303f0d['getItems']())_0x404edf['hasAttribute'](_0x278faf)&&_0x1a7e20['push'](_0x1dae76['createRangeOn'](_0x404edf));return _0x1a7e20;}var De=class extends _0x1f600{afterInit(){const _0x1dc6a5=this['editor'],_0x1bea4f=_0x1dc6a5['plugins']['get']('TrackChangesEditing');_0x1dc6a5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1bea4f['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xf20400=this['editor'],_0xee9b21=_0xf20400['model'],_0x222810=_0xf20400['locale'],_0x36c4c0=_0xf20400['plugins']['get']('TrackChangesEditing'),_0x9042f7='restrictedEditingException',_0x575368=_0xf20400['commands']['get'](_0x9042f7);_0x36c4c0['enableCommand'](_0x9042f7,(_0xdf550a,_0x47074b={})=>{const _0x32665e=_0xee9b21['document']['selection'];if(_0x32665e['isCollapsed'])return void _0xdf550a(_0x47074b);const _0xd9b216=void 0x0!==_0x47074b['forceValue']?_0x47074b['forceValue']:!_0x575368['value'];_0xee9b21['change'](()=>{const _0x24ce5c=Array['from'](_0x32665e['getRanges']());for(const _0x300d5b of _0x24ce5c){const _0x43a8ea=_0xd9b216?[_0x300d5b]:ve(_0x9042f7,_0x300d5b,_0xee9b21);for(const _0x2379d7 of _0x43a8ea)_0x36c4c0['markInlineFormat'](_0x2379d7,{'commandName':_0x9042f7,'commandParams':[{'forceValue':_0xd9b216}]});}});}),_0x36c4c0['descriptionFactory']['registerDescriptionCallback'](_0x4ab7d5=>{if('formatBlock'!=_0x4ab7d5['type']&&'formatInline'!=_0x4ab7d5['type'])return;const {data:_0x2b2d95}=_0x4ab7d5;return _0x2b2d95&&_0x2b2d95['commandName']==_0x9042f7?_0x2b2d95['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x222810,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x222810,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x2654b4=this['editor'],_0x49c9bb=_0x2654b4['locale'],_0x3c1f91=_0x2654b4['plugins']['get']('TrackChangesEditing'),_0x318059='restrictedEditingExceptionBlock',_0x4da19b=this['editor']['commands']['get'](_0x318059);_0x3c1f91['enableCommand'](_0x318059,(_0x24e4c8,_0x431d46={})=>{const _0x107458=this['editor']['model']['document']['selection'],_0x33e591=_0x431d46&&void 0x0!==_0x431d46['forceValue']?_0x431d46['forceValue']:!_0x4da19b['value'];let _0x15f543=[];_0x15f543=Ct(_0x33e591?Array['from'](_0x107458['getSelectedBlocks']())['filter'](_0x13772e=>function(_0x2d786a){return!!_0x2d786a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x13772e)||function(_0x144611,_0x321518){const _0x25d7ae=_0x321518['createContext'](_0x144611['parent']);return!!_0x321518['checkChild'](_0x25d7ae,'restrictedEditingException')&&!!_0x321518['checkChild'](_0x25d7ae['push']('restrictedEditingException'),_0x144611);}(_0x13772e,this['editor']['model']['schema'])):Array['from'](_0x107458['getSelectedBlocks']())['map'](_0x269f67=>function(_0x135968){let _0x349a38=_0x135968;for(;_0x349a38['parent'];){if('restrictedEditingException'==_0x349a38['parent']['name'])return _0x349a38;_0x349a38=_0x349a38['parent'];}return null;}(_0x269f67))['filter'](_0x548bb0=>!!_0x548bb0),_0x2654b4['model']),_0x2654b4['model']['change'](()=>{for(const _0x220beb of _0x15f543)_0x3c1f91['markBlockFormat'](_0x220beb,{'commandName':_0x318059,'commandParams':[{'forceValue':_0x33e591}]});});}),_0x3c1f91['descriptionFactory']['registerDescriptionCallback'](_0x4b4a55=>{const {data:_0x301874}=_0x4b4a55;if(_0x301874&&_0x301874['commandName']==_0x318059)return _0x301874['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x49c9bb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x49c9bb,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x1f600{afterInit(){const _0x2bc12f=this['editor'];_0x2bc12f['plugins']['has']('Style')&&_0x2bc12f['plugins']['has']('DataSchema')&&(_0x2bc12f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3e0b8d=this['editor'],_0x1bac39=_0x3e0b8d['locale'];_0x3e0b8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x285284=>{if('formatBlock'!=_0x285284['type']&&'formatInline'!=_0x285284['type'])return;const {data:_0x958468}=_0x285284;return _0x958468&&'style'===_0x958468['commandName']?_0x958468['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1bac39,'*Set\x20format:*\x20%0',_0x958468['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1bac39,'*Remove\x20format:*\x20%0',_0x958468['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x1f600{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x36cb0e){super(_0x36cb0e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x130f1a=this['editor'],_0x30dbc0=_0x130f1a['model']['document']['selection'];if(!_0x130f1a['plugins']['has']('TableEditing'))return;const _0x3cab6d=_0x130f1a['locale'],_0x151352=_0x130f1a['plugins']['get']('TrackChangesEditing'),_0x141e90=_0x130f1a['plugins']['get']('TableUtils');_0x151352['descriptionFactory']['registerElementLabel']('table',_0x270c93=>Ot(_0x3cab6d,'ELEMENT_TABLE',_0x270c93)),this['_setupColumnsRowsFixing'](),_0x151352['enableCommand']('insertTable'),_0x151352['enableCommand']('selectTableRow'),_0x151352['enableCommand']('selectTableColumn');for(const _0x455723 of['insertTableRowAbove','insertTableRowBelow']){const _0x5dd69f=_0x130f1a['commands']['get'](_0x455723);_0x151352['enableCommand'](_0x455723,_0x19511a=>{_0x130f1a['model']['change'](_0x187e76=>{_0x19511a();const _0x589b47='above'===_0x5dd69f['order'],_0x86f0b7=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x30613b=_0x141e90['getRowIndexes'](_0x86f0b7),_0x141ec0=_0x589b47?_0x30613b['first']-0x1:_0x30613b['last']+0x1,_0xcb622d=_0x86f0b7[0x0]['findAncestor']('table'),_0x5cfbae=_0x141e90['createTableWalker'](_0xcb622d,{'startRow':_0x141ec0,'endRow':_0x141ec0}),_0x30d33c=Array['from'](_0x5cfbae)['map'](_0x556637=>_0x187e76['createRangeOn'](_0x556637['cell']));_0x151352['markMultiRangeInsertion'](_0x30d33c,'tableRow');});});}for(const _0x7f42e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x198d92=_0x130f1a['commands']['get'](_0x7f42e7);_0x151352['enableCommand'](_0x7f42e7,_0x4ba6ee=>{_0x130f1a['model']['change'](_0x52bad6=>{_0x4ba6ee();const _0x133e06='left'===_0x198d92['order'],_0x33179b=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x20d9b9=_0x141e90['getColumnIndexes'](_0x33179b),_0x1ec2cb=_0x133e06?_0x20d9b9['first']-0x1:_0x20d9b9['last']+0x1,_0x59fde6=_0x33179b[0x0]['findAncestor']('table'),_0x497777=_0x141e90['createTableWalker'](_0x59fde6,{'startRow':0x0,'column':_0x1ec2cb,'includeAllSlots':!0x1}),_0x4f4122=Array['from'](_0x497777)['map'](_0x1df0b5=>_0x52bad6['createRangeOn'](_0x1df0b5['cell']));_0x151352['markMultiRangeInsertion'](_0x4f4122,'tableColumn');});});}for(const _0x21adee of['removeTableRow','removeTableColumn']){const _0x4c7e6b=_0x21adee['substr'](0xb),_0x423a2f=_0x4c7e6b['toLowerCase'](),_0x560161=_0x423a2f['substr'](0x0,0x3)+'span',_0x1b571d='table'+_0x4c7e6b,_0x1960a7='min'+_0x4c7e6b,_0x25fd36='max'+_0x4c7e6b;_0x151352['enableCommand'](_0x21adee,()=>{_0x130f1a['model']['change'](_0x2b68e6=>{const _0x343da6=_0x141e90['getSelectionAffectedTableCells'](_0x30dbc0),_0x2cb3b6=_0x343da6[0x0]['findAncestor']('table');let _0x130a54;if('removeTableRow'==_0x21adee){const _0xe6c160=_0x141e90['getRowIndexes'](_0x343da6);_0x130a54={'startRow':_0xe6c160['first'],'endRow':_0xe6c160['last'],'includeAllSlots':!0x0};}else{const _0x59700f=_0x141e90['getColumnIndexes'](_0x343da6);_0x130a54={'startColumn':_0x59700f['first'],'endColumn':_0x59700f['last'],'includeAllSlots':!0x0};}const _0x484b59=_0x141e90['createTableWalker'](_0x2cb3b6,_0x130a54),_0xad6d50=Array['from'](_0x484b59)['map'](({cell:_0x52d172})=>_0x52d172),_0x2759c6=xe(_0xad6d50['filter'](_0x3c1877=>_0x3c1877['hasAttribute'](_0x560161))),_0x566a5f=xe(_0xad6d50['filter'](_0x9d1e84=>!_0x9d1e84['hasAttribute'](_0x560161)))['map'](_0x28b8c3=>_0x2b68e6['createRangeOn'](_0x28b8c3)),_0x58c2d9=_0x151352['markMultiRangeDeletion'](_0x566a5f,_0x1b571d);if(_0x58c2d9&&('tableRow'==_0x58c2d9['subType']||'tableColumn'==_0x58c2d9['subType'])){const _0x3f2ad5=this['_getSuggestionCoords'](_0x58c2d9);for(const _0x7f496d of _0x2759c6){const _0x4147f2=_0x2b68e6['createRangeOn'](_0x7f496d),_0x3cd576=_0x141e90['getCellLocation'](_0x7f496d),_0x5b1587=_0x7f496d['getAttribute'](_0x560161)-0x1,_0x457483=_0x3f2ad5[_0x1960a7],_0x35219d=_0x3f2ad5[_0x25fd36];_0x457483<=_0x3cd576[_0x423a2f]&&_0x3cd576[_0x423a2f]+_0x5b1587<=_0x35219d&&_0x58c2d9['addRange'](_0x4147f2);}}});});}function _0x20a3de(_0x1fa126){const _0x23faa0=Array['from'](_0x30dbc0['getRanges']())['map'](_0x48f7fa=>ot['fromRange'](_0x48f7fa));_0x130f1a['model']['change'](_0x81daf4=>{const _0x3d313e=_0x81daf4['batch'];_0x1fa126=_0x1fa126['filter'](_0xe22d90=>'$graveyard'!=_0xe22d90['root']['rootName']),_0x81daf4['setSelection'](_0x1fa126),_0x130f1a['commands']['get']('removeTableRow')['refresh'](),_0x130f1a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x130f1a['model']['enqueueChange'](()=>{_0x130f1a['model']['enqueueChange'](_0x3d313e,_0x48a00a=>{const _0x3fbd33=_0x23faa0['filter'](_0x59c4bb=>'$graveyard'!=_0x59c4bb['root']['rootName']);_0x3fbd33['length']>0x0&&_0x48a00a['setSelection'](_0x3fbd33);for(const _0xec946c of _0x23faa0)_0xec946c['detach']();});});});}function _0x4d386f(_0x222f23){_0x130f1a['model']['change'](_0x349efb=>{const _0x161f3c=Array['from'](_0x30dbc0['getRanges']())['map'](_0x51a987=>ot['fromRange'](_0x51a987)),_0x59c8c5=[];for(const _0x5796d3 of _0x222f23)for(const _0x3ea442 of _0x5796d3['getItems']({'shallow':!0x0}))_0x59c8c5['push'](_0x3ea442);for(const _0x140864 of _0x59c8c5)'$graveyard'!=_0x140864['root']['rootName']&&(_0x349efb['setSelection'](_0x349efb['createPositionAt'](_0x140864,0x0)),_0x130f1a['commands']['get']('removeTableColumn')['refresh'](),_0x130f1a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x458411=_0x161f3c['filter'](_0xd5a9d4=>'$graveyard'!=_0xd5a9d4['root']['rootName']);_0x458411['length']>0x0&&_0x349efb['setSelection'](_0x458411);for(const _0x2c22b6 of _0x161f3c)_0x2c22b6['detach']();});}function _0x24516f(_0x5badca,_0x50a36d){return _0x50a36d['every'](_0x4ca8bf=>_0x5badca['some'](_0x286886=>_0x286886['end']['isEqual'](_0x4ca8bf['start'])||_0x4ca8bf['end']['isEqual'](_0x286886['start'])));}function _0x48cd42(_0x1ae223,_0x2f0d07){return!_0x1ae223['some'](_0x1d3c5c=>_0x2f0d07['some'](_0x7d7941=>_0x1d3c5c['isIntersecting'](_0x7d7941)))&&_0x1ae223['some'](_0x19239e=>_0x2f0d07['some'](_0x1492c9=>_0x19239e['end']['isTouching'](_0x1492c9['start'])));}_0x151352['descriptionFactory']['registerDescriptionCallback'](_0x935fc=>{if('insertion'!=_0x935fc['type']&&'deletion'!=_0x935fc['type'])return;const _0x367242=_0x935fc['getContainedElement']();if(null!=_0x367242&&_0x367242['is']('element','table')){if('insertion'==_0x935fc['type']){const _0xecaa2=_0x935fc['getItems']()['filter'](_0x40c2eb=>_0x40c2eb['is']('$textProxy'))['map'](_0x1ed825=>_0x1ed825['data']);if(_0xecaa2['length'])return{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xecaa2['join']('\x20')+'\x22'))};}if('deletion'==_0x935fc['type']){const _0x5855f5=_0x935fc['getItems']()['filter'](_0x43e059=>_0x43e059['is']('$textProxy'))['map'](_0x46bf25=>_0x46bf25['data']);if(_0x5855f5['length'])return{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5855f5['join']('\x20')+'\x22'))};}}}),_0x151352['descriptionFactory']['registerDescriptionCallback'](_0x140613=>{if('tableRow'==_0x140613['subType']){const _0x1ae4b4=_0x140613['getItems']()['filter'](_0x5bec76=>_0x5bec76['is']('$textProxy'))['map'](_0x50ae8e=>_0x50ae8e['data']),_0x1a4a3c=this['_getSuggestionCoords'](_0x140613),_0x22e2ff=_0x1a4a3c['maxRow']-_0x1a4a3c['minRow']+0x1;if('insertion'==_0x140613['type'])return _0x1ae4b4['length']?{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22e2ff,'\x22'+_0x1ae4b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW',_0x22e2ff))};if('deletion'==_0x140613['type'])return _0x1ae4b4['length']?{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22e2ff,'\x22'+_0x1ae4b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_ROW',_0x22e2ff))};}if('tableColumn'==_0x140613['subType']){const _0x509cac=_0x140613['getItems']()['filter'](_0x2f1ea9=>_0x2f1ea9['is']('$textProxy'))['map'](_0x2adc95=>_0x2adc95['data']),_0x39f5b8=this['_getSuggestionCoords'](_0x140613),_0x48bc43=_0x39f5b8['maxColumn']-_0x39f5b8['minColumn']+0x1;if('insertion'==_0x140613['type'])return _0x509cac['length']?{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48bc43,'\x22'+_0x509cac['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3cab6d,'*Insert:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN',_0x48bc43))};if('deletion'==_0x140613['type'])return _0x509cac['length']?{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48bc43,'\x22'+_0x509cac['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3cab6d,'*Remove:*\x20%0',Ot(_0x3cab6d,'ELEMENT_TABLE_COLUMN',_0x48bc43))};}}),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20a3de),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20a3de),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4d386f),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4d386f),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x24516f),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x24516f),_0x151352['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48cd42),_0x151352['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48cd42);}_acceptFormatSuggestionCallbackFactory(){const _0x58a373=this['editor'],_0x290652=_0x58a373['model']['document']['selection'];return(_0x37fad9,_0x2ba474)=>{_0x58a373['model']['change'](_0x29c76b=>{const {commandName:_0x581a5a,commandParams:_0x4068de}=_0x2ba474;let _0x2d5366=_0x37fad9[0x0]['end']['nodeBefore'];_0x4068de&&_0x4068de[0x0]&&!0x1===_0x4068de[0x0]['forceValue']&&(_0x2d5366=_0x37fad9[0x0]['start']['nodeAfter']);const _0x5ffb7c=_0x29c76b['createRangeIn'](_0x2d5366);if('$graveyard'==_0x5ffb7c['root']['rootName'])return;const _0x3a6ba6=Array['from'](_0x290652['getRanges']())['map'](_0x33baa6=>ot['fromRange'](_0x33baa6));_0x29c76b['setSelection'](_0x5ffb7c),_0x58a373['commands']['get'](_0x581a5a)['refresh'](),_0x4068de['push']({'forceDefaultExecution':!0x0}),_0x58a373['execute'](_0x581a5a,..._0x4068de);const _0x4f5eea=_0x3a6ba6['filter'](_0x3d10fe=>'$graveyard'!=_0x3d10fe['root']['rootName']);_0x4f5eea['length']>0x0&&_0x29c76b['setSelection'](_0x4f5eea);for(const _0x59db04 of _0x3a6ba6)_0x59db04['detach']();});};}_getCoordsForCells(_0x1e2184){const _0x2674aa=this['editor']['plugins']['get']('TableUtils');let _0x5283d3=Number['MAX_SAFE_INTEGER'],_0x5b6d18=Number['MIN_SAFE_INTEGER'],_0x367534=Number['MAX_SAFE_INTEGER'],_0xfd3772=Number['MIN_SAFE_INTEGER'];for(const _0x4c7cbf of _0x1e2184){if('$graveyard'==_0x4c7cbf['root']['rootName'])continue;const {row:_0x5ae7cb,column:_0x2eeaf6}=_0x2674aa['getCellLocation'](_0x4c7cbf),_0x5183d6=_0x4c7cbf['hasAttribute']('rowspan')?_0x4c7cbf['getAttribute']('rowspan')-0x1:0x0,_0x2d8032=_0x4c7cbf['hasAttribute']('colspan')?_0x4c7cbf['getAttribute']('colspan')-0x1:0x0;_0x5283d3=_0x5ae7cb<_0x5283d3?_0x5ae7cb:_0x5283d3,_0x5b6d18=_0x5ae7cb+_0x5183d6>_0x5b6d18?_0x5ae7cb+_0x5183d6:_0x5b6d18,_0x367534=_0x2eeaf6<_0x367534?_0x2eeaf6:_0x367534,_0xfd3772=_0x2eeaf6+_0x2d8032>_0xfd3772?_0x2eeaf6+_0x2d8032:_0xfd3772;}return{'minRow':_0x5283d3,'maxRow':_0x5b6d18,'minColumn':_0x367534,'maxColumn':_0xfd3772};}_setupColumnsRowsFixing(){const _0x9e41e8=this['editor'],_0x53e080=_0x9e41e8['plugins']['get']('TrackChangesEditing'),_0x3289bd=_0x9e41e8['plugins']['get']('TableUtils');_0x9e41e8['model']['document']['on']('change:data',()=>{const _0x5874f4=Array['from'](_0x9e41e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x312289,data:_0xb781d9}of _0x5874f4){const {group:_0x311a5c,id:_0x1c2fd6,subType:_0x495eaf}=et(_0x312289);if('suggestion'!=_0x311a5c)continue;if(null!=_0xb781d9['oldRange'])continue;const _0x2df555=_0x53e080['getSuggestion'](_0x1c2fd6);this['_tablePostFixingSubtypes']['includes'](_0x495eaf)&&this['_tableSuggestions']['add'](_0x2df555);}},{'priority':'low'});const _0x2eb936=(_0x15c174,_0x539450)=>{let _0x241ade=!0x1;const _0x4d91f3=_0x539450['createRangeOn'](_0x15c174),_0x45865b=_0x15c174['findAncestor']('table'),_0x88a5a1=_0x3289bd['getCellLocation'](_0x15c174);for(const _0x454f1 of this['_tableSuggestions']){const _0x359937=_0x454f1['subType'],_0x576759=_0x359937['startsWith']('tablePaste'),_0x13f1b0=_0x359937['substr'](_0x576759?0xa:0x5),_0x3af616=_0x13f1b0['toLowerCase'](),_0x3d00ac=_0x3af616['substr'](0x0,0x3)+'span',_0x382b4e='min'+_0x13f1b0,_0x9d2c1='max'+_0x13f1b0;if(!_0x454f1['isInContent'])continue;if(_0x45865b!=_0x454f1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x454f1['isIntersectingWithRange'](_0x4d91f3))continue;const _0x3a8d26=_0x15c174['hasAttribute'](_0x3d00ac)?_0x15c174['getAttribute'](_0x3d00ac)-0x1:0x0,_0x3b967a=this['_getSuggestionCoords'](_0x454f1),_0x567b3a=_0x3b967a[_0x382b4e],_0xc6dc70=_0x3b967a[_0x9d2c1];_0x567b3a<=_0x88a5a1[_0x3af616]&&_0x88a5a1[_0x3af616]+_0x3a8d26<=_0xc6dc70&&(_0x454f1['addRange'](_0x4d91f3),_0x241ade=!0x0);}return _0x241ade;};_0x9e41e8['model']['document']['registerPostFixer'](_0x52f4a9=>{let _0x21b76a=!0x1;for(const _0x12abdf of _0x9e41e8['model']['document']['differ']['getChanges']())if('insert'==_0x12abdf['type']){if('tableRow'==_0x12abdf['name']){for(const _0x10708d of _0x12abdf['position']['nodeAfter']['getChildren']())_0x21b76a=_0x21b76a||_0x2eb936(_0x10708d,_0x52f4a9);}else'tableCell'==_0x12abdf['name']&&(_0x21b76a=_0x21b76a||_0x2eb936(_0x12abdf['position']['nodeAfter'],_0x52f4a9));}return _0x21b76a;});}_getSuggestionCoords(_0xb2f5d9){return this['_getCoordsForCells'](_0xb2f5d9['getRanges']()['map'](_0x3bdea7=>_0x3bdea7['start']['nodeAfter']));}};function xe(_0x550aa8){return Array['from'](new Set(_0x550aa8)['values']());}var Ge=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x4be58c=this['editor'],_0x5667ff=_0x4be58c['model']['document']['selection'],_0x1695b2=_0x4be58c['locale'];if(!_0x4be58c['plugins']['has']('TableEditing'))return;const _0x3515ca=_0x4be58c['plugins']['get']('TrackChangesEditing'),_0x479179=_0x4be58c['plugins']['get']('TableUtils'),_0x1e6f54=_0x4be58c['plugins']['get'](Pe);_0x1e6f54['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3515ca['enableCommand']('mergeTableCells',()=>{const _0x20e896=_0x479179['getSelectionAffectedTableCells'](_0x4be58c['model']['document']['selection']);_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat'](_0x20e896,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4be58c['commands']['get']('mergeTableCells')['on']('execute',(_0x4aaaf5,_0x9987f0)=>{_0x4be58c['commands']['get']('trackChanges')['value']&&(_0x9987f0['length']>0x0&&_0x9987f0[_0x9987f0['length']-0x1]&&_0x9987f0[_0x9987f0['length']-0x1]['forceDefaultExecution']||_0x3515ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4aaaf5['stop']());},{'priority':'highest'});for(const _0x59fe87 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3ec3e9=_0x4be58c['commands']['get'](_0x59fe87);_0x3515ca['enableCommand'](_0x59fe87,()=>{const _0x395da4=_0x4be58c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53d614=>_0x53d614['is']('element','tableCell')),_0xda2d78=_0x3ec3e9['value'];_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat']([_0x395da4,_0xda2d78],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eec4a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33bac9=_0x4be58c['commands']['get'](_0x2eec4a);_0x3515ca['enableCommand'](_0x2eec4a,()=>{const _0xfbdb83=_0x479179['getSelectionAffectedTableCells'](_0x4be58c['model']['document']['selection']),_0x2715c0=_0xfbdb83[0x0]['findAncestor']('table'),_0x2377b2=new Set();for(const _0x1fed47 of _0xfbdb83){const {column:_0x4e23fe,row:_0x5ce0f9}=_0x479179['getCellLocation'](_0x1fed47),_0x1a31a4='horizontally'==_0x33bac9['direction']?_0x479179['createTableWalker'](_0x2715c0,{'startRow':_0x5ce0f9,'endRow':_0x5ce0f9,'includeAllSlots':!0x0}):_0x479179['createTableWalker'](_0x2715c0,{'column':_0x4e23fe,'includeAllSlots':!0x0});for(const {cell:_0x68b693}of _0x1a31a4)_0x2377b2['add'](_0x68b693);}_0x4be58c['model']['change'](()=>{_0x3515ca['markMultiRangeBlockFormat'](_0xfbdb83,{'commandName':_0x2eec4a,'commandParams':[]},Array['from'](_0x2377b2),_0x2eec4a);});});}_0x3515ca['descriptionFactory']['registerDescriptionCallback'](_0x272336=>{if('formatBlock'!=_0x272336['type']&&'formatInline'!=_0x272336['type'])return;const {data:_0x331c5b}=_0x272336;return _0x331c5b&&'mergeTableCells'==_0x331c5b['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Merge\x20cells*')}:void 0x0;}),_0x3515ca['descriptionFactory']['registerDescriptionCallback'](_0x284013=>{if('formatBlock'!=_0x284013['type']&&'formatInline'!=_0x284013['type'])return;const {data:_0x9551c7}=_0x284013;return _0x9551c7?'splitTableCellVertically'==_0x9551c7['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x9551c7['commandName']?{'type':'format','content':Ot(_0x1695b2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x412ed1=_0x1e6f54['_acceptFormatSuggestionCallbackFactory']();for(const _0x196a12 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x196a12,'accept',_0x412ed1);for(const _0x598c62 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x598c62,'accept',_0x57df62=>{_0x4be58c['model']['change'](_0x4667b4=>{const _0x191260=Array['from'](_0x57df62)['filter'](_0x36e876=>'$graveyard'!=_0x36e876['root']['rootName']&&!!_0x36e876['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x191260['length'])return;const _0x1cf553=Array['from'](_0x5667ff['getRanges']())['map'](_0x3d571f=>ot['fromRange'](_0x3d571f));_0x4667b4['setSelection'](_0x191260),_0x4be58c['commands']['get'](_0x598c62)['refresh'](),_0x4be58c['execute'](_0x598c62,{'forceDefaultExecution':!0x0});const _0x420f44=_0x1cf553['filter'](_0x390884=>'$graveyard'!=_0x390884['root']['rootName']);_0x420f44['length']>0x0&&_0x4667b4['setSelection'](_0x420f44);for(const _0x3f9d84 of _0x1cf553)_0x3f9d84['detach']();});});_0x3515ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x29609c=>{_0x4be58c['model']['change'](_0xf1f3dd=>{const _0x3e88cc=Array['from'](_0x5667ff['getRanges']())['map'](_0x49a4e0=>ot['fromRange'](_0x49a4e0));_0xf1f3dd['setSelection'](_0x29609c),_0x4be58c['commands']['get']('mergeTableCells')['refresh'](),_0x4be58c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5eab88=_0x3e88cc['filter'](_0x19d657=>'$graveyard'!=_0x19d657['root']['rootName']);_0x5eab88['length']>0x0&&_0xf1f3dd['setSelection'](_0x5eab88);for(const _0x32bc35 of _0x3e88cc)_0x32bc35['detach']();});});for(const _0x1e9351 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x509f30=_0x4be58c['commands']['get'](_0x1e9351);_0x509f30['on']('set:isEnabled',(_0x3b407f,_0x3d0c81,_0x2e6694)=>{if(_0x2e6694){const _0x501ec6=_0x4be58c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x483fbc=>_0x483fbc['is']('element','tableCell'));this['_areMergableCells'](_0x509f30['value'],_0x501ec6)||(_0x3b407f['return']=!0x1,_0x3b407f['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x12bc0d=this['editor']['commands']['get']('mergeTableCells'),_0x4952b9=this['editor']['plugins']['get']('TableUtils');if(!_0x12bc0d['isEnabled'])return!0x1;const _0x55cec3=_0x4952b9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2a89d2 of _0x55cec3)for(const _0x4594b1 of _0x55cec3)if(_0x2a89d2!=_0x4594b1&&!this['_areMergableCells'](_0x2a89d2,_0x4594b1))return!0x1;return!0x0;}['_areMergableCells'](_0x55ab68,_0x3f4e8e){const _0x321f87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ba18=this['editor']['model']['createRangeOn'](_0x55ab68),_0x2b11a5=this['editor']['model']['createRangeOn'](_0x3f4e8e),_0x4f832d=new Set(),_0x554d74=new Set();for(const _0x21c4bc of _0x321f87['getSuggestions']())if(('insertion'==_0x21c4bc['type']||'deletion'==_0x21c4bc['type']||'mergeTableCells'==_0x21c4bc['subType'])&&_0x21c4bc['isInContent']){for(const _0x18c26e of _0x21c4bc['getRanges']())_0x18c26e['containsRange'](_0x31ba18,!0x0)&&_0x4f832d['add'](_0x21c4bc['type']+':'+_0x21c4bc['author']['id']),_0x18c26e['containsRange'](_0x2b11a5,!0x0)&&_0x554d74['add'](_0x21c4bc['type']+':'+_0x21c4bc['author']['id']);}if(_0x4f832d['size']!=_0x554d74['size'])return!0x1;for(const _0x121e80 of _0x4f832d)if(!_0x554d74['has'](_0x121e80))return!0x1;return!0x0;}},He=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x5e5253=this['editor'];if(!_0x5e5253['plugins']['has']('TableEditing'))return;const _0x46f1a5=_0x5e5253['locale'],_0x3f11fd=_0x5e5253['plugins']['get']('TrackChangesEditing');_0x3f11fd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3f11fd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3f11fd['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x46f1a5,'FORMAT_HEADER_ROW')),_0x3f11fd['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x46f1a5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xe44d1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cbbbb=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0xe44d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cbbbb),_0xe44d1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cbbbb),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x58127e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a8a1=this['editor']['plugins']['get']('TableUtils');function _0x59c048({showActiveMarker:_0x425050=!0x0,setDataAttribute:_0x48428b=!0x0}={}){return(_0x3712ce,_0x2ebf48,_0x4ff15a)=>{const {type:_0x30b4d4,id:_0x57f599}=et(_0x2ebf48['markerName']);if(!_0x58127e['hasSuggestion'](_0x57f599))return;const _0x530cec=_0x58127e['getSuggestion'](_0x57f599),_0x5b69ec=_0x530cec['data'];if('formatBlock'!=_0x530cec['type']||!_0x5b69ec||'setTableColumnHeader'!=_0x5b69ec['commandName'])return;if(_0x2ebf48['item'])return void _0x3712ce['stop']();if(!_0x4ff15a['consumable']['consume'](_0x2ebf48['markerRange'],_0x3712ce['name']))return;const _0x1c154b=_0x2ebf48['markerRange']['start']['nodeAfter'],_0xf776b2=_0x2ebf48['markerRange']['end']['nodeBefore'],_0x491257=_0x1c154b['parent']['parent'],{column:_0x30bda3}=_0x34a8a1['getCellLocation'](_0x1c154b),{column:_0x131df1}=_0x34a8a1['getCellLocation'](_0xf776b2);for(let _0x4ae7d8=_0x30bda3;_0x4ae7d8<=_0x131df1;_0x4ae7d8++){const _0x4d6c47=_0x34a8a1['createTableWalker'](_0x491257,{'column':_0x4ae7d8,'includeAllSlots':!0x1});for(const _0x3cb7f1 of _0x4d6c47){const _0x2c0c82=_0x3cb7f1['cell'],_0x304beb=_0x4ff15a['mapper']['toViewElement'](_0x2c0c82);_0x4ff15a['writer']['addClass']('ck-suggestion-marker-'+_0x30b4d4,_0x304beb),_0x48428b&&_0x4ff15a['writer']['setAttribute']('data-suggestion',_0x57f599,_0x304beb),_0x4ff15a['mapper']['bindElementToMarker'](_0x304beb,_0x2ebf48['markerName']),_0x425050&&(_0x58127e['activeMarkers']['includes'](_0x2ebf48['markerName'])?_0x4ff15a['writer']['addClass']('ck-suggestion-marker--active',_0x304beb):_0x4ff15a['writer']['removeClass']('ck-suggestion-marker--active',_0x304beb));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x59c048(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5db58f,_0x47ba80,_0x4c9447)=>{_0x4c9447['options']['showSuggestionHighlights']&&_0x59c048({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5db58f,_0x47ba80,_0x4c9447);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13273f,_0x1c2a42,_0x5f138d)=>{const {type:_0x1229e0,id:_0x28c0af}=et(_0x1c2a42['markerName']);if(!_0x58127e['hasSuggestion'](_0x28c0af))return;const _0x427f91=_0x58127e['getSuggestion'](_0x28c0af),_0x2510f8=_0x427f91['data'];if('formatBlock'!=_0x427f91['type']||!_0x2510f8||'setTableColumnHeader'!=_0x2510f8['commandName'])return;const _0x3aa244=_0x5f138d['mapper']['markerNameToElements'](_0x1c2a42['markerName']);if(_0x3aa244){for(const _0x29683b of _0x3aa244)_0x5f138d['writer']['removeClass']('ck-suggestion-marker-'+_0x1229e0,_0x29683b),_0x5f138d['writer']['removeClass']('ck-suggestion-marker--active',_0x29683b),_0x5f138d['writer']['removeAttribute']('data-suggestion',_0x29683b),_0x5f138d['mapper']['unbindElementFromMarkerName'](_0x29683b,_0x1c2a42['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0xfcf846=this['editor'],_0x34b548=_0xfcf846['locale'];function _0x167b73(_0x3a9abb){return{'type':'format','content':Ot(_0x34b548,'*Format:*\x20%0',_0x3a9abb)};}_0xfcf846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a3f18=>{if('formatBlock'!=_0x3a3f18['type'])return;const {data:_0x289d5a}=_0x3a3f18;return _0x289d5a?'setTableRowHeader'==_0x289d5a['commandName']?_0x289d5a['commandParams'][0x0]['forceValue']?_0x167b73(Ot(_0x34b548,'FORMAT_HEADER_ROW')):_0x167b73(Ot(_0x34b548,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x289d5a['commandName']?_0x289d5a['commandParams'][0x0]['forceValue']?_0x167b73(Ot(_0x34b548,'FORMAT_HEADER_COLUMN')):_0x167b73(Ot(_0x34b548,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x2744ee=this['editor'];if(!_0x2744ee['plugins']['has']('TableEditing')||!_0x2744ee['config']['get']('table.enableFooters'))return;const _0x4eb04d=_0x2744ee['locale'],_0x1eda7f=_0x2744ee['plugins']['get']('TrackChangesEditing');_0x1eda7f['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1eda7f['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x4eb04d,'FORMAT_FOOTER_ROW'));}},We=class extends _0x1f600{afterInit(){const _0x3f3f3f=this['editor'],_0x38c854=_0x3f3f3f['locale'],_0x2a7339=_0x3f3f3f['plugins']['get']('TrackChangesEditing');function _0xda0af(_0x5dac0d){return{'type':'format','content':''+Ot(_0x38c854,'*Set\x20table\x20type:*\x20%0',_0x5dac0d)};}_0x3f3f3f['plugins']['has']('TableLayout')&&(_0x2a7339['enableCommand']('insertTableLayout'),_0x2a7339['enableDefaultAttributesIntegration']('tableType'),_0x2a7339['descriptionFactory']['registerElementLabel'](_0x337662=>_0x337662['is']('element','table')&&'layout'===_0x337662['getAttribute']('tableType'),_0x13d163=>Ot(_0x38c854,'ELEMENT_LAYOUT_TABLE',_0x13d163)),_0x2a7339['descriptionFactory']['registerDescriptionCallback'](_0x45b2ad=>{const {data:_0x2730e4}=_0x45b2ad;if(_0x2730e4&&'tableType'==_0x2730e4['key'])switch(_0x2730e4['newValue']){case'layout':return _0xda0af(Ot(_0x38c854,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xda0af(Ot(_0x38c854,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ve['map'](_0x88a5a8=>[_0x88a5a8,null]));var ze=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x5d651d=this['editor'];if(!_0x5d651d['plugins']['has']('TableClipboard'))return;const _0xce301d=_0x5d651d['plugins']['get']('TrackChangesEditing'),_0x19a78a=_0x5d651d['plugins']['get']('TableUtils'),_0x59e440=_0x5d651d['plugins']['get'](Pe),_0x7f188d=_0x5d651d['plugins']['get']('TableClipboard'),_0x291194=_0x5d651d['plugins']['get']('TableSelection'),_0x31ae31=_0x5d651d['plugins']['get'](ft);_0x59e440['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d651d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d651d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28b623=null,_0x1655b3=!0x1;_0x31ae31['on']('contentInsertion',(_0x3bf860,_0x4e376b)=>{_0x1655b3='paste'===_0x4e376b['method'];}),_0x5d651d['model']['on']('insertContent',(_0x250288,_0x558e67)=>{if(!_0x1655b3&&null===_0x291194['getSelectedTableCells']())return;const [_0x5937b1,_0x331e24]=_0x558e67,_0x5f3789=_0x558e67[_0x558e67['length']-0x1];_0x5f3789&&_0x5f3789['forceDefaultExecution']||_0xce301d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc08b1a,_0x1cafc7,_0x162846,_0x353301,_0x1f01aa){if(_0x1cafc7&&!_0x1cafc7['is']('documentSelection'))return!0x1;const _0x39fea0=_0x1f01aa['getTableIfOnlyTableInContent'](_0xc08b1a,_0x162846);if(!_0x39fea0||!Xe(_0x39fea0,void 0x0,_0x353301))return!0x1;const _0x2ab61e=_0x353301['getSelectionAffectedTableCells'](_0x162846['document']['selection']);if(!_0x2ab61e['length'])return!0x1;const _0x4e17a5=_0x2ab61e[0x0]['findAncestor']('table'),_0x41a89c=_0x353301['getRowIndexes'](_0x2ab61e),_0x348f9b=_0x353301['getColumnIndexes'](_0x2ab61e),_0x3558a0={'startRow':_0x41a89c['first'],'endRow':_0x41a89c['last'],'startColumn':_0x348f9b['first'],'endColumn':_0x348f9b['last']};return 0x1==_0x2ab61e['length']&&(_0x3558a0['endRow']+=_0x353301['getRows'](_0x39fea0)-0x1,_0x3558a0['endColumn']+=_0x353301['getColumns'](_0x39fea0)-0x1),Xe(_0x4e17a5,_0x3558a0,_0x353301);}(_0x5937b1,_0x331e24,_0x5d651d['model'],_0x19a78a,_0x7f188d)&&(_0x250288['stop'](),_0x28b623={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d651d['model']['change'](()=>{_0x5d651d['model']['insertContent'](_0x558e67[0x0],_0x558e67[0x1],_0x558e67[0x2],{'forceDefaultExecution':!0x0});const _0x5e4fb3=_0x51282a(),{rowInsertionRanges:_0x309433,columnInsertionRanges:_0x1b6b37,insertionRanges:_0x1172e6,deletionRanges:_0x45afe7,cells:_0x263b65}=_0x28b623;_0x309433['length']&&_0xce301d['markMultiRangeInsertion'](_0x309433,'tablePasteRow',{'tablePasteChainId':_0x5e4fb3}),_0x1b6b37['length']&&_0xce301d['markMultiRangeInsertion'](_0x1b6b37,'tablePasteColumn',{'tablePasteChainId':_0x5e4fb3}),_0x1172e6['length']&&(_0xce301d['markMultiRangeInsertion'](_0x1172e6,'tablePaste',{'tablePasteChainId':_0x5e4fb3,'skipNestingCheck':!0x0}),_0x1172e6['forEach'](_0x406b76=>_0x406b76['detach']?.())),_0x45afe7['length']&&(_0xce301d['markMultiRangeDeletion'](_0x45afe7,'tablePaste',{'tablePasteChainId':_0x5e4fb3,'skipNestingCheck':!0x0}),_0x45afe7['forEach'](_0x3596bf=>_0x3596bf['detach']?.()));const _0x308537=_0xce301d['markMultiRangeBlockFormat'](_0x263b65['map'](({element:_0x30fbbe})=>_0x30fbbe),{'formatGroupId':_0x51282a()},[],'tablePasteCell',{'tablePasteChainId':_0x5e4fb3});if(_0x308537){const _0x51cd1b=_0x308537['getMarkers'](),_0x568b04=[];for(const {element:_0x168c3b,attributes:_0x1270ab}of _0x263b65){if(!_0x1270ab)continue;const _0x4384d2=_0x5d651d['model']['createRangeOn'](_0x168c3b),_0xbe2660=_0x51cd1b['find'](_0x16d205=>_0x16d205['getRange']()['isEqual'](_0x4384d2));_0xbe2660&&_0x568b04['push']([_0xbe2660['name'],_0x1270ab]);}_0x568b04['length']&&_0x308537['setAttribute']('markerAttributes',Object['fromEntries'](_0x568b04));}_0x28b623=null;}));},{'priority':_0x15636f['high']+0xa}),_0x31ae31['on']('contentInsertion',()=>{_0x1655b3=!0x1;},{'priority':'lowest'}),_0x5d651d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x207334,_0x4ba277)=>{const [_0x4eadfd,_0x2e2699,,_0x3bf671]=_0x4ba277;if(!_0x28b623)return;_0x207334['stop']();const _0x46416c=_0x4eadfd['cell'],_0x33ce83=_0x2e2699,_0x65bcd8=Ke(_0x46416c),_0x43e9f2=Ke(_0x33ce83);_0x207334['return']=_0x46416c;let _0x39cba2=null,_0x17a049=null;if(_0x43e9f2||_0x65bcd8){if(_0x65bcd8&&!_0x43e9f2){_0x3bf671['remove'](_0x46416c['getChild'](0x0));for(const _0x3bb59d of Array['from'](_0x33ce83['getChildren']()))_0x3bf671['insert'](_0x3bb59d,_0x46416c,'end');const _0x373edc=_0x28b623['rowInsertionIndexes']['includes'](_0x4eadfd['row']),_0x17466b=_0x28b623['columnInsertionIndexes']['includes'](_0x4eadfd['column']);_0x373edc||_0x17466b||(_0x39cba2=ot['fromRange'](_0x3bf671['createRangeIn'](_0x46416c)));}else _0x43e9f2&&!_0x65bcd8&&(_0x17a049=_0x3bf671['createRangeIn'](_0x46416c));}else{const _0x24a14e=_0x3bf671['createElement']('tableCellSuggestion'),_0x34e79f=_0x3bf671['createElement']('tableCellSuggestion');_0x3bf671['wrap'](_0x3bf671['createRangeIn'](_0x46416c),_0x34e79f),_0x3bf671['insert'](_0x24a14e,_0x46416c,0x0);for(const _0x543510 of Array['from'](_0x33ce83['getChildren']()))_0x3bf671['insert'](_0x543510,_0x24a14e,'end');_0x39cba2=ot['fromRange'](_0x3bf671['createRangeOn'](_0x24a14e)),_0x17a049=ot['fromRange'](_0x3bf671['createRangeOn'](_0x34e79f));}const _0x3f70ea=Array['from'](_0x33ce83['getAttributes']())['filter'](([_0x4e6f9e])=>Ve['includes'](_0x4e6f9e));_0x28b623['cells']['push']({'element':_0x46416c,'attributes':_0x3f70ea['length']?Object['fromEntries'](_0x3f70ea):null}),_0x39cba2&&_0x28b623['insertionRanges']['push'](_0x39cba2),_0x17a049&&_0x28b623['deletionRanges']['push'](_0x17a049);},{'priority':'high'}),_0x19a78a['on']('insertColumns',(_0x2316ba,_0x543b35)=>{const [_0x45c4c5,_0x4357ba={}]=_0x543b35;if(!_0x28b623)return;const _0x4bcc78=_0x4357ba['at']||0x0,_0x1a759c=_0x4357ba['columns']||0x1;_0x28b623['columnInsertionIndexes']=new Array(_0x1a759c)['fill'](_0x4bcc78)['map']((_0x4eca51,_0xb441f5)=>_0x4eca51+_0xb441f5);for(const {cell:_0x122bdc}of _0x19a78a['createTableWalker'](_0x45c4c5,{'startColumn':_0x4bcc78,'endColumn':_0x4bcc78+_0x1a759c-0x1}))_0x28b623['columnInsertionRanges']['push'](_0x5d651d['model']['createRangeOn'](_0x122bdc));},{'priority':'low'}),_0x19a78a['on']('insertRows',(_0x432872,_0x1d791b)=>{const [_0x27000f,_0x3b4bbd={}]=_0x1d791b;if(!_0x28b623)return;const _0x4dfb6b=_0x3b4bbd['at']||0x0,_0x4fe70f=_0x3b4bbd['rows']||0x1;_0x28b623['rowInsertionIndexes']=new Array(_0x4fe70f)['fill'](_0x4dfb6b)['map']((_0xbff9cc,_0x57e535)=>_0xbff9cc+_0x57e535);for(const {cell:_0xf9eb43}of _0x19a78a['createTableWalker'](_0x27000f,{'startRow':_0x4dfb6b,'endRow':_0x4dfb6b+_0x4fe70f-0x1}))_0x28b623['rowInsertionRanges']['push'](_0x5d651d['model']['createRangeOn'](_0xf9eb43));},{'priority':'low'}),_0xce301d['descriptionFactory']['registerDescriptionCallback'](_0x3058a6=>{if(_0x3058a6['subType']&&_0x3058a6['subType']['startsWith']('tablePaste'))return _0x3058a6['previous']?{}:{'type':'insertion','content':Ot(_0x5d651d['locale'],'*Replace\x20table\x20cells*')};});const _0x332d37=()=>!0x1;for(const _0x23a4cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion',_0x23a4cc,'join',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('deletion',_0x23a4cc,'join',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23a4cc,'join',_0x332d37);_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x332d37),_0xce301d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xefe9a0,_0x4fb9a5,_0x29f777)=>{const _0x235cbe=_0xefe9a0['map'](_0x4ef818=>_0x4ef818['getContainedElement']())['filter'](_0x36c0da=>_0x36c0da),_0x16cfc9=new Map(_0x235cbe['map'](_0x51deb9=>[_0x51deb9,null]));if(_0x28b623){for(const {element:_0x4065b5,attributes:_0x3bc6ac}of _0x28b623['cells'])_0x3bc6ac&&_0x16cfc9['set'](_0x4065b5,_0x3bc6ac);}else{if(_0x29f777&&_0x29f777['markerAttributes'])for(const [_0xc36e14,_0x253aa3]of Object['entries'](_0x29f777['markerAttributes'])){const _0x1e48a2=_0x5d651d['model']['markers']['get'](_0xc36e14),_0x3d21d5=_0x1e48a2?_0x1e48a2['getRange']()['getContainedElement']():null;_0x3d21d5&&_0x16cfc9['set'](_0x3d21d5,_0x253aa3);}}_0x5d651d['model']['change'](_0x3c721b=>{for(const [_0xab4a1f,_0x4256f7]of _0x16cfc9)_0x3c721b['setAttributes']({...je,..._0x4256f7},_0xab4a1f);});});const _0xcbdf25=(_0x13c279,_0x5c86d7)=>{_0xce301d['_suggestionFactory']['registerCustomCallback'](_0x13c279,'tablePaste',_0x5c86d7,(_0x4758dd,_0x7ecec7,_0x5d7664)=>{_0x5d651d['model']['change'](_0x27aa2d=>{const _0x48db91=[];for(const _0x5eca4b of _0x4758dd){const _0x443297=_0x5eca4b['start']['nodeAfter'];_0x443297['is']('element','tableCellSuggestion')&&_0x48db91['push'](_0x443297);}_0xce301d['_suggestionFactory']['getSuggestionCallback'](_0x13c279,null,_0x5c86d7)(_0x4758dd,_0x7ecec7,_0x5d7664);for(const _0x2088c5 of _0x48db91)'$graveyard'!=_0x2088c5['root']['rootName']&&_0x27aa2d['unwrap'](_0x2088c5);});});};_0xcbdf25('insertion','accept'),_0xcbdf25('insertion','discard'),_0xcbdf25('deletion','accept'),_0xcbdf25('deletion','discard'),_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28f744=>{const _0x33a3c7=_0x28f744['map'](_0x40944d=>_0x40944d['getContainedElement']()),_0x2bf291=_0x33a3c7[0x0]['findAncestor']('table'),{minRow:_0x511d58,maxRow:_0x49b68d}=_0x59e440['_getCoordsForCells'](_0x33a3c7);_0x19a78a['removeRows'](_0x2bf291,{'at':_0x511d58,'rows':_0x49b68d-_0x511d58+0x1});}),_0xce301d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x479d73=>{const _0x3da758=_0x479d73['map'](_0x268048=>_0x268048['getContainedElement']()),_0x16d643=_0x3da758[0x0]['findAncestor']('table'),{minColumn:_0x3a204f,maxColumn:_0x44ca38}=_0x59e440['_getCoordsForCells'](_0x3da758);_0x19a78a['removeColumns'](_0x16d643,{'at':_0x3a204f,'columns':_0x44ca38-_0x3a204f+0x1});});const _0x159c5f=(_0x5482c3,_0x271ad7)=>{if(!_0x271ad7['subType']||!_0x271ad7['subType']['startsWith']('tablePaste'))return;const _0x24f217=_0x271ad7['attributes']['tablePasteChainId'],_0x46d8f9=_0xce301d['getSuggestions']()['filter'](_0x372145=>_0x372145['isInContent']&&_0x372145['attributes']&&_0x372145['attributes']['tablePasteChainId']==_0x24f217);_0x46d8f9['length']&&_0x271ad7['getAllAdjacentSuggestions']()['length']!=_0x46d8f9['length']&&_0x46d8f9['reduce']((_0x3b80e6,_0xaf3f52)=>(_0x3b80e6['next']=_0xaf3f52,_0xaf3f52['previous']=_0x3b80e6,_0xaf3f52));};function _0x3d93a1(_0x4d36f0,_0x551502=!0x0){const {id:_0x45daca,authorId:_0x438c6c}=et(_0x4d36f0['markerName']),_0x5b950b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33c6dc=_0xce301d['activeMarkers']['includes'](_0x4d36f0['markerName']);return _0x33c6dc&&_0x5b950b['push']('ck-suggestion-marker--active'),{'classes':_0x5b950b,'attributes':{'data-suggestion':_0x45daca,'data-author-id':_0x438c6c},'priority':_0x33c6dc&&_0x551502?0xbc2:0xbb8};}_0xce301d['on']('suggestionLoaded',_0x159c5f,{'priority':'high'}),_0xce301d['on']('suggestionUnloaded',_0x159c5f,{'priority':'high'}),_0x5d651d['model']['document']['registerPostFixer'](()=>{let _0xcab718=!0x1;const _0x142a21=Array['from'](_0x5d651d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a56c6,data:_0x95910d}of _0x142a21){const {group:_0x27768d,type:_0x31d037,id:_0x3d927d}=et(_0x4a56c6);if('suggestion'!=_0x27768d||'deletion'!=_0x31d037||_0x95910d['oldRange'])continue;if(!_0xce301d['hasSuggestion'](_0x3d927d))continue;const _0x2ca2c6=_0xce301d['getSuggestion'](_0x3d927d)['getRanges'](),_0x51dad8=_0x5d651d['plugins']['get']('Users')['me'];for(const _0x5b4e86 of _0xce301d['getSuggestions']())if(_0x5b4e86['isInContent']&&_0x5b4e86['author']==_0x51dad8&&'formatBlock'==_0x5b4e86['type']&&'tablePasteCell'==_0x5b4e86['subType']&&_0x5b4e86['getRanges']()['every'](_0x5a70af=>_0x2ca2c6['some'](_0x2fe7d5=>_0x2fe7d5['containsRange'](_0x5a70af,!0x0)))){for(const _0x492ef9 of _0x5b4e86['getAllAdjacentSuggestions']())_0x492ef9['isInContent']&&(_0x492ef9['discard'](),_0xcab718=!0x0);}}return _0xcab718;}),_0x5d651d['model']['document']['registerPostFixer'](_0x5929c5=>{const _0x49f962=_0x5d651d['commands']['get']('redo');if(!_0x49f962||!_0x49f962['_createdBatches']['has'](_0x5929c5['batch']))return!0x1;let _0x3ecd5f=!0x1;const _0x32eb60=_0x5d651d['plugins']['get']('Users')['me'],_0xdd4ea7=_0x5d651d['model']['document']['differ']['getChanges'](),_0x4b17bb=Array['from'](_0x5d651d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x844d9f,data:_0x1393e1})=>{const {group:_0x1af7b8,subType:_0x572306,authorId:_0x58a8e9}=et(_0x844d9f);return'suggestion'==_0x1af7b8&&'tablePaste'==_0x572306&&_0x58a8e9==_0x32eb60['id']&&!_0x1393e1['oldRange'];});for(const _0x1c7520 of _0xdd4ea7){if('insert'!=_0x1c7520['type']||'tableCellSuggestion'!=_0x1c7520['name']||0x1!=_0x1c7520['length'])continue;const _0x41b63c=_0x5929c5['createRange'](_0x1c7520['position'],_0x1c7520['position']['getShiftedBy'](0x1));if(!_0x4b17bb['find'](({data:_0x5e9954})=>_0x5e9954['newRange']['isEqual'](_0x41b63c))){for(const {name:_0x1d7f72,data:_0x327701}of _0x4b17bb)if(_0x41b63c['containsRange'](_0x327701['newRange'])){_0x5929c5['updateMarker'](_0x1d7f72,{'range':_0x41b63c}),_0x3ecd5f=!0x0;break;}}}return _0x3ecd5f;}),_0x5d651d['model']['document']['registerPostFixer'](_0x38a9f4=>{let _0x4cbf18=!0x1;const _0x326918=_0x5d651d['plugins']['get']('Users')['me'],_0x47d90b=_0xce301d['getSuggestions']()['filter'](_0x378cfd=>_0x378cfd['isInContent']&&_0x378cfd['author']==_0x326918),_0x3b8b4f=new Set(),_0x194055=new Set();for(const _0x53adc0 of _0x47d90b)if('tablePaste'==_0x53adc0['subType'])for(const _0x2c8697 of _0x53adc0['getMarkers']()){const _0x4c6142=_0x2c8697['getRange']()['getContainedElement']();if(_0x4c6142){if(_0x4c6142['is']('element','tableCellSuggestion')&&Ke(_0x4c6142)){_0x53adc0['removeMarker'](_0x2c8697['name']),_0x3b8b4f['add'](_0x4c6142),_0x4cbf18=!0x0;const _0x49f7e8=_0x4c6142['nextSibling'],_0x4c4703=_0x4c6142['previousSibling'],_0x181d1f=_0x49f7e8&&_0x49f7e8['is']('element','tableCellSuggestion'),_0x5e6f32=_0x4c4703&&_0x4c4703['is']('element','tableCellSuggestion');_0x181d1f&&!_0x3b8b4f['has'](_0x49f7e8)&&_0x194055['add'](_0x49f7e8),_0x5e6f32&&!_0x3b8b4f['has'](_0x4c4703)&&_0x194055['add'](_0x4c4703);}else _0x4c6142['is']('element','paragraph')&&_0x4c6142['isEmpty']&&(_0x53adc0['removeMarker'](_0x2c8697['name']),_0x4cbf18=!0x0);}}else{if('tablePasteCell'==_0x53adc0['subType']){if(!_0x53adc0['attributes']||!_0x53adc0['attributes']['tablePasteChainId'])continue;const _0x172164=_0x53adc0['attributes']['markerAttributes'];if(_0x172164&&Object['keys'](_0x172164)['length'])continue;const _0x4458f7=_0x53adc0['attributes']['tablePasteChainId'];let _0x425a1c=!0x0,_0xe998e2=!0x0;for(const _0x3c3b96 of _0x47d90b)if(_0x3c3b96['subType']&&_0x3c3b96['subType']['startsWith']('tablePaste')){if(!_0x3c3b96['attributes']['tablePasteChainId']){_0xe998e2=!0x1;break;}if(_0x3c3b96['id']!=_0x53adc0['id']&&_0x3c3b96['attributes']['tablePasteChainId']==_0x4458f7){_0x425a1c=!0x1;break;}}_0xe998e2&&_0x425a1c&&(_0x53adc0['removeMarkers'](),_0x4cbf18=!0x0);}}for(const _0x51ff47 of _0x3b8b4f)_0x38a9f4['remove'](_0x51ff47);for(const _0x21aba7 of _0x194055)_0x38a9f4['unwrap'](_0x21aba7);return _0x4cbf18;}),_0x5d651d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2eb466=>_0x3d93a1(_0x2eb466),'converterPriority':'high'}),_0x5d651d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a16a0,_0xaef54)=>_0xaef54['options']['showSuggestionHighlights']?_0x3d93a1(_0x3a16a0,!0x1):null,'converterPriority':'high'});const _0xac0f13=_0x5d651d['editing']['view'];this['listenTo'](_0xac0f13['document'],'clipboardOutput',(_0x5c8695,_0x52a4e0)=>{const _0x5ca5b9=[];for(const _0x47eded of _0xac0f13['createRangeIn'](_0x52a4e0['content'])['getItems']())_0x47eded['is']('element','suggestion-td')&&_0x5ca5b9['push'](_0x47eded);_0xac0f13['change'](_0x456c90=>{for(const _0x10d35a of _0x5ca5b9)_0x456c90['move'](_0x456c90['createRangeIn'](_0x10d35a),_0x456c90['createPositionBefore'](_0x10d35a)),_0x456c90['remove'](_0x10d35a);});});}};function Ke(_0x55f3e0){if(_0x55f3e0['isEmpty'])return!0x0;const _0x22039c=_0x55f3e0['getChild'](0x0);return _0x22039c['is']('element','paragraph')&&_0x22039c['isEmpty'];}function Xe(_0x20b591,_0x872dd={},_0x3c71cb){for(const {isAnchor:_0x10854a,cellHeight:_0x5ebf2a,cellWidth:_0x784910}of _0x3c71cb['createTableWalker'](_0x20b591,{'includeAllSlots':!0x0,..._0x872dd}))if(!_0x10854a||0x1!=_0x5ebf2a||0x1!=_0x784910)return!0x1;return!0x0;}var qe=class extends _0x1f600{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161783=this['editor']['plugins']['get']('TrackChangesEditing');_0x161783['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x161783['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x161783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x43b676=_0x161783['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x161783['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x20c00f,_0x253821)=>{_0x43b676(_0x20c00f,_0x253821),this['_restoreCellWidths'](_0x20c00f[0x0]['start']['nodeAfter'],_0x253821['commandParams'][0x0]['cellWidths']);}),_0x161783['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x301e09,_0x53c452){const _0x2d922a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e3f9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2ea2d1=_0x53c452['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f85b5=_0x18e3f9['getColumnGroupElement'](_0x2ea2d1);let _0x17387b=_0x2f85b5?_0x18e3f9['getTableColumnsWidths'](_0x2f85b5):null,_0x16dcea=_0x2ea2d1['getAttribute']('tableWidth')||null;const _0xae0ca5=_0x53c452['tableWidth']||_0x16dcea,_0x5ebb8a=_0x53c452['columnWidths']||_0x17387b;let _0x3256c3=this['_getCellWidths'](_0x2ea2d1);const _0x580015=this['_foldResizeTableSuggestion'](_0x2ea2d1);_0x580015&&(_0x16dcea=_0x580015['tableWidth'],_0x17387b=_0x580015['columnWidths'],_0x3256c3=_0x580015['cellWidths']||_0x3256c3),_0x301e09({'table':_0x2ea2d1,'tableWidth':_0xae0ca5,'columnWidths':_0x5ebb8a}),_0x2d922a['markBlockFormat'](_0x2ea2d1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16dcea,'columnWidths':_0x17387b,'cellWidths':_0x3256c3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x1127db,_0x39072a={}){if(void 0x0===_0x39072a['value']||''===_0x39072a['value'])return void _0x1127db(_0x39072a);const _0x5b6461=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53a789=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xfca994=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x39072a['batch']||(_0x39072a['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x39072a['batch'],()=>{const _0x2b9902=_0x53a789['getColumnGroupElement'](_0xfca994);let _0x12db2f=_0x2b9902?_0x53a789['getTableColumnsWidths'](_0x2b9902):null,_0x23c3ab=_0xfca994['getAttribute']('tableWidth')||null,_0x1d74ce=this['_getCellWidths'](_0xfca994);const _0x549f75=this['_foldResizeTableSuggestion'](_0xfca994,!0x0);_0x549f75&&(_0x23c3ab=_0x549f75['tableWidth'],_0x12db2f=_0x549f75['columnWidths'],_0x1d74ce=_0x549f75['cellWidths']||_0x1d74ce),_0x1127db(_0x39072a),_0x5b6461['markBlockFormat'](_0xfca994,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x23c3ab,'columnWidths':_0x12db2f,'cellWidths':_0x1d74ce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2535b7,_0x28657e=!0x1){const _0x14cd9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4af74d=this['editor']['plugins']['get']('Users')['me'];for(const _0x80bc67 of _0x14cd9d['getSuggestions']({'skipNotAttached':!0x0})){const _0x302caf=_0x80bc67['getContainedElement']();if('resizeTable'===_0x80bc67['subType']&&_0x302caf===_0x2535b7){_0x80bc67['author']!==_0x4af74d&&(_0x28657e?_0x80bc67['removeMarkers']():_0x80bc67['discard']());const _0x3d2d87=_0x80bc67['data']['commandParams'];return{'tableWidth':_0x3d2d87[0x0]['tableWidth'],'columnWidths':_0x3d2d87[0x0]['columnWidths'],'cellWidths':_0x3d2d87[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x3aa402){const _0x3291af=[];for(const _0x5eb95e of _0x3aa402['getChildren']())if(_0x5eb95e['is']('element','tableRow')){for(const _0x2f9fcd of _0x5eb95e['getChildren']())_0x3291af['push'](_0x2f9fcd['getAttribute']('tableCellWidth')||null);}return _0x3291af;}_restoreCellWidths(_0x4e521c,_0x17b943){_0x17b943&&this['editor']['model']['change'](_0x556b90=>{let _0x471a56=0x0;for(const _0xb38cb9 of _0x4e521c['getChildren']())if(_0xb38cb9['is']('element','tableRow'))for(const _0x2c2528 of _0xb38cb9['getChildren']()){const _0x7bc690=_0x17b943[_0x471a56++];_0x7bc690&&_0x556b90['setAttribute']('tableCellWidth',_0x7bc690,_0x2c2528);}});}handleSuggestionDescription(_0x814a79){if('formatBlock'!=_0x814a79['type']&&'formatInline'!=_0x814a79['type'])return;const {data:_0x3024ca}=_0x814a79;return _0x3024ca&&'resizeTable'===_0x3024ca['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x1f600{afterInit(){const _0x3c58ed=this['editor'];_0x3c58ed['plugins']['has']('Template')&&_0x3c58ed['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x1f600{afterInit(){const _0x7b510e=this['editor'];if(!_0x7b510e['commands']['get']('insertTableOfContents'))return;_0x7b510e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x248579=_0x7b510e['plugins']['get']('TrackChangesEditing'),_0x887871=_0x7b510e['locale'];_0x248579['descriptionFactory']['registerElementLabel']('tableOfContents',_0x161260=>Ot(_0x887871,'ELEMENT_TABLE_OF_CONTENTS',_0x161260));}},Ze=class extends _0x1f600{afterInit(){const _0x2d739e=this['editor'];_0x2d739e['plugins']['has']('Title')&&(_0x2d739e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x2d739e['locale'],'ELEMENT_TITLE')),_0x2d739e['model']['document']['registerPostFixer'](_0x120b23=>{let _0x3a1928=!0x1;const _0x4c37fe=Array['from'](_0x2d739e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10e7bd,data:_0x96d5cd}of _0x4c37fe){const {group:_0x295c11}=et(_0x10e7bd);if('suggestion'!==_0x295c11||!_0x96d5cd['newRange'])continue;const _0x59943e=_0x96d5cd['newRange'],_0x57f72d=_0x59943e['end']['nodeBefore'];if(!_0x57f72d||!_0x57f72d['is']('element','title-content'))continue;if(!_0x59943e['start']['isTouching'](_0x59943e['end']))continue;const _0x5abf29=_0x2d739e['model']['schema']['getNearestSelectionRange'](_0x59943e['end'],'forward');if(_0x5abf29&&_0x5abf29['isCollapsed']){const _0x4201a6=_0x120b23['createRange'](_0x59943e['start'],_0x5abf29['start']);_0x4201a6['isEqual'](_0x59943e)||(_0x120b23['updateMarker'](_0x10e7bd,{'range':_0x4201a6}),_0x3a1928=!0x0);}_0x3a1928||(_0x120b23['removeMarker'](_0x10e7bd),_0x3a1928=!0x0);}return _0x3a1928;}));}},Je=class extends _0x1f600{afterInit(){const _0x455365=this['editor'],_0x497450=_0x455365['plugins']['get']('TrackChangesEditing');_0x455365['plugins']['has']('Uploadcare')&&(_0x497450['enableCommand']('uploadcare'),_0x455365['plugins']['has']('UploadcareImageEdit')&&(_0x497450['enableCommand']('uploadcareImageEdit'),_0x497450['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x497450['descriptionFactory']['registerDescriptionCallback'](_0x1722ce=>{if('attribute'!=_0x1722ce['type'])return;const {data:_0x50bb18}=_0x1722ce;return _0x50bb18&&'uploadcareImageId'==_0x50bb18['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x1f600{afterInit(){const _0x5d3989=this['editor'],_0x53dc8c=_0x5d3989['plugins']['get']('TrackChangesEditing');_0x5d3989['plugins']['has']('UndoEditing')&&(_0x53dc8c['enableCommand']('undo'),_0x53dc8c['enableCommand']('redo'));}},en=class extends _0x1f600{static get requires(){return[Pe];}afterInit(){const _0x465ce1=this['editor'];_0x465ce1['plugins']['has']('TableCaptionEditing')&&_0x465ce1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x1f600{tableProperties;tableCellProperties;constructor(_0x17f0f4){super(_0x17f0f4),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 _0xd4d9c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x391b8f of this['tableProperties'])_0xd4d9c0['enableCommand'](_0x391b8f,(_0x3ecb04,_0x37d41c)=>{const _0x107539=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x391b8f,[_0x107539],this['tableProperties'],'tableProperties',_0x3ecb04,_0x37d41c);});_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd4d9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x129c05,_0x3ece39)=>this['handleDiscardAction'](this['tableProperties'],_0x129c05,_0x3ece39)),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc5a582 of this['tableCellProperties'])this['editor']['commands']['get'](_0xc5a582)&&_0xd4d9c0['enableCommand'](_0xc5a582,(_0x278812,_0x5aea67)=>{const _0x3c9bd6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc5a582,_0x3c9bd6,this['tableCellProperties'],'tableCellProperties',_0x278812,_0x5aea67);});_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd4d9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x496788,_0x3b2575)=>this['handleDiscardAction'](this['tableCellProperties'],_0x496788,_0x3b2575)),_0xd4d9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xd4d9c0['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xd4d9c0['descriptionFactory']['registerDescriptionCallback'](_0x58d8e0=>this['handleSuggestionDescription'](_0x58d8e0)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x5f0cd7,_0x1aa7f9,_0x43ddf1,_0x2ae033,_0x114f07,_0x174324){const _0x431232=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x174324['batch'],()=>{for(const _0x27824a of _0x1aa7f9)if(this['_getSuggestion'](_0x27824a,_0x2ae033))_0x114f07(_0x174324);else{const _0x51d992={};for(const _0xc6b5ad of _0x43ddf1){const _0x303c2f=_0x27824a['getAttribute'](_0xc6b5ad);void 0x0!==_0x303c2f&&(_0x51d992[_0xc6b5ad]=_0x303c2f);}const _0x5b61b6=this['_getResizedColumnWidths'](_0x27824a);_0x5b61b6&&(_0x51d992['columnWidths']=_0x5b61b6),_0x114f07(_0x174324),_0x431232['markBlockFormat'](_0x27824a,{'commandParams':[_0x51d992]},[],_0x2ae033);}});}handleDiscardAction(_0x471751,_0x2de353,_0xcf7053){const _0x345af1=_0x2de353[0x0]['start']['nodeAfter'],_0x32bf8e=_0xcf7053['commandParams'][0x0];this['editor']['model']['change'](_0x1be605=>{for(const _0x3940c7 of _0x471751)void 0x0!==_0x32bf8e[_0x3940c7]?_0x1be605['setAttribute'](_0x3940c7,_0x32bf8e[_0x3940c7],_0x345af1):_0x1be605['removeAttribute'](_0x3940c7,_0x345af1);if(_0x32bf8e['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x26f8e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xeb8c91=_0x26f8e6['getColumnGroupElement'](_0x345af1);if(_0xeb8c91){const _0x24d2cb=_0x26f8e6['getTableColumnsWidths'](_0xeb8c91),_0x72da59=_0x345af1['getAttribute']('tableWidth');if(('string'==typeof _0x72da59&&_0x72da59['trim']()['endsWith']('px'))!==_0x24d2cb['some'](_0xefb1d5=>'string'==typeof _0xefb1d5&&_0xefb1d5['endsWith']('px'))){const _0x105c77=_0x26f8e6['getTableColumnElements'](_0xeb8c91);_0x32bf8e['columnWidths']['forEach']((_0x24829d,_0x415cd9)=>{_0x105c77[_0x415cd9]&&_0x1be605['setAttribute']('columnWidth',_0x24829d,_0x105c77[_0x415cd9]);});}}}});}_getResizedColumnWidths(_0x52eb9a){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x52eb9a['is']('element','table'))return;const _0x4cc8e5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d4bdb=_0x4cc8e5['getColumnGroupElement'](_0x52eb9a);return _0x4d4bdb?_0x4cc8e5['getTableColumnsWidths'](_0x4d4bdb):void 0x0;}handleSuggestionDescription(_0x3f302f){if(_0x3f302f['data'])switch(_0x3f302f['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x5b7856,_0x4ed3cc){const _0x320659=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f180a of _0x320659['getSuggestions']({'skipNotAttached':!0x0})){const _0xfc1e30=_0x3f180a['getContainedElement']();if(_0x3f180a['subType']===_0x4ed3cc&&_0xfc1e30===_0x5b7856)return _0x3f180a;}return null;}_registerTablePropertiesAttributes(){const _0x49bab4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d53ac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5bb68f of _0x4d53ac){const _0x4125b6=_0x5bb68f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x49bab4['descriptionFactory']['registerAttributeLabel'](_0x5bb68f,Ot(this['editor']['locale'],'FORMAT_'+_0x4125b6));}}},sn=class extends _0x1f600{afterInit(){const _0x367aa0=this['editor'];if(!_0x367aa0['plugins']['has']('LineHeight'))return;const _0x5ba180=_0x367aa0['plugins']['get']('TrackChangesEditing'),_0xd77994=_0x367aa0['locale'];_0x5ba180['enableDefaultAttributesIntegration']('lineHeight'),_0x5ba180['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0xd77994,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x1f600{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x496d24,_0x323228,_0x340ac5,_0x3845e1,_0x5ad44d,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43ec5f){super(_0x43ec5f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2ce651,_0x4db08b,_0x49c4d3,_0x36c9bf)=>{this['_model']['change'](()=>{for(const _0xcd67ee of[..._0x36c9bf,..._0x49c4d3])this['_model']['markers']['has'](_0xcd67ee)&&_0x43ec5f['editing']['reconvertMarker'](_0xcd67ee);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x43ec5f['plugins']['get'](_0x496d24),this['_suggestionsConversion']=_0x43ec5f['plugins']['get'](_0x323228),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x43ec5f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43ec5f['config']['get']('trackChanges.trackFormatChanges'),_0x43ec5f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43ec5f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x43ec5f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x105a06=this['editor'];_0x105a06['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x46c280,{writer:_0x5d6992})=>{let _0x3309eb='suggestion:'+_0x46c280['getAttribute']('suggestion-type')+':'+_0x46c280['getAttribute']('id');return _0x46c280['getAttribute']('marker-count')&&(_0x3309eb+=':'+_0x46c280['getAttribute']('marker-count')),_0x5d6992['createElement']('$marker',{'data-name':_0x3309eb});}}),_0x105a06['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x105a06['model']['document']['registerPostFixer'](_0xe4a72a=>{let _0x167821=!0x1;const _0x2ebbfe=Array['from'](_0x105a06['model']['document']['differ']['getChangedMarkers']()),_0x7b62a9=new Set();for(const {name:_0x2f2f20,data:_0x1ad0f8}of _0x2ebbfe){const {group:_0x503e83,type:_0x52244c,subType:_0x2f978e,id:_0x11e680}=et(_0x2f2f20);if('suggestion'!==_0x503e83)continue;const _0x3ea7ce=_0x2f978e?'suggestion:'+_0x52244c+':'+_0x2f978e+':'+_0x11e680:'suggestion:'+_0x52244c+':'+_0x11e680,_0x38ba80=_0x105a06['model']['markers']['getMarkersGroup'](_0x3ea7ce),_0x19bf76=_0x105a06['model']['markers']['get'](_0x2f2f20),_0x30f8bd=this['_suggestions']['get'](_0x11e680);if(null!=_0x1ad0f8['newRange']){'formatInline'==_0x52244c&&(_0x167821=_0x167821||un(_0x1ad0f8['newRange'],_0x2f2f20,_0xe4a72a,_0x105a06['model']['schema']));const _0x2f1961='attribute'==_0x52244c&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x2f978e)),_0x3da356='attribute'==_0x52244c&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x2f978e));if(_0x1ad0f8['newRange']['isCollapsed']||'$graveyard'==_0x1ad0f8['newRange']['root']['rootName']||'formatBlock'==_0x52244c&&!hn(_0x1ad0f8['newRange'])||_0x2f1961&&!hn(_0x1ad0f8['newRange'])||_0x3da356&&gn(_0x1ad0f8['newRange'])||'deletion'==_0x52244c&&gn(_0x1ad0f8['newRange'])||_0x19bf76&&fn(_0x19bf76,_0x38ba80))_0xe4a72a['removeMarker'](_0x2f2f20),_0x167821=!0x0;else{if(!_0x30f8bd||!_0x30f8bd['isInContent'])continue;if(_0x1ad0f8['newRange']&&_0x1ad0f8['oldRange']&&_0x1ad0f8['newRange']['isEqual'](_0x1ad0f8['oldRange']))continue;_0x7b62a9['add'](_0x30f8bd);}}}return _0x7b62a9['size']>0x0&&(_0x167821=!!this['_joinWithAdjacentSuggestions'](_0x7b62a9)||_0x167821),_0x167821;}),_0x105a06['model']['document']['registerPostFixer'](_0x2ced4e=>{let _0x56ccf7=!0x1;for(const _0x111972 of _0x105a06['model']['document']['differ']['getChanges']())if('insert'==_0x111972['type'])for(const _0x19264e of this['_suggestions']['values']()){if(_0x19264e['isMultiRange']||!_0x19264e['isInContent'])continue;const _0x51aa95='formatBlock'==_0x19264e['type'],_0xa7191f=this['_getAttributeKey'](_0x19264e),_0x36eb56=_0xa7191f&&this['_suggestionsConversion']['isBlockAttribute'](_0xa7191f);if(!_0x51aa95&&!_0x36eb56)continue;const _0x5819eb=_0x19264e['getFirstRange']();if(_0x5819eb['start']['parent']!=_0x5819eb['end']['parent']&&!_0x5819eb['end']['isAtEnd']){const _0x5586d1=_0x105a06['model']['createPositionAt'](_0x5819eb['start']['nodeAfter'],'end'),_0x1cb841=_0x105a06['model']['createRange'](_0x5819eb['start'],_0x5586d1);_0x2ced4e['updateMarker'](_0x19264e['getFirstMarker'](),{'range':_0x1cb841}),_0x56ccf7=!0x0;}}return _0x56ccf7;}),_0x105a06['model']['document']['registerPostFixer'](_0x22d7ed=>this['_processAttributeChanges'](_0x22d7ed)),_0x105a06['model']['document']['registerPostFixer'](_0x94037a=>!_0x94037a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x94037a)),_0x105a06['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x105a06['model']['document']['on']('change:data',(_0x3cb7de,_0x5ab007)=>{if(!_0x5ab007['isLocal']||_0x5ab007['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56036d=_0x105a06['model']['document']['differ']['getChanges']();if(0x0==_0x56036d['length'])return;const _0x20bbc8=[],_0x5554bb=_0x56036d['filter'](_0x25c605=>'attribute'==_0x25c605['type']),_0x2841b4=_0x56036d['filter'](_0x340b94=>'insert'==_0x340b94['type']&&'$text'!=_0x340b94['name']);for(const _0x20ea66 of _0x5554bb)this['_suggestionsConversion']['isRegisteredAttribute'](_0x20ea66['attributeKey'])&&_0x20bbc8['push']({'key':_0x20ea66['attributeKey'],'newValue':_0x20ea66['attributeNewValue'],'oldValue':_0x20ea66['attributeOldValue'],'range':mn(_0x20ea66['range'],_0x105a06['model'])});for(const _0x4527d1 of _0x2841b4){if('rename'!=_0x4527d1['action']&&'refresh'!=_0x4527d1['action'])continue;const _0x4fddf9=En(_0x4527d1['position']['nodeAfter'],_0x105a06['model']),_0x2114c=_0x4527d1['before'];'rename'==_0x4527d1['action']&&_0x20bbc8['push']({'key':rn,'newValue':_0x4527d1['name'],'oldValue':_0x2114c['name'],'range':_0x4fddf9});for(const [_0x37d485,_0x27fc1a]of _0x2114c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x37d485))continue;const _0x1cb3ef=_0x4527d1['attributes']['get'](_0x37d485);_0x27fc1a!==_0x1cb3ef&&_0x20bbc8['push']({'key':_0x37d485,'newValue':_0x1cb3ef,'oldValue':_0x27fc1a,'range':_0x4fddf9});}for(const [_0x2b8c0f,_0x4c8aa0]of _0x4527d1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2b8c0f)&&(_0x2114c['attributes']['has'](_0x2b8c0f)||_0x20bbc8['push']({'key':_0x2b8c0f,'newValue':_0x4c8aa0,'oldValue':null,'range':_0x4fddf9}));}0x0!=_0x20bbc8['length']&&_0x105a06['model']['enqueueChange'](_0x5ab007,_0x236062=>{const _0x14b01f=_0x51282a();for(const {range:_0x4acb6c,key:_0x5c5f68,oldValue:_0xee4cbb,newValue:_0x1036dd}of _0x20bbc8)this['markAttributeChange'](_0x4acb6c,_0x5c5f68,_0xee4cbb,_0x1036dd,{'groupId':_0x14b01f});this['_reduceExistingSuggestions'](_0x236062,_0x20bbc8);});},{'priority':'lowest'}),_0x105a06['model']['markers']['on']('update:suggestion',(_0x4e3c44,_0x49dc9f,_0x37843e)=>{if(null==_0x37843e){const {id:_0x23d781}=et(_0x49dc9f['name']),_0x29c74d=this['_suggestions']['get'](_0x23d781);_0x29c74d&&_0x29c74d['addMarkerName'](_0x49dc9f['name']);}}),_0x105a06['model']['document']['on']('change:data',()=>{const _0x36ac87=Array['from'](_0x105a06['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5bb8f0=>'suggestion'===et(_0x5bb8f0['name'])['group']);if(0x0===_0x36ac87['length'])return;_0x36ac87['sort']((_0x4a89b2,_0x1654c8)=>{const _0x23cb63=_0x4a89b2['data']['oldRange'],_0x3ead5a=_0x1654c8['data']['oldRange'];return null===_0x23cb63&&null===_0x3ead5a?0x0:null===_0x23cb63&&null!==_0x3ead5a?-0x1:null!==_0x23cb63&&null===_0x3ead5a?0x1:_0x23cb63['start']['isBefore'](_0x3ead5a['start'])?-0x1:0x1;});const _0x4589f3=new Set(),_0x45da4e=new Set();for(const {name:_0xc60135,data:_0x2c8d60}of _0x36ac87){const {id:_0x2a81cc}=et(_0xc60135);if(null===_0x2c8d60['oldRange']){const _0xd80165=this['_handleNewSuggestionMarker'](_0xc60135);_0x45da4e['add'](_0xd80165);}else{const _0x1826f1=this['_suggestions']['get'](_0x2a81cc);null!==_0x2c8d60['newRange']||_0x1826f1['isInContent']?(_0x4589f3['add'](_0x1826f1['head']),_0x45da4e['add'](_0x1826f1)):this['_removeSuggestion'](_0x1826f1);}}_0x45da4e['size']>0x0&&this['_refreshSuggestionsChain'](_0x45da4e);for(const _0x1d7777 of _0x4589f3)this['fire']('suggestionChanged',_0x1d7777);}),_0x105a06['model']['on']('applyOperation',(_0x4456a0,_0x280e4d)=>{const _0x542c25=_0x280e4d[0x0];if(!this['_suggestions']['size'])return;if(!_0x542c25['isDocumentOperation'])return;if(_0x542c25['batch']['isUndo']||!_0x542c25['batch']['isLocal'])return;let _0x4b423a,_0x434846;switch(_0x542c25['type']){case'insert':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['position']),_0x434846=_0x4b423a['getShiftedBy'](_0x542c25['howMany']);break;case'split':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['splitPosition']),_0x434846=_0x105a06['model']['createPositionAt'](_0x542c25['moveTargetPosition']);break;case'move':_0x4b423a=_0x105a06['model']['createPositionAt'](_0x542c25['targetPosition']),_0x434846=_0x4b423a['getShiftedBy'](_0x542c25['howMany']);break;default:return;}const _0x50a0a6=_0x105a06['model']['createRange'](_0x4b423a,_0x434846);_0x105a06['model']['change'](()=>{for(const {suggestion:_0x2a0187,meta:_0x1e58d0}of this['_findSuggestions'](_0x50a0a6)){if(_0x2a0187['isMultiRange'])continue;if('formatInline'==_0x2a0187['type'])continue;const _0x21d061=this['_getAttributeKey'](_0x2a0187);if(_0x21d061&&this['_suggestionsConversion']['isBlockAttribute'](_0x21d061)&&'split'!=_0x542c25['type'])continue;const _0x4f869b=_0x2a0187['data']&&_0x2a0187['data']['multipleBlocks'];('formatBlock'!=_0x2a0187['type']||'split'==_0x542c25['type']&&!_0x4f869b)&&(_0x1e58d0['containsRangeInObject']||'insertion'==_0x2a0187['type']&&_0x1e58d0['isOwn']||_0x2a0187['getFirstRange']()['containsRange'](_0x50a0a6)&&this['_breakSuggestionMarker'](_0x2a0187,_0x4b423a,_0x434846));}});},{'priority':'lowest'}),_0x105a06['model']['on']('deleteContent',(_0x46f369,_0x3f8e90)=>{const _0x5e8b33=_0x3f8e90[0x0],_0x3196ad=_0x3f8e90[0x1];if(_0x3196ad&&_0x3196ad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e8b33['isCollapsed'])return;const _0x40112a=_0x105a06['model']['schema'],{start:_0x2d4309,end:_0x3a9c76}=_0x5e8b33['getFirstRange'](),_0x588222=_0x2d4309['nodeAfter']&&_0x40112a['isLimit'](_0x2d4309['nodeAfter'])?null:_0x40112a['getNearestSelectionRange'](_0x2d4309,'forward'),_0xe32243=_0x3a9c76['nodeBefore']&&_0x40112a['isLimit'](_0x3a9c76['nodeBefore'])?null:_0x40112a['getNearestSelectionRange'](_0x3a9c76,'backward'),_0x3f5783=_0x105a06['model']['createRange'](_0x588222?_0x588222['start']:_0x2d4309,_0xe32243?_0xe32243['end']:_0x3a9c76);_0x105a06['model']['change'](_0x4927e0=>{this['markDeletion'](_0x3f5783);const _0x54a71c=_0x105a06['model']['schema']['getNearestSelectionRange'](_0x3f5783['start']);_0x5e8b33['is']('documentSelection')?_0x4927e0['setSelection'](_0x54a71c):_0x5e8b33['setTo'](_0x54a71c);}),_0x46f369['stop']();},{'priority':_0x15636f['normal']+0xa}),_0x105a06['model']['on']('insertContent',(_0x4ef9d0,_0x2aa706)=>{const _0x547ec4=_0x2aa706[_0x2aa706['length']-0x1];_0x547ec4&&_0x547ec4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x105a06['model']['change'](()=>{let _0x3a66c9=_0x105a06['model']['insertContent'](_0x2aa706[0x0],_0x2aa706[0x1],_0x2aa706[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a66c9)return;_0x4ef9d0['return']=_0x3a66c9['clone']();const _0x32247e=_0x3a66c9['end']['nodeBefore'],_0x10550c=_0x105a06['model']['schema'];_0x32247e&&_0x10550c['isBlock'](_0x32247e)&&!_0x10550c['isObject'](_0x32247e)&&(_0x3a66c9=_0x105a06['model']['createRange'](_0x3a66c9['start'],_0x105a06['model']['createPositionAt'](_0x32247e,'end'))),this['markInsertion'](_0x3a66c9);}),_0x4ef9d0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5cf3eb=new pt(_0x105a06,this['_suggestions']);_0x105a06['commands']['add']('acceptSuggestion',_0x5cf3eb),this['enableCommand']('acceptSuggestion');const _0x15dafb=new Lt(_0x105a06,this['_suggestions']);_0x105a06['commands']['add']('discardSuggestion',_0x15dafb),this['enableCommand']('discardSuggestion'),_0x105a06['commands']['add']('acceptAllSuggestions',new yt(_0x105a06,_0x5cf3eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x105a06['commands']['add']('discardAllSuggestions',new yt(_0x105a06,_0x15dafb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x105a06['commands']['add']('acceptSelectedSuggestions',new Nt(_0x105a06,_0x5cf3eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x105a06['commands']['add']('discardSelectedSuggestions',new Nt(_0x105a06,_0x15dafb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xade273=_0x105a06['plugins']['get'](_0x496d24);this['listenTo'](_0xade273,'addComment',(_0x38e6c8,{threadId:_0x3e3e81})=>{const _0x441c32=this['_suggestions']['get'](_0x3e3e81);_0x441c32&&_0x441c32['commentThread']&&0x1===_0x441c32['commentThread']['length']&&this['_updateSuggestionData'](_0x3e3e81,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xade273,'removeComment',(_0x5ae5ad,{threadId:_0x49829d})=>{const _0x48abc0=this['_suggestions']['get'](_0x49829d);_0x48abc0&&_0x48abc0['commentThread']&&!_0x48abc0['commentThread']['length']&&this['_updateSuggestionData'](_0x49829d,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x465144){const _0xf6ca57='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x485564=0x791d0,_0x5bf68a=window['Date']['now'](),_0x4c4f64=_0x465144['editor'],_0x456f80=new window['Promise'](_0x286524=>{_0x4c4f64['once']('ready',_0x286524);}),_0x466132={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xb40e36=_0x4c4f64['config']['get']('licenseKey');async function _0x57c206(){let _0x3144f1,_0x1053af=null,_0xb94194=null;try{return'GPL'==_0xb40e36?'NotAllowed':(_0x3144f1=_0x3c6f7e(),_0x3144f1?(_0x3144f1['usageEndpoint']&&(_0xb94194=_0xb40860(_0x3144f1['usageEndpoint'],_0x3144f1['jti'])),await _0x53fc29()?_0x17163a()?_0x804c3c()?'Expired':_0x1d5ac5()?('evaluation'==_0x3144f1['licenseType']&&(_0x1053af=_0x544967('EvaluationLimit')),await _0x37a21a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x804c3c(){const _0x171a95=['evaluation','trial']['includes'](_0x3144f1['licenseType'])?_0x5bf68a/0x3e8:0xe10*_0x485564;return _0x3144f1['exp']<_0x171a95;}function _0x17163a(){const _0x647415=_0x3144f1['features'];if(!_0x647415)return!0x1;if(_0x647415['includes']('*'))return!0x0;if(_0x647415['includes']('TC'))return!0x0;if(_0x647415['includes']('RTC')){if(_0x1099de())return!0x0;if(_0x3d8099()||_0x21f62b())return!0x0;}return!0x1;}function _0x1d5ac5(){const _0x525532=_0x3144f1['licensedHosts'];if(!_0x525532||0x0==_0x525532['length'])return!0x0;const {hostname:_0x31ef80}=new URL(window['location']['href']);if(_0x525532['includes'](_0x31ef80))return!0x0;const _0x1adef7=_0x31ef80['split']('.');return _0x525532['filter'](_0x183e40=>_0x183e40['includes']('*'))['map'](_0x5905a3=>_0x5905a3['split']('.'))['filter'](_0x1b35ba=>_0x1b35ba['length']<=_0x1adef7['length'])['map'](_0x55df05=>Array(_0x1adef7['length']-_0x55df05['length'])['fill']('*'===_0x55df05[0x0]?'*':'')['concat'](_0x55df05))['some'](_0xb52bfe=>_0x1adef7['every']((_0x5eefef,_0x11e48f)=>_0xb52bfe[_0x11e48f]===_0x5eefef||'*'===_0xb52bfe[_0x11e48f]));}function _0x37a21a(){return _0x1053af&&_0xb94194?new window['Promise']((_0x5c00f4,_0x3a84bf)=>{_0x1053af['then'](_0x5c00f4,_0x3a84bf),_0xb94194['then'](_0x247e9f=>{'Valid'!=_0x247e9f&&_0x5c00f4(_0x247e9f);},_0x3a84bf);}):_0x1053af||_0xb94194||'Valid';}}function _0xb40860(_0x4bfc6f,_0x4f3d8a){return new window['Promise'](_0x55b9c3=>{if(_0x1c8155())return _0x55b9c3('Valid');_0x5d6a66(),_0x4c4f64['decorate']('_sendUsageRequest');let _0x407aa5=!0x1;const _0x285dfa=_0x51282a();function _0x1bdf37(_0x401c94){return!!_0x401c94&&('object'==typeof _0x401c94||'function'==typeof _0x401c94)&&'function'==typeof _0x401c94['then']&&'function'==typeof _0x401c94['catch'];}function _0x419f97(_0xf980fb){_0x1e4ed1(_0xf980fb)['then'](_0x18e0b9=>_0x18e0b9&&'ok'==_0x18e0b9['status']?_0x5dd8de(_0x269fb8(_0x285dfa+_0x4f3d8a))!=_0x18e0b9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x55d4ae=>(_0x114800(),_0x55d4ae),()=>{const _0x4569eb=_0x5002f8();return null==_0x4569eb?(_0x114800(),'Valid'):_0x5bf68a-_0x4569eb>0x240c8400?'UsageLimit':'Valid';})['then'](_0x55b9c3)['catch'](()=>{_0x55b9c3('UsageLimit');});const _0x4ea562=0x36ee80;function _0x114800(){const _0x2cb1d4='llct-'+_0x5dd8de(_0x269fb8(_0x4bfc6f)),_0x493be7=_0x230354(_0x5dd8de(window['Math']['ceil'](_0x5bf68a/_0x4ea562)));window['localStorage']['setItem'](_0x2cb1d4,_0x493be7);}function _0x5002f8(){const _0x5c5f29='llct-'+_0x5dd8de(_0x269fb8(_0x4bfc6f)),_0x4a3bf1=window['localStorage']['getItem'](_0x5c5f29);return _0x4a3bf1?window['parseInt'](_0x230354(_0x4a3bf1),0x10)*_0x4ea562:null;}function _0x1e4ed1(_0x4a114f){return new window['Promise']((_0x155238,_0x388629)=>{_0x4a114f['then'](_0x155238,_0x388629),window['setTimeout'](_0x388629,0x1d4c0);});}}_0x4c4f64['on']('_sendUsageRequest',(_0x3ab62b,_0x48d284)=>{if(_0x48d284[0x0]!=_0x4bfc6f)return _0x55b9c3('UsageLimit');_0x48d284[0x1]={..._0x48d284[0x1],'requestId':_0x285dfa};},{'priority':'high'}),_0x4c4f64['on']('_sendUsageRequest',_0x36fc7a=>{_0x1bdf37(_0x36fc7a['return'])&&(_0x407aa5=!0x0,_0x419f97(_0x36fc7a['return']));},{'priority':'low'}),_0x456f80['then'](()=>{_0x407aa5||_0x55b9c3('UsageLimit');});});function _0x1c8155(){return'auto'==_0x4c4f64['editing']['view']['_overlayModeHint'];}function _0x5d6a66(){_0x4c4f64['editing']['view']['_overlayModeHint']='auto';}}function _0x544967(_0x27ae4c){const _0x18454a=[new window['Promise'](_0x5bdbc0=>setTimeout(_0x5bdbc0,0x93ecc)),_0x456f80['then'](()=>new window['Promise'](_0x2b0373=>{let _0x2ff1bf=0x0;_0x4c4f64['model']['on']('applyOperation',(_0x35cd12,_0x5cc2db)=>{_0x5cc2db[0x0]['isDocumentOperation']&&_0x2ff1bf++,0x5e8==_0x2ff1bf&&(_0x2b0373(),_0x35cd12['off']());});}))];return window['Promise']['race'](_0x18454a)['then'](()=>_0x27ae4c);}async function _0x26af79(){await _0x456f80,_0x4c4f64['model']['change']=_0x51d661,_0x4c4f64['model']['enqueueChange']=_0x51d661,_0x4c4f64['enableReadOnlyMode']('model');}function _0x1099de(){return _0x33b062('WebSocketGateway')&&'connected'==_0x1567c5('WebSocketGateway')['state'];}function _0x3d8099(){return _0x33b062('RevisionViewerIntegration');}function _0x21f62b(){return _0x33b062('TrackChangesDataGetter');}function _0x477435(_0x22fc8a){const _0x1af495=_0x6810a9();_0x4c4f64[_0x1af495]='trackChangesLicenseKey'+_0x22fc8a,'Valid'!=_0x22fc8a&&_0x26af79();}function _0x6810a9(){const _0x9d923=window['String'](window['performance']['now']())['replace']('.','');let _0x5ce384='R';for(let _0x1943d7=0x0;_0x1943d7<_0x9d923['length'];_0x1943d7+=0x2){let _0x3f5460=window['parseInt'](_0x9d923['substring'](_0x1943d7,_0x1943d7+0x2));_0x3f5460>=0x3e&&(_0x3f5460-=0x3e),_0x5ce384+=_0xf6ca57[_0x3f5460];}return _0x5ce384;}function _0x3c6f7e(){const _0x3c7455=_0xb40e36['split']('.');if(0x3!=_0x3c7455['length'])return null;return _0x430e27(_0x3c7455[0x1]);function _0x430e27(_0x284b6d){const _0x5e0cef=_0x378d96(_0x284b6d);return _0x5e0cef&&_0x50f1e3()?_0x5e0cef:null;function _0x50f1e3(){const _0x30a585=_0x5e0cef['jti'],_0x2fd1bd=window['parseInt'](_0x30a585['substring'](_0x30a585['length']-0x8),0x10),_0x4e57fc={..._0x5e0cef,'jti':_0x30a585['substring'](0x0,_0x30a585['length']-0x8)};return delete _0x4e57fc['vc'],_0x269fb8(_0x4e57fc)==_0x2fd1bd;}}}async function _0x53fc29(){let _0x361ee5=!0x0;try{const [_0x66179,_0x3ebdfc,_0x49c773]=_0xb40e36['split']('.');return _0x62d50a(_0x66179),await _0x4fff0c(_0x66179,_0x3ebdfc,_0x49c773),_0x361ee5;}catch{return!0x1;}function _0x62d50a(_0x4ed39f){const _0x6bd2ac=_0x378d96(_0x4ed39f);_0x6bd2ac&&'ES256'==_0x6bd2ac['alg']||(_0x361ee5=!0x1);}async function _0x4fff0c(_0xad164e,_0x3593b1,_0x4538f8){const _0x137f9c=window['Uint8Array']['from'](_0x41df56(_0x4538f8),_0x47fb98=>_0x47fb98['charCodeAt'](0x0)),_0x12c568=new window['TextEncoder']()['encode'](_0xad164e+'.'+_0x3593b1),_0x3dca97=window['crypto']['subtle'];if(!_0x3dca97)return;const _0x30eef3=await _0x3dca97['importKey']('jwk',_0x466132,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3dca97['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x30eef3,_0x137f9c,_0x12c568)||(_0x361ee5=!0x1);}}function _0x378d96(_0x13b423){return _0x13b423['startsWith']('ey')?JSON['parse'](_0x41df56(_0x13b423)):null;}function _0x41df56(_0x5beb9f){return window['atob'](_0x5beb9f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x269fb8(_0x3fb13a){let _0x341b12=0x1505;function _0x17e823(_0x1847ad){for(let _0x2e19f0=0x0;_0x2e19f0<_0x1847ad['length'];_0x2e19f0++){const _0x8a729c=_0x1847ad['charCodeAt'](_0x2e19f0);_0x341b12=(_0x341b12<<0x5)+_0x341b12+_0x8a729c,_0x341b12&=_0x341b12;}}function _0x569515(_0x264391){Array['isArray'](_0x264391)?_0x264391['forEach'](_0x569515):_0x264391&&'object'==typeof _0x264391?Object['entries'](_0x264391)['sort']()['forEach'](([_0x3b4a3b,_0x312523])=>{_0x17e823(_0x3b4a3b),_0x569515(_0x312523);}):_0x17e823(window['String'](_0x264391));}return _0x569515(_0x3fb13a),_0x341b12>>>0x0;}function _0x5dd8de(_0x2686ec){return _0x2686ec['toString'](0x10)['padStart'](0x8,'0');}function _0x230354(_0x4a9c17){return _0x4a9c17['split']('')['reverse']()['join']('');}function _0x33b062(_0x17eaea){return _0x4c4f64['plugins']['has'](_0x17eaea);}function _0x1567c5(_0x38377f){return _0x4c4f64['plugins']['get'](_0x38377f);}function _0x51d661(){}_0x477435(await _0x57c206());}(this);}set adapter(_0x5e143f){if(this['_adapter'])throw new _0x551602('track-changes-adapter-already-set',this);this['_adapter']=_0x5e143f;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x259dfa=!0x1,toJSON:_0x3c885f=!0x1}={}){const _0x488c62=[];for(const _0x48d6f4 of this['_suggestions']['values']())_0x259dfa&&!_0x48d6f4['isInContent']||_0x488c62['push'](_0x48d6f4);return _0x3c885f?_0x488c62['map'](_0xfe15a9=>_0xfe15a9['toJSON']()):_0x488c62;}getSuggestion(_0x24181c){const _0xb6b80e=this['_suggestions']['get'](_0x24181c);if(!_0xb6b80e)throw new _0x551602('track-changes-suggestion-not-found',this);return _0xb6b80e;}hasSuggestion(_0x444c9d){return this['_suggestions']['has'](_0x444c9d);}addSuggestionData(_0x2a154b){const {authorId:_0x4dfcb5,id:_0x54be28,originalSuggestionId:_0xe53313,attributes:_0x52cf1e}=_0x2a154b,[_0x236db8,_0x4f86b2]=_0x2a154b['type']['split'](':'),_0xf5ca91=this['_suggestions']['get'](_0x54be28)||this['_createSuggestion'](_0x236db8,_0x4f86b2,_0x54be28,_0x4dfcb5,_0x52cf1e,_0xe53313);if(this['_addThreadToSuggestion'](_0xf5ca91),this['_checkSuggestionCorrectness'](_0xf5ca91,_0x236db8,_0x4f86b2||null,_0x4dfcb5),_0xf5ca91['createdAt']=_0x2a154b['createdAt'],_0xf5ca91['_isDataLoaded']=!0x0,_0x52cf1e&&_0x52cf1e['@external']){const _0x320269=_0x52cf1e['@external'],_0x2e9137=this['_getExternalAuthor'](_0x320269['authorName']);_0xf5ca91['authoredAt']=_0x320269['createdAt'],_0xf5ca91['author']=_0x2e9137;}else _0xf5ca91['authoredAt']=_0x2a154b['createdAt'];switch(_0x2a154b['data']&&(_0xf5ca91['data']=_0x2a154b['data']),_0x2a154b['attributes']&&(_0xf5ca91['attributes']=_0x2a154b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf5ca91['_saved']=!0x0),this['_suggestionState']['get'](_0xf5ca91)){case'notReady':this['_suggestionState']['set'](_0xf5ca91,'dataReady');break;case'markerReady':_0xf5ca91['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf5ca91])),this['_refreshSuggestionsChain'](new Set([_0xf5ca91])),this['_suggestionState']['set'](_0xf5ca91,'ready'),this['fire']('suggestionLoaded',_0xf5ca91)):this['_suggestionState']['set'](_0xf5ca91,'removed');}return _0xf5ca91;}acceptSuggestion(_0xe5e78b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf59faf of _0xe5e78b['getAllAdjacentSuggestions']())_0xf59faf['accept']();});});}discardSuggestion(_0xdb7389){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4eb90a of _0xdb7389['getAllAdjacentSuggestions']())_0x4eb90a['discard']();});});}['enableCommand'](_0x6aca20,_0x401a35){const _0x290600=this['editor']['commands']['get'](_0x6aca20);if(!_0x290600)throw new _0x551602('track-changes-command-not-found',this,{'commandName':_0x6aca20});if(this['_enabledCommands']['has'](_0x290600))throw new _0x551602('track-changes-enable-command-twice',this,{'commandName':_0x6aca20});this['_enabledCommands']['add'](_0x290600),_0x401a35&&_0x290600['on']('execute',(_0x2ff94d,_0x220ded)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x220ded['length']>0x0&&_0x220ded[_0x220ded['length']-0x1]&&_0x220ded[_0x220ded['length']-0x1]['forceDefaultExecution']?_0x220ded['pop']():(_0x2ff94d['return']=_0x401a35((..._0x507626)=>_0x290600['execute'](..._0x507626,{'forceDefaultExecution':!0x0}),..._0x220ded),_0x2ff94d['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x46adfb){let _0x2bac27,_0x579934;const _0x5d682e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2bac27=_0x46adfb();}catch(_0x5cc6be){_0x579934=_0x5cc6be;}return _0x5d682e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x579934&&_0x551602['rethrowUnexpectedError'](_0x579934,this),_0x2bac27;}markInsertion(_0x7656d,_0x3d3c3e=null,_0x30b012={}){if(_0x7656d['isCollapsed'])return null;const _0x49af6d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x30b012['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf4e57e,meta:_0x9ce657}of this['_findSuggestions'](_0x7656d,'insertion'))if(_0x9ce657['isOwn']){if(!_0x9ce657['isNextTo']){if(_0x9ce657['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0xf4e57e,_0x30b012))continue;return _0xf4e57e;}if(pn(_0xf4e57e,_0x30b012))return _0xf4e57e;this['_breakSuggestionMarker'](_0xf4e57e,_0x7656d['start'],_0x7656d['end']);break;}if(_0x3d3c3e==_0xf4e57e['subType']&&pn(_0xf4e57e,_0x30b012)){const _0x4006ca=_0xf4e57e['getFirstRange']();return _0x4006ca['start']['isEqual'](_0x7656d['end'])?this['_setSuggestionRange'](_0xf4e57e,this['_model']['createRange'](_0x7656d['start'],_0x4006ca['end'])):this['_setSuggestionRange'](_0xf4e57e,this['_model']['createRange'](_0x4006ca['start'],_0x7656d['end'])),_0xf4e57e;}}const _0x3654fc=_0x51282a(),_0x412a96=_0x49af6d['id'],_0x266aee=_0x3d3c3e?'insertion:'+_0x3d3c3e:'insertion',_0x5854ef=this['_setSuggestionData']({'id':_0x3654fc,'type':_0x266aee,'createdAt':new Date(),'authorId':_0x412a96,'attributes':_0x30b012});return this['_addSuggestionMarker'](_0x266aee,_0x3654fc,_0x412a96,_0x7656d),_0x5854ef;}markMultiRangeInsertion(_0x1dd283,_0x5b1710='multi',_0x24aed1={}){const _0xa3e17f=this['editor']['plugins']['get']('Users')['me'],_0x4dd055=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5b1710,'join');this['_trackingSessionId']&&(_0x24aed1['trackingSessionId']=this['_trackingSessionId']);for(const _0x152c5c of this['getSuggestions']())if(_0x152c5c['author']['id']==_0xa3e17f['id']&&'insertion'==_0x152c5c['type']&&_0x152c5c['subType']==_0x5b1710&&pn(_0x152c5c,_0x24aed1)&&(_0x4dd055(_0x152c5c['getRanges'](),_0x1dd283)||_0x4dd055(_0x1dd283,_0x152c5c['getRanges']()))){for(const _0xe8011f of _0x1dd283)_0x152c5c['addRange'](_0xe8011f);return _0x152c5c;}for(const {suggestion:_0x5cebee,meta:_0x1c744a}of this['_findSuggestions'](_0x1dd283,'insertion')){if(!_0x1c744a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1c744a['containsRangeInObject'])continue;if(!pn(_0x5cebee,_0x24aed1))continue;let _0x2e303b=!0x0;for(const _0x52e872 of _0x5cebee['getRanges']())for(const _0x459d75 of _0x1dd283)if(!_0x52e872['containsRange'](_0x459d75)){_0x2e303b=!0x1;break;}if(_0x2e303b)return _0x5cebee;}const _0x510a6d=_0x51282a(),_0x28e8a7=_0xa3e17f['id'],_0x18d90a='insertion:'+_0x5b1710,_0xdffa2f=this['_setSuggestionData']({'id':_0x510a6d,'type':_0x18d90a,'createdAt':new Date(),'authorId':_0x28e8a7,'attributes':_0x24aed1});for(const _0x53533b of _0x1dd283)this['_addSuggestionMarker'](_0x18d90a,_0x510a6d,_0x28e8a7,_0x53533b,Mt['getMultiRangeId']());return _0xdffa2f;}markInlineFormat(_0x48c3c4,_0x4ec6cf,_0x3a7479=null,_0x561ed3={}){if(_0x3a7479=_0x3a7479||dn(_0x4ec6cf),_0x48c3c4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x561ed3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37ec09=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7479,'accept');return this['forceDefaultExecution'](()=>_0x37ec09([_0x48c3c4],_0x4ec6cf,_0x561ed3)),null;}const _0x3b6f9d=this['editor']['plugins']['get']('Users')['me'],_0x4899fb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f3510,meta:_0x5c32b7}of this['_findSuggestions'](_0x48c3c4,'insertion'))_0x5c32b7['isOwn']&&!_0x5c32b7['isInsideObject']&&_0x4899fb['push'](..._0x3f3510['getRanges']());}const _0x469526=function(_0x209d98,_0x464f9a){const _0x74a0af=[];for(const _0x5027b7 of _0x464f9a){const _0x307bc3=_0x209d98['getIntersection'](_0x5027b7);_0x307bc3&&_0x74a0af['push'](_0x307bc3);}return _0x74a0af;}(_0x48c3c4,_0x4899fb),_0x50d276=function(_0x13352f,_0x109294){const _0xdb4249=[_0x13352f];for(const _0x3e3ab8 of _0x109294){let _0x1baaad=0x0;for(;_0x1baaad<_0xdb4249['length'];){const _0x1b024e=_0xdb4249[_0x1baaad]['getDifference'](_0x3e3ab8);_0xdb4249['splice'](_0x1baaad,0x1,..._0x1b024e),_0x1baaad+=_0x1b024e['length'];}}return _0xdb4249;}(_0x48c3c4,_0x4899fb);_0x469526['length']&&this['_model']['change'](()=>{for(const _0x42184f of _0x469526){const _0x6e7a6a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a7479,'accept');this['forceDefaultExecution'](()=>_0x6e7a6a([_0x42184f],_0x4ec6cf,_0x561ed3));}});for(const _0x56c1a7 of _0x50d276){let _0x3fcb44=null,_0x532a68=_0x56c1a7['start'],_0x41ec45=_0x56c1a7['end'];for(const {suggestion:_0x1be4e7,meta:_0x594fb9}of this['_findSuggestions'](_0x56c1a7,'formatInline')){if(!_0x594fb9['isOwn'])continue;if(_0x1be4e7['subType']!=_0x3a7479)continue;if(!pn(_0x1be4e7,_0x561ed3))continue;const _0x4902d9=_0x1be4e7['getFirstRange']();if(_0x4902d9['containsRange'](_0x56c1a7,!0x0))return null;_0x532a68=_0x532a68['isBefore'](_0x4902d9['start'])?_0x532a68:_0x4902d9['start'],_0x41ec45=_0x41ec45['isAfter'](_0x4902d9['end'])?_0x41ec45:_0x4902d9['end'],_0x3fcb44?_0x4902d9['start']['isBefore'](_0x3fcb44['getFirstRange']()['start'])?(_0x3fcb44['removeMarkers'](),_0x3fcb44=_0x1be4e7):_0x1be4e7['removeMarkers']():_0x3fcb44=_0x1be4e7;}const _0x1a28b4=this['_model']['createRange'](_0x532a68,_0x41ec45);if(_0x3fcb44)this['_setSuggestionRange'](_0x3fcb44,_0x1a28b4);else{const _0x48975a=_0x51282a(),_0x510caa=_0x3b6f9d['id'];this['_setSuggestionData']({'id':_0x48975a,'type':'formatInline:'+_0x3a7479,'data':_0x4ec6cf,'createdAt':new Date(),'authorId':_0x510caa,'attributes':_0x561ed3}),this['_addSuggestionMarker']('formatInline:'+_0x3a7479,_0x48975a,_0x510caa,_0x1a28b4);}}return null;}markBlockFormat(_0x2db023,_0x183dd6,_0x12d991=[],_0x47e7e4=null,_0x9dd832={}){_0x183dd6['formatGroupId']||(_0x183dd6['formatGroupId']=_0x183dd6['commandName']),_0x183dd6['multipleBlocks']=_0x2db023['is']('range'),_0x47e7e4=_0x47e7e4||dn(_0x183dd6);const _0x50eba7=_0x12d991['map'](_0x596d1d=>En(_0x596d1d,this['_model'])),_0x37dc71=_0x2db023['is']('range')?_0x2db023:En(_0x2db023,this['_model']);if(this['_trackingSessionId']&&(_0x9dd832['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x329b1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e7e4,'accept');return this['forceDefaultExecution'](()=>_0x329b1c([_0x37dc71],_0x183dd6,_0x9dd832)),null;}_0x50eba7['push'](_0x37dc71);let _0x39aa09=!0x0;for(const _0x470e13 of _0x50eba7)if(!this['_rangeIsInLocalUserInsertion'](_0x470e13)){_0x39aa09=!0x1;break;}if(_0x39aa09&&'always'!==this['_trackFormatChanges']){const _0x1d2f1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47e7e4,'accept');return this['forceDefaultExecution'](()=>_0x1d2f1f([_0x37dc71],_0x183dd6,_0x9dd832)),null;}let _0x82a2e4=null,_0x33acd2=_0x37dc71['start'],_0x5d568e=_0x37dc71['end'];for(const {suggestion:_0x1dd4c5,meta:_0x541f75}of this['_findSuggestions'](_0x37dc71,'formatBlock')){if(!_0x541f75['isOwn'])continue;if(_0x541f75['isNextTo']||_0x541f75['containsRangeInObject']||_0x541f75['isInsideObject'])continue;if(_0x1dd4c5['data']['formatGroupId']!=_0x183dd6['formatGroupId'])continue;if(!pn(_0x1dd4c5,_0x9dd832))continue;const _0x4694e7=_0x1dd4c5['getFirstRange']();if(_0x1dd4c5['subType']==_0x47e7e4){if(_0x4694e7['containsRange'](_0x37dc71,!0x0))return null;_0x33acd2=_0x33acd2['isBefore'](_0x4694e7['start'])?_0x33acd2:_0x4694e7['start'],_0x5d568e=_0x5d568e['isAfter'](_0x4694e7['end'])?_0x5d568e:_0x4694e7['end'],_0x82a2e4?_0x4694e7['start']['isBefore'](_0x82a2e4['getFirstRange']()['start'])?(_0x82a2e4['removeMarkers'](),_0x82a2e4=_0x1dd4c5):_0x1dd4c5['removeMarkers']():_0x82a2e4=_0x1dd4c5;}else{const _0x4ff5f0=_0x37dc71['getIntersection'](_0x4694e7);this['_cutOutSuggestionMarker'](_0x1dd4c5,_0x4ff5f0);}}const _0x42333b=this['editor']['plugins']['get']('Users')['me'],_0x4f971a=_0x51282a(),_0x212605=_0x42333b['id'];if(_0x82a2e4)return this['_setSuggestionRange'](_0x82a2e4,this['_model']['createRange'](_0x33acd2,_0x5d568e)),_0x82a2e4;{const _0x395b7a=this['_setSuggestionData']({'id':_0x4f971a,'type':'formatBlock:'+_0x47e7e4,'data':_0x183dd6,'createdAt':new Date(),'authorId':_0x212605,'attributes':_0x9dd832});return this['_addSuggestionMarker']('formatBlock:'+_0x47e7e4,_0x4f971a,_0x212605,this['_model']['createRange'](_0x33acd2,_0x5d568e)),_0x395b7a;}}markMultiRangeBlockFormat(_0x401be0,_0xfce234,_0x5a84bb=[],_0x3375e6=null,_0x4b4e81={}){_0xfce234['formatGroupId']||(_0xfce234['formatGroupId']=_0xfce234['commandName']);const _0x41cc9b=_0x401be0[0x0];_0xfce234['multipleBlocks']=_0x41cc9b['is']('range'),_0x3375e6=_0x3375e6||dn(_0xfce234);const _0x17cd08=_0x5a84bb['map'](_0xecd1aa=>En(_0xecd1aa,this['_model'])),_0xee06b9=_0x41cc9b['is']('range')?_0x401be0:_0x401be0['map'](_0x5f2e39=>En(_0x5f2e39,this['_model']));if(this['_trackingSessionId']&&(_0x4b4e81['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x393d49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'accept');return this['forceDefaultExecution'](()=>_0x393d49(_0xee06b9,_0xfce234,_0x4b4e81)),null;}_0x17cd08['push'](..._0xee06b9);let _0x2147a5=!0x0;for(const _0xea0bc5 of _0x17cd08)if(!this['_rangeIsInLocalUserInsertion'](_0xea0bc5)){_0x2147a5=!0x1;break;}if(_0x2147a5&&'always'!==this['_trackFormatChanges']){const _0x4d2108=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'accept');return this['forceDefaultExecution'](()=>_0x4d2108(_0xee06b9,_0xfce234,_0x4b4e81)),null;}const _0x111561=this['editor']['plugins']['get']('Users')['me'];for(const _0x19478d of this['getSuggestions']()){const _0x5ff8bb=_0x19478d['data'];if(_0x19478d['author']['id']!=_0x111561['id'])continue;if('formatBlock'!=_0x19478d['type']||_0x5ff8bb['formatGroupId']!=_0xfce234['formatGroupId'])continue;if(!pn(_0x19478d,_0x4b4e81))continue;const _0x791827=_0x19478d['subType']==_0x3375e6;for(let _0x2c5663=0x0;_0x2c5663<_0xee06b9['length'];_0x2c5663++){const _0x4ce0ca=_0xee06b9[_0x2c5663];for(const _0x41ceb0 of _0x19478d['getMarkers']()){const _0x4ad4ee=_0x41ceb0['getRange']();if(_0x4ce0ca['isEqual'](_0x4ad4ee)){_0x791827?(_0xee06b9['splice'](_0x2c5663,0x1),_0x2c5663--):_0x19478d['removeMarker'](_0x41ceb0['name']);break;}}}}if(0x0==_0xee06b9['length'])return null;const _0x1bf404=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3375e6,'join');for(const _0x19d3e7 of this['getSuggestions']()){const _0x443110=_0x19d3e7['data'];if(_0x19d3e7['author']['id']==_0x111561['id']&&('formatBlock'==_0x19d3e7['type']&&_0x443110['formatGroupId']==_0xfce234['formatGroupId']&&_0x19d3e7['subType']==_0x3375e6&&pn(_0x19d3e7,_0x4b4e81)&&(_0x1bf404(_0x19d3e7['getRanges'](),_0xee06b9)||_0x1bf404(_0xee06b9,_0x19d3e7['getRanges']())))){for(const _0x5bcab5 of _0xee06b9)_0x19d3e7['addRange'](_0x5bcab5);return _0x19d3e7;}}const _0x57d4d6=_0x51282a(),_0x2e4416=_0x111561['id'],_0xa6b0d8='formatBlock:'+_0x3375e6,_0x509ea9=this['_setSuggestionData']({'id':_0x57d4d6,'type':_0xa6b0d8,'data':_0xfce234,'createdAt':new Date(),'authorId':_0x2e4416,'attributes':_0x4b4e81});for(const _0x4a79c5 of _0xee06b9)this['_addSuggestionMarker'](_0xa6b0d8,_0x57d4d6,_0x2e4416,_0x4a79c5,Mt['getMultiRangeId']());return _0x509ea9;}markDeletion(_0x1ab0c3,_0xfd961c=null,_0x55967e={}){if(_0x1ab0c3['isCollapsed'])return null;const _0x365b8e=this['editor']['plugins']['get']('Users')['me'],_0x5dc797=new ot(_0x1ab0c3['start'],_0x1ab0c3['end']);this['_trackingSessionId']&&(_0x55967e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x444448,meta:_0x50ebf9}of this['_findSuggestions'](_0x5dc797,'insertion'))if(_0x50ebf9['isOwn']&&!_0x50ebf9['isNextTo']){if(_0x444448['isMultiRange']){const _0x2f2cba=_0x444448['getRanges']()['filter'](_0x34b941=>'$graveyard'!=_0x34b941['root']['rootName']);if(_0x2f2cba['every'](_0x30e69f=>_0x5dc797['containsRange'](_0x30e69f,!0x0))&&_0x444448['discard'](),_0x2f2cba['some'](_0x3ff6b1=>_0x3ff6b1['containsRange'](_0x5dc797,!0x0))){const _0x4bb1c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfd961c,'accept');return this['forceDefaultExecution'](()=>_0x4bb1c0([_0x5dc797],null,_0x55967e)),null;}}else{const _0x269c5d=_0x5dc797['getIntersection'](_0x444448['getFirstRange']());null!==_0x269c5d&&_0x444448['_onDiscard']([_0x269c5d],null,_0x55967e);}}if(_0x5dc797['detach'](),_0x5dc797['isCollapsed']||'$graveyard'==_0x5dc797['root']['rootName'])return null;let _0xd0f8c5=null,_0x1b99e8=_0x5dc797['start'],_0x151017=_0x5dc797['end'];const _0x59b898=this['_findSuggestions'](_0x5dc797,'deletion');for(const {suggestion:_0x346edf,meta:_0x27a172}of _0x59b898){const _0x535a5d=this['_model']['createRange'](_0x1b99e8,_0x151017);if(_0x27a172['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27a172['containsRangeInObject']&&!_0x27a172['isInsideObject'])){if(_0x346edf['isMultiRange']){if(!pn(_0x346edf,_0x55967e))continue;let _0x428420=!0x0;for(const _0x26ff1c of _0x346edf['getRanges']()){if(_0x26ff1c['containsRange'](_0x535a5d,!0x0))return _0x346edf;_0x535a5d['containsRange'](_0x26ff1c)||(_0x428420=!0x1);}_0x428420&&_0x346edf['discard']();}else{const _0xce32e8=_0x346edf['getFirstRange']();if(_0xce32e8['containsRange'](_0x535a5d,!0x0))return _0x346edf;if(!pn(_0x346edf,_0x55967e)){_0x535a5d['containsRange'](_0xce32e8)?_0x346edf['removeMarkers']():_0xce32e8['containsPosition'](_0x1b99e8)?_0x1b99e8=_0xce32e8['end']:_0xce32e8['containsPosition'](_0x151017)&&(_0x151017=_0xce32e8['start']);continue;}_0x1b99e8=_0x1b99e8['isBefore'](_0xce32e8['start'])?_0x1b99e8:_0xce32e8['start'],_0x151017=_0x151017['isAfter'](_0xce32e8['end'])?_0x151017:_0xce32e8['end'],_0x55967e=Object['assign']({},_0x346edf['attributes']),_0xd0f8c5?_0xce32e8['start']['isBefore'](_0xd0f8c5['getFirstRange']()['start'])?(_0xd0f8c5['removeMarkers'](),_0xd0f8c5=_0x346edf):_0x346edf['removeMarkers']():_0xd0f8c5=_0x346edf;}}}if(_0xd0f8c5)return this['_setSuggestionRange'](_0xd0f8c5,this['_model']['createRange'](_0x1b99e8,_0x151017)),_0xd0f8c5;{const _0x3991c4=_0x51282a(),_0x3cf79a=this['_model']['createRange'](_0x1b99e8,_0x151017),_0x1a3814=_0x365b8e['id'],_0x3923d4=_0xfd961c?'deletion:'+_0xfd961c:'deletion',_0x334a86=this['_setSuggestionData']({'id':_0x3991c4,'type':_0x3923d4,'createdAt':new Date(),'authorId':_0x1a3814,'attributes':_0x55967e});return this['_addSuggestionMarker'](_0x3923d4,_0x3991c4,_0x1a3814,_0x3cf79a),_0x334a86;}}markMultiRangeDeletion(_0x48891a,_0x2c7569='multi',_0x5a0d54={}){const _0x3e41a3=this['editor']['plugins']['get']('Users')['me'],_0x3d5cd5=_0x48891a['map'](_0x409e94=>new ot(_0x409e94['start'],_0x409e94['end'])),_0x31aaef=new Set();this['_trackingSessionId']&&(_0x5a0d54['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x339643,meta:_0x456280}of this['_findSuggestions'](_0x3d5cd5,'insertion'))_0x456280['isOwn']&&!_0x456280['isNextTo']&&_0x31aaef['add'](_0x339643);for(const _0x54490e of _0x31aaef)if(_0x54490e['isMultiRange']){const _0x43f48b=_0x54490e['getRanges']();if(_0x54490e['attributes']&&_0x54490e['attributes']['skipNestingCheck']||_0x43f48b['every'](_0x3e1dca=>_0x3d5cd5['some'](_0x25bc35=>_0x25bc35['containsRange'](_0x3e1dca,!0x0)))&&_0x54490e['discard'](),_0x3d5cd5['every'](_0x1f3e32=>_0x43f48b['some'](_0x249c0c=>_0x249c0c['containsRange'](_0x1f3e32,!0x0)))){const _0x46ca11=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'accept');return this['forceDefaultExecution'](()=>_0x46ca11(_0x48891a,null,_0x5a0d54)),null;}}else{const _0xd66958=_0x54490e['getFirstRange']();if(_0x3d5cd5['some'](_0x4b5452=>_0x4b5452['containsRange'](_0xd66958,!0x0))&&_0x54490e['discard'](),_0x3d5cd5['every'](_0x1d1cf3=>_0xd66958['containsRange'](_0x1d1cf3,!0x0))){const _0x3e2b98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'accept');return this['forceDefaultExecution'](()=>_0x3e2b98(_0x3d5cd5,null,_0x5a0d54)),null;}}const _0x276240=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c7569,'join');let _0x3732fc=null;for(const _0x5d6f5a of this['getSuggestions']())if(_0x5d6f5a['author']['id']==_0x3e41a3['id']&&_0x5d6f5a['isInContent']&&'deletion'==_0x5d6f5a['type']&&_0x5d6f5a['subType']==_0x2c7569&&pn(_0x5d6f5a,_0x5a0d54)&&(_0x276240(_0x5d6f5a['getRanges'](),_0x3d5cd5)||_0x276240(_0x3d5cd5,_0x5d6f5a['getRanges']()))){if(_0x3732fc){if(_0x5d6f5a['commentThread']&&_0x5d6f5a['commentThread']['length'])continue;for(const _0x58630d of _0x5d6f5a['getRanges']())_0x3732fc['isIntersectingWithRange'](_0x58630d)||_0x3732fc['addRange'](_0x58630d);_0x5d6f5a['removeMarkers']();}else{_0x3732fc=_0x5d6f5a;for(const _0x382d89 of _0x3d5cd5)_0x5d6f5a['isIntersectingWithRange'](_0x382d89)||_0x5d6f5a['addRange'](_0x382d89);}}if(_0x3732fc)return _0x3732fc;_0x31aaef['clear']();for(const {suggestion:_0x1ed1c3,meta:_0x38ba39}of this['_findSuggestions'](_0x3d5cd5,'deletion'))_0x38ba39['isOwn']&&(this['_mergeNestedSuggestions']||!_0x38ba39['containsRangeInObject']&&!_0x38ba39['isInsideObject'])&&pn(_0x1ed1c3,_0x5a0d54)&&_0x31aaef['add'](_0x1ed1c3);for(const _0x134a9e of _0x31aaef){const _0x11f775=_0x134a9e['getRanges']();if((!_0x5a0d54||!_0x5a0d54['skipNestingCheck'])&&_0x3d5cd5['every'](_0x2ec159=>_0x11f775['some'](_0x1b843a=>_0x1b843a['containsRange'](_0x2ec159,!0x0))))return _0x134a9e;_0x134a9e['attributes']&&_0x134a9e['attributes']['skipNestingCheck']||_0x11f775['every'](_0x1541e8=>_0x3d5cd5['some'](_0x22b490=>_0x22b490['containsRange'](_0x1541e8,!0x0)))&&_0x134a9e['discard']();}const _0x25821c=_0x51282a(),_0x36730e=_0x3e41a3['id'],_0x2f1373='deletion:'+_0x2c7569,_0x5019e4=this['_setSuggestionData']({'id':_0x25821c,'type':_0x2f1373,'createdAt':new Date(),'authorId':_0x36730e,'attributes':_0x5a0d54});for(const _0x325315 of _0x3d5cd5)_0x325315['detach'](),_0x325315['isCollapsed']||'$graveyard'==_0x325315['root']['rootName']||this['_addSuggestionMarker'](_0x2f1373,_0x25821c,_0x36730e,_0x325315,Mt['getMultiRangeId']());return _0x5019e4;}markAttributeChange(_0x3e5f06,_0x353b69,_0x31b98a,_0x5eea98,_0x3b2cb7){if(_0x3e5f06['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x419f51=this['editor']['plugins']['get']('Users')['me']['id'],_0x1abf27=Array['from'](this['_suggestions']['values']())['filter'](_0x580fd7=>'attribute'==_0x580fd7['type']&&_0x580fd7['data']['key']==_0x353b69&&_0x580fd7['isIntersectingWithRange'](_0x3e5f06));if(this['_trackingSessionId']&&(_0x3b2cb7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29388c=this['_findSuggestions'](_0x3e5f06,'insertion')['filter'](({meta:_0x10236b})=>_0x10236b['isOwn']&&!_0x10236b['isInsideObject']&&!_0x10236b['isNextTo'])['map'](({suggestion:_0x69f541})=>_0x69f541);_0x1abf27['unshift'](..._0x29388c);}const _0x5069e6=new Map([[_0x3e5f06,_0x31b98a]]);for(const _0x244556 of _0x1abf27){const _0x261e0f='attribute'==_0x244556['type']?_0x244556['data']['oldValue']:void 0x0,_0x5c51ad=_0x244556['getFirstRange'](),_0x2bc67=Array['from'](_0x5069e6['keys']())['find'](_0x346e5b=>_0x346e5b['isIntersecting'](_0x5c51ad));if(!_0x2bc67)continue;const _0x3c8220=_0x2bc67['getDifference'](_0x5c51ad);this['_suggestionsConversion']['isBlockAttribute'](_0x353b69)&&'insertion'==_0x244556['type']&&0x0!=_0x3c8220['length']||(_0x5069e6['delete'](_0x2bc67),_0x3c8220['forEach'](_0x2f89fa=>{_0x5069e6['set'](_0x2f89fa,_0x31b98a);}),'insertion'!=_0x244556['type']&&_0x261e0f!=_0x5eea98&&_0x5069e6['set'](_0x2bc67['getIntersection'](_0x5c51ad),_0x261e0f));}const _0x56c792=[];for(const [_0x5a1fbe,_0x224e01]of _0x5069e6){const _0x282651=_0x51282a(),_0x224d95={'key':_0x353b69,'oldValue':_0x224e01,'newValue':_0x5eea98};_0x353b69['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':_0x353b69});const _0x997feb=('attribute:'+_0x353b69+'|'+dn({'newValue':_0x5eea98}))['substring'](0x0,0x3c),_0x2fd388=this['_setSuggestionData']({'id':_0x282651,'type':_0x997feb,'data':_0x224d95,'createdAt':new Date(),'authorId':_0x419f51,'attributes':_0x3b2cb7});_0x56c792['push'](_0x2fd388),this['_addSuggestionMarker'](_0x997feb,_0x282651,_0x419f51,_0x5a1fbe);}return _0x56c792;}enableDefaultAttributesIntegration(_0x115239){this['enableCommand'](_0x115239,(_0x2d8f84,..._0x3e9d37)=>{this['recordAttributeChanges'](()=>{_0x2d8f84(..._0x3e9d37);});});}startTrackingSession(_0x5e5ce2){return this['_trackingSessionId']=void 0x0!==_0x5e5ce2?_0x5e5ce2:_0x51282a(),this['_trackingSessionId'];}_getAttributeKey(_0x5f3e2a){return'attribute'==_0x5f3e2a['type']?In(_0x5f3e2a['subType']):null;}_applyOperationsAsSuggestions(_0x111d9c){if(0x0==_0x111d9c['length'])return;const _0x4d6933=this['editor'],_0x4b06dc=_0x4d6933['plugins']['get'](_0x5ad44d),_0x412f1a=[],_0x3a7802=_0x19d9b1=>{const _0x223077=_0x19d9b1['_aiSource'];return _0x223077?{'@ai':{'type':_0x223077}}:{};},_0x4099ee=(_0x18fa37,_0x488600,_0x46561a)=>{for(let _0x36a1bb=_0x488600;_0x36a1bb<_0x18fa37['operations']['length'];_0x36a1bb++){const _0x462516=_0x18fa37['operations'][_0x36a1bb];'marker'===_0x462516['type']&&(_0x462516['_aiSource']=_0x46561a);}};_0x4d6933['model']['change'](_0x53d8d4=>{for(let _0x556746=0x0;_0x556746<_0x111d9c['length'];_0x556746++){const _0x12fb8f=_0x111d9c[_0x556746],_0xa96c0c=_0x12fb8f['_aiSource'],_0x12c573=_0x53d8d4['batch']['operations']['length'];if(_0x12fb8f['baseVersion']=_0x4d6933['model']['document']['version'],_0x12fb8f['isDocumentOperation']=!0x0,!_0x56ea0e(_0x12fb8f)){if(_0x4b06dc['isMarkedRemoveOperation'](_0x12fb8f)){const _0x1bbbc4=_0x38a61e(_0x12fb8f['newRange'],_0x4d6933['model']);_0x412f1a['unshift']({'range':ot['fromRange'](_0x1bbbc4),'opAttributes':_0x3a7802(_0x12fb8f),'aiSource':_0xa96c0c});}else{switch(_0x12fb8f['type']){case'rename':{const _0x1ff75c=_0x12fb8f['oldName'],_0x159b90=_0x12fb8f['newName'];if(_0x1ff75c==_0x159b90)break;_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x13be71='$elementName',_0x39b552=_0x12fb8f['position'],_0x1cb68b=_0x4d6933['model']['createRange'](_0x39b552,_0x4d6933['model']['createPositionAt'](_0x39b552['nodeAfter'],'end'));this['markAttributeChange'](_0x1cb68b,_0x13be71,_0x1ff75c,_0x159b90,{..._0x3a7802(_0x12fb8f),'groupId':_0x51282a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1d480d=_0x12fb8f['oldValue'],_0x59a261=_0x12fb8f['newValue'];if(_0x1d480d==_0x59a261)break;_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x1cdbf7=_0x12fb8f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1cdbf7))break;const _0x37f737=_0x38a61e(_0x12fb8f['range'],_0x4d6933['model']);this['markAttributeChange'](_0x37f737,_0x1cdbf7,_0x1d480d,_0x59a261,{..._0x3a7802(_0x12fb8f),'groupId':_0x51282a()});break;}case'insert':{if(_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f),_0x111d9c[_0x556746+0x1]&&'move'==_0x111d9c[_0x556746+0x1]['type'])break;const _0x1f53ef=_0x12fb8f['position'],_0x139aaa=_0x12fb8f['howMany'],_0x43ed1a=_0x38a61e(_0x4d6933['model']['createRange'](_0x1f53ef,_0x1f53ef['getShiftedBy'](_0x139aaa)),_0x4d6933['model']);this['markInsertion'](_0x43ed1a,null,{..._0x3a7802(_0x12fb8f)});break;}case'split':{_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);const _0x26b96a=_0x12fb8f['splitPosition'],_0x1c7f23=_0x12fb8f['moveTargetPosition'],_0x17f6f2=_0x4d6933['model']['createRange'](_0x26b96a,_0x1c7f23);this['markInsertion'](_0x17f6f2,null,{..._0x3a7802(_0x12fb8f)});break;}case'move':case'remove':_0x53d8d4['batch']['addOperation'](_0x12fb8f),_0x4d6933['model']['applyOperation'](_0x12fb8f);}_0xa96c0c&&_0x4099ee(_0x53d8d4['batch'],_0x12c573,_0xa96c0c);}}}for(const {range:_0x56dcb3,opAttributes:_0x416295,aiSource:_0xd9f974}of _0x412f1a){const _0xe44799=_0x53d8d4['batch']['operations']['length'];_0x56dcb3['detach'](),this['markDeletion'](_0x56dcb3,null,{..._0x416295}),_0xd9f974&&_0x4099ee(_0x53d8d4['batch'],_0xe44799,_0xd9f974);}});}_setSuggestionRange(_0x33e161,_0xa49044){const _0x2b9026=_0x33e161['getFirstMarker']();this['_model']['change'](_0x25800f=>{_0x25800f['updateMarker'](_0x2b9026,{'range':_0xa49044});});}_addThreadToSuggestion(_0x390428){const _0x14b3d6=_0x390428['id'],_0x3e6e56=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x14b3d6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e6e56,'threadId':_0x14b3d6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x22e8d6=this['_commentsRepository']['getCommentThread'](_0x14b3d6);_0x22e8d6['unbind']('isRemovable'),_0x22e8d6['isRemovable']=!0x1,_0x390428['commentThread']=_0x22e8d6;}_checkSuggestionCorrectness(_0x2934f7,_0x182029,_0x3bc5a9,_0x3b8ebf){if(_0x2934f7['type']!=_0x182029||_0x2934f7['subType']!=_0x3bc5a9||_0x2934f7['creator']['id']!=_0x3b8ebf)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x551602('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x7b2ed,_0x1f20f2){const _0x2879e3=_0x7b2ed['getFirstRange']();if(_0x1f20f2['isEqual'](_0x2879e3))_0x7b2ed['removeMarkers']();else{if(_0x2879e3['containsRange'](_0x1f20f2)){const _0x4c607a=this['_model']['createPositionAt'](_0x1f20f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x2879e3['start'],_0x4c607a));const _0x270c32=_0x51282a(),_0x513a2d=_0x7b2ed['creator']['id'],_0x2ba146=_0x7b2ed['type']+':'+_0x7b2ed['subType'];this['_setSuggestionData']({'id':_0x270c32,'type':_0x2ba146,'createdAt':new Date(),'authorId':_0x513a2d,'data':_0x7b2ed['data'],'attributes':_0x7b2ed['attributes']});const _0x190275=this['_model']['createPositionAt'](_0x1f20f2['end']['parent'],'after'),_0xe8a053=this['_model']['createRange'](_0x190275,_0x2879e3['end']);this['_addSuggestionMarker'](_0x2ba146,_0x270c32,_0x513a2d,_0xe8a053);}else{if(_0x2879e3['containsPosition'](_0x1f20f2['start'])){const _0x5b37d2=this['_model']['createPositionAt'](_0x1f20f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x2879e3['start'],_0x5b37d2));}else{const _0x30473d=this['_model']['createPositionAt'](_0x1f20f2['end']['parent'],'after');this['_setSuggestionRange'](_0x7b2ed,this['_model']['createRange'](_0x30473d,_0x2879e3['end']));}}}}_rangeIsInLocalUserInsertion(_0xb3e6d4){for(const {suggestion:_0x5d5592,meta:_0x49c461}of this['_findSuggestions'](_0xb3e6d4,'insertion')){if(!_0x49c461['isOwn'])continue;const _0x10aff0=_0x5d5592['getRanges']();for(const _0x396729 of _0x10aff0)if(!_0xb3e6d4['getDifference'](_0x396729)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x53923a){return this['editor']['plugins']['get']('Users')['getUser'](_0x53923a);}_getExternalAuthor(_0x31c6ee){const _0x17d004=this['editor']['plugins']['get']('Users'),_0x288aff=_0x4156df('external:'+_0x31c6ee),_0x1190a6=_0x17d004['getUser'](_0x288aff);return _0x1190a6||_0x17d004['addUser']({'id':_0x288aff,'name':_0x31c6ee});}_createSuggestion(_0x9dd56a,_0x233ee5,_0x1eddb3,_0x1b12b4,_0x46785c,_0x2d656c){const _0x538924=this['_getAuthorFromId'](_0x1b12b4);if(!_0x538924)throw new _0x551602('track-changes-user-not-found',this,{'authorId':_0x1b12b4,'suggestionId':_0x1eddb3});const _0x26de39=this['_suggestionFactory']['buildSuggestion'](_0x9dd56a,_0x233ee5,_0x1eddb3,_0x538924,_0x46785c,_0x45bcb6=>{this['_updateSuggestionData'](_0x1eddb3,{'attributes':_0x45bcb6});const _0x315e10=this['getSuggestion'](_0x1eddb3);this['_joinWithAdjacentSuggestions'](new Set([_0x315e10])),this['_refreshSuggestionsChain'](new Set([_0x315e10]));},_0x2d656c);return this['listenTo'](_0x26de39,'accept',()=>{this['_updateSuggestionData'](_0x1eddb3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26de39,'discard',()=>{this['_updateSuggestionData'](_0x1eddb3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1eddb3,_0x26de39),this['_suggestionState']['set'](_0x26de39,'notReady'),_0x26de39;}_breakSuggestionMarker(_0x22d2fc,_0x523ef7,_0x4f6417){const _0x4243fc=_0x22d2fc['getFirstRange'](),_0x5de7fb=_0x4243fc['start'],_0x458ead=_0x4243fc['end'];this['_setSuggestionRange'](_0x22d2fc,this['_model']['createRange'](_0x5de7fb,_0x523ef7));const _0x35b973=_0x51282a(),_0x1b8a9d=_0x22d2fc['creator']['id'],_0x1edb0e=_0x22d2fc['type']+(_0x22d2fc['subType']?':'+_0x22d2fc['subType']:'');this['_setSuggestionData']({'id':_0x35b973,'type':_0x1edb0e,'createdAt':new Date(),'authorId':_0x1b8a9d,'originalSuggestionId':_0x22d2fc['_originalSuggestionId']||_0x22d2fc['id'],'attributes':_0x22d2fc['attributes'],'data':_0x22d2fc['data']});const _0x1b28d4=this['_getAttributeKey'](_0x22d2fc);('formatBlock'==_0x22d2fc['type']||_0x1b28d4&&this['_suggestionsConversion']['isBlockAttribute'](_0x1b28d4))&&(_0x4f6417=this['_model']['createPositionBefore'](_0x4f6417['parent'])),this['_addSuggestionMarker'](_0x1edb0e,_0x35b973,_0x1b8a9d,this['_model']['createRange'](_0x4f6417,_0x458ead));}_findSuggestions(_0x14afa4,_0x3cac7c=null){const _0x1028f4=[],_0x371c2d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14afa4)||(_0x14afa4=[_0x14afa4]);for(const _0x5c7e91 of this['getSuggestions']()){if(!_0x5c7e91['isInContent'])continue;if(_0x3cac7c&&_0x5c7e91['type']!=_0x3cac7c)continue;let _0x263a91=!0x1;for(const _0x270e5e of _0x5c7e91['getRanges']()){for(const _0x3b8410 of _0x14afa4){const _0x592d6f=_0x3b8410['start']['isEqual'](_0x270e5e['end'])||_0x3b8410['end']['isEqual'](_0x270e5e['start']);if(_0x592d6f||_0x3b8410['getIntersection'](_0x270e5e)){const _0x226e00=_0x3b8410['containsRange'](_0x270e5e)&&cn(this['_model']['schema'],_0x270e5e['start'],_0x3b8410),_0x1c74bf=_0x270e5e['containsRange'](_0x3b8410)&&cn(this['_model']['schema'],_0x3b8410['start'],_0x270e5e);_0x1028f4['push']({'suggestion':_0x5c7e91,'meta':{'isOwn':_0x371c2d==_0x5c7e91['author'],'isNextTo':_0x592d6f,'isInsideObject':_0x226e00,'containsRangeInObject':_0x1c74bf}}),_0x263a91=!0x0;break;}}if(_0x263a91)break;}}return _0x1028f4;}_addSuggestionMarker(_0x357dec,_0x21b2f5,_0x11ab4e,_0x52bc44,_0x57b803){this['_model']['change'](_0x219317=>{let _0xbb661e='suggestion:'+_0x357dec+':'+_0x21b2f5+':'+_0x11ab4e;_0x57b803&&(_0xbb661e=_0xbb661e+':'+_0x57b803),_0x219317['addMarker'](_0xbb661e,{'range':_0x52bc44,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x19277d){const _0x3e700c=_0x19277d['previous'],_0x330d2f=_0x19277d['next'];_0x19277d['previous']=null,_0x19277d['next']=null,null!=_0x3e700c&&_0x3e700c['next']==_0x19277d&&(_0x3e700c['next']=_0x330d2f),null!=_0x330d2f&&_0x330d2f['previous']==_0x19277d&&(_0x330d2f['previous']=_0x3e700c),'ready'==this['_suggestionState']['get'](_0x19277d)&&(this['_suggestionState']['set'](_0x19277d,'removed'),this['fire']('suggestionUnloaded',_0x19277d,_0x3e700c,_0x330d2f));}_setSuggestionData(_0x4e0023){const _0x2c1e60=_0x4e0023['id'],_0x41cda8=this['addSuggestionData'](_0x4e0023);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42da75=this['editor']['plugins']['get']('PendingActions'),_0x41abe9=_0x41cda8['hasComments'],_0x384635=_0x41cda8['subType']?_0x41cda8['type']+':'+_0x41cda8['subType']:_0x41cda8['type'],_0x4545b0=this['editor']['locale'],_0x141d13=_0x42da75['add'](Ot(_0x4545b0,'PENDING_ACTION_SUGGESTION')),_0xec9ac6={'id':_0x2c1e60,'type':_0x384635,'hasComments':_0x41abe9,'data':_0x4e0023['data']||null,'originalSuggestionId':_0x4e0023['originalSuggestionId']||null,'attributes':_0x41cda8['attributes']};this['_adapter']['addSuggestion'](_0xec9ac6)['then'](_0x591881=>{_0x41cda8['_saved']=!0x0,_0x42da75['remove'](_0x141d13),_0x591881&&_0x591881['createdAt']&&(this['_suggestions']['get'](_0x2c1e60)['createdAt']=_0x591881['createdAt']);})['catch'](_0x79b81d=>{throw _0x57e45c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x41cda8['discard']();}),_0x41cda8['stopListening'](),this['_suggestions']['delete'](_0x41cda8['id']),this['_suggestionState']['delete'](_0x41cda8),_0x79b81d;});}return _0x41cda8;}_updateSuggestionData(_0x32355a,_0x2055a7){const _0x552ec0=this['editor']['plugins']['get']('PendingActions'),_0x394ea5=this['getSuggestion'](_0x32355a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x394ea5['_saved']){const _0x189fca=_0x552ec0['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32355a,_0x2055a7)['then'](()=>{_0x552ec0['remove'](_0x189fca);});}else _0x394ea5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32355a,_0x2055a7);});}}_getSuggestionData(_0x5c2546){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x551602('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5c2546);}_handleNewSuggestionMarker(_0x2a032c){const {id:_0x49bbbf,type:_0x2d3704,subType:_0x176ce2,authorId:_0xf7cd71}=et(_0x2a032c),_0x52e755=this['_suggestions']['get'](_0x49bbbf)||this['_createSuggestion'](_0x2d3704,_0x176ce2,_0x49bbbf,_0xf7cd71,{});switch(this['_checkSuggestionCorrectness'](_0x52e755,_0x2d3704,_0x176ce2,_0xf7cd71),this['_suggestionState']['get'](_0x52e755)){case'notReady':this['_getSuggestionData'](_0x49bbbf)['then'](_0x1a8198=>{let _0x29ef86=Promise['resolve']();_0x1a8198['hasComments']&&(_0x29ef86=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49bbbf})),_0x29ef86['then'](()=>{this['addSuggestionData'](_0x1a8198)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52e755,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49bbbf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52e755,'ready'),this['fire']('suggestionLoaded',_0x52e755);break;case'ready':this['fire']('suggestionChanged',_0x52e755);}return _0x52e755['addMarkerName'](_0x2a032c),_0x52e755;}_refreshSuggestionsChain(_0x35b505){const _0x4bb3c1=Array['from'](_0x35b505),_0x2faf12=_0x4bb3c1['filter'](_0x39c76d=>'attribute'==_0x39c76d['type']);this['_refreshAttributeSuggestionsChain'](_0x2faf12);const _0x4d19ea=_0x4bb3c1['filter'](_0x842d0d=>!_0x842d0d['isMultiRange']&&'attribute'!=_0x842d0d['type']),_0x484785=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x73b8d1=>!_0x73b8d1['isMultiRange']&&'attribute'!=_0x73b8d1['type']),_0x5663be=_0x484785['filter'](_0x40002e=>!_0x35b505['has'](_0x40002e)),_0x40852d=new Map(_0x484785['map'](_0x2a86a4=>[_0x2a86a4,this['_suggestionFactory']['getSuggestionCallback'](_0x2a86a4['type'],_0x2a86a4['subType'],'chain')])),_0x8a5b90=new Map(_0x484785['map'](_0x31b1b0=>[_0x31b1b0,_0x31b1b0['getFirstRange']()])),_0x4394e3=new Set(),_0x84f055=new Set();for(let _0x4af207=0x0;_0x4af207<_0x4d19ea['length'];_0x4af207++)_0x1b45fb(_0x4d19ea[_0x4af207],_0x4d19ea,_0x4af207+0x1);for(let _0x2123b6=0x0;_0x2123b6<_0x4d19ea['length'];_0x2123b6++)_0x1b45fb(_0x4d19ea[_0x2123b6],_0x5663be,0x0);const _0x2c80b7=new Set();for(let _0x7fede=0x0;_0x7fede<_0x4d19ea['length'];_0x7fede++){const _0xa9b17c=_0x4d19ea[_0x7fede];!_0x84f055['has'](_0xa9b17c)&&_0xa9b17c['previous']&&(_0x2c80b7['add'](_0xa9b17c['previous']),_0xa9b17c['previous']['next']===_0xa9b17c&&(_0xa9b17c['previous']['next']=null),_0xa9b17c['previous']=null),!_0x4394e3['has'](_0xa9b17c)&&_0xa9b17c['next']&&(_0x2c80b7['add'](_0xa9b17c['next']),_0xa9b17c['next']['previous']===_0xa9b17c&&(_0xa9b17c['next']['previous']=null),_0xa9b17c['next']=null);}function _0x1b45fb(_0x597f65,_0x2e2d6d,_0x402beb){for(let _0x5e897a=_0x402beb;_0x5e897a<_0x2e2d6d['length'];_0x5e897a++){const _0x56e8f2=_0x18b938(_0x597f65,_0x2e2d6d[_0x5e897a]);_0x56e8f2&&(_0x56e8f2[0x0]['next']=_0x56e8f2[0x1],_0x56e8f2[0x1]['previous']=_0x56e8f2[0x0],_0x4394e3['add'](_0x56e8f2[0x0]),_0x84f055['add'](_0x56e8f2[0x1]));}}function _0x18b938(_0x5aa61b,_0x4cf247){if(_0x5aa61b['author']['id']!==_0x4cf247['author']['id'])return null;const _0x7ddc7d=_0x40852d['get'](_0x5aa61b)(_0x5aa61b,_0x4cf247,_0x8a5b90['get'](_0x5aa61b),_0x8a5b90['get'](_0x4cf247));return _0x7ddc7d&&_0x40852d['get'](_0x4cf247)(_0x5aa61b,_0x4cf247,_0x8a5b90['get'](_0x5aa61b),_0x8a5b90['get'](_0x4cf247))?_0x7ddc7d[0x1]['commentThread']&&_0x7ddc7d[0x1]['commentThread']['length']?null:_0x7ddc7d:null;}_0x2c80b7['size']&&this['_refreshSuggestionsChain'](_0x2c80b7);}_refreshAttributeSuggestionsChain(_0x4ebe9e){if(0x0==_0x4ebe9e['length'])return;const _0x13ddc2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d81cf=>'attribute'==_0x2d81cf['type']&&_0x2d81cf['_isDataLoaded']),_0x1de09a=[],_0x1a252d=new Map();for(const _0x278a5e of _0x13ddc2){const _0x126f74=_0x4156df(_0x278a5e['attributes']);_0x1a252d['has'](_0x126f74)||(_0x1a252d['set'](_0x126f74,_0x1de09a['length']),_0x1de09a['push']([])),_0x1de09a[_0x1a252d['get'](_0x126f74)]['push'](_0x278a5e);}!(function(){_0x1de09a['sort']((_0x1dbde1,_0x4d34c0)=>{const _0x2bb859=_0x1dbde1[0x0]['createdAt'],_0x1ce416=_0x4d34c0[0x0]['createdAt'];return _0x2bb859==_0x1ce416?_0x1dbde1[0x0]['attributes']['groupId']<_0x4d34c0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bb859<_0x1ce416?-0x1:0x1;});for(const _0x58b9d1 of _0x1de09a)_0x58b9d1['sort']((_0x6e2ad8,_0x51785a)=>_0x6e2ad8['id']<_0x51785a['id']?-0x1:0x1);}());for(let _0x1778aa=0x0;_0x1778aa<_0x1de09a['length'];_0x1778aa++){if(0x0==_0x1de09a[_0x1778aa]['length'])continue;const _0x409028=[];for(let _0x538188=_0x1778aa+0x1;_0x538188<_0x1de09a['length'];_0x538188++)0x0!=_0x1de09a[_0x538188]['length']&&_0x4e6aee(_0x1de09a[_0x1778aa],_0x1de09a[_0x538188])&&_0x409028['push'](_0x538188);for(const _0x550c77 of _0x409028)_0x1de09a[_0x1778aa]=_0x1de09a[_0x1778aa]['concat'](_0x1de09a[_0x550c77]),_0x1de09a[_0x550c77]=[];}for(const _0x53bada of _0x1de09a)for(let _0x55fda2=0x0;_0x55fda2<_0x53bada['length'];_0x55fda2++){const _0x5b4cc0=_0x53bada[_0x55fda2+0x1]||null;_0x53bada[_0x55fda2]['next']!==_0x5b4cc0&&(_0x53bada[_0x55fda2]['next']=_0x5b4cc0);}for(const _0x13e51c of _0x1de09a)for(let _0x525f45=0x0;_0x525f45<_0x13e51c['length'];_0x525f45++){const _0x1e9de5=_0x13e51c[_0x525f45-0x1]||null;_0x13e51c[_0x525f45]['previous']!==_0x1e9de5&&(_0x13e51c[_0x525f45]['previous']=_0x1e9de5);}function _0x4e6aee(_0x349f89,_0x3dbb8e){return(_0x349f89[0x0]['attributes']['groupId']===_0x3dbb8e[0x0]['attributes']['groupId']||_0x349f89[0x0]['author']===_0x3dbb8e[0x0]['author'])&&(!!function(_0x1664df,_0x5312ad){return!_0x1664df['hasComments']&&!_0x5312ad['hasComments']||(!_0x1664df['hasComments']||!_0x5312ad['hasComments'])&&(!!(_0x1664df['hasComments']&&_0x5312ad['createdAt']<_0x1664df['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5312ad['hasComments']&&_0x1664df['createdAt']<_0x5312ad['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x349f89[0x0],_0x3dbb8e[0x0])&&(!!lt(ut(_0x349f89[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x3dbb8e[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x349f89[0x0]['attributes']['groupId']==_0x3dbb8e[0x0]['attributes']['groupId']||_0x349f89[0x0]['attributes']['trackingSessionId']===_0x3dbb8e[0x0]['attributes']['trackingSessionId']&&(!!_0x349f89['every'](_0x5b9c3b=>_0x3dbb8e['some'](_0x1efe82=>_0x5b9c3b['getFirstRange']()['isEqual'](_0x1efe82['getFirstRange']())))&&_0x3dbb8e['every'](_0x26573b=>_0x349f89['some'](_0x102af0=>_0x26573b['getFirstRange']()['isEqual'](_0x102af0['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x5d708b){const _0x177d00=Array['from'](_0x5d708b),_0x50dca5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f3522=_0x50dca5['filter'](_0x6ae227=>!_0x5d708b['has'](_0x6ae227)),_0x580bf2=new Map(_0x177d00['map'](_0x2e7235=>[_0x2e7235,this['_suggestionFactory']['getSuggestionCallback'](_0x2e7235['type'],_0x2e7235['subType'],'join')])),_0x60f0a9=new Map(_0x50dca5['map'](_0x3f8d54=>[_0x3f8d54,_0x3f8d54['getRanges']()]));for(let _0x271b7b=0x0;_0x271b7b<_0x177d00['length'];_0x271b7b++)if(_0x431806(this,_0x177d00[_0x271b7b],_0x177d00,_0x271b7b+0x1))return!0x0;for(let _0x5a4f41=0x0;_0x5a4f41<_0x177d00['length'];_0x5a4f41++)if(_0x431806(this,_0x177d00[_0x5a4f41],_0x3f3522,0x0))return!0x0;return!0x1;function _0x431806(_0x565465,_0x1207d1,_0x40dd28,_0x528389){for(let _0x5a5dd7=_0x528389;_0x5a5dd7<_0x40dd28['length'];_0x5a5dd7++){const _0x6c579c=_0x40dd28[_0x5a5dd7];if(_0x6c579c['type']!==_0x1207d1['type']||_0x6c579c['author']['id']!==_0x1207d1['author']['id']||_0x6c579c['subType']!==_0x1207d1['subType'])continue;if(!_n(_0x1207d1,_0x6c579c))continue;if('attribute'==_0x1207d1['type']&&_0x1207d1['data']['oldValue']!=_0x6c579c['data']['oldValue'])continue;if('attribute'==_0x1207d1['type']&&_0x565465['_suggestionsConversion']['isBlockAttribute'](_0x1207d1['data']['key']))continue;if('formatBlock'==_0x1207d1['type']){const _0x3f7f7e=_0x565465['editor']['model'],_0x3192a5=_0x1207d1['getContainedElement']();if(_0x3192a5&&(_0x3f7f7e['schema']['isObject'](_0x3192a5)||_0x3f7f7e['schema']['isLimit'](_0x3192a5)))continue;}const _0x505eaf=_0x580bf2['get'](_0x1207d1),_0x26068e=_0x60f0a9['get'](_0x1207d1),_0x46658d=_0x60f0a9['get'](_0x6c579c),_0xa0cced=_0x1207d1['commentThread']&&_0x1207d1['commentThread']['length'],_0x4afb4b=_0x6c579c['commentThread']&&_0x6c579c['commentThread']['length'];if(!_0xa0cced&&_0x505eaf(_0x46658d,_0x26068e))return _0x565465['_joinSuggestions'](_0x6c579c,_0x1207d1),_0x60f0a9['delete'](_0x1207d1),!0x0;if(!_0x4afb4b&&_0x505eaf(_0x26068e,_0x46658d))return _0x565465['_joinSuggestions'](_0x1207d1,_0x6c579c),_0x60f0a9['delete'](_0x6c579c),!0x0;}return!0x1;}}_joinSuggestions(_0x42f054,_0x25a09d){if(_0x42f054['isMultiRange']){for(const _0x485489 of _0x25a09d['getRanges']())_0x42f054['addRange'](_0x485489);}else{const _0x1e5c6c=_0x25a09d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42f054,this['_model']['createRange'](_0x42f054['getFirstRange']()['start'],_0x1e5c6c));}_0x25a09d['removeMarkers']();}_getMarkerAnnouncementText(_0x3efdc2,_0x1f47aa,_0x2256ef){const _0x4bfd8c=_0x3efdc2['startsWith']('format')||_0x3efdc2['startsWith']('attribute')?'FORMATTING':_0x3efdc2['toUpperCase']();return Ot(this['editor']['locale'],_0x1f47aa+'_'+_0x4bfd8c+'_SUGGESTION_ANNOUNCEMENT',_0x2256ef);}_initAriaMarkerChangeAnnouncements(){const _0x4bc1fe=this['editor'];if(!_0x4bc1fe['ui'])return;const {ariaLiveAnnouncer:_0x51e106}=_0x4bc1fe['ui'];nt(this['_model'],({left:_0x22f079,entered:_0x51b9cc})=>{for(const _0x12b214 of _0x22f079){const {group:_0x5a8f34,type:_0x31f4b3}=et(_0x12b214['name']);if('suggestion'===_0x5a8f34){_0x51e106['announce'](this['_getMarkerAnnouncementText'](_0x31f4b3,'LEAVE'));break;}}for(const _0x3d284c of _0x51b9cc){const {group:_0x148cad,type:_0x336d1b}=et(_0x3d284c['name']);if('suggestion'===_0x148cad){_0x51e106['announce'](this['_getMarkerAnnouncementText'](_0x336d1b,'ENTER',_0x2d824e(_0xe738f5)));break;}}});}_processAttributeChanges(_0x2c0a86){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2955ae=this['editor'],_0x582da6=_0x2955ae['model']['document']['differ']['getChanges']();if(0x0==_0x582da6['length'])return!0x1;const _0x25d7e2=[],_0x167c90=_0x582da6['filter'](_0x158530=>'attribute'==_0x158530['type']),_0x127766=_0x582da6['filter'](_0x48fef0=>'insert'==_0x48fef0['type']&&'$text'!=_0x48fef0['name']),_0xb405c2=_0x582da6['filter'](_0x405eae=>'remove'==_0x405eae['type']&&'$text'!=_0x405eae['name']);for(const _0x181cc8 of _0x167c90)_0x25d7e2['push']({'key':_0x181cc8['attributeKey'],'newValue':_0x181cc8['attributeNewValue'],'oldValue':_0x181cc8['attributeOldValue'],'range':mn(_0x181cc8['range'],_0x2955ae['model'])});for(const _0x5376bd of _0x127766){const _0x3ac071=_0xb405c2['find'](_0x21321d=>_0x21321d['position']['isEqual'](_0x5376bd['position']));_0x3ac071&&_0x25d7e2['push']({'key':rn,'newValue':_0x5376bd['name'],'oldValue':_0x3ac071['name'],'range':_0x2955ae['model']['createRangeOn'](_0x5376bd['position']['nodeAfter'])});}return 0x0!=_0x25d7e2['length']&&this['_reduceExistingSuggestions'](_0x2c0a86,_0x25d7e2);}_processAttributeSuggestions(_0x15ee2c){let _0x3a40f6=!0x1;const _0x1776a5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ab8c8=>_0x3ab8c8['data']['newRange']&&_0x3ab8c8['name']['startsWith']('suggestion:attribute:'));for(const _0x2e1d51 of _0x1776a5){const {subType:_0xca567,id:_0x50b7b0}=et(_0x2e1d51['name']),_0xbe922c=_0xca567['split']('|')[0x0];for(const _0x505fd5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x505fd5['id']!=_0x50b7b0&&'attribute'==_0x505fd5['type']&&_0x505fd5['data']&&_0x505fd5['data']['key']==_0xbe922c&&_0x505fd5['getFirstRange']()['isIntersecting'](_0x2e1d51['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x505fd5,_0x2e1d51['data']['newRange'],_0x15ee2c),_0x3a40f6=!0x0);}return _0x3a40f6;}recordAttributeChanges(_0x26e197){this['_recordAttributeSuggestions']=!0x0,_0x26e197();}_reduceExistingSuggestions(_0x1115bd,_0x54efdd){if(0x0==_0x54efdd['length'])return!0x1;let _0x449d8b=!0x1;for(const _0x25b9e9 of _0x54efdd){const _0x340396=this['_findSuggestions'](_0x25b9e9['range'],'attribute')['filter'](_0x37fa3c=>!_0x37fa3c['meta']['isNextTo'])['map'](_0x535ac1=>_0x535ac1['suggestion']),_0x3a3a68=_0x4156df({'newValue':_0x25b9e9['newValue']});_0x340396['filter'](_0x2f28fb=>{const [_0xf7d5d9,_0x37ca25]=_0x2f28fb['subType']['split']('|');return _0xf7d5d9==_0x25b9e9['key']&&_0x37ca25!=_0x3a3a68;})['forEach'](_0x45b2bc=>{this['_reduceSuggestionAttributeRange'](_0x45b2bc,_0x25b9e9['range'],_0x1115bd),_0x449d8b=!0x0;});}return _0x449d8b;}_reduceSuggestionAttributeRange(_0x5cc3bd,_0x4fe77d,_0x520c34){const _0x313bcd=_0x5cc3bd['getFirstRange']()['getDifference'](_0x4fe77d);0x0!==_0x313bcd['length']?0x1!==_0x313bcd['length']?this['_breakSuggestionMarker'](_0x5cc3bd,_0x4fe77d['start'],_0x4fe77d['end']):this['_setSuggestionRange'](_0x5cc3bd,_0x313bcd[0x0]):_0x520c34['removeMarker'](_0x5cc3bd['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4ba592){this['_editor']=_0x4ba592,this['_model']=_0x4ba592['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x46528b,_0xab4431,_0x2ee5fc,_0x43a6e4,_0x4e4bfe,_0xff4710,_0x391af8){return new Mt(this['_model'],{'type':_0x46528b,'subType':_0xab4431,'id':_0x2ee5fc,'originalSuggestionId':_0x391af8,'author':_0x43a6e4,'creator':_0x43a6e4,'attributes':_0x4e4bfe,'onAttributesChange':_0xff4710,'onAccept':(..._0x1dbbcb)=>this['getSuggestionCallback'](_0x46528b,_0xab4431,'accept')(..._0x1dbbcb),'onDiscard':(..._0x43c2e7)=>this['getSuggestionCallback'](_0x46528b,_0xab4431,'discard')(..._0x43c2e7)});}registerCustomCallback(_0x321e49,_0x5f36cd,_0x29a862,_0x2d62c2){const _0x23907e=_0x321e49+':'+_0x5f36cd+':'+_0x29a862;this['_customCallbacks']['set'](_0x23907e,_0x2d62c2);}getSuggestionCallback(_0xedda2f,_0x56ee06,_0x1705fb){const _0x2bbf6d=_0xedda2f+':'+_0x56ee06+':'+_0x1705fb;return this['_customCallbacks']['get'](_0x2bbf6d)||this['_defaultCallbacks']['get'](_0xedda2f+':'+_0x1705fb);}_registerDefaultCallbacks(){const _0x55cf3a=()=>!0x1,_0x3b1f99=_0x453ce2=>{_0x453ce2['sort']((_0x36be94,_0x49f557)=>_0x36be94['start']['isBefore'](_0x49f557['start'])?0x1:-0x1),this['_model']['change'](_0x237b31=>{for(const _0x6b26ba of _0x453ce2){let _0x1dfbee;_0x1dfbee=_0x6b26ba['end']['isAtEnd']&&_0x6b26ba['end']['parent']==_0x6b26ba['start']['nodeAfter']?_0x237b31['createSelection'](_0x6b26ba['start']['nodeAfter'],'on'):_0x237b31['createSelection'](_0x6b26ba),this['_model']['deleteContent'](_0x1dfbee,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x51608d=(_0x18dd12,_0x58afe7)=>{_0x58afe7&&this['_model']['change'](_0x5038cc=>{const {commandName:_0x336e99,commandParams:_0x18f9b9=[]}=_0x58afe7,_0x2067ec=_0x18dd12['map'](_0x16563e=>(ln(_0x16563e)&&(_0x16563e=this['_model']['createRange'](_0x16563e['end'])),_0x16563e))['filter'](_0x13e735=>'$graveyard'!==_0x13e735['root']['rootName']);if(_0x2067ec['length']<0x1)return;const _0x3e3f46=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x38a6c2=>ot['fromRange'](_0x38a6c2));_0x5038cc['setSelection'](_0x2067ec);for(const _0x54b9e1 of this['_editor']['commands']['commands']())_0x54b9e1['refresh']();_0x18f9b9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x336e99,..._0x18f9b9);const _0x238efa=_0x3e3f46['filter'](_0x2be2f1=>'$graveyard'!=_0x2be2f1['root']['rootName']);_0x238efa['length']>0x0&&_0x5038cc['setSelection'](_0x238efa);for(const _0x1493de of _0x3e3f46)_0x1493de['detach']();});},_0x17c730=(_0x53ebfa,_0xc465b)=>0x1==_0x53ebfa['length']&&0x1==_0xc465b['length']&&_0x53ebfa[0x0]['end']['isEqual'](_0xc465b[0x0]['start']),_0x424c22=(_0xed4a3e,_0xb863e3,_0x25c2ba,_0x11a3fe)=>Tn(_0xed4a3e,_0xb863e3,_0x25c2ba,_0x11a3fe)?[_0xed4a3e,_0xb863e3]:Tn(_0xb863e3,_0xed4a3e,_0x11a3fe,_0x25c2ba)?[_0xb863e3,_0xed4a3e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x55cf3a),this['_defaultCallbacks']['set']('insertion:discard',_0x3b1f99),this['_defaultCallbacks']['set']('insertion:join',_0x17c730),this['_defaultCallbacks']['set']('insertion:chain',_0x424c22),this['_defaultCallbacks']['set']('deletion:accept',_0x3b1f99),this['_defaultCallbacks']['set']('deletion:discard',_0x55cf3a),this['_defaultCallbacks']['set']('deletion:join',_0x17c730),this['_defaultCallbacks']['set']('deletion:chain',_0x424c22),this['_defaultCallbacks']['set']('formatInline:accept',_0x51608d),this['_defaultCallbacks']['set']('formatInline:discard',_0x55cf3a),this['_defaultCallbacks']['set']('formatInline:join',_0x17c730),this['_defaultCallbacks']['set']('formatInline:chain',_0x55cf3a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x51608d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x55cf3a),this['_defaultCallbacks']['set']('formatBlock:join',_0x17c730),this['_defaultCallbacks']['set']('formatBlock:chain',_0x55cf3a),this['_defaultCallbacks']['set']('attribute:accept',_0x55cf3a),this['_defaultCallbacks']['set']('attribute:discard',(_0x532845,_0x405171)=>{if(!_0x405171)return;const _0x3e525d=this['_editor']['plugins']['get'](_0x323228);this['_model']['change'](_0x283946=>{if('$elementName'==_0x405171['key'])for(const _0x2bbbb7 of _0x532845){const _0x48bfa8=_0x2bbbb7['start']['nodeAfter'],_0x4bd64b=_0x405171['oldValue'];_0x283946['rename'](_0x48bfa8,_0x4bd64b);}else{if(_0x3e525d['isBlockAttribute'](_0x405171['key'])){for(const _0x5c212e of _0x532845)void 0x0!==_0x405171['oldValue']?_0x283946['setAttribute'](_0x405171['key'],_0x405171['oldValue'],_0x5c212e['start']['nodeAfter']):_0x283946['removeAttribute'](_0x405171['key'],_0x5c212e['start']['nodeAfter']);}else{for(const _0x3ff42d of _0x532845)_0x405171['oldValue']?_0x283946['setAttribute'](_0x405171['key'],_0x405171['oldValue'],_0x3ff42d):_0x283946['removeAttribute'](_0x405171['key'],_0x3ff42d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x17c730);}};function cn(_0x3bce18,_0x4f5402,_0x5489d0){for(const _0x4cde7f of _0x4f5402['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cde7f['root']==_0x4cde7f)return!0x1;if(!_0x5489d0['containsItem'](_0x4cde7f))return!0x1;if(_0x3bce18['isObject'](_0x4cde7f)||_0x3bce18['isLimit'](_0x4cde7f))return!0x0;}return!0x1;}function ln(_0xef9755){return _0xef9755['end']['parent']==_0xef9755['start']['nodeAfter']&&_0xef9755['end']['isAtStart'];}function un(_0x463007,_0x4d2d31,_0x561c73,_0x333715){const _0x3c1bad=_0x1fad70=>!_0x1fad70['item']['is']('$textProxy')&&!_0x333715['isObject'](_0x1fad70['item']),_0x5217eb=_0x463007['start']['getLastMatchingPosition'](_0x3c1bad),_0xa44582=_0x463007['end']['getLastMatchingPosition'](_0x3c1bad,{'direction':'backward'});return(!_0x463007['start']['isEqual'](_0x5217eb)||!_0x463007['end']['isEqual'](_0xa44582))&&(_0x5217eb['isBefore'](_0xa44582)?_0x561c73['updateMarker'](_0x4d2d31,{'range':_0x561c73['createRange'](_0x5217eb,_0xa44582)}):_0x561c73['removeMarker'](_0x4d2d31),!0x0);}function dn(_0x347b31){return _0x4156df(_0x347b31);}function hn(_0x5bc3a9){const _0x4eb3dc=_0x5bc3a9['start']['nodeAfter'];return _0x4eb3dc&&_0x4eb3dc['is']('element');}function gn(_0x1d8019){return ln(_0x1d8019)||function(_0xf322a2){return _0xf322a2['start']['parent']==_0xf322a2['end']['nodeBefore']&&_0xf322a2['start']['isAtEnd'];}(_0x1d8019);}function fn(_0x32aefb,_0x2ffae7){try{const _0x174800=_0x32aefb['getRange']();for(const _0x5c1403 of _0x2ffae7)if(_0x32aefb!==_0x5c1403&&_0x174800&&_0x174800['isIntersecting'](_0x5c1403['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0xcaf51e,_0x475199){return null==_0xcaf51e['end']['nodeBefore']&&_0xcaf51e['end']['parent']==_0xcaf51e['start']['nodeAfter']?En(_0xcaf51e['start']['nodeAfter'],_0x475199):_0xcaf51e;}function En(_0x336668,_0x62c7e6){const _0x1bc0a8=_0x62c7e6['schema']['isObject'](_0x336668)||_0x62c7e6['schema']['isSelectable'](_0x336668);return _0x62c7e6['createRange'](_0x62c7e6['createPositionAt'](_0x336668,'before'),_0x1bc0a8?_0x62c7e6['createPositionAfter'](_0x336668):_0x62c7e6['createPositionAt'](_0x336668,'end'));}function Tn(_0x3b6a6c,_0xb4392f,_0x46a204,_0x53ea02){return!!_n(_0x3b6a6c,_0xb4392f)&&_0x46a204['end']['isEqual'](_0x53ea02['start']);}function _n(_0x20a43c,_0x13a952){if(!_0x20a43c['_isDataLoaded']||!_0x13a952['_isDataLoaded'])return!0x1;const _0xef9637=new Set(Object['keys'](_0x20a43c['attributes'])),_0x5990d7=new Set(Object['keys'](_0x13a952['attributes']));if(_0xef9637['delete']('groupId'),_0x5990d7['delete']('groupId'),0x0==_0xef9637['size']&&0x0==_0x5990d7['size'])return!0x0;if(_0xef9637['size']!=_0x5990d7['size'])return!0x1;const _0x1300dc={..._0x20a43c['attributes']},_0x2925cd={..._0x13a952['attributes']};return delete _0x1300dc['groupId'],delete _0x2925cd['groupId'],JSON['stringify'](_0x1300dc)==JSON['stringify'](_0x2925cd);}function pn(_0xa98be5,_0x281556){const _0x2b2f80=Ln(_0xa98be5['attributes']),_0x5ddbe3=Ln(_0x281556);if(!_0xa98be5['_isDataLoaded'])return!0x1;if(!lt(_0x2b2f80['@ai'],_0x5ddbe3['@ai']))return!0x1;for(const _0x14933c of Object['keys'](_0x5ddbe3))if(!lt(_0x2b2f80[_0x14933c],_0x5ddbe3[_0x14933c]))return!0x1;return!0x0;}function Ln(_0x3b2cf1){const _0x47403d=Object['assign']({},_0x3b2cf1);return delete _0x47403d['skipNestingCheck'],delete _0x47403d['tablePasteChainId'],_0x47403d;}function In(_0x1c0023){return _0x1c0023['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x561130();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x54c251,_0x1abc31,_0x71787,_0x46713c){super(),this['model']=_0x1abc31,this['view']=_0x71787,this['commentThreadController']=_0x46713c,this['_editor']=_0x54c251,this['_acceptCommand']=_0x54c251['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54c251['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2d3ae7,_0xc83644)=>_0x2d3ae7||_0xc83644),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43a5ca=>_0x43a5ca&&this['_editor']['model']['canEditAt'](_0x1abc31['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e57e7=>_0x1e57e7&&this['_editor']['model']['canEditAt'](_0x1abc31['getRanges']())),this['_pendingAction']=null,_0x71787['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x71787,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x71787,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x71787,'change:isDirty',()=>{_0x71787['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 _0x49b4e6=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x49b4e6);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0xb5c2ba{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e6fa5,_0x1e337b,_0x55e597,_0x473578){super(_0x2e6fa5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x55adc0(_0x2e6fa5,Ot(_0x2e6fa5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e337b['authoredAt']),this['bind']('authoredAt')['to'](_0x1e337b),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',_0x1e337b,'authoredAt',this,'descriptionParts',(_0xa70fa4,_0x3a25bc,_0x490c09)=>{const _0x52ce35=_0x490c09['map'](_0x34b83b=>It(_0x34b83b['content']))['join']('.\x20')+'.',_0x538d75=_0x1e337b['aiSource']&&'author'===_0x473578['showAISource']?_0x473578['aiAuthor']['name']:_0x1e337b['author']['name'],_0x30d6e5=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xa70fa4-0x1,_0x538d75,_0x3a25bc?_0x473578['formatDateTime'](_0x3a25bc):'',new DOMParser()['parseFromString'](_0x52ce35,'text/html')['body']['textContent']]);return _0x1e337b['aiSource']&&'pill'===_0x473578['showAISource']?_0x30d6e5+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x30d6e5;}),this['focusables']=new _0x952a5c(),this['focusTracker']=new _0x232d1c(),this['keystrokes']=new _0x3f3b3a(),this['focusCycler']=new _0xb80481({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fca27=>_0x1fca27['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e337b,this['_localUser']=_0x55e597,this['_config']=_0x473578,_0x473578['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x58b61d}=this['_config'];this['commentsListView']=new _0x58b61d(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',_0x101eca=>_0x101eca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5b2a58,_0x331fea)=>_0x5b2a58||!!_0x331fea);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x11938b}=this['_config'],_0x521619=new _0x11938b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cd2db=_0x521619['commentInputView'];return _0x521619['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cd2db,'value',(_0xf4c27f,_0x442570,_0x1c83fc)=>!!_0x1c83fc||_0xf4c27f&&!_0x442570),_0x5cd2db['on']('submit',(_0x1f0f08,_0x5954c6)=>{this['fire']('addComment',_0x5954c6),_0x5cd2db['editor']['setData']('');}),_0x5cd2db['on']('cancel',()=>this['focus']()),_0x5cd2db['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x521619;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x484674,_0x3601e3,_0x52256d,_0x236ee3){super(_0x484674,_0x3601e3,_0x52256d,_0x236ee3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x23f04e=>_0x23f04e&&_0x23f04e[0x0]?_0x23f04e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3d0458,_0x1ce517)=>{let _0x545de2='';for(const _0x3e8daa of _0x3d0458)_0x545de2+='<p>'+It(_0x3e8daa['content'],_0x3e8daa['color'])+'</p>';return _0x1ce517?_0x545de2:it(_0x545de2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x236ee3['SuggestionView'](_0x484674,_0x3601e3,{'formatDateTime':_0x236ee3['formatDateTime'],'showAISource':_0x236ee3['showAISource'],'aiAuthor':_0x236ee3['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x196615=this['bindTemplate'],_0xf73482=[this['suggestionView']];return this['commentsListView']&&_0xf73482['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf73482['push'](this['commentThreadInputView']),_0xf73482['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x196615['if']('isActive','ck-suggestion-wrapper--active'),_0x196615['to']('type',_0x4e8831=>'ck-suggestion-'+_0x4e8831),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':_0x196615['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf73482};}['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));}},Rn=class extends _0xb5c2ba{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0xbc75bc,_0x45ee24,_0xfca620){super(_0xbc75bc),this['_model']=_0x45ee24,this['_config']=_0xfca620,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45ee24),this['acceptButton']=this['_createButton'](Ot(_0xbc75bc,'Accept\x20suggestion'),_0x3a25ec,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0xbc75bc,'Discard\x20suggestion'),_0x5c91fc,'ck-suggestion--discard','discardSuggestion','sw');const _0x426865=!!_0x45ee24['aiSource']&&'author'===_0xfca620['showAISource'],_0x51e17d=_0x426865?this['_createAIUser'](_0xfca620['aiAuthor']):_0x45ee24['author'],_0x33abde=_0x426865&&!_0xfca620['aiAuthor']['avatar']?_0x37e2a9:void 0x0;this['userView']=new _0x2cbd2f(_0xbc75bc,_0x51e17d,this['getUserViewNotificationText'](),_0x33abde),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x952a5c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x232d1c(),this['keystrokes']=new _0x3f3b3a(),this['focusCycler']=new _0xb80481({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b5c60=>_0x3b5c60['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4b003e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4b003e['innerHTML']=this['description'],this['on']('change:description',(_0x312e84,_0xe1129a,_0x34a443)=>{_0x4b003e['innerHTML']=_0x34a443;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3dce3c=this['bindTemplate'],_0xb36315=[{'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':_0x3dce3c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3dce3c['to']('authoredAt',_0x1c347f=>this['_config']['formatDateTime'](_0x1c347f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0xb36315['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x111f89=new _0x101e7c(this['locale']);_0x111f89['set']({'icon':_0x35255a,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0xb36315['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x111f89]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0xb36315}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1972a9){return new _0x3c1377({'id':'ck-ai-author','name':_0x1972a9['name'],'avatar':_0x1972a9['avatar'],'color':new _0x283d91(0x0)});}_createButton(_0x1e17ba,_0x33a6d0,_0x341cea,_0xa25cd1,_0xe8e775){const _0x3d3ce2=new _0x5ab2ba(this['locale']);return _0x3d3ce2['set']({'label':_0x1e17ba,'icon':_0x33a6d0,'tooltip':!0x0,'tooltipPosition':_0xe8e775}),_0x3d3ce2['extendTemplate']({'attributes':{'class':_0x341cea}}),_0x3d3ce2['on']('execute',()=>{this['fire'](_0xa25cd1,this['_model']['id']);}),_0x3d3ce2;}_setupKeyboardNavigation(){const _0x400d86=this['element'];this['keystrokes']['listenTo'](_0x400d86);for(const _0x394160 of this['focusables'])this['focusTracker']['add'](_0x394160['element']),this['keystrokes']['listenTo'](_0x394160['element']);this['keystrokes']['set']('enter',(_0x1d0107,_0x1f0827)=>{_0x400d86===_0x1d0107['target']&&(this['focusCycler']['focusFirst'](),_0x1f0827());}),this['keystrokes']['set']('esc',(_0x50355d,_0x5a26ca)=>{_0x400d86!==_0x50355d['target']&&(this['focus'](),_0x5a26ca());});}},yn=class extends _0x1f600{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x340ac5,_0x496d24,_0x47fad5,_0x4a5899];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x464dbc){super(_0x464dbc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x42ad00=this['editor']['config'];_0x42ad00['define']('trackChanges.SuggestionThreadView',kn),_0x42ad00['define']('trackChanges.SuggestionView',Rn),_0x42ad00['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42ad00['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2f1f34,_0xf2ac34){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39ed25,_0xba69b0]of this['_handleControllerBuffer']){const _0x1e1ea3=this['_suggestionToController']['has'](_0x39ed25);_0x1e1ea3||_0xba69b0?_0x1e1ea3&&_0xba69b0&&this['_destroyController'](_0x39ed25):this['_initializeController'](_0x39ed25);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4a5899)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f1f34,_0xf2ac34);}init(){const _0x74ce3b=this['editor'],_0x578256=_0x74ce3b['plugins']['get'](on),_0x5a4ad7=_0x74ce3b['plugins']['get'](_0x47fad5),_0x155648=_0x74ce3b['plugins']['get'](_0x4a5899),_0x286666=_0x74ce3b['plugins']['get'](_0x496d24);this['_addUIComponentsToFactory'](),_0x155648['addSourceCollector'](()=>{const _0x459d19=[];for(const [_0x17a8f6,_0x4f46c1]of Array['from'](this['_suggestionToController'])){const _0x466ad0=_0x17a8f6['getAllAdjacentSuggestions'](),_0x2e25e2=[];for(const _0x44f254 of _0x466ad0){if(!_0x44f254['isInContent'])continue;if(_0x44f254['isMultiRange']){_0x2e25e2['push'](..._0x44f254['getRanges']());continue;}const _0x44c836=_0x44f254['getFirstRange']();if(_0x2e25e2['length']>0x0){const _0xd0b0d9=_0x2e25e2[0x0]['getJoined'](_0x44c836);if(_0xd0b0d9){_0x2e25e2[0x0]=_0xd0b0d9;continue;}}_0x2e25e2['push'](_0x44c836);}_0x459d19['push']([_0x4f46c1['view'],_0x2e25e2]);}return _0x459d19;}),this['listenTo'](_0x578256,'suggestionLoaded',(_0x3d59cd,_0xfa791c)=>{this['listenTo'](_0xfa791c,'change:previous',(_0x17fa18,_0x24b028,_0x599e51,_0x1d1fa6)=>{_0xfa791c['isInContent']&&(null==_0x599e51?(this['_updateController'](_0x1d1fa6['head']),this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x1)):(this['_updateController'](_0x599e51['head']),null==_0x1d1fa6&&this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x0)));}),null!==_0xfa791c['previous']?this['_updateController'](_0xfa791c['head']):this['_handleSuggestionControllerDelayed'](_0xfa791c,!0x1);}),this['listenTo'](_0x578256,'suggestionUnloaded',(_0x2c08ce,_0x2739b1,_0x18d3f8)=>{this['stopListening'](_0x2739b1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2739b1),this['_suggestionToController']['has'](_0x2739b1)&&this['_destroyController'](_0x2739b1),_0x18d3f8&&this['_updateController'](_0x18d3f8['head']);}),this['listenTo'](_0x578256,'suggestionChanged',(_0x2e2194,_0x53e1e6)=>{this['_updateController'](_0x53e1e6);}),this['listenTo'](_0x5a4ad7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x286666,'addComment',(_0xb9cddc,{threadId:_0x506504,isFromAdapter:_0x2bafb6})=>{if(_0x2bafb6||!_0x578256['hasSuggestion'](_0x506504))return;const _0x2752a0=_0x578256['getSuggestion'](_0x506504);this['_suggestionToController']['get'](_0x2752a0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58b9ef=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10ff2;for(const _0x917f44 in _0x58b9ef){const _0x4ccb16=_0x917f44,_0xc0e22f=_0x58b9ef[_0x4ccb16];if('trackChangesLicenseKeyValid'==_0xc0e22f||'trackChangesLicenseKeyInvalid'==_0xc0e22f||'trackChangesLicenseKeyExpired'==_0xc0e22f||'trackChangesLicenseKeyDomainLimit'==_0xc0e22f||'trackChangesLicenseKeyNotAllowed'==_0xc0e22f||'trackChangesLicenseKeyEvaluationLimit'==_0xc0e22f||'trackChangesLicenseKeyUsageLimit'==_0xc0e22f){delete _0x58b9ef[_0x4ccb16],_0x10ff2=_0xc0e22f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10ff2&&_0x58b9ef['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10ff2&&_0x58b9ef['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10ff2&&_0x58b9ef['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10ff2&&_0x58b9ef['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x16a0ee){const _0x3b19fb=this['_suggestionToController']['get'](_0x16a0ee);return _0x3b19fb&&this['editor']['plugins']['get'](_0x47fad5)['getByInnerView'](_0x3b19fb['view'])||null;}getSuggestionForAnnotation(_0x6296b){const _0x3ef76c=this['_viewToController']['get'](_0x6296b['innerView']);return _0x3ef76c?_0x3ef76c['model']:null;}_refreshActiveMarkers(){const _0x2c2bbe=this['editor']['plugins']['get'](_0x47fad5),_0x4c1e5d=this['editor']['plugins']['get'](on),_0x117125=Array['from'](_0x2c2bbe['activeAnnotations'],_0x2efee1=>_0x2efee1['innerView'])['filter'](_0x12a05c=>this['_viewToController']['has'](_0x12a05c)),_0x10f03e=[];for(const _0x1de2f3 of _0x117125){const _0xbdb731=this['_viewToController']['get'](_0x1de2f3)['model']['getAllAdjacentSuggestions']();_0x10f03e['push'](..._0xbdb731['reduce']((_0x20c9b6,_0x5a2867)=>[..._0x20c9b6,..._0x5a2867['getMarkerNames']()],[]));}_0x4c1e5d['activeMarkers']=_0x10f03e;}_addUIComponentsToFactory(){const _0x173b54=this['editor'],_0x30019d=_0x173b54['locale'],_0x4bd3a6=Ot(_0x30019d,'Track\x20changes'),_0x4c7f82=new _0x40a69f([{'type':'switchbutton','model':new _0x45771c({'withText':!0x0,'isToggleable':!0x0,'label':_0x4bd3a6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x173b54['plugins']['has']('TrackChangesPreview')&&_0x4c7f82['addMany']([{'type':'separator'},{'type':'button','model':new _0x45771c({'withText':!0x0,'label':Ot(_0x30019d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3874f5 of _0x4c7f82)if(Nn(_0x3874f5)){const _0x47494f=_0x173b54['commands']['get'](_0x3874f5['model']['commandName']);_0x3874f5['model']['bind']('isOn','isEnabled')['to'](_0x47494f,'value','isEnabled');}_0x173b54['ui']['componentFactory']['add']('trackChanges',_0x48f931=>this['_createToolbarButton'](_0x48f931,_0x4c7f82,_0x4bd3a6)),_0x173b54['ui']['componentFactory']['add']('menuBar:trackChanges',_0xe6b425=>this['_createMenuBarMenu'](_0xe6b425,_0x4c7f82,_0x4bd3a6));}_createToolbarButton(_0x4f860d,_0x4a5208,_0x3c4d82){const _0x50cbd9=_0x216057(_0x4f860d,_0x10711f),_0x52acdc=this['editor']['commands']['get']('trackChanges');_0x50cbd9['buttonView']['set']({'tooltip':_0x3c4d82,'label':_0x3c4d82,'icon':_0x2d40ca}),_0x50cbd9['buttonView']['bind']('isOn')['to'](_0x52acdc,'value'),_0x50cbd9['buttonView']['on']('execute',()=>{_0x52acdc['execute'](),this['editor']['editing']['view']['focus']();}),_0x5c6760(_0x50cbd9,_0x4a5208,{'role':'menu'});const _0x4431d6=[];for(const _0x4034a9 of _0x4a5208)Nn(_0x4034a9)&&_0x4431d6['push'](this['editor']['commands']['get'](_0x4034a9['model']['commandName']));const _0x27f014=_0x50cbd9['buttonView'];return _0x27f014['actionView']['unbind']('isEnabled'),_0x27f014['arrowView']['unbind']('isEnabled'),_0x27f014['actionView']['bind']('isEnabled')['to'](_0x52acdc,'isEnabled'),_0x27f014['arrowView']['bind']('isEnabled')['toMany'](_0x4431d6,'isEnabled',(..._0x4cc661)=>_0x4cc661['some'](_0x5336f5=>_0x5336f5)),_0x50cbd9['on']('execute',_0x2cf61f=>{this['editor']['execute'](_0x2cf61f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50cbd9;}_createMenuBarMenu(_0x42bf12,_0x187757,_0xe45033){const _0x2b1b86=new _0xb5c3ae(_0x42bf12),_0x1adc53=this['editor']['commands']['get']('trackChanges');_0x2b1b86['buttonView']['set']({'label':_0xe45033,'icon':_0x2d40ca});const _0x4def24=new _0x57c1a0(_0x42bf12);for(const _0x4929fb of _0x187757){if('separator'==_0x4929fb['type']){_0x4def24['items']['add'](new _0x4f740e(_0x42bf12));continue;}const _0xe55bde=new _0x8130a5(_0x42bf12,_0x2b1b86),_0x484b6a=new _0x46ff38(_0x42bf12),_0x3321d7=_0x4929fb['model'];_0x484b6a['bind'](...Object['keys'](_0x3321d7))['to'](_0x3321d7),_0x484b6a['delegate']('execute')['to'](_0x2b1b86),_0x484b6a['on']('execute',()=>{this['editor']['execute'](_0x3321d7['commandName']),this['editor']['editing']['view']['focus']();}),_0xe55bde['children']['add'](_0x484b6a),_0x4def24['items']['add'](_0xe55bde);}return _0x2b1b86['bind']('isEnabled')['to'](_0x1adc53,'isEnabled'),_0x2b1b86['panelView']['children']['add'](_0x4def24),_0x2b1b86;}_initializeController(_0x59005b){const _0x8c2a78=this['editor'],_0x5cf0da=_0x8c2a78['config'],_0xe72f88=_0x8c2a78['plugins']['get'](_0x47fad5),_0x2d1202=_0x8c2a78['plugins']['get'](_0x496d24),_0x254d3f=_0x8c2a78['plugins']['get'](_0x4a5899),_0x4cd607=_0x8c2a78['plugins']['get'](_0x340ac5)['me'],_0x1e8b47=_0x5cf0da['get']('trackChanges')['SuggestionThreadView'],_0x109e6a=_0x5cf0da['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x422660,CommentThreadInputView:_0x2b7884}=_0x8c2a78['plugins']['get']('CommentsUI');let _0x518806,_0x4ebe31,_0x8aa048;this['_annotationViews']['has'](_0x59005b['id'])?(_0x4ebe31=this['_annotationViews']['get'](_0x59005b['id']),_0x518806=_0x4ebe31['mainView']):(_0x518806=new _0x1e8b47(_0x8c2a78['locale'],_0x59005b,_0x4cd607,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cf0da['get']('comments.editorConfig'),'licenseKey':_0x5cf0da['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cf0da['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cf0da['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cf0da['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x258310(_0x5cf0da['get']('locale'),_0x8c2a78['locale']),'CommentView':_0x5cf0da['get']('comments')['CommentView'],'CommentsListView':_0x422660,'CommentThreadInputView':_0x2b7884,'SuggestionView':_0x109e6a,'showAISource':_0x5cf0da['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5cf0da['get']('trackChanges.aiAuthor'),'name':_0x5cf0da['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x8c2a78['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x518806['suggestionView']['acceptButton']['on']('execute',()=>{_0x8c2a78['editing']['view']['focus']();}),_0x518806['suggestionView']['discardButton']['on']('execute',()=>{_0x8c2a78['editing']['view']['focus']();}),_0x4ebe31=_0xe72f88['createAnnotationView'](this['editor']['locale'],_0x518806),_0x4ebe31['bind']('isDirty')['to'](_0x518806,'isDirty'),_0x4ebe31['bind']('length')['to'](_0x518806),_0x4ebe31['bind']('type')['to'](_0x518806,'type',_0x575acd=>'suggestion-'+_0x575acd),_0x518806['on']('escape',()=>{_0x8aa048['fire']('escape');}),this['_annotationViews']['set'](_0x59005b['id'],_0x4ebe31));const _0x712ab4=_0x2d1202['createCommentThreadController'](_0x59005b['commentThread'],_0x518806),_0x152dce=new bn(_0x8c2a78,_0x59005b,_0x518806,_0x712ab4),_0x598851=_0x59005b['getAllAdjacentSuggestions']()['filter'](_0x16258c=>_0x16258c['isInContent']);_0x518806['descriptionParts']=_0x8c2a78['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x598851),this['_suggestionToController']['set'](_0x59005b,_0x152dce),this['_viewToController']['set'](_0x518806,_0x152dce);const _0x5243db=()=>{const _0x3408a5=[],_0x2afc20=_0x59005b['getAllAdjacentSuggestions']()['filter'](_0x110347=>_0x110347['isInContent']);for(const _0x16d14a of _0x2afc20)_0x3408a5['push'](..._0x16d14a['getMarkers']());return _0x533ece(_0x8c2a78['editing'],_0x3408a5);};_0x8aa048=_0xe72f88['createAnnotation']({'view':_0x4ebe31,'target':_0x5243db,'type':()=>'suggestion-'+_0x152dce['view']['type'],'isVisible':!!_0x5243db()}),_0x2d1202['_bindAnnotationToEditors'](_0x518806,_0x8aa048),_0xe72f88['add'](_0x8aa048),_0x254d3f['registerAnnotation'](_0x8aa048);}_destroyController(_0x1e8e6c){const _0x2caa1b=this['editor']['plugins']['get'](_0x496d24),_0x292969=this['editor']['plugins']['get'](_0x47fad5),_0x949a29=this['_suggestionToController']['get'](_0x1e8e6c),_0x22149d=_0x949a29['view'],_0x688157=_0x292969['getByInnerView'](_0x22149d);_0x2caa1b['_unbindEditors'](_0x22149d),_0x688157&&_0x292969['remove'](_0x688157),this['_suggestionToController']['delete'](_0x1e8e6c),this['_viewToController']['delete'](_0x22149d),_0x949a29['destroy']();}_updateController(_0x5acf5b){if(!_0x5acf5b['isInContent']||!this['_suggestionToController']['has'](_0x5acf5b))return;const _0x314f1a=this['editor']['plugins']['get'](on),_0x3f6306=this['_suggestionToController']['get'](_0x5acf5b),_0xb7f27b=_0x5acf5b['getAllAdjacentSuggestions']();_0x3f6306['view']['descriptionParts']=_0x314f1a['descriptionFactory']['getDescriptions'](_0xb7f27b);}destroy(){for(const _0x3b92b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3b92b8);for(const _0x247469 of this['_annotationViews']['values']())_0x247469['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x563f86){return'model'in _0x563f86;}var Sn=class extends _0x1f600{static get requires(){return[on,yn,_0x31c31a];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x5d0629){this['editor']['plugins']['get'](on)['adapter']=_0x5d0629;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x2b38fb){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x2b38fb);}getSuggestions({skipNotAttached:_0x1f4cbb=!0x1,toJSON:_0x70cae8=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x1f4cbb,'toJSON':_0x70cae8});}getSuggestion(_0x1145c7){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1145c7);}};const Mn=['Pagination'];var On=class extends _0x1f600{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x418ba3=this['editor'];if(_0x418ba3['config']['define']('trackChangesData.editorCreator',_0x1c9167=>{const _0x2ce990=_0x418ba3['model']['document']['getRootNames']()['reduce']((_0x1d1bc0,_0x262556)=>(_0x1d1bc0[_0x262556]='',_0x1d1bc0),{});return _0x418ba3['constructor']['create'](_0x2ce990,_0x1c9167);}),'function'!=typeof _0x418ba3['config']['get']('trackChangesData')['editorCreator'])throw new _0x551602('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2940eb){return Bn(this['editor'],!0x0,_0x2940eb);}getDataWithDiscardedSuggestions(_0x4c3215){return Bn(this['editor'],!0x1,_0x4c3215);}},wn=class extends _0x1f600{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x532674){super(_0x532674),this['result']='end',_0x532674['editing']['view']['_overlayModeHint']='auto',_0x532674['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x671e85){return void 0x0!==_0x671e85['getRootsAttributes'];}async function Bn(_0x3d550f,_0x139f6f,_0x14efb9){const _0x424494=_0x301952(_0x3d550f,Mn);if(_0x424494['plugins']['push'](on,wn),Fn(_0x3d550f)){_0x424494['roots']=Object['create'](null);for(const _0x5104c1 of _0x3d550f['model']['document']['getRootNames']())_0x424494['roots'][_0x5104c1]={'modelAttributes':_0x3d550f['getRootAttributes'](_0x5104c1)};}const _0x4a6769=document['createDocumentFragment'](),_0x151f2b=_0x3d550f['config']['get']('trackChangesData')['editorCreator'],_0x1d92cf=await _0x151f2b(_0x424494,()=>function(_0x54b5ad){const _0x5c69f4=document['createElement']('div');return _0x54b5ad['appendChild'](_0x5c69f4),_0x5c69f4;}(_0x4a6769));!function(_0x30f194,_0x1a3864){const _0x59f977=_0x30f194['model']['document']['getRootNames']()['reduce']((_0x469bdf,_0x287943)=>(_0x469bdf[_0x287943]=_0x30f194['data']['get']({'rootName':_0x287943}),_0x469bdf),{}),_0x5d313a=_0x30f194['plugins']['get']('Users')['users']['map'](_0x573bab=>({'id':_0x573bab['id'],'name':_0x573bab['name']})),_0x28c384=_0x30f194['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x547f19=_0x30f194['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4489bd=_0x1a3864['plugins']['get']('Users'),_0x14de61=_0x1a3864['plugins']['get']('TrackChangesEditing'),_0x146cd2=_0x1a3864['plugins']['get']('CommentsRepository');for(const _0x488111 of _0x146cd2['getCommentThreads']())_0x488111['remove']();for(const _0x1f81cf of _0x5d313a)_0x4489bd['getUser'](_0x1f81cf['id'])||_0x4489bd['addUser'](_0x1f81cf);_0x4489bd['me']||_0x4489bd['useAnonymousUser']();for(const _0x597689 of _0x547f19)_0x146cd2['addCommentThread'](_0x597689);for(const _0x1b2296 of _0x28c384)_0x14de61['addSuggestionData'](_0x1b2296);_0x1a3864['data']['set'](_0x59f977);}(_0x3d550f,_0x1d92cf),_0x1d92cf['execute'](_0x139f6f?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ef93a=Fn(_0x1d92cf)?_0x1d92cf['getFullData'](_0x14efb9):_0x1d92cf['data']['get'](_0x14efb9);return await _0x1d92cf['destroy'](),_0x3ef93a;}var vn=class extends _0xb5c2ba{options;constructor(_0x38d59b,_0x2d5c76){super(_0x38d59b),this['options']=_0x2d5c76,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(_0x5a7248,_0x20844a){if(!this['element'])return;const _0x3e9e4b=[];for(const [_0x28dca5,_0x1cd8b6]of _0x5a7248){const _0x37c6b9=document['createElement']('div');_0x37c6b9['setAttribute']('data-ck-root-name',_0x28dca5),_0x37c6b9['className']=_0x1cd8b6['classes']+'\x20ck-track-changes-preview__root-container',_0x37c6b9['innerHTML']=_0x1cd8b6['content'],_0x3e9e4b['push'](_0x37c6b9);}_0x20844a(this['element'],_0x3e9e4b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x36cb40{constructor(_0x5380f7){super(_0x5380f7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3aedd4=this['editor'],_0xd26e68=_0x3aedd4['locale'],_0x18e3ba=_0x3aedd4['plugins']['get']('Dialog');let _0x3312d1;const _0x16603e=function(_0x1fdcca){const _0x4e457c={};if('editables'in _0x1fdcca['ui']['view']){for(const [_0x690d4f,_0x22721d]of Object['entries'](_0x1fdcca['ui']['view']['editables']))_0x4e457c[_0x690d4f]=_0x22721d['element'];}else _0x4e457c[_0x1fdcca['model']['document']['getRootNames']()[0x0]]=_0x1fdcca['ui']['view']['editable']['element'];return _0x4e457c;}(_0x3aedd4),_0x1889ff=function(_0x426770){let _0x45667c=0x0;for(const _0x18de4a of Object['values'](_0x426770))_0x45667c=Math['max'](_0x45667c,_0x18de4a['getBoundingClientRect']()['width']);let _0x140885=0x0;for(const _0x1dec0f of Object['values'](_0x426770))_0x140885+=_0x1dec0f['getBoundingClientRect']()['height'];const _0x2041bf=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x45667c,'height':Math['min'](_0x140885,_0x2041bf)};}(_0x16603e);_0x18e3ba['show']({'id':'finalContentPreview','title':Ot(_0xd26e68,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0xd26e68,{'dialogRects':_0x1889ff}),'onHide':()=>{_0x3312d1['detachFromDom']();},'onShow':()=>{_0x3aedd4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5af567=>{const _0x5a3e62=this['_standarizeRootsData'](_0x5af567,_0x3aedd4,_0x16603e);_0x18e3ba['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5a3e62,_0x3aedd4['config']['get']('trackChanges.preview.renderFunction'));}),_0x3312d1=new _0x5cdee9(_0xd26e68,[_0x18e3ba['view']]),_0x3312d1['attachToDom'](),_0x3312d1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3aedd4['once']('destroy',()=>{_0x3312d1['detachFromDom']();});const _0x12c9fb=_0x18e3ba['view']['headerView']['class'];_0x18e3ba['view']['headerView']['class']=_0x12c9fb?_0x12c9fb+'\x20ck-reset_all':'ck-reset_all',_0x18e3ba['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18e3ba['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x35315d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x40eebc=_0x35315d['previewMode'],_0x5d3967={};if('$labels'===_0x40eebc){for(const _0x19c373 of _0x35315d['getMergeFieldsIds']())_0x5d3967[_0x19c373]=_0x35315d['getLabel'](_0x19c373)||_0x19c373;}else{const _0x4595fa='$defaultValues'===_0x40eebc?_0x35315d['getDefaultValues']():_0x35315d['getDataSetValues'](_0x40eebc,!0x0);for(const _0x2b64c4 of Object['entries'](_0x4595fa)){const [_0xb79ada,_0x24d276]=_0x2b64c4;_0x5d3967[_0xb79ada]=null!==_0x24d276?_0x24d276:_0x35315d['getLabel'](_0xb79ada)||_0xb79ada;}}return{'mergeFieldsData':_0x5d3967};}_standarizeRootsData(_0x2d410d,_0x1ccb27,_0xfc289a){let _0x1b3ea9;_0x1b3ea9='string'==typeof _0x2d410d?{[_0x1ccb27['model']['document']['getRootNames']()[0x0]]:_0x2d410d}:_0x2d410d;const _0x4cb79a=this['_fixMediaEmbeds'](_0x1b3ea9,_0x1ccb27);return function(_0x48c1b5,_0x36eaff){for(const [_0x4b15b9,_0x1c7ccc]of _0x48c1b5)_0x1c7ccc['classes']=_0x36eaff[_0x4b15b9]['classList']['value']['replace']('ck-focused','');return _0x48c1b5;}(this['_sortRoots'](_0x1ccb27)['reduce']((_0x1d206b,_0x40b58e)=>(_0x1d206b['push']([_0x40b58e,{'content':_0x4cb79a[_0x40b58e],'classes':''}]),_0x1d206b),[]),_0xfc289a);}['_fixMediaEmbeds'](_0x1e5c9f,_0x14554d){if(!_0x14554d['plugins']['has']('MediaEmbedEditing'))return _0x1e5c9f;const _0x15c9de=_0x14554d['plugins']['get']('MediaEmbedEditing');for(const [_0x39d5eb,_0x5b47f5]of Object['entries'](_0x1e5c9f)){const _0xffecc8=document['createElement']('div');_0xffecc8['innerHTML']=_0x5b47f5,_0xffecc8['querySelectorAll']('figure.media')['forEach'](_0x4698e5=>{const _0x2f3998=_0x4698e5['querySelector']('oembed');if(_0x2f3998){const _0x84b9b=_0x2f3998['getAttribute']('url');if(_0x84b9b){const _0xeec537=_0x15c9de['registry']['getMediaViewElement'](new at(_0x14554d['editing']['view']['document']),_0x84b9b,{'elementName':'','renderForEditingView':!0x0}),_0x118348=document['createElement']('div');_0x118348['classList']['add']('ck-media__wrapper'),_0xeec537['render'](_0x118348,_0x14554d['editing']['view']['domConverter']),_0x2f3998['replaceWith'](_0x118348);}}}),_0x1e5c9f[_0x39d5eb]=_0xffecc8['innerHTML'];}return _0x1e5c9f;}_sortRoots(_0x95ea44){if(!function(_0x2dddf4){return void 0x0!==_0x2dddf4['getRootsAttributes'];}(_0x95ea44))return _0x95ea44['model']['document']['getRootNames']();const _0x3a1dad=[],_0x2918fb=new Map();for(const _0x1195ee of _0x95ea44['model']['document']['getRootNames']()){const _0xc517d3=_0x95ea44['editing']['view']['getDomRoot'](_0x1195ee)['getClientRects']()['item'](0x0);_0x3a1dad['push'](_0x1195ee),_0x2918fb['set'](_0x1195ee,_0xc517d3);}return _0x3a1dad['sort']((_0xccb999,_0x3d9a23)=>{const _0x1cb773=_0x2918fb['get'](_0xccb999),_0x5b30ce=_0x2918fb['get'](_0x3d9a23);return _0x1cb773['y']-_0x5b30ce['y']||_0x1cb773['x']-_0x5b30ce['x'];}),_0x3a1dad;}},Un=class extends _0x1f600{static get requires(){return[On,_0x2f5204];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31b578){super(_0x31b578),_0x31b578['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x31b578['config']['define']('trackChanges.preview.renderFunction',(_0x4a96bb,_0x1b6c48)=>{for(const _0x4b4b5d of _0x1b6c48)_0x4a96bb['appendChild'](_0x4b4b5d);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x12b6ad,PendingActions as _0x455849,Plugin as _0x16a669}from'@ckeditor/ckeditor5-core';import{Annotations as _0x555efe,Comments as _0x1d7d9c,CommentsRepository as _0x263ae3,EditorAnnotations as _0x25a8bf}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2e4b79,Collection as _0x44b323,FocusTracker as _0x301735,KeystrokeHandler as _0x89c2e,ObservableMixin as _0xe5e569,getEnvKeystrokeText as _0x4dc437,insertToPriorityArray as _0x5147fa,logWarning as _0x34a28d,priorities as _0x3ee92d,uid as _0x511020}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x38b3c2,IconCancel as _0x318f60,IconCheck as _0x4e8d53,IconSparkle as _0x1a8bab,IconTrackChanges as _0x3fed69}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x4afe0f,Dialog as _0x25f48f,FocusCycler as _0xaa6d6a,ListSeparatorView as _0x19cb31,MenuBarMenuListItemButtonView as _0xca67a9,MenuBarMenuListItemView as _0x20911c,MenuBarMenuListView as _0x53d7d4,MenuBarMenuView as _0x665fb3,SplitButtonView as _0x4cc35a,UIModel as _0x50912a,View as _0x33af14,ViewCollection as _0x1bf169,addListToDropdown as _0x1aecac,createDropdown as _0x98feac,normalizeColorOptions as _0x381185}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0xb96d57,CollaborationUserColor as _0x2321d3,FOCUS_ANNOTATION_KEYSTROKE as _0x4143c5,LateFocusButtonView as _0x48c3a2,PillView as _0x4749ff,SuggestionsConversion as _0x2015d6,User as _0x36cbcf,UserView as _0x23be49,Users as _0x57ba00,fixElementSuggestionRange as _0x3ce490,getAllMarkersDomElementsSorted as _0x3c7f9f,getDateTimeFormatter as _0x3834a4,hashObject as _0x151279,isInvalidAttributeOperation as _0x5ed444,sanitizeEditorConfig as _0x5f5869,setupThreadKeyboardNavigation as _0x1cdc25,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x12b6ad{['_enabledCommands'];constructor(_0x73c543,_0x36c467){super(_0x73c543),this['_enabledCommands']=_0x36c467,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 _0x3e6bb8 of this['editor']['commands']['commands']())_0x3e6bb8['affectsData']&&!this['_enabledCommands']['has'](_0x3e6bb8)&&_0x3e6bb8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12dc33 of this['editor']['commands']['commands']())_0x12dc33['affectsData']&&!this['_enabledCommands']['has'](_0x12dc33)&&_0x12dc33['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x12b6ad{_suggestions;constructor(_0x1c4ab7,_0x2cd440){super(_0x1c4ab7),this['_suggestions']=_0x2cd440,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x197e5a){const _0x46e907=this['_suggestions']['get'](_0x197e5a);if(!_0x46e907)throw new _0x2e4b79('track-changes-accept-suggestion-not-found',this);const _0x170a65=_0x46e907['getRanges']();this['editor']['model']['canEditAt'](_0x170a65)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x46e907);}},pt=class extends _0x12b6ad{_suggestions;constructor(_0xe1fe7,_0x1640c6){super(_0xe1fe7),this['_suggestions']=_0x1640c6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x16e809){const _0x2482bf=this['_suggestions']['get'](_0x16e809);if(!_0x2482bf)throw new _0x2e4b79('track-changes-discard-suggestion-not-found',this);const _0x4ad040=_0x2482bf['getRanges']();this['editor']['model']['canEditAt'](_0x4ad040)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2482bf);}};function Lt(_0x3888d7,_0x53deb4){let _0x9b6f08='';return _0x9b6f08+=_0x3888d7['split']('*')['map']((_0x2d7cce,_0x5bbeb8)=>_0x5bbeb8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x2d7cce)+'</span>':It(_0x2d7cce))['join'](''),_0x53deb4&&(_0x9b6f08+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x53deb4['value']+'\x22\x20title=\x22'+_0x53deb4['title']+'\x22></span>'),_0x9b6f08;}function It(_0x5402a0){const _0x10f278=document['createElement']('span');return _0x10f278['innerText']=_0x5402a0,_0x10f278['innerHTML'];}function At(_0x58468f){return _0x58468f['sort']((_0x5b7aec,_0x57a63d)=>'attribute'===_0x5b7aec['type']&&'attribute'!==_0x57a63d['type']?-0x1:'attribute'!==_0x5b7aec['type']&&'attribute'===_0x57a63d['type']?0x1:'deletion'==_0x5b7aec['type']&&'deletion'!=_0x57a63d['type']?-0x1:'deletion'!=_0x5b7aec['type']&&'deletion'==_0x57a63d['type']?0x1:0x0);}function bt(_0x818d3c,_0x297757){let _0x4de04c,_0x59d97a=0x0;const _0x1c6833=[],_0x43b13d=_0x297757['schema'];for(;_0x59d97a<_0x818d3c['length'];){const _0x453053=_0x818d3c[_0x59d97a],_0x5bb42b=_0x818d3c[_0x59d97a+0x1];_0x4de04c||(_0x4de04c=_0x297757['createPositionBefore'](_0x453053)),kt(_0x297757,_0x453053,_0x5bb42b)||(_0x1c6833['push'](_0x297757['createRange'](_0x4de04c,_0x43b13d['isObject'](_0x453053)?_0x297757['createPositionAfter'](_0x453053):_0x297757['createPositionAt'](_0x453053,'end'))),_0x4de04c=null),_0x59d97a++;}return _0x1c6833;}function kt(_0x24b28a,_0x2300c0,_0x29d584){if(!_0x29d584)return!0x1;const _0x528c26=_0x24b28a['createPositionAfter'](_0x2300c0),_0x1758c2=_0x24b28a['createPositionBefore'](_0x29d584);return _0x528c26['isTouching'](_0x1758c2);}function Ct(_0x563386,_0x1df30b,_0x1bcb68){for(;_0x1bcb68['length'];){const _0x4ba445=_0x1bcb68['splice'](0x0,0x64);_0x563386['change'](()=>{for(const _0xdcc1c5 of _0x4ba445)_0xdcc1c5['isInContent']&&_0x1df30b['execute'](_0xdcc1c5['id']);});}}var Rt=class extends _0x12b6ad{['_command'];_suggestions;constructor(_0x535796,_0x805159,_0x518272){super(_0x535796),this['_command']=_0x805159,this['_suggestions']=_0x518272,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b079e=Array['from'](this['_suggestions']['values']())['some'](_0x4a5e8c=>_0x4a5e8c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b079e;}execute(){const _0x5397d6=At(Array['from'](this['_suggestions']['values']()));for(const _0x4ec514 of _0x5397d6){const _0x783f3a=_0x4ec514['getRanges']();if(!this['editor']['model']['canEditAt'](_0x783f3a))return;}Ct(this['editor']['model'],this['_command'],_0x5397d6);}},yt=class extends _0x12b6ad{['_command'];_suggestions;_selectedSuggestions;constructor(_0x2c2c6c,_0x162e2e,_0x3dd40b){super(_0x2c2c6c),this['_command']=_0x162e2e,this['_suggestions']=_0x3dd40b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ff2f2=this['editor']['model']['document']['selection'],_0x2d585c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40e8ac,_0xbbe7b3){const _0x49f28a=Array['from'](_0x40e8ac['getRanges']()),_0x57b16d=new Set();for(const _0x2c01f2 of _0xbbe7b3)if(_0x2c01f2['isInContent']){for(const _0x36937a of _0x49f28a)for(const _0x53e174 of _0x2c01f2['getRanges']())(_0x36937a['isIntersecting'](_0x53e174)||_0x40e8ac['isCollapsed']&&!_0x2c01f2['isMultiRange']&&_0x2c01f2['next']&&_0x53e174['end']['isTouching'](_0x36937a['start']))&&_0x57b16d['add'](_0x2c01f2);}return _0x57b16d;}(_0x2ff2f2,_0x2d585c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x47d616=At(Array['from'](this['_selectedSuggestions']));for(const _0x582945 of _0x47d616){const _0x49b605=_0x582945['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49b605))return;}Ct(this['editor']['model'],this['_command'],_0x47d616);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xe5e569();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x2df3e4,_0x1c6b53){super(),this['id']=_0x1c6b53['id'],this['type']=_0x1c6b53['type'],this['subType']=_0x1c6b53['subType']||null,this['author']=_0x1c6b53['author'],this['creator']=_0x1c6b53['creator']||_0x1c6b53['author'],this['data']=null,this['_originalSuggestionId']=_0x1c6b53['originalSuggestionId']||null,this['_model']=_0x2df3e4,this['_onAccept']=_0x1c6b53['onAccept'],this['_onDiscard']=_0x1c6b53['onDiscard'],this['_onAttributesChange']=_0x1c6b53['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c6b53['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x59f24a=this;for(;_0x59f24a['previous'];)_0x59f24a=_0x59f24a['previous'];return _0x59f24a;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0xaedaa3){this['_markerNames']['add'](_0xaedaa3);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0xf261d5=>this['_model']['markers']['get'](_0xf261d5))['filter'](_0x53876f=>_0x53876f);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x128c3d=>{for(const _0x5dc12e of this['getMarkers']())_0x128c3d['removeMarker'](_0x5dc12e);}),this['_markerNames']['clear']();}['removeMarker'](_0x5f103b){this['_model']['change'](_0x4c7acd=>{_0x4c7acd['removeMarker'](_0x5f103b);}),this['_markerNames']['delete'](_0x5f103b);}['addRange'](_0x53e885){const _0x2483ea='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x2483ea),this['_model']['change'](_0xa7dc43=>{_0xa7dc43['addMarker'](_0x2483ea,{'range':_0x53e885,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x199b45){for(const _0x252b73 of this['getRanges']())if(_0x252b73['isIntersecting'](_0x199b45))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x587529=>_0x587529['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x5844ca,_0x1068c3)=>[..._0x5844ca,..._0x1068c3['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x28b6eb=this['getRanges']();if(0x1!=_0x28b6eb['length'])return null;const _0x309552=_0x28b6eb[0x0],_0x38f762=_0x309552['start']['nodeAfter'],_0x42a088=_0x309552['end']['nodeBefore'];return _0x38f762 instanceof it?_0x38f762!=_0x42a088?null:_0x38f762: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 _0x215930=[];let _0x117306=this['head'];for(;_0x117306;)_0x215930['push'](_0x117306),_0x117306=_0x117306['next'];return _0x215930;}setAttribute(_0x31eb09,_0x54a08a){const _0x524209=at(this['attributes']);ut(_0x524209,_0x31eb09,_0x54a08a),ct(_0x524209,this['attributes'])||(this['attributes']=_0x524209,this['_onAttributesChange'](_0x524209));}removeAttribute(_0x3e2e30){const _0x3c4282=at(this['attributes']);dt(_0x3c4282,_0x3e2e30),ct(_0x3c4282,this['attributes'])||(this['attributes']=_0x3c4282,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 _0x511020()['substr'](0x1,0x5);}};function Mt(_0x40f98c,_0x58a65e,_0x5d8f80){const _0x2945a2=_0x40f98c['t'],t=_0x40f98c['t'];switch(_0x58a65e){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',_0x5d8f80);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d8f80);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d8f80);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d8f80);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d8f80);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',_0x5d8f80);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d8f80);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',_0x5d8f80);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d8f80);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d8f80);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d8f80);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d8f80);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d8f80);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d8f80);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d8f80);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d8f80);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d8f80);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d8f80);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d8f80);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d8f80);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d8f80);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d8f80);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d8f80);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d8f80);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d8f80);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d8f80);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d8f80);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d8f80);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d8f80);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d8f80);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d8f80);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'},_0x5d8f80);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5d8f80);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d8f80);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d8f80);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d8f80);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d8f80);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'},_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d8f80);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5d8f80);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5d8f80);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5d8f80);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d8f80);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'},_0x5d8f80);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d8f80);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2945a2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d8f80);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2945a2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d8f80);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d8f80);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'},_0x5d8f80);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'},_0x5d8f80);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'},_0x5d8f80);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x58a65e;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x59d799,_0x25c883){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59d799,this['_locale']=_0x25c883;}getDescriptions(_0x53b482){const _0x5a34e1=[],_0x466ffd=new Set(),_0x89cf1d=new Set();for(let _0x2caaea=0x0;_0x2caaea<_0x53b482['length'];_0x2caaea++){const _0x24bc99=_0x53b482[_0x2caaea];if(!_0x24bc99['isInContent'])continue;const _0x3139c4=this['_handleCustomCallbackDescription'](_0x24bc99);if(_0x3139c4){if(null!=_0x24bc99['subType']){if(_0x466ffd['has'](_0x24bc99['subType']))continue;_0x466ffd['add'](_0x24bc99['subType']);}_0x5a34e1['push'](_0x3139c4);}else{if('attribute'==_0x24bc99['type']){const _0x3ea056=_0x24bc99['data']['key'];if(_0x89cf1d['has'](_0x3ea056))continue;_0x89cf1d['add'](_0x24bc99['data']['key']),'$elementName'==_0x3ea056?this['_handleRenameSuggestionDescription'](_0x5a34e1,_0x24bc99):this['_handleAttributeSuggestionDescription'](_0x5a34e1,_0x24bc99);continue;}'insertion'!=_0x24bc99['type']&&'deletion'!=_0x24bc99['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5a34e1,_0x24bc99,_0x53b482[_0x2caaea+0x1]);}}return this['_resolveDescriptionItems'](_0x5a34e1);}registerDescriptionCallback(_0x2374cd){this['_customCallbacks']['push'](_0x2374cd);}registerElementLabel(_0x1dd1b3,_0x52148b,_0x2e1d28=_0x3ee92d['normal']){'function'==typeof _0x1dd1b3?_0x5147fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1dd1b3,'label':_0x52148b,'priority':_0x2e1d28}):this['_itemLabels']['set'](_0x1dd1b3,_0x52148b);}registerAttributeLabel(_0x5e64d7,_0x5d183d){this['_attributeLabels']['set'](_0x5e64d7,_0x5d183d);}getItemLabel(_0x5872f7,_0x1ebd84=0x1){let _0x2a3ba2;for(const _0xc588cc of this['_itemLabelsCallbacks'])if(_0xc588cc['matchingCallback'](_0x5872f7)){_0x2a3ba2=_0xc588cc['label'];break;}return _0x2a3ba2||(_0x2a3ba2=this['_itemLabels']['get'](_0x5872f7['name'])),_0x2a3ba2?_0x2a3ba2(_0x1ebd84):0x1!==_0x1ebd84?_0x1ebd84+'\x20'+_0x5872f7['name']+'s':''+_0x5872f7['name'];}_addDescriptionItems(_0x957797,_0x4ff7a5){const _0x352a2c=_0x4ff7a5['getFirstRange']()['getWalker'](),_0x38f90d='insertion'==_0x4ff7a5['type']?'add':'remove';for(const _0x1c3d8e of _0x352a2c){const _0x37f1fd=_0x1c3d8e['item'],_0x161b14=_0x957797[_0x957797['length']-0x1];if(_0x37f1fd['is']('$textProxy'))_0x161b14&&_0x161b14['type']['indexOf']('Container')>-0x1&&_0x957797['pop'](),_0x161b14&&'text'==_0x161b14['type']?_0x161b14[_0x38f90d]+=_0x37f1fd['data']:_0x957797['push']({'type':'text','add':'add'==_0x38f90d?_0x37f1fd['data']:'','remove':'remove'==_0x38f90d?_0x37f1fd['data']:''});else{if(this['_schema']['isObject'](_0x37f1fd)){const _0x4d052a=_0x37f1fd;if(_0x161b14&&_0x161b14['type']['indexOf']('Container')>-0x1&&_0x957797['pop'](),'elementEnd'==_0x1c3d8e['type'])continue;_0x161b14&&_0x161b14['type']==_0x38f90d+'Object'&&_0x161b14['element']['name']==_0x4d052a['name']?_0x161b14['quantity']++:_0x957797['push']({'type':_0x38f90d+'Object','element':_0x4d052a,'quantity':0x1}),_0x352a2c['skip'](_0x16f5fe=>!('elementEnd'==_0x16f5fe['type']&&_0x16f5fe['item']==_0x37f1fd));}else{if(this['_schema']['checkChild'](_0x37f1fd,'$text')||_0x37f1fd['is']('element','softBreak')){const _0x220a92=_0x37f1fd;if('add'==_0x38f90d&&'elementStart'==_0x1c3d8e['type']||'remove'==_0x38f90d&&'elementEnd'==_0x1c3d8e['type'])continue;if(_0x161b14&&-0x1==_0x161b14['type']['indexOf']('Container')){'text'==_0x161b14['type']&&(_0x161b14[_0x38f90d]+='\x0a');continue;}let _0x2e5ff6;if(_0x2e5ff6='add'==_0x38f90d?_0x220a92['nextSibling']&&!this['_schema']['isObject'](_0x220a92['nextSibling'])?_0x220a92['nextSibling']:null:_0x220a92['previousSibling']&&!this['_schema']['isObject'](_0x220a92['previousSibling'])?_0x220a92['previousSibling']:null,_0x220a92['isEmpty']||_0x2e5ff6&&_0x2e5ff6['isEmpty']){const _0x410c87=_0x2e5ff6&&_0x2e5ff6['isEmpty']?_0x2e5ff6:_0x220a92;_0x161b14&&_0x161b14['type']==_0x38f90d+'EmptyContainer'&&_0x161b14['element']['name']==_0x410c87['name']?_0x161b14['quantity']++:_0x957797['push']({'type':_0x38f90d+'EmptyContainer','element':_0x410c87,'quantity':0x1});}else _0x957797['push']({'type':_0x38f90d+'Container','element':_0x220a92});}}}}}_resolveDescriptionItems(_0x1eff28){const _0x21e612=this['_locale'],_0x2f8e23=[],_0x1dec26=[],_0x18b9d8=[];for(const _0x3c219c of _0x1eff28)switch(_0x3c219c['type']){case'text':if(_0x3c219c['add']=_0x3c219c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c219c['remove']=_0x3c219c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c219c['add']&&''!=_0x3c219c['remove']){_0x2f8e23['push']({'type':'replace','content':Mt(_0x21e612,'REPLACE_TEXT',['\x22'+_0x3c219c['remove']+'\x22','\x22'+_0x3c219c['add']+'\x22'])});continue;}if(null!=_0x3c219c['add']['match'](/^ +$/)){_0x2f8e23['push']({'type':'insertion','content':Mt(_0x21e612,'*Insert:*\x20%0',Mt(_0x21e612,'ELEMENT_SPACE',_0x3c219c['add']['length']))});continue;}if(null!=_0x3c219c['remove']['match'](/^ +$/)){_0x2f8e23['push']({'type':'deletion','content':Mt(_0x21e612,'*Remove:*\x20%0',Mt(_0x21e612,'ELEMENT_SPACE',_0x3c219c['remove']['length']))});continue;}if(''!=_0x3c219c['add']){_0x2f8e23['push']({'type':'insertion','content':Mt(_0x21e612,'*Insert:*\x20%0','\x22'+_0x3c219c['add']+'\x22')});continue;}_0x2f8e23['push']({'type':'deletion','content':Mt(_0x21e612,'*Remove:*\x20%0','\x22'+_0x3c219c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2f8e23['push']({'type':'insertion','content':Mt(_0x21e612,'*Insert:*\x20%0',this['getItemLabel'](_0x3c219c['element'],_0x3c219c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2f8e23['push']({'type':'deletion','content':Mt(_0x21e612,'*Remove:*\x20%0',this['getItemLabel'](_0x3c219c['element'],_0x3c219c['quantity']))});continue;case'addContainer':_0x2f8e23['push']({'type':'insertion','content':Mt(_0x21e612,'*Split:*\x20%0',this['getItemLabel'](_0x3c219c['element'],_0x3c219c['quantity']))});continue;case'removeContainer':_0x2f8e23['push']({'type':'deletion','content':Mt(_0x21e612,'*Merge:*\x20%0',this['getItemLabel'](_0x3c219c['element'],_0x3c219c['quantity']))});continue;case'addFormat':_0x1dec26['push'](_0x3c219c['key']);continue;case'removeFormat':_0x18b9d8['push'](_0x3c219c['key']);continue;default:_0x2f8e23['push'](_0x3c219c);}if(_0x1dec26['length']){const _0x1a686c=_0x1dec26['map'](_0x26cdd2=>this['_attributeLabels']['has'](_0x26cdd2)?this['_attributeLabels']['get'](_0x26cdd2):_0x26cdd2)['join'](',\x20');_0x2f8e23['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x1a686c)});}if(_0x18b9d8['length']){const _0x79d2=_0x18b9d8['map'](_0x24daac=>this['_attributeLabels']['has'](_0x24daac)?this['_attributeLabels']['get'](_0x24daac):_0x24daac)['join'](',\x20');_0x2f8e23['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x79d2)});}return _0x2f8e23;}_handleCustomCallbackDescription(_0x315d83){for(const _0x3ecb66 of this['_customCallbacks']){const _0x1e4463=_0x3ecb66(_0x315d83);if(_0x1e4463&&'type'in _0x1e4463)return _0x1e4463;}}_handleAttributeSuggestionDescription(_0x3ad507,_0x8e9014){const _0x5b329=_0x8e9014['data'],_0x108052=void 0x0===_0x5b329['newValue']?'removeFormat':'addFormat';_0x3ad507['push']({'type':_0x108052,'key':_0x5b329['key']});}_handleRenameSuggestionDescription(_0x46269d,_0x4e7b13){_0x46269d['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4e7b13['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x4e77e6,_0x3a88f2,_0x34ee0c){if(this['_addDescriptionItems'](_0x4e77e6,_0x3a88f2),_0x34ee0c&&_0x34ee0c['getFirstRange']()&&!_0x3a88f2['getFirstRange']()['end']['isEqual'](_0x34ee0c['getFirstRange']()['start'])){const _0x1a3674=_0x4e77e6[_0x4e77e6['length']-0x1],_0x4a548b='insertion'==_0x3a88f2['type']?'add':'remove';_0x1a3674&&'text'==_0x1a3674['type']&&(_0x1a3674[_0x4a548b]+='\x0a');}}},wt=class extends _0x16a669{afterInit(){const _0x509a9f=this['editor'],_0x54bd72=_0x509a9f['plugins']['get']('TrackChangesEditing');_0x509a9f['commands']['get']('showAIAssistant')&&_0x54bd72['enableCommand']('showAIAssistant');}},Ft=class extends _0x16a669{afterInit(){const _0x250d2c=this['editor'],_0x30e26c=_0x250d2c['plugins']['get']('TrackChangesEditing');_0x250d2c['commands']['get']('toggleAi')&&_0x30e26c['enableCommand']('toggleAi');}},Bt=class extends _0x16a669{afterInit(){const _0x3413d0=this['editor'],_0x26bd8d=_0x3413d0['plugins']['get']('TrackChangesEditing');_0x3413d0['commands']['get']('aiQuickAction')&&_0x26bd8d['enableCommand']('aiQuickAction');}},vt=class extends _0x16a669{afterInit(){const _0x4bfe26=this['editor'],_0x537a10=_0x4bfe26['locale'];if(!_0x4bfe26['plugins']['has']('AlignmentEditing'))return;const _0x3ab658=_0x4bfe26['plugins']['get']('TrackChangesEditing');_0x3ab658['enableDefaultAttributesIntegration']('alignment'),_0x3ab658['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x537a10,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2f18b4=this['editor'],_0x5076d6=_0x2f18b4['locale'];_0x2f18b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35fe52=>{if('formatBlock'!=_0x35fe52['type'])return;const {data:_0xff1c97}=_0x35fe52;if(_0xff1c97&&'alignment'==_0xff1c97['commandName']){const _0x55c731=_0xff1c97['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x5076d6,'*Format:*\x20%0',function(_0x23f2a3){switch(_0x23f2a3){case'left':return Mt(_0x5076d6,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x5076d6,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x5076d6,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x5076d6,'FORMAT_JUSTIFY_TEXT');}}(_0x55c731))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x16a669{afterInit(){const _0x4cf504=this['editor'],_0x27c4f3=_0x4cf504['plugins']['get']('TrackChangesEditing'),_0x305c31=_0x4cf504['locale'];for(const _0x2ff32d of Dt){if(!_0x4cf504['plugins']['has'](_0x2ff32d))continue;const _0x2e0582=_0x2ff32d['slice'](0x0,-0x7)['toLowerCase'](),_0x54f583='FORMAT_'+_0x2e0582['toUpperCase']();_0x27c4f3['enableDefaultAttributesIntegration'](_0x2e0582),_0x27c4f3['descriptionFactory']['registerAttributeLabel'](_0x2e0582,Mt(_0x305c31,_0x54f583));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x394489=this['editor'],_0x269653=_0x394489['locale'],_0x4155ff=_0x394489['plugins']['get']('TrackChangesEditing');function _0x14493d(_0x2f3d5f,_0x4c46d9){_0x4155ff['descriptionFactory']['registerDescriptionCallback'](_0x2c3264=>{if('formatInline'!=_0x2c3264['type'])return;const {data:_0x57a3b7}=_0x2c3264;return _0x57a3b7&&_0x57a3b7['commandName']===_0x2f3d5f?_0x57a3b7['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x269653,'*Format:*\x20%0',_0x4c46d9)}:{'type':'format','content':Mt(_0x269653,'*Remove\x20format:*\x20%0',_0x4c46d9)}:void 0x0;});}_0x14493d('bold',Mt(_0x269653,'FORMAT_BOLD')),_0x14493d('italic',Mt(_0x269653,'FORMAT_ITALIC')),_0x14493d('underline',Mt(_0x269653,'FORMAT_UNDERLINE')),_0x14493d('code',Mt(_0x269653,'FORMAT_CODE')),_0x14493d('strikethrough',Mt(_0x269653,'FORMAT_STRIKETHROUGH')),_0x14493d('subscript',Mt(_0x269653,'FORMAT_SUBSCRIPT')),_0x14493d('superscript',Mt(_0x269653,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x16a669{afterInit(){const _0x32a549=this['editor'],_0x52a101=_0x32a549['locale'];if(!_0x32a549['plugins']['has']('BlockQuoteEditing'))return;const _0x2e0f32=_0x32a549['plugins']['get']('TrackChangesEditing'),_0x19cfe4=this['editor']['commands']['get']('blockQuote');_0x2e0f32['enableCommand']('blockQuote',(_0x4bd6b9,_0x12bd8d={})=>{const _0x30d2d=this['editor']['model']['document']['selection'],_0x1d1294=_0x12bd8d&&void 0x0!==_0x12bd8d['forceValue']?_0x12bd8d['forceValue']:!_0x19cfe4['value'];let _0x5d43e9=[];if(_0x1d1294){const _0x4ff7e7=Array['from'](_0x30d2d['getSelectedBlocks']())['filter'](_0x39a389=>xt(_0x39a389)||function(_0x10c33d,_0x20a150){const _0x2a5247=_0x20a150['createContext'](_0x10c33d['parent']);return!!_0x20a150['checkChild'](_0x2a5247,'blockQuote')&&!!_0x20a150['checkChild'](_0x2a5247['push']('blockQuote'),_0x10c33d);}(_0x39a389,this['editor']['model']['schema']));_0x5d43e9=bt(_0x4ff7e7,_0x32a549['model']);}else{const _0x34002f=Array['from'](_0x30d2d['getSelectedBlocks']())['filter'](_0x34149e=>xt(_0x34149e));_0x5d43e9=bt(_0x34002f,_0x32a549['model']);}_0x32a549['model']['change'](()=>{for(const _0xe0ede8 of _0x5d43e9)_0x2e0f32['markBlockFormat'](_0xe0ede8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d1294}]});});}),_0x2e0f32['descriptionFactory']['registerDescriptionCallback'](_0x48bfc7=>{const {data:_0x21078f}=_0x48bfc7;if(_0x21078f&&'blockQuote'==_0x21078f['commandName']){const _0x587d53=Mt(_0x52a101,'ELEMENT_BLOCK_QUOTE');return _0x21078f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x52a101,'*Set\x20format:*\x20%0',_0x587d53)}:{'type':'format','content':Mt(_0x52a101,'*Remove\x20format:*\x20%0',_0x587d53)};}});}};function xt(_0xbc482b){return'blockQuote'==_0xbc482b['parent']['name'];}var Gt=class extends _0x16a669{afterInit(){const _0x39334a=this['editor'],_0x5c830d=_0x39334a['locale'],_0xbc602e=_0x39334a['plugins']['get']('TrackChangesEditing');_0x39334a['plugins']['has']('BookmarkEditing')&&(_0xbc602e['enableCommand']('insertBookmark'),_0xbc602e['enableDefaultAttributesIntegration']('updateBookmark'),_0xbc602e['descriptionFactory']['registerDescriptionCallback'](_0x373745=>{if('insertion'!=_0x373745['type']&&'deletion'!=_0x373745['type']&&'attribute'!=_0x373745['type'])return;const _0x4ca17c=_0x373745['getContainedElement']();if(null==_0x4ca17c)return;if(!_0x4ca17c['is']('element','bookmark'))return;const _0x24d3c0=_0x4ca17c['getAttribute']('bookmarkId');if('insertion'==_0x373745['type'])return{'type':'insertion','content':Mt(_0x5c830d,'*Insert:*\x20%0','\x22'+_0x24d3c0+'\x22\x20'+Mt(_0x5c830d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x373745['type'])return{'type':'deletion','content':Mt(_0x5c830d,'*Remove:*\x20%0','\x22'+_0x24d3c0+'\x22\x20'+Mt(_0x5c830d,'ELEMENT_BOOKMARK'))};const {data:_0x78e19a}=_0x373745;return _0x78e19a&&'bookmarkId'==_0x78e19a['key']?{'type':'format','content':Mt(_0x5c830d,'*Set\x20bookmark:*\x20%0','\x22'+_0x78e19a['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x16a669{afterInit(){const _0x134dc8=this['editor'];_0x134dc8['plugins']['has']('CaseChange')&&(_0x134dc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x134dc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x134dc8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x16a669{afterInit(){const _0x3de56c=this['editor'];_0x3de56c['commands']['get']('ckbox')&&_0x3de56c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x16a669{static get requires(){return[ht,gt];}constructor(_0x41cc5c){super(_0x41cc5c),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x152491=this['editor'],_0x13b359=_0x152491['plugins']['get']('ClipboardMarkersUtils'),_0xf37301=_0x152491['plugins']['get'](gt);_0x13b359['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0xf37301['on']('outputTransformation',(_0x1ecdd0,_0x1c3bc5)=>{const _0x5251e4=this['_getSuggestionEntries'](_0x1c3bc5);for(const [_0x35cd35,_0x3b633b]of _0x1c3bc5['content']['markers']){const _0x49592d=rt['_fromRangeInDocumentFragment'](_0x3b633b,_0x152491['model']);function _0x337d4d(){_0x49592d['detach'](),_0x1c3bc5['content']['markers']['delete'](_0x35cd35);}_0x49592d['on']('change:drop',_0x337d4d),(_0x35cd35['startsWith']('suggestion:')||_0x35cd35['startsWith']('comment:'))&&_0x49592d['on']('change:range',()=>{_0x49592d['isCollapsed']&&_0x337d4d();}),_0x1c3bc5['content']['markers']['set'](_0x35cd35,_0x49592d);}const _0x397cce=_0x5251e4['filter'](_0x1f4c88=>'deletion'===_0x1f4c88['meta']['type'])['map'](_0x3b52c0=>_0x3b52c0['modelRange']);if(this['_shouldSkipDeletions'](_0x397cce,_0x1c3bc5['content']))return[..._0x5251e4]['forEach'](_0x4ef382=>{_0x1c3bc5['content']['markers']['get'](_0x4ef382['markerName'])['detach'](),_0x1c3bc5['content']['markers']['delete'](_0x4ef382['markerName']);}),void this['_restoreRegularRanges'](_0x1c3bc5['content']['markers']);[..._0x5251e4]['forEach'](_0x5ae314=>{const _0x68646d=_0x152491['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x5ae314['meta']['type'],_0x5ae314['meta']['subType'],'accept'),{markerName:_0xc033d,meta:_0x394cbd}=_0x5ae314;if(_0x1c3bc5['content']['markers']['has'](_0xc033d)){switch(_0x394cbd['type']){case'deletion':if('tableRow'===_0x394cbd['subType']||'tableColumn'===_0x394cbd['subType']){if(!_0x152491['plugins']['has']('TableUtils'))break;const _0xce7bb5=_0x152491['plugins']['get']('TableUtils'),_0x314c80=_0xce7bb5['getSelectionAffectedTableCells'](_0x152491['model']['createSelection'](_0x1c3bc5['content']['markers']['get'](_0xc033d))),_0x1065fa=_0x314c80[0x0]['findAncestor']('table');if('tableRow'===_0x394cbd['subType']){const {first:_0x5d54c2,last:_0x4e99b3}=_0xce7bb5['getRowIndexes'](_0x314c80);_0xce7bb5['removeRows'](_0x1065fa,{'at':_0x5d54c2,'rows':_0x4e99b3-_0x5d54c2+0x1});}else{const {first:_0x1c6492,last:_0x24943c}=_0xce7bb5['getColumnIndexes'](_0x314c80);_0xce7bb5['removeColumns'](_0x1065fa,{'at':_0x1c6492,'columns':_0x24943c-_0x1c6492+0x1});}break;}_0x68646d([_0x1c3bc5['content']['markers']['get'](_0xc033d)]);}_0x1c3bc5['content']['markers']['has'](_0xc033d)&&(_0x1c3bc5['content']['markers']['get'](_0xc033d)['detach'](),_0x1c3bc5['content']['markers']['delete'](_0xc033d));}}),this['_restoreRegularRanges'](_0x1c3bc5['content']['markers']);});}_getSuggestionEntries(_0x5675ef){const _0x233424=_0x20476d=>'dragstart'===_0x5675ef['method']?_0x20476d['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x20476d;return Array['from'](_0x5675ef['content']['markers'])['map'](([_0x4c2efc,_0x4192d1])=>({'markerName':_0x4c2efc,'modelRange':_0x4192d1,'meta':tt(_0x233424(_0x4c2efc))}))['filter'](({meta:_0x2bfa93})=>'suggestion'===_0x2bfa93['group']);}_shouldSkipDeletions(_0x522568,_0x3142c0){if(!_0x522568['length'])return!0x1;let _0x4e45f5=[this['editor']['model']['createRangeIn'](_0x3142c0)];for(const _0x55b7f3 of _0x522568)_0x4e45f5=_0x4e45f5['flatMap'](_0x507655=>_0x507655['getDifference'](_0x55b7f3));return!_0x4e45f5['some'](_0x4e3c6d=>this['editor']['model']['hasContent'](_0x4e3c6d,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x19f0a3){[..._0x19f0a3['keys']()]['forEach'](_0x1a6343=>{const _0x3919e7=_0x19f0a3['get'](_0x1a6343);_0x3919e7['detach'](),_0x19f0a3['set'](_0x1a6343,_0x3919e7['toRange']());});}},Vt=class extends _0x16a669{afterInit(){const _0x262805=this['editor'];if(!_0x262805['plugins']['has']('CodeBlock'))return;const _0x3082c4=_0x262805['plugins']['get']('TrackChangesEditing'),_0x34ace3=_0x262805['locale'],_0x55bc8c=_0x262805['config']['get']('codeBlock')['languages'],_0x4de828=_0x262805['commands']['get']('codeBlock');_0x3082c4['enableCommand']('indentCodeBlock'),_0x3082c4['enableCommand']('outdentCodeBlock'),_0x3082c4['enableCommand']('codeBlock',(_0x16e7c9,_0xee0cf={})=>{const _0x326cbc=_0x262805['model'],_0x3b8c15=_0x262805['model']['document']['selection'],_0x42aaee=_0xee0cf&&void 0x0!==_0xee0cf['forceValue']?_0xee0cf['forceValue']:!_0x4de828['value'];let _0x400487;_0xee0cf['language']||(_0xee0cf['language']=_0x55bc8c[0x0]['language']),_0x400487=_0x42aaee?Array['from'](_0x3b8c15['getSelectedBlocks']())['filter'](_0x54a816=>{return jt(_0x54a816)||(_0x365a33=_0x54a816,_0x93b47f=_0x326cbc['schema'],!_0x365a33['is']('rootElement')&&!_0x93b47f['isLimit'](_0x365a33)&&_0x93b47f['checkChild'](_0x365a33['parent'],'codeBlock'));var _0x365a33,_0x93b47f;}):Array['from'](_0x3b8c15['getSelectedBlocks']())['filter'](_0x24736d=>jt(_0x24736d));const _0x1462a4=bt(_0x400487,_0x326cbc);_0x326cbc['change'](()=>{for(const _0x12b07f of _0x1462a4)_0x3082c4['markBlockFormat'](_0x12b07f,{'commandName':'codeBlock','commandParams':[{..._0xee0cf,'forceValue':_0x42aaee}],'formatGroupId':'blockName'});});}),(_0x3082c4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d7e06=>Mt(_0x34ace3,'ELEMENT_CODE_BLOCK',_0x4d7e06)),_0x3082c4['descriptionFactory']['registerDescriptionCallback'](_0x445b80=>{if('formatBlock'!=_0x445b80['type'])return;const _0x435eed=_0x34ace3['t'],{data:_0x32db58}=_0x445b80;if(!_0x32db58||'codeBlock'!=_0x32db58['commandName'])return;const _0x43b4e1=_0x32db58['commandParams'][0x0]['language'],_0x14d3eb=_0x435eed(_0x55bc8c['find'](_0x54f81d=>_0x54f81d['language']===_0x43b4e1)['label'])['toLowerCase']();return _0x32db58['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x34ace3,'*Set\x20format:*\x20%0',Mt(_0x34ace3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14d3eb+')')}:{'type':'format','content':Mt(_0x34ace3,'*Remove\x20format:*\x20%0',Mt(_0x34ace3,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x5a3029){return'codeBlock'==_0x5a3029['name'];}var zt=class extends _0x16a669{afterInit(){const _0x20b4ce=this['editor'];_0x20b4ce['plugins']['has']('CommentsEditing')&&_0x20b4ce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x16a669{static get requires(){return[ft];}init(){const _0x193130=this['editor'],_0x37e934=_0x193130['plugins']['get']('TrackChangesEditing');_0x37e934['enableCommand']('delete');const _0x33ebe0=_0x193130['commands']['get']('deleteForward');_0x37e934['enableCommand']('deleteForward',(_0x44edef,_0x3b3d59={})=>{const _0x511b0c=_0x193130['model']['createSelection'](_0x193130['model']['document']['selection']);_0x511b0c['isCollapsed']&&_0x193130['model']['modifySelection'](_0x511b0c,{'direction':'forward','unit':_0x3b3d59['unit']});const _0x1c9e32=_0x511b0c['getFirstRange'](),_0x49c027=rt['fromRange'](_0x1c9e32);let _0x26e9dc;_0x44edef(_0x3b3d59),_0x26e9dc='$graveyard'==_0x49c027['root']['rootName']?_0x193130['model']['createRange'](_0x1c9e32['start']):_0x193130['model']['createRange'](_0x49c027['start'],_0x49c027['end']),_0x49c027['detach'](),_0x193130['model']['enqueueChange'](_0x33ebe0['buffer']['batch'],_0x3068b8=>{_0x33ebe0['buffer']['lock'](),_0x3068b8['setSelection'](_0x3068b8['createRange'](_0x26e9dc['end'])),_0x33ebe0['buffer']['unlock']();});});}},Xt=class extends _0x16a669{afterInit(){const _0x1de93e=this['editor'];if(!_0x1de93e['plugins']['has']('ListEditing'))return;const _0x1cc91f=_0x1de93e['locale'],_0xb51bd3=_0x1de93e['plugins']['get']('TrackChangesEditing'),_0x22106f=_0x1de93e['plugins']['has']('TodoListEditing'),_0x3574a8=!!_0x1de93e['config']['get']('list.multiBlock');function _0x2f591f(_0xe5b9c9){return{'type':'format','content':''+Mt(_0x1cc91f,'*Set\x20format:*\x20%0',_0xe5b9c9)};}function _0x1c5b50(_0x58bbbc){return{'type':'format','content':''+Mt(_0x1cc91f,'*Remove\x20format:*\x20%0',_0x58bbbc)};}_0xb51bd3['enableDefaultAttributesIntegration']('numberedList'),_0xb51bd3['enableDefaultAttributesIntegration']('bulletedList'),_0xb51bd3['enableDefaultAttributesIntegration']('customNumberedList'),_0xb51bd3['enableDefaultAttributesIntegration']('customBulletedList'),_0xb51bd3['enableDefaultAttributesIntegration']('indentList'),_0xb51bd3['enableDefaultAttributesIntegration']('outdentList'),_0xb51bd3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb51bd3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3574a8&&(_0xb51bd3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb51bd3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x22106f&&(_0xb51bd3['enableDefaultAttributesIntegration']('todoList'),_0xb51bd3['enableDefaultAttributesIntegration']('checkTodoList'),_0xb51bd3['descriptionFactory']['registerDescriptionCallback'](_0x44cc3b=>{const {data:_0x23dce1}=_0x44cc3b;if(_0x23dce1&&'todoListChecked'==_0x23dce1['key'])return{'type':'format','content':_0x23dce1['newValue']?Mt(_0x1cc91f,'*Check\x20item*'):Mt(_0x1cc91f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x101967=>{if(_0x101967['batch']['isUndo'])return!0x1;let _0x11ae29=!0x1;const _0xe8b9f0=_0xb51bd3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x247bc4=>'todoListChecked'===_0xb51bd3['_getAttributeKey'](_0x247bc4));for(const _0x42fba2 of _0xe8b9f0)'todo'!=_0x42fba2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb51bd3['_findSuggestions'](_0x42fba2['getFirstRange'](),'attribute')['find'](_0x5273ff=>'listType'===_0xb51bd3['_getAttributeKey'](_0x5273ff['suggestion']))||(_0x101967['removeMarker'](_0x42fba2['getFirstMarker']()),_0x11ae29=!0x0));return _0x11ae29;})),_0xb51bd3['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x1cc91f,'FORMAT_INDENT'));const _0x3f06ed={'type':'format','content':''};_0xb51bd3['descriptionFactory']['registerDescriptionCallback'](_0x2c9e46=>{const {data:_0x5152d9}=_0x2c9e46;if(!_0x5152d9||'listType'!=_0x5152d9['key'])return;let _0x256f19=_0x2c9e46['head'];for(;_0x256f19;){if(_0x256f19['data']&&(('listStyle'==_0x256f19['data']['key']||'listMarkerStyle'==_0x256f19['data']['key'])&&(_0x256f19['data']['newValue']&&'default'!=_0x256f19['data']['newValue']||'default'!=_0x256f19['data']['oldValue']&&!_0x5152d9['newValue'])||!_0x3574a8&&'$elementName'==_0x256f19['data']['key']))return _0x3f06ed;_0x256f19=_0x256f19['next'];}if(null==_0x5152d9['newValue'])switch(_0x5152d9['oldValue']){case'bulleted':return _0x1c5b50(Mt(_0x1cc91f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c5b50(Mt(_0x1cc91f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c5b50(Mt(_0x1cc91f,'ELEMENT_TODO_LIST'));}switch(_0x5152d9['newValue']){case'bulleted':return _0x2f591f(Mt(_0x1cc91f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f591f(Mt(_0x1cc91f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f591f(Mt(_0x1cc91f,'ELEMENT_TODO_LIST'));}}),_0xb51bd3['descriptionFactory']['registerDescriptionCallback'](_0x184bc6=>{const {data:_0x482fe5}=_0x184bc6;if(_0x482fe5&&'listIndent'==_0x482fe5['key'])return null==_0x482fe5['newValue']||null==_0x482fe5['oldValue']&&0x0==_0x482fe5['newValue']?_0x3f06ed:void 0x0;}),_0xb51bd3['descriptionFactory']['registerDescriptionCallback'](_0x3570f4=>{if('attribute'!=_0x3570f4['type'])return;const {data:_0x2022fa}=_0x3570f4;if(!_0x2022fa||'listItemId'!=_0x2022fa['key'])return;const _0x3f0f6b=qt(_0x3570f4);return'newValue'==_0x3f0f6b?{'type':'format','content':Mt(_0x1cc91f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f0f6b?{'type':'format','content':Mt(_0x1cc91f,'*Split:*\x20list\x20item')}:_0x3f06ed;}),_0x1de93e['model']['document']['registerPostFixer'](_0x1849b9=>this['listItemIdFixer'](_0x1849b9)),_0x1de93e['model']['document']['registerPostFixer'](_0x4f83cb=>this['noTrackChangesFixer'](_0x4f83cb)),_0x1de93e['model']['document']['on']('change:data',(_0x178ed8,_0xf08455)=>{if(_0xf08455['isUndo']||!_0xf08455['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x528439){if(_0x528439['batch']['isUndo']||!_0x528439['batch']['isLocal'])return!0x1;let _0x31ebdb=!0x1;const _0x32a8fc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cd624=>_0x5cd624['data']&&'listItemId'==_0x5cd624['data']['key'])['filter'](_0x53810e=>_0x53810e['data']['newValue']&&_0x53810e['data']['oldValue']);for(const _0x357bcf of _0x32a8fc)qt(_0x357bcf)||(_0x528439['removeMarker'](_0x357bcf['getFirstMarker']()),_0x31ebdb=!0x0);return _0x31ebdb;}['noTrackChangesFixer'](_0x558ffe){if(_0x558ffe['batch']['isUndo']||!_0x558ffe['batch']['isLocal'])return!0x1;const _0x9247e2=this['editor']['model']['document']['differ'],_0x1afb1f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1afb1f['trackChangesCommand']['value'])return!0x1;let _0x4a188d=!0x1;const _0x105893=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x324e8f=_0x9247e2['getChanges']()['filter'](_0x1e0445=>'attribute'==_0x1e0445['type'])['filter'](_0x5a37c7=>_0x105893['has'](_0x5a37c7['attributeKey']));if(0x0==_0x324e8f['length'])return _0x4a188d;const _0x2ebc6b=new Set(_0x9247e2['getMarkersToAdd']()['filter'](_0xde5c32=>{if(!_0xde5c32['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x5ec543=tt(_0xde5c32['name'])['subType']['split']('|')[0x0];return _0x105893['has'](_0x5ec543);})['map'](_0x7fb0db=>tt(_0x7fb0db['name'])['id']));for(const _0x4a8243 of _0x324e8f){const _0x2b686=_0x1afb1f['_findSuggestions'](_0x4a8243['range'],'attribute')['filter'](_0x5e3e99=>{if(_0x5e3e99['meta']['isNextTo'])return!0x1;if(_0x2ebc6b['has'](_0x5e3e99['suggestion']['id']))return!0x1;const _0x3907cd=_0x1afb1f['_getAttributeKey'](_0x5e3e99['suggestion']);return _0x105893['has'](_0x3907cd);})['map'](_0x1c7ad0=>_0x1c7ad0['suggestion']);if(_0x2b686['length']){for(const _0x3f6416 of _0x2b686)_0x558ffe['removeMarker'](_0x3f6416['getFirstMarker']());_0x4a188d=!0x0;}}return _0x4a188d;}['assureChains'](){const _0x218ce9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187439=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x491e8e;const _0x52f10e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x333860=>{if(_0x333860['data']['oldRange']||!_0x333860['data']['newRange'])return null;if(!_0x333860['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x32c9b7}=tt(_0x333860['name']);if(!_0x218ce9['hasSuggestion'](_0x32c9b7))return null;const _0x1e99ea=_0x218ce9['getSuggestion'](_0x32c9b7);return _0x187439['includes'](_0x1e99ea['data']['key']);})['map'](_0x3dbdf9=>{const {id:_0x4e175c}=tt(_0x3dbdf9['name']),_0x325fc6=_0x218ce9['getSuggestion'](_0x4e175c);return _0x491e8e=_0x325fc6['attributes']['groupId'],_0x325fc6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52f10e['size'])return;const _0xb26f19=_0x218ce9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50b90e=>'attribute'==_0x50b90e['type']&&_0x50b90e['data']&&_0x187439['includes'](_0x50b90e['data']['key'])&&_0x50b90e['attributes']['groupId']!=_0x491e8e)['map'](_0x249490=>({'listItem':_0x249490['getFirstRange']()['start']['nodeAfter'],'groupId':_0x249490['attributes']['groupId']})),_0x3c2070=new Set();for(const {groupId:_0x166cad,listItem:_0x46241e}of _0xb26f19)_0x52f10e['has'](_0x46241e)&&_0x3c2070['add'](_0x166cad);for(const _0x35dbd9 of _0x218ce9['getSuggestions']())_0x3c2070['has'](_0x35dbd9['attributes']['groupId'])&&_0x35dbd9['setAttribute']('groupId',_0x491e8e);}_supportLegacySuggestions(){const _0x102614=this['editor'],_0x125217=_0x102614['locale'],_0x2afd7c=_0x102614['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2afd7c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x577f37,_0x60493e){const _0xbfa76c=[];for(let _0x2c116a of _0x577f37)_0x2c116a['start']['nodeAfter']===_0x2c116a['end']['parent']&&(_0x2c116a=_0x102614['model']['createRange'](_0x102614['model']['createPositionAt'](_0x2c116a['start']['nodeAfter'],0x0))),_0xbfa76c['push'](_0x2c116a);_0x102614['model']['change'](_0x2c46e2=>{const _0x4f0700=_0x102614['model']['document']['selection'],_0x239ccd=Array['from'](_0x4f0700['getRanges']())['map'](_0x353c96=>rt['fromRange'](_0x353c96));_0x2c46e2['setSelection'](_0xbfa76c),_0x102614['commands']['get'](_0x60493e['commandName'])['refresh'](),_0x60493e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x102614['execute'](_0x60493e['commandName'],..._0x60493e['commandParams']),_0x2c46e2['setSelection'](_0x239ccd);for(const _0xce462 of _0x239ccd)_0xce462['detach']();});}),_0x2afd7c['descriptionFactory']['registerElementLabel'](function(_0x5b7b03){const _0xa9b92d=!_0x102614['model']['schema']['isObject'](_0x5b7b03),_0x4a94a9=_0x5b7b03['previousSibling'],_0xe66c33=_0x5b7b03['nextSibling'],_0x385fa3=_0x5b7b03['getAttribute']('listItemId'),_0x18e1ba=!_0x4a94a9||_0x4a94a9['getAttribute']('listItemId')!==_0x385fa3,_0x56d182=!_0xe66c33||_0xe66c33['getAttribute']('listItemId')!==_0x385fa3;return _0xa9b92d&&Boolean(_0x385fa3)&&_0x18e1ba&&_0x56d182;},_0x19ecbb=>Mt(_0x125217,'ELEMENT_LIST_ITEM',_0x19ecbb));}_registerLegacyDescription(){const _0x472759=this['editor'],_0x388315=_0x472759['locale'];function _0x24ac0e(_0x5d2e81){const _0x5a001f=_0x472759['commands']['get']('bulletedList')['value'],_0x1a4e88=_0x472759['commands']['get']('numberedList')['value'];return'numberedList'===_0x5d2e81?_0x5a001f:_0x1a4e88;}_0x472759['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1abd89){if('formatBlock'!=_0x1abd89['type'])return;const {data:_0x4c0c85}=_0x1abd89;if(!_0x4c0c85)return;let _0x5e7930,_0x57303b,_0x28d33e,_0x412c80;switch(_0x4c0c85['commandName']){case'bulletedList':_0x28d33e=_0x4c0c85['commandParams'][0x0]['forceValue'],_0x412c80=_0x24ac0e(_0x4c0c85['commandName']),_0x5e7930=_0x28d33e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x412c80&&_0x472759['config']['get']('list.multiBlock')||(_0x5e7930='*Change\x20to:*\x20%0'),_0x57303b={'type':'format','content':Mt(_0x388315,_0x5e7930,Mt(_0x388315,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x28d33e=_0x4c0c85['commandParams'][0x0]['forceValue'],_0x412c80=_0x24ac0e(_0x4c0c85['commandName']),_0x5e7930=_0x28d33e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x412c80&&_0x472759['config']['get']('list.multiBlock')||(_0x5e7930='*Change\x20to:*\x20%0'),_0x57303b={'type':'format','content':Mt(_0x388315,_0x5e7930,Mt(_0x388315,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e7930='*Indent:*\x20%0',_0x57303b={'type':'format','content':Mt(_0x388315,_0x5e7930,Mt(_0x388315,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e7930=function(_0x37165a){const _0x2c1935=_0x37165a['getFirstRange']();let _0x1ced4a=_0x2c1935['start']['nodeAfter'];for(;_0x1ced4a&&_0x2c1935['containsItem'](_0x1ced4a);){if(_0x1ced4a['getAttribute']('listIndent')>0x0)return!0x1;_0x1ced4a=_0x1ced4a['nextSibling'];}return!0x0;}(_0x1abd89)?Mt(_0x388315,'*Format:*\x20remove\x20from\x20%0',Mt(_0x388315,function(_0x52ab3d){return'ELEMENT_'+_0x52ab3d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1abd89))):Mt(_0x388315,'*Outdent:*\x20%0',Mt(_0x388315,'ELEMENT_LIST_ITEM')),_0x57303b={'type':'format','content':_0x5e7930};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4c0c85['multipleBlocks']&&(_0x5e7930='*Merge:*\x20%0',_0x57303b={'type':'deletion','content':Mt(_0x388315,_0x5e7930,Mt(_0x388315,'ELEMENT_LIST_ITEM'))});}return _0x57303b;});}};function qt(_0x5edf01){let _0x31a86f=_0x5edf01['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x31a86f;){const _0x4f4a56=_0x31a86f['getAttribute']('listItemId');if(!_0x4f4a56)return!0x1;if(_0x4f4a56==_0x5edf01['data']['newValue'])return'newValue';if(_0x4f4a56==_0x5edf01['data']['oldValue'])return'oldValue';_0x31a86f=_0x31a86f['previousSibling'];}return!0x1;}var Yt=class extends _0x16a669{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3eb248=this['editor']['config']['get']('list.properties'),_0x579055=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb248['styles']&&_0x579055['enableDefaultAttributesIntegration']('listStyle'),_0x3eb248['reversed']&&_0x579055['enableDefaultAttributesIntegration']('listReversed'),_0x3eb248['startIndex']&&_0x579055['enableDefaultAttributesIntegration']('listStart');const _0x2f10ef={'type':'format','content':''};_0x579055['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1fe6a1=this['editor']['locale'];_0x579055['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x1fe6a1,'FORMAT_LIST_REVERSED')),_0x579055['descriptionFactory']['registerDescriptionCallback'](_0x4db21f=>{const {data:_0x2f0a5c}=_0x4db21f;if(_0x2f0a5c&&'listReversed'==_0x2f0a5c['key'])return null==_0x2f0a5c['newValue']||0x0==_0x2f0a5c['newValue']&&null==_0x2f0a5c['oldValue']?_0x2f10ef:void 0x0;}),_0x579055['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x1fe6a1,'FORMAT_LIST_START')),_0x579055['descriptionFactory']['registerDescriptionCallback'](_0x339a89=>{const {data:_0x32e46d}=_0x339a89;if(_0x32e46d&&'listStart'==_0x32e46d['key'])return null==_0x32e46d['newValue']||0x1==_0x32e46d['newValue']&&null==_0x32e46d['oldValue']?_0x2f10ef:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39ddf7=>{if(_0x39ddf7['batch']['isUndo'])return!0x1;let _0x3f9911=!0x1;const _0x3e2553=_0x579055['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x404088=>{const _0x1acd48=_0x579055['_getAttributeKey'](_0x404088);return'listStart'==_0x1acd48||'listReversed'==_0x1acd48;});for(const _0x1e9ed2 of _0x3e2553){const _0x13c656=_0x1e9ed2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x13c656&&'customNumbered'!=_0x13c656&&(_0x579055['_findSuggestions'](_0x1e9ed2['getFirstRange'](),'attribute')['find'](_0x4b3eef=>'listType'==_0x579055['_getAttributeKey'](_0x4b3eef['suggestion']))||(_0x39ddf7['removeMarker'](_0x1e9ed2['getFirstMarker']()),_0x3f9911=!0x0));}return _0x3f9911;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3c676d){const _0x3ef345=this['editor']['locale'],{data:_0x181237}=_0x3c676d,_0x3db1f5={'type':'format','content':''};if(!_0x181237||'listStyle'!=_0x181237['key'])return;if(!_0x181237['oldValue'])return'default'==_0x181237['newValue']?_0x3db1f5:{'type':'format','content':''+Mt(_0x3ef345,'*Set\x20format:*\x20%0',Mt(_0x3ef345,this['_getTranslationKeyForListStyle'](_0x181237['newValue'])))};if(!_0x181237['newValue']){if('default'==_0x181237['oldValue'])return _0x3db1f5;let _0x43e9b8=_0x3c676d['head'];for(;_0x43e9b8;){if(_0x43e9b8['data']&&'listType'==_0x43e9b8['data']['key']&&_0x43e9b8['data']['newValue'])return _0x3db1f5;_0x43e9b8=_0x43e9b8['next'];}return{'type':'format','content':''+Mt(_0x3ef345,'*Remove\x20format:*\x20%0',Mt(_0x3ef345,this['_getTranslationKeyForListStyle'](_0x181237['oldValue'])))};}if('default'!=_0x181237['newValue'])return{'type':'format','content':''+Mt(_0x3ef345,'*Set\x20format:*\x20%0',Mt(_0x3ef345,this['_getTranslationKeyForListStyle'](_0x181237['newValue'])))};let _0x2783c1=_0x3c676d['head'];for(;_0x2783c1;){if(_0x2783c1['data']&&'listType'==_0x2783c1['data']['key']&&_0x2783c1['data']['newValue']&&_0x2783c1['data']['oldValue'])return _0x3db1f5;_0x2783c1=_0x2783c1['next'];}return{'type':'format','content':Mt(_0x3ef345,'*Set\x20format:*\x20%0',Mt(_0x3ef345,'ELEMENT_'+_0x3c676d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x389139=this['editor'],_0x4349d7=_0x389139['locale'];_0x389139['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434402=>{if('formatBlock'!=_0x434402['type'])return;const {data:_0x4ba729}=_0x434402;if(!_0x4ba729)return;let _0x12af71,_0xa8242d;switch(_0x4ba729['commandName']){case'listStyle':_0x12af71='*Change\x20to:*\x20%0',_0xa8242d={'type':'format','content':Mt(_0x4349d7,_0x12af71,Mt(_0x4349d7,this['_getTranslationKeyForListStyle'](_0x4ba729['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12af71=_0x4ba729['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa8242d={'type':'format','content':Mt(_0x4349d7,_0x12af71)};break;case'listStart':_0x12af71='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa8242d={'type':'format','content':Mt(_0x4349d7,_0x12af71,_0x4ba729['commandParams'][0x0]['startIndex'])};}return _0xa8242d;});}_getTranslationKeyForListStyle(_0x3aeeee){return'ELEMENT_'+(_0x15c852=_0x3aeeee,Qt['includes'](_0x15c852)?'bulleted':Zt['includes'](_0x15c852)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3aeeee['toUpperCase']()['replace'](/-/g,'_');var _0x15c852;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x16a669{afterInit(){const _0x44667f=this['editor'];_0x44667f['commands']['get']('emoji')&&_0x44667f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x16a669{static get requires(){return[Et];}init(){const _0x1a7690=this['editor'],_0x756d2c=_0x1a7690['plugins']['get']('TrackChangesEditing'),_0x10bfdc=_0x1a7690['commands']['get']('enter');_0x756d2c['enableCommand']('enter',()=>{_0x1a7690['model']['change'](_0x3ecebc=>{const _0x2b3020=_0x1a7690['model']['document']['selection'],_0x5959e3=_0x2b3020['getFirstPosition'](),_0x451b8b=rt['fromRange'](_0x2b3020['getFirstRange']());if(_0x10bfdc['enterBlock'](_0x3ecebc)){const _0x46b223=_0x1a7690['model']['createPositionAt'](_0x5959e3['parent']['nextSibling'],0x0),_0xb43446=_0x3ecebc['createRange'](_0x5959e3,_0x46b223);_0x756d2c['markInsertion'](_0xb43446);}else _0x3ecebc['setSelection'](_0x3ecebc['createRange'](_0x451b8b['end']));_0x451b8b['detach'](),_0x10bfdc['fire']('afterExecute',{'writer':_0x3ecebc});});});}},ee=class extends _0x16a669{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1e38bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e38bc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1e38bc['enableCommand']('findNext'),_0x1e38bc['enableCommand']('findPrevious'),_0x1e38bc['enableCommand']('replace'),_0x1e38bc['enableCommand']('replaceAll');}['handleFindCommand'](_0x27746b,_0x758432,_0x4793b6={}){const _0x585dcf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x27746b(_0x8ab3ef=>{let _0x28190c=('string'==typeof _0x758432?_0x585dcf['findByTextCallback'](_0x758432,_0x4793b6):_0x758432)(_0x8ab3ef);Array['isArray'](_0x28190c)&&(_0x28190c={'results':_0x28190c,'searchText':'string'==typeof _0x758432?_0x758432:''});const _0x5bc4b4=_0x28190c['results']['filter'](_0x289c89=>!0x1===this['_isInDeletionRange'](_0x289c89,_0x8ab3ef['item']));return{..._0x28190c,'results':_0x5bc4b4};},_0x4793b6);}_isInDeletionRange(_0x422ed6,_0x1df971){const _0xefb706=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1df971,_0x422ed6['start']),this['editor']['model']['createPositionAt'](_0x1df971,_0x422ed6['end']));for(const _0x3ad674 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xefb706['getIntersection'](_0x3ad674['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x16a669{afterInit(){const _0x25f8ff=this['editor']['locale'],_0x3ff191=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x59cfc9,commandName:_0x148475}of ne)this['editor']['plugins']['has'](_0x59cfc9)&&_0x3ff191['enableDefaultAttributesIntegration'](_0x148475);_0x3ff191['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x25f8ff,'FORMAT_FONT_SIZE')),_0x3ff191['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x25f8ff,'FORMAT_FONT_FAMILY')),_0x3ff191['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x25f8ff,'FORMAT_FONT_COLOR')),_0x3ff191['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x25f8ff,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x23dea7=this['editor'],_0x54b255=_0x23dea7['locale'];_0x23dea7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496ec5=>{const _0x2a052c=_0x54b255['t'];if('formatInline'!=_0x496ec5['type'])return;const {data:_0x49a3cc}=_0x496ec5;if(null!=_0x49a3cc){if('fontSize'==_0x49a3cc['commandName']){const _0x4d8117=_0x49a3cc['commandParams'][0x0]['value'];if(_0x4d8117){const _0xa83b22=_0x2a052c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x474aef=>_0x474aef['model']==_0x4d8117)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x54b255,'*Set\x20font\x20size:*\x20%0',_0xa83b22)};}return{'type':'format','content':Mt(_0x54b255,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x49a3cc['commandName']){const _0x121078=_0x49a3cc['commandParams'][0x0]['value'];return _0x121078?{'type':'format','content':Mt(_0x54b255,'*Set\x20font\x20family:*\x20%0',_0x121078)}:{'type':'format','content':Mt(_0x54b255,'*Reset\x20font\x20family*')};}if('fontColor'==_0x49a3cc['commandName']){const _0x1b0de6=_0x49a3cc['commandParams'][0x0]['value'];if(_0x1b0de6){const _0xa3da03=_0x381185(this['editor']['config']['get']('fontColor.colors'))['find'](_0x55f7cf=>_0x55f7cf['model']==_0x1b0de6);let _0x27c418=_0x1b0de6,_0x18f991='';return _0xa3da03&&(_0x27c418=_0xa3da03['label'],_0x18f991=_0x2a052c(_0x27c418)['toLowerCase']()),{'type':'format','content':Mt(_0x54b255,'*Set\x20font\x20color:*\x20%0',_0x18f991)['trim'](),'color':{'value':_0x1b0de6,'title':_0x18f991||_0x27c418}};}return{'type':'format','content':Mt(_0x54b255,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x49a3cc['commandName']){const _0x283431=_0x49a3cc['commandParams'][0x0]['value'];if(_0x283431){const _0x3aeb81=_0x381185(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x31f862=>_0x31f862['model']==_0x283431);let _0x247918=_0x283431,_0x585fa3='';return _0x3aeb81&&(_0x247918=_0x3aeb81['label'],_0x585fa3=_0x2a052c(_0x247918)['toLowerCase']()),{'type':'format','content':Mt(_0x54b255,'*Set\x20font\x20background\x20color:*\x20%0',_0x585fa3)['trim'](),'color':{'value':_0x283431,'title':_0x585fa3||_0x247918}};}return{'type':'format','content':Mt(_0x54b255,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x16a669{afterInit(){const {plugins:_0x519b21}=this['editor'];_0x519b21['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x519b21['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x47945d,plugins:_0x5c8711,commands:_0x396bba}=this['editor'],_0x148279=_0x5c8711['get']('TrackChangesEditing');_0x396bba['get']('footnotesStyle')&&_0x148279['enableDefaultAttributesIntegration']('footnotesStyle'),_0x396bba['get']('footnotesStart')&&_0x148279['enableDefaultAttributesIntegration']('footnotesStart'),_0x148279['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x47945d,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x148279['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x47945d,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x4ed62a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xb1384a,commands:_0x18a24b}=this['editor'];_0x18a24b['get']('insertFootnote')&&_0x4ed62a['enableCommand']('insertFootnote'),_0x4ed62a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2e860d=>Mt(_0xb1384a,'ELEMENT_FOOTNOTE_REF',_0x2e860d)),_0x4ed62a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x120211=>Mt(_0xb1384a,'ELEMENT_FOOTNOTE_DEFINITION',_0x120211)),_0x4ed62a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x15bf38=>Mt(_0xb1384a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x15bf38));}},re=class extends _0x16a669{afterInit(){const _0xf237b5=this['editor'],_0x193f42=_0xf237b5['plugins']['get']('TrackChangesEditing'),_0x586bc8=_0xf237b5['commands']['get']('copyFormat'),_0x49ec3d=_0xf237b5['commands']['get']('pasteFormat');_0x586bc8&&_0x49ec3d&&(_0x193f42['enableDefaultAttributesIntegration']('pasteFormat'),_0x193f42['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x47e785=this['editor'],_0x55efc0=_0x47e785['locale'];_0x47e785['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5d81=>{if('formatBlock'!=_0x4e5d81['type']&&'formatInline'!=_0x4e5d81['type'])return;const {data:_0x5828b5}=_0x4e5d81;if(_0x5828b5&&'pasteFormat'===_0x5828b5['commandName']){const _0x33fcd9=[],_0x3d20d9=_0x5828b5['commandParams'][0x0];for(const [_0x5901f3,_0x1292e9]of Object['entries'](_0x3d20d9))_0x33fcd9['push'](oe(_0x47e785,_0x5901f3,_0x1292e9));return _0x33fcd9['length']?{'type':'format','content':Mt(_0x55efc0,'*Set\x20format\x20to:*\x20%0',_0x33fcd9['join'](',\x20'))}:{'type':'format','content':Mt(_0x55efc0,'*Remove\x20all\x20formatting*')};}});}};function oe(_0xcb06de,_0x4bd743,_0x358bb1){const _0xa6ccb3=_0xcb06de['locale']['t'],_0x1fa041=_0x4bd743['split'](/(?=[A-Z])/)['join']('\x20'),_0x14ae3d=_0xa6ccb3(_0x1fa041['charAt'](0x0)['toUpperCase']()+_0x1fa041['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x358bb1)return _0x14ae3d;if('fontColor'===_0x4bd743||'fontBackgroundColor'===_0x4bd743){const _0x53d6bf=_0x381185(_0xcb06de['config']['get']('fontColor.colors'))['find'](_0x596163=>_0x596163['model']==_0x358bb1);return _0x14ae3d+'\x20('+(_0x53d6bf?_0xa6ccb3(_0x53d6bf['label'])['toLowerCase']():_0x358bb1)+')';}if('fontSize'===_0x4bd743&&isNaN(parseFloat(_0x358bb1))){const _0x52d8e1=_0xcb06de['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xcb06de['config']['get']('fontSize.options'))['find'](_0x509404=>_0x509404['model']==_0x358bb1);return _0x14ae3d+'\x20('+(_0x52d8e1?_0xa6ccb3(_0x52d8e1['title'])['toLowerCase']():_0x358bb1)+')';}return _0x14ae3d+'\x20('+_0x358bb1+')';}var ae=class extends _0x16a669{afterInit(){const _0x2f898e=this['editor'];if(!_0x2f898e['plugins']['has']('GeneralHtmlSupport')||!_0x2f898e['plugins']['has']('DataSchema'))return;const _0x415259=_0x2f898e['plugins']['get']('TrackChangesEditing'),_0x4eff25=_0x2f898e['plugins']['get']('GeneralHtmlSupport'),_0x3fbbfb=_0x2f898e['plugins']['get']('DataSchema'),_0x37182b=_0x2f898e['locale'],_0x2e2c84=new Set(['htmlContent']);for(const _0x1588e1 of _0x3fbbfb['getDefinitionsForView'](/.*/,!0x1)){const _0x39e7eb=_0x1588e1['view'],_0x4b0892=_0x4eff25['getGhsAttributeNameForElement'](_0x39e7eb);_0x2e2c84['add'](_0x4b0892),!_0x1588e1['isInline']||_0x1588e1['isObject']||'appliesToBlock'in _0x1588e1&&_0x1588e1['appliesToBlock']||_0x415259['descriptionFactory']['registerAttributeLabel'](_0x4b0892,_0x39e7eb),_0x1588e1['model']['startsWith']('html')&&_0x415259['descriptionFactory']['registerElementLabel'](_0x1588e1['model'],_0x322e2a=>Mt(_0x37182b,'ELEMENT_HTML_TAG',[_0x322e2a,_0x39e7eb]));}_0x415259['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x37182b,'FORMAT_RAW_HTML_CONTENT')),_0x415259['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x37182b,'FORMAT_HTML_LIST_ITEM')),_0x415259['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x37182b,'FORMAT_HTML_BULLETED_LIST')),_0x415259['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x37182b,'FORMAT_HTML_NUMBERED_LIST')),_0x415259['descriptionFactory']['registerDescriptionCallback'](_0x5603ee=>{if('attribute'!==_0x5603ee['type'])return;const _0x4c48fb=_0x5603ee['data'];if(!_0x4c48fb||!_0x2e2c84['has'](_0x4c48fb['key']))return;if('htmlContent'===_0x4c48fb['key'])return{'type':'format','content':Mt(_0x37182b,'*Change\x20%0\x20content*',Mt(_0x37182b,'ELEMENT_RAW_HTML'))};const {setItems:_0x378a4a,removeItems:_0x3a13f1}=function(_0x3ec0f0,_0x571c3a,_0xf9f0e4){const _0xff5344=[],_0x527af0=[],_0x216eb6=_0x3ec0f0['styles']??{},_0x5145c1=_0x571c3a['styles']??{};for(const _0x546a91 of new Set([...Object['keys'](_0x216eb6),...Object['keys'](_0x5145c1)]))_0x216eb6[_0x546a91]!==_0x5145c1[_0x546a91]&&(void 0x0===_0x5145c1[_0x546a91]?_0x527af0['push'](_0x546a91):_0xff5344['push'](_0x546a91+'\x20('+_0x5145c1[_0x546a91]+')'));const _0x205241=Mt(_0xf9f0e4,'FORMAT_HTML_CLASS'),_0x6d1ba0=new Set(_0x3ec0f0['classes']??[]),_0x30900d=new Set(_0x571c3a['classes']??[]),_0x373c9f=[..._0x30900d]['some'](_0x5ee151=>!_0x6d1ba0['has'](_0x5ee151)),_0x414bc2=[..._0x6d1ba0]['some'](_0x5d3f99=>!_0x30900d['has'](_0x5d3f99));_0x373c9f&&_0xff5344['push'](_0x205241),_0x414bc2&&_0x527af0['push'](_0x205241);const _0x3f1564=Mt(_0xf9f0e4,'FORMAT_HTML_ATTRIBUTE'),_0x49503f=_0x3ec0f0['attributes']??{},_0x1a5685=_0x571c3a['attributes']??{};let _0x302dbd=!0x1,_0x1d5c2a=!0x1;for(const _0x5e3104 of new Set([...Object['keys'](_0x49503f),...Object['keys'](_0x1a5685)]))_0x49503f[_0x5e3104]!==_0x1a5685[_0x5e3104]&&(void 0x0===_0x1a5685[_0x5e3104]?_0x1d5c2a=!0x0:_0x302dbd=!0x0);return _0x302dbd&&_0xff5344['push'](_0x3f1564),_0x1d5c2a&&_0x527af0['push'](_0x3f1564),{'setItems':_0xff5344,'removeItems':_0x527af0};}(_0x4c48fb['oldValue']??{},_0x4c48fb['newValue']??{},_0x37182b);if(!_0x378a4a['length']&&!_0x3a13f1['length'])return;const _0x2bd478=[];return _0x378a4a['length']&&_0x2bd478['push'](Mt(_0x37182b,'*Set\x20format:*\x20%0',_0x378a4a['join'](',\x20'))),_0x3a13f1['length']&&_0x2bd478['push'](Mt(_0x37182b,'*Remove\x20format:*\x20%0',_0x3a13f1['join'](',\x20'))),{'type':'format','content':_0x2bd478['join']('\x0a')};});}},ce=class extends _0x16a669{_headingOptions;afterInit(){const _0x18b240=this['editor'];if(!_0x18b240['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18b240['config']['get']('heading.options');const _0x92d9a=_0x18b240['locale'],_0x1800cd=_0x18b240['plugins']['get']('TrackChangesEditing');_0x1800cd['enableDefaultAttributesIntegration']('heading');for(const _0x507aa0 of this['_headingOptions'])'paragraph'!=_0x507aa0['model']&&_0x1800cd['descriptionFactory']['registerElementLabel'](_0x507aa0['model'],_0xf9e956=>{const _0x13aa7c=this['_getHeadingLevel'](_0x507aa0['model']);return null!==_0x13aa7c?_0x131ac8(_0xf9e956,_0x13aa7c):_0x2310a4(_0xf9e956,_0x507aa0['title']);});function _0x131ac8(_0x2e3c70,_0xd5edd9){return Mt(_0x92d9a,'ELEMENT_HEADING',[_0x2e3c70,_0xd5edd9]);}function _0x2310a4(_0x5c418e,_0x170c30){return Mt(_0x92d9a,'ELEMENT_HEADING_CUSTOM',[_0x5c418e,_0x170c30]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x7e5aa1=this['editor'],_0x192f9e=_0x7e5aa1['locale'];function _0x4598a1(_0x110bf4,_0x3c0a0a){return Mt(_0x192f9e,'ELEMENT_HEADING_CUSTOM',[_0x110bf4,_0x3c0a0a]);}_0x7e5aa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32205b=>{if('formatBlock'!=_0x32205b['type'])return;const {data:_0x4054d0}=_0x32205b;if(_0x4054d0&&'heading'==_0x4054d0['commandName']){const _0x4688f1=_0x4054d0['commandParams'][0x0]['value'],_0x46ae88=this['_getHeadingLevel'](_0x4688f1);if(null!==_0x46ae88)return{'type':'format','content':Mt(_0x192f9e,'*Change\x20to:*\x20%0',(_0x571aea=0x1,_0x51107d=_0x46ae88,Mt(_0x192f9e,'ELEMENT_HEADING',[_0x571aea,_0x51107d])))};const _0x3b7be7=this['_headingOptions']['find'](_0x2f72be=>_0x2f72be['model']===_0x4688f1)['title'];return{'type':'format','content':Mt(_0x192f9e,'*Change\x20to:*\x20%0',_0x4598a1(0x1,_0x3b7be7))};}var _0x571aea,_0x51107d;});}_getHeadingLevel(_0x8a9bdd){const _0x46f52b=_0x8a9bdd['match'](/^heading(\d+)/);if(_0x46f52b)return _0x46f52b[0x1];const _0x4f6ccc=this['_headingOptions']?.['find'](_0x4b9c3a=>_0x4b9c3a['model']==_0x8a9bdd);if(_0x4f6ccc&&_0x4f6ccc['view']){const _0x27cd0f=_0x4f6ccc['view'],_0x45de05=(_0x27cd0f['name']??_0x27cd0f)['match'](/^h(\d+)/);if(_0x45de05)return _0x45de05[0x1];}return null;}},le=class extends _0x16a669{afterInit(){const _0x565189=this['editor'];if(!_0x565189['plugins']['has']('HighlightEditing'))return;const _0x23f6c3=_0x565189['plugins']['get']('TrackChangesEditing'),_0x4c1b75=_0x565189['locale'];_0x23f6c3['enableDefaultAttributesIntegration']('highlight'),_0x23f6c3['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x4c1b75,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x7ae1d1=this['editor'],_0x42a9e5=_0x7ae1d1['locale'];_0x7ae1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22e0a6=>{if('formatInline'!=_0x22e0a6['type'])return;const {data:_0x3d1156}=_0x22e0a6;if(_0x3d1156&&'highlight'==_0x3d1156['commandName']){const _0x12ed23=_0x42a9e5['t'],_0x1d28b5=_0x3d1156['commandParams'][0x0]['value'];if(_0x1d28b5){const _0xdb4b87=_0x7ae1d1['config']['get']('highlight.options')['find'](_0x4527b2=>_0x4527b2['model']==_0x1d28b5),_0x3e53c7=_0x12ed23(_0xdb4b87['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x42a9e5,'*Set\x20highlight:*\x20%0',_0x3e53c7),'color':{'value':_0xdb4b87['color'],'title':_0xdb4b87['title']}};}return{'type':'format','content':Mt(_0x42a9e5,'*Remove\x20highlight*',Mt(_0x42a9e5,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x16a669{afterInit(){const _0x5573dc=this['editor'];if(!_0x5573dc['plugins']['has']('HorizontalLineEditing'))return;_0x5573dc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x335a03=_0x5573dc['plugins']['get']('TrackChangesEditing'),_0xc68f0c=_0x5573dc['locale'];_0x335a03['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1f54c4=>Mt(_0xc68f0c,'ELEMENT_HORIZONTAL_LINE',_0x1f54c4));}},de=class extends _0x16a669{afterInit(){const _0x242b85=this['editor'];if(!_0x242b85['plugins']['has']('HtmlEmbed'))return;const _0x306e57=_0x242b85['plugins']['get']('TrackChangesEditing'),_0x1f4f9c=_0x242b85['locale'];_0x306e57['descriptionFactory']['registerElementLabel']('rawHtml',_0x98c56a=>Mt(_0x1f4f9c,'ELEMENT_HTML_EMBED',_0x98c56a)),_0x306e57['enableDefaultAttributesIntegration']('htmlEmbed'),_0x306e57['descriptionFactory']['registerDescriptionCallback'](_0x8b99ea=>{if('attribute'!=_0x8b99ea['type'])return;const {data:_0x4c327f}=_0x8b99ea;if(_0x4c327f&&'value'==_0x4c327f['key']&&_0x8b99ea['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5eab6a=Mt(_0x1f4f9c,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1f4f9c,'*Change\x20%0\x20content*',_0x5eab6a)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c6941=this['editor'],_0x44de4f=_0x1c6941['locale'];_0x1c6941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x377111=>{if('formatBlock'!=_0x377111['type'])return;const {data:_0x454342}=_0x377111;if(_0x454342&&'htmlEmbed'==_0x454342['commandName']){const _0x51fd02=Mt(_0x44de4f,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x44de4f,'*Change\x20%0\x20content*',_0x51fd02)};}});}},he=class extends _0x16a669{afterInit(){const _0x37d3eb=this['editor'];if(!_0x37d3eb['plugins']['has']('ImageEditing'))return;const _0x34e766=_0x37d3eb['plugins']['get']('TrackChangesEditing'),_0x315388=_0x37d3eb['plugins']['get']('ImageUtils'),_0x2c2b85=_0x37d3eb['locale'];_0x34e766['enableCommand']('insertImage'),_0x34e766['descriptionFactory']['registerElementLabel']('imageBlock',_0x5d3e44=>Mt(_0x2c2b85,'ELEMENT_IMAGE',_0x5d3e44)),_0x34e766['descriptionFactory']['registerElementLabel']('imageInline',_0x3e8485=>Mt(_0x2c2b85,'ELEMENT_INLINE_IMAGE',_0x3e8485)),_0x34e766['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x2c2b85,'ELEMENT_CAPTION')),_0x37d3eb['plugins']['has']('ImageUploadEditing')&&_0x34e766['enableCommand']('uploadImage'),_0x37d3eb['plugins']['has']('ImageBlockEditing')&&_0x37d3eb['plugins']['has']('ImageInlineEditing')&&(_0x34e766['enableCommand']('imageTypeInline',(_0x4509a0,_0x53db61)=>{const _0x8c2150=_0x315388['getClosestSelectedImageElement'](_0x37d3eb['model']['document']['selection']);_0x37d3eb['model']['change'](()=>{_0x34e766['markBlockFormat'](_0x8c2150,{'commandName':'imageTypeInline','commandParams':[_0x53db61]},[],'convertBlockImageToInline');});}),_0x34e766['enableCommand']('imageTypeBlock',(_0x5ada83,_0x18dddd)=>{_0x37d3eb['model']['change'](_0x28a3a8=>{let _0x27cae2=_0x315388['getClosestSelectedImageElement'](_0x37d3eb['model']['document']['selection']),_0x451433=_0x28a3a8['createRangeOn'](_0x27cae2);const _0x5dc4ed=st['fromPosition'](_0x451433['start'],'toPrevious'),_0x2a8c1c=st['fromPosition'](_0x451433['end'],'toNext');_0x34e766['forceDefaultExecution'](()=>_0x5ada83(_0x18dddd)),_0x27cae2=_0x315388['getClosestSelectedImageElement'](_0x37d3eb['model']['document']['selection']),_0x451433=_0x28a3a8['createRangeOn'](_0x27cae2);const _0x2c6b45=_0x28a3a8['createRange'](_0x5dc4ed,_0x2a8c1c);_0x5dc4ed['detach'](),_0x2a8c1c['detach'](),_0x34e766['markBlockFormat'](_0x27cae2,{'commandName':'imageTypeInline','commandParams':[_0x18dddd]},[],'convertInlineImageToBlock'),_0x2c6b45['start']['isBefore'](_0x451433['start'])&&_0x34e766['markInsertion'](_0x28a3a8['createRange'](_0x2c6b45['start'],_0x451433['start']),'convertInlineImageToBlock'),_0x451433['end']['isBefore'](_0x2c6b45['end'])&&_0x34e766['markInsertion'](_0x28a3a8['createRange'](_0x451433['end'],_0x2c6b45['end']),'convertInlineImageToBlock');});}),_0x34e766['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34e766['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34e766['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34e766['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34e766['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34e766['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5dd34e])=>{const _0x18154c=_0x34e766['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x559b98=_0x5dd34e['start'],_0x444e8b=_0x5dd34e['end'];const _0x3cd460=_0x37d3eb['model']['schema']['getNearestSelectionRange'](_0x559b98,'backward'),_0xee9637=_0x37d3eb['model']['schema']['getNearestSelectionRange'](_0x444e8b,'forward');_0x3cd460['isCollapsed']&&(_0x559b98=_0x3cd460['start']),_0xee9637['isCollapsed']&&(_0x444e8b=_0xee9637['end']),_0x18154c([_0x37d3eb['model']['createRange'](_0x559b98,_0x444e8b)]);}),_0x34e766['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a138b),_0x34e766['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a138b)),_0x37d3eb['plugins']['has']('ImageCaptionEditing')&&(_0x34e766['enableCommand']('toggleImageCaption',(_0x109d93,_0x3377f9)=>{const _0x46af84=_0x37d3eb['plugins']['get']('ImageCaptionUtils');let _0x359fd2=_0x315388['getClosestSelectedImageElement'](_0x37d3eb['model']['document']['selection']),_0x230289=_0x46af84['getCaptionFromImageModelElement'](_0x359fd2);_0x37d3eb['model']['change'](()=>{if(_0x230289)return void _0x34e766['markDeletion'](_0x37d3eb['model']['createRangeOn'](_0x230289));const _0xb73466=_0x315388['isBlockImage'](_0x359fd2);_0x109d93(_0x3377f9),_0x359fd2=_0x315388['getClosestSelectedImageElement'](_0x37d3eb['model']['document']['selection']),_0x230289=_0x46af84['getCaptionFromImageModelElement'](_0x359fd2),_0x34e766['markInsertion'](_0x37d3eb['model']['createRangeOn'](_0x230289),_0xb73466?null:'imageCaption');});}),_0x34e766['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a138b));const _0x574946=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x389d1d(_0x4badc9,_0x117e58){const _0x27dd28=_0x574946['findIndex'](({type:_0x3730b2,subType:_0x3b4873})=>_0x4badc9['type']==_0x3730b2&&_0x4badc9['subType']==_0x3b4873),_0x3c7b4c=_0x574946['findIndex'](({type:_0x56b0e8,subType:_0x34e7ff})=>_0x117e58['type']==_0x56b0e8&&_0x117e58['subType']==_0x34e7ff);if(_0x27dd28<0x0||_0x3c7b4c<0x0)return!0x1;const _0x23d6ea=_0x4badc9['getFirstRange'](),_0x330230=_0x117e58['getFirstRange']();if((0x0==_0x27dd28||0x1==_0x27dd28)&&0x2==_0x3c7b4c&&_0x23d6ea['isIntersecting'](_0x330230))return!0x0;if(0x2==_0x27dd28&&0x3==_0x3c7b4c){const _0x46c039=_0x34e766['_findSuggestions'](_0x23d6ea,'insertion')['filter'](({suggestion:_0x72ca5f,meta:_0x5719ce})=>_0x5719ce['isOwn']&&'convertInlineImageToBlock'==_0x72ca5f['subType']);if(_0x46c039['length']>0x1&&_0x330230['end']['isEqual'](_0x23d6ea['start']))return!0x0;if(0x1==_0x46c039['length']&&(_0x23d6ea['start']['isEqual'](_0x330230['end'])||_0x23d6ea['end']['isEqual'](_0x330230['start'])))return!0x0;}if(0x3==_0x27dd28&&0x3==_0x3c7b4c&&_0x23d6ea['start']['isBefore'](_0x330230['start'])){const _0x9fd07c=_0x23d6ea['end']['nodeAfter'],_0x375348=_0x330230['start']['nodeBefore'];return _0x315388['isBlockImage'](_0x9fd07c)&&_0x9fd07c===_0x375348;}return!0x1;}function _0x3a138b(_0x5c6b65,_0x588394){return _0x389d1d(_0x5c6b65,_0x588394)?[_0x5c6b65,_0x588394]:_0x389d1d(_0x588394,_0x5c6b65)?[_0x588394,_0x5c6b65]:null;}_0x37d3eb['plugins']['has']('ImageResize')&&(_0x34e766['enableDefaultAttributesIntegration']('resizeImage'),_0x34e766['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x2c2b85,'FORMAT_IMAGE_SIZE'))),_0x37d3eb['plugins']['has']('ImageTextAlternativeEditing')&&_0x34e766['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37d3eb['plugins']['has']('PictureEditing')&&_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x3b1afd=>{if('attribute'!=_0x3b1afd['type'])return;const {data:_0x231cdf}=_0x3b1afd;return _0x231cdf&&'sources'==_0x231cdf['key']?{'type':'format','content':''}:void 0x0;}),_0x37d3eb['plugins']['has']('ImageSizeAttributes')&&_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x4c5b37=>{if('attribute'!=_0x4c5b37['type'])return;const {data:_0xee6acc}=_0x4c5b37;return!_0xee6acc||'width'!=_0xee6acc['key']&&'height'!=_0xee6acc['key']?void 0x0:{'type':'format','content':''};}),_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x48bdd4=>{if(_0x574946['find'](({type:_0x382ea6,subType:_0x59192d})=>_0x48bdd4['type']==_0x382ea6&&_0x48bdd4['subType']==_0x59192d))return _0x48bdd4['previous']?{}:void 0x0;}),_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x436452=>{if('insertion'==_0x436452['type']||'deletion'==_0x436452['type']){const _0x50c991=_0x436452['getContainedElement']();if(_0x50c991&&_0x50c991['is']('element','caption'))return{'type':'insertion'==_0x436452['type']?'addObject':'removeObject','element':_0x50c991,'quantity':0x1};}}),_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x559c7f=>'formatBlock'==_0x559c7f['type']&&'convertInlineImageToBlock'==_0x559c7f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x559c7f['type']&&'convertBlockImageToInline'==_0x559c7f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34e766['descriptionFactory']['registerDescriptionCallback'](_0x239c19=>{if('attribute'!=_0x239c19['type'])return;const {data:_0x13dd00}=_0x239c19;if(!_0x13dd00||'alt'!=_0x13dd00['key'])return;const _0x39d35e=_0x13dd00['newValue'];return _0x39d35e?{'type':'format','content':Mt(_0x2c2b85,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39d35e+'\x22')}:{'type':'format','content':Mt(_0x2c2b85,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x149f5d=this['editor'],_0xd8d727=_0x149f5d['locale'];_0x149f5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd8d7=>{if('formatBlock'!=_0x1bd8d7['type']&&'formatInline'!=_0x1bd8d7['type'])return;const {data:_0x2cdf9a}=_0x1bd8d7;if(_0x2cdf9a){if('imageTextAlternative'==_0x2cdf9a['commandName']){const _0x4f3dc=_0x2cdf9a['commandParams'][0x0]['newValue'];return _0x4f3dc?{'type':'format','content':Mt(_0xd8d727,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f3dc+'\x22')}:{'type':'format','content':Mt(_0xd8d727,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cdf9a['commandName']){const _0x5688e2=_0x2cdf9a['commandParams'][0x0]['width'];return _0x5688e2?{'type':'format','content':Mt(_0xd8d727,'*Set\x20image\x20width:*\x20%0',_0x5688e2)}:{'type':'format','content':Mt(_0xd8d727,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x16a669{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x152e58=this['editor']['locale'],_0x4f12c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f12c0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f12c0['descriptionFactory']['registerDescriptionCallback'](_0x535962=>{if('attribute'!=_0x535962['type'])return;const {data:_0x2b0a6e}=_0x535962;return _0x2b0a6e&&'src'==_0x2b0a6e['key']?_0x2b0a6e['newValue']&&_0x2b0a6e['oldValue']?{'type':'format','content':Mt(_0x152e58,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x5aba61=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aba61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5aba61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5aba61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5aba61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x22b10d=this['editor'],_0x200e05=_0x22b10d['locale'];_0x22b10d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d2ef2=>{if('formatBlock'!=_0x2d2ef2['type']&&'formatInline'!=_0x2d2ef2['type'])return;const {data:_0x415ba9}=_0x2d2ef2;return _0x415ba9&&'replaceImageSource'==_0x415ba9['commandName']?{'type':'format','content':Mt(_0x200e05,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x16a669{afterInit(){const _0x4ab6ed=this['editor'];if(!_0x4ab6ed['plugins']['has']('ImageStyleEditing'))return;const _0x2482b0=_0x4ab6ed['plugins']['get']('TrackChangesEditing'),_0x580a0f=_0x4ab6ed['plugins']['get']('ImageUtils'),_0x23b9d5={};_0x2482b0['enableCommand']('imageStyle',(_0x2f1fc3,_0x7703ef)=>{const _0x53de45=_0x4ab6ed['plugins']['get']('Users')['me'],_0x52e419=_0x4ab6ed['commands']['get']('imageStyle');let _0x245506=_0x580a0f['getClosestSelectedImageElement'](_0x4ab6ed['model']['document']['selection']),_0x4a61f7=_0x4ab6ed['model']['createRangeOn'](_0x245506),_0x3b2470=_0x52e419['value'];if(_0x3b2470==_0x7703ef['value'])return;if(_0x7703ef['value']&&_0x580a0f['isInlineImage'](_0x245506)&&!_0x52e419['isStyleEnabled'](_0x7703ef['value']))return;const _0xbcdd9c={'commandName':'imageStyle','commandParams':[_0x7703ef],'formatGroupId':_0x511020()};_0x4ab6ed['model']['change'](()=>{if(_0x2482b0['getSuggestions']()['filter'](_0x27858a=>_0x27858a['isInContent']&&_0x53de45==_0x27858a['author']&&('formatBlock'==_0x27858a['type']||'formatInline'==_0x27858a['type'])&&('imageStylePreApply'==_0x27858a['subType']||'imageStylePostApply'==_0x27858a['subType'])&&_0x27858a['getFirstRange']()['isEqual'](_0x4a61f7))['forEach'](_0x9756fa=>_0x2482b0['discardSuggestion'](_0x9756fa['head'])),_0x245506=_0x580a0f['getClosestSelectedImageElement'](_0x4ab6ed['model']['document']['selection']),_0x4a61f7=_0x4ab6ed['model']['createRangeOn'](_0x245506),_0x52e419['refresh'](),_0x4ab6ed['commands']['get']('imageTypeInline')['refresh'](),_0x4ab6ed['commands']['get']('imageTypeBlock')['refresh'](),_0x3b2470=_0x52e419['value'],_0x3b2470!=_0x7703ef['value'])return _0x580a0f['isInlineImage'](_0x245506)&&_0x52e419['shouldConvertImageType'](_0x7703ef['value'],_0x245506)?(_0x2f1fc3({..._0x7703ef,'setImageSizes':!0x1}),_0x245506=_0x580a0f['getClosestSelectedImageElement'](_0x4ab6ed['model']['document']['selection']),void _0x2482b0['markBlockFormat'](_0x245506,{..._0xbcdd9c,'commandReversedParams':[{'value':_0x3b2470||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x580a0f['isBlockImage'](_0x245506)?_0x2482b0['markBlockFormat'](_0x245506,_0xbcdd9c,[],'imageStylePostApply'):_0x2482b0['markInlineFormat'](_0x4a61f7,_0xbcdd9c,'imageStylePostApply'));});});for(const _0x16faef of _0x4ab6ed['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23b9d5[_0x16faef['name']]=_0x16faef['title']['toLowerCase']();_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5f20af])=>{_0x580a0f['setImageNaturalSizeAttributes'](_0x5f20af['getContainedElement']());}),_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x556641,_0x2c673d)=>{_0x2482b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x556641,{'commandName':_0x2c673d['commandName'],'commandParams':_0x2c673d['commandReversedParams']});}),_0x2482b0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x555a5e,_0xc0a4c8){return _0x3b5bc2(_0x555a5e,_0xc0a4c8)?[_0x555a5e,_0xc0a4c8]:_0x3b5bc2(_0xc0a4c8,_0x555a5e)?[_0xc0a4c8,_0x555a5e]:null;});const _0x4b45e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3b5bc2(_0x16ecfe,_0x53fe49){const _0x3d1870=_0x4b45e1['findIndex'](({type:_0x343d24,subType:_0xb1e331})=>_0x16ecfe['type']==_0x343d24&&_0x16ecfe['subType']==_0xb1e331),_0x23a8cf=_0x4b45e1['findIndex'](({type:_0x22cf1f,subType:_0x2117ff})=>_0x53fe49['type']==_0x22cf1f&&_0x53fe49['subType']==_0x2117ff);if(_0x3d1870<0x0||_0x23a8cf<0x0)return!0x1;const _0x25f7c1=_0x16ecfe['getFirstRange'](),_0x509136=_0x53fe49['getFirstRange']();if((0x0==_0x3d1870||0x1==_0x3d1870)&&0x2==_0x23a8cf&&_0x25f7c1['isIntersecting'](_0x509136))return!0x0;if(0x2==_0x3d1870&&0x3==_0x23a8cf){const _0xbade5b=_0x2482b0['_findSuggestions'](_0x25f7c1,'insertion')['filter'](({suggestion:_0x2cfbe7,meta:_0x169fb4})=>_0x169fb4['isOwn']&&'convertInlineImageToBlock'==_0x2cfbe7['subType']);if(_0xbade5b['length']>0x1&&_0x509136['end']['isEqual'](_0x25f7c1['start']))return!0x0;if(0x1==_0xbade5b['length']&&(_0x25f7c1['start']['isEqual'](_0x509136['end'])||_0x25f7c1['end']['isEqual'](_0x509136['start'])))return!0x0;}if(0x3==_0x3d1870&&0x3==_0x23a8cf&&_0x25f7c1['start']['isBefore'](_0x509136['start'])){const _0x1dbf5e=_0x25f7c1['end']['nodeAfter'],_0x3d2a7f=_0x509136['start']['nodeBefore'];return _0x580a0f['isBlockImage'](_0x1dbf5e)&&_0x1dbf5e===_0x3d2a7f;}return!0x1;}_0x4ab6ed['model']['document']['registerPostFixer'](()=>{let _0x33268a=!0x1;const _0x4542d4=Array['from'](_0x4ab6ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f9027,data:_0x154bbb}of _0x4542d4){const {group:_0x1550b0,type:_0x489f76,subType:_0x57d4fe,id:_0x2e26d2}=tt(_0x3f9027);if('suggestion'==_0x1550b0&&_0x2482b0['hasSuggestion'](_0x2e26d2)){if('formatBlock'==_0x489f76&&('imageStylePreApply'==_0x57d4fe||'imageStylePostApply'==_0x57d4fe)){const _0x51576b=_0x2482b0['getSuggestion'](_0x2e26d2);if(_0x154bbb['newRange']){const _0x18b94c=_0x51576b['getFirstRange']()['getContainedElement']();if(_0x580a0f['isBlockImage'](_0x18b94c))continue;_0x2482b0['discardSuggestion'](_0x51576b),_0x33268a=!0x0;}}if('insertion'==_0x489f76&&'imageCaption'==_0x57d4fe&&!_0x154bbb['newRange']){const _0xf6672a=_0x2482b0['getSuggestion'](_0x2e26d2);_0xf6672a['next']&&_0xf6672a['next']['isInContent']&&(_0x2482b0['discardSuggestion'](_0xf6672a['next']),_0x33268a=!0x0);}}}return _0x33268a;}),this['_registerLegacyDescription'](_0x23b9d5);}_registerLegacyDescription(_0x35bebb){const _0x229bb1=this['editor'],_0x392356=_0x229bb1['locale'];_0x229bb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dba8c=>{if('formatBlock'!=_0x2dba8c['type']&&'formatInline'!=_0x2dba8c['type'])return;const {data:_0x5a3b03}=_0x2dba8c;if(!_0x5a3b03||'imageStyle'!=_0x5a3b03['commandName'])return;const _0x4fa83a=_0x5a3b03['commandParams'][0x0]['value'];return _0x8ab166('side'===_0x4fa83a?Mt(_0x392356,'FORMAT_SIDE_IMAGE'):_0x35bebb[_0x4fa83a]||_0x4fa83a);function _0x8ab166(_0xb0e6f1){return{'type':'format','content':Mt(_0x392356,'*Format:*\x20%0',_0xb0e6f1)};}});}},me=class extends _0x16a669{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x397f75){super(_0x397f75),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x5a0421=this['editor'],_0x30c295=_0x5a0421['commands']['get']('importWord'),_0x2e7b0b=_0x5a0421['commands']['get']('trackChanges');_0x30c295&&(_0x30c295['on']('execute',(_0x1098a7,[,_0x31ecb9])=>{this['_trackChangesValueDuringImport']=_0x2e7b0b['value'],_0x31ecb9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30c295,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30c295,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2e7b0b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5a0421['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x127998,_0x4a8b0f){const {suggestions:_0x4c1b26}=_0x4a8b0f,_0x3fbe51=this['editor']['commands']['get']('trackChanges'),_0x1867df=_0x3fbe51['value'];this['_trackChangesValueDuringImport']!==_0x1867df&&(_0x3fbe51['execute'](),this['_trackChangesExecuted']=!0x0),_0x4c1b26&&_0x4c1b26['forEach'](({id:_0x5d45aa,type:_0x9dea9b,author:_0x5ced8,created_at:_0x2898f6})=>{const _0x49d3a4={'id':_0x5d45aa,'type':_0x9dea9b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ced8,'createdAt':_0x2898f6?new Date(_0x2898f6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x49d3a4);});}},Ee=class extends _0x16a669{afterInit(){const _0x16f180=this['editor'],_0x537e6d=_0x16f180['plugins']['get']('TrackChangesEditing');if(_0x16f180['plugins']['has']('IndentEditing')&&(_0x537e6d['enableCommand']('indent'),_0x537e6d['enableCommand']('outdent')),_0x16f180['plugins']['has']('IndentBlock')){for(const _0x4f8795 of['indentBlock','outdentBlock'])_0x537e6d['enableDefaultAttributesIntegration'](_0x4f8795);if(_0x16f180['plugins']['has']('ListEditing')){for(const _0x2f86ff of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x537e6d['enableDefaultAttributesIntegration'](_0x2f86ff);}}const _0x464745=_0x16f180['locale'];_0x537e6d['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x464745,'FORMAT_INDENT')),_0x537e6d['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x464745,'FORMAT_INDENT')),_0x537e6d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x464745,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x225e0b=this['editor'],_0x6bd717=_0x225e0b['locale'],_0x62e67e=_0x225e0b['plugins']['get']('TrackChangesEditing');_0x62e67e['descriptionFactory']['registerDescriptionCallback'](_0x294bb6=>{if('formatBlock'!=_0x294bb6['type'])return;const {data:_0x294c68}=_0x294bb6;if(!_0x294c68)return;if('indentBlock'!=_0x294c68['commandName']&&'outdentBlock'!=_0x294c68['commandName'])return;const _0x2e798d=_0x294bb6['getItems']()[0x0],_0x2996a1=_0x62e67e['descriptionFactory']['getItemLabel'](_0x2e798d);return'indentBlock'==_0x294c68['commandName']?{'type':'format','content':Mt(_0x6bd717,'*Indent:*\x20%0',_0x2996a1)}:'outdentBlock'==_0x294c68['commandName']?{'type':'format','content':Mt(_0x6bd717,'*Outdent:*\x20%0',_0x2996a1)}:void 0x0;});}},Te=class extends _0x16a669{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x16a669{afterInit(){const _0x1f9d49=this['editor'];if(!_0x1f9d49['plugins']['has']('LinkEditing'))return;const _0x1033e0=_0x1f9d49['plugins']['get']('TrackChangesEditing'),_0x3e78c2=_0x1f9d49['commands']['get']('link');_0x1033e0['enableDefaultAttributesIntegration']('link'),_0x1033e0['enableDefaultAttributesIntegration']('unlink');for(const _0x186a65 of _0x3e78c2['manualDecorators'])_0x1033e0['descriptionFactory']['registerAttributeLabel'](_0x186a65['id'],'link\x20('+_0x186a65['label']['toLowerCase']()+')');_0x1033e0['descriptionFactory']['registerDescriptionCallback'](_0x401257=>{if('attribute'!=_0x401257['type'])return;const {data:_0xa10936}=_0x401257;if(!_0xa10936||'linkHref'!=_0xa10936['key'])return;const _0x42f9b6=_0xa10936['newValue'],_0x2edb37=_0x1f9d49['locale'];return{'type':'format','content':null==_0x42f9b6?Mt(_0x2edb37,'*Remove\x20link*'):Mt(_0x2edb37,'*Set\x20link:*\x20%0','\x22'+_0x42f9b6+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xe28dc7=this['editor'],_0x106db2=_0xe28dc7['locale'];_0xe28dc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x205d16=>{if('formatInline'!=_0x205d16['type'])return;const {data:_0x302fc6}=_0x205d16;if(_0x302fc6){if('link'==_0x302fc6['commandName']){const _0xe0deb=_0x302fc6['commandParams'][0x0];return{'type':'format','content':Mt(_0x106db2,'*Set\x20link:*\x20%0','\x22'+_0xe0deb+'\x22')};}return'unlink'==_0x302fc6['commandName']?{'type':'format','content':Mt(_0x106db2,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x16a669{afterInit(){const _0x248814=this['editor'],_0xa6a4cf=_0x248814['locale'];if(!_0x248814['plugins']['has']('LegacyListEditing'))return;const _0x2e5d1f=_0x248814['plugins']['get']('TrackChangesEditing'),_0x188955=_0x248814['plugins']['has']('LegacyTodoListEditing');function _0x9329ab(_0x1b45b5){return()=>{const _0x2d904c=_0x248814['model']['document']['selection'],_0x637c85=_0x248814['commands']['get'](_0x1b45b5);if(_0x637c85['value'])return void _0x248814['execute']('paragraph',{});const _0x516a56=_0x1b45b5['slice'](0x0,-0x4),_0x2a7419=function(_0x5d306f,_0x296137,_0x9175f8){let _0x5984e8=Array['from'](_0x5d306f)['filter'](_0x4049ab=>function(_0x4f74fa,_0x2283d3){return _0x2283d3['checkChild'](_0x4f74fa['parent'],'listItem')&&!_0x2283d3['isObject'](_0x4f74fa);}(_0x4049ab,_0x9175f8));_0x5984e8=_0x5984e8['filter'](_0x21ed1f=>!_0x21ed1f['is']('element','listItem')||_0x21ed1f['getAttribute']('listType')!=_0x296137);const _0x2115cd=new Set();for(const _0x4d4ccf of _0x5984e8)_0x4d4ccf['is']('element','listItem')?_0x2115cd['add'](Le(_0x4d4ccf)):_0x2115cd['add'](_0x4d4ccf);return Array['from'](_0x2115cd);}(_0x2d904c['getSelectedBlocks'](),_0x516a56,_0x248814['model']['schema']);_0x248814['model']['change'](()=>{for(const _0x5781d5 of _0x2a7419)_0x2e5d1f['markBlockFormat'](_0x5781d5,{'commandName':_0x1b45b5,'commandParams':[{'forceValue':!_0x637c85['value']}],'formatGroupId':'blockName'},Ie(_0x5781d5));});};}function _0x123c3d(_0x42c89f){return()=>{const _0x38d6fa=function(_0x2bd11d){let _0x57dafd=Array['from'](_0x2bd11d);const _0x510cc4=_0x57dafd['findIndex'](_0x514a7b=>'listItem'!=_0x514a7b['name']);return _0x510cc4>-0x1&&(_0x57dafd=_0x57dafd['slice'](0x0,_0x510cc4)),_0x57dafd;}(_0x248814['model']['document']['selection']['getSelectedBlocks']()),_0x42cf8e=_0x248814['model']['createRange'](_0x248814['model']['createPositionAt'](_0x38d6fa[0x0],'before'),_0x248814['model']['createPositionAt'](_0x38d6fa[_0x38d6fa['length']-0x1],'end'));_0x248814['model']['change'](()=>{_0x2e5d1f['markBlockFormat'](_0x42cf8e,{'commandName':_0x42c89f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2acfeb){const _0x7399cd=new Set();for(const _0x5c628d of _0x2acfeb){let _0x267723=_0x5c628d['nextSibling'];for(;_0x267723&&_0x267723['getAttribute']('listIndent')>_0x5c628d['getAttribute']('listIndent');)_0x7399cd['add'](_0x267723),_0x267723=_0x267723['nextSibling'];}return Array['from'](_0x7399cd);}(_0x38d6fa));});};}_0x2e5d1f['enableCommand']('numberedList',_0x9329ab('numberedList')),_0x2e5d1f['enableCommand']('bulletedList',_0x9329ab('bulletedList')),_0x188955&&_0x2e5d1f['enableCommand']('todoList',_0x9329ab('todoList')),_0x2e5d1f['enableCommand']('indentList',_0x123c3d('indentList')),_0x2e5d1f['enableCommand']('outdentList',_0x123c3d('outdentList')),_0x188955&&_0x2e5d1f['enableCommand']('checkTodoList',()=>{const _0x5d86bd=_0x248814['commands']['get']('checkTodoList'),_0xe1f028=Array['from'](_0x5d86bd['_selectedElements']);_0xe1f028['filter'](_0x4b3aba=>_0x4b3aba['getAttribute']('todoListChecked')!=_0x5d86bd['value']),_0x248814['model']['change'](()=>{for(const _0x508a98 of _0xe1f028)_0x2e5d1f['markBlockFormat'](_0x508a98,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d86bd['value']}]});});}),_0x2e5d1f['descriptionFactory']['registerElementLabel']('listItem',_0x5c0fc0=>Mt(_0xa6a4cf,'ELEMENT_LIST_ITEM',_0x5c0fc0)),_0x2e5d1f['descriptionFactory']['registerDescriptionCallback'](_0x24108c=>{if('formatBlock'!=_0x24108c['type']&&'formatInline'!=_0x24108c['type'])return;const {data:_0x6fd739}=_0x24108c;if(_0x6fd739){if('numberedList'==_0x6fd739['commandName']||'bulletedList'==_0x6fd739['commandName']||'todoList'==_0x6fd739['commandName'])switch(_0x6fd739['commandName']['replace']('List','')){case'bulleted':return _0x3f7eca(Mt(_0xa6a4cf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f7eca(Mt(_0xa6a4cf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f7eca(Mt(_0xa6a4cf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x6fd739['commandName'])return{'type':'format','content':Mt(_0xa6a4cf,'*Indent:*\x20%0',Mt(_0xa6a4cf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x6fd739['commandName'])return{'type':'format','content':Mt(_0xa6a4cf,'*Outdent:*\x20%0',Mt(_0xa6a4cf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x6fd739['commandName'])return _0x6fd739['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xa6a4cf,'*Check\x20item*')}:{'type':'format','content':Mt(_0xa6a4cf,'*Uncheck\x20item*')};}function _0x3f7eca(_0x1d6ef1){return{'type':'format','content':Mt(_0xa6a4cf,'*Change\x20to:*\x20%0',_0x1d6ef1)};}});}};function Le(_0x274c38){const _0x5f11b6=_0x274c38['getAttribute']('listIndent');if(0x0==_0x5f11b6)return _0x274c38;let _0x371c66=_0x274c38;for(;_0x274c38['previousSibling']&&_0x274c38['previousSibling']['is']('element','listItem');){const _0x200dd8=_0x274c38['previousSibling']['getAttribute']('listIndent');if(_0x200dd8==_0x5f11b6)_0x371c66=_0x274c38['previousSibling'];else{if(_0x200dd8<_0x5f11b6)break;}_0x274c38=_0x274c38['previousSibling'];}return _0x371c66;}function Ie(_0x88742b){const _0x3974f5=[];if(_0x88742b['is']('element','listItem')&&_0x88742b['getAttribute']('listIndent')>0x0){let _0x42fcc9=_0x88742b['nextSibling'];for(;_0x42fcc9&&'listItem'==_0x42fcc9['name']&&_0x42fcc9['getAttribute']('listIndent')==_0x88742b['getAttribute']('listIndent');)_0x3974f5['push'](_0x42fcc9),_0x42fcc9=_0x42fcc9['nextSibling'];}return _0x3974f5;}var Ae=class extends _0x16a669{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x10ed0=this['editor']['config']['get']('list.properties'),_0x293f6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x10ed0['styles']&&_0x293f6c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x10ed0['reversed']&&_0x293f6c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x10ed0['startIndex']&&_0x293f6c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x293f6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x8ba115,_0x32a6ac={}){const _0x11f30a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x489c48=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11f30a['markMultiRangeBlockFormat'](_0x489c48,{'commandName':'listStyle','commandParams':[{'type':_0x32a6ac['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0xf35e9,_0x4aabfc={}){const _0x5e9116=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0241=this['_getSuggestionBlocks'](_0x4f7fb0=>_0x4f7fb0['is']('element','listItem')&&'numbered'===_0x4f7fb0['getAttribute']('listType'));if(_0x5f0241['length']<0x1)return;const _0x9da2f6=_0x5f0241['map'](_0x291f7e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x291f7e,'before'),this['editor']['model']['createPositionAt'](_0x291f7e,0x0)));this['editor']['model']['change'](()=>{_0x5e9116['markMultiRangeBlockFormat'](_0x9da2f6,{'commandName':'listReversed','commandParams':[{'reversed':_0x4aabfc['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x32ccb0,_0x58067e={}){const _0x3d1b58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3164e9=this['_getSuggestionBlocks'](_0x29dea3=>_0x29dea3['is']('element','listItem')&&'numbered'===_0x29dea3['getAttribute']('listType'));if(_0x3164e9['length']<0x1)return;const _0x3723ef=_0x3164e9['map'](_0x370fc7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x370fc7,'before'),this['editor']['model']['createPositionAt'](_0x370fc7,0x0)));this['editor']['model']['change'](()=>{_0x3d1b58['markMultiRangeBlockFormat'](_0x3723ef,{'commandName':'listStart','commandParams':[{'startIndex':_0x58067e['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x32737a){if('formatBlock'!=_0x32737a['type']&&'formatInline'!=_0x32737a['type'])return;const _0x378a02=this['editor']['locale'],{data:_0x53079d}=_0x32737a;if(!_0x53079d)return;let _0x5664cb,_0x3730fb;switch(_0x53079d['commandName']){case'listStyle':_0x5664cb='*Change\x20to:*\x20%0',_0x3730fb={'type':'format','content':Mt(_0x378a02,_0x5664cb,Mt(_0x378a02,this['_getTranslationKeyForListStyle'](_0x53079d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5664cb=_0x53079d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3730fb={'type':'format','content':Mt(_0x378a02,_0x5664cb)};break;case'listStart':_0x5664cb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3730fb={'type':'format','content':Mt(_0x378a02,_0x5664cb,_0x53079d['commandParams'][0x0]['startIndex'])};}return _0x3730fb;}_getSuggestionBlocksForListStyle(){const _0x2597dc=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bd132=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3bd132[0x0]?.['is']('element','listItem')&&_0x3bd132['unshift'](..._0x2597dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3bd132[_0x3bd132['length']-0x1]?.['is']('element','listItem')&&_0x3bd132['push'](..._0x2597dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3bd132=[...new Set(_0x3bd132)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3bd132=_0x3bd132['filter'](_0xff4776=>_0xff4776['is']('element','listItem'))),_0x3bd132;}_getSuggestionBlocks(_0x39dacd){const _0x3d0e40=this['editor']['plugins']['get']('LegacyListUtils');let _0x260d14=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x39dacd)['map'](_0x2f5ad9=>{const _0x4a66fa=this['editor']['model']['createPositionAt'](_0x2f5ad9,0x0);return[..._0x3d0e40['getSiblingNodes'](_0x4a66fa,'backward'),..._0x3d0e40['getSiblingNodes'](_0x4a66fa,'forward')];})['flat']();return _0x260d14=[...new Set(_0x260d14)],_0x260d14;}_getTranslationKeyForListStyle(_0x185ee0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x185ee0)||'default')['toUpperCase']()+'_LIST_'+_0x185ee0['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x16a669{afterInit(){const _0x121421=this['editor'];if(!_0x121421['plugins']['has']('MediaEmbedEditing'))return;const _0xbf7099=_0x121421['plugins']['get']('TrackChangesEditing'),_0x4307db=_0x121421['locale'];_0xbf7099['enableCommand']('mediaEmbed'),_0xbf7099['descriptionFactory']['registerElementLabel']('media',_0x377c0f=>Mt(_0x4307db,'ELEMENT_MEDIA',_0x377c0f)),_0x121421['plugins']['has']('MediaEmbedResizeEditing')&&(_0xbf7099['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0xbf7099['descriptionFactory']['registerDescriptionCallback'](_0x42f8b2=>{if('attribute'!=_0x42f8b2['type'])return;const {data:_0x501494}=_0x42f8b2;if(!_0x501494||'resizedWidth'!=_0x501494['key'])return;const _0x2f60a9=_0x42f8b2['getContainedElement']();if(!_0x2f60a9||!_0x2f60a9['is']('element','media'))return;const _0x5c6387=Mt(_0x4307db,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x4307db,'*Set\x20format:*\x20%0',_0x5c6387)};}));}},ke=class extends _0x16a669{afterInit(){const _0x4e1e4c=this['editor'];if(!_0x4e1e4c['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3c0bdb=_0x4e1e4c['plugins']['get']('TrackChangesEditing'),_0x58caf6=_0x4e1e4c['locale'],_0x196317=_0x4e1e4c['plugins']['get']('MediaEmbedStyleEditing'),_0xe86754={};for(const _0x57f9ce of _0x196317['normalizedStyles'])_0xe86754[_0x57f9ce['name']]=_0x57f9ce['title']['toLowerCase']();const _0x327bc4=_0x196317['normalizedStyles']['find'](_0x3e0fe7=>_0x3e0fe7['isDefault'])?.['name'];_0x3c0bdb['enableCommand']('mediaStyle',(_0x539977,_0x11b36b)=>{const _0x56eb58=_0x4e1e4c['plugins']['get']('Users')['me'],_0x22f296=_0x4e1e4c['commands']['get']('mediaStyle'),_0x32b2c1=function(_0x1c8f33){const _0x26d780=_0x1c8f33['model']['document']['selection']['getSelectedElement']();return _0x26d780&&_0x26d780['is']('element','media')?_0x26d780:null;}(_0x4e1e4c);if(!_0x32b2c1)return;const _0x516b4b=_0x4e1e4c['model']['createRangeOn'](_0x32b2c1);let _0x40e82d=_0x22f296['value'];if(_0x40e82d==_0x11b36b['value'])return;const _0x132ae1={'commandName':'mediaStyle','commandParams':[_0x11b36b],'formatGroupId':_0x511020()};_0x4e1e4c['model']['change'](()=>{_0x3c0bdb['getSuggestions']()['filter'](_0xe136b7=>_0xe136b7['isInContent']&&_0x56eb58==_0xe136b7['author']&&'formatBlock'==_0xe136b7['type']&&'mediaStylePostApply'==_0xe136b7['subType']&&_0xe136b7['getFirstRange']()['isEqual'](_0x516b4b))['forEach'](_0x121f7c=>_0x3c0bdb['discardSuggestion'](_0x121f7c['head'])),_0x22f296['refresh'](),_0x40e82d=_0x22f296['value'],_0x40e82d!=_0x11b36b['value']&&_0x3c0bdb['markBlockFormat'](_0x32b2c1,{..._0x132ae1,'commandReversedParams':[{'value':'string'==typeof _0x40e82d?_0x40e82d:null}]},[],'mediaStylePostApply');});}),_0x3c0bdb['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3c0bdb['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4240d8,_0x5ed2b8)=>{_0x3c0bdb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4240d8,{'commandName':_0x5ed2b8['commandName'],'commandParams':_0x5ed2b8['commandReversedParams']});}),_0x3c0bdb['descriptionFactory']['registerDescriptionCallback'](_0x56b7d0=>{if('formatBlock'!=_0x56b7d0['type'])return;const {data:_0x267805}=_0x56b7d0;if(!_0x267805||'mediaStyle'!=_0x267805['commandName'])return;const _0x33ffdd=_0x267805['commandParams'][0x0]['value']||_0x327bc4;if(!_0x33ffdd)return;const _0x4b8f64=_0xe86754[_0x33ffdd]||_0x33ffdd;return{'type':'format','content':Mt(_0x58caf6,'*Format:*\x20%0',_0x4b8f64)};});}},Ce=class extends _0x16a669{afterInit(){const _0x3eb1c5=this['editor'];_0x3eb1c5['plugins']['has']('MentionEditing')&&_0x3eb1c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x16a669{afterInit(){const _0x1a09be=this['editor'];if(!_0x1a09be['plugins']['has']('MergeFieldsEditing'))return;const _0x3c99a8=_0x1a09be['plugins']['get']('TrackChangesEditing'),_0x325b97=_0x1a09be['locale'];_0x3c99a8['enableCommand']('insertMergeField'),_0x3c99a8['enableCommand']('insertMergeFieldBlock'),_0x3c99a8['enableCommand']('insertMergeFieldImage'),_0x3c99a8['descriptionFactory']['registerElementLabel']('mergeField',_0x21d082=>Mt(_0x325b97,'ELEMENT_MERGE_FIELD',_0x21d082)),_0x3c99a8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3f0c07=>Mt(_0x325b97,'ELEMENT_MERGE_FIELD',_0x3f0c07)),_0x3c99a8['descriptionFactory']['registerDescriptionCallback'](_0x2f5ba0=>{if('insertion'!=_0x2f5ba0['type']&&'deletion'!=_0x2f5ba0['type'])return;const _0x11555c=_0x2f5ba0['getContainedElement']();if(null==_0x11555c)return;const _0x48a753=_0x1a09be['plugins']['get']('MergeFieldsEditing');let _0x38795d;switch(_0x48a753['getMergeFieldType'](_0x11555c)){case null:return;case'image':{const _0x361178=_0x48a753['unwrapAffixes'](_0x11555c['getAttribute']('src'));_0x38795d=_0x48a753['getLabel'](_0x361178)||_0x361178;break;}default:{const _0x54eeec=_0x11555c['getAttribute']('id');_0x38795d=_0x48a753['getLabel'](_0x54eeec)||_0x54eeec;break;}}return'insertion'==_0x2f5ba0['type']?{'type':'insertion','content':Mt(_0x325b97,'*Insert:*\x20%0','\x22'+_0x38795d+'\x22\x20'+Mt(_0x325b97,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x325b97,'*Remove:*\x20%0','\x22'+_0x38795d+'\x22\x20'+Mt(_0x325b97,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x16a669{afterInit(){const _0x22efcb=this['editor'],_0x3b6f28=_0x22efcb['plugins']['get']('TrackChangesEditing');_0x22efcb['plugins']['has']('MultiLevelList')&&(_0x3b6f28['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b6f28['descriptionFactory']['registerDescriptionCallback'](_0x4eb662=>this['handleDescriptions'](_0x4eb662)));}handleDescriptions(_0x319a39){const _0x4bb427=this['editor']['locale'],{data:_0x4efc73}=_0x319a39,_0x35e8ad={'type':'format','content':''};if(_0x4efc73&&'listMarkerStyle'==_0x4efc73['key']){if(!_0x4efc73['oldValue'])return{'type':'format','content':Mt(_0x4bb427,'*Set\x20format:*\x20%0',Mt(_0x4bb427,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4efc73['newValue']+')'};if(!_0x4efc73['newValue']){let _0x55426d=_0x319a39['head'];for(;_0x55426d;){if(_0x55426d['data']&&'listType'==_0x55426d['data']['key']&&_0x55426d['data']['newValue'])return _0x35e8ad;_0x55426d=_0x55426d['next'];}return{'type':'format','content':Mt(_0x4bb427,'*Remove\x20format:*\x20%0',Mt(_0x4bb427,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4efc73['oldValue']+')'};}}}},Ne=class extends _0x16a669{afterInit(){const _0x466063=this['editor'];if(!_0x466063['plugins']['has']('PageBreakEditing'))return;_0x466063['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x71678=_0x466063['plugins']['get']('TrackChangesEditing'),_0x22ee10=_0x466063['locale'];_0x71678['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f9e81=>Mt(_0x22ee10,'ELEMENT_PAGE_BREAK',_0x1f9e81));}},Se=class extends _0x16a669{afterInit(){const _0x3569fd=this['editor'];if(!_0x3569fd['plugins']['has']('Paragraph'))return;const _0x29428f=_0x3569fd['locale'],_0x2e472e=_0x3569fd['plugins']['get']('TrackChangesEditing');_0x2e472e['descriptionFactory']['registerElementLabel']('paragraph',_0x1cbad2=>Mt(_0x29428f,'ELEMENT_PARAGRAPH',_0x1cbad2)),_0x2e472e['enableDefaultAttributesIntegration']('paragraph'),_0x2e472e['enableCommand']('insertParagraph');const _0x5dab6f=_0x2e472e['descriptionFactory'];_0x5dab6f['registerDescriptionCallback'](_0x253345=>{if('insertion'!==_0x253345['type'])return;const {start:_0x1c08ab,end:_0x1a77ac}=_0x253345['getFirstRange']();if(!_0x1c08ab['isTouching'](_0x1a77ac)||!_0x1c08ab['nodeAfter'])return;const _0x25bb09=_0x3569fd['model']['schema'],_0x2b18bf=_0x1c08ab['nodeAfter'];return _0x25bb09['isBlock'](_0x2b18bf)&&!_0x25bb09['isLimit'](_0x2b18bf)&&_0x25bb09['checkChild'](_0x2b18bf,'$text')?{'type':'insertion','content':Mt(_0x29428f,'*Insert:*\x20%0',_0x5dab6f['getItemLabel'](_0x2b18bf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3f0abd=this['editor'],_0x5e120f=_0x3f0abd['locale'];_0x3f0abd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb34f50=>{if('formatBlock'!=_0xb34f50['type'])return;const {data:_0x22d7f7}=_0xb34f50;return _0x22d7f7&&'paragraph'==_0x22d7f7['commandName']?{'type':'format','content':Mt(_0x5e120f,'*Change\x20to:*\x20%0',Mt(_0x5e120f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x16a669{afterInit(){const _0x1ea41c=this['editor'];_0x1ea41c['commands']['get']('replaceSource')&&_0x1ea41c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x16a669{afterInit(){const _0x1ef942=this['editor'];_0x1ef942['plugins']['has']('RemoveFormatEditing')&&(_0x1ef942['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x1a10d9=this['editor'];_0x1a10d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3396e9=>{if('formatBlock'!=_0x3396e9['type']&&'formatInline'!=_0x3396e9['type'])return;const {data:_0x2f51df}=_0x3396e9;return _0x2f51df&&'removeFormat'==_0x2f51df['commandName']?{'type':'format','content':Mt(_0x1a10d9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x16a669{afterInit(){const _0x58d924=this['editor'];if(!_0x58d924['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d54a1=_0x58d924['plugins']['get']('TrackChangesEditing');_0x4d54a1['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d54a1['enableCommand']('goToNextRestrictedEditingException');const _0xc8077=_0x58d924['plugins']['get']('RestrictedEditingModeEditing');_0xc8077['enableCommand']('trackChanges'),_0xc8077['enableCommand']('acceptSuggestion'),_0xc8077['enableCommand']('discardSuggestion'),_0xc8077['enableCommand']('acceptAllSuggestions'),_0xc8077['enableCommand']('discardAllSuggestions'),_0xc8077['enableCommand']('acceptSelectedSuggestions'),_0xc8077['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x16a669{afterInit(){const _0xf46223=this['editor'];if(!_0xf46223['plugins']['has']('ShiftEnter'))return;const _0x1a9927=_0xf46223['plugins']['get']('TrackChangesEditing');_0x1a9927['enableCommand']('shiftEnter'),_0x1a9927['descriptionFactory']['registerElementLabel']('softBreak',_0x144d23=>Mt(_0xf46223['locale'],'ELEMENT_LINE_BREAK',_0x144d23));}};function Be(_0x7b01dd,_0x430982,_0x54e8d2){const _0x40ff78=[];for(const _0x1a79cc of _0x430982['getItems']())_0x1a79cc['hasAttribute'](_0x7b01dd)&&_0x40ff78['push'](_0x54e8d2['createRangeOn'](_0x1a79cc));return _0x40ff78;}var ve=class extends _0x16a669{afterInit(){const _0x45458c=this['editor'],_0x1b5533=_0x45458c['plugins']['get']('TrackChangesEditing');_0x45458c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1b5533['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x118d31=this['editor'],_0x26ca33=_0x118d31['model'],_0xc76af7=_0x118d31['locale'],_0x6176d9=_0x118d31['plugins']['get']('TrackChangesEditing'),_0x2cb23f='restrictedEditingException',_0x26a28=_0x118d31['commands']['get'](_0x2cb23f);_0x6176d9['enableCommand'](_0x2cb23f,(_0x5bcff2,_0x2ec858={})=>{const _0x106822=_0x26ca33['document']['selection'];if(_0x106822['isCollapsed'])return void _0x5bcff2(_0x2ec858);const _0x298f5a=void 0x0!==_0x2ec858['forceValue']?_0x2ec858['forceValue']:!_0x26a28['value'];_0x26ca33['change'](()=>{const _0xec87b=Array['from'](_0x106822['getRanges']());for(const _0x459934 of _0xec87b){const _0x2fe1ed=_0x298f5a?[_0x459934]:Be(_0x2cb23f,_0x459934,_0x26ca33);for(const _0x14e738 of _0x2fe1ed)_0x6176d9['markInlineFormat'](_0x14e738,{'commandName':_0x2cb23f,'commandParams':[{'forceValue':_0x298f5a}]});}});}),_0x6176d9['descriptionFactory']['registerDescriptionCallback'](_0x452d8d=>{if('formatBlock'!=_0x452d8d['type']&&'formatInline'!=_0x452d8d['type'])return;const {data:_0x37667f}=_0x452d8d;return _0x37667f&&_0x37667f['commandName']==_0x2cb23f?_0x37667f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xc76af7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xc76af7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x58c3e1=this['editor'],_0x1ae1ff=_0x58c3e1['locale'],_0x5743bb=_0x58c3e1['plugins']['get']('TrackChangesEditing'),_0x26fc00='restrictedEditingExceptionBlock',_0x435bf2=this['editor']['commands']['get'](_0x26fc00);_0x5743bb['enableCommand'](_0x26fc00,(_0x2fd7ad,_0x55ef23={})=>{const _0x482d1c=this['editor']['model']['document']['selection'],_0x121283=_0x55ef23&&void 0x0!==_0x55ef23['forceValue']?_0x55ef23['forceValue']:!_0x435bf2['value'];let _0x41922f=[];if(_0x121283){const _0x5b873f=Array['from'](_0x482d1c['getSelectedBlocks']())['filter'](_0x1433fa=>function(_0x42cbc0){return!!_0x42cbc0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1433fa)||function(_0x1a5170,_0x740556){const _0xf79fdb=_0x740556['createContext'](_0x1a5170['parent']);return!!_0x740556['checkChild'](_0xf79fdb,'restrictedEditingException')&&!!_0x740556['checkChild'](_0xf79fdb['push']('restrictedEditingException'),_0x1a5170);}(_0x1433fa,this['editor']['model']['schema']));_0x41922f=bt(_0x5b873f,_0x58c3e1['model']);}else{const _0x5a2be7=Array['from'](_0x482d1c['getSelectedBlocks']())['map'](_0xa6a1be=>function(_0x4e460b){let _0x3929bb=_0x4e460b;for(;_0x3929bb['parent'];){if('restrictedEditingException'==_0x3929bb['parent']['name'])return _0x3929bb;_0x3929bb=_0x3929bb['parent'];}return null;}(_0xa6a1be))['filter'](_0x27be36=>!!_0x27be36);_0x41922f=bt(_0x5a2be7,_0x58c3e1['model']);}_0x58c3e1['model']['change'](()=>{for(const _0x297c8c of _0x41922f)_0x5743bb['markBlockFormat'](_0x297c8c,{'commandName':_0x26fc00,'commandParams':[{'forceValue':_0x121283}]});});}),_0x5743bb['descriptionFactory']['registerDescriptionCallback'](_0x294572=>{const {data:_0x1eacc3}=_0x294572;if(_0x1eacc3&&_0x1eacc3['commandName']==_0x26fc00)return _0x1eacc3['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1ae1ff,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x1ae1ff,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x16a669{afterInit(){const _0x3d618c=this['editor'];_0x3d618c['plugins']['has']('Style')&&_0x3d618c['plugins']['has']('DataSchema')&&(_0x3d618c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x135e30=this['editor'],_0x3ec0d7=_0x135e30['locale'];_0x135e30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x154caa=>{if('formatBlock'!=_0x154caa['type']&&'formatInline'!=_0x154caa['type'])return;const {data:_0x2d4b88}=_0x154caa;return _0x2d4b88&&'style'===_0x2d4b88['commandName']?_0x2d4b88['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3ec0d7,'*Set\x20format:*\x20%0',_0x2d4b88['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x3ec0d7,'*Remove\x20format:*\x20%0',_0x2d4b88['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x16a669{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x4f05ce){super(_0x4f05ce),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x56bb62=this['editor'],_0x197df2=_0x56bb62['model']['document']['selection'];if(!_0x56bb62['plugins']['has']('TableEditing'))return;const _0x4d1641=_0x56bb62['locale'],_0x24f676=_0x56bb62['plugins']['get']('TrackChangesEditing'),_0x28e107=_0x56bb62['plugins']['get']('TableUtils');_0x24f676['descriptionFactory']['registerElementLabel']('table',_0x58e784=>Mt(_0x4d1641,'ELEMENT_TABLE',_0x58e784)),this['_setupColumnsRowsFixing'](),_0x24f676['enableCommand']('insertTable'),_0x24f676['enableCommand']('selectTableRow'),_0x24f676['enableCommand']('selectTableColumn');for(const _0x2c7d0f of['insertTableRowAbove','insertTableRowBelow']){const _0x2078b8=_0x56bb62['commands']['get'](_0x2c7d0f);_0x24f676['enableCommand'](_0x2c7d0f,_0x5be971=>{_0x56bb62['model']['change'](_0x9eca18=>{_0x5be971();const _0x5ec41f='above'===_0x2078b8['order'],_0x37b25d=_0x28e107['getSelectionAffectedTableCells'](_0x197df2),_0x539ecb=_0x28e107['getRowIndexes'](_0x37b25d),_0x552128=_0x5ec41f?_0x539ecb['first']-0x1:_0x539ecb['last']+0x1,_0x25869b=_0x37b25d[0x0]['findAncestor']('table'),_0x1920ee=_0x28e107['createTableWalker'](_0x25869b,{'startRow':_0x552128,'endRow':_0x552128}),_0x17ff8b=Array['from'](_0x1920ee)['map'](_0x4f6450=>_0x9eca18['createRangeOn'](_0x4f6450['cell']));_0x24f676['markMultiRangeInsertion'](_0x17ff8b,'tableRow');});});}for(const _0x20595b of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c426d=_0x56bb62['commands']['get'](_0x20595b);_0x24f676['enableCommand'](_0x20595b,_0x46ac4e=>{_0x56bb62['model']['change'](_0x381603=>{_0x46ac4e();const _0x3264dd='left'===_0x1c426d['order'],_0x1736f3=_0x28e107['getSelectionAffectedTableCells'](_0x197df2),_0x2cc07c=_0x28e107['getColumnIndexes'](_0x1736f3),_0x51b4c2=_0x3264dd?_0x2cc07c['first']-0x1:_0x2cc07c['last']+0x1,_0x5f24a1=_0x1736f3[0x0]['findAncestor']('table'),_0xad889d=_0x28e107['createTableWalker'](_0x5f24a1,{'startRow':0x0,'column':_0x51b4c2,'includeAllSlots':!0x1}),_0x32c684=Array['from'](_0xad889d)['map'](_0x1e04f1=>_0x381603['createRangeOn'](_0x1e04f1['cell']));_0x24f676['markMultiRangeInsertion'](_0x32c684,'tableColumn');});});}for(const _0x520123 of['removeTableRow','removeTableColumn']){const _0x4e5b64=_0x520123['substr'](0xb),_0x32b4b5=_0x4e5b64['toLowerCase'](),_0x522a53=_0x32b4b5['substr'](0x0,0x3)+'span',_0x12d646='table'+_0x4e5b64,_0x2f1bc9='min'+_0x4e5b64,_0x425edd='max'+_0x4e5b64;_0x24f676['enableCommand'](_0x520123,()=>{_0x56bb62['model']['change'](_0x1aad5c=>{const _0x439326=_0x28e107['getSelectionAffectedTableCells'](_0x197df2),_0x366abd=_0x439326[0x0]['findAncestor']('table');let _0x301d47;if('removeTableRow'==_0x520123){const _0x5a50fc=_0x28e107['getRowIndexes'](_0x439326);_0x301d47={'startRow':_0x5a50fc['first'],'endRow':_0x5a50fc['last'],'includeAllSlots':!0x0};}else{const _0x175316=_0x28e107['getColumnIndexes'](_0x439326);_0x301d47={'startColumn':_0x175316['first'],'endColumn':_0x175316['last'],'includeAllSlots':!0x0};}const _0x18d1df=_0x28e107['createTableWalker'](_0x366abd,_0x301d47),_0x3aebad=Array['from'](_0x18d1df)['map'](({cell:_0x4a0fbb})=>_0x4a0fbb),_0x32aebe=Pe(_0x3aebad['filter'](_0xe297cf=>_0xe297cf['hasAttribute'](_0x522a53))),_0x3719b8=Pe(_0x3aebad['filter'](_0x259c4b=>!_0x259c4b['hasAttribute'](_0x522a53)))['map'](_0x112360=>_0x1aad5c['createRangeOn'](_0x112360)),_0x596e80=_0x24f676['markMultiRangeDeletion'](_0x3719b8,_0x12d646);if(_0x596e80&&('tableRow'==_0x596e80['subType']||'tableColumn'==_0x596e80['subType'])){const _0x2e005c=this['_getSuggestionCoords'](_0x596e80);for(const _0x1d4bde of _0x32aebe){const _0x18f21e=_0x1aad5c['createRangeOn'](_0x1d4bde),_0x18fb49=_0x28e107['getCellLocation'](_0x1d4bde),_0x2fb5a5=_0x1d4bde['getAttribute'](_0x522a53)-0x1,_0xae8b6b=_0x2e005c[_0x2f1bc9],_0x2c07e4=_0x2e005c[_0x425edd];_0xae8b6b<=_0x18fb49[_0x32b4b5]&&_0x18fb49[_0x32b4b5]+_0x2fb5a5<=_0x2c07e4&&_0x596e80['addRange'](_0x18f21e);}}});});}function _0x399e4a(_0x45797c){const _0x54202a=Array['from'](_0x197df2['getRanges']())['map'](_0x592356=>rt['fromRange'](_0x592356));_0x56bb62['model']['change'](_0x44066b=>{const _0x2e3722=_0x44066b['batch'];_0x45797c=_0x45797c['filter'](_0x488f0f=>'$graveyard'!=_0x488f0f['root']['rootName']),_0x44066b['setSelection'](_0x45797c),_0x56bb62['commands']['get']('removeTableRow')['refresh'](),_0x56bb62['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x56bb62['model']['enqueueChange'](()=>{_0x56bb62['model']['enqueueChange'](_0x2e3722,_0x3ebf86=>{const _0x1defc2=_0x54202a['filter'](_0x37e921=>'$graveyard'!=_0x37e921['root']['rootName']);_0x1defc2['length']>0x0&&_0x3ebf86['setSelection'](_0x1defc2);for(const _0x498d16 of _0x54202a)_0x498d16['detach']();});});});}function _0x10b736(_0x2c254d){_0x56bb62['model']['change'](_0x2b3910=>{const _0x23b0db=Array['from'](_0x197df2['getRanges']())['map'](_0x296d8e=>rt['fromRange'](_0x296d8e)),_0x2df209=[];for(const _0x43129b of _0x2c254d)for(const _0x5a60ae of _0x43129b['getItems']({'shallow':!0x0}))_0x2df209['push'](_0x5a60ae);for(const _0x1bb9d9 of _0x2df209)'$graveyard'!=_0x1bb9d9['root']['rootName']&&(_0x2b3910['setSelection'](_0x2b3910['createPositionAt'](_0x1bb9d9,0x0)),_0x56bb62['commands']['get']('removeTableColumn')['refresh'](),_0x56bb62['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x430517=_0x23b0db['filter'](_0x7c0b73=>'$graveyard'!=_0x7c0b73['root']['rootName']);_0x430517['length']>0x0&&_0x2b3910['setSelection'](_0x430517);for(const _0x378429 of _0x23b0db)_0x378429['detach']();});}function _0xb9db92(_0x2df523,_0x13cf3c){return _0x13cf3c['every'](_0x4c5dae=>_0x2df523['some'](_0x5e5442=>_0x5e5442['end']['isEqual'](_0x4c5dae['start'])||_0x4c5dae['end']['isEqual'](_0x5e5442['start'])));}function _0x23f6e2(_0x293497,_0xeed290){return!_0x293497['some'](_0x201648=>_0xeed290['some'](_0x9e48b5=>_0x201648['isIntersecting'](_0x9e48b5)))&&_0x293497['some'](_0x5d180c=>_0xeed290['some'](_0x126735=>_0x5d180c['end']['isTouching'](_0x126735['start'])));}_0x24f676['descriptionFactory']['registerDescriptionCallback'](_0x360057=>{if('insertion'!=_0x360057['type']&&'deletion'!=_0x360057['type'])return;const _0x3b5e12=_0x360057['getContainedElement']();if(null!=_0x3b5e12&&_0x3b5e12['is']('element','table')){if('insertion'==_0x360057['type']){const _0x46d4d7=_0x360057['getItems']()['filter'](_0x20d80f=>_0x20d80f['is']('$textProxy'))['map'](_0x3c4bc9=>_0x3c4bc9['data']);if(_0x46d4d7['length'])return{'type':'insertion','content':Mt(_0x4d1641,'*Insert:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46d4d7['join']('\x20')+'\x22'))};}if('deletion'==_0x360057['type']){const _0x4387c0=_0x360057['getItems']()['filter'](_0x3acde8=>_0x3acde8['is']('$textProxy'))['map'](_0x11f66f=>_0x11f66f['data']);if(_0x4387c0['length'])return{'type':'deletion','content':Mt(_0x4d1641,'*Remove:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4387c0['join']('\x20')+'\x22'))};}}}),_0x24f676['descriptionFactory']['registerDescriptionCallback'](_0x35a35a=>{if('tableRow'==_0x35a35a['subType']){const _0x2843c7=_0x35a35a['getItems']()['filter'](_0x501c15=>_0x501c15['is']('$textProxy'))['map'](_0x1d2743=>_0x1d2743['data']),_0x77ddff=this['_getSuggestionCoords'](_0x35a35a),_0x1fd4d9=_0x77ddff['maxRow']-_0x77ddff['minRow']+0x1;if('insertion'==_0x35a35a['type'])return _0x2843c7['length']?{'type':'insertion','content':Mt(_0x4d1641,'*Insert:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fd4d9,'\x22'+_0x2843c7['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x4d1641,'*Insert:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_ROW',_0x1fd4d9))};if('deletion'==_0x35a35a['type'])return _0x2843c7['length']?{'type':'deletion','content':Mt(_0x4d1641,'*Remove:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fd4d9,'\x22'+_0x2843c7['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x4d1641,'*Remove:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_ROW',_0x1fd4d9))};}if('tableColumn'==_0x35a35a['subType']){const _0x1ce2eb=_0x35a35a['getItems']()['filter'](_0x4802fd=>_0x4802fd['is']('$textProxy'))['map'](_0x101c2b=>_0x101c2b['data']),_0x1f7151=this['_getSuggestionCoords'](_0x35a35a),_0xd39718=_0x1f7151['maxColumn']-_0x1f7151['minColumn']+0x1;if('insertion'==_0x35a35a['type'])return _0x1ce2eb['length']?{'type':'insertion','content':Mt(_0x4d1641,'*Insert:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd39718,'\x22'+_0x1ce2eb['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x4d1641,'*Insert:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_COLUMN',_0xd39718))};if('deletion'==_0x35a35a['type'])return _0x1ce2eb['length']?{'type':'deletion','content':Mt(_0x4d1641,'*Remove:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xd39718,'\x22'+_0x1ce2eb['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x4d1641,'*Remove:*\x20%0',Mt(_0x4d1641,'ELEMENT_TABLE_COLUMN',_0xd39718))};}}),_0x24f676['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x399e4a),_0x24f676['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x399e4a),_0x24f676['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x10b736),_0x24f676['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x10b736),_0x24f676['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xb9db92),_0x24f676['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xb9db92),_0x24f676['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x23f6e2),_0x24f676['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x23f6e2);}_acceptFormatSuggestionCallbackFactory(){const _0x7316f0=this['editor'],_0x571c65=_0x7316f0['model']['document']['selection'];return(_0xadc0cd,_0x549985)=>{_0x7316f0['model']['change'](_0x3e37e1=>{const {commandName:_0x4127cc,commandParams:_0x56f638}=_0x549985;let _0x5d8505=_0xadc0cd[0x0]['end']['nodeBefore'];_0x56f638&&_0x56f638[0x0]&&!0x1===_0x56f638[0x0]['forceValue']&&(_0x5d8505=_0xadc0cd[0x0]['start']['nodeAfter']);const _0x414e89=_0x3e37e1['createRangeIn'](_0x5d8505);if('$graveyard'==_0x414e89['root']['rootName'])return;const _0x315cdc=Array['from'](_0x571c65['getRanges']())['map'](_0x3ad12b=>rt['fromRange'](_0x3ad12b));_0x3e37e1['setSelection'](_0x414e89),_0x7316f0['commands']['get'](_0x4127cc)['refresh'](),_0x56f638['push']({'forceDefaultExecution':!0x0}),_0x7316f0['execute'](_0x4127cc,..._0x56f638);const _0x30ac49=_0x315cdc['filter'](_0xed51aa=>'$graveyard'!=_0xed51aa['root']['rootName']);_0x30ac49['length']>0x0&&_0x3e37e1['setSelection'](_0x30ac49);for(const _0x56f6b4 of _0x315cdc)_0x56f6b4['detach']();});};}_getCoordsForCells(_0x3424b7){const _0x952990=this['editor']['plugins']['get']('TableUtils');let _0x5f1346=Number['MAX_SAFE_INTEGER'],_0x13e15c=Number['MIN_SAFE_INTEGER'],_0x5319fd=Number['MAX_SAFE_INTEGER'],_0x8c0f10=Number['MIN_SAFE_INTEGER'];for(const _0x1787fc of _0x3424b7){if('$graveyard'==_0x1787fc['root']['rootName'])continue;const {row:_0x5a3284,column:_0x338475}=_0x952990['getCellLocation'](_0x1787fc),_0x5b1ea4=_0x1787fc['hasAttribute']('rowspan')?_0x1787fc['getAttribute']('rowspan')-0x1:0x0,_0x4a2da9=_0x1787fc['hasAttribute']('colspan')?_0x1787fc['getAttribute']('colspan')-0x1:0x0;_0x5f1346=_0x5a3284<_0x5f1346?_0x5a3284:_0x5f1346,_0x13e15c=_0x5a3284+_0x5b1ea4>_0x13e15c?_0x5a3284+_0x5b1ea4:_0x13e15c,_0x5319fd=_0x338475<_0x5319fd?_0x338475:_0x5319fd,_0x8c0f10=_0x338475+_0x4a2da9>_0x8c0f10?_0x338475+_0x4a2da9:_0x8c0f10;}return{'minRow':_0x5f1346,'maxRow':_0x13e15c,'minColumn':_0x5319fd,'maxColumn':_0x8c0f10};}_setupColumnsRowsFixing(){const _0x1e81bd=this['editor'],_0x35bac0=_0x1e81bd['plugins']['get']('TrackChangesEditing'),_0x68b90=_0x1e81bd['plugins']['get']('TableUtils');_0x1e81bd['model']['document']['on']('change:data',()=>{const _0x776fb2=Array['from'](_0x1e81bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f1eba,data:_0x3ef6f6}of _0x776fb2){const {group:_0x21824d,id:_0x445662,subType:_0x8a5c6c}=tt(_0x4f1eba);if('suggestion'!=_0x21824d)continue;if(null!=_0x3ef6f6['oldRange'])continue;const _0x3b6853=_0x35bac0['getSuggestion'](_0x445662);this['_tablePostFixingSubtypes']['includes'](_0x8a5c6c)&&this['_tableSuggestions']['add'](_0x3b6853);}},{'priority':'low'});const _0x5befcf=(_0x261a10,_0x9ae885)=>{let _0x215a76=!0x1;const _0x2c7434=_0x9ae885['createRangeOn'](_0x261a10),_0x10e2c1=_0x261a10['findAncestor']('table'),_0x5f54d7=_0x68b90['getCellLocation'](_0x261a10);for(const _0x1d89e5 of this['_tableSuggestions']){const _0x5590d2=_0x1d89e5['subType'],_0x1cec54=_0x5590d2['startsWith']('tablePaste'),_0x2c5490=_0x5590d2['substr'](_0x1cec54?0xa:0x5),_0x676c16=_0x2c5490['toLowerCase'](),_0x1b743f=_0x676c16['substr'](0x0,0x3)+'span',_0x89a200='min'+_0x2c5490,_0x46a85e='max'+_0x2c5490;if(!_0x1d89e5['isInContent'])continue;if(_0x10e2c1!=_0x1d89e5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d89e5['isIntersectingWithRange'](_0x2c7434))continue;const _0x23f287=_0x261a10['hasAttribute'](_0x1b743f)?_0x261a10['getAttribute'](_0x1b743f)-0x1:0x0,_0x2d9dfc=this['_getSuggestionCoords'](_0x1d89e5),_0x5dc758=_0x2d9dfc[_0x89a200],_0x931cdf=_0x2d9dfc[_0x46a85e];_0x5dc758<=_0x5f54d7[_0x676c16]&&_0x5f54d7[_0x676c16]+_0x23f287<=_0x931cdf&&(_0x1d89e5['addRange'](_0x2c7434),_0x215a76=!0x0);}return _0x215a76;};_0x1e81bd['model']['document']['registerPostFixer'](_0x22c0f4=>{let _0x34ec81=!0x1;for(const _0x59fdec of _0x1e81bd['model']['document']['differ']['getChanges']())if('insert'==_0x59fdec['type']){if('tableRow'==_0x59fdec['name']){for(const _0x39e9ee of _0x59fdec['position']['nodeAfter']['getChildren']())_0x34ec81=_0x34ec81||_0x5befcf(_0x39e9ee,_0x22c0f4);}else'tableCell'==_0x59fdec['name']&&(_0x34ec81=_0x34ec81||_0x5befcf(_0x59fdec['position']['nodeAfter'],_0x22c0f4));}return _0x34ec81;});}_getSuggestionCoords(_0x26bf65){return this['_getCoordsForCells'](_0x26bf65['getRanges']()['map'](_0x241e5d=>_0x241e5d['start']['nodeAfter']));}};function Pe(_0x5365d1){return Array['from'](new Set(_0x5365d1)['values']());}var xe=class extends _0x16a669{static get requires(){return[Ue];}afterInit(){const _0x54185a=this['editor'],_0x5ecd4b=_0x54185a['model']['document']['selection'],_0x57738f=_0x54185a['locale'];if(!_0x54185a['plugins']['has']('TableEditing'))return;const _0x49897c=_0x54185a['plugins']['get']('TrackChangesEditing'),_0x48a546=_0x54185a['plugins']['get']('TableUtils'),_0x20dc37=_0x54185a['plugins']['get'](Ue);_0x20dc37['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x49897c['enableCommand']('mergeTableCells',()=>{const _0x3e018d=_0x48a546['getSelectionAffectedTableCells'](_0x54185a['model']['document']['selection']);_0x54185a['model']['change'](()=>{_0x49897c['markMultiRangeBlockFormat'](_0x3e018d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x54185a['commands']['get']('mergeTableCells')['on']('execute',(_0xc06faa,_0x5850f1)=>{_0x54185a['commands']['get']('trackChanges')['value']&&(_0x5850f1['length']>0x0&&_0x5850f1[_0x5850f1['length']-0x1]&&_0x5850f1[_0x5850f1['length']-0x1]['forceDefaultExecution']||_0x49897c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xc06faa['stop']());},{'priority':'highest'});for(const _0x460555 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x321113=_0x54185a['commands']['get'](_0x460555);_0x49897c['enableCommand'](_0x460555,()=>{const _0x232330=_0x54185a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37f7eb=>_0x37f7eb['is']('element','tableCell')),_0x477b12=_0x321113['value'];_0x54185a['model']['change'](()=>{_0x49897c['markMultiRangeBlockFormat']([_0x232330,_0x477b12],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2c9f75 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b73d1=_0x54185a['commands']['get'](_0x2c9f75);_0x49897c['enableCommand'](_0x2c9f75,()=>{const _0x4de1eb=_0x48a546['getSelectionAffectedTableCells'](_0x54185a['model']['document']['selection']),_0x2b3929=_0x4de1eb[0x0]['findAncestor']('table'),_0x17ebeb=new Set();for(const _0x2de097 of _0x4de1eb){const {column:_0x24e1b1,row:_0x59e77c}=_0x48a546['getCellLocation'](_0x2de097),_0x42cef0='horizontally'==_0x1b73d1['direction']?_0x48a546['createTableWalker'](_0x2b3929,{'startRow':_0x59e77c,'endRow':_0x59e77c,'includeAllSlots':!0x0}):_0x48a546['createTableWalker'](_0x2b3929,{'column':_0x24e1b1,'includeAllSlots':!0x0});for(const {cell:_0x45d172}of _0x42cef0)_0x17ebeb['add'](_0x45d172);}_0x54185a['model']['change'](()=>{_0x49897c['markMultiRangeBlockFormat'](_0x4de1eb,{'commandName':_0x2c9f75,'commandParams':[]},Array['from'](_0x17ebeb),_0x2c9f75);});});}_0x49897c['descriptionFactory']['registerDescriptionCallback'](_0x532dad=>{if('formatBlock'!=_0x532dad['type']&&'formatInline'!=_0x532dad['type'])return;const {data:_0x3dbe60}=_0x532dad;return _0x3dbe60&&'mergeTableCells'==_0x3dbe60['commandName']?{'type':'format','content':Mt(_0x57738f,'*Merge\x20cells*')}:void 0x0;}),_0x49897c['descriptionFactory']['registerDescriptionCallback'](_0x5dec90=>{if('formatBlock'!=_0x5dec90['type']&&'formatInline'!=_0x5dec90['type'])return;const {data:_0x2083c7}=_0x5dec90;return _0x2083c7?'splitTableCellVertically'==_0x2083c7['commandName']?{'type':'format','content':Mt(_0x57738f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2083c7['commandName']?{'type':'format','content':Mt(_0x57738f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x490679=_0x20dc37['_acceptFormatSuggestionCallbackFactory']();for(const _0x2502bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x49897c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2502bf,'accept',_0x490679);for(const _0x3f67e9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x49897c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f67e9,'accept',_0x3651dc=>{_0x54185a['model']['change'](_0x1eb36d=>{const _0x1576ea=Array['from'](_0x3651dc)['filter'](_0x23b8bf=>'$graveyard'!=_0x23b8bf['root']['rootName']&&!!_0x23b8bf['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1576ea['length'])return;const _0x55bc85=Array['from'](_0x5ecd4b['getRanges']())['map'](_0x191f8d=>rt['fromRange'](_0x191f8d));_0x1eb36d['setSelection'](_0x1576ea),_0x54185a['commands']['get'](_0x3f67e9)['refresh'](),_0x54185a['execute'](_0x3f67e9,{'forceDefaultExecution':!0x0});const _0x5cd80a=_0x55bc85['filter'](_0x3ac7e5=>'$graveyard'!=_0x3ac7e5['root']['rootName']);_0x5cd80a['length']>0x0&&_0x1eb36d['setSelection'](_0x5cd80a);for(const _0x472c4c of _0x55bc85)_0x472c4c['detach']();});});_0x49897c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x43e8d4=>{_0x54185a['model']['change'](_0x113965=>{const _0x4e73d5=Array['from'](_0x5ecd4b['getRanges']())['map'](_0x270d66=>rt['fromRange'](_0x270d66));_0x113965['setSelection'](_0x43e8d4),_0x54185a['commands']['get']('mergeTableCells')['refresh'](),_0x54185a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40e094=_0x4e73d5['filter'](_0x8bf5b3=>'$graveyard'!=_0x8bf5b3['root']['rootName']);_0x40e094['length']>0x0&&_0x113965['setSelection'](_0x40e094);for(const _0x176a91 of _0x4e73d5)_0x176a91['detach']();});});for(const _0x1f65c5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x40f534=_0x54185a['commands']['get'](_0x1f65c5);_0x40f534['on']('set:isEnabled',(_0x5b81f7,_0x20a420,_0x44db0a)=>{if(_0x44db0a){const _0x120af4=_0x54185a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39988a=>_0x39988a['is']('element','tableCell'));this['_areMergableCells'](_0x40f534['value'],_0x120af4)||(_0x5b81f7['return']=!0x1,_0x5b81f7['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0xb42112=this['editor']['commands']['get']('mergeTableCells'),_0xa962ae=this['editor']['plugins']['get']('TableUtils');if(!_0xb42112['isEnabled'])return!0x1;const _0x416ee1=_0xa962ae['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1602c4 of _0x416ee1)for(const _0x314e1f of _0x416ee1)if(_0x1602c4!=_0x314e1f&&!this['_areMergableCells'](_0x1602c4,_0x314e1f))return!0x1;return!0x0;}['_areMergableCells'](_0x363491,_0x4cfbe7){const _0x35854d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3384cf=this['editor']['model']['createRangeOn'](_0x363491),_0x22302a=this['editor']['model']['createRangeOn'](_0x4cfbe7),_0x3025f3=new Set(),_0xc91a6d=new Set();for(const _0x5e6104 of _0x35854d['getSuggestions']())if(('insertion'==_0x5e6104['type']||'deletion'==_0x5e6104['type']||'mergeTableCells'==_0x5e6104['subType'])&&_0x5e6104['isInContent']){for(const _0x331027 of _0x5e6104['getRanges']())_0x331027['containsRange'](_0x3384cf,!0x0)&&_0x3025f3['add'](_0x5e6104['type']+':'+_0x5e6104['author']['id']),_0x331027['containsRange'](_0x22302a,!0x0)&&_0xc91a6d['add'](_0x5e6104['type']+':'+_0x5e6104['author']['id']);}if(_0x3025f3['size']!=_0xc91a6d['size'])return!0x1;for(const _0xbf295c of _0x3025f3)if(!_0xc91a6d['has'](_0xbf295c))return!0x1;return!0x0;}},Ge=class extends _0x16a669{static get requires(){return[Ue];}afterInit(){const _0xeb1dd=this['editor'];if(!_0xeb1dd['plugins']['has']('TableEditing'))return;const _0x2b93a0=_0xeb1dd['locale'],_0x4f80ac=_0xeb1dd['plugins']['get']('TrackChangesEditing');_0x4f80ac['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4f80ac['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4f80ac['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x2b93a0,'FORMAT_HEADER_ROW')),_0x4f80ac['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x2b93a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3a2a12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fbbde=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x3a2a12['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1fbbde),_0x3a2a12['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1fbbde),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x53f338=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3545c5=this['editor']['plugins']['get']('TableUtils');function _0x19a439({showActiveMarker:_0x2fc797=!0x0,setDataAttribute:_0x7d4ebf=!0x0}={}){return(_0x37eacf,_0x478454,_0x3bd01b)=>{const {type:_0x24f285,id:_0xe893dc}=tt(_0x478454['markerName']);if(!_0x53f338['hasSuggestion'](_0xe893dc))return;const _0x9115e6=_0x53f338['getSuggestion'](_0xe893dc),_0x32365c=_0x9115e6['data'];if('formatBlock'!=_0x9115e6['type']||!_0x32365c||'setTableColumnHeader'!=_0x32365c['commandName'])return;if(_0x478454['item'])return void _0x37eacf['stop']();if(!_0x3bd01b['consumable']['consume'](_0x478454['markerRange'],_0x37eacf['name']))return;const _0x513d44=_0x478454['markerRange']['start']['nodeAfter'],_0x17d013=_0x478454['markerRange']['end']['nodeBefore'],_0xafbc11=_0x513d44['parent']['parent'],{column:_0x9994eb}=_0x3545c5['getCellLocation'](_0x513d44),{column:_0x5314aa}=_0x3545c5['getCellLocation'](_0x17d013);for(let _0x3db0eb=_0x9994eb;_0x3db0eb<=_0x5314aa;_0x3db0eb++){const _0x52e9b8=_0x3545c5['createTableWalker'](_0xafbc11,{'column':_0x3db0eb,'includeAllSlots':!0x1});for(const _0x1b76d0 of _0x52e9b8){const _0x2830b2=_0x1b76d0['cell'],_0x59fd64=_0x3bd01b['mapper']['toViewElement'](_0x2830b2);_0x3bd01b['writer']['addClass']('ck-suggestion-marker-'+_0x24f285,_0x59fd64),_0x7d4ebf&&_0x3bd01b['writer']['setAttribute']('data-suggestion',_0xe893dc,_0x59fd64),_0x3bd01b['mapper']['bindElementToMarker'](_0x59fd64,_0x478454['markerName']),_0x2fc797&&(_0x53f338['activeMarkers']['includes'](_0x478454['markerName'])?_0x3bd01b['writer']['addClass']('ck-suggestion-marker--active',_0x59fd64):_0x3bd01b['writer']['removeClass']('ck-suggestion-marker--active',_0x59fd64));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19a439(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54120a,_0x46a9b6,_0x51399f)=>{_0x51399f['options']['showSuggestionHighlights']&&_0x19a439({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x54120a,_0x46a9b6,_0x51399f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x57c143,_0x5b55e2,_0x2aafc9)=>{const {type:_0x434564,id:_0x243ce7}=tt(_0x5b55e2['markerName']);if(!_0x53f338['hasSuggestion'](_0x243ce7))return;const _0xcb2f2a=_0x53f338['getSuggestion'](_0x243ce7),_0x3b94e2=_0xcb2f2a['data'];if('formatBlock'!=_0xcb2f2a['type']||!_0x3b94e2||'setTableColumnHeader'!=_0x3b94e2['commandName'])return;const _0x35bb1c=_0x2aafc9['mapper']['markerNameToElements'](_0x5b55e2['markerName']);if(_0x35bb1c){for(const _0x2e61a8 of _0x35bb1c)_0x2aafc9['writer']['removeClass']('ck-suggestion-marker-'+_0x434564,_0x2e61a8),_0x2aafc9['writer']['removeClass']('ck-suggestion-marker--active',_0x2e61a8),_0x2aafc9['writer']['removeAttribute']('data-suggestion',_0x2e61a8),_0x2aafc9['mapper']['unbindElementFromMarkerName'](_0x2e61a8,_0x5b55e2['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1f1dd3=this['editor'],_0x49277e=_0x1f1dd3['locale'];function _0x4bab96(_0x3e1ce1){return{'type':'format','content':Mt(_0x49277e,'*Format:*\x20%0',_0x3e1ce1)};}_0x1f1dd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1295ac=>{if('formatBlock'!=_0x1295ac['type'])return;const {data:_0x116237}=_0x1295ac;return _0x116237?'setTableRowHeader'==_0x116237['commandName']?_0x116237['commandParams'][0x0]['forceValue']?_0x4bab96(Mt(_0x49277e,'FORMAT_HEADER_ROW')):_0x4bab96(Mt(_0x49277e,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x116237['commandName']?_0x116237['commandParams'][0x0]['forceValue']?_0x4bab96(Mt(_0x49277e,'FORMAT_HEADER_COLUMN')):_0x4bab96(Mt(_0x49277e,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x16a669{static get requires(){return[Ue];}afterInit(){const _0x4afe62=this['editor'];if(!_0x4afe62['plugins']['has']('TableEditing')||!_0x4afe62['config']['get']('table.enableFooters'))return;const _0x33ffdb=_0x4afe62['locale'],_0x91aae7=_0x4afe62['plugins']['get']('TrackChangesEditing');_0x91aae7['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x91aae7['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x33ffdb,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x16a669{afterInit(){const _0x210b3b=this['editor'],_0x21b725=_0x210b3b['locale'],_0x2322ca=_0x210b3b['plugins']['get']('TrackChangesEditing');function _0x241487(_0x4e3dd3){return{'type':'format','content':''+Mt(_0x21b725,'*Set\x20table\x20type:*\x20%0',_0x4e3dd3)};}_0x210b3b['plugins']['has']('TableLayout')&&(_0x2322ca['enableCommand']('insertTableLayout'),_0x2322ca['enableDefaultAttributesIntegration']('tableType'),_0x2322ca['descriptionFactory']['registerElementLabel'](_0x56cd1f=>_0x56cd1f['is']('element','table')&&'layout'===_0x56cd1f['getAttribute']('tableType'),_0x12bb60=>Mt(_0x21b725,'ELEMENT_LAYOUT_TABLE',_0x12bb60)),_0x2322ca['descriptionFactory']['registerDescriptionCallback'](_0x28ddd9=>{const {data:_0x15a951}=_0x28ddd9;if(_0x15a951&&'tableType'==_0x15a951['key'])switch(_0x15a951['newValue']){case'layout':return _0x241487(Mt(_0x21b725,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x241487(Mt(_0x21b725,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](We['map'](_0x54895a=>[_0x54895a,null]));var je=class extends _0x16a669{static get requires(){return[Ue];}afterInit(){const _0x404782=this['editor'];if(!_0x404782['plugins']['has']('TableClipboard'))return;const _0xba62db=_0x404782['plugins']['get']('TrackChangesEditing'),_0x281d73=_0x404782['plugins']['get']('TableUtils'),_0x454ed4=_0x404782['plugins']['get'](Ue),_0x5ea0d7=_0x404782['plugins']['get']('TableClipboard'),_0x9acd8=_0x404782['plugins']['get']('TableSelection'),_0x4c6baa=_0x404782['plugins']['get'](gt);_0x454ed4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x404782['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x404782['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x32df9a=null,_0x47ba13=!0x1;_0x4c6baa['on']('contentInsertion',(_0x27396f,_0x5b6002)=>{_0x47ba13='paste'===_0x5b6002['method'];}),_0x404782['model']['on']('insertContent',(_0x504cd8,_0x28873c)=>{if(!_0x47ba13&&null===_0x9acd8['getSelectedTableCells']())return;const [_0x2a64b7,_0x201330]=_0x28873c,_0x1e36c8=_0x28873c[_0x28873c['length']-0x1];_0x1e36c8&&_0x1e36c8['forceDefaultExecution']||_0xba62db['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xae9bf6,_0x9e1f30,_0xe7a7ae,_0x2f4d1c,_0x467854){if(_0x9e1f30&&!_0x9e1f30['is']('documentSelection'))return!0x1;const _0x110038=_0x467854['getTableIfOnlyTableInContent'](_0xae9bf6,_0xe7a7ae);if(!_0x110038||!Ke(_0x110038,void 0x0,_0x2f4d1c))return!0x1;const _0x588649=_0x2f4d1c['getSelectionAffectedTableCells'](_0xe7a7ae['document']['selection']);if(!_0x588649['length'])return!0x1;const _0x10f867=_0x588649[0x0]['findAncestor']('table'),_0x59a70f=_0x2f4d1c['getRowIndexes'](_0x588649),_0x4d1fcc=_0x2f4d1c['getColumnIndexes'](_0x588649),_0x32d866={'startRow':_0x59a70f['first'],'endRow':_0x59a70f['last'],'startColumn':_0x4d1fcc['first'],'endColumn':_0x4d1fcc['last']};return 0x1==_0x588649['length']&&(_0x32d866['endRow']+=_0x2f4d1c['getRows'](_0x110038)-0x1,_0x32d866['endColumn']+=_0x2f4d1c['getColumns'](_0x110038)-0x1),Ke(_0x10f867,_0x32d866,_0x2f4d1c);}(_0x2a64b7,_0x201330,_0x404782['model'],_0x281d73,_0x5ea0d7)&&(_0x504cd8['stop'](),_0x32df9a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x404782['model']['change'](()=>{_0x404782['model']['insertContent'](_0x28873c[0x0],_0x28873c[0x1],_0x28873c[0x2],{'forceDefaultExecution':!0x0});const _0x2d8130=_0x511020(),{rowInsertionRanges:_0x3268ec,columnInsertionRanges:_0x27455d,insertionRanges:_0x214950,deletionRanges:_0x35e4a0,cells:_0x4228bf}=_0x32df9a;_0x3268ec['length']&&_0xba62db['markMultiRangeInsertion'](_0x3268ec,'tablePasteRow',{'tablePasteChainId':_0x2d8130}),_0x27455d['length']&&_0xba62db['markMultiRangeInsertion'](_0x27455d,'tablePasteColumn',{'tablePasteChainId':_0x2d8130}),_0x214950['length']&&(_0xba62db['markMultiRangeInsertion'](_0x214950,'tablePaste',{'tablePasteChainId':_0x2d8130,'skipNestingCheck':!0x0}),_0x214950['forEach'](_0x313f20=>_0x313f20['detach']?.())),_0x35e4a0['length']&&(_0xba62db['markMultiRangeDeletion'](_0x35e4a0,'tablePaste',{'tablePasteChainId':_0x2d8130,'skipNestingCheck':!0x0}),_0x35e4a0['forEach'](_0x25ac5e=>_0x25ac5e['detach']?.()));const _0x8a49f1=_0xba62db['markMultiRangeBlockFormat'](_0x4228bf['map'](({element:_0x598243})=>_0x598243),{'formatGroupId':_0x511020()},[],'tablePasteCell',{'tablePasteChainId':_0x2d8130});if(_0x8a49f1){const _0x2ab589=_0x8a49f1['getMarkers'](),_0x26c0b2=[];for(const {element:_0x3b581f,attributes:_0x301ca4}of _0x4228bf){if(!_0x301ca4)continue;const _0x4f2f2a=_0x404782['model']['createRangeOn'](_0x3b581f),_0x38d7e7=_0x2ab589['find'](_0x37d89f=>_0x37d89f['getRange']()['isEqual'](_0x4f2f2a));_0x38d7e7&&_0x26c0b2['push']([_0x38d7e7['name'],_0x301ca4]);}_0x26c0b2['length']&&_0x8a49f1['setAttribute']('markerAttributes',Object['fromEntries'](_0x26c0b2));}_0x32df9a=null;}));},{'priority':_0x3ee92d['high']+0xa}),_0x4c6baa['on']('contentInsertion',()=>{_0x47ba13=!0x1;},{'priority':'lowest'}),_0x404782['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x259c3d,_0xa5b971)=>{const [_0x1955f2,_0x37a4ff,,_0x2bdbd9]=_0xa5b971;if(!_0x32df9a)return;_0x259c3d['stop']();const _0x4885c3=_0x1955f2['cell'],_0x24fcef=_0x37a4ff,_0x496317=ze(_0x4885c3),_0x5062b2=ze(_0x24fcef);_0x259c3d['return']=_0x4885c3;let _0x5593e8=null,_0x570c8f=null;if(_0x5062b2||_0x496317){if(_0x496317&&!_0x5062b2){_0x2bdbd9['remove'](_0x4885c3['getChild'](0x0));for(const _0x5ec881 of Array['from'](_0x24fcef['getChildren']()))_0x2bdbd9['insert'](_0x5ec881,_0x4885c3,'end');const _0x28e8e4=_0x32df9a['rowInsertionIndexes']['includes'](_0x1955f2['row']),_0x2af11b=_0x32df9a['columnInsertionIndexes']['includes'](_0x1955f2['column']);_0x28e8e4||_0x2af11b||(_0x5593e8=rt['fromRange'](_0x2bdbd9['createRangeIn'](_0x4885c3)));}else _0x5062b2&&!_0x496317&&(_0x570c8f=_0x2bdbd9['createRangeIn'](_0x4885c3));}else{const _0x513f0f=_0x2bdbd9['createElement']('tableCellSuggestion'),_0x4bd20f=_0x2bdbd9['createElement']('tableCellSuggestion');_0x2bdbd9['wrap'](_0x2bdbd9['createRangeIn'](_0x4885c3),_0x4bd20f),_0x2bdbd9['insert'](_0x513f0f,_0x4885c3,0x0);for(const _0x3e1fe1 of Array['from'](_0x24fcef['getChildren']()))_0x2bdbd9['insert'](_0x3e1fe1,_0x513f0f,'end');_0x5593e8=rt['fromRange'](_0x2bdbd9['createRangeOn'](_0x513f0f)),_0x570c8f=rt['fromRange'](_0x2bdbd9['createRangeOn'](_0x4bd20f));}const _0x388036=Array['from'](_0x24fcef['getAttributes']())['filter'](([_0x7c800])=>We['includes'](_0x7c800));_0x32df9a['cells']['push']({'element':_0x4885c3,'attributes':_0x388036['length']?Object['fromEntries'](_0x388036):null}),_0x5593e8&&_0x32df9a['insertionRanges']['push'](_0x5593e8),_0x570c8f&&_0x32df9a['deletionRanges']['push'](_0x570c8f);},{'priority':'high'}),_0x281d73['on']('insertColumns',(_0x5ee206,_0x39f3f8)=>{const [_0x127bd0,_0x20b13a={}]=_0x39f3f8;if(!_0x32df9a)return;const _0x50da85=_0x20b13a['at']||0x0,_0x4d3d61=_0x20b13a['columns']||0x1;_0x32df9a['columnInsertionIndexes']=new Array(_0x4d3d61)['fill'](_0x50da85)['map']((_0x18124c,_0x36c9f5)=>_0x18124c+_0x36c9f5);for(const {cell:_0x532bbb}of _0x281d73['createTableWalker'](_0x127bd0,{'startColumn':_0x50da85,'endColumn':_0x50da85+_0x4d3d61-0x1}))_0x32df9a['columnInsertionRanges']['push'](_0x404782['model']['createRangeOn'](_0x532bbb));},{'priority':'low'}),_0x281d73['on']('insertRows',(_0x4a5d2c,_0x19bb02)=>{const [_0x559a8d,_0x270643={}]=_0x19bb02;if(!_0x32df9a)return;const _0x1145f8=_0x270643['at']||0x0,_0x47b82c=_0x270643['rows']||0x1;_0x32df9a['rowInsertionIndexes']=new Array(_0x47b82c)['fill'](_0x1145f8)['map']((_0x519d15,_0x1f15c6)=>_0x519d15+_0x1f15c6);for(const {cell:_0x217341}of _0x281d73['createTableWalker'](_0x559a8d,{'startRow':_0x1145f8,'endRow':_0x1145f8+_0x47b82c-0x1}))_0x32df9a['rowInsertionRanges']['push'](_0x404782['model']['createRangeOn'](_0x217341));},{'priority':'low'}),_0xba62db['descriptionFactory']['registerDescriptionCallback'](_0x2f09b6=>{if(_0x2f09b6['subType']&&_0x2f09b6['subType']['startsWith']('tablePaste'))return _0x2f09b6['previous']?{}:{'type':'insertion','content':Mt(_0x404782['locale'],'*Replace\x20table\x20cells*')};});const _0x1c8ebf=()=>!0x1;for(const _0x1da413 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xba62db['_suggestionFactory']['registerCustomCallback']('insertion',_0x1da413,'join',_0x1c8ebf),_0xba62db['_suggestionFactory']['registerCustomCallback']('deletion',_0x1da413,'join',_0x1c8ebf),_0xba62db['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1da413,'join',_0x1c8ebf);_0xba62db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c8ebf),_0xba62db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4dac0b,_0x98fae1,_0x441a3a)=>{const _0x56d8e2=_0x4dac0b['map'](_0x1fb305=>_0x1fb305['getContainedElement']())['filter'](_0x4ee5f6=>_0x4ee5f6),_0x43ff86=new Map(_0x56d8e2['map'](_0x4e2e32=>[_0x4e2e32,null]));if(_0x32df9a){for(const {element:_0x192d97,attributes:_0x46f773}of _0x32df9a['cells'])_0x46f773&&_0x43ff86['set'](_0x192d97,_0x46f773);}else{if(_0x441a3a&&_0x441a3a['markerAttributes'])for(const [_0x2f44d9,_0x2ef5bb]of Object['entries'](_0x441a3a['markerAttributes'])){const _0x32d8e9=_0x404782['model']['markers']['get'](_0x2f44d9),_0x1d4345=_0x32d8e9?_0x32d8e9['getRange']()['getContainedElement']():null;_0x1d4345&&_0x43ff86['set'](_0x1d4345,_0x2ef5bb);}}_0x404782['model']['change'](_0x19aab0=>{for(const [_0x4acaa8,_0x3129e9]of _0x43ff86)_0x19aab0['setAttributes']({...Ve,..._0x3129e9},_0x4acaa8);});});const _0x61b1a0=(_0x6438b,_0x19b792)=>{_0xba62db['_suggestionFactory']['registerCustomCallback'](_0x6438b,'tablePaste',_0x19b792,(_0x52efc6,_0x588282,_0x114102)=>{_0x404782['model']['change'](_0x5a16ae=>{const _0x3a0fd2=[];for(const _0x2ed98a of _0x52efc6){const _0x4b0770=_0x2ed98a['start']['nodeAfter'];_0x4b0770['is']('element','tableCellSuggestion')&&_0x3a0fd2['push'](_0x4b0770);}_0xba62db['_suggestionFactory']['getSuggestionCallback'](_0x6438b,null,_0x19b792)(_0x52efc6,_0x588282,_0x114102);for(const _0x548e0c of _0x3a0fd2)'$graveyard'!=_0x548e0c['root']['rootName']&&_0x5a16ae['unwrap'](_0x548e0c);});});};_0x61b1a0('insertion','accept'),_0x61b1a0('insertion','discard'),_0x61b1a0('deletion','accept'),_0x61b1a0('deletion','discard'),_0xba62db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2fb1ca=>{const _0x159e7d=_0x2fb1ca['map'](_0xb7d42c=>_0xb7d42c['getContainedElement']()),_0x38f7d2=_0x159e7d[0x0]['findAncestor']('table'),{minRow:_0x9877e8,maxRow:_0x4e28c7}=_0x454ed4['_getCoordsForCells'](_0x159e7d);_0x281d73['removeRows'](_0x38f7d2,{'at':_0x9877e8,'rows':_0x4e28c7-_0x9877e8+0x1});}),_0xba62db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x355fed=>{const _0xebc601=_0x355fed['map'](_0x4915aa=>_0x4915aa['getContainedElement']()),_0x4140c6=_0xebc601[0x0]['findAncestor']('table'),{minColumn:_0x486ba4,maxColumn:_0x50f1b4}=_0x454ed4['_getCoordsForCells'](_0xebc601);_0x281d73['removeColumns'](_0x4140c6,{'at':_0x486ba4,'columns':_0x50f1b4-_0x486ba4+0x1});});const _0x59757a=(_0x2cb009,_0x6a0d0f)=>{if(!_0x6a0d0f['subType']||!_0x6a0d0f['subType']['startsWith']('tablePaste'))return;const _0x5f56b5=_0x6a0d0f['attributes']['tablePasteChainId'],_0x133654=_0xba62db['getSuggestions']()['filter'](_0x4161fa=>_0x4161fa['isInContent']&&_0x4161fa['attributes']&&_0x4161fa['attributes']['tablePasteChainId']==_0x5f56b5);_0x133654['length']&&_0x6a0d0f['getAllAdjacentSuggestions']()['length']!=_0x133654['length']&&_0x133654['reduce']((_0x12ebe5,_0x4015cd)=>(_0x12ebe5['next']=_0x4015cd,_0x4015cd['previous']=_0x12ebe5,_0x4015cd));};function _0x5caa44(_0x3a5c42,_0x5097a6=!0x0){const {id:_0x18dcd9,authorId:_0xbce4ff}=tt(_0x3a5c42['markerName']),_0x232bd6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x592d56=_0xba62db['activeMarkers']['includes'](_0x3a5c42['markerName']);return _0x592d56&&_0x232bd6['push']('ck-suggestion-marker--active'),{'classes':_0x232bd6,'attributes':{'data-suggestion':_0x18dcd9,'data-author-id':_0xbce4ff},'priority':_0x592d56&&_0x5097a6?0xbc2:0xbb8};}_0xba62db['on']('suggestionLoaded',_0x59757a,{'priority':'high'}),_0xba62db['on']('suggestionUnloaded',_0x59757a,{'priority':'high'}),_0x404782['model']['document']['registerPostFixer'](()=>{let _0x19b1c6=!0x1;const _0x1a7b3b=Array['from'](_0x404782['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b7af8,data:_0x3cc01c}of _0x1a7b3b){const {group:_0xce6c2e,type:_0x54bded,id:_0x52716d}=tt(_0x4b7af8);if('suggestion'!=_0xce6c2e||'deletion'!=_0x54bded||_0x3cc01c['oldRange'])continue;if(!_0xba62db['hasSuggestion'](_0x52716d))continue;const _0x1517de=_0xba62db['getSuggestion'](_0x52716d)['getRanges'](),_0x17ba2c=_0x404782['plugins']['get']('Users')['me'];for(const _0x49b048 of _0xba62db['getSuggestions']())if(_0x49b048['isInContent']&&_0x49b048['author']==_0x17ba2c&&'formatBlock'==_0x49b048['type']&&'tablePasteCell'==_0x49b048['subType']&&_0x49b048['getRanges']()['every'](_0x99558c=>_0x1517de['some'](_0x344a78=>_0x344a78['containsRange'](_0x99558c,!0x0)))){for(const _0x5dd8bd of _0x49b048['getAllAdjacentSuggestions']())_0x5dd8bd['isInContent']&&(_0x5dd8bd['discard'](),_0x19b1c6=!0x0);}}return _0x19b1c6;}),_0x404782['model']['document']['registerPostFixer'](_0x97f053=>{const _0x225c42=_0x404782['commands']['get']('redo');if(!_0x225c42||!_0x225c42['_createdBatches']['has'](_0x97f053['batch']))return!0x1;let _0x4bd272=!0x1;const _0x3c2a59=_0x404782['plugins']['get']('Users')['me'],_0x5dced7=_0x404782['model']['document']['differ']['getChanges'](),_0xca006d=Array['from'](_0x404782['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x405dd5,data:_0x395c1b})=>{const {group:_0x224c8c,subType:_0x5c8481,authorId:_0x2f566f}=tt(_0x405dd5);return'suggestion'==_0x224c8c&&'tablePaste'==_0x5c8481&&_0x2f566f==_0x3c2a59['id']&&!_0x395c1b['oldRange'];});for(const _0x31df8a of _0x5dced7){if('insert'!=_0x31df8a['type']||'tableCellSuggestion'!=_0x31df8a['name']||0x1!=_0x31df8a['length'])continue;const _0x534ef7=_0x97f053['createRange'](_0x31df8a['position'],_0x31df8a['position']['getShiftedBy'](0x1));if(!_0xca006d['find'](({data:_0x169ee5})=>_0x169ee5['newRange']['isEqual'](_0x534ef7))){for(const {name:_0x419915,data:_0x564849}of _0xca006d)if(_0x534ef7['containsRange'](_0x564849['newRange'])){_0x97f053['updateMarker'](_0x419915,{'range':_0x534ef7}),_0x4bd272=!0x0;break;}}}return _0x4bd272;}),_0x404782['model']['document']['registerPostFixer'](_0x54b0d5=>{let _0x5ed682=!0x1;const _0x37671b=_0x404782['plugins']['get']('Users')['me'],_0x1c73e8=_0xba62db['getSuggestions']()['filter'](_0x3a155d=>_0x3a155d['isInContent']&&_0x3a155d['author']==_0x37671b),_0x3a9463=new Set(),_0xbb3ddc=new Set();for(const _0x29cfca of _0x1c73e8)if('tablePaste'==_0x29cfca['subType'])for(const _0x3a94c0 of _0x29cfca['getMarkers']()){const _0x1bfcc7=_0x3a94c0['getRange']()['getContainedElement']();if(_0x1bfcc7){if(_0x1bfcc7['is']('element','tableCellSuggestion')&&ze(_0x1bfcc7)){_0x29cfca['removeMarker'](_0x3a94c0['name']),_0x3a9463['add'](_0x1bfcc7),_0x5ed682=!0x0;const _0x1011ef=_0x1bfcc7['nextSibling'],_0x19e9b9=_0x1bfcc7['previousSibling'],_0x128d73=_0x1011ef&&_0x1011ef['is']('element','tableCellSuggestion'),_0x2368f5=_0x19e9b9&&_0x19e9b9['is']('element','tableCellSuggestion');_0x128d73&&!_0x3a9463['has'](_0x1011ef)&&_0xbb3ddc['add'](_0x1011ef),_0x2368f5&&!_0x3a9463['has'](_0x19e9b9)&&_0xbb3ddc['add'](_0x19e9b9);}else _0x1bfcc7['is']('element','paragraph')&&_0x1bfcc7['isEmpty']&&(_0x29cfca['removeMarker'](_0x3a94c0['name']),_0x5ed682=!0x0);}}else{if('tablePasteCell'==_0x29cfca['subType']){if(!_0x29cfca['attributes']||!_0x29cfca['attributes']['tablePasteChainId'])continue;const _0x4762ec=_0x29cfca['attributes']['markerAttributes'];if(_0x4762ec&&Object['keys'](_0x4762ec)['length'])continue;const _0x225f07=_0x29cfca['attributes']['tablePasteChainId'];let _0x358352=!0x0,_0x5de9d5=!0x0;for(const _0x4f9797 of _0x1c73e8)if(_0x4f9797['subType']&&_0x4f9797['subType']['startsWith']('tablePaste')){if(!_0x4f9797['attributes']['tablePasteChainId']){_0x5de9d5=!0x1;break;}if(_0x4f9797['id']!=_0x29cfca['id']&&_0x4f9797['attributes']['tablePasteChainId']==_0x225f07){_0x358352=!0x1;break;}}_0x5de9d5&&_0x358352&&(_0x29cfca['removeMarkers'](),_0x5ed682=!0x0);}}for(const _0x396f88 of _0x3a9463)_0x54b0d5['remove'](_0x396f88);for(const _0x4121a9 of _0xbb3ddc)_0x54b0d5['unwrap'](_0x4121a9);return _0x5ed682;}),_0x404782['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c9496=>_0x5caa44(_0x5c9496),'converterPriority':'high'}),_0x404782['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f7e65,_0x4a7c90)=>_0x4a7c90['options']['showSuggestionHighlights']?_0x5caa44(_0x3f7e65,!0x1):null,'converterPriority':'high'});const _0x374d50=_0x404782['editing']['view'];this['listenTo'](_0x374d50['document'],'clipboardOutput',(_0x587599,_0x1ef3e1)=>{const _0x33d2cc=[];for(const _0x51a541 of _0x374d50['createRangeIn'](_0x1ef3e1['content'])['getItems']())_0x51a541['is']('element','suggestion-td')&&_0x33d2cc['push'](_0x51a541);_0x374d50['change'](_0x1e85fb=>{for(const _0x4e671b of _0x33d2cc)_0x1e85fb['move'](_0x1e85fb['createRangeIn'](_0x4e671b),_0x1e85fb['createPositionBefore'](_0x4e671b)),_0x1e85fb['remove'](_0x4e671b);});});}};function ze(_0x3b87d3){if(_0x3b87d3['isEmpty'])return!0x0;const _0x455074=_0x3b87d3['getChild'](0x0);return _0x455074['is']('element','paragraph')&&_0x455074['isEmpty'];}function Ke(_0x41e769,_0x3e9f0a={},_0x3a66d5){for(const {isAnchor:_0x3badb3,cellHeight:_0x38d5c9,cellWidth:_0x4e9994}of _0x3a66d5['createTableWalker'](_0x41e769,{'includeAllSlots':!0x0,..._0x3e9f0a}))if(!_0x3badb3||0x1!=_0x38d5c9||0x1!=_0x4e9994)return!0x1;return!0x0;}var Xe=class extends _0x16a669{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x115f8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x115f8b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x115f8b['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x115f8b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x115f8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x44a04a=_0x115f8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x115f8b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3d7214,_0x28c827)=>{_0x44a04a(_0x3d7214,_0x28c827),this['_restoreCellWidths'](_0x3d7214[0x0]['start']['nodeAfter'],_0x28c827['commandParams'][0x0]['cellWidths']);}),_0x115f8b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xab765a,_0x271535){const _0x6826f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x121f62=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3306b8=_0x271535['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x538314=_0x121f62['getColumnGroupElement'](_0x3306b8);let _0x546b26=_0x538314?_0x121f62['getTableColumnsWidths'](_0x538314):null,_0x56c87a=_0x3306b8['getAttribute']('tableWidth')||null;const _0x5088a5=_0x271535['tableWidth']||_0x56c87a,_0xe490c1=_0x271535['columnWidths']||_0x546b26;let _0x2e2f04=this['_getCellWidths'](_0x3306b8);const _0x53fdf4=this['_foldResizeTableSuggestion'](_0x3306b8);_0x53fdf4&&(_0x56c87a=_0x53fdf4['tableWidth'],_0x546b26=_0x53fdf4['columnWidths'],_0x2e2f04=_0x53fdf4['cellWidths']||_0x2e2f04),_0xab765a({'table':_0x3306b8,'tableWidth':_0x5088a5,'columnWidths':_0xe490c1}),_0x6826f8['markBlockFormat'](_0x3306b8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56c87a,'columnWidths':_0x546b26,'cellWidths':_0x2e2f04}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x46f65c,_0x5487a4={}){if(void 0x0===_0x5487a4['value']||''===_0x5487a4['value'])return void _0x46f65c(_0x5487a4);const _0x395850=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13e634=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x9f7a2c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x5487a4['batch']||(_0x5487a4['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x5487a4['batch'],()=>{const _0x42ea2d=_0x13e634['getColumnGroupElement'](_0x9f7a2c);let _0xd4c134=_0x42ea2d?_0x13e634['getTableColumnsWidths'](_0x42ea2d):null,_0x29a971=_0x9f7a2c['getAttribute']('tableWidth')||null,_0x19264c=this['_getCellWidths'](_0x9f7a2c);const _0x50eb07=this['_foldResizeTableSuggestion'](_0x9f7a2c,!0x0);_0x50eb07&&(_0x29a971=_0x50eb07['tableWidth'],_0xd4c134=_0x50eb07['columnWidths'],_0x19264c=_0x50eb07['cellWidths']||_0x19264c),_0x46f65c(_0x5487a4),_0x395850['markBlockFormat'](_0x9f7a2c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x29a971,'columnWidths':_0xd4c134,'cellWidths':_0x19264c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x527030,_0x448bcb=!0x1){const _0x266459=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6d9b91=this['editor']['plugins']['get']('Users')['me'];for(const _0x302a90 of _0x266459['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a3f1f=_0x302a90['getContainedElement']();if('resizeTable'===_0x302a90['subType']&&_0x3a3f1f===_0x527030){_0x302a90['author']!==_0x6d9b91&&(_0x448bcb?_0x302a90['removeMarkers']():_0x302a90['discard']());const _0x480442=_0x302a90['data']['commandParams'];return{'tableWidth':_0x480442[0x0]['tableWidth'],'columnWidths':_0x480442[0x0]['columnWidths'],'cellWidths':_0x480442[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x4d3d30){const _0x5a0f62=[];for(const _0x32a83b of _0x4d3d30['getChildren']())if(_0x32a83b['is']('element','tableRow')){for(const _0x1ca6f1 of _0x32a83b['getChildren']())_0x5a0f62['push'](_0x1ca6f1['getAttribute']('tableCellWidth')||null);}return _0x5a0f62;}_restoreCellWidths(_0x39d81a,_0x4db9a6){_0x4db9a6&&this['editor']['model']['change'](_0x4dee03=>{let _0x42ca1c=0x0;for(const _0x332546 of _0x39d81a['getChildren']())if(_0x332546['is']('element','tableRow'))for(const _0xb8db75 of _0x332546['getChildren']()){const _0x2f66b8=_0x4db9a6[_0x42ca1c++];_0x2f66b8&&_0x4dee03['setAttribute']('tableCellWidth',_0x2f66b8,_0xb8db75);}});}handleSuggestionDescription(_0x13ea7d){if('formatBlock'!=_0x13ea7d['type']&&'formatInline'!=_0x13ea7d['type'])return;const {data:_0xcc2a13}=_0x13ea7d;return _0xcc2a13&&'resizeTable'===_0xcc2a13['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x16a669{afterInit(){const _0x465d4c=this['editor'];_0x465d4c['plugins']['has']('Template')&&_0x465d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x16a669{afterInit(){const _0x299414=this['editor'];if(!_0x299414['commands']['get']('insertTableOfContents'))return;_0x299414['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46e88e=_0x299414['plugins']['get']('TrackChangesEditing'),_0x177e4c=_0x299414['locale'];_0x46e88e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d5225=>Mt(_0x177e4c,'ELEMENT_TABLE_OF_CONTENTS',_0x4d5225));}},Qe=class extends _0x16a669{afterInit(){const _0x655cb=this['editor'];_0x655cb['plugins']['has']('Title')&&(_0x655cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x655cb['locale'],'ELEMENT_TITLE')),_0x655cb['model']['document']['registerPostFixer'](_0x565546=>{let _0x2d6cb5=!0x1;const _0x48a62e=Array['from'](_0x655cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53ba29,data:_0x274017}of _0x48a62e){const {group:_0x14c9c6}=tt(_0x53ba29);if('suggestion'!==_0x14c9c6||!_0x274017['newRange'])continue;const _0x5e6df7=_0x274017['newRange'],_0x5ce9c9=_0x5e6df7['end']['nodeBefore'];if(!_0x5ce9c9||!_0x5ce9c9['is']('element','title-content'))continue;if(!_0x5e6df7['start']['isTouching'](_0x5e6df7['end']))continue;const _0x509cf6=_0x655cb['model']['schema']['getNearestSelectionRange'](_0x5e6df7['end'],'forward');if(_0x509cf6&&_0x509cf6['isCollapsed']){const _0x1f3eeb=_0x565546['createRange'](_0x5e6df7['start'],_0x509cf6['start']);_0x1f3eeb['isEqual'](_0x5e6df7)||(_0x565546['updateMarker'](_0x53ba29,{'range':_0x1f3eeb}),_0x2d6cb5=!0x0);}_0x2d6cb5||(_0x565546['removeMarker'](_0x53ba29),_0x2d6cb5=!0x0);}return _0x2d6cb5;}));}},Ze=class extends _0x16a669{afterInit(){const _0x217eba=this['editor'],_0x139434=_0x217eba['plugins']['get']('TrackChangesEditing');_0x217eba['plugins']['has']('Uploadcare')&&(_0x139434['enableCommand']('uploadcare'),_0x217eba['plugins']['has']('UploadcareImageEdit')&&(_0x139434['enableCommand']('uploadcareImageEdit'),_0x139434['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x139434['descriptionFactory']['registerDescriptionCallback'](_0x422547=>{if('attribute'!=_0x422547['type'])return;const {data:_0x58caa9}=_0x422547;return _0x58caa9&&'uploadcareImageId'==_0x58caa9['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x16a669{afterInit(){const _0x135274=this['editor'],_0x3334b5=_0x135274['plugins']['get']('TrackChangesEditing');_0x135274['plugins']['has']('UndoEditing')&&(_0x3334b5['enableCommand']('undo'),_0x3334b5['enableCommand']('redo'));}},tn=class extends _0x16a669{static get requires(){return[Ue];}afterInit(){const _0x47e20e=this['editor'];_0x47e20e['plugins']['has']('TableCaptionEditing')&&_0x47e20e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x16a669{tableProperties;tableCellProperties;constructor(_0x59c9d6){super(_0x59c9d6),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 _0x1c1fe3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c3ae7 of this['tableProperties'])_0x1c1fe3['enableCommand'](_0x2c3ae7,(_0x35da8a,_0x1017e4)=>{const _0x1ff967=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c3ae7,[_0x1ff967],this['tableProperties'],'tableProperties',_0x35da8a,_0x1017e4);});_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1c1fe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4bdf14,_0x3777f1)=>this['handleDiscardAction'](this['tableProperties'],_0x4bdf14,_0x3777f1)),_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x339eb4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x339eb4)&&_0x1c1fe3['enableCommand'](_0x339eb4,(_0x4dab6a,_0x3e1201)=>{const _0x3a6ade=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x339eb4,_0x3a6ade,this['tableCellProperties'],'tableCellProperties',_0x4dab6a,_0x3e1201);});_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1c1fe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x24254a,_0x41294e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x24254a,_0x41294e)),_0x1c1fe3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1c1fe3['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1c1fe3['descriptionFactory']['registerDescriptionCallback'](_0xf893b3=>this['handleSuggestionDescription'](_0xf893b3)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x569c90,_0x172b6b,_0x560203,_0x2a86ec,_0x280070,_0x2d66fb){const _0x528fca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2d66fb['batch'],()=>{for(const _0x1647c3 of _0x172b6b)if(this['_getSuggestion'](_0x1647c3,_0x2a86ec))_0x280070(_0x2d66fb);else{const _0x585c3e={};for(const _0x2448e2 of _0x560203){const _0x4a7821=_0x1647c3['getAttribute'](_0x2448e2);void 0x0!==_0x4a7821&&(_0x585c3e[_0x2448e2]=_0x4a7821);}const _0x310861=this['_getResizedColumnWidths'](_0x1647c3);_0x310861&&(_0x585c3e['columnWidths']=_0x310861),_0x280070(_0x2d66fb),_0x528fca['markBlockFormat'](_0x1647c3,{'commandParams':[_0x585c3e]},[],_0x2a86ec);}});}handleDiscardAction(_0x225289,_0xaa4874,_0x1fa168){const _0x590c7c=_0xaa4874[0x0]['start']['nodeAfter'],_0x295946=_0x1fa168['commandParams'][0x0];this['editor']['model']['change'](_0x14f9c2=>{for(const _0x5be999 of _0x225289)void 0x0!==_0x295946[_0x5be999]?_0x14f9c2['setAttribute'](_0x5be999,_0x295946[_0x5be999],_0x590c7c):_0x14f9c2['removeAttribute'](_0x5be999,_0x590c7c);if(_0x295946['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x501e00=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38825e=_0x501e00['getColumnGroupElement'](_0x590c7c);if(_0x38825e){const _0x262586=_0x501e00['getTableColumnsWidths'](_0x38825e),_0x261da6=_0x590c7c['getAttribute']('tableWidth');if(('string'==typeof _0x261da6&&_0x261da6['trim']()['endsWith']('px'))!==_0x262586['some'](_0x2d0fb3=>'string'==typeof _0x2d0fb3&&_0x2d0fb3['endsWith']('px'))){const _0x1247b5=_0x501e00['getTableColumnElements'](_0x38825e);_0x295946['columnWidths']['forEach']((_0x358b38,_0x1f451e)=>{_0x1247b5[_0x1f451e]&&_0x14f9c2['setAttribute']('columnWidth',_0x358b38,_0x1247b5[_0x1f451e]);});}}}});}_getResizedColumnWidths(_0x935573){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x935573['is']('element','table'))return;const _0x5dc031=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a6823=_0x5dc031['getColumnGroupElement'](_0x935573);return _0x3a6823?_0x5dc031['getTableColumnsWidths'](_0x3a6823):void 0x0;}handleSuggestionDescription(_0x139f7b){if(_0x139f7b['data'])switch(_0x139f7b['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x59af58,_0x54553f){const _0x34cdf6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x497b67 of _0x34cdf6['getSuggestions']({'skipNotAttached':!0x0})){const _0x58d685=_0x497b67['getContainedElement']();if(_0x497b67['subType']===_0x54553f&&_0x58d685===_0x59af58)return _0x497b67;}return null;}_registerTablePropertiesAttributes(){const _0x1b9ad0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29d46a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3f4367 of _0x29d46a){const _0x12d426=_0x3f4367['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b9ad0['descriptionFactory']['registerAttributeLabel'](_0x3f4367,Mt(this['editor']['locale'],'FORMAT_'+_0x12d426));}}},nn=class extends _0x16a669{afterInit(){const _0x36e8c9=this['editor'];if(!_0x36e8c9['plugins']['has']('LineHeight'))return;const _0x2564aa=_0x36e8c9['plugins']['get']('TrackChangesEditing'),_0x48cf15=_0x36e8c9['locale'];_0x2564aa['enableDefaultAttributesIntegration']('lineHeight'),_0x2564aa['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x48cf15,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x2fee2c){return'marker'==_0x2fee2c['type']&&_0x2fee2c['name']['startsWith']('$markedRemove');}var on=class extends _0x16a669{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x263ae3,_0x2015d6,_0x57ba00,_0x455849,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57d116){super(_0x57d116),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59a654,_0x33ec4d,_0x1984b0,_0x501c35)=>{this['_model']['change'](()=>{for(const _0x4699cf of[..._0x501c35,..._0x1984b0])this['_model']['markers']['has'](_0x4699cf)&&_0x57d116['editing']['reconvertMarker'](_0x4699cf);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57d116['plugins']['get'](_0x263ae3),this['_suggestionsConversion']=_0x57d116['plugins']['get'](_0x2015d6),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x57d116['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57d116['config']['get']('trackChanges.trackFormatChanges'),_0x57d116['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57d116['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x57d116,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x5116fb=this['editor'];_0x5116fb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c7e0c,{writer:_0x3c4cdb})=>{let _0x1376c7='suggestion:'+_0x3c7e0c['getAttribute']('suggestion-type')+':'+_0x3c7e0c['getAttribute']('id');return _0x3c7e0c['getAttribute']('marker-count')&&(_0x1376c7+=':'+_0x3c7e0c['getAttribute']('marker-count')),_0x3c4cdb['createElement']('$marker',{'data-name':_0x1376c7});}}),_0x5116fb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5116fb['model']['document']['registerPostFixer'](_0x3c0b28=>{let _0x3241b2=!0x1;const _0x44c4ae=Array['from'](_0x5116fb['model']['document']['differ']['getChangedMarkers']()),_0x3a7a5c=new Set();for(const {name:_0x4bea89,data:_0x4e0e99}of _0x44c4ae){const {group:_0x4cb252,type:_0x122448,subType:_0x40464f,id:_0x48111e}=tt(_0x4bea89);if('suggestion'!==_0x4cb252)continue;const _0x3684ee=_0x40464f?'suggestion:'+_0x122448+':'+_0x40464f+':'+_0x48111e:'suggestion:'+_0x122448+':'+_0x48111e,_0x2b8868=_0x5116fb['model']['markers']['getMarkersGroup'](_0x3684ee),_0x7ca53b=_0x5116fb['model']['markers']['get'](_0x4bea89),_0x5757de=this['_suggestions']['get'](_0x48111e);if(null!=_0x4e0e99['newRange']){'formatInline'==_0x122448&&(_0x3241b2=_0x3241b2||un(_0x4e0e99['newRange'],_0x4bea89,_0x3c0b28,_0x5116fb['model']['schema']));const _0x1f3ca4='attribute'==_0x122448&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x40464f)),_0x412287='attribute'==_0x122448&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x40464f));if(_0x4e0e99['newRange']['isCollapsed']||'$graveyard'==_0x4e0e99['newRange']['root']['rootName']||'formatBlock'==_0x122448&&!hn(_0x4e0e99['newRange'])||_0x1f3ca4&&!hn(_0x4e0e99['newRange'])||_0x412287&&gn(_0x4e0e99['newRange'])||'deletion'==_0x122448&&gn(_0x4e0e99['newRange'])||_0x7ca53b&&fn(_0x7ca53b,_0x2b8868))_0x3c0b28['removeMarker'](_0x4bea89),_0x3241b2=!0x0;else{if(!_0x5757de||!_0x5757de['isInContent'])continue;if(_0x4e0e99['newRange']&&_0x4e0e99['oldRange']&&_0x4e0e99['newRange']['isEqual'](_0x4e0e99['oldRange']))continue;_0x3a7a5c['add'](_0x5757de);}}}return _0x3a7a5c['size']>0x0&&(_0x3241b2=!!this['_joinWithAdjacentSuggestions'](_0x3a7a5c)||_0x3241b2),_0x3241b2;}),_0x5116fb['model']['document']['registerPostFixer'](_0x502e0d=>{let _0x473d70=!0x1;for(const _0x5b4d1c of _0x5116fb['model']['document']['differ']['getChanges']())if('insert'==_0x5b4d1c['type'])for(const _0x5c0e9d of this['_suggestions']['values']()){if(_0x5c0e9d['isMultiRange']||!_0x5c0e9d['isInContent'])continue;const _0xcf40ed='formatBlock'==_0x5c0e9d['type'],_0x7e273c=this['_getAttributeKey'](_0x5c0e9d),_0x12e4a5=_0x7e273c&&this['_suggestionsConversion']['isBlockAttribute'](_0x7e273c);if(!_0xcf40ed&&!_0x12e4a5)continue;const _0x5b4c6e=_0x5c0e9d['getFirstRange']();if(_0x5b4c6e['start']['parent']!=_0x5b4c6e['end']['parent']&&!_0x5b4c6e['end']['isAtEnd']){const _0x251341=_0x5116fb['model']['createPositionAt'](_0x5b4c6e['start']['nodeAfter'],'end'),_0x5d9771=_0x5116fb['model']['createRange'](_0x5b4c6e['start'],_0x251341);_0x502e0d['updateMarker'](_0x5c0e9d['getFirstMarker'](),{'range':_0x5d9771}),_0x473d70=!0x0;}}return _0x473d70;}),_0x5116fb['model']['document']['registerPostFixer'](_0x5e4b9=>this['_processAttributeChanges'](_0x5e4b9)),_0x5116fb['model']['document']['registerPostFixer'](_0x404d0c=>!_0x404d0c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x404d0c)),_0x5116fb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5116fb['model']['document']['on']('change:data',(_0x332c4a,_0x407ac4)=>{if(!_0x407ac4['isLocal']||_0x407ac4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3cc154=_0x5116fb['model']['document']['differ']['getChanges']();if(0x0==_0x3cc154['length'])return;const _0xbe05ae=[],_0x2b5cdc=_0x3cc154['filter'](_0x11fdcd=>'attribute'==_0x11fdcd['type']),_0x1b1ea7=_0x3cc154['filter'](_0x1b61ae=>'insert'==_0x1b61ae['type']&&'$text'!=_0x1b61ae['name']);for(const _0x4959bd of _0x2b5cdc)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4959bd['attributeKey'])&&_0xbe05ae['push']({'key':_0x4959bd['attributeKey'],'newValue':_0x4959bd['attributeNewValue'],'oldValue':_0x4959bd['attributeOldValue'],'range':mn(_0x4959bd['range'],_0x5116fb['model'])});for(const _0xb67788 of _0x1b1ea7){if('rename'!=_0xb67788['action']&&'refresh'!=_0xb67788['action'])continue;const _0x500ff5=En(_0xb67788['position']['nodeAfter'],_0x5116fb['model']),_0x50c332=_0xb67788['before'];'rename'==_0xb67788['action']&&_0xbe05ae['push']({'key':sn,'newValue':_0xb67788['name'],'oldValue':_0x50c332['name'],'range':_0x500ff5});for(const [_0x2f2e62,_0x19123f]of _0x50c332['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2f2e62))continue;const _0x48dc1b=_0xb67788['attributes']['get'](_0x2f2e62);_0x19123f!==_0x48dc1b&&_0xbe05ae['push']({'key':_0x2f2e62,'newValue':_0x48dc1b,'oldValue':_0x19123f,'range':_0x500ff5});}for(const [_0x3a6986,_0x48a820]of _0xb67788['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3a6986)&&(_0x50c332['attributes']['has'](_0x3a6986)||_0xbe05ae['push']({'key':_0x3a6986,'newValue':_0x48a820,'oldValue':null,'range':_0x500ff5}));}0x0!=_0xbe05ae['length']&&_0x5116fb['model']['enqueueChange'](_0x407ac4,_0x413d21=>{const _0x3698e6=_0x511020();for(const {range:_0x1411f2,key:_0x1325cc,oldValue:_0x934ab5,newValue:_0x57965f}of _0xbe05ae)this['markAttributeChange'](_0x1411f2,_0x1325cc,_0x934ab5,_0x57965f,{'groupId':_0x3698e6});this['_reduceExistingSuggestions'](_0x413d21,_0xbe05ae);});},{'priority':'lowest'}),_0x5116fb['model']['markers']['on']('update:suggestion',(_0x31ec15,_0x452d49,_0x36d2d9)=>{if(null==_0x36d2d9){const {id:_0x49dc28}=tt(_0x452d49['name']),_0x48de1b=this['_suggestions']['get'](_0x49dc28);_0x48de1b&&_0x48de1b['addMarkerName'](_0x452d49['name']);}}),_0x5116fb['model']['document']['on']('change:data',()=>{const _0x5e7236=Array['from'](_0x5116fb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x376b8f=>'suggestion'===tt(_0x376b8f['name'])['group']);if(0x0===_0x5e7236['length'])return;_0x5e7236['sort']((_0x287b95,_0x4e54a3)=>{const _0x2d3d76=_0x287b95['data']['oldRange'],_0x38f179=_0x4e54a3['data']['oldRange'];return null===_0x2d3d76&&null===_0x38f179?0x0:null===_0x2d3d76&&null!==_0x38f179?-0x1:null!==_0x2d3d76&&null===_0x38f179?0x1:_0x2d3d76['start']['isBefore'](_0x38f179['start'])?-0x1:0x1;});const _0x26ac5a=new Set(),_0x58480b=new Set();for(const {name:_0x559b71,data:_0x2468c5}of _0x5e7236){const {id:_0x222bcc}=tt(_0x559b71);if(null===_0x2468c5['oldRange']){const _0x5fc8f9=this['_handleNewSuggestionMarker'](_0x559b71);_0x58480b['add'](_0x5fc8f9);}else{const _0x67967a=this['_suggestions']['get'](_0x222bcc);null!==_0x2468c5['newRange']||_0x67967a['isInContent']?(_0x26ac5a['add'](_0x67967a['head']),_0x58480b['add'](_0x67967a)):this['_removeSuggestion'](_0x67967a);}}_0x58480b['size']>0x0&&this['_refreshSuggestionsChain'](_0x58480b);for(const _0x28644e of _0x26ac5a)this['fire']('suggestionChanged',_0x28644e);}),_0x5116fb['model']['on']('applyOperation',(_0x4a2f90,_0x17abc8)=>{const _0x385dd5=_0x17abc8[0x0];if(!this['_suggestions']['size'])return;if(!_0x385dd5['isDocumentOperation'])return;if(_0x385dd5['batch']['isUndo']||!_0x385dd5['batch']['isLocal'])return;let _0x494048,_0x3d9ea3;switch(_0x385dd5['type']){case'insert':_0x494048=_0x5116fb['model']['createPositionAt'](_0x385dd5['position']),_0x3d9ea3=_0x494048['getShiftedBy'](_0x385dd5['howMany']);break;case'split':_0x494048=_0x5116fb['model']['createPositionAt'](_0x385dd5['splitPosition']),_0x3d9ea3=_0x5116fb['model']['createPositionAt'](_0x385dd5['moveTargetPosition']);break;case'move':_0x494048=_0x5116fb['model']['createPositionAt'](_0x385dd5['targetPosition']),_0x3d9ea3=_0x494048['getShiftedBy'](_0x385dd5['howMany']);break;default:return;}const _0x500ebd=_0x5116fb['model']['createRange'](_0x494048,_0x3d9ea3);_0x5116fb['model']['change'](()=>{for(const {suggestion:_0x41cc20,meta:_0x2388fe}of this['_findSuggestions'](_0x500ebd)){if(_0x41cc20['isMultiRange'])continue;if('formatInline'==_0x41cc20['type'])continue;const _0x548f4b=this['_getAttributeKey'](_0x41cc20);if(_0x548f4b&&this['_suggestionsConversion']['isBlockAttribute'](_0x548f4b)&&'split'!=_0x385dd5['type'])continue;const _0x23fa39=_0x41cc20['data']&&_0x41cc20['data']['multipleBlocks'];('formatBlock'!=_0x41cc20['type']||'split'==_0x385dd5['type']&&!_0x23fa39)&&(_0x2388fe['containsRangeInObject']||'insertion'==_0x41cc20['type']&&_0x2388fe['isOwn']||_0x41cc20['getFirstRange']()['containsRange'](_0x500ebd)&&this['_breakSuggestionMarker'](_0x41cc20,_0x494048,_0x3d9ea3));}});},{'priority':'lowest'}),_0x5116fb['model']['on']('deleteContent',(_0xe1ecd2,_0x4871b9)=>{const _0x13fea6=_0x4871b9[0x0],_0x1cd513=_0x4871b9[0x1];if(_0x1cd513&&_0x1cd513['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x13fea6['isCollapsed'])return;const _0x164012=_0x5116fb['model']['schema'],{start:_0x520060,end:_0xa7292}=_0x13fea6['getFirstRange'](),_0x4ccb88=_0x520060['nodeAfter']&&_0x164012['isLimit'](_0x520060['nodeAfter'])?null:_0x164012['getNearestSelectionRange'](_0x520060,'forward'),_0x1d2bad=_0xa7292['nodeBefore']&&_0x164012['isLimit'](_0xa7292['nodeBefore'])?null:_0x164012['getNearestSelectionRange'](_0xa7292,'backward'),_0x490ea4=_0x5116fb['model']['createRange'](_0x4ccb88?_0x4ccb88['start']:_0x520060,_0x1d2bad?_0x1d2bad['end']:_0xa7292);_0x5116fb['model']['change'](_0x3c2716=>{this['markDeletion'](_0x490ea4);const _0x565534=_0x5116fb['model']['schema']['getNearestSelectionRange'](_0x490ea4['start']);_0x13fea6['is']('documentSelection')?_0x3c2716['setSelection'](_0x565534):_0x13fea6['setTo'](_0x565534);}),_0xe1ecd2['stop']();},{'priority':_0x3ee92d['normal']+0xa}),_0x5116fb['model']['on']('insertContent',(_0x401cb6,_0x92420a)=>{const _0x3d203=_0x92420a[_0x92420a['length']-0x1];_0x3d203&&_0x3d203['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5116fb['model']['change'](()=>{let _0x2d5d03=_0x5116fb['model']['insertContent'](_0x92420a[0x0],_0x92420a[0x1],_0x92420a[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d5d03)return;_0x401cb6['return']=_0x2d5d03['clone']();const _0x1ce7f5=_0x2d5d03['end']['nodeBefore'],_0x450edb=_0x5116fb['model']['schema'];_0x1ce7f5&&_0x450edb['isBlock'](_0x1ce7f5)&&!_0x450edb['isObject'](_0x1ce7f5)&&(_0x2d5d03=_0x5116fb['model']['createRange'](_0x2d5d03['start'],_0x5116fb['model']['createPositionAt'](_0x1ce7f5,'end'))),this['markInsertion'](_0x2d5d03);}),_0x401cb6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b9e5a=new _t(_0x5116fb,this['_suggestions']);_0x5116fb['commands']['add']('acceptSuggestion',_0x1b9e5a),this['enableCommand']('acceptSuggestion');const _0xa1209a=new pt(_0x5116fb,this['_suggestions']);_0x5116fb['commands']['add']('discardSuggestion',_0xa1209a),this['enableCommand']('discardSuggestion'),_0x5116fb['commands']['add']('acceptAllSuggestions',new Rt(_0x5116fb,_0x1b9e5a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5116fb['commands']['add']('discardAllSuggestions',new Rt(_0x5116fb,_0xa1209a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5116fb['commands']['add']('acceptSelectedSuggestions',new yt(_0x5116fb,_0x1b9e5a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5116fb['commands']['add']('discardSelectedSuggestions',new yt(_0x5116fb,_0xa1209a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x41d19c=_0x5116fb['plugins']['get'](_0x263ae3);this['listenTo'](_0x41d19c,'addComment',(_0x4d1b05,{threadId:_0x1499cc})=>{const _0x4fdea2=this['_suggestions']['get'](_0x1499cc);_0x4fdea2&&_0x4fdea2['commentThread']&&0x1===_0x4fdea2['commentThread']['length']&&this['_updateSuggestionData'](_0x1499cc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x41d19c,'removeComment',(_0x5cbc83,{threadId:_0x41a026})=>{const _0x20895b=this['_suggestions']['get'](_0x41a026);_0x20895b&&_0x20895b['commentThread']&&!_0x20895b['commentThread']['length']&&this['_updateSuggestionData'](_0x41a026,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x4ba889){const _0x1c8e48='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x115dc7=0x793e0,_0x1bc996={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x949a(_0x9499a){const _0xcf7232=new window['Promise'](_0x204038=>{_0x9499a['once']('ready',_0x204038);}),_0x4cb705=window['Date']['now'](),_0xe2e0f0=_0x9499a['config']['get']('licenseKey');async function _0x562c02(){let _0x437703,_0x50936c=null,_0x88efea=null;try{return'GPL'==_0xe2e0f0?'NotAllowed':(_0x437703=_0x48b335(),_0x437703?(_0x437703['usageEndpoint']&&(_0x88efea=_0x4084c5(_0x437703['usageEndpoint'],_0x437703['jti'])),await _0x4da2db()?_0x1a53f1()?_0x4b56ee()?'Expired':_0x86b71d()?('evaluation'==_0x437703['licenseType']&&(_0x50936c=_0x4d7f42('EvaluationLimit')),await _0x94cfe2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4b56ee(){const _0x4a2ce6=['evaluation','trial']['includes'](_0x437703['licenseType'])?_0x4cb705/0x3e8:0xe10*_0x115dc7;return _0x437703['exp']<_0x4a2ce6;}function _0x1a53f1(){const _0x43bdbf=_0x437703['features'];if(!_0x43bdbf)return!0x1;if(_0x43bdbf['includes']('*'))return!0x0;if(_0x43bdbf['includes']('TC'))return!0x0;if(_0x43bdbf['includes']('RTC')){if(_0x5ade0c())return!0x0;if(_0x20e8ab()||_0x23df05())return!0x0;}return!0x1;}function _0x86b71d(){const _0x2a7636=_0x437703['licensedHosts'];if(!_0x2a7636||0x0==_0x2a7636['length'])return!0x0;const {hostname:_0x24966e}=new URL(window['location']['href']);if(_0x2a7636['includes'](_0x24966e))return!0x0;const _0x5b03dc=_0x24966e['split']('.');return _0x2a7636['filter'](_0x4d3c62=>_0x4d3c62['includes']('*'))['map'](_0x1ced5b=>_0x1ced5b['split']('.'))['filter'](_0x5ec9f6=>_0x5ec9f6['length']<=_0x5b03dc['length'])['map'](_0x3a5dd6=>Array(_0x5b03dc['length']-_0x3a5dd6['length'])['fill']('*'===_0x3a5dd6[0x0]?'*':'')['concat'](_0x3a5dd6))['some'](_0x3685e8=>_0x5b03dc['every']((_0x7dbad9,_0x20a332)=>_0x3685e8[_0x20a332]===_0x7dbad9||'*'===_0x3685e8[_0x20a332]));}function _0x94cfe2(){return _0x50936c&&_0x88efea?new window['Promise']((_0x233881,_0x402223)=>{_0x50936c['then'](_0x233881,_0x402223),_0x88efea['then'](_0x371710=>{'Valid'!=_0x371710&&_0x233881(_0x371710);},_0x402223);}):_0x50936c||_0x88efea||'Valid';}}function _0x4084c5(_0xebc786,_0x271194){return new window['Promise'](_0x581878=>{if(_0x5e1f9b())return _0x581878('Valid');_0x4279f7(),_0x9499a['decorate']('_sendUsageRequest');let _0x3940f6=!0x1;const _0x49e2ba=_0x511020();function _0x4e458d(_0x42d481){return!!_0x42d481&&('object'==typeof _0x42d481||'function'==typeof _0x42d481)&&'function'==typeof _0x42d481['then']&&'function'==typeof _0x42d481['catch'];}function _0x8f0a27(_0x3c923f){_0x378636(_0x3c923f)['then'](_0x58b3b7=>_0x58b3b7&&'ok'==_0x58b3b7['status']?_0x429d46(_0x4fd690(_0x49e2ba+_0x271194))!=_0x58b3b7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2130af=>(_0x27020c(),_0x2130af),()=>{const _0x1f6983=_0x290e84();return null==_0x1f6983?(_0x27020c(),'Valid'):_0x4cb705-_0x1f6983>0x240c8400?'UsageLimit':'Valid';})['then'](_0x581878)['catch'](()=>{_0x581878('UsageLimit');});const _0x5cb07e=0x36ee80;function _0x27020c(){const _0x5b53d9='llct-'+_0x429d46(_0x4fd690(_0xebc786)),_0x342924=_0x36586c(_0x429d46(window['Math']['ceil'](_0x4cb705/_0x5cb07e)));window['localStorage']['setItem'](_0x5b53d9,_0x342924);}function _0x290e84(){const _0x480c9b='llct-'+_0x429d46(_0x4fd690(_0xebc786)),_0x10953d=window['localStorage']['getItem'](_0x480c9b);return _0x10953d?window['parseInt'](_0x36586c(_0x10953d),0x10)*_0x5cb07e:null;}function _0x378636(_0x2685b5){return new window['Promise']((_0x4f57e6,_0x5e3c81)=>{_0x2685b5['then'](_0x4f57e6,_0x5e3c81),window['setTimeout'](_0x5e3c81,0x1d4c0);});}}_0x9499a['on']('_sendUsageRequest',(_0xbaef32,_0x8bb1b7)=>{if(_0x8bb1b7[0x0]!=_0xebc786)return _0x581878('UsageLimit');_0x8bb1b7[0x1]={..._0x8bb1b7[0x1],'requestId':_0x49e2ba};},{'priority':'high'}),_0x9499a['on']('_sendUsageRequest',_0x35b238=>{_0x4e458d(_0x35b238['return'])&&(_0x3940f6=!0x0,_0x8f0a27(_0x35b238['return']));},{'priority':'low'}),_0xcf7232['then'](()=>{_0x3940f6||_0x581878('UsageLimit');});});function _0x5e1f9b(){return'auto'==_0x9499a['editing']['view']['_overlayModeHint'];}function _0x4279f7(){_0x9499a['editing']['view']['_overlayModeHint']='auto';}}function _0x4d7f42(_0x4b57f9){const _0x2f8b08=[new window['Promise'](_0x265016=>setTimeout(_0x265016,0x93ecc)),_0xcf7232['then'](()=>new window['Promise'](_0x323ce5=>{let _0x3d6b2b=0x0;_0x9499a['model']['on']('applyOperation',(_0x1c8ed8,_0x184516)=>{_0x184516[0x0]['isDocumentOperation']&&_0x3d6b2b++,0x5e8==_0x3d6b2b&&(_0x323ce5(),_0x1c8ed8['off']());});}))];return window['Promise']['race'](_0x2f8b08)['then'](()=>_0x4b57f9);}async function _0x283e53(){await _0xcf7232,_0x9499a['model']['change']=_0x299b9a,_0x9499a['model']['enqueueChange']=_0x299b9a,_0x9499a['enableReadOnlyMode']('model');}function _0x5ade0c(){return _0x1600fc('WebSocketGateway')&&'connected'==_0x102932('WebSocketGateway')['state'];}function _0x20e8ab(){return _0x1600fc('RevisionViewerIntegration');}function _0x23df05(){return _0x1600fc('TrackChangesDataGetter');}function _0xd70ab0(_0x5609a0){const _0x24832f=_0x1cd2ed();_0x9499a[_0x24832f]='trackChangesLicenseKey'+_0x5609a0,'Valid'!=_0x5609a0&&_0x283e53();}function _0x1cd2ed(){const _0x16abc1=window['String'](window['performance']['now']())['replace']('.','');let _0x1be009='U';for(let _0x4df002=0x0;_0x4df002<_0x16abc1['length'];_0x4df002+=0x2){let _0x42362b=window['parseInt'](_0x16abc1['substring'](_0x4df002,_0x4df002+0x2));_0x42362b>=0x3e&&(_0x42362b-=0x3e),_0x1be009+=_0x1c8e48[_0x42362b];}return _0x1be009;}function _0x48b335(){const _0x307c60=_0xe2e0f0['split']('.');if(0x3!=_0x307c60['length'])return null;return _0x5ea1f5(_0x307c60[0x1]);function _0x5ea1f5(_0x35040a){const _0x21ea94=_0x1d8c08(_0x35040a);return _0x21ea94&&_0x10f624()?_0x21ea94:null;function _0x10f624(){const _0x563d2f=_0x21ea94['jti'],_0x3a2a24=window['parseInt'](_0x563d2f['substring'](_0x563d2f['length']-0x8),0x10),_0x69623f={..._0x21ea94,'jti':_0x563d2f['substring'](0x0,_0x563d2f['length']-0x8)};return delete _0x69623f['vc'],_0x4fd690(_0x69623f)==_0x3a2a24;}}}async function _0x4da2db(){let _0x59dffc=!0x0;try{const [_0x252d22,_0x4cc1c5,_0x413b49]=_0xe2e0f0['split']('.');return _0x1842c7(_0x252d22),await _0xf0e2e3(_0x252d22,_0x4cc1c5,_0x413b49),_0x59dffc;}catch{return!0x1;}function _0x1842c7(_0x3e0fdc){const _0x2716c6=_0x1d8c08(_0x3e0fdc);_0x2716c6&&'ES256'==_0x2716c6['alg']||(_0x59dffc=!0x1);}async function _0xf0e2e3(_0x15a326,_0x48f9b5,_0x4b0b01){const _0x3e617c=window['Uint8Array']['from'](_0x5bbc70(_0x4b0b01),_0x384ecb=>_0x384ecb['charCodeAt'](0x0)),_0x3cd3e9=new window['TextEncoder']()['encode'](_0x15a326+'.'+_0x48f9b5),_0x27426c=window['crypto']['subtle'];if(!_0x27426c)return;const _0x5114a1=await _0x27426c['importKey']('jwk',_0x1bc996,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x27426c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5114a1,_0x3e617c,_0x3cd3e9)||(_0x59dffc=!0x1);}}function _0x1d8c08(_0x349db8){return _0x349db8['startsWith']('ey')?JSON['parse'](_0x5bbc70(_0x349db8)):null;}function _0x5bbc70(_0xe846c1){return window['atob'](_0xe846c1['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4fd690(_0x4f94f9){let _0x379344=0x1505;function _0x4d96f2(_0x3905ed){for(let _0x15a6e9=0x0;_0x15a6e9<_0x3905ed['length'];_0x15a6e9++){const _0x8573f6=_0x3905ed['charCodeAt'](_0x15a6e9);_0x379344=(_0x379344<<0x5)+_0x379344+_0x8573f6,_0x379344&=_0x379344;}}function _0x395cf6(_0x4b003c){Array['isArray'](_0x4b003c)?_0x4b003c['forEach'](_0x395cf6):_0x4b003c&&'object'==typeof _0x4b003c?Object['entries'](_0x4b003c)['sort']()['forEach'](([_0x31d32f,_0x4ec9e5])=>{_0x4d96f2(_0x31d32f),_0x395cf6(_0x4ec9e5);}):_0x4d96f2(window['String'](_0x4b003c));}return _0x395cf6(_0x4f94f9),_0x379344>>>0x0;}function _0x429d46(_0x5c61bd){return _0x5c61bd['toString'](0x10)['padStart'](0x8,'0');}function _0x36586c(_0x353bbb){return _0x353bbb['split']('')['reverse']()['join']('');}function _0x1600fc(_0xfddfd2){return _0x9499a['plugins']['has'](_0xfddfd2);}function _0x102932(_0x962892){return _0x9499a['plugins']['get'](_0x962892);}function _0x299b9a(){}_0xd70ab0(await _0x562c02());}_0x949a(_0x4ba889['editor']);}(this);}set adapter(_0x7fb008){if(this['_adapter'])throw new _0x2e4b79('track-changes-adapter-already-set',this);this['_adapter']=_0x7fb008;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x342535=!0x1,toJSON:_0x4f3176=!0x1}={}){const _0x368835=[];for(const _0x2ce0c3 of this['_suggestions']['values']())_0x342535&&!_0x2ce0c3['isInContent']||_0x368835['push'](_0x2ce0c3);return _0x4f3176?_0x368835['map'](_0x4ea819=>_0x4ea819['toJSON']()):_0x368835;}getSuggestion(_0x31bb7e){const _0x78aca6=this['_suggestions']['get'](_0x31bb7e);if(!_0x78aca6)throw new _0x2e4b79('track-changes-suggestion-not-found',this);return _0x78aca6;}hasSuggestion(_0x1c5147){return this['_suggestions']['has'](_0x1c5147);}addSuggestionData(_0x29d205){const {authorId:_0x4fdcfb,id:_0x2d22c5,originalSuggestionId:_0x1d4fb0,attributes:_0x1068f2}=_0x29d205,[_0x19fc7e,_0x4445f8]=_0x29d205['type']['split'](':'),_0x49d0e2=this['_suggestions']['get'](_0x2d22c5)||this['_createSuggestion'](_0x19fc7e,_0x4445f8,_0x2d22c5,_0x4fdcfb,_0x1068f2,_0x1d4fb0);if(this['_addThreadToSuggestion'](_0x49d0e2),this['_checkSuggestionCorrectness'](_0x49d0e2,_0x19fc7e,_0x4445f8||null,_0x4fdcfb),_0x49d0e2['createdAt']=_0x29d205['createdAt'],_0x49d0e2['_isDataLoaded']=!0x0,_0x1068f2&&_0x1068f2['@external']){const _0x1b77a7=_0x1068f2['@external'],_0x313859=this['_getExternalAuthor'](_0x1b77a7['authorName']);_0x49d0e2['authoredAt']=_0x1b77a7['createdAt'],_0x49d0e2['author']=_0x313859;}else _0x49d0e2['authoredAt']=_0x29d205['createdAt'];switch(_0x29d205['data']&&(_0x49d0e2['data']=_0x29d205['data']),_0x29d205['attributes']&&(_0x49d0e2['attributes']=_0x29d205['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x49d0e2['_saved']=!0x0),this['_suggestionState']['get'](_0x49d0e2)){case'notReady':this['_suggestionState']['set'](_0x49d0e2,'dataReady');break;case'markerReady':_0x49d0e2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x49d0e2])),this['_refreshSuggestionsChain'](new Set([_0x49d0e2])),this['_suggestionState']['set'](_0x49d0e2,'ready'),this['fire']('suggestionLoaded',_0x49d0e2)):this['_suggestionState']['set'](_0x49d0e2,'removed');}return _0x49d0e2;}acceptSuggestion(_0x1c1504){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f3fa9 of _0x1c1504['getAllAdjacentSuggestions']())_0x5f3fa9['accept']();});});}discardSuggestion(_0x422f79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe0ed86 of _0x422f79['getAllAdjacentSuggestions']())_0xe0ed86['discard']();});});}['enableCommand'](_0x1a7c9c,_0xb5feb2){const _0x552b1d=this['editor']['commands']['get'](_0x1a7c9c);if(!_0x552b1d)throw new _0x2e4b79('track-changes-command-not-found',this,{'commandName':_0x1a7c9c});if(this['_enabledCommands']['has'](_0x552b1d))throw new _0x2e4b79('track-changes-enable-command-twice',this,{'commandName':_0x1a7c9c});this['_enabledCommands']['add'](_0x552b1d),_0xb5feb2&&_0x552b1d['on']('execute',(_0xb5ed8d,_0x21fca5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21fca5['length']>0x0&&_0x21fca5[_0x21fca5['length']-0x1]&&_0x21fca5[_0x21fca5['length']-0x1]['forceDefaultExecution']?_0x21fca5['pop']():(_0xb5ed8d['return']=_0xb5feb2((..._0x4d89fd)=>_0x552b1d['execute'](..._0x4d89fd,{'forceDefaultExecution':!0x0}),..._0x21fca5),_0xb5ed8d['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x51bb17){let _0x38197c,_0xbb091a;const _0x4b8508=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38197c=_0x51bb17();}catch(_0x24f63e){_0xbb091a=_0x24f63e;}return _0x4b8508||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbb091a&&_0x2e4b79['rethrowUnexpectedError'](_0xbb091a,this),_0x38197c;}markInsertion(_0x2fd1d9,_0x215fc7=null,_0x312931={}){if(_0x2fd1d9['isCollapsed'])return null;const _0x38aef6=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x312931['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x51fb99,meta:_0x21bb94}of this['_findSuggestions'](_0x2fd1d9,'insertion'))if(_0x21bb94['isOwn']){if(!_0x21bb94['isNextTo']){if(_0x21bb94['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x51fb99,_0x312931))continue;return _0x51fb99;}if(pn(_0x51fb99,_0x312931))return _0x51fb99;this['_breakSuggestionMarker'](_0x51fb99,_0x2fd1d9['start'],_0x2fd1d9['end']);break;}if(_0x215fc7==_0x51fb99['subType']&&pn(_0x51fb99,_0x312931)){const _0x58786e=_0x51fb99['getFirstRange']();return _0x58786e['start']['isEqual'](_0x2fd1d9['end'])?this['_setSuggestionRange'](_0x51fb99,this['_model']['createRange'](_0x2fd1d9['start'],_0x58786e['end'])):this['_setSuggestionRange'](_0x51fb99,this['_model']['createRange'](_0x58786e['start'],_0x2fd1d9['end'])),_0x51fb99;}}const _0x14b790=_0x511020(),_0x994297=_0x38aef6['id'],_0x5084df=_0x215fc7?'insertion:'+_0x215fc7:'insertion',_0x4ccda4=this['_setSuggestionData']({'id':_0x14b790,'type':_0x5084df,'createdAt':new Date(),'authorId':_0x994297,'attributes':_0x312931});return this['_addSuggestionMarker'](_0x5084df,_0x14b790,_0x994297,_0x2fd1d9),_0x4ccda4;}markMultiRangeInsertion(_0x116cc1,_0x2d9490='multi',_0x11e6b2={}){const _0x3e6a0c=this['editor']['plugins']['get']('Users')['me'],_0x3088b1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d9490,'join');this['_trackingSessionId']&&(_0x11e6b2['trackingSessionId']=this['_trackingSessionId']);for(const _0x6a001a of this['getSuggestions']())if(_0x6a001a['author']['id']==_0x3e6a0c['id']&&'insertion'==_0x6a001a['type']&&_0x6a001a['subType']==_0x2d9490&&pn(_0x6a001a,_0x11e6b2)&&(_0x3088b1(_0x6a001a['getRanges'](),_0x116cc1)||_0x3088b1(_0x116cc1,_0x6a001a['getRanges']()))){for(const _0x3ab57d of _0x116cc1)_0x6a001a['addRange'](_0x3ab57d);return _0x6a001a;}for(const {suggestion:_0x1e612b,meta:_0x53c7d8}of this['_findSuggestions'](_0x116cc1,'insertion')){if(!_0x53c7d8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53c7d8['containsRangeInObject'])continue;if(!pn(_0x1e612b,_0x11e6b2))continue;let _0x3cdc2d=!0x0;for(const _0x424167 of _0x1e612b['getRanges']())for(const _0x165e33 of _0x116cc1)if(!_0x424167['containsRange'](_0x165e33)){_0x3cdc2d=!0x1;break;}if(_0x3cdc2d)return _0x1e612b;}const _0x671629=_0x511020(),_0x1b4ba9=_0x3e6a0c['id'],_0x33be9f='insertion:'+_0x2d9490,_0xf3f4f8=this['_setSuggestionData']({'id':_0x671629,'type':_0x33be9f,'createdAt':new Date(),'authorId':_0x1b4ba9,'attributes':_0x11e6b2});for(const _0x1a5a3e of _0x116cc1)this['_addSuggestionMarker'](_0x33be9f,_0x671629,_0x1b4ba9,_0x1a5a3e,St['getMultiRangeId']());return _0xf3f4f8;}markInlineFormat(_0x16f37c,_0x17aa95,_0x1eb66f=null,_0xbf41c={}){if(_0x1eb66f=_0x1eb66f||dn(_0x17aa95),_0x16f37c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xbf41c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x38d19b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb66f,'accept');return this['forceDefaultExecution'](()=>_0x38d19b([_0x16f37c],_0x17aa95,_0xbf41c)),null;}const _0x49e7cf=this['editor']['plugins']['get']('Users')['me'],_0x27680d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ddd11,meta:_0x5d4bc9}of this['_findSuggestions'](_0x16f37c,'insertion'))_0x5d4bc9['isOwn']&&!_0x5d4bc9['isInsideObject']&&_0x27680d['push'](..._0x3ddd11['getRanges']());}const _0x30b8f5=function(_0x4594c6,_0x4e2982){const _0x5b03ed=[];for(const _0x3af80b of _0x4e2982){const _0x29e307=_0x4594c6['getIntersection'](_0x3af80b);_0x29e307&&_0x5b03ed['push'](_0x29e307);}return _0x5b03ed;}(_0x16f37c,_0x27680d),_0x470e30=function(_0x32c3c7,_0x5d89e2){const _0x3868b7=[_0x32c3c7];for(const _0x559466 of _0x5d89e2){let _0x389c63=0x0;for(;_0x389c63<_0x3868b7['length'];){const _0x3668e2=_0x3868b7[_0x389c63]['getDifference'](_0x559466);_0x3868b7['splice'](_0x389c63,0x1,..._0x3668e2),_0x389c63+=_0x3668e2['length'];}}return _0x3868b7;}(_0x16f37c,_0x27680d);_0x30b8f5['length']&&this['_model']['change'](()=>{for(const _0x5bd3e4 of _0x30b8f5){const _0x4c8336=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb66f,'accept');this['forceDefaultExecution'](()=>_0x4c8336([_0x5bd3e4],_0x17aa95,_0xbf41c));}});for(const _0x4376bc of _0x470e30){let _0x4e2da4=null,_0x38568a=_0x4376bc['start'],_0x5414a6=_0x4376bc['end'];for(const {suggestion:_0x312dc6,meta:_0x131034}of this['_findSuggestions'](_0x4376bc,'formatInline')){if(!_0x131034['isOwn'])continue;if(_0x312dc6['subType']!=_0x1eb66f)continue;if(!pn(_0x312dc6,_0xbf41c))continue;const _0x5e7b37=_0x312dc6['getFirstRange']();if(_0x5e7b37['containsRange'](_0x4376bc,!0x0))return null;_0x38568a=_0x38568a['isBefore'](_0x5e7b37['start'])?_0x38568a:_0x5e7b37['start'],_0x5414a6=_0x5414a6['isAfter'](_0x5e7b37['end'])?_0x5414a6:_0x5e7b37['end'],_0x4e2da4?_0x5e7b37['start']['isBefore'](_0x4e2da4['getFirstRange']()['start'])?(_0x4e2da4['removeMarkers'](),_0x4e2da4=_0x312dc6):_0x312dc6['removeMarkers']():_0x4e2da4=_0x312dc6;}const _0x4f6e16=this['_model']['createRange'](_0x38568a,_0x5414a6);if(_0x4e2da4)this['_setSuggestionRange'](_0x4e2da4,_0x4f6e16);else{const _0x389918=_0x511020(),_0x438d9b=_0x49e7cf['id'];this['_setSuggestionData']({'id':_0x389918,'type':'formatInline:'+_0x1eb66f,'data':_0x17aa95,'createdAt':new Date(),'authorId':_0x438d9b,'attributes':_0xbf41c}),this['_addSuggestionMarker']('formatInline:'+_0x1eb66f,_0x389918,_0x438d9b,_0x4f6e16);}}return null;}markBlockFormat(_0x54c8ab,_0x133b14,_0x1b4bb6=[],_0x40f52d=null,_0x4e9cac={}){_0x133b14['formatGroupId']||(_0x133b14['formatGroupId']=_0x133b14['commandName']),_0x133b14['multipleBlocks']=_0x54c8ab['is']('range'),_0x40f52d=_0x40f52d||dn(_0x133b14);const _0x11b93d=_0x1b4bb6['map'](_0x41291e=>En(_0x41291e,this['_model'])),_0xd443a0=_0x54c8ab['is']('range')?_0x54c8ab:En(_0x54c8ab,this['_model']);if(this['_trackingSessionId']&&(_0x4e9cac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4c951a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40f52d,'accept');return this['forceDefaultExecution'](()=>_0x4c951a([_0xd443a0],_0x133b14,_0x4e9cac)),null;}_0x11b93d['push'](_0xd443a0);let _0x22fc25=!0x0;for(const _0x7e5038 of _0x11b93d)if(!this['_rangeIsInLocalUserInsertion'](_0x7e5038)){_0x22fc25=!0x1;break;}if(_0x22fc25&&'always'!==this['_trackFormatChanges']){const _0x456da0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40f52d,'accept');return this['forceDefaultExecution'](()=>_0x456da0([_0xd443a0],_0x133b14,_0x4e9cac)),null;}let _0x43f813=null,_0xf12221=_0xd443a0['start'],_0x293a91=_0xd443a0['end'];for(const {suggestion:_0x113e56,meta:_0x302312}of this['_findSuggestions'](_0xd443a0,'formatBlock')){if(!_0x302312['isOwn'])continue;if(_0x302312['isNextTo']||_0x302312['containsRangeInObject']||_0x302312['isInsideObject'])continue;if(_0x113e56['data']['formatGroupId']!=_0x133b14['formatGroupId'])continue;if(!pn(_0x113e56,_0x4e9cac))continue;const _0x2e20d8=_0x113e56['getFirstRange']();if(_0x113e56['subType']==_0x40f52d){if(_0x2e20d8['containsRange'](_0xd443a0,!0x0))return null;_0xf12221=_0xf12221['isBefore'](_0x2e20d8['start'])?_0xf12221:_0x2e20d8['start'],_0x293a91=_0x293a91['isAfter'](_0x2e20d8['end'])?_0x293a91:_0x2e20d8['end'],_0x43f813?_0x2e20d8['start']['isBefore'](_0x43f813['getFirstRange']()['start'])?(_0x43f813['removeMarkers'](),_0x43f813=_0x113e56):_0x113e56['removeMarkers']():_0x43f813=_0x113e56;}else{const _0x110651=_0xd443a0['getIntersection'](_0x2e20d8);this['_cutOutSuggestionMarker'](_0x113e56,_0x110651);}}const _0x1d7274=this['editor']['plugins']['get']('Users')['me'],_0x125409=_0x511020(),_0x4a7b3a=_0x1d7274['id'];if(_0x43f813)return this['_setSuggestionRange'](_0x43f813,this['_model']['createRange'](_0xf12221,_0x293a91)),_0x43f813;{const _0x476192=this['_setSuggestionData']({'id':_0x125409,'type':'formatBlock:'+_0x40f52d,'data':_0x133b14,'createdAt':new Date(),'authorId':_0x4a7b3a,'attributes':_0x4e9cac});return this['_addSuggestionMarker']('formatBlock:'+_0x40f52d,_0x125409,_0x4a7b3a,this['_model']['createRange'](_0xf12221,_0x293a91)),_0x476192;}}markMultiRangeBlockFormat(_0x5f23ba,_0x1af42f,_0x304c8c=[],_0x293122=null,_0x2cf4ce={}){_0x1af42f['formatGroupId']||(_0x1af42f['formatGroupId']=_0x1af42f['commandName']);const _0xfc7c3f=_0x5f23ba[0x0];_0x1af42f['multipleBlocks']=_0xfc7c3f['is']('range'),_0x293122=_0x293122||dn(_0x1af42f);const _0x106cef=_0x304c8c['map'](_0x53d624=>En(_0x53d624,this['_model'])),_0x10b913=_0xfc7c3f['is']('range')?_0x5f23ba:_0x5f23ba['map'](_0x54a2cd=>En(_0x54a2cd,this['_model']));if(this['_trackingSessionId']&&(_0x2cf4ce['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x489bdd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x293122,'accept');return this['forceDefaultExecution'](()=>_0x489bdd(_0x10b913,_0x1af42f,_0x2cf4ce)),null;}_0x106cef['push'](..._0x10b913);let _0x432b55=!0x0;for(const _0x5275e6 of _0x106cef)if(!this['_rangeIsInLocalUserInsertion'](_0x5275e6)){_0x432b55=!0x1;break;}if(_0x432b55&&'always'!==this['_trackFormatChanges']){const _0xa6b2bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x293122,'accept');return this['forceDefaultExecution'](()=>_0xa6b2bf(_0x10b913,_0x1af42f,_0x2cf4ce)),null;}const _0x3b267e=this['editor']['plugins']['get']('Users')['me'];for(const _0xe492d7 of this['getSuggestions']()){const _0xfa777e=_0xe492d7['data'];if(_0xe492d7['author']['id']!=_0x3b267e['id'])continue;if('formatBlock'!=_0xe492d7['type']||_0xfa777e['formatGroupId']!=_0x1af42f['formatGroupId'])continue;if(!pn(_0xe492d7,_0x2cf4ce))continue;const _0x189980=_0xe492d7['subType']==_0x293122;for(let _0x2f79b9=0x0;_0x2f79b9<_0x10b913['length'];_0x2f79b9++){const _0x33fd67=_0x10b913[_0x2f79b9];for(const _0x4d5b17 of _0xe492d7['getMarkers']()){const _0x55f051=_0x4d5b17['getRange']();if(_0x33fd67['isEqual'](_0x55f051)){_0x189980?(_0x10b913['splice'](_0x2f79b9,0x1),_0x2f79b9--):_0xe492d7['removeMarker'](_0x4d5b17['name']);break;}}}}if(0x0==_0x10b913['length'])return null;const _0x3e2809=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x293122,'join');for(const _0x4209a0 of this['getSuggestions']()){const _0x137210=_0x4209a0['data'];if(_0x4209a0['author']['id']==_0x3b267e['id']&&('formatBlock'==_0x4209a0['type']&&_0x137210['formatGroupId']==_0x1af42f['formatGroupId']&&_0x4209a0['subType']==_0x293122&&pn(_0x4209a0,_0x2cf4ce)&&(_0x3e2809(_0x4209a0['getRanges'](),_0x10b913)||_0x3e2809(_0x10b913,_0x4209a0['getRanges']())))){for(const _0x17f82d of _0x10b913)_0x4209a0['addRange'](_0x17f82d);return _0x4209a0;}}const _0xf8dcb4=_0x511020(),_0x81f3f8=_0x3b267e['id'],_0x22141c='formatBlock:'+_0x293122,_0x50f3e8=this['_setSuggestionData']({'id':_0xf8dcb4,'type':_0x22141c,'data':_0x1af42f,'createdAt':new Date(),'authorId':_0x81f3f8,'attributes':_0x2cf4ce});for(const _0x239660 of _0x10b913)this['_addSuggestionMarker'](_0x22141c,_0xf8dcb4,_0x81f3f8,_0x239660,St['getMultiRangeId']());return _0x50f3e8;}markDeletion(_0x3f703c,_0x171b9e=null,_0x4a2491={}){if(_0x3f703c['isCollapsed'])return null;const _0x3eeba1=this['editor']['plugins']['get']('Users')['me'],_0x334417=new rt(_0x3f703c['start'],_0x3f703c['end']);this['_trackingSessionId']&&(_0x4a2491['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ec495,meta:_0x565d83}of this['_findSuggestions'](_0x334417,'insertion'))if(_0x565d83['isOwn']&&!_0x565d83['isNextTo']){if(_0x1ec495['isMultiRange']){const _0x6de437=_0x1ec495['getRanges']()['filter'](_0x35adf0=>'$graveyard'!=_0x35adf0['root']['rootName']);if(_0x6de437['every'](_0x281ffc=>_0x334417['containsRange'](_0x281ffc,!0x0))&&_0x1ec495['discard'](),_0x6de437['some'](_0x3d538a=>_0x3d538a['containsRange'](_0x334417,!0x0))){const _0x516506=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x171b9e,'accept');return this['forceDefaultExecution'](()=>_0x516506([_0x334417],null,_0x4a2491)),null;}}else{const _0x1a93e6=_0x334417['getIntersection'](_0x1ec495['getFirstRange']());null!==_0x1a93e6&&_0x1ec495['_onDiscard']([_0x1a93e6],null,_0x4a2491);}}if(_0x334417['detach'](),_0x334417['isCollapsed']||'$graveyard'==_0x334417['root']['rootName'])return null;let _0x216580=null,_0x41a039=_0x334417['start'],_0x4d05ea=_0x334417['end'];const _0x53249f=this['_findSuggestions'](_0x334417,'deletion');for(const {suggestion:_0x4e4fff,meta:_0x5b6bb9}of _0x53249f){const _0x783a4d=this['_model']['createRange'](_0x41a039,_0x4d05ea);if(_0x5b6bb9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b6bb9['containsRangeInObject']&&!_0x5b6bb9['isInsideObject'])){if(_0x4e4fff['isMultiRange']){if(!pn(_0x4e4fff,_0x4a2491))continue;let _0x62334c=!0x0;for(const _0x2e9d45 of _0x4e4fff['getRanges']()){if(_0x2e9d45['containsRange'](_0x783a4d,!0x0))return _0x4e4fff;_0x783a4d['containsRange'](_0x2e9d45)||(_0x62334c=!0x1);}_0x62334c&&_0x4e4fff['discard']();}else{const _0x317821=_0x4e4fff['getFirstRange']();if(_0x317821['containsRange'](_0x783a4d,!0x0))return _0x4e4fff;if(!pn(_0x4e4fff,_0x4a2491)){_0x783a4d['containsRange'](_0x317821)?_0x4e4fff['removeMarkers']():_0x317821['containsPosition'](_0x41a039)?_0x41a039=_0x317821['end']:_0x317821['containsPosition'](_0x4d05ea)&&(_0x4d05ea=_0x317821['start']);continue;}_0x41a039=_0x41a039['isBefore'](_0x317821['start'])?_0x41a039:_0x317821['start'],_0x4d05ea=_0x4d05ea['isAfter'](_0x317821['end'])?_0x4d05ea:_0x317821['end'],_0x4a2491=Object['assign']({},_0x4e4fff['attributes']),_0x216580?_0x317821['start']['isBefore'](_0x216580['getFirstRange']()['start'])?(_0x216580['removeMarkers'](),_0x216580=_0x4e4fff):_0x4e4fff['removeMarkers']():_0x216580=_0x4e4fff;}}}if(_0x216580)return this['_setSuggestionRange'](_0x216580,this['_model']['createRange'](_0x41a039,_0x4d05ea)),_0x216580;{const _0x5608bf=_0x511020(),_0x238627=this['_model']['createRange'](_0x41a039,_0x4d05ea),_0x35c899=_0x3eeba1['id'],_0x486beb=_0x171b9e?'deletion:'+_0x171b9e:'deletion',_0x46a378=this['_setSuggestionData']({'id':_0x5608bf,'type':_0x486beb,'createdAt':new Date(),'authorId':_0x35c899,'attributes':_0x4a2491});return this['_addSuggestionMarker'](_0x486beb,_0x5608bf,_0x35c899,_0x238627),_0x46a378;}}markMultiRangeDeletion(_0x252a08,_0x42b213='multi',_0x22d83c={}){const _0x538430=this['editor']['plugins']['get']('Users')['me'],_0x3d7325=_0x252a08['map'](_0x5f1129=>new rt(_0x5f1129['start'],_0x5f1129['end'])),_0x6b5669=new Set();this['_trackingSessionId']&&(_0x22d83c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4e622c,meta:_0x2024e1}of this['_findSuggestions'](_0x3d7325,'insertion'))_0x2024e1['isOwn']&&!_0x2024e1['isNextTo']&&_0x6b5669['add'](_0x4e622c);for(const _0x30fe73 of _0x6b5669)if(_0x30fe73['isMultiRange']){const _0x273628=_0x30fe73['getRanges']();if(_0x30fe73['attributes']&&_0x30fe73['attributes']['skipNestingCheck']||_0x273628['every'](_0x529d6c=>_0x3d7325['some'](_0x3c75dc=>_0x3c75dc['containsRange'](_0x529d6c,!0x0)))&&_0x30fe73['discard'](),_0x3d7325['every'](_0x285d39=>_0x273628['some'](_0x47d3bb=>_0x47d3bb['containsRange'](_0x285d39,!0x0)))){const _0x395c4f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42b213,'accept');return this['forceDefaultExecution'](()=>_0x395c4f(_0x252a08,null,_0x22d83c)),null;}}else{const _0x348cec=_0x30fe73['getFirstRange']();if(_0x3d7325['some'](_0x520023=>_0x520023['containsRange'](_0x348cec,!0x0))&&_0x30fe73['discard'](),_0x3d7325['every'](_0x53017e=>_0x348cec['containsRange'](_0x53017e,!0x0))){const _0x21e4ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42b213,'accept');return this['forceDefaultExecution'](()=>_0x21e4ab(_0x3d7325,null,_0x22d83c)),null;}}const _0x40d768=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42b213,'join');let _0x166cd3=null;for(const _0xb7d6d5 of this['getSuggestions']())if(_0xb7d6d5['author']['id']==_0x538430['id']&&_0xb7d6d5['isInContent']&&'deletion'==_0xb7d6d5['type']&&_0xb7d6d5['subType']==_0x42b213&&pn(_0xb7d6d5,_0x22d83c)&&(_0x40d768(_0xb7d6d5['getRanges'](),_0x3d7325)||_0x40d768(_0x3d7325,_0xb7d6d5['getRanges']()))){if(_0x166cd3){if(_0xb7d6d5['commentThread']&&_0xb7d6d5['commentThread']['length'])continue;for(const _0x3861c7 of _0xb7d6d5['getRanges']())_0x166cd3['isIntersectingWithRange'](_0x3861c7)||_0x166cd3['addRange'](_0x3861c7);_0xb7d6d5['removeMarkers']();}else{_0x166cd3=_0xb7d6d5;for(const _0x129e7d of _0x3d7325)_0xb7d6d5['isIntersectingWithRange'](_0x129e7d)||_0xb7d6d5['addRange'](_0x129e7d);}}if(_0x166cd3)return _0x166cd3;_0x6b5669['clear']();for(const {suggestion:_0x4137f9,meta:_0x18f456}of this['_findSuggestions'](_0x3d7325,'deletion'))_0x18f456['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18f456['containsRangeInObject']&&!_0x18f456['isInsideObject'])&&pn(_0x4137f9,_0x22d83c)&&_0x6b5669['add'](_0x4137f9);for(const _0x66ad90 of _0x6b5669){const _0x5255c2=_0x66ad90['getRanges']();if((!_0x22d83c||!_0x22d83c['skipNestingCheck'])&&_0x3d7325['every'](_0x516002=>_0x5255c2['some'](_0x2f978e=>_0x2f978e['containsRange'](_0x516002,!0x0))))return _0x66ad90;_0x66ad90['attributes']&&_0x66ad90['attributes']['skipNestingCheck']||_0x5255c2['every'](_0x8f0643=>_0x3d7325['some'](_0xbca3e0=>_0xbca3e0['containsRange'](_0x8f0643,!0x0)))&&_0x66ad90['discard']();}const _0x115fab=_0x511020(),_0x59930=_0x538430['id'],_0x51c151='deletion:'+_0x42b213,_0x402f30=this['_setSuggestionData']({'id':_0x115fab,'type':_0x51c151,'createdAt':new Date(),'authorId':_0x59930,'attributes':_0x22d83c});for(const _0x1beb0d of _0x3d7325)_0x1beb0d['detach'](),_0x1beb0d['isCollapsed']||'$graveyard'==_0x1beb0d['root']['rootName']||this['_addSuggestionMarker'](_0x51c151,_0x115fab,_0x59930,_0x1beb0d,St['getMultiRangeId']());return _0x402f30;}markAttributeChange(_0x47ae27,_0x51045d,_0x5ca3ec,_0x17b2c9,_0x3c70df){if(_0x47ae27['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x104828=this['editor']['plugins']['get']('Users')['me']['id'],_0x58a625=Array['from'](this['_suggestions']['values']())['filter'](_0x30d240=>'attribute'==_0x30d240['type']&&_0x30d240['data']['key']==_0x51045d&&_0x30d240['isIntersectingWithRange'](_0x47ae27));if(this['_trackingSessionId']&&(_0x3c70df['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4eaafe=this['_findSuggestions'](_0x47ae27,'insertion')['filter'](({meta:_0x4ef3c5})=>_0x4ef3c5['isOwn']&&!_0x4ef3c5['isInsideObject']&&!_0x4ef3c5['isNextTo'])['map'](({suggestion:_0x5e4da9})=>_0x5e4da9);_0x58a625['unshift'](..._0x4eaafe);}const _0x14d5f3=new Map([[_0x47ae27,_0x5ca3ec]]);for(const _0x4a3cf4 of _0x58a625){const _0x1a78de='attribute'==_0x4a3cf4['type']?_0x4a3cf4['data']['oldValue']:void 0x0,_0x530278=_0x4a3cf4['getFirstRange'](),_0x5336e5=Array['from'](_0x14d5f3['keys']())['find'](_0x3cf9ac=>_0x3cf9ac['isIntersecting'](_0x530278));if(!_0x5336e5)continue;const _0x1b6b97=_0x5336e5['getDifference'](_0x530278);this['_suggestionsConversion']['isBlockAttribute'](_0x51045d)&&'insertion'==_0x4a3cf4['type']&&0x0!=_0x1b6b97['length']||(_0x14d5f3['delete'](_0x5336e5),_0x1b6b97['forEach'](_0x13b368=>{_0x14d5f3['set'](_0x13b368,_0x5ca3ec);}),'insertion'!=_0x4a3cf4['type']&&_0x1a78de!=_0x17b2c9&&_0x14d5f3['set'](_0x5336e5['getIntersection'](_0x530278),_0x1a78de));}const _0x3b10a4=[];for(const [_0x237311,_0x5af268]of _0x14d5f3){const _0x424b0e=_0x511020(),_0x3f280b={'key':_0x51045d,'oldValue':_0x5af268,'newValue':_0x17b2c9};_0x51045d['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':_0x51045d});const _0x628b05=('attribute:'+_0x51045d+'|'+dn({'newValue':_0x17b2c9}))['substring'](0x0,0x3c),_0x4087c3=this['_setSuggestionData']({'id':_0x424b0e,'type':_0x628b05,'data':_0x3f280b,'createdAt':new Date(),'authorId':_0x104828,'attributes':_0x3c70df});_0x3b10a4['push'](_0x4087c3),this['_addSuggestionMarker'](_0x628b05,_0x424b0e,_0x104828,_0x237311);}return _0x3b10a4;}enableDefaultAttributesIntegration(_0x8be52f){this['enableCommand'](_0x8be52f,(_0x32adff,..._0x24d229)=>{this['recordAttributeChanges'](()=>{_0x32adff(..._0x24d229);});});}startTrackingSession(_0x5f09b9){return this['_trackingSessionId']=void 0x0!==_0x5f09b9?_0x5f09b9:_0x511020(),this['_trackingSessionId'];}_getAttributeKey(_0x316c69){return'attribute'==_0x316c69['type']?In(_0x316c69['subType']):null;}_applyOperationsAsSuggestions(_0x374216){if(0x0==_0x374216['length'])return;const _0x130301=this['editor'],_0x3f37a7=[],_0x416fc7=_0x1e37b4=>{const _0xa960c5=_0x1e37b4['_aiSource'];return _0xa960c5?{'@ai':{'type':_0xa960c5}}:{};},_0x4a3bfd=(_0x2f40a8,_0x44ec68,_0x33e4ea)=>{for(let _0x4f3347=_0x44ec68;_0x4f3347<_0x2f40a8['operations']['length'];_0x4f3347++)_0x2f40a8['operations'][_0x4f3347]['_aiSource']=_0x33e4ea;};_0x130301['model']['change'](_0x57f079=>{for(let _0x50e47e=0x0;_0x50e47e<_0x374216['length'];_0x50e47e++){const _0x3e1731=_0x374216[_0x50e47e],_0x35c09b=_0x3e1731['_aiSource'],_0x3ae58a=_0x57f079['batch']['operations']['length'];if(_0x3e1731['baseVersion']=_0x130301['model']['document']['version'],_0x3e1731['isDocumentOperation']=!0x0,!_0x5ed444(_0x3e1731)){if(rn(_0x3e1731)){const _0x51a062=_0x3ce490(_0x3e1731['newRange'],_0x130301['model']);_0x3f37a7['unshift']({'range':rt['fromRange'](_0x51a062),'opAttributes':_0x416fc7(_0x3e1731),'aiSource':_0x35c09b});}else{switch(_0x3e1731['type']){case'rename':{const _0x44a3e0=_0x3e1731['oldName'],_0x2e2d71=_0x3e1731['newName'];if(_0x44a3e0==_0x2e2d71)break;_0x57f079['batch']['addOperation'](_0x3e1731),_0x130301['model']['applyOperation'](_0x3e1731);const _0x47055a='$elementName',_0x5217f7=_0x3e1731['position'],_0x394732=_0x130301['model']['createRange'](_0x5217f7,_0x130301['model']['createPositionAt'](_0x5217f7['nodeAfter'],'end'));this['markAttributeChange'](_0x394732,_0x47055a,_0x44a3e0,_0x2e2d71,{..._0x416fc7(_0x3e1731),'groupId':_0x511020()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x54d2cf=_0x3e1731['oldValue'],_0x47098d=_0x3e1731['newValue'];if(_0x54d2cf==_0x47098d)break;_0x57f079['batch']['addOperation'](_0x3e1731),_0x130301['model']['applyOperation'](_0x3e1731);const _0x76d7ff=_0x3e1731['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x76d7ff))break;const _0xcbd016=_0x3ce490(_0x3e1731['range'],_0x130301['model']);this['markAttributeChange'](_0xcbd016,_0x76d7ff,_0x54d2cf,_0x47098d,{..._0x416fc7(_0x3e1731),'groupId':_0x511020()});break;}case'insert':{if(_0x57f079['batch']['addOperation'](_0x3e1731),_0x130301['model']['applyOperation'](_0x3e1731),_0x374216[_0x50e47e+0x1]&&'move'==_0x374216[_0x50e47e+0x1]['type'])break;const _0x711ab9=_0x3e1731['position'],_0x777c4d=_0x3e1731['howMany'],_0xf68ecf=_0x3ce490(_0x130301['model']['createRange'](_0x711ab9,_0x711ab9['getShiftedBy'](_0x777c4d)),_0x130301['model']);this['markInsertion'](_0xf68ecf,null,{..._0x416fc7(_0x3e1731)});break;}case'split':{_0x57f079['batch']['addOperation'](_0x3e1731),_0x130301['model']['applyOperation'](_0x3e1731);const _0x58f091=_0x3e1731['splitPosition'],_0x2910b4=_0x3e1731['moveTargetPosition'],_0x5d50a7=_0x130301['model']['createRange'](_0x58f091,_0x2910b4);this['markInsertion'](_0x5d50a7,null,{..._0x416fc7(_0x3e1731)});break;}case'move':case'remove':_0x57f079['batch']['addOperation'](_0x3e1731),_0x130301['model']['applyOperation'](_0x3e1731);}_0x35c09b&&_0x4a3bfd(_0x57f079['batch'],_0x3ae58a,_0x35c09b);}}}for(const {range:_0x2b05fa,opAttributes:_0x49770a,aiSource:_0x2cf00e}of _0x3f37a7){const _0x44ff6d=_0x57f079['batch']['operations']['length'];_0x2b05fa['detach'](),this['markDeletion'](_0x2b05fa,null,{..._0x49770a}),_0x2cf00e&&_0x4a3bfd(_0x57f079['batch'],_0x44ff6d,_0x2cf00e);}});}_setSuggestionRange(_0x2cd09d,_0x46c3d8){const _0x11a9c0=_0x2cd09d['getFirstMarker']();this['_model']['change'](_0x156c2d=>{_0x156c2d['updateMarker'](_0x11a9c0,{'range':_0x46c3d8});});}_addThreadToSuggestion(_0x32f9bf){const _0x429f27=_0x32f9bf['id'],_0xf87cf6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x429f27)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf87cf6,'threadId':_0x429f27,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23b695=this['_commentsRepository']['getCommentThread'](_0x429f27);_0x23b695['unbind']('isRemovable'),_0x23b695['isRemovable']=!0x1,_0x32f9bf['commentThread']=_0x23b695;}_checkSuggestionCorrectness(_0x2a98f2,_0x5f228c,_0x794a17,_0x50817c){if(_0x2a98f2['type']!=_0x5f228c||_0x2a98f2['subType']!=_0x794a17||_0x2a98f2['creator']['id']!=_0x50817c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2e4b79('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x28b12a,_0x2ed1fc){const _0x48a605=_0x28b12a['getFirstRange']();if(_0x2ed1fc['isEqual'](_0x48a605))_0x28b12a['removeMarkers']();else{if(_0x48a605['containsRange'](_0x2ed1fc)){const _0x5de8bc=this['_model']['createPositionAt'](_0x2ed1fc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b12a,this['_model']['createRange'](_0x48a605['start'],_0x5de8bc));const _0x11dc2c=_0x511020(),_0x3a00cd=_0x28b12a['creator']['id'],_0x4783ed=_0x28b12a['type']+':'+_0x28b12a['subType'];this['_setSuggestionData']({'id':_0x11dc2c,'type':_0x4783ed,'createdAt':new Date(),'authorId':_0x3a00cd,'data':_0x28b12a['data'],'attributes':_0x28b12a['attributes']});const _0x2adfda=this['_model']['createPositionAt'](_0x2ed1fc['end']['parent'],'after'),_0x43a2b2=this['_model']['createRange'](_0x2adfda,_0x48a605['end']);this['_addSuggestionMarker'](_0x4783ed,_0x11dc2c,_0x3a00cd,_0x43a2b2);}else{if(_0x48a605['containsPosition'](_0x2ed1fc['start'])){const _0x248b1e=this['_model']['createPositionAt'](_0x2ed1fc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b12a,this['_model']['createRange'](_0x48a605['start'],_0x248b1e));}else{const _0x64bf5d=this['_model']['createPositionAt'](_0x2ed1fc['end']['parent'],'after');this['_setSuggestionRange'](_0x28b12a,this['_model']['createRange'](_0x64bf5d,_0x48a605['end']));}}}}_rangeIsInLocalUserInsertion(_0x4e6aa7){for(const {suggestion:_0x3845dc,meta:_0x1fb4ef}of this['_findSuggestions'](_0x4e6aa7,'insertion')){if(!_0x1fb4ef['isOwn'])continue;const _0x5cedb9=_0x3845dc['getRanges']();for(const _0xcd7cfe of _0x5cedb9)if(!_0x4e6aa7['getDifference'](_0xcd7cfe)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x3ede0a){return this['editor']['plugins']['get']('Users')['getUser'](_0x3ede0a);}_getExternalAuthor(_0x243a8d){const _0x4e9b30=this['editor']['plugins']['get']('Users'),_0x6db257=_0x151279('external:'+_0x243a8d),_0x1c0387=_0x4e9b30['getUser'](_0x6db257);return _0x1c0387||_0x4e9b30['addUser']({'id':_0x6db257,'name':_0x243a8d});}_createSuggestion(_0x3f9f0d,_0xfacfed,_0x28baf5,_0x688d09,_0x14fdee,_0x8e0e8e){const _0x154dad=this['_getAuthorFromId'](_0x688d09);if(!_0x154dad)throw new _0x2e4b79('track-changes-user-not-found',this,{'authorId':_0x688d09,'suggestionId':_0x28baf5});const _0x3280a1=this['_suggestionFactory']['buildSuggestion'](_0x3f9f0d,_0xfacfed,_0x28baf5,_0x154dad,_0x14fdee,_0x553553=>{this['_updateSuggestionData'](_0x28baf5,{'attributes':_0x553553});const _0x22b62b=this['getSuggestion'](_0x28baf5);this['_joinWithAdjacentSuggestions'](new Set([_0x22b62b])),this['_refreshSuggestionsChain'](new Set([_0x22b62b]));},_0x8e0e8e);return this['listenTo'](_0x3280a1,'accept',()=>{this['_updateSuggestionData'](_0x28baf5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3280a1,'discard',()=>{this['_updateSuggestionData'](_0x28baf5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28baf5,_0x3280a1),this['_suggestionState']['set'](_0x3280a1,'notReady'),_0x3280a1;}_breakSuggestionMarker(_0x42ca1b,_0x3d1dff,_0xe3c7eb){const _0x56d43f=_0x42ca1b['getFirstRange'](),_0x28bb1e=_0x56d43f['start'],_0x27b5ef=_0x56d43f['end'];this['_setSuggestionRange'](_0x42ca1b,this['_model']['createRange'](_0x28bb1e,_0x3d1dff));const _0x576196=_0x511020(),_0x421e30=_0x42ca1b['creator']['id'],_0x1b76df=_0x42ca1b['type']+(_0x42ca1b['subType']?':'+_0x42ca1b['subType']:'');this['_setSuggestionData']({'id':_0x576196,'type':_0x1b76df,'createdAt':new Date(),'authorId':_0x421e30,'originalSuggestionId':_0x42ca1b['_originalSuggestionId']||_0x42ca1b['id'],'attributes':_0x42ca1b['attributes'],'data':_0x42ca1b['data']});const _0x42dba1=this['_getAttributeKey'](_0x42ca1b);('formatBlock'==_0x42ca1b['type']||_0x42dba1&&this['_suggestionsConversion']['isBlockAttribute'](_0x42dba1))&&(_0xe3c7eb=this['_model']['createPositionBefore'](_0xe3c7eb['parent'])),this['_addSuggestionMarker'](_0x1b76df,_0x576196,_0x421e30,this['_model']['createRange'](_0xe3c7eb,_0x27b5ef));}_findSuggestions(_0x4dad59,_0x312bcd=null){const _0x18fa4b=[],_0x105e0f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4dad59)||(_0x4dad59=[_0x4dad59]);for(const _0x384aa5 of this['getSuggestions']()){if(!_0x384aa5['isInContent'])continue;if(_0x312bcd&&_0x384aa5['type']!=_0x312bcd)continue;let _0x31979a=!0x1;for(const _0x4ad06b of _0x384aa5['getRanges']()){for(const _0x55c30a of _0x4dad59){const _0x3a7a8a=_0x55c30a['start']['isEqual'](_0x4ad06b['end'])||_0x55c30a['end']['isEqual'](_0x4ad06b['start']);if(_0x3a7a8a||_0x55c30a['getIntersection'](_0x4ad06b)){const _0x434a93=_0x55c30a['containsRange'](_0x4ad06b)&&cn(this['_model']['schema'],_0x4ad06b['start'],_0x55c30a),_0x15302d=_0x4ad06b['containsRange'](_0x55c30a)&&cn(this['_model']['schema'],_0x55c30a['start'],_0x4ad06b);_0x18fa4b['push']({'suggestion':_0x384aa5,'meta':{'isOwn':_0x105e0f==_0x384aa5['author'],'isNextTo':_0x3a7a8a,'isInsideObject':_0x434a93,'containsRangeInObject':_0x15302d}}),_0x31979a=!0x0;break;}}if(_0x31979a)break;}}return _0x18fa4b;}_addSuggestionMarker(_0x1437ab,_0x44c32e,_0x28cfd6,_0x23a884,_0x1f1ef2){this['_model']['change'](_0x571309=>{let _0x1cb0a3='suggestion:'+_0x1437ab+':'+_0x44c32e+':'+_0x28cfd6;_0x1f1ef2&&(_0x1cb0a3=_0x1cb0a3+':'+_0x1f1ef2),_0x571309['addMarker'](_0x1cb0a3,{'range':_0x23a884,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x3b1613){const _0x696d13=_0x3b1613['previous'],_0x2e0b6e=_0x3b1613['next'];_0x3b1613['previous']=null,_0x3b1613['next']=null,null!=_0x696d13&&_0x696d13['next']==_0x3b1613&&(_0x696d13['next']=_0x2e0b6e),null!=_0x2e0b6e&&_0x2e0b6e['previous']==_0x3b1613&&(_0x2e0b6e['previous']=_0x696d13),'ready'==this['_suggestionState']['get'](_0x3b1613)&&(this['_suggestionState']['set'](_0x3b1613,'removed'),this['fire']('suggestionUnloaded',_0x3b1613,_0x696d13,_0x2e0b6e));}_setSuggestionData(_0x3f79dd){const _0x18f0b5=_0x3f79dd['id'],_0xe7fbf5=this['addSuggestionData'](_0x3f79dd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x29dcf4=this['editor']['plugins']['get']('PendingActions'),_0x5352b1=_0xe7fbf5['hasComments'],_0x52318e=_0xe7fbf5['subType']?_0xe7fbf5['type']+':'+_0xe7fbf5['subType']:_0xe7fbf5['type'],_0x1e6c58=this['editor']['locale'],_0x190513=_0x29dcf4['add'](Mt(_0x1e6c58,'PENDING_ACTION_SUGGESTION')),_0x1806e5={'id':_0x18f0b5,'type':_0x52318e,'hasComments':_0x5352b1,'data':_0x3f79dd['data']||null,'originalSuggestionId':_0x3f79dd['originalSuggestionId']||null,'attributes':_0xe7fbf5['attributes']};this['_adapter']['addSuggestion'](_0x1806e5)['then'](_0x5ed25d=>{_0xe7fbf5['_saved']=!0x0,_0x29dcf4['remove'](_0x190513),_0x5ed25d&&_0x5ed25d['createdAt']&&(this['_suggestions']['get'](_0x18f0b5)['createdAt']=_0x5ed25d['createdAt']);})['catch'](_0x571121=>{throw _0x34a28d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xe7fbf5['discard']();}),_0xe7fbf5['stopListening'](),this['_suggestions']['delete'](_0xe7fbf5['id']),this['_suggestionState']['delete'](_0xe7fbf5),_0x571121;});}return _0xe7fbf5;}_updateSuggestionData(_0x153308,_0x24e718){const _0x47189b=this['editor']['plugins']['get']('PendingActions'),_0x4faa97=this['getSuggestion'](_0x153308);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4faa97['_saved']){const _0x2be998=_0x47189b['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x153308,_0x24e718)['then'](()=>{_0x47189b['remove'](_0x2be998);});}else _0x4faa97['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x153308,_0x24e718);});}}_getSuggestionData(_0x5def97){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2e4b79('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5def97);}_handleNewSuggestionMarker(_0x316cbe){const {id:_0x44afda,type:_0x5915e5,subType:_0x5a46cd,authorId:_0xa40405}=tt(_0x316cbe),_0xcf7b38=this['_suggestions']['get'](_0x44afda)||this['_createSuggestion'](_0x5915e5,_0x5a46cd,_0x44afda,_0xa40405,{});switch(this['_checkSuggestionCorrectness'](_0xcf7b38,_0x5915e5,_0x5a46cd,_0xa40405),this['_suggestionState']['get'](_0xcf7b38)){case'notReady':this['_getSuggestionData'](_0x44afda)['then'](_0x3e4aa6=>{let _0x3b56a0=Promise['resolve']();_0x3e4aa6['hasComments']&&(_0x3b56a0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44afda})),_0x3b56a0['then'](()=>{this['addSuggestionData'](_0x3e4aa6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xcf7b38,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44afda,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xcf7b38,'ready'),this['fire']('suggestionLoaded',_0xcf7b38);break;case'ready':this['fire']('suggestionChanged',_0xcf7b38);}return _0xcf7b38['addMarkerName'](_0x316cbe),_0xcf7b38;}_refreshSuggestionsChain(_0x4ec298){const _0x4d15db=Array['from'](_0x4ec298),_0x40304f=_0x4d15db['filter'](_0x528277=>'attribute'==_0x528277['type']);this['_refreshAttributeSuggestionsChain'](_0x40304f);const _0x29503a=_0x4d15db['filter'](_0x540b62=>!_0x540b62['isMultiRange']&&'attribute'!=_0x540b62['type']),_0x24d0f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2da2bd=>!_0x2da2bd['isMultiRange']&&'attribute'!=_0x2da2bd['type']),_0x344af8=_0x24d0f3['filter'](_0x45cd4b=>!_0x4ec298['has'](_0x45cd4b)),_0x308a24=new Map(_0x24d0f3['map'](_0x1035d8=>[_0x1035d8,this['_suggestionFactory']['getSuggestionCallback'](_0x1035d8['type'],_0x1035d8['subType'],'chain')])),_0x2b6e3e=new Map(_0x24d0f3['map'](_0x3e5963=>[_0x3e5963,_0x3e5963['getFirstRange']()])),_0x3bcccd=new Set(),_0x5e3497=new Set();for(let _0x17e52c=0x0;_0x17e52c<_0x29503a['length'];_0x17e52c++)_0x34fae8(_0x29503a[_0x17e52c],_0x29503a,_0x17e52c+0x1);for(let _0x447927=0x0;_0x447927<_0x29503a['length'];_0x447927++)_0x34fae8(_0x29503a[_0x447927],_0x344af8,0x0);const _0x550449=new Set();for(let _0x5577aa=0x0;_0x5577aa<_0x29503a['length'];_0x5577aa++){const _0x1bff7f=_0x29503a[_0x5577aa];!_0x5e3497['has'](_0x1bff7f)&&_0x1bff7f['previous']&&(_0x550449['add'](_0x1bff7f['previous']),_0x1bff7f['previous']['next']===_0x1bff7f&&(_0x1bff7f['previous']['next']=null),_0x1bff7f['previous']=null),!_0x3bcccd['has'](_0x1bff7f)&&_0x1bff7f['next']&&(_0x550449['add'](_0x1bff7f['next']),_0x1bff7f['next']['previous']===_0x1bff7f&&(_0x1bff7f['next']['previous']=null),_0x1bff7f['next']=null);}function _0x34fae8(_0x519783,_0x2b5136,_0xa21ea){for(let _0x3a0747=_0xa21ea;_0x3a0747<_0x2b5136['length'];_0x3a0747++){const _0x4ad98b=_0xbf1078(_0x519783,_0x2b5136[_0x3a0747]);_0x4ad98b&&(_0x4ad98b[0x0]['next']=_0x4ad98b[0x1],_0x4ad98b[0x1]['previous']=_0x4ad98b[0x0],_0x3bcccd['add'](_0x4ad98b[0x0]),_0x5e3497['add'](_0x4ad98b[0x1]));}}function _0xbf1078(_0x3022a3,_0x318551){if(_0x3022a3['author']['id']!==_0x318551['author']['id'])return null;const _0x561232=_0x308a24['get'](_0x3022a3)(_0x3022a3,_0x318551,_0x2b6e3e['get'](_0x3022a3),_0x2b6e3e['get'](_0x318551));return _0x561232&&_0x308a24['get'](_0x318551)(_0x3022a3,_0x318551,_0x2b6e3e['get'](_0x3022a3),_0x2b6e3e['get'](_0x318551))?_0x561232[0x1]['commentThread']&&_0x561232[0x1]['commentThread']['length']?null:_0x561232:null;}_0x550449['size']&&this['_refreshSuggestionsChain'](_0x550449);}_refreshAttributeSuggestionsChain(_0xd5a34){if(0x0==_0xd5a34['length'])return;const _0x384b17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x208e16=>'attribute'==_0x208e16['type']&&_0x208e16['_isDataLoaded']),_0x12b423=[],_0x1a2541=new Map();for(const _0x55dc33 of _0x384b17){const _0x173150=_0x151279(_0x55dc33['attributes']);_0x1a2541['has'](_0x173150)||(_0x1a2541['set'](_0x173150,_0x12b423['length']),_0x12b423['push']([])),_0x12b423[_0x1a2541['get'](_0x173150)]['push'](_0x55dc33);}!(function(){_0x12b423['sort']((_0x5d70ef,_0x4839fd)=>{const _0x46cf08=_0x5d70ef[0x0]['createdAt'],_0x1eed86=_0x4839fd[0x0]['createdAt'];return _0x46cf08==_0x1eed86?_0x5d70ef[0x0]['attributes']['groupId']<_0x4839fd[0x0]['attributes']['groupId']?-0x1:0x1:_0x46cf08<_0x1eed86?-0x1:0x1;});for(const _0x3eb015 of _0x12b423)_0x3eb015['sort']((_0x1bbe47,_0x303907)=>_0x1bbe47['id']<_0x303907['id']?-0x1:0x1);}());for(let _0x79ec61=0x0;_0x79ec61<_0x12b423['length'];_0x79ec61++){if(0x0==_0x12b423[_0x79ec61]['length'])continue;const _0x4ee04a=[];for(let _0x595cc6=_0x79ec61+0x1;_0x595cc6<_0x12b423['length'];_0x595cc6++)0x0!=_0x12b423[_0x595cc6]['length']&&_0x14c0ee(_0x12b423[_0x79ec61],_0x12b423[_0x595cc6])&&_0x4ee04a['push'](_0x595cc6);for(const _0x782473 of _0x4ee04a)_0x12b423[_0x79ec61]=_0x12b423[_0x79ec61]['concat'](_0x12b423[_0x782473]),_0x12b423[_0x782473]=[];}for(const _0x31e999 of _0x12b423)for(let _0xe9fc7c=0x0;_0xe9fc7c<_0x31e999['length'];_0xe9fc7c++){const _0x6d5016=_0x31e999[_0xe9fc7c+0x1]||null;_0x31e999[_0xe9fc7c]['next']!==_0x6d5016&&(_0x31e999[_0xe9fc7c]['next']=_0x6d5016);}for(const _0x3b647c of _0x12b423)for(let _0x1af1ec=0x0;_0x1af1ec<_0x3b647c['length'];_0x1af1ec++){const _0x5870c9=_0x3b647c[_0x1af1ec-0x1]||null;_0x3b647c[_0x1af1ec]['previous']!==_0x5870c9&&(_0x3b647c[_0x1af1ec]['previous']=_0x5870c9);}function _0x14c0ee(_0xb56537,_0x4518a1){if(_0xb56537[0x0]['attributes']['groupId']!==_0x4518a1[0x0]['attributes']['groupId']&&_0xb56537[0x0]['author']!==_0x4518a1[0x0]['author'])return!0x1;if(!function(_0x183dbe,_0x1cab0f){return!_0x183dbe['hasComments']&&!_0x1cab0f['hasComments']||(!_0x183dbe['hasComments']||!_0x1cab0f['hasComments'])&&(!!(_0x183dbe['hasComments']&&_0x1cab0f['createdAt']<_0x183dbe['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x1cab0f['hasComments']&&_0x183dbe['createdAt']<_0x1cab0f['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xb56537[0x0],_0x4518a1[0x0]))return!0x1;const _0x2bce8a=lt(_0xb56537[0x0]['attributes'],['groupId','trackingSessionId']),_0xa40ba=lt(_0x4518a1[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x2bce8a,_0xa40ba)&&(_0xb56537[0x0]['attributes']['groupId']==_0x4518a1[0x0]['attributes']['groupId']||_0xb56537[0x0]['attributes']['trackingSessionId']===_0x4518a1[0x0]['attributes']['trackingSessionId']&&(!!_0xb56537['every'](_0xb781fb=>_0x4518a1['some'](_0x1132e6=>_0xb781fb['getFirstRange']()['isEqual'](_0x1132e6['getFirstRange']())))&&_0x4518a1['every'](_0x3e6039=>_0xb56537['some'](_0x4448a8=>_0x3e6039['getFirstRange']()['isEqual'](_0x4448a8['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x4fd2ae){const _0x388105=Array['from'](_0x4fd2ae),_0x1b3b51=this['getSuggestions']({'skipNotAttached':!0x0}),_0x408c8d=_0x1b3b51['filter'](_0x437a7a=>!_0x4fd2ae['has'](_0x437a7a)),_0x3d8718=new Map(_0x388105['map'](_0x578d76=>[_0x578d76,this['_suggestionFactory']['getSuggestionCallback'](_0x578d76['type'],_0x578d76['subType'],'join')])),_0x4ddf9b=new Map(_0x1b3b51['map'](_0x288e03=>[_0x288e03,_0x288e03['getRanges']()]));for(let _0x220a49=0x0;_0x220a49<_0x388105['length'];_0x220a49++)if(_0x2231d5(this,_0x388105[_0x220a49],_0x388105,_0x220a49+0x1))return!0x0;for(let _0x2377bf=0x0;_0x2377bf<_0x388105['length'];_0x2377bf++)if(_0x2231d5(this,_0x388105[_0x2377bf],_0x408c8d,0x0))return!0x0;return!0x1;function _0x2231d5(_0x5c7739,_0x4550f5,_0x4647de,_0x4e0613){for(let _0x591911=_0x4e0613;_0x591911<_0x4647de['length'];_0x591911++){const _0x3690c3=_0x4647de[_0x591911];if(_0x3690c3['type']!==_0x4550f5['type']||_0x3690c3['author']['id']!==_0x4550f5['author']['id']||_0x3690c3['subType']!==_0x4550f5['subType'])continue;if(!_n(_0x4550f5,_0x3690c3))continue;if('attribute'==_0x4550f5['type']&&_0x4550f5['data']['oldValue']!=_0x3690c3['data']['oldValue'])continue;if('attribute'==_0x4550f5['type']&&_0x5c7739['_suggestionsConversion']['isBlockAttribute'](_0x4550f5['data']['key']))continue;if('formatBlock'==_0x4550f5['type']){const _0x399265=_0x5c7739['editor']['model'],_0x2b074a=_0x4550f5['getContainedElement']();if(_0x2b074a&&(_0x399265['schema']['isObject'](_0x2b074a)||_0x399265['schema']['isLimit'](_0x2b074a)))continue;}const _0x25484a=_0x3d8718['get'](_0x4550f5),_0x599111=_0x4ddf9b['get'](_0x4550f5),_0x58379e=_0x4ddf9b['get'](_0x3690c3),_0x4b1928=_0x4550f5['commentThread']&&_0x4550f5['commentThread']['length'],_0x53a478=_0x3690c3['commentThread']&&_0x3690c3['commentThread']['length'];if(!_0x4b1928&&_0x25484a(_0x58379e,_0x599111))return _0x5c7739['_joinSuggestions'](_0x3690c3,_0x4550f5),_0x4ddf9b['delete'](_0x4550f5),!0x0;if(!_0x53a478&&_0x25484a(_0x599111,_0x58379e))return _0x5c7739['_joinSuggestions'](_0x4550f5,_0x3690c3),_0x4ddf9b['delete'](_0x3690c3),!0x0;}return!0x1;}}_joinSuggestions(_0x5b930c,_0x542cba){if(_0x5b930c['isMultiRange']){for(const _0x58325f of _0x542cba['getRanges']())_0x5b930c['addRange'](_0x58325f);}else{const _0x5ac093=_0x542cba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b930c,this['_model']['createRange'](_0x5b930c['getFirstRange']()['start'],_0x5ac093));}_0x542cba['removeMarkers']();}_getMarkerAnnouncementText(_0x1d9ed4,_0x53e114,_0x29f513){const _0x4b2b83=_0x1d9ed4['startsWith']('format')||_0x1d9ed4['startsWith']('attribute')?'FORMATTING':_0x1d9ed4['toUpperCase']();return Mt(this['editor']['locale'],_0x53e114+'_'+_0x4b2b83+'_SUGGESTION_ANNOUNCEMENT',_0x29f513);}_initAriaMarkerChangeAnnouncements(){const _0x2ccf83=this['editor'];if(!_0x2ccf83['ui'])return;const {ariaLiveAnnouncer:_0x52e815}=_0x2ccf83['ui'];et(this['_model'],({left:_0x5a23c7,entered:_0x3ca127})=>{for(const _0x273686 of _0x5a23c7){const {group:_0x5c2e10,type:_0x3a042a}=tt(_0x273686['name']);if('suggestion'===_0x5c2e10){_0x52e815['announce'](this['_getMarkerAnnouncementText'](_0x3a042a,'LEAVE'));break;}}for(const _0x1b1ccf of _0x3ca127){const {group:_0x3eb56c,type:_0x30e652}=tt(_0x1b1ccf['name']);if('suggestion'===_0x3eb56c){_0x52e815['announce'](this['_getMarkerAnnouncementText'](_0x30e652,'ENTER',_0x4dc437(_0x4143c5)));break;}}});}_processAttributeChanges(_0x3bc359){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ef747=this['editor'],_0x33dd52=_0x3ef747['model']['document']['differ']['getChanges']();if(0x0==_0x33dd52['length'])return!0x1;const _0x434d17=[],_0xbfb3a0=_0x33dd52['filter'](_0x3f50aa=>'attribute'==_0x3f50aa['type']),_0x2bea=_0x33dd52['filter'](_0x13c7c7=>'insert'==_0x13c7c7['type']&&'$text'!=_0x13c7c7['name']),_0x4e00cb=_0x33dd52['filter'](_0x14a618=>'remove'==_0x14a618['type']&&'$text'!=_0x14a618['name']);for(const _0x12892d of _0xbfb3a0)_0x434d17['push']({'key':_0x12892d['attributeKey'],'newValue':_0x12892d['attributeNewValue'],'oldValue':_0x12892d['attributeOldValue'],'range':mn(_0x12892d['range'],_0x3ef747['model'])});for(const _0x4bbcac of _0x2bea){const _0x186cf2=_0x4e00cb['find'](_0x313a3a=>_0x313a3a['position']['isEqual'](_0x4bbcac['position']));_0x186cf2&&_0x434d17['push']({'key':sn,'newValue':_0x4bbcac['name'],'oldValue':_0x186cf2['name'],'range':_0x3ef747['model']['createRangeOn'](_0x4bbcac['position']['nodeAfter'])});}return 0x0!=_0x434d17['length']&&this['_reduceExistingSuggestions'](_0x3bc359,_0x434d17);}_processAttributeSuggestions(_0x314afd){let _0x3562c3=!0x1;const _0x590f36=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30898a=>_0x30898a['data']['newRange']&&_0x30898a['name']['startsWith']('suggestion:attribute:'));for(const _0x19b93d of _0x590f36){const {subType:_0x3045b8,id:_0x3865d5}=tt(_0x19b93d['name']),_0x546031=_0x3045b8['split']('|')[0x0];for(const _0xda71de of this['getSuggestions']({'skipNotAttached':!0x0}))_0xda71de['id']!=_0x3865d5&&'attribute'==_0xda71de['type']&&_0xda71de['data']&&_0xda71de['data']['key']==_0x546031&&_0xda71de['getFirstRange']()['isIntersecting'](_0x19b93d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xda71de,_0x19b93d['data']['newRange'],_0x314afd),_0x3562c3=!0x0);}return _0x3562c3;}recordAttributeChanges(_0x32d9e6){this['_recordAttributeSuggestions']=!0x0,_0x32d9e6();}_reduceExistingSuggestions(_0x1c15c5,_0x2c3433){if(0x0==_0x2c3433['length'])return!0x1;let _0x147872=!0x1;for(const _0x38b82a of _0x2c3433){const _0x25945f=this['_findSuggestions'](_0x38b82a['range'],'attribute')['filter'](_0x28868d=>!_0x28868d['meta']['isNextTo'])['map'](_0x2d3505=>_0x2d3505['suggestion']),_0x3aaef7=_0x151279({'newValue':_0x38b82a['newValue']});_0x25945f['filter'](_0x424a4c=>{const [_0x520c4e,_0x202a01]=_0x424a4c['subType']['split']('|');return _0x520c4e==_0x38b82a['key']&&_0x202a01!=_0x3aaef7;})['forEach'](_0x5dfdd8=>{this['_reduceSuggestionAttributeRange'](_0x5dfdd8,_0x38b82a['range'],_0x1c15c5),_0x147872=!0x0;});}return _0x147872;}_reduceSuggestionAttributeRange(_0x4a6681,_0x4cbde3,_0x162d75){const _0x431fe8=_0x4a6681['getFirstRange']()['getDifference'](_0x4cbde3);0x0!==_0x431fe8['length']?0x1!==_0x431fe8['length']?this['_breakSuggestionMarker'](_0x4a6681,_0x4cbde3['start'],_0x4cbde3['end']):this['_setSuggestionRange'](_0x4a6681,_0x431fe8[0x0]):_0x162d75['removeMarker'](_0x4a6681['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x3a3d98){this['_editor']=_0x3a3d98,this['_model']=_0x3a3d98['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x1be4ce,_0x1413d2,_0x2d3e98,_0xc143d7,_0x3ff918,_0x3a2364,_0x3ce676){return new St(this['_model'],{'type':_0x1be4ce,'subType':_0x1413d2,'id':_0x2d3e98,'originalSuggestionId':_0x3ce676,'author':_0xc143d7,'creator':_0xc143d7,'attributes':_0x3ff918,'onAttributesChange':_0x3a2364,'onAccept':(..._0x54440d)=>this['getSuggestionCallback'](_0x1be4ce,_0x1413d2,'accept')(..._0x54440d),'onDiscard':(..._0x2ff637)=>this['getSuggestionCallback'](_0x1be4ce,_0x1413d2,'discard')(..._0x2ff637)});}registerCustomCallback(_0xe2010,_0x1a5fed,_0x351895,_0x6af5e6){const _0x319464=_0xe2010+':'+_0x1a5fed+':'+_0x351895;this['_customCallbacks']['set'](_0x319464,_0x6af5e6);}getSuggestionCallback(_0x54ba25,_0x489b7e,_0x5b4063){const _0x46b31c=_0x54ba25+':'+_0x489b7e+':'+_0x5b4063;return this['_customCallbacks']['get'](_0x46b31c)||this['_defaultCallbacks']['get'](_0x54ba25+':'+_0x5b4063);}_registerDefaultCallbacks(){const _0x4a4853=()=>!0x1,_0xa81bb=_0x2a35a1=>{_0x2a35a1['sort']((_0x2b2dac,_0x4b9fb4)=>_0x2b2dac['start']['isBefore'](_0x4b9fb4['start'])?0x1:-0x1),this['_model']['change'](_0x45512f=>{for(const _0x4ac0c5 of _0x2a35a1){let _0x2960e2;_0x2960e2=_0x4ac0c5['end']['isAtEnd']&&_0x4ac0c5['end']['parent']==_0x4ac0c5['start']['nodeAfter']?_0x45512f['createSelection'](_0x4ac0c5['start']['nodeAfter'],'on'):_0x45512f['createSelection'](_0x4ac0c5),this['_model']['deleteContent'](_0x2960e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x475101=(_0x3e00af,_0x284aea)=>{_0x284aea&&this['_model']['change'](_0x5a414d=>{const {commandName:_0x6b043f,commandParams:_0x12a14b=[]}=_0x284aea,_0x570611=_0x3e00af['map'](_0x3e835b=>(ln(_0x3e835b)&&(_0x3e835b=this['_model']['createRange'](_0x3e835b['end'])),_0x3e835b))['filter'](_0x2d34fc=>'$graveyard'!==_0x2d34fc['root']['rootName']);if(_0x570611['length']<0x1)return;const _0x3cc9f4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x52344c=>rt['fromRange'](_0x52344c));_0x5a414d['setSelection'](_0x570611);for(const _0x511b79 of this['_editor']['commands']['commands']())_0x511b79['refresh']();_0x12a14b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6b043f,..._0x12a14b);const _0x4aba82=_0x3cc9f4['filter'](_0x375df5=>'$graveyard'!=_0x375df5['root']['rootName']);_0x4aba82['length']>0x0&&_0x5a414d['setSelection'](_0x4aba82);for(const _0xd2a844 of _0x3cc9f4)_0xd2a844['detach']();});},_0x3aa2e5=(_0x52497a,_0xc29c21)=>0x1==_0x52497a['length']&&0x1==_0xc29c21['length']&&_0x52497a[0x0]['end']['isEqual'](_0xc29c21[0x0]['start']),_0x33e85d=(_0x2af7db,_0x1ba0aa,_0xa78b32,_0x28b6c9)=>Tn(_0x2af7db,_0x1ba0aa,_0xa78b32,_0x28b6c9)?[_0x2af7db,_0x1ba0aa]:Tn(_0x1ba0aa,_0x2af7db,_0x28b6c9,_0xa78b32)?[_0x1ba0aa,_0x2af7db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a4853),this['_defaultCallbacks']['set']('insertion:discard',_0xa81bb),this['_defaultCallbacks']['set']('insertion:join',_0x3aa2e5),this['_defaultCallbacks']['set']('insertion:chain',_0x33e85d),this['_defaultCallbacks']['set']('deletion:accept',(_0x3a7e99,_0x563c5b,_0x5b84d9)=>{const _0x48ba82=(_0x5b84d9?.['@ai'])?.['type'];_0x48ba82?this['_model']['change'](_0x5b3d59=>{const _0xd68c80=_0x5b3d59['batch']['operations']['length'];_0xa81bb(_0x3a7e99);for(let _0x5d946e=_0xd68c80;_0x5d946e<_0x5b3d59['batch']['operations']['length'];_0x5d946e++)_0x5b3d59['batch']['operations'][_0x5d946e]['_aiSource']=_0x48ba82;}):_0xa81bb(_0x3a7e99);}),this['_defaultCallbacks']['set']('deletion:discard',_0x4a4853),this['_defaultCallbacks']['set']('deletion:join',_0x3aa2e5),this['_defaultCallbacks']['set']('deletion:chain',_0x33e85d),this['_defaultCallbacks']['set']('formatInline:accept',_0x475101),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a4853),this['_defaultCallbacks']['set']('formatInline:join',_0x3aa2e5),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a4853),this['_defaultCallbacks']['set']('formatBlock:accept',_0x475101),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a4853),this['_defaultCallbacks']['set']('formatBlock:join',_0x3aa2e5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a4853),this['_defaultCallbacks']['set']('attribute:accept',_0x4a4853),this['_defaultCallbacks']['set']('attribute:discard',(_0x5e254e,_0x375fc3)=>{if(!_0x375fc3)return;const _0x4280e3=this['_editor']['plugins']['get'](_0x2015d6);this['_model']['change'](_0x16524e=>{if('$elementName'==_0x375fc3['key'])for(const _0x3a960c of _0x5e254e){const _0x10cada=_0x3a960c['start']['nodeAfter'],_0x14f598=_0x375fc3['oldValue'];_0x16524e['rename'](_0x10cada,_0x14f598);}else{if(_0x4280e3['isBlockAttribute'](_0x375fc3['key'])){for(const _0x106ec0 of _0x5e254e)void 0x0!==_0x375fc3['oldValue']?_0x16524e['setAttribute'](_0x375fc3['key'],_0x375fc3['oldValue'],_0x106ec0['start']['nodeAfter']):_0x16524e['removeAttribute'](_0x375fc3['key'],_0x106ec0['start']['nodeAfter']);}else{for(const _0xdb1471 of _0x5e254e)_0x375fc3['oldValue']?_0x16524e['setAttribute'](_0x375fc3['key'],_0x375fc3['oldValue'],_0xdb1471):_0x16524e['removeAttribute'](_0x375fc3['key'],_0xdb1471);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3aa2e5);}};function cn(_0xa4f3fd,_0x4ab4ee,_0x2d83c1){for(const _0x1ad996 of _0x4ab4ee['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1ad996['root']==_0x1ad996)return!0x1;if(!_0x2d83c1['containsItem'](_0x1ad996))return!0x1;if(_0xa4f3fd['isObject'](_0x1ad996)||_0xa4f3fd['isLimit'](_0x1ad996))return!0x0;}return!0x1;}function ln(_0x4df320){return _0x4df320['end']['parent']==_0x4df320['start']['nodeAfter']&&_0x4df320['end']['isAtStart'];}function un(_0x4c5442,_0x3a7b66,_0x277708,_0x1b2596){const _0x30d36b=_0x5c7742=>!_0x5c7742['item']['is']('$textProxy')&&!_0x1b2596['isObject'](_0x5c7742['item']),_0xfa9736=_0x4c5442['start']['getLastMatchingPosition'](_0x30d36b),_0x35b84a=_0x4c5442['end']['getLastMatchingPosition'](_0x30d36b,{'direction':'backward'});return(!_0x4c5442['start']['isEqual'](_0xfa9736)||!_0x4c5442['end']['isEqual'](_0x35b84a))&&(_0xfa9736['isBefore'](_0x35b84a)?_0x277708['updateMarker'](_0x3a7b66,{'range':_0x277708['createRange'](_0xfa9736,_0x35b84a)}):_0x277708['removeMarker'](_0x3a7b66),!0x0);}function dn(_0x5e17fb){return _0x151279(_0x5e17fb);}function hn(_0x3df93c){const _0x4fc215=_0x3df93c['start']['nodeAfter'];return _0x4fc215&&_0x4fc215['is']('element');}function gn(_0x341ee5){return ln(_0x341ee5)||function(_0x5c7259){return _0x5c7259['start']['parent']==_0x5c7259['end']['nodeBefore']&&_0x5c7259['start']['isAtEnd'];}(_0x341ee5);}function fn(_0x5e2d46,_0x5599c3){try{const _0x1a4b89=_0x5e2d46['getRange']();for(const _0x41ab09 of _0x5599c3)if(_0x5e2d46!==_0x41ab09&&_0x1a4b89&&_0x1a4b89['isIntersecting'](_0x41ab09['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x2b3151,_0x46eff4){return null==_0x2b3151['end']['nodeBefore']&&_0x2b3151['end']['parent']==_0x2b3151['start']['nodeAfter']?En(_0x2b3151['start']['nodeAfter'],_0x46eff4):_0x2b3151;}function En(_0x679aa3,_0xf0d1fa){const _0x2cd422=_0xf0d1fa['schema']['isObject'](_0x679aa3)||_0xf0d1fa['schema']['isSelectable'](_0x679aa3);return _0xf0d1fa['createRange'](_0xf0d1fa['createPositionAt'](_0x679aa3,'before'),_0x2cd422?_0xf0d1fa['createPositionAfter'](_0x679aa3):_0xf0d1fa['createPositionAt'](_0x679aa3,'end'));}function Tn(_0x3ac66b,_0x2ab729,_0x5079ba,_0x13d69c){return!!_n(_0x3ac66b,_0x2ab729)&&_0x5079ba['end']['isEqual'](_0x13d69c['start']);}function _n(_0x2db5ed,_0x19360c){if(!_0x2db5ed['_isDataLoaded']||!_0x19360c['_isDataLoaded'])return!0x1;const _0xef93f7=new Set(Object['keys'](_0x2db5ed['attributes'])),_0x81b065=new Set(Object['keys'](_0x19360c['attributes']));if(_0xef93f7['delete']('groupId'),_0x81b065['delete']('groupId'),0x0==_0xef93f7['size']&&0x0==_0x81b065['size'])return!0x0;if(_0xef93f7['size']!=_0x81b065['size'])return!0x1;const _0x327092={..._0x2db5ed['attributes']},_0x21d9ad={..._0x19360c['attributes']};return delete _0x327092['groupId'],delete _0x21d9ad['groupId'],JSON['stringify'](_0x327092)==JSON['stringify'](_0x21d9ad);}function pn(_0x1a0022,_0x4f79ba){const _0x2d0f92=Ln(_0x1a0022['attributes']),_0x3f3c7d=Ln(_0x4f79ba);if(!_0x1a0022['_isDataLoaded'])return!0x1;if(!ct(_0x2d0f92['@ai'],_0x3f3c7d['@ai']))return!0x1;for(const _0x70e073 of Object['keys'](_0x3f3c7d))if(!ct(_0x2d0f92[_0x70e073],_0x3f3c7d[_0x70e073]))return!0x1;return!0x0;}function Ln(_0xd31d3e){const _0x11fdf7=Object['assign']({},_0xd31d3e);return delete _0x11fdf7['skipNestingCheck'],delete _0x11fdf7['tablePasteChainId'],_0x11fdf7;}function In(_0x9ea64f){return _0x9ea64f['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xe5e569();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x1d4c10,_0x3120dd,_0x38b60c,_0x40735a){super(),this['model']=_0x3120dd,this['view']=_0x38b60c,this['commentThreadController']=_0x40735a,this['_editor']=_0x1d4c10,this['_acceptCommand']=_0x1d4c10['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1d4c10['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d5d6e,_0x133fc1)=>_0x4d5d6e||_0x133fc1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2188cf=>_0x2188cf&&this['_editor']['model']['canEditAt'](_0x3120dd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x587db3=>_0x587db3&&this['_editor']['model']['canEditAt'](_0x3120dd['getRanges']())),this['_pendingAction']=null,_0x38b60c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38b60c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38b60c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38b60c,'change:isDirty',()=>{_0x38b60c['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 _0x398b84=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x398b84);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x33af14{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c7253,_0x32ac63,_0x31a7f3,_0x3d00b4){super(_0x3c7253),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb96d57(_0x3c7253,Mt(_0x3c7253,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x32ac63['authoredAt']),this['bind']('authoredAt')['to'](_0x32ac63),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',_0x32ac63,'authoredAt',this,'descriptionParts',(_0x825279,_0x322445,_0x4fc3a7)=>{const _0x505c27=_0x4fc3a7['map'](_0x8ae8ac=>Lt(_0x8ae8ac['content']))['join']('.\x20')+'.',_0x189d56=_0x32ac63['aiSource']&&'author'===_0x3d00b4['showAISource']?_0x3d00b4['aiAuthor']['name']:_0x32ac63['author']['name'],_0x555bad=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x825279-0x1,_0x189d56,_0x322445?_0x3d00b4['formatDateTime'](_0x322445):'',new DOMParser()['parseFromString'](_0x505c27,'text/html')['body']['textContent']]);return _0x32ac63['aiSource']&&'pill'===_0x3d00b4['showAISource']?_0x555bad+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x555bad;}),this['focusables']=new _0x1bf169(),this['focusTracker']=new _0x301735(),this['keystrokes']=new _0x89c2e(),this['focusCycler']=new _0xaa6d6a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x289971=>_0x289971['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x32ac63,this['_localUser']=_0x31a7f3,this['_config']=_0x3d00b4,_0x3d00b4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1cdc25(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x472d59}=this['_config'];this['commentsListView']=new _0x472d59(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',_0x25bb46=>_0x25bb46+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x20f997,_0x3fe770)=>_0x20f997||!!_0x3fe770);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x3db40b}=this['_config'],_0xa65896=new _0x3db40b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15aa80=_0xa65896['commentInputView'];return _0xa65896['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15aa80,'value',(_0x2dfe14,_0x4bccb3,_0x4ddb7b)=>!!_0x4ddb7b||_0x2dfe14&&!_0x4bccb3),_0x15aa80['on']('submit',(_0x1e9749,_0x2d940c)=>{this['fire']('addComment',_0x2d940c),_0x15aa80['editor']['setData']('');}),_0x15aa80['on']('cancel',()=>this['focus']()),_0x15aa80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xa65896;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x4b4df5,_0x20d464,_0x33fe82,_0x6f880e){super(_0x4b4df5,_0x20d464,_0x33fe82,_0x6f880e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9fa57=>_0x9fa57&&_0x9fa57[0x0]?_0x9fa57[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xee8dac,_0x49961f)=>{let _0x5f52de='';for(const _0x45d80c of _0xee8dac)_0x5f52de+='<p>'+Lt(_0x45d80c['content'],_0x45d80c['color'])+'</p>';return _0x49961f?_0x5f52de:nt(_0x5f52de,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6f880e['SuggestionView'](_0x4b4df5,_0x20d464,{'formatDateTime':_0x6f880e['formatDateTime'],'showAISource':_0x6f880e['showAISource'],'aiAuthor':_0x6f880e['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x301293=this['bindTemplate'],_0x584f83=[this['suggestionView']];return this['commentsListView']&&_0x584f83['push'](this['commentsListView']),this['commentThreadInputView']&&_0x584f83['push'](this['commentThreadInputView']),_0x584f83['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x301293['if']('isActive','ck-suggestion-wrapper--active'),_0x301293['to']('type',_0x244750=>'ck-suggestion-'+_0x244750),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':_0x301293['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x584f83};}['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));}},Rn=class extends _0x33af14{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x5d541a,_0x1a05a6,_0x35faf4){super(_0x5d541a),this['_model']=_0x1a05a6,this['_config']=_0x35faf4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a05a6),this['acceptButton']=this['_createButton'](Mt(_0x5d541a,'Accept\x20suggestion'),_0x4e8d53,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x5d541a,'Discard\x20suggestion'),_0x318f60,'ck-suggestion--discard','discardSuggestion','sw');const _0x24f14a=!!_0x1a05a6['aiSource']&&'author'===_0x35faf4['showAISource'],_0x14caf5=_0x24f14a?this['_createAIUser'](_0x35faf4['aiAuthor']):_0x1a05a6['author'],_0x346891=_0x24f14a&&!_0x35faf4['aiAuthor']['avatar']?_0x38b3c2:void 0x0;this['userView']=new _0x23be49(_0x5d541a,_0x14caf5,this['getUserViewNotificationText'](),_0x346891),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1bf169([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x301735(),this['keystrokes']=new _0x89c2e(),this['focusCycler']=new _0xaa6d6a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c4955=>_0x3c4955['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ad73a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ad73a['innerHTML']=this['description'],this['on']('change:description',(_0x5ccb21,_0x8af7d9,_0x215bbf)=>{_0x5ad73a['innerHTML']=_0x215bbf;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x59af1f=this['bindTemplate'],_0x17ff1c=[{'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':_0x59af1f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59af1f['to']('authoredAt',_0x3f5012=>this['_config']['formatDateTime'](_0x3f5012))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x17ff1c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x351a12=new _0x4749ff(this['locale']);_0x351a12['set']({'icon':_0x1a8bab,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x17ff1c['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x351a12]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x17ff1c}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x4d2118){return new _0x36cbcf({'id':'ck-ai-author','name':_0x4d2118['name'],'avatar':_0x4d2118['avatar'],'color':new _0x2321d3(0x0)});}_createButton(_0x402d98,_0x3d64b2,_0x533f60,_0x174077,_0x4dffbd){const _0x11b338=new _0x48c3a2(this['locale']);return _0x11b338['set']({'label':_0x402d98,'icon':_0x3d64b2,'tooltip':!0x0,'tooltipPosition':_0x4dffbd}),_0x11b338['extendTemplate']({'attributes':{'class':_0x533f60}}),_0x11b338['on']('execute',()=>{this['fire'](_0x174077,this['_model']['id']);}),_0x11b338;}_setupKeyboardNavigation(){const _0x2b41a8=this['element'];this['keystrokes']['listenTo'](_0x2b41a8);for(const _0x232ba3 of this['focusables'])this['focusTracker']['add'](_0x232ba3['element']),this['keystrokes']['listenTo'](_0x232ba3['element']);this['keystrokes']['set']('enter',(_0x5b8ed3,_0x2f6cb9)=>{_0x2b41a8===_0x5b8ed3['target']&&(this['focusCycler']['focusFirst'](),_0x2f6cb9());}),this['keystrokes']['set']('esc',(_0x52c03a,_0x50da45)=>{_0x2b41a8!==_0x52c03a['target']&&(this['focus'](),_0x50da45());});}},yn=class extends _0x16a669{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x57ba00,_0x263ae3,_0x555efe,_0x25a8bf];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2540b2){super(_0x2540b2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1477f4=this['editor']['config'];_0x1477f4['define']('trackChanges.SuggestionThreadView',Cn),_0x1477f4['define']('trackChanges.SuggestionView',Rn),_0x1477f4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1477f4['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x215e4f,_0x22597a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf8a835,_0x170c09]of this['_handleControllerBuffer']){const _0x1102db=this['_suggestionToController']['has'](_0xf8a835);_0x1102db||_0x170c09?_0x1102db&&_0x170c09&&this['_destroyController'](_0xf8a835):this['_initializeController'](_0xf8a835);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x25a8bf)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x215e4f,_0x22597a);}init(){const _0x383904=this['editor'],_0x38f1f9=_0x383904['plugins']['get'](on),_0x25c86c=_0x383904['plugins']['get'](_0x555efe),_0x2b1f15=_0x383904['plugins']['get'](_0x25a8bf),_0x541b69=_0x383904['plugins']['get'](_0x263ae3);this['_addUIComponentsToFactory'](),_0x2b1f15['addSourceCollector'](()=>{const _0x4fcb0a=[];for(const [_0x1b7dbb,_0x484926]of Array['from'](this['_suggestionToController'])){const _0x1c906e=_0x1b7dbb['getAllAdjacentSuggestions'](),_0x5a40fc=[];for(const _0x1def5f of _0x1c906e){if(!_0x1def5f['isInContent'])continue;if(_0x1def5f['isMultiRange']){_0x5a40fc['push'](..._0x1def5f['getRanges']());continue;}const _0x39f2d7=_0x1def5f['getFirstRange']();if(_0x5a40fc['length']>0x0){const _0x1ce138=_0x5a40fc[0x0]['getJoined'](_0x39f2d7);if(_0x1ce138){_0x5a40fc[0x0]=_0x1ce138;continue;}}_0x5a40fc['push'](_0x39f2d7);}_0x4fcb0a['push']([_0x484926['view'],_0x5a40fc]);}return _0x4fcb0a;}),this['listenTo'](_0x38f1f9,'suggestionLoaded',(_0x30e979,_0x2b5402)=>{this['listenTo'](_0x2b5402,'change:previous',(_0x1559aa,_0x5b55ff,_0x5483f1,_0x2f8a96)=>{_0x2b5402['isInContent']&&(null==_0x5483f1?(this['_updateController'](_0x2f8a96['head']),this['_handleSuggestionControllerDelayed'](_0x2b5402,!0x1)):(this['_updateController'](_0x5483f1['head']),null==_0x2f8a96&&this['_handleSuggestionControllerDelayed'](_0x2b5402,!0x0)));}),null!==_0x2b5402['previous']?this['_updateController'](_0x2b5402['head']):this['_handleSuggestionControllerDelayed'](_0x2b5402,!0x1);}),this['listenTo'](_0x38f1f9,'suggestionUnloaded',(_0x469347,_0x5eef9a,_0x3666ba)=>{this['stopListening'](_0x5eef9a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5eef9a),this['_suggestionToController']['has'](_0x5eef9a)&&this['_destroyController'](_0x5eef9a),_0x3666ba&&this['_updateController'](_0x3666ba['head']);}),this['listenTo'](_0x38f1f9,'suggestionChanged',(_0x2b6af2,_0x13f915)=>{this['_updateController'](_0x13f915);}),this['listenTo'](_0x25c86c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x541b69,'addComment',(_0x1ef6f0,{threadId:_0x23e83c,isFromAdapter:_0x5a9d9c})=>{if(_0x5a9d9c||!_0x38f1f9['hasSuggestion'](_0x23e83c))return;const _0x7a8838=_0x38f1f9['getSuggestion'](_0x23e83c);this['_suggestionToController']['get'](_0x7a8838)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x834060=[this['editor']];for(const _0x1d9b2d of _0x834060){let _0x53c455;for(const _0x39d6a7 in _0x1d9b2d){const _0x4a5d6a=_0x39d6a7,_0x5b000d=_0x1d9b2d[_0x4a5d6a];if('trackChangesLicenseKeyValid'==_0x5b000d||'trackChangesLicenseKeyInvalid'==_0x5b000d||'trackChangesLicenseKeyExpired'==_0x5b000d||'trackChangesLicenseKeyDomainLimit'==_0x5b000d||'trackChangesLicenseKeyNotAllowed'==_0x5b000d||'trackChangesLicenseKeyEvaluationLimit'==_0x5b000d||'trackChangesLicenseKeyUsageLimit'==_0x5b000d){delete _0x1d9b2d[_0x4a5d6a],_0x53c455=_0x5b000d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x53c455&&_0x1d9b2d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x53c455&&_0x1d9b2d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x53c455&&_0x1d9b2d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x53c455&&_0x1d9b2d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x53c455&&_0x1d9b2d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x53c455&&_0x1d9b2d['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x471533){const _0x52bdbd=this['_suggestionToController']['get'](_0x471533);return _0x52bdbd&&this['editor']['plugins']['get'](_0x555efe)['getByInnerView'](_0x52bdbd['view'])||null;}getSuggestionForAnnotation(_0x2c23bd){const _0x59f3da=this['_viewToController']['get'](_0x2c23bd['innerView']);return _0x59f3da?_0x59f3da['model']:null;}_refreshActiveMarkers(){const _0x25478b=this['editor']['plugins']['get'](_0x555efe),_0x8f29d4=this['editor']['plugins']['get'](on),_0x1b8ba5=Array['from'](_0x25478b['activeAnnotations'],_0x4ae1f0=>_0x4ae1f0['innerView'])['filter'](_0x456279=>this['_viewToController']['has'](_0x456279)),_0x258d28=[];for(const _0x21f909 of _0x1b8ba5){const _0x5f7ad8=this['_viewToController']['get'](_0x21f909)['model']['getAllAdjacentSuggestions']();_0x258d28['push'](..._0x5f7ad8['reduce']((_0x336a89,_0x41ed60)=>[..._0x336a89,..._0x41ed60['getMarkerNames']()],[]));}_0x8f29d4['activeMarkers']=_0x258d28;}_addUIComponentsToFactory(){const _0x1ba837=this['editor'],_0x261b38=_0x1ba837['locale'],_0x1e894c=Mt(_0x261b38,'Track\x20changes'),_0x488e04=new _0x44b323([{'type':'switchbutton','model':new _0x50912a({'withText':!0x0,'isToggleable':!0x0,'label':_0x1e894c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x50912a({'withText':!0x0,'label':Mt(_0x261b38,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50912a({'withText':!0x0,'label':Mt(_0x261b38,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50912a({'withText':!0x0,'label':Mt(_0x261b38,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50912a({'withText':!0x0,'label':Mt(_0x261b38,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ba837['plugins']['has']('TrackChangesPreview')&&_0x488e04['addMany']([{'type':'separator'},{'type':'button','model':new _0x50912a({'withText':!0x0,'label':Mt(_0x261b38,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4d6640 of _0x488e04)if(Nn(_0x4d6640)){const _0x126aae=_0x1ba837['commands']['get'](_0x4d6640['model']['commandName']);_0x4d6640['model']['bind']('isOn','isEnabled')['to'](_0x126aae,'value','isEnabled');}_0x1ba837['ui']['componentFactory']['add']('trackChanges',_0x28a514=>this['_createToolbarButton'](_0x28a514,_0x488e04,_0x1e894c)),_0x1ba837['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1025c8=>this['_createMenuBarMenu'](_0x1025c8,_0x488e04,_0x1e894c));}_createToolbarButton(_0x2ff15f,_0x24489a,_0x42c838){const _0x4dc3e=_0x98feac(_0x2ff15f,_0x4cc35a),_0x48c442=this['editor']['commands']['get']('trackChanges');_0x4dc3e['buttonView']['set']({'tooltip':_0x42c838,'label':_0x42c838,'icon':_0x3fed69}),_0x4dc3e['buttonView']['bind']('isOn')['to'](_0x48c442,'value'),_0x4dc3e['buttonView']['on']('execute',()=>{_0x48c442['execute'](),this['editor']['editing']['view']['focus']();}),_0x1aecac(_0x4dc3e,_0x24489a,{'role':'menu'});const _0x4b3376=[];for(const _0x31884e of _0x24489a)Nn(_0x31884e)&&_0x4b3376['push'](this['editor']['commands']['get'](_0x31884e['model']['commandName']));const _0x2f56d3=_0x4dc3e['buttonView'];return _0x2f56d3['actionView']['unbind']('isEnabled'),_0x2f56d3['arrowView']['unbind']('isEnabled'),_0x2f56d3['actionView']['bind']('isEnabled')['to'](_0x48c442,'isEnabled'),_0x2f56d3['arrowView']['bind']('isEnabled')['toMany'](_0x4b3376,'isEnabled',(..._0x2d49ac)=>_0x2d49ac['some'](_0x4fb5a3=>_0x4fb5a3)),_0x4dc3e['on']('execute',_0x49d06e=>{this['editor']['execute'](_0x49d06e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc3e;}_createMenuBarMenu(_0x1b56db,_0x261e4c,_0x4ef203){const _0x3a0be0=new _0x665fb3(_0x1b56db),_0x3ce16e=this['editor']['commands']['get']('trackChanges');_0x3a0be0['buttonView']['set']({'label':_0x4ef203,'icon':_0x3fed69});const _0x243338=new _0x53d7d4(_0x1b56db);for(const _0x390cfb of _0x261e4c){if('separator'==_0x390cfb['type']){_0x243338['items']['add'](new _0x19cb31(_0x1b56db));continue;}const _0x35803f=new _0x20911c(_0x1b56db,_0x3a0be0),_0x4f2545=new _0xca67a9(_0x1b56db),_0x5031ee=_0x390cfb['model'];_0x4f2545['bind'](...Object['keys'](_0x5031ee))['to'](_0x5031ee),_0x4f2545['delegate']('execute')['to'](_0x3a0be0),_0x4f2545['on']('execute',()=>{this['editor']['execute'](_0x5031ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x35803f['children']['add'](_0x4f2545),_0x243338['items']['add'](_0x35803f);}return _0x3a0be0['bind']('isEnabled')['to'](_0x3ce16e,'isEnabled'),_0x3a0be0['panelView']['children']['add'](_0x243338),_0x3a0be0;}_initializeController(_0x1bb187){const _0x575b92=this['editor'],_0x2144ac=_0x575b92['config'],_0x4a60e1=_0x575b92['plugins']['get'](_0x555efe),_0x44ec40=_0x575b92['plugins']['get'](_0x263ae3),_0x51d84a=_0x575b92['plugins']['get'](_0x25a8bf),_0x171df7=_0x575b92['plugins']['get'](_0x57ba00)['me'],_0x3739a6=_0x2144ac['get']('trackChanges')['SuggestionThreadView'],_0x1b7b7a=_0x2144ac['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5d8026,CommentThreadInputView:_0x3653f5}=_0x575b92['plugins']['get']('CommentsUI');let _0x23ba92,_0x574452,_0x31a81c;this['_annotationViews']['has'](_0x1bb187['id'])?(_0x574452=this['_annotationViews']['get'](_0x1bb187['id']),_0x23ba92=_0x574452['mainView']):(_0x23ba92=new _0x3739a6(_0x575b92['locale'],_0x1bb187,_0x171df7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2144ac['get']('comments.editorConfig'),'licenseKey':_0x2144ac['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2144ac['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2144ac['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2144ac['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3834a4(_0x2144ac['get']('locale'),_0x575b92['locale']),'CommentView':_0x2144ac['get']('comments')['CommentView'],'CommentsListView':_0x5d8026,'CommentThreadInputView':_0x3653f5,'SuggestionView':_0x1b7b7a,'showAISource':_0x2144ac['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2144ac['get']('trackChanges.aiAuthor'),'name':_0x2144ac['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x575b92['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x23ba92['suggestionView']['acceptButton']['on']('execute',()=>{_0x575b92['editing']['view']['focus']();}),_0x23ba92['suggestionView']['discardButton']['on']('execute',()=>{_0x575b92['editing']['view']['focus']();}),_0x574452=_0x4a60e1['createAnnotationView'](this['editor']['locale'],_0x23ba92),_0x574452['bind']('isDirty')['to'](_0x23ba92,'isDirty'),_0x574452['bind']('length')['to'](_0x23ba92),_0x574452['bind']('type')['to'](_0x23ba92,'type',_0x50d4d1=>'suggestion-'+_0x50d4d1),_0x23ba92['on']('escape',()=>{_0x31a81c['fire']('escape');}),this['_annotationViews']['set'](_0x1bb187['id'],_0x574452));const _0x812eca=_0x44ec40['createCommentThreadController'](_0x1bb187['commentThread'],_0x23ba92),_0x2c4295=new bn(_0x575b92,_0x1bb187,_0x23ba92,_0x812eca),_0x540087=_0x1bb187['getAllAdjacentSuggestions']()['filter'](_0x27987e=>_0x27987e['isInContent']);_0x23ba92['descriptionParts']=_0x575b92['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x540087),this['_suggestionToController']['set'](_0x1bb187,_0x2c4295),this['_viewToController']['set'](_0x23ba92,_0x2c4295);const _0x1b6720=()=>{const _0x14e653=[],_0x10f0f6=_0x1bb187['getAllAdjacentSuggestions']()['filter'](_0x107257=>_0x107257['isInContent']);for(const _0x1487d1 of _0x10f0f6)_0x14e653['push'](..._0x1487d1['getMarkers']());return _0x3c7f9f(_0x575b92['editing'],_0x14e653);};_0x31a81c=_0x4a60e1['createAnnotation']({'view':_0x574452,'target':_0x1b6720,'type':()=>'suggestion-'+_0x2c4295['view']['type'],'isVisible':!!_0x1b6720()}),_0x44ec40['_bindAnnotationToEditors'](_0x23ba92,_0x31a81c),_0x4a60e1['add'](_0x31a81c),_0x51d84a['registerAnnotation'](_0x31a81c);}_destroyController(_0x5d5953){const _0x570e31=this['editor']['plugins']['get'](_0x263ae3),_0x380303=this['editor']['plugins']['get'](_0x555efe),_0x30265d=this['_suggestionToController']['get'](_0x5d5953),_0x50730d=_0x30265d['view'],_0x1711fd=_0x380303['getByInnerView'](_0x50730d);_0x570e31['_unbindEditors'](_0x50730d),_0x1711fd&&_0x380303['remove'](_0x1711fd),this['_suggestionToController']['delete'](_0x5d5953),this['_viewToController']['delete'](_0x50730d),_0x30265d['destroy']();}_updateController(_0x237ef4){if(!_0x237ef4['isInContent']||!this['_suggestionToController']['has'](_0x237ef4))return;const _0x2f1d25=this['editor']['plugins']['get'](on),_0x1d1b59=this['_suggestionToController']['get'](_0x237ef4),_0x332f6c=_0x237ef4['getAllAdjacentSuggestions']();_0x1d1b59['view']['descriptionParts']=_0x2f1d25['descriptionFactory']['getDescriptions'](_0x332f6c);}destroy(){for(const _0x2470c0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2470c0);for(const _0x138d85 of this['_annotationViews']['values']())_0x138d85['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x4f5527){return'model'in _0x4f5527;}var Sn=class extends _0x16a669{static get requires(){return[on,yn,_0x1d7d9c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x5e3e60){this['editor']['plugins']['get'](on)['adapter']=_0x5e3e60;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x522500){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x522500);}getSuggestions({skipNotAttached:_0x5d8a0b=!0x1,toJSON:_0xdc796b=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5d8a0b,'toJSON':_0xdc796b});}getSuggestion(_0x257df8){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x257df8);}};const Mn=['Pagination'];var On=class extends _0x16a669{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x36024e=this['editor'];if(_0x36024e['config']['define']('trackChangesData.editorCreator',_0x333947=>{const _0x3f54cb=_0x36024e['model']['document']['getRootNames']()['reduce']((_0x543e7f,_0x2494e5)=>(_0x543e7f[_0x2494e5]='',_0x543e7f),{});return _0x36024e['constructor']['create'](_0x3f54cb,_0x333947);}),'function'!=typeof _0x36024e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2e4b79('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x371fd7){return Bn(this['editor'],!0x0,_0x371fd7);}getDataWithDiscardedSuggestions(_0x1b52c1){return Bn(this['editor'],!0x1,_0x1b52c1);}},wn=class extends _0x16a669{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa7570a){super(_0xa7570a),this['result']='end',_0xa7570a['editing']['view']['_overlayModeHint']='auto',_0xa7570a['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x1ece21){return void 0x0!==_0x1ece21['getRootsAttributes'];}async function Bn(_0x3ba434,_0x33fc35,_0x20bca8){const _0x364ccd=_0x5f5869(_0x3ba434,Mn);if(_0x364ccd['plugins']['push'](on,wn),Fn(_0x3ba434)){_0x364ccd['roots']=Object['create'](null);for(const _0x2f3a83 of _0x3ba434['model']['document']['getRootNames']())_0x364ccd['roots'][_0x2f3a83]={'modelAttributes':_0x3ba434['getRootAttributes'](_0x2f3a83)};}const _0x71fb1b=document['createDocumentFragment'](),_0x2b5bf9=_0x3ba434['config']['get']('trackChangesData')['editorCreator'],_0x585c5a=await _0x2b5bf9(_0x364ccd,()=>function(_0x1b7584){const _0x587030=document['createElement']('div');return _0x1b7584['appendChild'](_0x587030),_0x587030;}(_0x71fb1b));!function(_0x2fe384,_0x165b60){const _0x5e8548=_0x2fe384['model']['document']['getRootNames']()['reduce']((_0x17ba3a,_0x59023b)=>(_0x17ba3a[_0x59023b]=_0x2fe384['data']['get']({'rootName':_0x59023b}),_0x17ba3a),{}),_0x2f5891=_0x2fe384['plugins']['get']('Users')['users']['map'](_0x6c87f4=>({'id':_0x6c87f4['id'],'name':_0x6c87f4['name']})),_0x564e8b=_0x2fe384['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x492191=_0x2fe384['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38f8c1=_0x165b60['plugins']['get']('Users'),_0x4ce69c=_0x165b60['plugins']['get']('TrackChangesEditing'),_0x2cb332=_0x165b60['plugins']['get']('CommentsRepository');for(const _0x4b5266 of _0x2cb332['getCommentThreads']())_0x4b5266['remove']();for(const _0x1b1bd7 of _0x2f5891)_0x38f8c1['getUser'](_0x1b1bd7['id'])||_0x38f8c1['addUser'](_0x1b1bd7);_0x38f8c1['me']||_0x38f8c1['useAnonymousUser']();for(const _0x16f268 of _0x492191)_0x2cb332['addCommentThread'](_0x16f268);for(const _0xd42222 of _0x564e8b)_0x4ce69c['addSuggestionData'](_0xd42222);_0x165b60['data']['set'](_0x5e8548);}(_0x3ba434,_0x585c5a),_0x585c5a['execute'](_0x33fc35?'acceptAllSuggestions':'discardAllSuggestions');const _0x348ec0=Fn(_0x585c5a)?_0x585c5a['getFullData'](_0x20bca8):_0x585c5a['data']['get'](_0x20bca8);return await _0x585c5a['destroy'](),_0x348ec0;}var vn=class extends _0x33af14{options;constructor(_0x2f1eab,_0x55fc7b){super(_0x2f1eab),this['options']=_0x55fc7b,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(_0x3fb07c,_0x28f214){if(!this['element'])return;const _0x407a9b=[];for(const [_0x4925e4,_0x3f4f84]of _0x3fb07c){const _0x5537be=document['createElement']('div');_0x5537be['setAttribute']('data-ck-root-name',_0x4925e4),_0x5537be['className']=_0x3f4f84['classes']+'\x20ck-track-changes-preview__root-container',_0x5537be['innerHTML']=_0x3f4f84['content'],_0x407a9b['push'](_0x5537be);}_0x28f214(this['element'],_0x407a9b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x12b6ad{constructor(_0x285822){super(_0x285822),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x20404c=this['editor'],_0x1eb9fe=_0x20404c['locale'],_0x14f077=_0x20404c['plugins']['get']('Dialog');let _0x12accd;const _0x440010=function(_0x340374){const _0x36099a={};if('editables'in _0x340374['ui']['view']){for(const [_0x45b852,_0xb791fb]of Object['entries'](_0x340374['ui']['view']['editables']))_0x36099a[_0x45b852]=_0xb791fb['element'];}else _0x36099a[_0x340374['model']['document']['getRootNames']()[0x0]]=_0x340374['ui']['view']['editable']['element'];return _0x36099a;}(_0x20404c),_0x1e46ee=function(_0x5b3655){let _0xbdbca6=0x0;for(const _0xd6ff36 of Object['values'](_0x5b3655))_0xbdbca6=Math['max'](_0xbdbca6,_0xd6ff36['getBoundingClientRect']()['width']);let _0x2bf5d1=0x0;for(const _0x1f45c6 of Object['values'](_0x5b3655))_0x2bf5d1+=_0x1f45c6['getBoundingClientRect']()['height'];const _0x14b9b6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0xbdbca6,'height':Math['min'](_0x2bf5d1,_0x14b9b6)};}(_0x440010);_0x14f077['show']({'id':'finalContentPreview','title':Mt(_0x1eb9fe,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x1eb9fe,{'dialogRects':_0x1e46ee}),'onHide':()=>{_0x12accd['detachFromDom']();},'onShow':()=>{_0x20404c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1e8853=>{const _0x46d292=this['_standarizeRootsData'](_0x1e8853,_0x20404c,_0x440010);_0x14f077['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x46d292,_0x20404c['config']['get']('trackChanges.preview.renderFunction'));}),_0x12accd=new _0x4afe0f(_0x1eb9fe,[_0x14f077['view']]),_0x12accd['attachToDom'](),_0x12accd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x20404c['once']('destroy',()=>{_0x12accd['detachFromDom']();});const _0x10fbbd=_0x14f077['view']['headerView']['class'];_0x14f077['view']['headerView']['class']=_0x10fbbd?_0x10fbbd+'\x20ck-reset_all':'ck-reset_all',_0x14f077['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14f077['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fce55=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x45efd8=_0x1fce55['previewMode'],_0x1df68a={};if('$labels'===_0x45efd8){for(const _0x549c21 of _0x1fce55['getMergeFieldsIds']())_0x1df68a[_0x549c21]=_0x1fce55['getLabel'](_0x549c21)||_0x549c21;}else{const _0x4596cb='$defaultValues'===_0x45efd8?_0x1fce55['getDefaultValues']():_0x1fce55['getDataSetValues'](_0x45efd8,!0x0);for(const _0x3fe9ed of Object['entries'](_0x4596cb)){const [_0x1719ed,_0x151bea]=_0x3fe9ed;_0x1df68a[_0x1719ed]=null!==_0x151bea?_0x151bea:_0x1fce55['getLabel'](_0x1719ed)||_0x1719ed;}}return{'mergeFieldsData':_0x1df68a};}_standarizeRootsData(_0x2a82b0,_0x1e66d2,_0x1605f9){let _0xb8d6da;_0xb8d6da='string'==typeof _0x2a82b0?{[_0x1e66d2['model']['document']['getRootNames']()[0x0]]:_0x2a82b0}:_0x2a82b0;const _0x26b7d0=this['_fixMediaEmbeds'](_0xb8d6da,_0x1e66d2);return function(_0x4231eb,_0x34ebed){for(const [_0x268eda,_0x119baf]of _0x4231eb)_0x119baf['classes']=_0x34ebed[_0x268eda]['classList']['value']['replace']('ck-focused','');return _0x4231eb;}(this['_sortRoots'](_0x1e66d2)['reduce']((_0x4fb962,_0x5472c3)=>(_0x4fb962['push']([_0x5472c3,{'content':_0x26b7d0[_0x5472c3],'classes':''}]),_0x4fb962),[]),_0x1605f9);}['_fixMediaEmbeds'](_0x5eae3f,_0xddb9b8){if(!_0xddb9b8['plugins']['has']('MediaEmbedEditing'))return _0x5eae3f;const _0x17e7b9=_0xddb9b8['plugins']['get']('MediaEmbedEditing');for(const [_0x4e0f56,_0x16a210]of Object['entries'](_0x5eae3f)){const _0x28432f=document['createElement']('div');_0x28432f['innerHTML']=_0x16a210,_0x28432f['querySelectorAll']('figure.media')['forEach'](_0x622582=>{const _0x3c237f=_0x622582['querySelector']('oembed');if(_0x3c237f){const _0x2d7da8=_0x3c237f['getAttribute']('url');if(_0x2d7da8){const _0x99fe9a=_0x17e7b9['registry']['getMediaViewElement'](new ot(_0xddb9b8['editing']['view']['document']),_0x2d7da8,{'elementName':'','renderForEditingView':!0x0}),_0x53919c=document['createElement']('div');_0x53919c['classList']['add']('ck-media__wrapper'),_0x99fe9a['render'](_0x53919c,_0xddb9b8['editing']['view']['domConverter']),_0x3c237f['replaceWith'](_0x53919c);}}}),_0x5eae3f[_0x4e0f56]=_0x28432f['innerHTML'];}return _0x5eae3f;}_sortRoots(_0xdb7cc2){if(!function(_0x5ca551){return void 0x0!==_0x5ca551['getRootsAttributes'];}(_0xdb7cc2))return _0xdb7cc2['model']['document']['getRootNames']();const _0x87835d=[],_0x5dbd7a=new Map();for(const _0x1501ec of _0xdb7cc2['model']['document']['getRootNames']()){const _0x3bef2e=_0xdb7cc2['editing']['view']['getDomRoot'](_0x1501ec)['getClientRects']()['item'](0x0);_0x87835d['push'](_0x1501ec),_0x5dbd7a['set'](_0x1501ec,_0x3bef2e);}return _0x87835d['sort']((_0xb4e916,_0x5495e5)=>{const _0x227d47=_0x5dbd7a['get'](_0xb4e916),_0x10dbec=_0x5dbd7a['get'](_0x5495e5);return _0x227d47['y']-_0x10dbec['y']||_0x227d47['x']-_0x10dbec['x'];}),_0x87835d;}},Un=class extends _0x16a669{static get requires(){return[On,_0x25f48f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11482f){super(_0x11482f),_0x11482f['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x11482f['config']['define']('trackChanges.preview.renderFunction',(_0x1afd2c,_0x3a58ef)=>{for(const _0x45dbf1 of _0x3a58ef)_0x1afd2c['appendChild'](_0x45dbf1);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|