@ckeditor/ckeditor5-track-changes 48.3.0-alpha.7 → 48.3.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x41a589();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x32cccf,_0x2b5d18){super(),this['id']=_0x2b5d18['id'],this['type']=_0x2b5d18['type'],this['subType']=_0x2b5d18['subType']||null,this['author']=_0x2b5d18['author'],this['creator']=_0x2b5d18['creator']||_0x2b5d18['author'],this['data']=null,this['_originalSuggestionId']=_0x2b5d18['originalSuggestionId']||null,this['_model']=_0x32cccf,this['_onAccept']=_0x2b5d18['onAccept'],this['_onDiscard']=_0x2b5d18['onDiscard'],this['_onAttributesChange']=_0x2b5d18['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2b5d18['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 _0x4587bb=this;for(;_0x4587bb['previous'];)_0x4587bb=_0x4587bb['previous'];return _0x4587bb;}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'](_0x113be1){this['_markerNames']['add'](_0x113be1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x343d31=>this['_model']['markers']['get'](_0x343d31))['filter'](_0x119dea=>_0x119dea);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x535d26=>{for(const _0x5126bf of this['getMarkers']())_0x535d26['removeMarker'](_0x5126bf);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c9d67){this['_model']['change'](_0x337f10=>{_0x337f10['removeMarker'](_0x1c9d67);}),this['_markerNames']['delete'](_0x1c9d67);}['addRange'](_0x36af8f){const _0x51e47d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x51e47d),this['_model']['change'](_0x201c83=>{_0x201c83['addMarker'](_0x51e47d,{'range':_0x36af8f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5f1019){for(const _0x233127 of this['getRanges']())if(_0x233127['isIntersecting'](_0x5f1019))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x990f24=>_0x990f24['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1c2f16,_0x4e5eae)=>[..._0x1c2f16,..._0x4e5eae['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x257503=this['getRanges']();if(0x1!=_0x257503['length'])return null;const _0x3de28e=_0x257503[0x0],_0x56dc71=_0x3de28e['start']['nodeAfter'],_0x2fd656=_0x3de28e['end']['nodeBefore'];return _0x56dc71 instanceof it?_0x56dc71!=_0x2fd656?null:_0x56dc71: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 _0x339d15=[];let _0x2b7bdf=this['head'];for(;_0x2b7bdf;)_0x339d15['push'](_0x2b7bdf),_0x2b7bdf=_0x2b7bdf['next'];return _0x339d15;}['setAttribute'](_0x532bfb,_0x11a953){const _0x1ed559=at(this['attributes']);ut(_0x1ed559,_0x532bfb,_0x11a953),ct(_0x1ed559,this['attributes'])||(this['attributes']=_0x1ed559,this['_onAttributesChange'](_0x1ed559));}['removeAttribute'](_0x3af3a9){const _0x39448d=at(this['attributes']);dt(_0x39448d,_0x3af3a9),ct(_0x39448d,this['attributes'])||(this['attributes']=_0x39448d,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 _0x24c80d()['substr'](0x1,0x5);}};function St(_0x4df7f0,_0x5cc9c8,_0x22e6d5){const _0x5c7ba1=_0x4df7f0['t'],t=_0x4df7f0['t'];switch(_0x5cc9c8){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',_0x22e6d5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x22e6d5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x22e6d5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x22e6d5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x22e6d5);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',_0x22e6d5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x22e6d5);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',_0x22e6d5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x22e6d5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x22e6d5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x22e6d5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x22e6d5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x22e6d5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x22e6d5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x22e6d5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x22e6d5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x22e6d5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x22e6d5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x22e6d5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x22e6d5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x22e6d5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x22e6d5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x22e6d5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x22e6d5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x22e6d5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x22e6d5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x22e6d5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x22e6d5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x22e6d5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x22e6d5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x22e6d5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x22e6d5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x22e6d5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x22e6d5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x22e6d5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x22e6d5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x22e6d5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x22e6d5);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'},_0x22e6d5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x22e6d5);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 _0x5c7ba1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x22e6d5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5c7ba1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x22e6d5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);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'},_0x22e6d5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5cc9c8;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x51a460,_0x453892){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x51a460,this['_locale']=_0x453892;}['getDescriptions'](_0x2a2f40){const _0x329989=[],_0xe5b42b=new Set(),_0x5ed54e=new Set();for(let _0x2d9934=0x0;_0x2d9934<_0x2a2f40['length'];_0x2d9934++){const _0x4009c7=_0x2a2f40[_0x2d9934];if(!_0x4009c7['isInContent'])continue;const _0x326069=this['_handleCustomCallbackDescription'](_0x4009c7);if(_0x326069){if(null!=_0x4009c7['subType']){if(_0xe5b42b['has'](_0x4009c7['subType']))continue;_0xe5b42b['add'](_0x4009c7['subType']);}_0x329989['push'](_0x326069);}else{if('attribute'==_0x4009c7['type']){const _0x18cfce=_0x4009c7['data']['key'];if(_0x5ed54e['has'](_0x18cfce))continue;_0x5ed54e['add'](_0x4009c7['data']['key']),'$elementName'==_0x18cfce?this['_handleRenameSuggestionDescription'](_0x329989,_0x4009c7):this['_handleAttributeSuggestionDescription'](_0x329989,_0x4009c7);continue;}'insertion'!=_0x4009c7['type']&&'deletion'!=_0x4009c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x329989,_0x4009c7,_0x2a2f40[_0x2d9934+0x1]);}}return this['_resolveDescriptionItems'](_0x329989);}['registerDescriptionCallback'](_0x36ac48){this['_customCallbacks']['push'](_0x36ac48);}['registerElementLabel'](_0xd17585,_0x455910,_0x466f9c=_0x5eb1e0['normal']){'function'==typeof _0xd17585?_0x27bbee(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd17585,'label':_0x455910,'priority':_0x466f9c}):this['_itemLabels']['set'](_0xd17585,_0x455910);}['registerAttributeLabel'](_0x5be329,_0x54ac01){this['_attributeLabels']['set'](_0x5be329,_0x54ac01);}['getItemLabel'](_0x4f5b82,_0x42d169=0x1){let _0x5f1be6;for(const _0x60f7c4 of this['_itemLabelsCallbacks'])if(_0x60f7c4['matchingCallback'](_0x4f5b82)){_0x5f1be6=_0x60f7c4['label'];break;}return _0x5f1be6||(_0x5f1be6=this['_itemLabels']['get'](_0x4f5b82['name'])),_0x5f1be6?_0x5f1be6(_0x42d169):0x1!==_0x42d169?_0x42d169+'\x20'+_0x4f5b82['name']+'s':''+_0x4f5b82['name'];}['_addDescriptionItems'](_0x5198e6,_0xf74f65){const _0xa4fa07=_0xf74f65['getFirstRange']()['getWalker'](),_0x3fce24='insertion'==_0xf74f65['type']?'add':'remove';for(const _0x1a586f of _0xa4fa07){const _0x29760d=_0x1a586f['item'],_0x1eec07=_0x5198e6[_0x5198e6['length']-0x1];if(_0x29760d['is']('$textProxy'))_0x1eec07&&_0x1eec07['type']['indexOf']('Container')>-0x1&&_0x5198e6['pop'](),_0x1eec07&&'text'==_0x1eec07['type']?_0x1eec07[_0x3fce24]+=_0x29760d['data']:_0x5198e6['push']({'type':'text','add':'add'==_0x3fce24?_0x29760d['data']:'','remove':'remove'==_0x3fce24?_0x29760d['data']:''});else{if(this['_schema']['isObject'](_0x29760d)){const _0x46c937=_0x29760d;if(_0x1eec07&&_0x1eec07['type']['indexOf']('Container')>-0x1&&_0x5198e6['pop'](),'elementEnd'==_0x1a586f['type'])continue;_0x1eec07&&_0x1eec07['type']==_0x3fce24+'Object'&&_0x1eec07['element']['name']==_0x46c937['name']?_0x1eec07['quantity']++:_0x5198e6['push']({'type':_0x3fce24+'Object','element':_0x46c937,'quantity':0x1}),_0xa4fa07['skip'](_0x1e881e=>!('elementEnd'==_0x1e881e['type']&&_0x1e881e['item']==_0x29760d));}else{if(this['_schema']['checkChild'](_0x29760d,'$text')||_0x29760d['is']('element','softBreak')){const _0x31d22a=_0x29760d;if('add'==_0x3fce24&&'elementStart'==_0x1a586f['type']||'remove'==_0x3fce24&&'elementEnd'==_0x1a586f['type'])continue;if(_0x1eec07&&-0x1==_0x1eec07['type']['indexOf']('Container')){'text'==_0x1eec07['type']&&(_0x1eec07[_0x3fce24]+='\x0a');continue;}let _0x389c0f;if(_0x389c0f='add'==_0x3fce24?_0x31d22a['nextSibling']&&!this['_schema']['isObject'](_0x31d22a['nextSibling'])?_0x31d22a['nextSibling']:null:_0x31d22a['previousSibling']&&!this['_schema']['isObject'](_0x31d22a['previousSibling'])?_0x31d22a['previousSibling']:null,_0x31d22a['isEmpty']||_0x389c0f&&_0x389c0f['isEmpty']){const _0x5502ff=_0x389c0f&&_0x389c0f['isEmpty']?_0x389c0f:_0x31d22a;_0x1eec07&&_0x1eec07['type']==_0x3fce24+'EmptyContainer'&&_0x1eec07['element']['name']==_0x5502ff['name']?_0x1eec07['quantity']++:_0x5198e6['push']({'type':_0x3fce24+'EmptyContainer','element':_0x5502ff,'quantity':0x1});}else _0x5198e6['push']({'type':_0x3fce24+'Container','element':_0x31d22a});}}}}}['_resolveDescriptionItems'](_0x782020){const _0x18062b=this['_locale'],_0x24279b=[],_0x56aecc=[],_0x436033=[];for(const _0x2a7fe9 of _0x782020)switch(_0x2a7fe9['type']){case'text':if(_0x2a7fe9['add']=_0x2a7fe9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2a7fe9['remove']=_0x2a7fe9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2a7fe9['add']&&''!=_0x2a7fe9['remove']){_0x24279b['push']({'type':'replace','content':St(_0x18062b,'REPLACE_TEXT',['\x22'+_0x2a7fe9['remove']+'\x22','\x22'+_0x2a7fe9['add']+'\x22'])});continue;}if(null!=_0x2a7fe9['add']['match'](/^ +$/)){_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0',St(_0x18062b,'ELEMENT_SPACE',_0x2a7fe9['add']['length']))});continue;}if(null!=_0x2a7fe9['remove']['match'](/^ +$/)){_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0',St(_0x18062b,'ELEMENT_SPACE',_0x2a7fe9['remove']['length']))});continue;}if(''!=_0x2a7fe9['add']){_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0','\x22'+_0x2a7fe9['add']+'\x22')});continue;}_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0','\x22'+_0x2a7fe9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Insert:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Remove:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'addContainer':_0x24279b['push']({'type':'insertion','content':St(_0x18062b,'*Split:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'removeContainer':_0x24279b['push']({'type':'deletion','content':St(_0x18062b,'*Merge:*\x20%0',this['getItemLabel'](_0x2a7fe9['element'],_0x2a7fe9['quantity']))});continue;case'addFormat':_0x56aecc['push'](_0x2a7fe9['key']);continue;case'removeFormat':_0x436033['push'](_0x2a7fe9['key']);continue;default:_0x24279b['push'](_0x2a7fe9);}if(_0x56aecc['length']){const _0x207cb6=_0x56aecc['map'](_0x5d95a6=>this['_attributeLabels']['has'](_0x5d95a6)?this['_attributeLabels']['get'](_0x5d95a6):_0x5d95a6)['join'](',\x20');_0x24279b['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x207cb6)});}if(_0x436033['length']){const _0x556704=_0x436033['map'](_0x396b55=>this['_attributeLabels']['has'](_0x396b55)?this['_attributeLabels']['get'](_0x396b55):_0x396b55)['join'](',\x20');_0x24279b['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x556704)});}return _0x24279b;}['_handleCustomCallbackDescription'](_0x28eb21){for(const _0x10c4f4 of this['_customCallbacks']){const _0x3851bf=_0x10c4f4(_0x28eb21);if(_0x3851bf&&'type'in _0x3851bf)return _0x3851bf;}}['_handleAttributeSuggestionDescription'](_0x581921,_0x44c9bf){const _0x154ca3=_0x44c9bf['data'],_0x9d018f=void 0x0===_0x154ca3['newValue']?'removeFormat':'addFormat';_0x581921['push']({'type':_0x9d018f,'key':_0x154ca3['key']});}['_handleRenameSuggestionDescription'](_0x2c2067,_0x240d10){_0x2c2067['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x240d10['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x9158a5,_0x131980,_0x25340d){if(this['_addDescriptionItems'](_0x9158a5,_0x131980),_0x25340d&&_0x25340d['getFirstRange']()&&!_0x131980['getFirstRange']()['end']['isEqual'](_0x25340d['getFirstRange']()['start'])){const _0x8cb1b6=_0x9158a5[_0x9158a5['length']-0x1],_0x27298b='insertion'==_0x131980['type']?'add':'remove';_0x8cb1b6&&'text'==_0x8cb1b6['type']&&(_0x8cb1b6[_0x27298b]+='\x0a');}}},Ot=class extends _0x2dafdc{['afterInit'](){const _0x54a0b2=this['editor'],_0x40500c=_0x54a0b2['plugins']['get']('TrackChangesEditing');_0x54a0b2['commands']['get']('showAIAssistant')&&_0x40500c['enableCommand']('showAIAssistant');}},wt=class extends _0x2dafdc{['afterInit'](){const _0x4e831f=this['editor'],_0x6ffe71=_0x4e831f['plugins']['get']('TrackChangesEditing');_0x4e831f['commands']['get']('toggleAi')&&_0x6ffe71['enableCommand']('toggleAi');}},Ft=class extends _0x2dafdc{['afterInit'](){const _0x221845=this['editor'],_0x456097=_0x221845['plugins']['get']('TrackChangesEditing');_0x221845['commands']['get']('aiQuickAction')&&_0x456097['enableCommand']('aiQuickAction');}},Bt=class extends _0x2dafdc{['afterInit'](){const _0x1e4b79=this['editor'],_0x427e7e=_0x1e4b79['locale'];if(!_0x1e4b79['plugins']['has']('AlignmentEditing'))return;const _0x8446b=_0x1e4b79['plugins']['get']('TrackChangesEditing');_0x8446b['enableDefaultAttributesIntegration']('alignment'),_0x8446b['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x427e7e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xafda7d=this['editor'],_0x4ed6cf=_0xafda7d['locale'];_0xafda7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49a256=>{if('formatBlock'!=_0x49a256['type'])return;const {data:_0x17eae2}=_0x49a256;if(_0x17eae2&&'alignment'==_0x17eae2['commandName']){const _0x22a11e=_0x17eae2['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x4ed6cf,'*Format:*\x20%0',function(_0x3702f6){switch(_0x3702f6){case'left':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x4ed6cf,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x4ed6cf,'FORMAT_JUSTIFY_TEXT');}}(_0x22a11e))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x2dafdc{['afterInit'](){const _0x12f729=this['editor'],_0x165e87=_0x12f729['plugins']['get']('TrackChangesEditing'),_0x14a03b=_0x12f729['locale'];for(const _0x3fec19 of vt){if(!_0x12f729['plugins']['has'](_0x3fec19))continue;const _0x2a4c8e=_0x3fec19['slice'](0x0,-0x7)['toLowerCase'](),_0x219c75='FORMAT_'+_0x2a4c8e['toUpperCase']();_0x165e87['enableDefaultAttributesIntegration'](_0x2a4c8e),_0x165e87['descriptionFactory']['registerAttributeLabel'](_0x2a4c8e,St(_0x14a03b,_0x219c75));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9c28=this['editor'],_0x130739=_0x3c9c28['locale'],_0x223acc=_0x3c9c28['plugins']['get']('TrackChangesEditing');function _0x6d2080(_0x57a9f3,_0x5ad525){_0x223acc['descriptionFactory']['registerDescriptionCallback'](_0x3cd96b=>{if('formatInline'!=_0x3cd96b['type'])return;const {data:_0xafea49}=_0x3cd96b;return _0xafea49&&_0xafea49['commandName']===_0x57a9f3?_0xafea49['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x130739,'*Format:*\x20%0',_0x5ad525)}:{'type':'format','content':St(_0x130739,'*Remove\x20format:*\x20%0',_0x5ad525)}:void 0x0;});}_0x6d2080('bold',St(_0x130739,'FORMAT_BOLD')),_0x6d2080('italic',St(_0x130739,'FORMAT_ITALIC')),_0x6d2080('underline',St(_0x130739,'FORMAT_UNDERLINE')),_0x6d2080('code',St(_0x130739,'FORMAT_CODE')),_0x6d2080('strikethrough',St(_0x130739,'FORMAT_STRIKETHROUGH')),_0x6d2080('subscript',St(_0x130739,'FORMAT_SUBSCRIPT')),_0x6d2080('superscript',St(_0x130739,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x2dafdc{['afterInit'](){const _0x29a793=this['editor'],_0x82d0ea=_0x29a793['locale'];if(!_0x29a793['plugins']['has']('BlockQuoteEditing'))return;const _0x3734c6=_0x29a793['plugins']['get']('TrackChangesEditing'),_0x16b9af=this['editor']['commands']['get']('blockQuote');_0x3734c6['enableCommand']('blockQuote',(_0x144797,_0x177373={})=>{const _0x4aefe0=this['editor']['model']['document']['selection'],_0x57ddb2=_0x177373&&void 0x0!==_0x177373['forceValue']?_0x177373['forceValue']:!_0x16b9af['value'];let _0x2a66e1=[];_0x2a66e1=At(_0x57ddb2?Array['from'](_0x4aefe0['getSelectedBlocks']())['filter'](_0x36f4ba=>Pt(_0x36f4ba)||function(_0x42ec40,_0x51cef4){const _0x4a6546=_0x51cef4['createContext'](_0x42ec40['parent']);return!!_0x51cef4['checkChild'](_0x4a6546,'blockQuote')&&!!_0x51cef4['checkChild'](_0x4a6546['push']('blockQuote'),_0x42ec40);}(_0x36f4ba,this['editor']['model']['schema'])):Array['from'](_0x4aefe0['getSelectedBlocks']())['filter'](_0x33a4bc=>Pt(_0x33a4bc)),_0x29a793['model']),_0x29a793['model']['change'](()=>{for(const _0x740ec6 of _0x2a66e1)_0x3734c6['markBlockFormat'](_0x740ec6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x57ddb2}]});});}),_0x3734c6['descriptionFactory']['registerDescriptionCallback'](_0x4e0171=>{const {data:_0x2eca8f}=_0x4e0171;if(_0x2eca8f&&'blockQuote'==_0x2eca8f['commandName']){const _0x5a10b4=St(_0x82d0ea,'ELEMENT_BLOCK_QUOTE');return _0x2eca8f['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x82d0ea,'*Set\x20format:*\x20%0',_0x5a10b4)}:{'type':'format','content':St(_0x82d0ea,'*Remove\x20format:*\x20%0',_0x5a10b4)};}});}};function Pt(_0x4e65a5){return'blockQuote'==_0x4e65a5['parent']['name'];}var xt=class extends _0x2dafdc{['afterInit'](){const _0xa49482=this['editor'],_0x4fd733=_0xa49482['locale'],_0x214c75=_0xa49482['plugins']['get']('TrackChangesEditing');_0xa49482['plugins']['has']('BookmarkEditing')&&(_0x214c75['enableCommand']('insertBookmark'),_0x214c75['enableDefaultAttributesIntegration']('updateBookmark'),_0x214c75['descriptionFactory']['registerDescriptionCallback'](_0xd72227=>{if('insertion'!=_0xd72227['type']&&'deletion'!=_0xd72227['type']&&'attribute'!=_0xd72227['type'])return;const _0x32f80f=_0xd72227['getContainedElement']();if(null==_0x32f80f)return;if(!_0x32f80f['is']('element','bookmark'))return;const _0x123b20=_0x32f80f['getAttribute']('bookmarkId');if('insertion'==_0xd72227['type'])return{'type':'insertion','content':St(_0x4fd733,'*Insert:*\x20%0','\x22'+_0x123b20+'\x22\x20'+St(_0x4fd733,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd72227['type'])return{'type':'deletion','content':St(_0x4fd733,'*Remove:*\x20%0','\x22'+_0x123b20+'\x22\x20'+St(_0x4fd733,'ELEMENT_BOOKMARK'))};const {data:_0x2f0a32}=_0xd72227;return _0x2f0a32&&'bookmarkId'==_0x2f0a32['key']?{'type':'format','content':St(_0x4fd733,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f0a32['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x2dafdc{['afterInit'](){const _0x5f23ab=this['editor'];_0x5f23ab['plugins']['has']('CaseChange')&&(_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5f23ab['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x2dafdc{['afterInit'](){const _0x4f82b3=this['editor'];_0x4f82b3['commands']['get']('ckbox')&&_0x4f82b3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x2dafdc{['afterInit'](){const _0x1c3a17=this['editor'];if(!_0x1c3a17['plugins']['has']('CodeBlock'))return;const _0x41dddb=_0x1c3a17['plugins']['get']('TrackChangesEditing'),_0x1572f=_0x1c3a17['locale'],_0x2eff34=_0x1c3a17['config']['get']('codeBlock')['languages'],_0x14a265=_0x1c3a17['commands']['get']('codeBlock');_0x41dddb['enableCommand']('indentCodeBlock'),_0x41dddb['enableCommand']('outdentCodeBlock'),_0x41dddb['enableCommand']('codeBlock',(_0x492e7b,_0x13f05c={})=>{const _0x32bcd3=_0x1c3a17['model'],_0xf6d0f0=_0x1c3a17['model']['document']['selection'],_0x4234b7=_0x13f05c&&void 0x0!==_0x13f05c['forceValue']?_0x13f05c['forceValue']:!_0x14a265['value'];let _0x480310;_0x13f05c['language']||(_0x13f05c['language']=_0x2eff34[0x0]['language']),_0x480310=_0x4234b7?Array['from'](_0xf6d0f0['getSelectedBlocks']())['filter'](_0x30cb07=>{return Vt(_0x30cb07)||(_0x1ca8ac=_0x30cb07,_0x2211e3=_0x32bcd3['schema'],!_0x1ca8ac['is']('rootElement')&&!_0x2211e3['isLimit'](_0x1ca8ac)&&_0x2211e3['checkChild'](_0x1ca8ac['parent'],'codeBlock'));var _0x1ca8ac,_0x2211e3;}):Array['from'](_0xf6d0f0['getSelectedBlocks']())['filter'](_0x2add11=>Vt(_0x2add11));const _0x5cfe79=At(_0x480310,_0x32bcd3);_0x32bcd3['change'](()=>{for(const _0x571a54 of _0x5cfe79)_0x41dddb['markBlockFormat'](_0x571a54,{'commandName':'codeBlock','commandParams':[{..._0x13f05c,'forceValue':_0x4234b7}],'formatGroupId':'blockName'});});}),(_0x41dddb['descriptionFactory']['registerElementLabel']('codeBlock',_0x5be27b=>St(_0x1572f,'ELEMENT_CODE_BLOCK',_0x5be27b)),_0x41dddb['descriptionFactory']['registerDescriptionCallback'](_0x376c2d=>{if('formatBlock'!=_0x376c2d['type'])return;const _0x48b624=_0x1572f['t'],{data:_0x35e714}=_0x376c2d;if(!_0x35e714||'codeBlock'!=_0x35e714['commandName'])return;const _0x37cbcc=_0x35e714['commandParams'][0x0]['language'],_0x406d88=_0x48b624(_0x2eff34['find'](_0x404912=>_0x404912['language']===_0x37cbcc)['label'])['toLowerCase']();return _0x35e714['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1572f,'*Set\x20format:*\x20%0',St(_0x1572f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x406d88+')')}:{'type':'format','content':St(_0x1572f,'*Remove\x20format:*\x20%0',St(_0x1572f,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x1fa2fc){return'codeBlock'==_0x1fa2fc['name'];}var Wt=class extends _0x2dafdc{['afterInit'](){const _0x333597=this['editor'];_0x333597['plugins']['has']('CommentsEditing')&&_0x333597['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x2dafdc{static get['requires'](){return[ht];}['init'](){const _0xfd97c0=this['editor'],_0x4c798b=_0xfd97c0['plugins']['get']('TrackChangesEditing');_0x4c798b['enableCommand']('delete');const _0x36666d=_0xfd97c0['commands']['get']('deleteForward');_0x4c798b['enableCommand']('deleteForward',(_0x6c8763,_0x91e2a5={})=>{const _0x407014=_0xfd97c0['model']['createSelection'](_0xfd97c0['model']['document']['selection']);_0x407014['isCollapsed']&&_0xfd97c0['model']['modifySelection'](_0x407014,{'direction':'forward','unit':_0x91e2a5['unit']});const _0x22650d=_0x407014['getFirstRange'](),_0x553a6a=rt['fromRange'](_0x22650d);let _0x223772;_0x6c8763(_0x91e2a5),_0x223772='$graveyard'==_0x553a6a['root']['rootName']?_0xfd97c0['model']['createRange'](_0x22650d['start']):_0xfd97c0['model']['createRange'](_0x553a6a['start'],_0x553a6a['end']),_0x553a6a['detach'](),_0xfd97c0['model']['enqueueChange'](_0x36666d['buffer']['batch'],_0x103686=>{_0x36666d['buffer']['lock'](),_0x103686['setSelection'](_0x103686['createRange'](_0x223772['end'])),_0x36666d['buffer']['unlock']();});});}},Kt=class extends _0x2dafdc{['afterInit'](){const _0xfb45df=this['editor'];if(!_0xfb45df['plugins']['has']('ListEditing'))return;const _0x2a585d=_0xfb45df['locale'],_0x185f3d=_0xfb45df['plugins']['get']('TrackChangesEditing'),_0x397757=_0xfb45df['plugins']['has']('TodoListEditing'),_0x49494c=!!_0xfb45df['config']['get']('list.multiBlock');function _0x32fa4c(_0x9019b2){return{'type':'format','content':''+St(_0x2a585d,'*Set\x20format:*\x20%0',_0x9019b2)};}function _0x5cfa75(_0x2a4820){return{'type':'format','content':''+St(_0x2a585d,'*Remove\x20format:*\x20%0',_0x2a4820)};}_0x185f3d['enableDefaultAttributesIntegration']('numberedList'),_0x185f3d['enableDefaultAttributesIntegration']('bulletedList'),_0x185f3d['enableDefaultAttributesIntegration']('customNumberedList'),_0x185f3d['enableDefaultAttributesIntegration']('customBulletedList'),_0x185f3d['enableDefaultAttributesIntegration']('indentList'),_0x185f3d['enableDefaultAttributesIntegration']('outdentList'),_0x185f3d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x185f3d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x49494c&&(_0x185f3d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x185f3d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x397757&&(_0x185f3d['enableDefaultAttributesIntegration']('todoList'),_0x185f3d['enableDefaultAttributesIntegration']('checkTodoList'),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x2ac445=>{const {data:_0x14dfcb}=_0x2ac445;if(_0x14dfcb&&'todoListChecked'==_0x14dfcb['key'])return{'type':'format','content':_0x14dfcb['newValue']?St(_0x2a585d,'*Check\x20item*'):St(_0x2a585d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bf17b=>{if(_0x5bf17b['batch']['isUndo'])return!0x1;let _0x147ecb=!0x1;const _0x3f0ff0=_0x185f3d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e8f58=>'todoListChecked'===_0x185f3d['_getAttributeKey'](_0x1e8f58));for(const _0x96704 of _0x3f0ff0)'todo'!=_0x96704['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x185f3d['_findSuggestions'](_0x96704['getFirstRange'](),'attribute')['find'](_0x347db2=>'listType'===_0x185f3d['_getAttributeKey'](_0x347db2['suggestion']))||(_0x5bf17b['removeMarker'](_0x96704['getFirstMarker']()),_0x147ecb=!0x0));return _0x147ecb;})),_0x185f3d['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x2a585d,'FORMAT_INDENT'));const _0x54ee85={'type':'format','content':''};_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x2e8b1d=>{const {data:_0x5ff0d2}=_0x2e8b1d;if(!_0x5ff0d2||'listType'!=_0x5ff0d2['key'])return;let _0x3b5619=_0x2e8b1d['head'];for(;_0x3b5619;){if(_0x3b5619['data']&&(('listStyle'==_0x3b5619['data']['key']||'listMarkerStyle'==_0x3b5619['data']['key'])&&(_0x3b5619['data']['newValue']&&'default'!=_0x3b5619['data']['newValue']||'default'!=_0x3b5619['data']['oldValue']&&!_0x5ff0d2['newValue'])||!_0x49494c&&'$elementName'==_0x3b5619['data']['key']))return _0x54ee85;_0x3b5619=_0x3b5619['next'];}if(null==_0x5ff0d2['newValue'])switch(_0x5ff0d2['oldValue']){case'bulleted':return _0x5cfa75(St(_0x2a585d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5cfa75(St(_0x2a585d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5cfa75(St(_0x2a585d,'ELEMENT_TODO_LIST'));}switch(_0x5ff0d2['newValue']){case'bulleted':return _0x32fa4c(St(_0x2a585d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32fa4c(St(_0x2a585d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32fa4c(St(_0x2a585d,'ELEMENT_TODO_LIST'));}}),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x14d5ff=>{const {data:_0x50f021}=_0x14d5ff;if(_0x50f021&&'listIndent'==_0x50f021['key'])return null==_0x50f021['newValue']||null==_0x50f021['oldValue']&&0x0==_0x50f021['newValue']?_0x54ee85:void 0x0;}),_0x185f3d['descriptionFactory']['registerDescriptionCallback'](_0x5f4b7d=>{if('attribute'!=_0x5f4b7d['type'])return;const {data:_0x48d741}=_0x5f4b7d;if(!_0x48d741||'listItemId'!=_0x48d741['key'])return;const _0x5cf72b=zt(_0x5f4b7d);return'newValue'==_0x5cf72b?{'type':'format','content':St(_0x2a585d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5cf72b?{'type':'format','content':St(_0x2a585d,'*Split:*\x20list\x20item')}:_0x54ee85;}),_0xfb45df['model']['document']['registerPostFixer'](_0xc78c6f=>this['listItemIdFixer'](_0xc78c6f)),_0xfb45df['model']['document']['registerPostFixer'](_0x41c25e=>this['noTrackChangesFixer'](_0x41c25e)),_0xfb45df['model']['document']['on']('change:data',(_0x10a175,_0xad54c1)=>{if(_0xad54c1['isUndo']||!_0xad54c1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x456dbf){if(_0x456dbf['batch']['isUndo']||!_0x456dbf['batch']['isLocal'])return!0x1;let _0x149c36=!0x1;const _0x10d62b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x110930=>_0x110930['data']&&'listItemId'==_0x110930['data']['key'])['filter'](_0xf9ab01=>_0xf9ab01['data']['newValue']&&_0xf9ab01['data']['oldValue']);for(const _0x111d1c of _0x10d62b)zt(_0x111d1c)||(_0x456dbf['removeMarker'](_0x111d1c['getFirstMarker']()),_0x149c36=!0x0);return _0x149c36;}['noTrackChangesFixer'](_0x37e251){if(_0x37e251['batch']['isUndo']||!_0x37e251['batch']['isLocal'])return!0x1;const _0x2bd845=this['editor']['model']['document']['differ'],_0x4c8f92=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c8f92['trackChangesCommand']['value'])return!0x1;let _0x4dd00b=!0x1;const _0x44548c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x523c65=_0x2bd845['getChanges']()['filter'](_0x51d05e=>'attribute'==_0x51d05e['type'])['filter'](_0x18f9d6=>_0x44548c['has'](_0x18f9d6['attributeKey']));if(0x0==_0x523c65['length'])return _0x4dd00b;const _0x57eaed=new Set(_0x2bd845['getMarkersToAdd']()['filter'](_0x4353e1=>{if(!_0x4353e1['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3bceb1=tt(_0x4353e1['name'])['subType']['split']('|')[0x0];return _0x44548c['has'](_0x3bceb1);})['map'](_0x245d07=>tt(_0x245d07['name'])['id']));for(const _0x2b8f83 of _0x523c65){const _0x231e98=_0x4c8f92['_findSuggestions'](_0x2b8f83['range'],'attribute')['filter'](_0x587fcd=>{if(_0x587fcd['meta']['isNextTo'])return!0x1;if(_0x57eaed['has'](_0x587fcd['suggestion']['id']))return!0x1;const _0x4ed42d=_0x4c8f92['_getAttributeKey'](_0x587fcd['suggestion']);return _0x44548c['has'](_0x4ed42d);})['map'](_0x3e663e=>_0x3e663e['suggestion']);if(_0x231e98['length']){for(const _0x1b0f4c of _0x231e98)_0x37e251['removeMarker'](_0x1b0f4c['getFirstMarker']());_0x4dd00b=!0x0;}}return _0x4dd00b;}['assureChains'](){const _0xb31a3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35d251=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1ce66c;const _0x52b82b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x35695f=>{if(_0x35695f['data']['oldRange']||!_0x35695f['data']['newRange'])return null;if(!_0x35695f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x211627}=tt(_0x35695f['name']);if(!_0xb31a3b['hasSuggestion'](_0x211627))return null;const _0x5e7fa6=_0xb31a3b['getSuggestion'](_0x211627);return _0x35d251['includes'](_0x5e7fa6['data']['key']);})['map'](_0x5e666f=>{const {id:_0x561638}=tt(_0x5e666f['name']),_0x41e087=_0xb31a3b['getSuggestion'](_0x561638);return _0x1ce66c=_0x41e087['attributes']['groupId'],_0x41e087['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52b82b['size'])return;const _0x5dc96b=_0xb31a3b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45898e=>'attribute'==_0x45898e['type']&&_0x45898e['data']&&_0x35d251['includes'](_0x45898e['data']['key'])&&_0x45898e['attributes']['groupId']!=_0x1ce66c)['map'](_0x1ae30c=>({'listItem':_0x1ae30c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ae30c['attributes']['groupId']})),_0x1ffdf5=new Set();for(const {groupId:_0x59d180,listItem:_0x25dfbc}of _0x5dc96b)_0x52b82b['has'](_0x25dfbc)&&_0x1ffdf5['add'](_0x59d180);for(const _0x4f3416 of _0xb31a3b['getSuggestions']())_0x1ffdf5['has'](_0x4f3416['attributes']['groupId'])&&_0x4f3416['setAttribute']('groupId',_0x1ce66c);}['_supportLegacySuggestions'](){const _0x8119b8=this['editor'],_0x204136=_0x8119b8['locale'],_0xf4d1cf=_0x8119b8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf4d1cf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb1784a,_0x2e8316){const _0x338c08=[];for(let _0x2f28fc of _0xb1784a)_0x2f28fc['start']['nodeAfter']===_0x2f28fc['end']['parent']&&(_0x2f28fc=_0x8119b8['model']['createRange'](_0x8119b8['model']['createPositionAt'](_0x2f28fc['start']['nodeAfter'],0x0))),_0x338c08['push'](_0x2f28fc);_0x8119b8['model']['change'](_0x9aa3c2=>{const _0x2b61ad=_0x8119b8['model']['document']['selection'],_0x426c6b=Array['from'](_0x2b61ad['getRanges']())['map'](_0x1cc7cc=>rt['fromRange'](_0x1cc7cc));_0x9aa3c2['setSelection'](_0x338c08),_0x8119b8['commands']['get'](_0x2e8316['commandName'])['refresh'](),_0x2e8316['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8119b8['execute'](_0x2e8316['commandName'],..._0x2e8316['commandParams']),_0x9aa3c2['setSelection'](_0x426c6b);for(const _0x5089cc of _0x426c6b)_0x5089cc['detach']();});}),_0xf4d1cf['descriptionFactory']['registerElementLabel'](function(_0x3e2b5a){const _0x225628=!_0x8119b8['model']['schema']['isObject'](_0x3e2b5a),_0x65cf96=_0x3e2b5a['previousSibling'],_0x3e92e3=_0x3e2b5a['nextSibling'],_0x4d2cab=_0x3e2b5a['getAttribute']('listItemId'),_0x15eb1d=!_0x65cf96||_0x65cf96['getAttribute']('listItemId')!==_0x4d2cab,_0xc74993=!_0x3e92e3||_0x3e92e3['getAttribute']('listItemId')!==_0x4d2cab;return _0x225628&&Boolean(_0x4d2cab)&&_0x15eb1d&&_0xc74993;},_0x175588=>St(_0x204136,'ELEMENT_LIST_ITEM',_0x175588));}['_registerLegacyDescription'](){const _0x277897=this['editor'],_0x1c38c0=_0x277897['locale'];function _0x5cd436(_0x525fed){const _0x31fff9=_0x277897['commands']['get']('bulletedList')['value'],_0x5adbf5=_0x277897['commands']['get']('numberedList')['value'];return'numberedList'===_0x525fed?_0x31fff9:_0x5adbf5;}_0x277897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x23c8fd){if('formatBlock'!=_0x23c8fd['type'])return;const {data:_0x52046e}=_0x23c8fd;if(!_0x52046e)return;let _0x3bdb37,_0x1b296d,_0x174512,_0x20ea30;switch(_0x52046e['commandName']){case'bulletedList':_0x174512=_0x52046e['commandParams'][0x0]['forceValue'],_0x20ea30=_0x5cd436(_0x52046e['commandName']),_0x3bdb37=_0x174512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20ea30&&_0x277897['config']['get']('list.multiBlock')||(_0x3bdb37='*Change\x20to:*\x20%0'),_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x174512=_0x52046e['commandParams'][0x0]['forceValue'],_0x20ea30=_0x5cd436(_0x52046e['commandName']),_0x3bdb37=_0x174512?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20ea30&&_0x277897['config']['get']('list.multiBlock')||(_0x3bdb37='*Change\x20to:*\x20%0'),_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3bdb37='*Indent:*\x20%0',_0x1b296d={'type':'format','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3bdb37=function(_0x3fcc66){const _0x45b217=_0x3fcc66['getFirstRange']();let _0x3fe9f1=_0x45b217['start']['nodeAfter'];for(;_0x3fe9f1&&_0x45b217['containsItem'](_0x3fe9f1);){if(_0x3fe9f1['getAttribute']('listIndent')>0x0)return!0x1;_0x3fe9f1=_0x3fe9f1['nextSibling'];}return!0x0;}(_0x23c8fd)?St(_0x1c38c0,'*Format:*\x20remove\x20from\x20%0',St(_0x1c38c0,function(_0xdd7173){return'ELEMENT_'+_0xdd7173['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x23c8fd))):St(_0x1c38c0,'*Outdent:*\x20%0',St(_0x1c38c0,'ELEMENT_LIST_ITEM')),_0x1b296d={'type':'format','content':_0x3bdb37};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52046e['multipleBlocks']&&(_0x3bdb37='*Merge:*\x20%0',_0x1b296d={'type':'deletion','content':St(_0x1c38c0,_0x3bdb37,St(_0x1c38c0,'ELEMENT_LIST_ITEM'))});}return _0x1b296d;});}};function zt(_0x412e6d){let _0xa7b8c3=_0x412e6d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xa7b8c3;){const _0x10e49c=_0xa7b8c3['getAttribute']('listItemId');if(!_0x10e49c)return!0x1;if(_0x10e49c==_0x412e6d['data']['newValue'])return'newValue';if(_0x10e49c==_0x412e6d['data']['oldValue'])return'oldValue';_0xa7b8c3=_0xa7b8c3['previousSibling'];}return!0x1;}var Xt=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d3a91=this['editor']['config']['get']('list.properties'),_0x111835=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3a91['styles']&&_0x111835['enableDefaultAttributesIntegration']('listStyle'),_0x5d3a91['reversed']&&_0x111835['enableDefaultAttributesIntegration']('listReversed'),_0x5d3a91['startIndex']&&_0x111835['enableDefaultAttributesIntegration']('listStart');const _0x100fe2={'type':'format','content':''};_0x111835['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x39228d=this['editor']['locale'];_0x111835['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x39228d,'FORMAT_LIST_REVERSED')),_0x111835['descriptionFactory']['registerDescriptionCallback'](_0xff4cc3=>{const {data:_0x55f10e}=_0xff4cc3;if(_0x55f10e&&'listReversed'==_0x55f10e['key'])return null==_0x55f10e['newValue']||0x0==_0x55f10e['newValue']&&null==_0x55f10e['oldValue']?_0x100fe2:void 0x0;}),_0x111835['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x39228d,'FORMAT_LIST_START')),_0x111835['descriptionFactory']['registerDescriptionCallback'](_0x561175=>{const {data:_0x487808}=_0x561175;if(_0x487808&&'listStart'==_0x487808['key'])return null==_0x487808['newValue']||0x1==_0x487808['newValue']&&null==_0x487808['oldValue']?_0x100fe2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a2679=>{if(_0x1a2679['batch']['isUndo'])return!0x1;let _0x34ddd7=!0x1;const _0x139e08=_0x111835['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317e0c=>{const _0x3f1e4e=_0x111835['_getAttributeKey'](_0x317e0c);return'listStart'==_0x3f1e4e||'listReversed'==_0x3f1e4e;});for(const _0xab43e9 of _0x139e08){const _0x227afc=_0xab43e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x227afc&&'customNumbered'!=_0x227afc&&(_0x111835['_findSuggestions'](_0xab43e9['getFirstRange'](),'attribute')['find'](_0x34336b=>'listType'==_0x111835['_getAttributeKey'](_0x34336b['suggestion']))||(_0x1a2679['removeMarker'](_0xab43e9['getFirstMarker']()),_0x34ddd7=!0x0));}return _0x34ddd7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x14376c){const _0x135344=this['editor']['locale'],{data:_0x1b1d19}=_0x14376c,_0x51f4f8={'type':'format','content':''};if(!_0x1b1d19||'listStyle'!=_0x1b1d19['key'])return;if(!_0x1b1d19['oldValue'])return'default'==_0x1b1d19['newValue']?_0x51f4f8:{'type':'format','content':''+St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['newValue'])))};if(!_0x1b1d19['newValue']){if('default'==_0x1b1d19['oldValue'])return _0x51f4f8;let _0xab2267=_0x14376c['head'];for(;_0xab2267;){if(_0xab2267['data']&&'listType'==_0xab2267['data']['key']&&_0xab2267['data']['newValue'])return _0x51f4f8;_0xab2267=_0xab2267['next'];}return{'type':'format','content':''+St(_0x135344,'*Remove\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['oldValue'])))};}if('default'!=_0x1b1d19['newValue'])return{'type':'format','content':''+St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,this['_getTranslationKeyForListStyle'](_0x1b1d19['newValue'])))};let _0x48aca5=_0x14376c['head'];for(;_0x48aca5;){if(_0x48aca5['data']&&'listType'==_0x48aca5['data']['key']&&_0x48aca5['data']['newValue']&&_0x48aca5['data']['oldValue'])return _0x51f4f8;_0x48aca5=_0x48aca5['next'];}return{'type':'format','content':St(_0x135344,'*Set\x20format:*\x20%0',St(_0x135344,'ELEMENT_'+_0x14376c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d4df7=this['editor'],_0x56e1f5=_0x2d4df7['locale'];_0x2d4df7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x166e18=>{if('formatBlock'!=_0x166e18['type'])return;const {data:_0x29bab6}=_0x166e18;if(!_0x29bab6)return;let _0x149992,_0x4d67b3;switch(_0x29bab6['commandName']){case'listStyle':_0x149992='*Change\x20to:*\x20%0',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992,St(_0x56e1f5,this['_getTranslationKeyForListStyle'](_0x29bab6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x149992=_0x29bab6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992)};break;case'listStart':_0x149992='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d67b3={'type':'format','content':St(_0x56e1f5,_0x149992,_0x29bab6['commandParams'][0x0]['startIndex'])};}return _0x4d67b3;});}['_getTranslationKeyForListStyle'](_0x209f18){return'ELEMENT_'+(_0x4c75bc=_0x209f18,qt['includes'](_0x4c75bc)?'bulleted':Yt['includes'](_0x4c75bc)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x209f18['toUpperCase']()['replace'](/-/g,'_');var _0x4c75bc;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x2dafdc{['afterInit'](){const _0xfcef7e=this['editor'];_0xfcef7e['commands']['get']('emoji')&&_0xfcef7e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x2dafdc{static get['requires'](){return[ft];}['init'](){const _0x5f29d0=this['editor'],_0x474569=_0x5f29d0['plugins']['get']('TrackChangesEditing'),_0x754153=_0x5f29d0['commands']['get']('enter');_0x474569['enableCommand']('enter',()=>{_0x5f29d0['model']['change'](_0xc7d8dd=>{const _0x22eca8=_0x5f29d0['model']['document']['selection'],_0x22e318=_0x22eca8['getFirstPosition'](),_0x160ca4=rt['fromRange'](_0x22eca8['getFirstRange']());if(_0x754153['enterBlock'](_0xc7d8dd)){const _0x3b4447=_0x5f29d0['model']['createPositionAt'](_0x22e318['parent']['nextSibling'],0x0),_0xa61411=_0xc7d8dd['createRange'](_0x22e318,_0x3b4447);_0x474569['markInsertion'](_0xa61411);}else _0xc7d8dd['setSelection'](_0xc7d8dd['createRange'](_0x160ca4['end']));_0x160ca4['detach'](),_0x754153['fire']('afterExecute',{'writer':_0xc7d8dd});});});}},Jt=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x34f04c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34f04c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x34f04c['enableCommand']('findNext'),_0x34f04c['enableCommand']('findPrevious'),_0x34f04c['enableCommand']('replace'),_0x34f04c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c4417,_0x5177ba,_0x362d0c={}){const _0x29ed6e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c4417(_0x20ba74=>{let _0x30f37d=('string'==typeof _0x5177ba?_0x29ed6e['findByTextCallback'](_0x5177ba,_0x362d0c):_0x5177ba)(_0x20ba74);Array['isArray'](_0x30f37d)&&(_0x30f37d={'results':_0x30f37d,'searchText':'string'==typeof _0x5177ba?_0x5177ba:''});const _0x1c7015=_0x30f37d['results']['filter'](_0x373e5e=>!0x1===this['_isInDeletionRange'](_0x373e5e,_0x20ba74['item']));return{..._0x30f37d,'results':_0x1c7015};},_0x362d0c);}['_isInDeletionRange'](_0x5df715,_0x3822dc){const _0x29674d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3822dc,_0x5df715['start']),this['editor']['model']['createPositionAt'](_0x3822dc,_0x5df715['end']));for(const _0x224821 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29674d['getIntersection'](_0x224821['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x2dafdc{['afterInit'](){const _0x4f2920=this['editor']['locale'],_0x3a47a9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x588d55,commandName:_0x169c2f}of te)this['editor']['plugins']['has'](_0x588d55)&&_0x3a47a9['enableDefaultAttributesIntegration'](_0x169c2f);_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x4f2920,'FORMAT_FONT_SIZE')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x4f2920,'FORMAT_FONT_FAMILY')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x4f2920,'FORMAT_FONT_COLOR')),_0x3a47a9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x4f2920,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c444b=this['editor'],_0x329eaf=_0x2c444b['locale'];_0x2c444b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4905e2=>{const _0x16a075=_0x329eaf['t'];if('formatInline'!=_0x4905e2['type'])return;const {data:_0x14cbd9}=_0x4905e2;if(null!=_0x14cbd9){if('fontSize'==_0x14cbd9['commandName']){const _0x176b1e=_0x14cbd9['commandParams'][0x0]['value'];if(_0x176b1e){const _0x3fc439=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x624752=>_0x624752['model']==_0x176b1e)['title'];return{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20size:*\x20%0',_0x16a075(_0x3fc439)['toLowerCase']())};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x14cbd9['commandName']){const _0x50361c=_0x14cbd9['commandParams'][0x0]['value'];return _0x50361c?{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20family:*\x20%0',_0x50361c)}:{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x14cbd9['commandName']){const _0xd960e0=_0x14cbd9['commandParams'][0x0]['value'];if(_0xd960e0){const _0x59e56f=_0x575edc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4baa6b=>_0x4baa6b['model']==_0xd960e0);let _0x14686e=_0xd960e0,_0x1a2f60='';return _0x59e56f&&(_0x14686e=_0x59e56f['label'],_0x1a2f60=_0x16a075(_0x14686e)['toLowerCase']()),{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20color:*\x20%0',_0x1a2f60)['trim'](),'color':{'value':_0xd960e0,'title':_0x1a2f60||_0x14686e}};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x14cbd9['commandName']){const _0x430736=_0x14cbd9['commandParams'][0x0]['value'];if(_0x430736){const _0x162511=_0x575edc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x335663=>_0x335663['model']==_0x430736);let _0x20516b=_0x430736,_0x4cce45='';return _0x162511&&(_0x20516b=_0x162511['label'],_0x4cce45=_0x16a075(_0x20516b)['toLowerCase']()),{'type':'format','content':St(_0x329eaf,'*Set\x20font\x20background\x20color:*\x20%0',_0x4cce45)['trim'](),'color':{'value':_0x430736,'title':_0x4cce45||_0x20516b}};}return{'type':'format','content':St(_0x329eaf,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x2dafdc{['afterInit'](){const {plugins:_0x3aeb44}=this['editor'];_0x3aeb44['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3aeb44['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x16f1ff,plugins:_0x5477bc,commands:_0xdbc4f7}=this['editor'],_0xa4e48b=_0x5477bc['get']('TrackChangesEditing');_0xdbc4f7['get']('footnotesStyle')&&_0xa4e48b['enableDefaultAttributesIntegration']('footnotesStyle'),_0xdbc4f7['get']('footnotesStart')&&_0xa4e48b['enableDefaultAttributesIntegration']('footnotesStart'),_0xa4e48b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x16f1ff,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xa4e48b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x16f1ff,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x32377b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x47ae09,commands:_0x17887a}=this['editor'];_0x17887a['get']('insertFootnote')&&_0x32377b['enableCommand']('insertFootnote'),_0x32377b['descriptionFactory']['registerElementLabel']('footnoteRef',_0xc568e4=>St(_0x47ae09,'ELEMENT_FOOTNOTE_REF',_0xc568e4)),_0x32377b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1f3407=>St(_0x47ae09,'ELEMENT_FOOTNOTE_DEFINITION',_0x1f3407)),_0x32377b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x417495=>St(_0x47ae09,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x417495));}},ie=class extends _0x2dafdc{['afterInit'](){const _0x3712bc=this['editor'],_0x31d4d0=_0x3712bc['plugins']['get']('TrackChangesEditing'),_0xf4f952=_0x3712bc['commands']['get']('copyFormat'),_0x46fcad=_0x3712bc['commands']['get']('pasteFormat');_0xf4f952&&_0x46fcad&&(_0x31d4d0['enableDefaultAttributesIntegration']('pasteFormat'),_0x31d4d0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x16ed5e=this['editor'],_0x5c748d=_0x16ed5e['locale'];_0x16ed5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15af05=>{if('formatBlock'!=_0x15af05['type']&&'formatInline'!=_0x15af05['type'])return;const {data:_0x215662}=_0x15af05;if(_0x215662&&'pasteFormat'===_0x215662['commandName']){const _0x15af96=[],_0x28fa63=_0x215662['commandParams'][0x0];for(const [_0x4b1041,_0x4d04df]of Object['entries'](_0x28fa63))_0x15af96['push'](se(_0x16ed5e,_0x4b1041,_0x4d04df));return _0x15af96['length']?{'type':'format','content':St(_0x5c748d,'*Set\x20format\x20to:*\x20%0',_0x15af96['join'](',\x20'))}:{'type':'format','content':St(_0x5c748d,'*Remove\x20all\x20formatting*')};}});}};function se(_0x2291a2,_0x547892,_0x17ed03){const _0x55755d=_0x2291a2['locale']['t'],_0x38514a=_0x547892['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ac2f0=_0x55755d(_0x38514a['charAt'](0x0)['toUpperCase']()+_0x38514a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x17ed03)return _0x2ac2f0;if('fontColor'===_0x547892||'fontBackgroundColor'===_0x547892){const _0x10c6f7=_0x575edc(_0x2291a2['config']['get']('fontColor.colors'))['find'](_0x1cee99=>_0x1cee99['model']==_0x17ed03);return _0x2ac2f0+'\x20('+(_0x10c6f7?_0x55755d(_0x10c6f7['label'])['toLowerCase']():_0x17ed03)+')';}if('fontSize'===_0x547892&&isNaN(parseFloat(_0x17ed03))){const _0xb09909=_0x2291a2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2291a2['config']['get']('fontSize.options'))['find'](_0x52c19f=>_0x52c19f['model']==_0x17ed03);return _0x2ac2f0+'\x20('+(_0xb09909?_0x55755d(_0xb09909['title'])['toLowerCase']():_0x17ed03)+')';}return _0x2ac2f0+'\x20('+_0x17ed03+')';}var re=class extends _0x2dafdc{['afterInit'](){const _0x47100c=this['editor'];if(!_0x47100c['plugins']['has']('GeneralHtmlSupport')||!_0x47100c['plugins']['has']('DataSchema'))return;const _0x366acb=_0x47100c['plugins']['get']('TrackChangesEditing'),_0x286914=_0x47100c['plugins']['get']('GeneralHtmlSupport'),_0x3b14b1=_0x47100c['plugins']['get']('DataSchema'),_0x219a43=_0x47100c['locale'],_0x2a3c25=new Set(['htmlContent']);for(const _0x2bae66 of _0x3b14b1['getDefinitionsForView'](/.*/,!0x1)){const _0x3c6068=_0x2bae66['view'],_0xe1257=_0x286914['getGhsAttributeNameForElement'](_0x3c6068);_0x2a3c25['add'](_0xe1257),!_0x2bae66['isInline']||_0x2bae66['isObject']||'appliesToBlock'in _0x2bae66&&_0x2bae66['appliesToBlock']||_0x366acb['descriptionFactory']['registerAttributeLabel'](_0xe1257,_0x3c6068),_0x2bae66['model']['startsWith']('html')&&_0x366acb['descriptionFactory']['registerElementLabel'](_0x2bae66['model'],_0x5cf044=>St(_0x219a43,'ELEMENT_HTML_TAG',[_0x5cf044,_0x3c6068]));}_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x219a43,'FORMAT_RAW_HTML_CONTENT')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x219a43,'FORMAT_HTML_LIST_ITEM')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x219a43,'FORMAT_HTML_BULLETED_LIST')),_0x366acb['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x219a43,'FORMAT_HTML_NUMBERED_LIST')),_0x366acb['descriptionFactory']['registerDescriptionCallback'](_0x212dac=>{if('attribute'!==_0x212dac['type'])return;const _0x2d0a27=_0x212dac['data'];if(!_0x2d0a27||!_0x2a3c25['has'](_0x2d0a27['key']))return;if('htmlContent'===_0x2d0a27['key'])return{'type':'format','content':St(_0x219a43,'*Change\x20%0\x20content*',St(_0x219a43,'ELEMENT_RAW_HTML'))};const {setItems:_0x5a0a8c,removeItems:_0x44b1a4}=function(_0x5d2ed0,_0x5e4aa9,_0x31852f){const _0x187872=[],_0x43c73d=[],_0x169b2c=_0x5d2ed0['styles']??{},_0x137c93=_0x5e4aa9['styles']??{};for(const _0x35adf1 of new Set([...Object['keys'](_0x169b2c),...Object['keys'](_0x137c93)]))_0x169b2c[_0x35adf1]!==_0x137c93[_0x35adf1]&&(void 0x0===_0x137c93[_0x35adf1]?_0x43c73d['push'](_0x35adf1):_0x187872['push'](_0x35adf1+'\x20('+_0x137c93[_0x35adf1]+')'));const _0x56b227=St(_0x31852f,'FORMAT_HTML_CLASS'),_0x289535=new Set(_0x5d2ed0['classes']??[]),_0x2f9c26=new Set(_0x5e4aa9['classes']??[]),_0x35d25b=[..._0x2f9c26]['some'](_0x2150b0=>!_0x289535['has'](_0x2150b0)),_0x5b487a=[..._0x289535]['some'](_0x49ae89=>!_0x2f9c26['has'](_0x49ae89));_0x35d25b&&_0x187872['push'](_0x56b227),_0x5b487a&&_0x43c73d['push'](_0x56b227);const _0x53f140=St(_0x31852f,'FORMAT_HTML_ATTRIBUTE'),_0x573a77=_0x5d2ed0['attributes']??{},_0x1fdb72=_0x5e4aa9['attributes']??{};let _0x3d4cd2=!0x1,_0x22808b=!0x1;for(const _0x46a400 of new Set([...Object['keys'](_0x573a77),...Object['keys'](_0x1fdb72)]))_0x573a77[_0x46a400]!==_0x1fdb72[_0x46a400]&&(void 0x0===_0x1fdb72[_0x46a400]?_0x22808b=!0x0:_0x3d4cd2=!0x0);return _0x3d4cd2&&_0x187872['push'](_0x53f140),_0x22808b&&_0x43c73d['push'](_0x53f140),{'setItems':_0x187872,'removeItems':_0x43c73d};}(_0x2d0a27['oldValue']??{},_0x2d0a27['newValue']??{},_0x219a43);if(!_0x5a0a8c['length']&&!_0x44b1a4['length'])return;const _0x4d0390=[];return _0x5a0a8c['length']&&_0x4d0390['push'](St(_0x219a43,'*Set\x20format:*\x20%0',_0x5a0a8c['join'](',\x20'))),_0x44b1a4['length']&&_0x4d0390['push'](St(_0x219a43,'*Remove\x20format:*\x20%0',_0x44b1a4['join'](',\x20'))),{'type':'format','content':_0x4d0390['join']('\x0a')};});}},oe=class extends _0x2dafdc{['_headingOptions'];['afterInit'](){const _0x2eae84=this['editor'];if(!_0x2eae84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2eae84['config']['get']('heading.options');const _0x4644d4=_0x2eae84['locale'],_0xbd1c88=_0x2eae84['plugins']['get']('TrackChangesEditing');_0xbd1c88['enableDefaultAttributesIntegration']('heading');for(const _0x20e088 of this['_headingOptions'])'paragraph'!=_0x20e088['model']&&_0xbd1c88['descriptionFactory']['registerElementLabel'](_0x20e088['model'],_0x2907e8=>{const _0x3f89fd=this['_getHeadingLevel'](_0x20e088['model']);return null!==_0x3f89fd?_0x172c9c(_0x2907e8,_0x3f89fd):_0x308df7(_0x2907e8,_0x20e088['title']);});function _0x172c9c(_0x24e978,_0x15664d){return St(_0x4644d4,'ELEMENT_HEADING',[_0x24e978,_0x15664d]);}function _0x308df7(_0x535fb5,_0x3badca){return St(_0x4644d4,'ELEMENT_HEADING_CUSTOM',[_0x535fb5,_0x3badca]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9324cc=this['editor'],_0x24ac7e=_0x9324cc['locale'];function _0x31fa21(_0xef3f90,_0x422c9d){return St(_0x24ac7e,'ELEMENT_HEADING_CUSTOM',[_0xef3f90,_0x422c9d]);}_0x9324cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259237=>{if('formatBlock'!=_0x259237['type'])return;const {data:_0x241707}=_0x259237;if(_0x241707&&'heading'==_0x241707['commandName']){const _0x1d5ee2=_0x241707['commandParams'][0x0]['value'],_0x35216e=this['_getHeadingLevel'](_0x1d5ee2);if(null!==_0x35216e)return{'type':'format','content':St(_0x24ac7e,'*Change\x20to:*\x20%0',(_0x409cf4=0x1,_0x359e27=_0x35216e,St(_0x24ac7e,'ELEMENT_HEADING',[_0x409cf4,_0x359e27])))};const _0x501463=this['_headingOptions']['find'](_0x1ab7a9=>_0x1ab7a9['model']===_0x1d5ee2)['title'];return{'type':'format','content':St(_0x24ac7e,'*Change\x20to:*\x20%0',_0x31fa21(0x1,_0x501463))};}var _0x409cf4,_0x359e27;});}['_getHeadingLevel'](_0x2bcc19){const _0x1b7ee0=_0x2bcc19['match'](/^heading(\d+)/);if(_0x1b7ee0)return _0x1b7ee0[0x1];const _0x320068=this['_headingOptions']?.['find'](_0x5919cf=>_0x5919cf['model']==_0x2bcc19);if(_0x320068&&_0x320068['view']){const _0x3eaaa6=_0x320068['view'],_0x320e22=(_0x3eaaa6['name']??_0x3eaaa6)['match'](/^h(\d+)/);if(_0x320e22)return _0x320e22[0x1];}return null;}},ae=class extends _0x2dafdc{['afterInit'](){const _0x59b03f=this['editor'];if(!_0x59b03f['plugins']['has']('HighlightEditing'))return;const _0xf32aba=_0x59b03f['plugins']['get']('TrackChangesEditing'),_0x3a00ed=_0x59b03f['locale'];_0xf32aba['enableDefaultAttributesIntegration']('highlight'),_0xf32aba['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x3a00ed,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319794=this['editor'],_0x406566=_0x319794['locale'];_0x319794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c9d9=>{if('formatInline'!=_0x11c9d9['type'])return;const {data:_0x13b58c}=_0x11c9d9;if(_0x13b58c&&'highlight'==_0x13b58c['commandName']){const _0x39ab3b=_0x406566['t'],_0x544f88=_0x13b58c['commandParams'][0x0]['value'];if(_0x544f88){const _0x8a1cf6=_0x319794['config']['get']('highlight.options')['find'](_0x24e7dd=>_0x24e7dd['model']==_0x544f88);return{'type':'format','content':St(_0x406566,'*Set\x20highlight:*\x20%0',_0x39ab3b(_0x8a1cf6['title'])['toLowerCase']()),'color':{'value':_0x8a1cf6['color'],'title':_0x8a1cf6['title']}};}return{'type':'format','content':St(_0x406566,'*Remove\x20highlight*',St(_0x406566,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x2dafdc{['afterInit'](){const _0x3b2224=this['editor'];if(!_0x3b2224['plugins']['has']('HorizontalLineEditing'))return;_0x3b2224['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ecdb0=_0x3b2224['plugins']['get']('TrackChangesEditing'),_0x4ff0fb=_0x3b2224['locale'];_0x2ecdb0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4aa5b5=>St(_0x4ff0fb,'ELEMENT_HORIZONTAL_LINE',_0x4aa5b5));}},le=class extends _0x2dafdc{['afterInit'](){const _0x197d33=this['editor'];if(!_0x197d33['plugins']['has']('HtmlEmbed'))return;const _0x10ae5c=_0x197d33['plugins']['get']('TrackChangesEditing'),_0x45de1a=_0x197d33['locale'];_0x10ae5c['descriptionFactory']['registerElementLabel']('rawHtml',_0x3663d1=>St(_0x45de1a,'ELEMENT_HTML_EMBED',_0x3663d1)),_0x10ae5c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10ae5c['descriptionFactory']['registerDescriptionCallback'](_0x1d2928=>{if('attribute'!=_0x1d2928['type'])return;const {data:_0x2294e7}=_0x1d2928;return _0x2294e7&&'value'==_0x2294e7['key']&&_0x1d2928['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x45de1a,'*Change\x20%0\x20content*',St(_0x45de1a,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b170=this['editor'],_0x3e3c88=_0x19b170['locale'];_0x19b170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aa0e7=>{if('formatBlock'!=_0x5aa0e7['type'])return;const {data:_0x1b2350}=_0x5aa0e7;return _0x1b2350&&'htmlEmbed'==_0x1b2350['commandName']?{'type':'format','content':St(_0x3e3c88,'*Change\x20%0\x20content*',St(_0x3e3c88,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x2dafdc{['afterInit'](){const _0x104095=this['editor'];if(!_0x104095['plugins']['has']('ImageEditing'))return;const _0xd8e1d=_0x104095['plugins']['get']('TrackChangesEditing'),_0x214410=_0x104095['plugins']['get']('ImageUtils'),_0x102131=_0x104095['locale'];_0xd8e1d['enableCommand']('insertImage'),_0xd8e1d['descriptionFactory']['registerElementLabel']('imageBlock',_0x4e093f=>St(_0x102131,'ELEMENT_IMAGE',_0x4e093f)),_0xd8e1d['descriptionFactory']['registerElementLabel']('imageInline',_0x4089f6=>St(_0x102131,'ELEMENT_INLINE_IMAGE',_0x4089f6)),_0xd8e1d['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x102131,'ELEMENT_CAPTION')),_0x104095['plugins']['has']('ImageUploadEditing')&&_0xd8e1d['enableCommand']('uploadImage'),_0x104095['plugins']['has']('ImageBlockEditing')&&_0x104095['plugins']['has']('ImageInlineEditing')&&(_0xd8e1d['enableCommand']('imageTypeInline',(_0x3ac0e8,_0x7fe216)=>{const _0x558b81=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']);_0x104095['model']['change'](()=>{_0xd8e1d['markBlockFormat'](_0x558b81,{'commandName':'imageTypeInline','commandParams':[_0x7fe216]},[],'convertBlockImageToInline');});}),_0xd8e1d['enableCommand']('imageTypeBlock',(_0x58fe43,_0x32dae4)=>{_0x104095['model']['change'](_0x19735b=>{let _0x22e83a=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x18a485=_0x19735b['createRangeOn'](_0x22e83a);const _0x457f5d=st['fromPosition'](_0x18a485['start'],'toPrevious'),_0x5a649d=st['fromPosition'](_0x18a485['end'],'toNext');_0xd8e1d['forceDefaultExecution'](()=>_0x58fe43(_0x32dae4)),_0x22e83a=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x18a485=_0x19735b['createRangeOn'](_0x22e83a);const _0x1cffd9=_0x19735b['createRange'](_0x457f5d,_0x5a649d);_0x457f5d['detach'](),_0x5a649d['detach'](),_0xd8e1d['markBlockFormat'](_0x22e83a,{'commandName':'imageTypeInline','commandParams':[_0x32dae4]},[],'convertInlineImageToBlock'),_0x1cffd9['start']['isBefore'](_0x18a485['start'])&&_0xd8e1d['markInsertion'](_0x19735b['createRange'](_0x1cffd9['start'],_0x18a485['start']),'convertInlineImageToBlock'),_0x18a485['end']['isBefore'](_0x1cffd9['end'])&&_0xd8e1d['markInsertion'](_0x19735b['createRange'](_0x18a485['end'],_0x1cffd9['end']),'convertInlineImageToBlock');});}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xd8e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xdcd514])=>{const _0x4dc7be=_0xd8e1d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xe501cc=_0xdcd514['start'],_0x2f1037=_0xdcd514['end'];const _0x3f232f=_0x104095['model']['schema']['getNearestSelectionRange'](_0xe501cc,'backward'),_0x507134=_0x104095['model']['schema']['getNearestSelectionRange'](_0x2f1037,'forward');_0x3f232f['isCollapsed']&&(_0xe501cc=_0x3f232f['start']),_0x507134['isCollapsed']&&(_0x2f1037=_0x507134['end']),_0x4dc7be([_0x104095['model']['createRange'](_0xe501cc,_0x2f1037)]);}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3b4fe0),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3b4fe0)),_0x104095['plugins']['has']('ImageCaptionEditing')&&(_0xd8e1d['enableCommand']('toggleImageCaption',(_0x13e25a,_0x6fed77)=>{const _0x5d4c2f=_0x104095['plugins']['get']('ImageCaptionUtils');let _0x9710a6=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x8a40f3=_0x5d4c2f['getCaptionFromImageModelElement'](_0x9710a6);_0x104095['model']['change'](()=>{if(_0x8a40f3)return void _0xd8e1d['markDeletion'](_0x104095['model']['createRangeOn'](_0x8a40f3));const _0x188cdb=_0x214410['isBlockImage'](_0x9710a6);_0x13e25a(_0x6fed77),_0x9710a6=_0x214410['getClosestSelectedImageElement'](_0x104095['model']['document']['selection']),_0x8a40f3=_0x5d4c2f['getCaptionFromImageModelElement'](_0x9710a6),_0xd8e1d['markInsertion'](_0x104095['model']['createRangeOn'](_0x8a40f3),_0x188cdb?null:'imageCaption');});}),_0xd8e1d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3b4fe0));const _0xdd71f2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2031bf(_0x26ea95,_0xcb43fc){const _0x1e1678=_0xdd71f2['findIndex'](({type:_0x1e2f43,subType:_0xcd8b23})=>_0x26ea95['type']==_0x1e2f43&&_0x26ea95['subType']==_0xcd8b23),_0x49e876=_0xdd71f2['findIndex'](({type:_0x50e309,subType:_0x4b8072})=>_0xcb43fc['type']==_0x50e309&&_0xcb43fc['subType']==_0x4b8072);if(_0x1e1678<0x0||_0x49e876<0x0)return!0x1;const _0x2f8881=_0x26ea95['getFirstRange'](),_0x2939ce=_0xcb43fc['getFirstRange']();if((0x0==_0x1e1678||0x1==_0x1e1678)&&0x2==_0x49e876&&_0x2f8881['isIntersecting'](_0x2939ce))return!0x0;if(0x2==_0x1e1678&&0x3==_0x49e876){const _0x188291=_0xd8e1d['_findSuggestions'](_0x2f8881,'insertion')['filter'](({suggestion:_0x4b2ec3,meta:_0x394040})=>_0x394040['isOwn']&&'convertInlineImageToBlock'==_0x4b2ec3['subType']);if(_0x188291['length']>0x1&&_0x2939ce['end']['isEqual'](_0x2f8881['start']))return!0x0;if(0x1==_0x188291['length']&&(_0x2f8881['start']['isEqual'](_0x2939ce['end'])||_0x2f8881['end']['isEqual'](_0x2939ce['start'])))return!0x0;}if(0x3==_0x1e1678&&0x3==_0x49e876&&_0x2f8881['start']['isBefore'](_0x2939ce['start'])){const _0x2eee8a=_0x2f8881['end']['nodeAfter'],_0x37a664=_0x2939ce['start']['nodeBefore'];return _0x214410['isBlockImage'](_0x2eee8a)&&_0x2eee8a===_0x37a664;}return!0x1;}function _0x3b4fe0(_0x55a62f,_0x36047f){return _0x2031bf(_0x55a62f,_0x36047f)?[_0x55a62f,_0x36047f]:_0x2031bf(_0x36047f,_0x55a62f)?[_0x36047f,_0x55a62f]:null;}_0x104095['plugins']['has']('ImageResize')&&(_0xd8e1d['enableDefaultAttributesIntegration']('resizeImage'),_0xd8e1d['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x102131,'FORMAT_IMAGE_SIZE'))),_0x104095['plugins']['has']('ImageTextAlternativeEditing')&&_0xd8e1d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x104095['plugins']['has']('PictureEditing')&&_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x38c80c=>{if('attribute'!=_0x38c80c['type'])return;const {data:_0x3f5e85}=_0x38c80c;return _0x3f5e85&&'sources'==_0x3f5e85['key']?{'type':'format','content':''}:void 0x0;}),_0x104095['plugins']['has']('ImageSizeAttributes')&&_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x34eeef=>{if('attribute'!=_0x34eeef['type'])return;const {data:_0x2767d4}=_0x34eeef;return!_0x2767d4||'width'!=_0x2767d4['key']&&'height'!=_0x2767d4['key']?void 0x0:{'type':'format','content':''};}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x4399d0=>{if(_0xdd71f2['find'](({type:_0x9fa6c2,subType:_0x10256c})=>_0x4399d0['type']==_0x9fa6c2&&_0x4399d0['subType']==_0x10256c))return _0x4399d0['previous']?{}:void 0x0;}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x1c82a1=>{if('insertion'==_0x1c82a1['type']||'deletion'==_0x1c82a1['type']){const _0x295939=_0x1c82a1['getContainedElement']();if(_0x295939&&_0x295939['is']('element','caption'))return{'type':'insertion'==_0x1c82a1['type']?'addObject':'removeObject','element':_0x295939,'quantity':0x1};}}),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x400fcf=>'formatBlock'==_0x400fcf['type']&&'convertInlineImageToBlock'==_0x400fcf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x400fcf['type']&&'convertBlockImageToInline'==_0x400fcf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xd8e1d['descriptionFactory']['registerDescriptionCallback'](_0x5404fb=>{if('attribute'!=_0x5404fb['type'])return;const {data:_0x14624b}=_0x5404fb;if(!_0x14624b||'alt'!=_0x14624b['key'])return;const _0x3c11b4=_0x14624b['newValue'];return _0x3c11b4?{'type':'format','content':St(_0x102131,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c11b4+'\x22')}:{'type':'format','content':St(_0x102131,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442435=this['editor'],_0x5a6820=_0x442435['locale'];_0x442435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0416=>{if('formatBlock'!=_0x2a0416['type']&&'formatInline'!=_0x2a0416['type'])return;const {data:_0x2b5034}=_0x2a0416;if(_0x2b5034){if('imageTextAlternative'==_0x2b5034['commandName']){const _0x7f125a=_0x2b5034['commandParams'][0x0]['newValue'];return _0x7f125a?{'type':'format','content':St(_0x5a6820,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7f125a+'\x22')}:{'type':'format','content':St(_0x5a6820,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b5034['commandName']){const _0x315fbe=_0x2b5034['commandParams'][0x0]['width'];return _0x315fbe?{'type':'format','content':St(_0x5a6820,'*Set\x20image\x20width:*\x20%0',_0x315fbe)}:{'type':'format','content':St(_0x5a6820,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x50b220=this['editor']['locale'],_0x4f7692=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f7692['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f7692['descriptionFactory']['registerDescriptionCallback'](_0x8dd5b7=>{if('attribute'!=_0x8dd5b7['type'])return;const {data:_0x1d4482}=_0x8dd5b7;return _0x1d4482&&'src'==_0x1d4482['key']?_0x1d4482['newValue']&&_0x1d4482['oldValue']?{'type':'format','content':St(_0x50b220,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5abfe3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5abfe3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5abfe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5abfe3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5abfe3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491b11=this['editor'],_0x3d4e60=_0x491b11['locale'];_0x491b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5768e9=>{if('formatBlock'!=_0x5768e9['type']&&'formatInline'!=_0x5768e9['type'])return;const {data:_0x2c93fd}=_0x5768e9;return _0x2c93fd&&'replaceImageSource'==_0x2c93fd['commandName']?{'type':'format','content':St(_0x3d4e60,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x2dafdc{['afterInit'](){const _0x347139=this['editor'];if(!_0x347139['plugins']['has']('ImageStyleEditing'))return;const _0x5a7bdc=_0x347139['plugins']['get']('TrackChangesEditing'),_0x2c0353=_0x347139['plugins']['get']('ImageUtils'),_0x1a9130={};_0x5a7bdc['enableCommand']('imageStyle',(_0x4decc4,_0x20d00e)=>{const _0x547ade=_0x347139['plugins']['get']('Users')['me'],_0x2ed02e=_0x347139['commands']['get']('imageStyle');let _0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),_0x2d8bb7=_0x347139['model']['createRangeOn'](_0x2c97e2),_0xd6e4ba=_0x2ed02e['value'];if(_0xd6e4ba==_0x20d00e['value'])return;if(_0x20d00e['value']&&_0x2c0353['isInlineImage'](_0x2c97e2)&&!_0x2ed02e['isStyleEnabled'](_0x20d00e['value']))return;const _0x36c1be={'commandName':'imageStyle','commandParams':[_0x20d00e],'formatGroupId':_0x24c80d()};_0x347139['model']['change'](()=>{if(_0x5a7bdc['getSuggestions']()['filter'](_0x2e408c=>_0x2e408c['isInContent']&&_0x547ade==_0x2e408c['author']&&('formatBlock'==_0x2e408c['type']||'formatInline'==_0x2e408c['type'])&&('imageStylePreApply'==_0x2e408c['subType']||'imageStylePostApply'==_0x2e408c['subType'])&&_0x2e408c['getFirstRange']()['isEqual'](_0x2d8bb7))['forEach'](_0x2ff63f=>_0x5a7bdc['discardSuggestion'](_0x2ff63f['head'])),_0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),_0x2d8bb7=_0x347139['model']['createRangeOn'](_0x2c97e2),_0x2ed02e['refresh'](),_0x347139['commands']['get']('imageTypeInline')['refresh'](),_0x347139['commands']['get']('imageTypeBlock')['refresh'](),_0xd6e4ba=_0x2ed02e['value'],_0xd6e4ba!=_0x20d00e['value'])return _0x2c0353['isInlineImage'](_0x2c97e2)&&_0x2ed02e['shouldConvertImageType'](_0x20d00e['value'],_0x2c97e2)?(_0x4decc4({..._0x20d00e,'setImageSizes':!0x1}),_0x2c97e2=_0x2c0353['getClosestSelectedImageElement'](_0x347139['model']['document']['selection']),void _0x5a7bdc['markBlockFormat'](_0x2c97e2,{..._0x36c1be,'commandReversedParams':[{'value':_0xd6e4ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c0353['isBlockImage'](_0x2c97e2)?_0x5a7bdc['markBlockFormat'](_0x2c97e2,_0x36c1be,[],'imageStylePostApply'):_0x5a7bdc['markInlineFormat'](_0x2d8bb7,_0x36c1be,'imageStylePostApply'));});});for(const _0x3034dc of _0x347139['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1a9130[_0x3034dc['name']]=_0x3034dc['title']['toLowerCase']();_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x597665])=>{_0x2c0353['setImageNaturalSizeAttributes'](_0x597665['getContainedElement']());}),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2fe326,_0x12f646)=>{_0x5a7bdc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2fe326,{'commandName':_0x12f646['commandName'],'commandParams':_0x12f646['commandReversedParams']});}),_0x5a7bdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x59aa1f,_0x452173){return _0x27a652(_0x59aa1f,_0x452173)?[_0x59aa1f,_0x452173]:_0x27a652(_0x452173,_0x59aa1f)?[_0x452173,_0x59aa1f]:null;});const _0x450b3a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27a652(_0x2201e6,_0xcf0ff5){const _0x50c37f=_0x450b3a['findIndex'](({type:_0x130dc3,subType:_0x581eb8})=>_0x2201e6['type']==_0x130dc3&&_0x2201e6['subType']==_0x581eb8),_0xd23365=_0x450b3a['findIndex'](({type:_0x6b7495,subType:_0x56df70})=>_0xcf0ff5['type']==_0x6b7495&&_0xcf0ff5['subType']==_0x56df70);if(_0x50c37f<0x0||_0xd23365<0x0)return!0x1;const _0x16fbf6=_0x2201e6['getFirstRange'](),_0x4503b2=_0xcf0ff5['getFirstRange']();if((0x0==_0x50c37f||0x1==_0x50c37f)&&0x2==_0xd23365&&_0x16fbf6['isIntersecting'](_0x4503b2))return!0x0;if(0x2==_0x50c37f&&0x3==_0xd23365){const _0x4c3d1f=_0x5a7bdc['_findSuggestions'](_0x16fbf6,'insertion')['filter'](({suggestion:_0x135508,meta:_0x5493a5})=>_0x5493a5['isOwn']&&'convertInlineImageToBlock'==_0x135508['subType']);if(_0x4c3d1f['length']>0x1&&_0x4503b2['end']['isEqual'](_0x16fbf6['start']))return!0x0;if(0x1==_0x4c3d1f['length']&&(_0x16fbf6['start']['isEqual'](_0x4503b2['end'])||_0x16fbf6['end']['isEqual'](_0x4503b2['start'])))return!0x0;}if(0x3==_0x50c37f&&0x3==_0xd23365&&_0x16fbf6['start']['isBefore'](_0x4503b2['start'])){const _0x2029e4=_0x16fbf6['end']['nodeAfter'],_0x1052b5=_0x4503b2['start']['nodeBefore'];return _0x2c0353['isBlockImage'](_0x2029e4)&&_0x2029e4===_0x1052b5;}return!0x1;}_0x347139['model']['document']['registerPostFixer'](()=>{let _0x5779cf=!0x1;const _0xfa2dd1=Array['from'](_0x347139['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d3ea1,data:_0x2d5938}of _0xfa2dd1){const {group:_0x1f4117,type:_0x64e5da,subType:_0x34d177,id:_0x19dae9}=tt(_0x4d3ea1);if('suggestion'==_0x1f4117&&_0x5a7bdc['hasSuggestion'](_0x19dae9)){if('formatBlock'==_0x64e5da&&('imageStylePreApply'==_0x34d177||'imageStylePostApply'==_0x34d177)){const _0x15b8e5=_0x5a7bdc['getSuggestion'](_0x19dae9);if(_0x2d5938['newRange']){const _0x539329=_0x15b8e5['getFirstRange']()['getContainedElement']();if(_0x2c0353['isBlockImage'](_0x539329))continue;_0x5a7bdc['discardSuggestion'](_0x15b8e5),_0x5779cf=!0x0;}}if('insertion'==_0x64e5da&&'imageCaption'==_0x34d177&&!_0x2d5938['newRange']){const _0x43643f=_0x5a7bdc['getSuggestion'](_0x19dae9);_0x43643f['next']&&_0x43643f['next']['isInContent']&&(_0x5a7bdc['discardSuggestion'](_0x43643f['next']),_0x5779cf=!0x0);}}}return _0x5779cf;}),this['_registerLegacyDescription'](_0x1a9130);}['_registerLegacyDescription'](_0x2e3898){const _0x79e15c=this['editor'],_0xcbf61d=_0x79e15c['locale'];_0x79e15c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4527=>{if('formatBlock'!=_0x2b4527['type']&&'formatInline'!=_0x2b4527['type'])return;const {data:_0x226365}=_0x2b4527;if(!_0x226365||'imageStyle'!=_0x226365['commandName'])return;const _0x51adec=_0x226365['commandParams'][0x0]['value'];return _0x140690('side'===_0x51adec?St(_0xcbf61d,'FORMAT_SIDE_IMAGE'):_0x2e3898[_0x51adec]||_0x51adec);function _0x140690(_0x38732b){return{'type':'format','content':St(_0xcbf61d,'*Format:*\x20%0',_0x38732b)};}});}},ge=class extends _0x2dafdc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5cf6fb){super(_0x5cf6fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x17d1a3=this['editor'],_0x4f6669=_0x17d1a3['commands']['get']('importWord'),_0x1ea25c=_0x17d1a3['commands']['get']('trackChanges');_0x4f6669&&(_0x4f6669['on']('execute',(_0x21bae7,[,_0x30549e])=>{this['_trackChangesValueDuringImport']=_0x1ea25c['value'],_0x30549e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f6669,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f6669,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1ea25c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x17d1a3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4962f3,_0x579999){const {suggestions:_0x50e62f}=_0x579999,_0x39f01f=this['editor']['commands']['get']('trackChanges'),_0x1a97c9=_0x39f01f['value'];this['_trackChangesValueDuringImport']!==_0x1a97c9&&(_0x39f01f['execute'](),this['_trackChangesExecuted']=!0x0),_0x50e62f&&_0x50e62f['forEach'](({id:_0x29c8f2,type:_0x43d28d,author:_0x2defc7,created_at:_0x1d0f9a})=>{const _0x1e9d93={'id':_0x29c8f2,'type':_0x43d28d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2defc7,'createdAt':_0x1d0f9a?new Date(_0x1d0f9a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e9d93);});}},fe=class extends _0x2dafdc{['afterInit'](){const _0x48a246=this['editor'],_0x183822=_0x48a246['plugins']['get']('TrackChangesEditing');if(_0x48a246['plugins']['has']('IndentEditing')&&(_0x183822['enableCommand']('indent'),_0x183822['enableCommand']('outdent')),_0x48a246['plugins']['has']('IndentBlock')){for(const _0x4b073b of['indentBlock','outdentBlock'])_0x183822['enableDefaultAttributesIntegration'](_0x4b073b);if(_0x48a246['plugins']['has']('ListEditing')){for(const _0xd3b51a of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x183822['enableDefaultAttributesIntegration'](_0xd3b51a);}}const _0xeeb11c=_0x48a246['locale'];_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0xeeb11c,'FORMAT_INDENT')),_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0xeeb11c,'FORMAT_INDENT')),_0x183822['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0xeeb11c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x590a7b=this['editor'],_0x521864=_0x590a7b['locale'],_0x59bdb3=_0x590a7b['plugins']['get']('TrackChangesEditing');_0x59bdb3['descriptionFactory']['registerDescriptionCallback'](_0x3b4af4=>{if('formatBlock'!=_0x3b4af4['type'])return;const {data:_0x2548bf}=_0x3b4af4;if(!_0x2548bf)return;if('indentBlock'!=_0x2548bf['commandName']&&'outdentBlock'!=_0x2548bf['commandName'])return;const _0x45526d=_0x3b4af4['getItems']()[0x0],_0x28a422=_0x59bdb3['descriptionFactory']['getItemLabel'](_0x45526d);return'indentBlock'==_0x2548bf['commandName']?{'type':'format','content':St(_0x521864,'*Indent:*\x20%0',_0x28a422)}:'outdentBlock'==_0x2548bf['commandName']?{'type':'format','content':St(_0x521864,'*Outdent:*\x20%0',_0x28a422)}:void 0x0;});}},me=class extends _0x2dafdc{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x2dafdc{['afterInit'](){const _0x3d565e=this['editor'];if(!_0x3d565e['plugins']['has']('LinkEditing'))return;const _0x19a681=_0x3d565e['plugins']['get']('TrackChangesEditing'),_0x5a8f93=_0x3d565e['commands']['get']('link');_0x19a681['enableDefaultAttributesIntegration']('link'),_0x19a681['enableDefaultAttributesIntegration']('unlink');for(const _0x293d66 of _0x5a8f93['manualDecorators'])_0x19a681['descriptionFactory']['registerAttributeLabel'](_0x293d66['id'],'link\x20('+_0x293d66['label']['toLowerCase']()+')');_0x19a681['descriptionFactory']['registerDescriptionCallback'](_0x2dbdc0=>{if('attribute'!=_0x2dbdc0['type'])return;const {data:_0x529bf4}=_0x2dbdc0;if(!_0x529bf4||'linkHref'!=_0x529bf4['key'])return;const _0x2859d2=_0x529bf4['newValue'],_0x540d41=_0x3d565e['locale'];return{'type':'format','content':null==_0x2859d2?St(_0x540d41,'*Remove\x20link*'):St(_0x540d41,'*Set\x20link:*\x20%0','\x22'+_0x2859d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26db36=this['editor'],_0x213130=_0x26db36['locale'];_0x26db36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7aa3cc=>{if('formatInline'!=_0x7aa3cc['type'])return;const {data:_0x45aafd}=_0x7aa3cc;if(_0x45aafd){if('link'==_0x45aafd['commandName']){const _0x7b9e6=_0x45aafd['commandParams'][0x0];return{'type':'format','content':St(_0x213130,'*Set\x20link:*\x20%0','\x22'+_0x7b9e6+'\x22')};}return'unlink'==_0x45aafd['commandName']?{'type':'format','content':St(_0x213130,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x2dafdc{['afterInit'](){const _0x4130c8=this['editor'],_0x4d722f=_0x4130c8['locale'];if(!_0x4130c8['plugins']['has']('LegacyListEditing'))return;const _0x2fbe56=_0x4130c8['plugins']['get']('TrackChangesEditing'),_0x36c16b=_0x4130c8['plugins']['has']('LegacyTodoListEditing');function _0x57a51f(_0x10fa51){return()=>{const _0x19fc2d=_0x4130c8['model']['document']['selection'],_0x2e518a=_0x4130c8['commands']['get'](_0x10fa51);if(_0x2e518a['value'])return void _0x4130c8['execute']('paragraph',{});const _0x33b87a=_0x10fa51['slice'](0x0,-0x4),_0x33bede=function(_0x3647e2,_0x19c260,_0x525129){let _0x4683e2=Array['from'](_0x3647e2)['filter'](_0x4182be=>function(_0x1e4f22,_0x30bb8a){return _0x30bb8a['checkChild'](_0x1e4f22['parent'],'listItem')&&!_0x30bb8a['isObject'](_0x1e4f22);}(_0x4182be,_0x525129));_0x4683e2=_0x4683e2['filter'](_0x40e042=>!_0x40e042['is']('element','listItem')||_0x40e042['getAttribute']('listType')!=_0x19c260);const _0x2dd99e=new Set();for(const _0x2a3a59 of _0x4683e2)_0x2a3a59['is']('element','listItem')?_0x2dd99e['add'](_e(_0x2a3a59)):_0x2dd99e['add'](_0x2a3a59);return Array['from'](_0x2dd99e);}(_0x19fc2d['getSelectedBlocks'](),_0x33b87a,_0x4130c8['model']['schema']);_0x4130c8['model']['change'](()=>{for(const _0x15ee9 of _0x33bede)_0x2fbe56['markBlockFormat'](_0x15ee9,{'commandName':_0x10fa51,'commandParams':[{'forceValue':!_0x2e518a['value']}],'formatGroupId':'blockName'},pe(_0x15ee9));});};}function _0x3879b1(_0x5448fa){return()=>{const _0x281e8d=function(_0x1befb0){let _0x6f19c6=Array['from'](_0x1befb0);const _0x19b065=_0x6f19c6['findIndex'](_0x5723a7=>'listItem'!=_0x5723a7['name']);return _0x19b065>-0x1&&(_0x6f19c6=_0x6f19c6['slice'](0x0,_0x19b065)),_0x6f19c6;}(_0x4130c8['model']['document']['selection']['getSelectedBlocks']()),_0x2daf6c=_0x4130c8['model']['createRange'](_0x4130c8['model']['createPositionAt'](_0x281e8d[0x0],'before'),_0x4130c8['model']['createPositionAt'](_0x281e8d[_0x281e8d['length']-0x1],'end'));_0x4130c8['model']['change'](()=>{_0x2fbe56['markBlockFormat'](_0x2daf6c,{'commandName':_0x5448fa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x471c7c){const _0x3ced43=new Set();for(const _0x11ebb of _0x471c7c){let _0xce959a=_0x11ebb['nextSibling'];for(;_0xce959a&&_0xce959a['getAttribute']('listIndent')>_0x11ebb['getAttribute']('listIndent');)_0x3ced43['add'](_0xce959a),_0xce959a=_0xce959a['nextSibling'];}return Array['from'](_0x3ced43);}(_0x281e8d));});};}_0x2fbe56['enableCommand']('numberedList',_0x57a51f('numberedList')),_0x2fbe56['enableCommand']('bulletedList',_0x57a51f('bulletedList')),_0x36c16b&&_0x2fbe56['enableCommand']('todoList',_0x57a51f('todoList')),_0x2fbe56['enableCommand']('indentList',_0x3879b1('indentList')),_0x2fbe56['enableCommand']('outdentList',_0x3879b1('outdentList')),_0x36c16b&&_0x2fbe56['enableCommand']('checkTodoList',()=>{const _0x2b7c8c=_0x4130c8['commands']['get']('checkTodoList'),_0x6418c4=Array['from'](_0x2b7c8c['_selectedElements']);_0x6418c4['filter'](_0x12dfdc=>_0x12dfdc['getAttribute']('todoListChecked')!=_0x2b7c8c['value']),_0x4130c8['model']['change'](()=>{for(const _0x5494b4 of _0x6418c4)_0x2fbe56['markBlockFormat'](_0x5494b4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b7c8c['value']}]});});}),_0x2fbe56['descriptionFactory']['registerElementLabel']('listItem',_0xc61bfc=>St(_0x4d722f,'ELEMENT_LIST_ITEM',_0xc61bfc)),_0x2fbe56['descriptionFactory']['registerDescriptionCallback'](_0x57006e=>{if('formatBlock'!=_0x57006e['type']&&'formatInline'!=_0x57006e['type'])return;const {data:_0xdee70d}=_0x57006e;if(_0xdee70d){if('numberedList'==_0xdee70d['commandName']||'bulletedList'==_0xdee70d['commandName']||'todoList'==_0xdee70d['commandName'])switch(_0xdee70d['commandName']['replace']('List','')){case'bulleted':return _0x46698d(St(_0x4d722f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46698d(St(_0x4d722f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46698d(St(_0x4d722f,'ELEMENT_TODO_LIST'));}if('indentList'==_0xdee70d['commandName'])return{'type':'format','content':St(_0x4d722f,'*Indent:*\x20%0',St(_0x4d722f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xdee70d['commandName'])return{'type':'format','content':St(_0x4d722f,'*Outdent:*\x20%0',St(_0x4d722f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xdee70d['commandName'])return _0xdee70d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x4d722f,'*Check\x20item*')}:{'type':'format','content':St(_0x4d722f,'*Uncheck\x20item*')};}function _0x46698d(_0x5ae47a){return{'type':'format','content':St(_0x4d722f,'*Change\x20to:*\x20%0',_0x5ae47a)};}});}};function _e(_0x52069b){const _0x22dcd7=_0x52069b['getAttribute']('listIndent');if(0x0==_0x22dcd7)return _0x52069b;let _0x248593=_0x52069b;for(;_0x52069b['previousSibling']&&_0x52069b['previousSibling']['is']('element','listItem');){const _0x4fba92=_0x52069b['previousSibling']['getAttribute']('listIndent');if(_0x4fba92==_0x22dcd7)_0x248593=_0x52069b['previousSibling'];else{if(_0x4fba92<_0x22dcd7)break;}_0x52069b=_0x52069b['previousSibling'];}return _0x248593;}function pe(_0x5bbb32){const _0x3d2362=[];if(_0x5bbb32['is']('element','listItem')&&_0x5bbb32['getAttribute']('listIndent')>0x0){let _0x15125f=_0x5bbb32['nextSibling'];for(;_0x15125f&&'listItem'==_0x15125f['name']&&_0x15125f['getAttribute']('listIndent')==_0x5bbb32['getAttribute']('listIndent');)_0x3d2362['push'](_0x15125f),_0x15125f=_0x15125f['nextSibling'];}return _0x3d2362;}var Le=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x17325f=this['editor']['config']['get']('list.properties'),_0x5b42f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17325f['styles']&&_0x5b42f3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x17325f['reversed']&&_0x5b42f3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x17325f['startIndex']&&_0x5b42f3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5b42f3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3cae7b,_0x543d77={}){const _0xd3b04e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f4666=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd3b04e['markMultiRangeBlockFormat'](_0x1f4666,{'commandName':'listStyle','commandParams':[{'type':_0x543d77['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xf6fa29,_0x4ef8a9={}){const _0x250232=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2899ae=this['_getSuggestionBlocks'](_0x25b667=>_0x25b667['is']('element','listItem')&&'numbered'===_0x25b667['getAttribute']('listType'));if(_0x2899ae['length']<0x1)return;const _0x36c78e=_0x2899ae['map'](_0x5e2114=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e2114,'before'),this['editor']['model']['createPositionAt'](_0x5e2114,0x0)));this['editor']['model']['change'](()=>{_0x250232['markMultiRangeBlockFormat'](_0x36c78e,{'commandName':'listReversed','commandParams':[{'reversed':_0x4ef8a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x264d5a,_0x3503b1={}){const _0x58fc8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe093a6=this['_getSuggestionBlocks'](_0x18ac77=>_0x18ac77['is']('element','listItem')&&'numbered'===_0x18ac77['getAttribute']('listType'));if(_0xe093a6['length']<0x1)return;const _0x1223b6=_0xe093a6['map'](_0x2c7e0e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c7e0e,'before'),this['editor']['model']['createPositionAt'](_0x2c7e0e,0x0)));this['editor']['model']['change'](()=>{_0x58fc8b['markMultiRangeBlockFormat'](_0x1223b6,{'commandName':'listStart','commandParams':[{'startIndex':_0x3503b1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27ed31){if('formatBlock'!=_0x27ed31['type']&&'formatInline'!=_0x27ed31['type'])return;const _0x40a3a7=this['editor']['locale'],{data:_0x376969}=_0x27ed31;if(!_0x376969)return;let _0x2b50c2,_0x14b09f;switch(_0x376969['commandName']){case'listStyle':_0x2b50c2='*Change\x20to:*\x20%0',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2,St(_0x40a3a7,this['_getTranslationKeyForListStyle'](_0x376969['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b50c2=_0x376969['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2)};break;case'listStart':_0x2b50c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14b09f={'type':'format','content':St(_0x40a3a7,_0x2b50c2,_0x376969['commandParams'][0x0]['startIndex'])};}return _0x14b09f;}['_getSuggestionBlocksForListStyle'](){const _0x11c570=this['editor']['plugins']['get']('LegacyListUtils');let _0x410290=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x410290[0x0]?.['is']('element','listItem')&&_0x410290['unshift'](..._0x11c570['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x410290[_0x410290['length']-0x1]?.['is']('element','listItem')&&_0x410290['push'](..._0x11c570['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x410290=[...new Set(_0x410290)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x410290=_0x410290['filter'](_0x320375=>_0x320375['is']('element','listItem'))),_0x410290;}['_getSuggestionBlocks'](_0x40db9a){const _0x5b3f7c=this['editor']['plugins']['get']('LegacyListUtils');let _0x379972=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x40db9a)['map'](_0x4aa12e=>{const _0x1c2327=this['editor']['model']['createPositionAt'](_0x4aa12e,0x0);return[..._0x5b3f7c['getSiblingNodes'](_0x1c2327,'backward'),..._0x5b3f7c['getSiblingNodes'](_0x1c2327,'forward')];})['flat']();return _0x379972=[...new Set(_0x379972)],_0x379972;}['_getTranslationKeyForListStyle'](_0x188b01){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x188b01)||'default')['toUpperCase']()+'_LIST_'+_0x188b01['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x2dafdc{['afterInit'](){const _0x25343e=this['editor'];if(!_0x25343e['plugins']['has']('MediaEmbedEditing'))return;const _0x57fbdd=_0x25343e['plugins']['get']('TrackChangesEditing'),_0x88a8ef=_0x25343e['locale'];_0x57fbdd['enableCommand']('mediaEmbed'),_0x57fbdd['descriptionFactory']['registerElementLabel']('media',_0x10c1d9=>St(_0x88a8ef,'ELEMENT_MEDIA',_0x10c1d9)),_0x25343e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x57fbdd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x57fbdd['descriptionFactory']['registerDescriptionCallback'](_0x378344=>{if('attribute'!=_0x378344['type'])return;const {data:_0x5aae43}=_0x378344;if(!_0x5aae43||'resizedWidth'!=_0x5aae43['key'])return;const _0x55cfae=_0x378344['getContainedElement']();return _0x55cfae&&_0x55cfae['is']('element','media')?{'type':'format','content':St(_0x88a8ef,'*Set\x20format:*\x20%0',St(_0x88a8ef,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x2dafdc{['afterInit'](){const _0x422b83=this['editor'];if(!_0x422b83['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x12468b=_0x422b83['plugins']['get']('TrackChangesEditing'),_0x557fc5=_0x422b83['locale'],_0x2a67f7=_0x422b83['plugins']['get']('MediaEmbedStyleEditing'),_0x2527e5={};for(const _0x5663e0 of _0x2a67f7['normalizedStyles'])_0x2527e5[_0x5663e0['name']]=_0x5663e0['title']['toLowerCase']();const _0x46ed9f=_0x2a67f7['normalizedStyles']['find'](_0x39ba2a=>_0x39ba2a['isDefault'])?.['name'];_0x12468b['enableCommand']('mediaStyle',(_0x30983a,_0x29fca8)=>{const _0x54db92=_0x422b83['plugins']['get']('Users')['me'],_0x15a333=_0x422b83['commands']['get']('mediaStyle'),_0x48b597=function(_0x1fc0c7){const _0x23d689=_0x1fc0c7['model']['document']['selection']['getSelectedElement']();return _0x23d689&&_0x23d689['is']('element','media')?_0x23d689:null;}(_0x422b83);if(!_0x48b597)return;const _0x383741=_0x422b83['model']['createRangeOn'](_0x48b597);let _0x3e244f=_0x15a333['value'];if(_0x3e244f==_0x29fca8['value'])return;const _0x15bfc6={'commandName':'mediaStyle','commandParams':[_0x29fca8],'formatGroupId':_0x24c80d()};_0x422b83['model']['change'](()=>{_0x12468b['getSuggestions']()['filter'](_0x2386c9=>_0x2386c9['isInContent']&&_0x54db92==_0x2386c9['author']&&'formatBlock'==_0x2386c9['type']&&'mediaStylePostApply'==_0x2386c9['subType']&&_0x2386c9['getFirstRange']()['isEqual'](_0x383741))['forEach'](_0x177e28=>_0x12468b['discardSuggestion'](_0x177e28['head'])),_0x15a333['refresh'](),_0x3e244f=_0x15a333['value'],_0x3e244f!=_0x29fca8['value']&&_0x12468b['markBlockFormat'](_0x48b597,{..._0x15bfc6,'commandReversedParams':[{'value':'string'==typeof _0x3e244f?_0x3e244f:null}]},[],'mediaStylePostApply');});}),_0x12468b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x12468b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x207123,_0x21b47c)=>{_0x12468b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x207123,{'commandName':_0x21b47c['commandName'],'commandParams':_0x21b47c['commandReversedParams']});}),_0x12468b['descriptionFactory']['registerDescriptionCallback'](_0xad847f=>{if('formatBlock'!=_0xad847f['type'])return;const {data:_0x50d2c9}=_0xad847f;if(!_0x50d2c9||'mediaStyle'!=_0x50d2c9['commandName'])return;const _0x40b5d4=_0x50d2c9['commandParams'][0x0]['value']||_0x46ed9f;return _0x40b5d4?{'type':'format','content':St(_0x557fc5,'*Format:*\x20%0',_0x2527e5[_0x40b5d4]||_0x40b5d4)}:void 0x0;});}},be=class extends _0x2dafdc{['afterInit'](){const _0x207c0e=this['editor'];_0x207c0e['plugins']['has']('MentionEditing')&&_0x207c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x2dafdc{['afterInit'](){const _0x4ccda8=this['editor'];if(!_0x4ccda8['plugins']['has']('MergeFieldsEditing'))return;const _0x113117=_0x4ccda8['plugins']['get']('TrackChangesEditing'),_0x3860a3=_0x4ccda8['locale'];_0x113117['enableCommand']('insertMergeField'),_0x113117['enableCommand']('insertMergeFieldBlock'),_0x113117['enableCommand']('insertMergeFieldImage'),_0x113117['descriptionFactory']['registerElementLabel']('mergeField',_0x311567=>St(_0x3860a3,'ELEMENT_MERGE_FIELD',_0x311567)),_0x113117['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b5601=>St(_0x3860a3,'ELEMENT_MERGE_FIELD',_0x2b5601)),_0x113117['descriptionFactory']['registerDescriptionCallback'](_0x15ee37=>{if('insertion'!=_0x15ee37['type']&&'deletion'!=_0x15ee37['type'])return;const _0xcec28e=_0x15ee37['getContainedElement']();if(null==_0xcec28e)return;const _0x895d5b=_0x4ccda8['plugins']['get']('MergeFieldsEditing');let _0x4d3057;switch(_0x895d5b['getMergeFieldType'](_0xcec28e)){case null:return;case'image':{const _0x3ad4fb=_0x895d5b['unwrapAffixes'](_0xcec28e['getAttribute']('src'));_0x4d3057=_0x895d5b['getLabel'](_0x3ad4fb)||_0x3ad4fb;break;}default:{const _0x2146cd=_0xcec28e['getAttribute']('id');_0x4d3057=_0x895d5b['getLabel'](_0x2146cd)||_0x2146cd;break;}}return'insertion'==_0x15ee37['type']?{'type':'insertion','content':St(_0x3860a3,'*Insert:*\x20%0','\x22'+_0x4d3057+'\x22\x20'+St(_0x3860a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x3860a3,'*Remove:*\x20%0','\x22'+_0x4d3057+'\x22\x20'+St(_0x3860a3,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x2dafdc{['afterInit'](){const _0x48bbe7=this['editor'],_0xa2d391=_0x48bbe7['plugins']['get']('TrackChangesEditing');_0x48bbe7['plugins']['has']('MultiLevelList')&&(_0xa2d391['enableDefaultAttributesIntegration']('multiLevelList'),_0xa2d391['descriptionFactory']['registerDescriptionCallback'](_0x28639b=>this['handleDescriptions'](_0x28639b)));}['handleDescriptions'](_0x55ebd9){const _0x30cb44=this['editor']['locale'],{data:_0x53168b}=_0x55ebd9,_0x34e4ee={'type':'format','content':''};if(_0x53168b&&'listMarkerStyle'==_0x53168b['key']){if(!_0x53168b['oldValue'])return{'type':'format','content':St(_0x30cb44,'*Set\x20format:*\x20%0',St(_0x30cb44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53168b['newValue']+')'};if(!_0x53168b['newValue']){let _0x520d98=_0x55ebd9['head'];for(;_0x520d98;){if(_0x520d98['data']&&'listType'==_0x520d98['data']['key']&&_0x520d98['data']['newValue'])return _0x34e4ee;_0x520d98=_0x520d98['next'];}return{'type':'format','content':St(_0x30cb44,'*Remove\x20format:*\x20%0',St(_0x30cb44,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53168b['oldValue']+')'};}}}},Re=class extends _0x2dafdc{['afterInit'](){const _0x25c506=this['editor'];if(!_0x25c506['plugins']['has']('PageBreakEditing'))return;_0x25c506['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x306581=_0x25c506['plugins']['get']('TrackChangesEditing'),_0xc7cc38=_0x25c506['locale'];_0x306581['descriptionFactory']['registerElementLabel']('pageBreak',_0x8c1f9e=>St(_0xc7cc38,'ELEMENT_PAGE_BREAK',_0x8c1f9e));}},Ne=class extends _0x2dafdc{['afterInit'](){const _0x509b32=this['editor'];if(!_0x509b32['plugins']['has']('Paragraph'))return;const _0x4a9a2f=_0x509b32['locale'],_0x3f586e=_0x509b32['plugins']['get']('TrackChangesEditing');_0x3f586e['descriptionFactory']['registerElementLabel']('paragraph',_0x47e015=>St(_0x4a9a2f,'ELEMENT_PARAGRAPH',_0x47e015)),_0x3f586e['enableDefaultAttributesIntegration']('paragraph'),_0x3f586e['enableCommand']('insertParagraph');const _0x2eadf8=_0x3f586e['descriptionFactory'];_0x2eadf8['registerDescriptionCallback'](_0x2ad6c6=>{if('insertion'!==_0x2ad6c6['type'])return;const {start:_0x53be4e,end:_0x54394a}=_0x2ad6c6['getFirstRange']();if(!_0x53be4e['isTouching'](_0x54394a)||!_0x53be4e['nodeAfter'])return;const _0x100d90=_0x509b32['model']['schema'],_0x18834b=_0x53be4e['nodeAfter'];return _0x100d90['isBlock'](_0x18834b)&&!_0x100d90['isLimit'](_0x18834b)&&_0x100d90['checkChild'](_0x18834b,'$text')?{'type':'insertion','content':St(_0x4a9a2f,'*Insert:*\x20%0',_0x2eadf8['getItemLabel'](_0x18834b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427c49=this['editor'],_0x35d35f=_0x427c49['locale'];_0x427c49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df402=>{if('formatBlock'!=_0x5df402['type'])return;const {data:_0x29c173}=_0x5df402;return _0x29c173&&'paragraph'==_0x29c173['commandName']?{'type':'format','content':St(_0x35d35f,'*Change\x20to:*\x20%0',St(_0x35d35f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x2dafdc{['afterInit'](){const _0x3c14e9=this['editor'];_0x3c14e9['commands']['get']('replaceSource')&&_0x3c14e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x2dafdc{['afterInit'](){const _0x3c1df9=this['editor'];_0x3c1df9['plugins']['has']('RemoveFormatEditing')&&(_0x3c1df9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2598e1=this['editor'];_0x2598e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33e27f=>{if('formatBlock'!=_0x33e27f['type']&&'formatInline'!=_0x33e27f['type'])return;const {data:_0x5b3f02}=_0x33e27f;return _0x5b3f02&&'removeFormat'==_0x5b3f02['commandName']?{'type':'format','content':St(_0x2598e1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x2dafdc{['afterInit'](){const _0x52aef0=this['editor'];if(!_0x52aef0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8af858=_0x52aef0['plugins']['get']('TrackChangesEditing');_0x8af858['enableCommand']('goToPreviousRestrictedEditingException'),_0x8af858['enableCommand']('goToNextRestrictedEditingException');const _0x2050a1=_0x52aef0['plugins']['get']('RestrictedEditingModeEditing');_0x2050a1['enableCommand']('trackChanges'),_0x2050a1['enableCommand']('acceptSuggestion'),_0x2050a1['enableCommand']('discardSuggestion'),_0x2050a1['enableCommand']('acceptAllSuggestions'),_0x2050a1['enableCommand']('discardAllSuggestions'),_0x2050a1['enableCommand']('acceptSelectedSuggestions'),_0x2050a1['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x2dafdc{['afterInit'](){const _0x5791be=this['editor'];if(!_0x5791be['plugins']['has']('ShiftEnter'))return;const _0x15baa0=_0x5791be['plugins']['get']('TrackChangesEditing');_0x15baa0['enableCommand']('shiftEnter'),_0x15baa0['descriptionFactory']['registerElementLabel']('softBreak',_0x38f783=>St(_0x5791be['locale'],'ELEMENT_LINE_BREAK',_0x38f783));}};function we(_0xef108a,_0x5a19e5,_0x157be6){const _0x4a08bc=[];for(const _0x4d1579 of _0x5a19e5['getItems']())_0x4d1579['hasAttribute'](_0xef108a)&&_0x4a08bc['push'](_0x157be6['createRangeOn'](_0x4d1579));return _0x4a08bc;}var Fe=class extends _0x2dafdc{['afterInit'](){const _0xb2f7b9=this['editor'],_0x3acfb8=_0xb2f7b9['plugins']['get']('TrackChangesEditing');_0xb2f7b9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x3acfb8['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x56c22d=this['editor'],_0x1b180f=_0x56c22d['model'],_0x25aa9a=_0x56c22d['locale'],_0x4a3d65=_0x56c22d['plugins']['get']('TrackChangesEditing'),_0x38404b='restrictedEditingException',_0x4ba3da=_0x56c22d['commands']['get'](_0x38404b);_0x4a3d65['enableCommand'](_0x38404b,(_0x4f38ef,_0x476adb={})=>{const _0x564901=_0x1b180f['document']['selection'];if(_0x564901['isCollapsed'])return void _0x4f38ef(_0x476adb);const _0x2d3883=void 0x0!==_0x476adb['forceValue']?_0x476adb['forceValue']:!_0x4ba3da['value'];_0x1b180f['change'](()=>{const _0x49407f=Array['from'](_0x564901['getRanges']());for(const _0x10bbb0 of _0x49407f){const _0x4e7d0c=_0x2d3883?[_0x10bbb0]:we(_0x38404b,_0x10bbb0,_0x1b180f);for(const _0x4ca622 of _0x4e7d0c)_0x4a3d65['markInlineFormat'](_0x4ca622,{'commandName':_0x38404b,'commandParams':[{'forceValue':_0x2d3883}]});}});}),_0x4a3d65['descriptionFactory']['registerDescriptionCallback'](_0x3ffd1d=>{if('formatBlock'!=_0x3ffd1d['type']&&'formatInline'!=_0x3ffd1d['type'])return;const {data:_0x174d3c}=_0x3ffd1d;return _0x174d3c&&_0x174d3c['commandName']==_0x38404b?_0x174d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x25aa9a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x25aa9a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4c9683=this['editor'],_0x459f47=_0x4c9683['locale'],_0x4eac7a=_0x4c9683['plugins']['get']('TrackChangesEditing'),_0x1b4b90='restrictedEditingExceptionBlock',_0x9154=this['editor']['commands']['get'](_0x1b4b90);_0x4eac7a['enableCommand'](_0x1b4b90,(_0x578589,_0x283a7d={})=>{const _0x56bab4=this['editor']['model']['document']['selection'],_0x7fbb06=_0x283a7d&&void 0x0!==_0x283a7d['forceValue']?_0x283a7d['forceValue']:!_0x9154['value'];let _0x67a7e5=[];_0x67a7e5=At(_0x7fbb06?Array['from'](_0x56bab4['getSelectedBlocks']())['filter'](_0xd47ee5=>function(_0x2b56a5){return!!_0x2b56a5['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xd47ee5)||function(_0x46f86d,_0x4b7895){const _0x2394b9=_0x4b7895['createContext'](_0x46f86d['parent']);return!!_0x4b7895['checkChild'](_0x2394b9,'restrictedEditingException')&&!!_0x4b7895['checkChild'](_0x2394b9['push']('restrictedEditingException'),_0x46f86d);}(_0xd47ee5,this['editor']['model']['schema'])):Array['from'](_0x56bab4['getSelectedBlocks']())['map'](_0x354d2e=>function(_0x4863a2){let _0x5cd134=_0x4863a2;for(;_0x5cd134['parent'];){if('restrictedEditingException'==_0x5cd134['parent']['name'])return _0x5cd134;_0x5cd134=_0x5cd134['parent'];}return null;}(_0x354d2e))['filter'](_0x4203c0=>!!_0x4203c0),_0x4c9683['model']),_0x4c9683['model']['change'](()=>{for(const _0x2a7fb3 of _0x67a7e5)_0x4eac7a['markBlockFormat'](_0x2a7fb3,{'commandName':_0x1b4b90,'commandParams':[{'forceValue':_0x7fbb06}]});});}),_0x4eac7a['descriptionFactory']['registerDescriptionCallback'](_0x5d850e=>{const {data:_0x2b09c5}=_0x5d850e;if(_0x2b09c5&&_0x2b09c5['commandName']==_0x1b4b90)return _0x2b09c5['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x459f47,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x459f47,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x2dafdc{['afterInit'](){const _0xe53af1=this['editor'];_0xe53af1['plugins']['has']('Style')&&_0xe53af1['plugins']['has']('DataSchema')&&(_0xe53af1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x445c7b=this['editor'],_0x448c87=_0x445c7b['locale'];_0x445c7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480b17=>{if('formatBlock'!=_0x480b17['type']&&'formatInline'!=_0x480b17['type'])return;const {data:_0x402b08}=_0x480b17;return _0x402b08&&'style'===_0x402b08['commandName']?_0x402b08['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x448c87,'*Set\x20format:*\x20%0',_0x402b08['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x448c87,'*Remove\x20format:*\x20%0',_0x402b08['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x2dafdc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2af227){super(_0x2af227),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x500008=this['editor'],_0x53be2f=_0x500008['model']['document']['selection'];if(!_0x500008['plugins']['has']('TableEditing'))return;const _0x2b8ca3=_0x500008['locale'],_0x29e998=_0x500008['plugins']['get']('TrackChangesEditing'),_0x47c3cd=_0x500008['plugins']['get']('TableUtils');_0x29e998['descriptionFactory']['registerElementLabel']('table',_0x1fa5af=>St(_0x2b8ca3,'ELEMENT_TABLE',_0x1fa5af)),this['_setupColumnsRowsFixing'](),_0x29e998['enableCommand']('insertTable'),_0x29e998['enableCommand']('selectTableRow'),_0x29e998['enableCommand']('selectTableColumn');for(const _0x1f0216 of['insertTableRowAbove','insertTableRowBelow']){const _0x2452fd=_0x500008['commands']['get'](_0x1f0216);_0x29e998['enableCommand'](_0x1f0216,_0x53ba79=>{_0x500008['model']['change'](_0x167187=>{_0x53ba79();const _0x22b31b='above'===_0x2452fd['order'],_0x4bc0e3=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x3b52c0=_0x47c3cd['getRowIndexes'](_0x4bc0e3),_0x4286b8=_0x22b31b?_0x3b52c0['first']-0x1:_0x3b52c0['last']+0x1,_0x130ee7=_0x4bc0e3[0x0]['findAncestor']('table'),_0x4a7390=_0x47c3cd['createTableWalker'](_0x130ee7,{'startRow':_0x4286b8,'endRow':_0x4286b8}),_0x27e478=Array['from'](_0x4a7390)['map'](_0x12e9a4=>_0x167187['createRangeOn'](_0x12e9a4['cell']));_0x29e998['markMultiRangeInsertion'](_0x27e478,'tableRow');});});}for(const _0x12246e of['insertTableColumnLeft','insertTableColumnRight']){const _0x50549e=_0x500008['commands']['get'](_0x12246e);_0x29e998['enableCommand'](_0x12246e,_0x521ef9=>{_0x500008['model']['change'](_0x325c72=>{_0x521ef9();const _0x25e001='left'===_0x50549e['order'],_0x5c2f87=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x474e04=_0x47c3cd['getColumnIndexes'](_0x5c2f87),_0x244521=_0x25e001?_0x474e04['first']-0x1:_0x474e04['last']+0x1,_0xed7c08=_0x5c2f87[0x0]['findAncestor']('table'),_0x5483a6=_0x47c3cd['createTableWalker'](_0xed7c08,{'startRow':0x0,'column':_0x244521,'includeAllSlots':!0x1}),_0x4f5edd=Array['from'](_0x5483a6)['map'](_0x129d39=>_0x325c72['createRangeOn'](_0x129d39['cell']));_0x29e998['markMultiRangeInsertion'](_0x4f5edd,'tableColumn');});});}for(const _0x3b9b51 of['removeTableRow','removeTableColumn']){const _0x5159f5=_0x3b9b51['substr'](0xb),_0x3a3ed0=_0x5159f5['toLowerCase'](),_0x11bc98=_0x3a3ed0['substr'](0x0,0x3)+'span',_0x2ad323='table'+_0x5159f5,_0x7470c5='min'+_0x5159f5,_0x6a9788='max'+_0x5159f5;_0x29e998['enableCommand'](_0x3b9b51,()=>{_0x500008['model']['change'](_0x349183=>{const _0x55ec55=_0x47c3cd['getSelectionAffectedTableCells'](_0x53be2f),_0x3b4a15=_0x55ec55[0x0]['findAncestor']('table');let _0x13a269;if('removeTableRow'==_0x3b9b51){const _0xffec22=_0x47c3cd['getRowIndexes'](_0x55ec55);_0x13a269={'startRow':_0xffec22['first'],'endRow':_0xffec22['last'],'includeAllSlots':!0x0};}else{const _0x1f17cc=_0x47c3cd['getColumnIndexes'](_0x55ec55);_0x13a269={'startColumn':_0x1f17cc['first'],'endColumn':_0x1f17cc['last'],'includeAllSlots':!0x0};}const _0x3fcd9e=_0x47c3cd['createTableWalker'](_0x3b4a15,_0x13a269),_0xba33f6=Array['from'](_0x3fcd9e)['map'](({cell:_0x31717f})=>_0x31717f),_0x431063=De(_0xba33f6['filter'](_0x47d8d5=>_0x47d8d5['hasAttribute'](_0x11bc98))),_0x179e42=De(_0xba33f6['filter'](_0x2d1df1=>!_0x2d1df1['hasAttribute'](_0x11bc98)))['map'](_0x22c9b0=>_0x349183['createRangeOn'](_0x22c9b0)),_0x1f289e=_0x29e998['markMultiRangeDeletion'](_0x179e42,_0x2ad323);if(_0x1f289e&&('tableRow'==_0x1f289e['subType']||'tableColumn'==_0x1f289e['subType'])){const _0x5ea911=this['_getSuggestionCoords'](_0x1f289e);for(const _0xbb752c of _0x431063){const _0x881656=_0x349183['createRangeOn'](_0xbb752c),_0x38c15d=_0x47c3cd['getCellLocation'](_0xbb752c),_0x4693fa=_0xbb752c['getAttribute'](_0x11bc98)-0x1,_0x25db32=_0x5ea911[_0x7470c5],_0x3afd52=_0x5ea911[_0x6a9788];_0x25db32<=_0x38c15d[_0x3a3ed0]&&_0x38c15d[_0x3a3ed0]+_0x4693fa<=_0x3afd52&&_0x1f289e['addRange'](_0x881656);}}});});}function _0x36e070(_0x463fc3){const _0x557691=Array['from'](_0x53be2f['getRanges']())['map'](_0x3b43c9=>rt['fromRange'](_0x3b43c9));_0x500008['model']['change'](_0x1f563f=>{const _0x41c6a6=_0x1f563f['batch'];_0x463fc3=_0x463fc3['filter'](_0x329239=>'$graveyard'!=_0x329239['root']['rootName']),_0x1f563f['setSelection'](_0x463fc3),_0x500008['commands']['get']('removeTableRow')['refresh'](),_0x500008['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x500008['model']['enqueueChange'](()=>{_0x500008['model']['enqueueChange'](_0x41c6a6,_0x57a688=>{const _0xa76649=_0x557691['filter'](_0x90d444=>'$graveyard'!=_0x90d444['root']['rootName']);_0xa76649['length']>0x0&&_0x57a688['setSelection'](_0xa76649);for(const _0x5815d9 of _0x557691)_0x5815d9['detach']();});});});}function _0x178c0e(_0x342584){_0x500008['model']['change'](_0x122cbf=>{const _0x4ad256=Array['from'](_0x53be2f['getRanges']())['map'](_0x3c65eb=>rt['fromRange'](_0x3c65eb)),_0x206833=[];for(const _0x38e17c of _0x342584)for(const _0x2e6966 of _0x38e17c['getItems']({'shallow':!0x0}))_0x206833['push'](_0x2e6966);for(const _0x1c562d of _0x206833)'$graveyard'!=_0x1c562d['root']['rootName']&&(_0x122cbf['setSelection'](_0x122cbf['createPositionAt'](_0x1c562d,0x0)),_0x500008['commands']['get']('removeTableColumn')['refresh'](),_0x500008['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4cb691=_0x4ad256['filter'](_0x14c0fc=>'$graveyard'!=_0x14c0fc['root']['rootName']);_0x4cb691['length']>0x0&&_0x122cbf['setSelection'](_0x4cb691);for(const _0x3ebc7a of _0x4ad256)_0x3ebc7a['detach']();});}function _0x2528b2(_0x57cbd1,_0xb26d2){return _0xb26d2['every'](_0x3623c6=>_0x57cbd1['some'](_0x23e7bc=>_0x23e7bc['end']['isEqual'](_0x3623c6['start'])||_0x3623c6['end']['isEqual'](_0x23e7bc['start'])));}function _0x16a99b(_0x1d93e5,_0x576434){return!_0x1d93e5['some'](_0x5aa13e=>_0x576434['some'](_0x171eb5=>_0x5aa13e['isIntersecting'](_0x171eb5)))&&_0x1d93e5['some'](_0x6ccd23=>_0x576434['some'](_0x4438d6=>_0x6ccd23['end']['isTouching'](_0x4438d6['start'])));}_0x29e998['descriptionFactory']['registerDescriptionCallback'](_0x819b64=>{if('insertion'!=_0x819b64['type']&&'deletion'!=_0x819b64['type'])return;const _0x588eed=_0x819b64['getContainedElement']();if(null!=_0x588eed&&_0x588eed['is']('element','table')){if('insertion'==_0x819b64['type']){const _0x18d005=_0x819b64['getItems']()['filter'](_0x4b635b=>_0x4b635b['is']('$textProxy'))['map'](_0x2e089e=>_0x2e089e['data']);if(_0x18d005['length'])return{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18d005['join']('\x20')+'\x22'))};}if('deletion'==_0x819b64['type']){const _0x484f0f=_0x819b64['getItems']()['filter'](_0x5708d1=>_0x5708d1['is']('$textProxy'))['map'](_0x52c5c7=>_0x52c5c7['data']);if(_0x484f0f['length'])return{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x484f0f['join']('\x20')+'\x22'))};}}}),_0x29e998['descriptionFactory']['registerDescriptionCallback'](_0x521169=>{if('tableRow'==_0x521169['subType']){const _0x5f4cd3=_0x521169['getItems']()['filter'](_0x5ae0f4=>_0x5ae0f4['is']('$textProxy'))['map'](_0xfb4c76=>_0xfb4c76['data']),_0x14e0ae=this['_getSuggestionCoords'](_0x521169),_0x10e880=_0x14e0ae['maxRow']-_0x14e0ae['minRow']+0x1;if('insertion'==_0x521169['type'])return _0x5f4cd3['length']?{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x10e880,'\x22'+_0x5f4cd3['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW',_0x10e880))};if('deletion'==_0x521169['type'])return _0x5f4cd3['length']?{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x10e880,'\x22'+_0x5f4cd3['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_ROW',_0x10e880))};}if('tableColumn'==_0x521169['subType']){const _0x27c4c0=_0x521169['getItems']()['filter'](_0x36b235=>_0x36b235['is']('$textProxy'))['map'](_0xd583b0=>_0xd583b0['data']),_0x3e72ba=this['_getSuggestionCoords'](_0x521169),_0xe25c1b=_0x3e72ba['maxColumn']-_0x3e72ba['minColumn']+0x1;if('insertion'==_0x521169['type'])return _0x27c4c0['length']?{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe25c1b,'\x22'+_0x27c4c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x2b8ca3,'*Insert:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN',_0xe25c1b))};if('deletion'==_0x521169['type'])return _0x27c4c0['length']?{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xe25c1b,'\x22'+_0x27c4c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x2b8ca3,'*Remove:*\x20%0',St(_0x2b8ca3,'ELEMENT_TABLE_COLUMN',_0xe25c1b))};}}),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x36e070),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x36e070),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x178c0e),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x178c0e),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2528b2),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2528b2),_0x29e998['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x16a99b),_0x29e998['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x16a99b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x202002=this['editor'],_0x441fe0=_0x202002['model']['document']['selection'];return(_0x580980,_0x4f85f7)=>{_0x202002['model']['change'](_0x169ac1=>{const {commandName:_0xf1c633,commandParams:_0x1a088c}=_0x4f85f7;let _0x3a1b7c=_0x580980[0x0]['end']['nodeBefore'];_0x1a088c&&_0x1a088c[0x0]&&!0x1===_0x1a088c[0x0]['forceValue']&&(_0x3a1b7c=_0x580980[0x0]['start']['nodeAfter']);const _0x56db0f=_0x169ac1['createRangeIn'](_0x3a1b7c);if('$graveyard'==_0x56db0f['root']['rootName'])return;const _0x11ecb6=Array['from'](_0x441fe0['getRanges']())['map'](_0x3c454e=>rt['fromRange'](_0x3c454e));_0x169ac1['setSelection'](_0x56db0f),_0x202002['commands']['get'](_0xf1c633)['refresh'](),_0x1a088c['push']({'forceDefaultExecution':!0x0}),_0x202002['execute'](_0xf1c633,..._0x1a088c);const _0x44ea4d=_0x11ecb6['filter'](_0xdb1332=>'$graveyard'!=_0xdb1332['root']['rootName']);_0x44ea4d['length']>0x0&&_0x169ac1['setSelection'](_0x44ea4d);for(const _0x3ff9fc of _0x11ecb6)_0x3ff9fc['detach']();});};}['_getCoordsForCells'](_0x20fcc2){const _0x371ce9=this['editor']['plugins']['get']('TableUtils');let _0x4a8df4=Number['MAX_SAFE_INTEGER'],_0x25e88b=Number['MIN_SAFE_INTEGER'],_0x221453=Number['MAX_SAFE_INTEGER'],_0x2a9ab5=Number['MIN_SAFE_INTEGER'];for(const _0x813704 of _0x20fcc2){if('$graveyard'==_0x813704['root']['rootName'])continue;const {row:_0x344675,column:_0x226700}=_0x371ce9['getCellLocation'](_0x813704),_0x9600ce=_0x813704['hasAttribute']('rowspan')?_0x813704['getAttribute']('rowspan')-0x1:0x0,_0x7244b=_0x813704['hasAttribute']('colspan')?_0x813704['getAttribute']('colspan')-0x1:0x0;_0x4a8df4=_0x344675<_0x4a8df4?_0x344675:_0x4a8df4,_0x25e88b=_0x344675+_0x9600ce>_0x25e88b?_0x344675+_0x9600ce:_0x25e88b,_0x221453=_0x226700<_0x221453?_0x226700:_0x221453,_0x2a9ab5=_0x226700+_0x7244b>_0x2a9ab5?_0x226700+_0x7244b:_0x2a9ab5;}return{'minRow':_0x4a8df4,'maxRow':_0x25e88b,'minColumn':_0x221453,'maxColumn':_0x2a9ab5};}['_setupColumnsRowsFixing'](){const _0x4cb4ab=this['editor'],_0x4e1b37=_0x4cb4ab['plugins']['get']('TrackChangesEditing'),_0x2a12d3=_0x4cb4ab['plugins']['get']('TableUtils');_0x4cb4ab['model']['document']['on']('change:data',()=>{const _0x55e8f2=Array['from'](_0x4cb4ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3879b9,data:_0x8f1cf7}of _0x55e8f2){const {group:_0x54c358,id:_0x4c2da1,subType:_0x1eacb3}=tt(_0x3879b9);if('suggestion'!=_0x54c358)continue;if(null!=_0x8f1cf7['oldRange'])continue;const _0x242447=_0x4e1b37['getSuggestion'](_0x4c2da1);this['_tablePostFixingSubtypes']['includes'](_0x1eacb3)&&this['_tableSuggestions']['add'](_0x242447);}},{'priority':'low'});const _0x1be908=(_0x47b1b2,_0x84780f)=>{let _0x175a48=!0x1;const _0x46b7e5=_0x84780f['createRangeOn'](_0x47b1b2),_0x40be27=_0x47b1b2['findAncestor']('table'),_0x184752=_0x2a12d3['getCellLocation'](_0x47b1b2);for(const _0x4a8398 of this['_tableSuggestions']){const _0x4dd147=_0x4a8398['subType'],_0x31e371=_0x4dd147['startsWith']('tablePaste'),_0x4df870=_0x4dd147['substr'](_0x31e371?0xa:0x5),_0x13186c=_0x4df870['toLowerCase'](),_0x3411a6=_0x13186c['substr'](0x0,0x3)+'span',_0x1c182a='min'+_0x4df870,_0x47ba72='max'+_0x4df870;if(!_0x4a8398['isInContent'])continue;if(_0x40be27!=_0x4a8398['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a8398['isIntersectingWithRange'](_0x46b7e5))continue;const _0x371b88=_0x47b1b2['hasAttribute'](_0x3411a6)?_0x47b1b2['getAttribute'](_0x3411a6)-0x1:0x0,_0x3e7ff1=this['_getSuggestionCoords'](_0x4a8398),_0x59e706=_0x3e7ff1[_0x1c182a],_0x29a803=_0x3e7ff1[_0x47ba72];_0x59e706<=_0x184752[_0x13186c]&&_0x184752[_0x13186c]+_0x371b88<=_0x29a803&&(_0x4a8398['addRange'](_0x46b7e5),_0x175a48=!0x0);}return _0x175a48;};_0x4cb4ab['model']['document']['registerPostFixer'](_0x569dcc=>{let _0x3ff87b=!0x1;for(const _0x15732f of _0x4cb4ab['model']['document']['differ']['getChanges']())if('insert'==_0x15732f['type']){if('tableRow'==_0x15732f['name']){for(const _0x34a0d0 of _0x15732f['position']['nodeAfter']['getChildren']())_0x3ff87b=_0x3ff87b||_0x1be908(_0x34a0d0,_0x569dcc);}else'tableCell'==_0x15732f['name']&&(_0x3ff87b=_0x3ff87b||_0x1be908(_0x15732f['position']['nodeAfter'],_0x569dcc));}return _0x3ff87b;});}['_getSuggestionCoords'](_0x27869b){return this['_getCoordsForCells'](_0x27869b['getRanges']()['map'](_0x107832=>_0x107832['start']['nodeAfter']));}};function De(_0x35ec39){return Array['from'](new Set(_0x35ec39)['values']());}var Ue=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x2919db=this['editor'],_0x3a7013=_0x2919db['model']['document']['selection'],_0xdbacef=_0x2919db['locale'];if(!_0x2919db['plugins']['has']('TableEditing'))return;const _0x5de081=_0x2919db['plugins']['get']('TrackChangesEditing'),_0x151a9c=_0x2919db['plugins']['get']('TableUtils'),_0x21d009=_0x2919db['plugins']['get'](ve);_0x21d009['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5de081['enableCommand']('mergeTableCells',()=>{const _0x4e9817=_0x151a9c['getSelectionAffectedTableCells'](_0x2919db['model']['document']['selection']);_0x2919db['model']['change'](()=>{_0x5de081['markMultiRangeBlockFormat'](_0x4e9817,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2919db['commands']['get']('mergeTableCells')['on']('execute',(_0x569b8e,_0xc82b1f)=>{_0x2919db['commands']['get']('trackChanges')['value']&&(_0xc82b1f['length']>0x0&&_0xc82b1f[_0xc82b1f['length']-0x1]&&_0xc82b1f[_0xc82b1f['length']-0x1]['forceDefaultExecution']||_0x5de081['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x569b8e['stop']());},{'priority':'highest'});for(const _0x39763a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24bf34=_0x2919db['commands']['get'](_0x39763a);_0x5de081['enableCommand'](_0x39763a,()=>{const _0x2cb269=_0x2919db['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x93b472=>_0x93b472['is']('element','tableCell')),_0x10290a=_0x24bf34['value'];_0x2919db['model']['change'](()=>{_0x5de081['markMultiRangeBlockFormat']([_0x2cb269,_0x10290a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55a042 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57751f=_0x2919db['commands']['get'](_0x55a042);_0x5de081['enableCommand'](_0x55a042,()=>{const _0xd9e48e=_0x151a9c['getSelectionAffectedTableCells'](_0x2919db['model']['document']['selection'])[0x0],_0x1fc241=_0xd9e48e['findAncestor']('table'),{column:_0x3f3376,row:_0x29d900}=_0x151a9c['getCellLocation'](_0xd9e48e);let _0x4c1f4d=[];if('horizontally'==_0x57751f['direction']){const _0x3fe573=_0x151a9c['createTableWalker'](_0x1fc241,{'startRow':_0x29d900,'endRow':_0x29d900,'includeAllSlots':!0x0});_0x4c1f4d=Array['from'](_0x3fe573)['map'](_0x4d8251=>_0x4d8251['cell']);}else{const _0xe0865f=_0x151a9c['createTableWalker'](_0x1fc241,{'column':_0x3f3376,'includeAllSlots':!0x0});_0x4c1f4d=Array['from'](_0xe0865f)['map'](_0xe1070a=>_0xe1070a['cell']);}_0x2919db['model']['change'](_0x2928b4=>{_0x5de081['markBlockFormat'](_0x2928b4['createRangeOn'](_0xd9e48e),{'commandName':_0x55a042,'commandParams':[]},_0x4c1f4d,_0x55a042);});});}_0x5de081['descriptionFactory']['registerDescriptionCallback'](_0x181456=>{if('formatBlock'!=_0x181456['type']&&'formatInline'!=_0x181456['type'])return;const {data:_0x206621}=_0x181456;return _0x206621&&'mergeTableCells'==_0x206621['commandName']?{'type':'format','content':St(_0xdbacef,'*Merge\x20cells*')}:void 0x0;}),_0x5de081['descriptionFactory']['registerDescriptionCallback'](_0xb254b5=>{if('formatBlock'!=_0xb254b5['type']&&'formatInline'!=_0xb254b5['type'])return;const {data:_0x194d0e}=_0xb254b5;return _0x194d0e?'splitTableCellVertically'==_0x194d0e['commandName']?{'type':'format','content':St(_0xdbacef,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x194d0e['commandName']?{'type':'format','content':St(_0xdbacef,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6e7294=_0x21d009['_acceptFormatSuggestionCallbackFactory']();for(const _0xd4185f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd4185f,'accept',_0x6e7294);for(const _0x115fc2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x115fc2,'accept',_0x6e7294);_0x5de081['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x72ff8b=>{_0x2919db['model']['change'](_0x45a227=>{const _0xd812aa=Array['from'](_0x3a7013['getRanges']())['map'](_0x2fdbde=>rt['fromRange'](_0x2fdbde));_0x45a227['setSelection'](_0x72ff8b),_0x2919db['commands']['get']('mergeTableCells')['refresh'](),_0x2919db['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x500804=_0xd812aa['filter'](_0x5039e8=>'$graveyard'!=_0x5039e8['root']['rootName']);_0x500804['length']>0x0&&_0x45a227['setSelection'](_0x500804);for(const _0x392ec7 of _0xd812aa)_0x392ec7['detach']();});});for(const _0x4edb34 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c7684=_0x2919db['commands']['get'](_0x4edb34);_0x3c7684['on']('set:isEnabled',(_0xed13f7,_0x1a81b2,_0x3a10c7)=>{if(_0x3a10c7){const _0x4a9cdc=_0x2919db['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd5b23=>_0xd5b23['is']('element','tableCell'));this['_areMergableCells'](_0x3c7684['value'],_0x4a9cdc)||(_0xed13f7['return']=!0x1,_0xed13f7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cb301=this['editor']['commands']['get']('mergeTableCells'),_0x1f6ca1=this['editor']['plugins']['get']('TableUtils');if(!_0x3cb301['isEnabled'])return!0x1;const _0x4ae060=_0x1f6ca1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5bd7bf of _0x4ae060)for(const _0x137234 of _0x4ae060)if(_0x5bd7bf!=_0x137234&&!this['_areMergableCells'](_0x5bd7bf,_0x137234))return!0x1;return!0x0;}['_areMergableCells'](_0x138ab4,_0x1781d0){const _0x1f1066=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bc72e=this['editor']['model']['createRangeOn'](_0x138ab4),_0x2253cd=this['editor']['model']['createRangeOn'](_0x1781d0),_0x36b463=new Set(),_0x2cde2e=new Set();for(const _0x212005 of _0x1f1066['getSuggestions']())if(('insertion'==_0x212005['type']||'deletion'==_0x212005['type']||'mergeTableCells'==_0x212005['subType'])&&_0x212005['isInContent']){for(const _0x35c554 of _0x212005['getRanges']())_0x35c554['containsRange'](_0x3bc72e,!0x0)&&_0x36b463['add'](_0x212005['type']+':'+_0x212005['author']['id']),_0x35c554['containsRange'](_0x2253cd,!0x0)&&_0x2cde2e['add'](_0x212005['type']+':'+_0x212005['author']['id']);}if(_0x36b463['size']!=_0x2cde2e['size'])return!0x1;for(const _0x302ed0 of _0x36b463)if(!_0x2cde2e['has'](_0x302ed0))return!0x1;return!0x0;}},Pe=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1e37e9=this['editor'];if(!_0x1e37e9['plugins']['has']('TableEditing'))return;const _0xbbd276=_0x1e37e9['locale'],_0x34de16=_0x1e37e9['plugins']['get']('TrackChangesEditing');_0x34de16['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34de16['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34de16['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0xbbd276,'FORMAT_HEADER_ROW')),_0x34de16['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0xbbd276,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e82f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2988a7=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x1e82f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2988a7),_0x1e82f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2988a7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x12ac50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539b7b=this['editor']['plugins']['get']('TableUtils');function _0x2da09f({showActiveMarker:_0xd7bd81=!0x0,setDataAttribute:_0x90b087=!0x0}={}){return(_0x2bb5c2,_0x4fd513,_0x1a97b8)=>{const {type:_0x43b1be,id:_0x5f27eb}=tt(_0x4fd513['markerName']);if(!_0x12ac50['hasSuggestion'](_0x5f27eb))return;const _0x35f897=_0x12ac50['getSuggestion'](_0x5f27eb),_0x7b820a=_0x35f897['data'];if('formatBlock'!=_0x35f897['type']||!_0x7b820a||'setTableColumnHeader'!=_0x7b820a['commandName'])return;if(_0x4fd513['item'])return void _0x2bb5c2['stop']();if(!_0x1a97b8['consumable']['consume'](_0x4fd513['markerRange'],_0x2bb5c2['name']))return;const _0xfdba6f=_0x4fd513['markerRange']['start']['nodeAfter'],_0x4baca6=_0x4fd513['markerRange']['end']['nodeBefore'],_0x49ccf4=_0xfdba6f['parent']['parent'],{column:_0x4a636f}=_0x539b7b['getCellLocation'](_0xfdba6f),{column:_0x2b0377}=_0x539b7b['getCellLocation'](_0x4baca6);for(let _0x4be09f=_0x4a636f;_0x4be09f<=_0x2b0377;_0x4be09f++){const _0x248441=_0x539b7b['createTableWalker'](_0x49ccf4,{'column':_0x4be09f,'includeAllSlots':!0x1});for(const _0x3c9772 of _0x248441){const _0x4028ae=_0x3c9772['cell'],_0x43877d=_0x1a97b8['mapper']['toViewElement'](_0x4028ae);_0x1a97b8['writer']['addClass']('ck-suggestion-marker-'+_0x43b1be,_0x43877d),_0x90b087&&_0x1a97b8['writer']['setAttribute']('data-suggestion',_0x5f27eb,_0x43877d),_0x1a97b8['mapper']['bindElementToMarker'](_0x43877d,_0x4fd513['markerName']),_0xd7bd81&&(_0x12ac50['activeMarkers']['includes'](_0x4fd513['markerName'])?_0x1a97b8['writer']['addClass']('ck-suggestion-marker--active',_0x43877d):_0x1a97b8['writer']['removeClass']('ck-suggestion-marker--active',_0x43877d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2da09f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510ad2,_0x149890,_0x326d7d)=>{_0x326d7d['options']['showSuggestionHighlights']&&_0x2da09f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510ad2,_0x149890,_0x326d7d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x39330a,_0x4f44ae,_0x56a433)=>{const {type:_0x595a5b,id:_0x2f35d8}=tt(_0x4f44ae['markerName']);if(!_0x12ac50['hasSuggestion'](_0x2f35d8))return;const _0x5cd598=_0x12ac50['getSuggestion'](_0x2f35d8),_0x285c7f=_0x5cd598['data'];if('formatBlock'!=_0x5cd598['type']||!_0x285c7f||'setTableColumnHeader'!=_0x285c7f['commandName'])return;const _0x2f51cd=_0x56a433['mapper']['markerNameToElements'](_0x4f44ae['markerName']);if(_0x2f51cd){for(const _0x5ee99e of _0x2f51cd)_0x56a433['writer']['removeClass']('ck-suggestion-marker-'+_0x595a5b,_0x5ee99e),_0x56a433['writer']['removeClass']('ck-suggestion-marker--active',_0x5ee99e),_0x56a433['writer']['removeAttribute']('data-suggestion',_0x5ee99e),_0x56a433['mapper']['unbindElementFromMarkerName'](_0x5ee99e,_0x4f44ae['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4cf24f=this['editor'],_0x1ecdc4=_0x4cf24f['locale'];function _0x3c5d24(_0x1abb93){return{'type':'format','content':St(_0x1ecdc4,'*Format:*\x20%0',_0x1abb93)};}_0x4cf24f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5ac2=>{if('formatBlock'!=_0x2b5ac2['type'])return;const {data:_0x50fba1}=_0x2b5ac2;return _0x50fba1?'setTableRowHeader'==_0x50fba1['commandName']?_0x50fba1['commandParams'][0x0]['forceValue']?_0x3c5d24(St(_0x1ecdc4,'FORMAT_HEADER_ROW')):_0x3c5d24(St(_0x1ecdc4,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x50fba1['commandName']?_0x50fba1['commandParams'][0x0]['forceValue']?_0x3c5d24(St(_0x1ecdc4,'FORMAT_HEADER_COLUMN')):_0x3c5d24(St(_0x1ecdc4,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1a5db9=this['editor'];if(!_0x1a5db9['plugins']['has']('TableEditing')||!_0x1a5db9['config']['get']('table.enableFooters'))return;const _0x21f451=_0x1a5db9['locale'],_0x25433b=_0x1a5db9['plugins']['get']('TrackChangesEditing');_0x25433b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x25433b['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x21f451,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x2dafdc{['afterInit'](){const _0x35950e=this['editor'],_0x4d875a=_0x35950e['locale'],_0xe0e2fd=_0x35950e['plugins']['get']('TrackChangesEditing');function _0xbbe66(_0x4761d0){return{'type':'format','content':''+St(_0x4d875a,'*Set\x20table\x20type:*\x20%0',_0x4761d0)};}_0x35950e['plugins']['has']('TableLayout')&&(_0xe0e2fd['enableCommand']('insertTableLayout'),_0xe0e2fd['enableDefaultAttributesIntegration']('tableType'),_0xe0e2fd['descriptionFactory']['registerElementLabel'](_0x441dbc=>_0x441dbc['is']('element','table')&&'layout'===_0x441dbc['getAttribute']('tableType'),_0x398b14=>St(_0x4d875a,'ELEMENT_LAYOUT_TABLE',_0x398b14)),_0xe0e2fd['descriptionFactory']['registerDescriptionCallback'](_0x5c9656=>{const {data:_0x5353f9}=_0x5c9656;if(_0x5353f9&&'tableType'==_0x5353f9['key'])switch(_0x5353f9['newValue']){case'layout':return _0xbbe66(St(_0x4d875a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xbbe66(St(_0x4d875a,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](He['map'](_0x425796=>[_0x425796,null]));var Ve=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x1c696b=this['editor'];if(!_0x1c696b['plugins']['has']('TableClipboard'))return;const _0x572856=_0x1c696b['plugins']['get']('TrackChangesEditing'),_0x45bd14=_0x1c696b['plugins']['get']('TableUtils'),_0x4c9ff7=_0x1c696b['plugins']['get'](ve),_0x1aa6ca=_0x1c696b['plugins']['get']('TableClipboard'),_0x55969a=_0x1c696b['plugins']['get']('TableSelection'),_0x5baf05=_0x1c696b['plugins']['get'](mt);_0x4c9ff7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c696b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c696b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x211aff=null,_0x4a3f01=!0x1;_0x5baf05['on']('contentInsertion',(_0x121edd,_0x173c3d)=>{_0x4a3f01='paste'===_0x173c3d['method'];}),_0x1c696b['model']['on']('insertContent',(_0x14db23,_0x15f3d8)=>{if(!_0x4a3f01&&null===_0x55969a['getSelectedTableCells']())return;const [_0xb7f6f9,_0x203e86]=_0x15f3d8,_0x4a3333=_0x15f3d8[_0x15f3d8['length']-0x1];_0x4a3333&&_0x4a3333['forceDefaultExecution']||_0x572856['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3223b4,_0x24c40c,_0x4ebcbe,_0x2fca46,_0x23973c){if(_0x24c40c&&!_0x24c40c['is']('documentSelection'))return!0x1;const _0x5c09cf=_0x23973c['getTableIfOnlyTableInContent'](_0x3223b4,_0x4ebcbe);if(!_0x5c09cf||!je(_0x5c09cf,void 0x0,_0x2fca46))return!0x1;const _0x54bb18=_0x2fca46['getSelectionAffectedTableCells'](_0x4ebcbe['document']['selection']);if(!_0x54bb18['length'])return!0x1;const _0x3ad486=_0x54bb18[0x0]['findAncestor']('table'),_0x349907=_0x2fca46['getRowIndexes'](_0x54bb18),_0x25fe4a=_0x2fca46['getColumnIndexes'](_0x54bb18),_0x37e2f9={'startRow':_0x349907['first'],'endRow':_0x349907['last'],'startColumn':_0x25fe4a['first'],'endColumn':_0x25fe4a['last']};return 0x1==_0x54bb18['length']&&(_0x37e2f9['endRow']+=_0x2fca46['getRows'](_0x5c09cf)-0x1,_0x37e2f9['endColumn']+=_0x2fca46['getColumns'](_0x5c09cf)-0x1),je(_0x3ad486,_0x37e2f9,_0x2fca46);}(_0xb7f6f9,_0x203e86,_0x1c696b['model'],_0x45bd14,_0x1aa6ca)&&(_0x14db23['stop'](),_0x211aff={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c696b['model']['change'](()=>{_0x1c696b['model']['insertContent'](_0x15f3d8[0x0],_0x15f3d8[0x1],_0x15f3d8[0x2],{'forceDefaultExecution':!0x0});const _0x3859bb=_0x24c80d(),{rowInsertionRanges:_0x3abb68,columnInsertionRanges:_0x5b48c2,insertionRanges:_0x5ababa,deletionRanges:_0x59f952,cells:_0x2ffe87}=_0x211aff;_0x3abb68['length']&&_0x572856['markMultiRangeInsertion'](_0x3abb68,'tablePasteRow',{'tablePasteChainId':_0x3859bb}),_0x5b48c2['length']&&_0x572856['markMultiRangeInsertion'](_0x5b48c2,'tablePasteColumn',{'tablePasteChainId':_0x3859bb}),_0x5ababa['length']&&(_0x572856['markMultiRangeInsertion'](_0x5ababa,'tablePaste',{'tablePasteChainId':_0x3859bb,'skipNestingCheck':!0x0}),_0x5ababa['forEach'](_0x377b12=>_0x377b12['detach']?.())),_0x59f952['length']&&(_0x572856['markMultiRangeDeletion'](_0x59f952,'tablePaste',{'tablePasteChainId':_0x3859bb,'skipNestingCheck':!0x0}),_0x59f952['forEach'](_0x39ecff=>_0x39ecff['detach']?.()));const _0x1b7d34=_0x572856['markMultiRangeBlockFormat'](_0x2ffe87['map'](({element:_0x542a72})=>_0x542a72),{'formatGroupId':_0x24c80d()},[],'tablePasteCell',{'tablePasteChainId':_0x3859bb});if(_0x1b7d34){const _0x3ebddc=_0x1b7d34['getMarkers'](),_0x3fddd7=[];for(const {element:_0x5f1993,attributes:_0x318255}of _0x2ffe87){if(!_0x318255)continue;const _0x181c06=_0x1c696b['model']['createRangeOn'](_0x5f1993),_0x5a4430=_0x3ebddc['find'](_0x13ad3d=>_0x13ad3d['getRange']()['isEqual'](_0x181c06));_0x5a4430&&_0x3fddd7['push']([_0x5a4430['name'],_0x318255]);}_0x3fddd7['length']&&_0x1b7d34['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fddd7));}_0x211aff=null;}));},{'priority':_0x5eb1e0['high']+0xa}),_0x5baf05['on']('contentInsertion',()=>{_0x4a3f01=!0x1;},{'priority':'lowest'}),_0x1c696b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24b60b,_0x5e01b9)=>{const [_0x4ae624,_0x1a0623,,_0x250ea4]=_0x5e01b9;if(!_0x211aff)return;_0x24b60b['stop']();const _0x2ef12f=_0x4ae624['cell'],_0x4677e3=_0x1a0623,_0x4ce99a=We(_0x2ef12f),_0x32b5a1=We(_0x4677e3);_0x24b60b['return']=_0x2ef12f;let _0x53f4be=null,_0x5bb930=null;if(_0x32b5a1||_0x4ce99a){if(_0x4ce99a&&!_0x32b5a1){_0x250ea4['remove'](_0x2ef12f['getChild'](0x0));for(const _0x524c6b of Array['from'](_0x4677e3['getChildren']()))_0x250ea4['insert'](_0x524c6b,_0x2ef12f,'end');const _0x543b2d=_0x211aff['rowInsertionIndexes']['includes'](_0x4ae624['row']),_0x9d7d9=_0x211aff['columnInsertionIndexes']['includes'](_0x4ae624['column']);_0x543b2d||_0x9d7d9||(_0x53f4be=rt['fromRange'](_0x250ea4['createRangeIn'](_0x2ef12f)));}else _0x32b5a1&&!_0x4ce99a&&(_0x5bb930=_0x250ea4['createRangeIn'](_0x2ef12f));}else{const _0x2e2e38=_0x250ea4['createElement']('tableCellSuggestion'),_0x746015=_0x250ea4['createElement']('tableCellSuggestion');_0x250ea4['wrap'](_0x250ea4['createRangeIn'](_0x2ef12f),_0x746015),_0x250ea4['insert'](_0x2e2e38,_0x2ef12f,0x0);for(const _0x3616f0 of Array['from'](_0x4677e3['getChildren']()))_0x250ea4['insert'](_0x3616f0,_0x2e2e38,'end');_0x53f4be=rt['fromRange'](_0x250ea4['createRangeOn'](_0x2e2e38)),_0x5bb930=rt['fromRange'](_0x250ea4['createRangeOn'](_0x746015));}const _0x45d752=Array['from'](_0x4677e3['getAttributes']())['filter'](([_0x39d895])=>He['includes'](_0x39d895));_0x211aff['cells']['push']({'element':_0x2ef12f,'attributes':_0x45d752['length']?Object['fromEntries'](_0x45d752):null}),_0x53f4be&&_0x211aff['insertionRanges']['push'](_0x53f4be),_0x5bb930&&_0x211aff['deletionRanges']['push'](_0x5bb930);},{'priority':'high'}),_0x45bd14['on']('insertColumns',(_0x985065,_0x331a1c)=>{const [_0x244f58,_0x39ca44={}]=_0x331a1c;if(!_0x211aff)return;const _0xbd2069=_0x39ca44['at']||0x0,_0x2547dd=_0x39ca44['columns']||0x1;_0x211aff['columnInsertionIndexes']=new Array(_0x2547dd)['fill'](_0xbd2069)['map']((_0x1c569f,_0x3a72e3)=>_0x1c569f+_0x3a72e3);for(const {cell:_0x11d69a}of _0x45bd14['createTableWalker'](_0x244f58,{'startColumn':_0xbd2069,'endColumn':_0xbd2069+_0x2547dd-0x1}))_0x211aff['columnInsertionRanges']['push'](_0x1c696b['model']['createRangeOn'](_0x11d69a));},{'priority':'low'}),_0x45bd14['on']('insertRows',(_0x4d3953,_0x25bd2c)=>{const [_0x572629,_0x220d2f={}]=_0x25bd2c;if(!_0x211aff)return;const _0x15c8a4=_0x220d2f['at']||0x0,_0x41eb77=_0x220d2f['rows']||0x1;_0x211aff['rowInsertionIndexes']=new Array(_0x41eb77)['fill'](_0x15c8a4)['map']((_0x93c67,_0x2b7fa8)=>_0x93c67+_0x2b7fa8);for(const {cell:_0x4b1d25}of _0x45bd14['createTableWalker'](_0x572629,{'startRow':_0x15c8a4,'endRow':_0x15c8a4+_0x41eb77-0x1}))_0x211aff['rowInsertionRanges']['push'](_0x1c696b['model']['createRangeOn'](_0x4b1d25));},{'priority':'low'}),_0x572856['descriptionFactory']['registerDescriptionCallback'](_0x3b3334=>{if(_0x3b3334['subType']&&_0x3b3334['subType']['startsWith']('tablePaste'))return _0x3b3334['previous']?{}:{'type':'insertion','content':St(_0x1c696b['locale'],'*Replace\x20table\x20cells*')};});const _0x133f77=()=>!0x1;for(const _0x4771e7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x572856['_suggestionFactory']['registerCustomCallback']('insertion',_0x4771e7,'join',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('deletion',_0x4771e7,'join',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4771e7,'join',_0x133f77);_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x133f77),_0x572856['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x408db1,_0x23eb9e,_0x55aa06)=>{const _0x83c235=_0x408db1['map'](_0x4d7287=>_0x4d7287['getContainedElement']())['filter'](_0x10f7b5=>_0x10f7b5),_0x142494=new Map(_0x83c235['map'](_0x12fb87=>[_0x12fb87,null]));if(_0x211aff){for(const {element:_0x263e89,attributes:_0x3abaf2}of _0x211aff['cells'])_0x3abaf2&&_0x142494['set'](_0x263e89,_0x3abaf2);}else{if(_0x55aa06&&_0x55aa06['markerAttributes'])for(const [_0x8ea9fa,_0x377d5a]of Object['entries'](_0x55aa06['markerAttributes'])){const _0x3382c0=_0x1c696b['model']['markers']['get'](_0x8ea9fa),_0x3f33d0=_0x3382c0?_0x3382c0['getRange']()['getContainedElement']():null;_0x3f33d0&&_0x142494['set'](_0x3f33d0,_0x377d5a);}}_0x1c696b['model']['change'](_0x3a925e=>{for(const [_0x2c3635,_0x2bb9bc]of _0x142494)_0x3a925e['setAttributes']({...$e,..._0x2bb9bc},_0x2c3635);});});const _0x27a52b=(_0x28541e,_0x451b45)=>{_0x572856['_suggestionFactory']['registerCustomCallback'](_0x28541e,'tablePaste',_0x451b45,(_0x34d6c2,_0x4d109a,_0x411e79)=>{_0x1c696b['model']['change'](_0x51270b=>{const _0x1c55c8=[];for(const _0x140b85 of _0x34d6c2){const _0x5cae03=_0x140b85['start']['nodeAfter'];_0x5cae03['is']('element','tableCellSuggestion')&&_0x1c55c8['push'](_0x5cae03);}_0x572856['_suggestionFactory']['getSuggestionCallback'](_0x28541e,null,_0x451b45)(_0x34d6c2,_0x4d109a,_0x411e79);for(const _0xa8e824 of _0x1c55c8)'$graveyard'!=_0xa8e824['root']['rootName']&&_0x51270b['unwrap'](_0xa8e824);});});};_0x27a52b('insertion','accept'),_0x27a52b('insertion','discard'),_0x27a52b('deletion','accept'),_0x27a52b('deletion','discard'),_0x572856['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2c833f=>{const _0x131f32=_0x2c833f['map'](_0x2384b1=>_0x2384b1['getContainedElement']()),_0x1396db=_0x131f32[0x0]['findAncestor']('table'),{minRow:_0x58223c,maxRow:_0x401be0}=_0x4c9ff7['_getCoordsForCells'](_0x131f32);_0x45bd14['removeRows'](_0x1396db,{'at':_0x58223c,'rows':_0x401be0-_0x58223c+0x1});}),_0x572856['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x56e19d=>{const _0x40b601=_0x56e19d['map'](_0xd5e859=>_0xd5e859['getContainedElement']()),_0xb81c62=_0x40b601[0x0]['findAncestor']('table'),{minColumn:_0x1831e7,maxColumn:_0x26187a}=_0x4c9ff7['_getCoordsForCells'](_0x40b601);_0x45bd14['removeColumns'](_0xb81c62,{'at':_0x1831e7,'columns':_0x26187a-_0x1831e7+0x1});});const _0x586ba9=(_0x44b088,_0x20cbed)=>{if(!_0x20cbed['subType']||!_0x20cbed['subType']['startsWith']('tablePaste'))return;const _0x4ba7b1=_0x20cbed['attributes']['tablePasteChainId'],_0x2b0d06=_0x572856['getSuggestions']()['filter'](_0x3e4120=>_0x3e4120['isInContent']&&_0x3e4120['attributes']&&_0x3e4120['attributes']['tablePasteChainId']==_0x4ba7b1);_0x2b0d06['length']&&_0x20cbed['getAllAdjacentSuggestions']()['length']!=_0x2b0d06['length']&&_0x2b0d06['reduce']((_0x12a78d,_0x186e7b)=>(_0x12a78d['next']=_0x186e7b,_0x186e7b['previous']=_0x12a78d,_0x186e7b));};function _0x71ef48(_0x1877e4,_0x3e7b7c=!0x0){const {id:_0x2f5fb3,authorId:_0x596b0a}=tt(_0x1877e4['markerName']),_0x3ebf3a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x50ecd5=_0x572856['activeMarkers']['includes'](_0x1877e4['markerName']);return _0x50ecd5&&_0x3ebf3a['push']('ck-suggestion-marker--active'),{'classes':_0x3ebf3a,'attributes':{'data-suggestion':_0x2f5fb3,'data-author-id':_0x596b0a},'priority':_0x50ecd5&&_0x3e7b7c?0xbc2:0xbb8};}_0x572856['on']('suggestionLoaded',_0x586ba9,{'priority':'high'}),_0x572856['on']('suggestionUnloaded',_0x586ba9,{'priority':'high'}),_0x1c696b['model']['document']['registerPostFixer'](()=>{let _0x37d59d=!0x1;const _0x14ee9e=Array['from'](_0x1c696b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x507055,data:_0x5acee4}of _0x14ee9e){const {group:_0x12935e,type:_0xdb0884,id:_0x25d90e}=tt(_0x507055);if('suggestion'!=_0x12935e||'deletion'!=_0xdb0884||_0x5acee4['oldRange'])continue;if(!_0x572856['hasSuggestion'](_0x25d90e))continue;const _0x2c7a71=_0x572856['getSuggestion'](_0x25d90e)['getRanges'](),_0x5c536a=_0x1c696b['plugins']['get']('Users')['me'];for(const _0x38b76f of _0x572856['getSuggestions']())if(_0x38b76f['isInContent']&&_0x38b76f['author']==_0x5c536a&&'formatBlock'==_0x38b76f['type']&&'tablePasteCell'==_0x38b76f['subType']&&_0x38b76f['getRanges']()['every'](_0x3ab80f=>_0x2c7a71['some'](_0x5467c6=>_0x5467c6['containsRange'](_0x3ab80f,!0x0)))){for(const _0x31e178 of _0x38b76f['getAllAdjacentSuggestions']())_0x31e178['isInContent']&&(_0x31e178['discard'](),_0x37d59d=!0x0);}}return _0x37d59d;}),_0x1c696b['model']['document']['registerPostFixer'](_0x54f990=>{const _0x577bbd=_0x1c696b['commands']['get']('redo');if(!_0x577bbd||!_0x577bbd['_createdBatches']['has'](_0x54f990['batch']))return!0x1;let _0xa83b87=!0x1;const _0x4a2eb8=_0x1c696b['plugins']['get']('Users')['me'],_0x5e7a0c=_0x1c696b['model']['document']['differ']['getChanges'](),_0x3d3b39=Array['from'](_0x1c696b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb0367b,data:_0x56ee5f})=>{const {group:_0x494230,subType:_0x35b47a,authorId:_0x69e8f6}=tt(_0xb0367b);return'suggestion'==_0x494230&&'tablePaste'==_0x35b47a&&_0x69e8f6==_0x4a2eb8['id']&&!_0x56ee5f['oldRange'];});for(const _0x4289a9 of _0x5e7a0c){if('insert'!=_0x4289a9['type']||'tableCellSuggestion'!=_0x4289a9['name']||0x1!=_0x4289a9['length'])continue;const _0x1a754f=_0x54f990['createRange'](_0x4289a9['position'],_0x4289a9['position']['getShiftedBy'](0x1));if(!_0x3d3b39['find'](({data:_0x44efb7})=>_0x44efb7['newRange']['isEqual'](_0x1a754f))){for(const {name:_0x5b89a4,data:_0x314988}of _0x3d3b39)if(_0x1a754f['containsRange'](_0x314988['newRange'])){_0x54f990['updateMarker'](_0x5b89a4,{'range':_0x1a754f}),_0xa83b87=!0x0;break;}}}return _0xa83b87;}),_0x1c696b['model']['document']['registerPostFixer'](_0x33eba0=>{let _0xddc254=!0x1;const _0x22b7ed=_0x1c696b['plugins']['get']('Users')['me'],_0x428e2f=_0x572856['getSuggestions']()['filter'](_0xb3b282=>_0xb3b282['isInContent']&&_0xb3b282['author']==_0x22b7ed),_0x30bbff=new Set(),_0x18b3a9=new Set();for(const _0x499d26 of _0x428e2f)if('tablePaste'==_0x499d26['subType'])for(const _0x41b918 of _0x499d26['getMarkers']()){const _0x1411fb=_0x41b918['getRange']()['getContainedElement']();if(_0x1411fb){if(_0x1411fb['is']('element','tableCellSuggestion')&&We(_0x1411fb)){_0x499d26['removeMarker'](_0x41b918['name']),_0x30bbff['add'](_0x1411fb),_0xddc254=!0x0;const _0xe48fe=_0x1411fb['nextSibling'],_0x1ad9e7=_0x1411fb['previousSibling'],_0x357366=_0xe48fe&&_0xe48fe['is']('element','tableCellSuggestion'),_0x2d9674=_0x1ad9e7&&_0x1ad9e7['is']('element','tableCellSuggestion');_0x357366&&!_0x30bbff['has'](_0xe48fe)&&_0x18b3a9['add'](_0xe48fe),_0x2d9674&&!_0x30bbff['has'](_0x1ad9e7)&&_0x18b3a9['add'](_0x1ad9e7);}else _0x1411fb['is']('element','paragraph')&&_0x1411fb['isEmpty']&&(_0x499d26['removeMarker'](_0x41b918['name']),_0xddc254=!0x0);}}else{if('tablePasteCell'==_0x499d26['subType']){if(!_0x499d26['attributes']||!_0x499d26['attributes']['tablePasteChainId'])continue;const _0x552390=_0x499d26['attributes']['markerAttributes'];if(_0x552390&&Object['keys'](_0x552390)['length'])continue;const _0x250e40=_0x499d26['attributes']['tablePasteChainId'];let _0x584122=!0x0,_0x2d462d=!0x0;for(const _0x3591da of _0x428e2f)if(_0x3591da['subType']&&_0x3591da['subType']['startsWith']('tablePaste')){if(!_0x3591da['attributes']['tablePasteChainId']){_0x2d462d=!0x1;break;}if(_0x3591da['id']!=_0x499d26['id']&&_0x3591da['attributes']['tablePasteChainId']==_0x250e40){_0x584122=!0x1;break;}}_0x2d462d&&_0x584122&&(_0x499d26['removeMarkers'](),_0xddc254=!0x0);}}for(const _0xefd95b of _0x30bbff)_0x33eba0['remove'](_0xefd95b);for(const _0x5eb023 of _0x18b3a9)_0x33eba0['unwrap'](_0x5eb023);return _0xddc254;}),_0x1c696b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c0c45=>_0x71ef48(_0x2c0c45),'converterPriority':'high'}),_0x1c696b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17cad2,_0x3bb25c)=>_0x3bb25c['options']['showSuggestionHighlights']?_0x71ef48(_0x17cad2,!0x1):null,'converterPriority':'high'});const _0x10067f=_0x1c696b['editing']['view'];this['listenTo'](_0x10067f['document'],'clipboardOutput',(_0x3de581,_0x2a1ef6)=>{const _0x5e7d58=[];for(const _0x345a9d of _0x10067f['createRangeIn'](_0x2a1ef6['content'])['getItems']())_0x345a9d['is']('element','suggestion-td')&&_0x5e7d58['push'](_0x345a9d);_0x10067f['change'](_0x358231=>{for(const _0x2a4afe of _0x5e7d58)_0x358231['move'](_0x358231['createRangeIn'](_0x2a4afe),_0x358231['createPositionBefore'](_0x2a4afe)),_0x358231['remove'](_0x2a4afe);});});}};function We(_0x2b24b2){if(_0x2b24b2['isEmpty'])return!0x0;const _0x3ddf47=_0x2b24b2['getChild'](0x0);return _0x3ddf47['is']('element','paragraph')&&_0x3ddf47['isEmpty'];}function je(_0x8d0104,_0x6e74fb={},_0x30dabc){for(const {isAnchor:_0x5197b1,cellHeight:_0x5adacd,cellWidth:_0x3a3c1a}of _0x30dabc['createTableWalker'](_0x8d0104,{'includeAllSlots':!0x0,..._0x6e74fb}))if(!_0x5197b1||0x1!=_0x5adacd||0x1!=_0x3a3c1a)return!0x1;return!0x0;}var Ke=class extends _0x2dafdc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3726aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3726aa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3726aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3726aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3726aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3726aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3726aa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x412a3b,_0xe29629){const _0x14821f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3499f1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1268d2=_0xe29629['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49c81d=_0x3499f1['getColumnGroupElement'](_0x1268d2);let _0x53aac4=_0x49c81d?_0x3499f1['getTableColumnsWidths'](_0x49c81d):null,_0x61007f=_0x1268d2['getAttribute']('tableWidth')||null;const _0x2f416f=_0xe29629['tableWidth']||_0x61007f,_0x128be2=_0xe29629['columnWidths']||_0x53aac4,_0xc21713=this['editor']['plugins']['get']('Users')['me'];for(const _0x467c68 of _0x14821f['getSuggestions']()){const _0x397a90=_0x467c68['getContainedElement']();if('resizeTable'===_0x467c68['subType']&&_0x397a90===_0x1268d2){_0x467c68['author']!==_0xc21713&&_0x467c68['discard']();const _0x1da0d8=_0x467c68['data']['commandParams'];_0x61007f=_0x1da0d8[0x0]['tableWidth'],_0x53aac4=_0x1da0d8[0x0]['columnWidths'];break;}}_0x412a3b({'table':_0x1268d2,'tableWidth':_0x2f416f,'columnWidths':_0x128be2}),_0x14821f['markBlockFormat'](_0x1268d2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x61007f,'columnWidths':_0x53aac4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x164774){if('formatBlock'!=_0x164774['type']&&'formatInline'!=_0x164774['type'])return;const {data:_0x5c04a5}=_0x164774;return _0x5c04a5&&'resizeTable'===_0x5c04a5['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x2dafdc{['afterInit'](){const _0x3ce59a=this['editor'];_0x3ce59a['plugins']['has']('Template')&&_0x3ce59a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x2dafdc{['afterInit'](){const _0x4da92e=this['editor'];if(!_0x4da92e['commands']['get']('insertTableOfContents'))return;_0x4da92e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49e1d8=_0x4da92e['plugins']['get']('TrackChangesEditing'),_0x589e8a=_0x4da92e['locale'];_0x49e1d8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1164d0=>St(_0x589e8a,'ELEMENT_TABLE_OF_CONTENTS',_0x1164d0));}},qe=class extends _0x2dafdc{['afterInit'](){const _0x15e555=this['editor'];_0x15e555['plugins']['has']('Title')&&(_0x15e555['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x15e555['locale'],'ELEMENT_TITLE')),_0x15e555['model']['document']['registerPostFixer'](_0x20743d=>{let _0x2146a0=!0x1;const _0x4b75d2=Array['from'](_0x15e555['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55dca1,data:_0x61cae8}of _0x4b75d2){const {group:_0x5bcda8}=tt(_0x55dca1);if('suggestion'!==_0x5bcda8||!_0x61cae8['newRange'])continue;const _0x24c8dc=_0x61cae8['newRange'],_0x2e67b6=_0x24c8dc['end']['nodeBefore'];if(!_0x2e67b6||!_0x2e67b6['is']('element','title-content'))continue;if(!_0x24c8dc['start']['isTouching'](_0x24c8dc['end']))continue;const _0xe37a60=_0x15e555['model']['schema']['getNearestSelectionRange'](_0x24c8dc['end'],'forward');if(_0xe37a60&&_0xe37a60['isCollapsed']){const _0x1d522c=_0x20743d['createRange'](_0x24c8dc['start'],_0xe37a60['start']);_0x1d522c['isEqual'](_0x24c8dc)||(_0x20743d['updateMarker'](_0x55dca1,{'range':_0x1d522c}),_0x2146a0=!0x0);}_0x2146a0||(_0x20743d['removeMarker'](_0x55dca1),_0x2146a0=!0x0);}return _0x2146a0;}));}},Ye=class extends _0x2dafdc{['afterInit'](){const _0x19b8c2=this['editor'],_0x5c7bd4=_0x19b8c2['plugins']['get']('TrackChangesEditing');_0x19b8c2['plugins']['has']('Uploadcare')&&(_0x5c7bd4['enableCommand']('uploadcare'),_0x19b8c2['plugins']['has']('UploadcareImageEdit')&&(_0x5c7bd4['enableCommand']('uploadcareImageEdit'),_0x5c7bd4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5c7bd4['descriptionFactory']['registerDescriptionCallback'](_0x59d855=>{if('attribute'!=_0x59d855['type'])return;const {data:_0x26ba32}=_0x59d855;return _0x26ba32&&'uploadcareImageId'==_0x26ba32['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x2dafdc{['afterInit'](){const _0x1bad5f=this['editor'],_0xaf53a=_0x1bad5f['plugins']['get']('TrackChangesEditing');_0x1bad5f['plugins']['has']('UndoEditing')&&(_0xaf53a['enableCommand']('undo'),_0xaf53a['enableCommand']('redo'));}},Ze=class extends _0x2dafdc{static get['requires'](){return[ve];}['afterInit'](){const _0x531436=this['editor'];_0x531436['plugins']['has']('TableCaptionEditing')&&_0x531436['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x2dafdc{['tableProperties'];['tableCellProperties'];constructor(_0xfe120c){super(_0xfe120c),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 _0x7aca44=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e9209 of this['tableProperties'])_0x7aca44['enableCommand'](_0x1e9209,(_0x15ca19,_0x36f86b)=>{const _0x544e58=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e9209,[_0x544e58],this['tableProperties'],'tableProperties',_0x15ca19,_0x36f86b);});_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x7aca44['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x63903,_0x5e5d64)=>this['handleDiscardAction'](this['tableProperties'],_0x63903,_0x5e5d64)),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x244b19 of this['tableCellProperties'])this['editor']['commands']['get'](_0x244b19)&&_0x7aca44['enableCommand'](_0x244b19,(_0x421228,_0x3e76a2)=>{const _0x12a5dc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x244b19,_0x12a5dc,this['tableCellProperties'],'tableCellProperties',_0x421228,_0x3e76a2);});_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x7aca44['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x252e42,_0x52aaf5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x252e42,_0x52aaf5)),_0x7aca44['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x7aca44['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x7aca44['descriptionFactory']['registerDescriptionCallback'](_0x86a670=>this['handleSuggestionDescription'](_0x86a670)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xca38c5,_0x2c3953,_0x4c2b96,_0x5142d6,_0x1831f3,_0xf1e33e){const _0x3536ca=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xf1e33e['batch'],()=>{for(const _0x157c5d of _0x2c3953)if(this['_getSuggestion'](_0x157c5d,_0x5142d6))_0x1831f3(_0xf1e33e);else{const _0x4de847={};for(const _0x3e3df4 of _0x4c2b96){const _0x13662a=_0x157c5d['getAttribute'](_0x3e3df4);void 0x0!==_0x13662a&&(_0x4de847[_0x3e3df4]=_0x13662a);}_0x1831f3(_0xf1e33e),_0x3536ca['markBlockFormat'](_0x157c5d,{'commandParams':[_0x4de847]},[],_0x5142d6);}});}['handleDiscardAction'](_0xb69093,_0x38352c,_0xc3e5ce){const _0x56fcbf=_0x38352c[0x0]['start']['nodeAfter'],_0x40512e=_0xc3e5ce['commandParams'][0x0];this['editor']['model']['change'](_0x7a83b2=>{for(const _0x4e618b of _0xb69093)void 0x0!==_0x40512e[_0x4e618b]?_0x7a83b2['setAttribute'](_0x4e618b,_0x40512e[_0x4e618b],_0x56fcbf):_0x7a83b2['removeAttribute'](_0x4e618b,_0x56fcbf);});}['handleSuggestionDescription'](_0x5d6275){if(_0x5d6275['data'])switch(_0x5d6275['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x147b52,_0x571e52){const _0x4c85e1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55aa0f of _0x4c85e1['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b5d3e=_0x55aa0f['getContainedElement']();if(_0x55aa0f['subType']===_0x571e52&&_0x3b5d3e===_0x147b52)return _0x55aa0f;}return null;}['_registerTablePropertiesAttributes'](){const _0x2555c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26a054=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5cd645 of _0x26a054){const _0x5d15a0=_0x5cd645['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2555c9['descriptionFactory']['registerAttributeLabel'](_0x5cd645,St(this['editor']['locale'],'FORMAT_'+_0x5d15a0));}}},tn=class extends _0x2dafdc{['afterInit'](){const _0x5d82bc=this['editor'];if(!_0x5d82bc['plugins']['has']('LineHeight'))return;const _0x3f0904=_0x5d82bc['plugins']['get']('TrackChangesEditing'),_0x49de32=_0x5d82bc['locale'];_0x3f0904['enableDefaultAttributesIntegration']('lineHeight'),_0x3f0904['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x49de32,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x2dafdc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xe4cf4f,_0x4df9c4,_0x30610e,_0x1cc5ec,_0x30e621,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cdfe){super(_0x12cdfe),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14aaa1,_0x43d9e0,_0x57512a,_0x5cbb9d)=>{this['_model']['change'](()=>{for(const _0x27d99c of[..._0x5cbb9d,..._0x57512a])this['_model']['markers']['has'](_0x27d99c)&&_0x12cdfe['editing']['reconvertMarker'](_0x27d99c);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x12cdfe['plugins']['get'](_0xe4cf4f),this['_suggestionsConversion']=_0x12cdfe['plugins']['get'](_0x4df9c4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12cdfe['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12cdfe['config']['get']('trackChanges.trackFormatChanges'),_0x12cdfe['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12cdfe['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x12cdfe,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x14884b=this['editor'];_0x14884b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c5858,{writer:_0x583002})=>{let _0xa47217='suggestion:'+_0x1c5858['getAttribute']('suggestion-type')+':'+_0x1c5858['getAttribute']('id');return _0x1c5858['getAttribute']('marker-count')&&(_0xa47217+=':'+_0x1c5858['getAttribute']('marker-count')),_0x583002['createElement']('$marker',{'data-name':_0xa47217});}}),_0x14884b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x14884b['model']['document']['registerPostFixer'](_0x1b5170=>{let _0x13eb37=!0x1;const _0x23f4f1=Array['from'](_0x14884b['model']['document']['differ']['getChangedMarkers']()),_0x28f7c8=new Set();for(const {name:_0x1c82f,data:_0x1b8873}of _0x23f4f1){const {group:_0x4aacdf,type:_0x340536,subType:_0x341ef2,id:_0x43f791}=tt(_0x1c82f);if('suggestion'!==_0x4aacdf)continue;const _0x37e082=_0x341ef2?'suggestion:'+_0x340536+':'+_0x341ef2+':'+_0x43f791:'suggestion:'+_0x340536+':'+_0x43f791,_0x182915=_0x14884b['model']['markers']['getMarkersGroup'](_0x37e082),_0x5c9645=_0x14884b['model']['markers']['get'](_0x1c82f),_0x55541b=this['_suggestions']['get'](_0x43f791);if(null!=_0x1b8873['newRange']){'formatInline'==_0x340536&&(_0x13eb37=_0x13eb37||an(_0x1b8873['newRange'],_0x1c82f,_0x1b5170,_0x14884b['model']['schema']));const _0x2c6385='attribute'==_0x340536&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x341ef2)),_0x7e559d='attribute'==_0x340536&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x341ef2));if(_0x1b8873['newRange']['isCollapsed']||'$graveyard'==_0x1b8873['newRange']['root']['rootName']||'formatBlock'==_0x340536&&!ln(_0x1b8873['newRange'])||_0x2c6385&&!ln(_0x1b8873['newRange'])||_0x7e559d&&un(_0x1b8873['newRange'])||'deletion'==_0x340536&&un(_0x1b8873['newRange'])||_0x5c9645&&dn(_0x5c9645,_0x182915))_0x1b5170['removeMarker'](_0x1c82f),_0x13eb37=!0x0;else{if(!_0x55541b||!_0x55541b['isInContent'])continue;if(_0x1b8873['newRange']&&_0x1b8873['oldRange']&&_0x1b8873['newRange']['isEqual'](_0x1b8873['oldRange']))continue;_0x28f7c8['add'](_0x55541b);}}}return _0x28f7c8['size']>0x0&&(_0x13eb37=!!this['_joinWithAdjacentSuggestions'](_0x28f7c8)||_0x13eb37),_0x13eb37;}),_0x14884b['model']['document']['registerPostFixer'](_0xa7aa70=>{let _0x40da10=!0x1;for(const _0xefeee8 of _0x14884b['model']['document']['differ']['getChanges']())if('insert'==_0xefeee8['type'])for(const _0x575b10 of this['_suggestions']['values']()){if(_0x575b10['isMultiRange']||!_0x575b10['isInContent'])continue;const _0x29d95e='formatBlock'==_0x575b10['type'],_0x587842=this['_getAttributeKey'](_0x575b10),_0x5d2c5c=_0x587842&&this['_suggestionsConversion']['isBlockAttribute'](_0x587842);if(!_0x29d95e&&!_0x5d2c5c)continue;const _0x553be8=_0x575b10['getFirstRange']();if(_0x553be8['start']['parent']!=_0x553be8['end']['parent']&&!_0x553be8['end']['isAtEnd']){const _0x4fbf4e=_0x14884b['model']['createPositionAt'](_0x553be8['start']['nodeAfter'],'end'),_0x189327=_0x14884b['model']['createRange'](_0x553be8['start'],_0x4fbf4e);_0xa7aa70['updateMarker'](_0x575b10['getFirstMarker'](),{'range':_0x189327}),_0x40da10=!0x0;}}return _0x40da10;}),_0x14884b['model']['document']['registerPostFixer'](_0x414b71=>this['_processAttributeChanges'](_0x414b71)),_0x14884b['model']['document']['registerPostFixer'](_0x163a61=>!_0x163a61['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x163a61)),_0x14884b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x14884b['model']['document']['on']('change:data',(_0x2fb078,_0xcf0064)=>{if(!_0xcf0064['isLocal']||_0xcf0064['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b279b=_0x14884b['model']['document']['differ']['getChanges']();if(0x0==_0x2b279b['length'])return;const _0x2ee460=[],_0x4bbec6=_0x2b279b['filter'](_0x30d526=>'attribute'==_0x30d526['type']),_0x3866e9=_0x2b279b['filter'](_0x2f29e8=>'insert'==_0x2f29e8['type']&&'$text'!=_0x2f29e8['name']);for(const _0x258688 of _0x4bbec6)this['_suggestionsConversion']['isRegisteredAttribute'](_0x258688['attributeKey'])&&_0x2ee460['push']({'key':_0x258688['attributeKey'],'newValue':_0x258688['attributeNewValue'],'oldValue':_0x258688['attributeOldValue'],'range':hn(_0x258688['range'],_0x14884b['model'])});for(const _0x493c47 of _0x3866e9){if('rename'!=_0x493c47['action']&&'refresh'!=_0x493c47['action'])continue;const _0xaf35a6=gn(_0x493c47['position']['nodeAfter'],_0x14884b['model']),_0x33e6e7=_0x493c47['before'];'rename'==_0x493c47['action']&&_0x2ee460['push']({'key':en,'newValue':_0x493c47['name'],'oldValue':_0x33e6e7['name'],'range':_0xaf35a6});for(const [_0x5d1baf,_0x8b029a]of _0x33e6e7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5d1baf))continue;const _0xb7f54=_0x493c47['attributes']['get'](_0x5d1baf);_0x8b029a!==_0xb7f54&&_0x2ee460['push']({'key':_0x5d1baf,'newValue':_0xb7f54,'oldValue':_0x8b029a,'range':_0xaf35a6});}for(const [_0x55f7f8,_0x208921]of _0x493c47['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x55f7f8)&&(_0x33e6e7['attributes']['has'](_0x55f7f8)||_0x2ee460['push']({'key':_0x55f7f8,'newValue':_0x208921,'oldValue':null,'range':_0xaf35a6}));}0x0!=_0x2ee460['length']&&_0x14884b['model']['enqueueChange'](_0xcf0064,_0x3b55f6=>{const _0x51eec4=_0x24c80d();for(const {range:_0x449674,key:_0x42ab6f,oldValue:_0x3b7bd0,newValue:_0xf5257}of _0x2ee460)this['markAttributeChange'](_0x449674,_0x42ab6f,_0x3b7bd0,_0xf5257,{'groupId':_0x51eec4});this['_reduceExistingSuggestions'](_0x3b55f6,_0x2ee460);});},{'priority':'lowest'}),_0x14884b['model']['markers']['on']('update:suggestion',(_0x4c192e,_0x505c1b,_0x1a9e52)=>{if(null==_0x1a9e52){const {id:_0x29030b}=tt(_0x505c1b['name']),_0x1abdb3=this['_suggestions']['get'](_0x29030b);_0x1abdb3&&_0x1abdb3['addMarkerName'](_0x505c1b['name']);}}),_0x14884b['model']['document']['on']('change:data',()=>{const _0x1b8cff=Array['from'](_0x14884b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b0341=>'suggestion'===tt(_0x1b0341['name'])['group']);if(0x0===_0x1b8cff['length'])return;_0x1b8cff['sort']((_0x514712,_0x37139b)=>{const _0x2ac3e5=_0x514712['data']['oldRange'],_0x53aabb=_0x37139b['data']['oldRange'];return null===_0x2ac3e5&&null===_0x53aabb?0x0:null===_0x2ac3e5&&null!==_0x53aabb?-0x1:null!==_0x2ac3e5&&null===_0x53aabb?0x1:_0x2ac3e5['start']['isBefore'](_0x53aabb['start'])?-0x1:0x1;});const _0x549742=new Set(),_0x368473=new Set();for(const {name:_0x524b16,data:_0x320cce}of _0x1b8cff){const {id:_0x50de22}=tt(_0x524b16);if(null===_0x320cce['oldRange']){const _0x4e5aec=this['_handleNewSuggestionMarker'](_0x524b16);_0x368473['add'](_0x4e5aec);}else{const _0x2b7f64=this['_suggestions']['get'](_0x50de22);null!==_0x320cce['newRange']||_0x2b7f64['isInContent']?(_0x549742['add'](_0x2b7f64['head']),_0x368473['add'](_0x2b7f64)):this['_removeSuggestion'](_0x2b7f64);}}_0x368473['size']>0x0&&this['_refreshSuggestionsChain'](_0x368473);for(const _0x50fcf7 of _0x549742)this['fire']('suggestionChanged',_0x50fcf7);}),_0x14884b['model']['on']('applyOperation',(_0x5d8d26,_0x41813a)=>{const _0x1c0a98=_0x41813a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c0a98['isDocumentOperation'])return;if(_0x1c0a98['batch']['isUndo']||!_0x1c0a98['batch']['isLocal'])return;let _0x5d5fe4,_0x25cd01;switch(_0x1c0a98['type']){case'insert':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['position']),_0x25cd01=_0x5d5fe4['getShiftedBy'](_0x1c0a98['howMany']);break;case'split':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['splitPosition']),_0x25cd01=_0x14884b['model']['createPositionAt'](_0x1c0a98['moveTargetPosition']);break;case'move':_0x5d5fe4=_0x14884b['model']['createPositionAt'](_0x1c0a98['targetPosition']),_0x25cd01=_0x5d5fe4['getShiftedBy'](_0x1c0a98['howMany']);break;default:return;}const _0xa037c0=_0x14884b['model']['createRange'](_0x5d5fe4,_0x25cd01);_0x14884b['model']['change'](()=>{for(const {suggestion:_0x49ccfb,meta:_0x398b6c}of this['_findSuggestions'](_0xa037c0)){if(_0x49ccfb['isMultiRange'])continue;if('formatInline'==_0x49ccfb['type'])continue;const _0x108f4c=this['_getAttributeKey'](_0x49ccfb);if(_0x108f4c&&this['_suggestionsConversion']['isBlockAttribute'](_0x108f4c)&&'split'!=_0x1c0a98['type'])continue;const _0x5b1e4c=_0x49ccfb['data']&&_0x49ccfb['data']['multipleBlocks'];('formatBlock'!=_0x49ccfb['type']||'split'==_0x1c0a98['type']&&!_0x5b1e4c)&&(_0x398b6c['containsRangeInObject']||'insertion'==_0x49ccfb['type']&&_0x398b6c['isOwn']||_0x49ccfb['getFirstRange']()['containsRange'](_0xa037c0)&&this['_breakSuggestionMarker'](_0x49ccfb,_0x5d5fe4,_0x25cd01));}});},{'priority':'lowest'}),_0x14884b['model']['on']('deleteContent',(_0x40b36e,_0x1a857d)=>{const _0x3fbb33=_0x1a857d[0x0],_0x4f6144=_0x1a857d[0x1];if(_0x4f6144&&_0x4f6144['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3fbb33['isCollapsed'])return;const _0x2169f5=_0x14884b['model']['schema'],{start:_0x1b44e3,end:_0x4bcb32}=_0x3fbb33['getFirstRange'](),_0x56f7e2=_0x1b44e3['nodeAfter']&&_0x2169f5['isLimit'](_0x1b44e3['nodeAfter'])?null:_0x2169f5['getNearestSelectionRange'](_0x1b44e3,'forward'),_0x5da06a=_0x4bcb32['nodeBefore']&&_0x2169f5['isLimit'](_0x4bcb32['nodeBefore'])?null:_0x2169f5['getNearestSelectionRange'](_0x4bcb32,'backward'),_0x1609a0=_0x14884b['model']['createRange'](_0x56f7e2?_0x56f7e2['start']:_0x1b44e3,_0x5da06a?_0x5da06a['end']:_0x4bcb32);_0x14884b['model']['change'](_0x942043=>{this['markDeletion'](_0x1609a0);const _0x38147b=_0x14884b['model']['schema']['getNearestSelectionRange'](_0x1609a0['start']);_0x3fbb33['is']('documentSelection')?_0x942043['setSelection'](_0x38147b):_0x3fbb33['setTo'](_0x38147b);}),_0x40b36e['stop']();},{'priority':_0x5eb1e0['normal']+0xa}),_0x14884b['model']['on']('insertContent',(_0x497b5c,_0x4cb5df)=>{const _0x22073b=_0x4cb5df[_0x4cb5df['length']-0x1];_0x22073b&&_0x22073b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x14884b['model']['change'](()=>{let _0x26b03b=_0x14884b['model']['insertContent'](_0x4cb5df[0x0],_0x4cb5df[0x1],_0x4cb5df[0x2],{'forceDefaultExecution':!0x0});if(!_0x26b03b)return;_0x497b5c['return']=_0x26b03b['clone']();const _0x40059e=_0x26b03b['end']['nodeBefore'],_0x4dbbb3=_0x14884b['model']['schema'];_0x40059e&&_0x4dbbb3['isBlock'](_0x40059e)&&!_0x4dbbb3['isObject'](_0x40059e)&&(_0x26b03b=_0x14884b['model']['createRange'](_0x26b03b['start'],_0x14884b['model']['createPositionAt'](_0x40059e,'end'))),this['markInsertion'](_0x26b03b);}),_0x497b5c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31f62a=new Tt(_0x14884b,this['_suggestions']);_0x14884b['commands']['add']('acceptSuggestion',_0x31f62a),this['enableCommand']('acceptSuggestion');const _0xf046cf=new _t(_0x14884b,this['_suggestions']);_0x14884b['commands']['add']('discardSuggestion',_0xf046cf),this['enableCommand']('discardSuggestion'),_0x14884b['commands']['add']('acceptAllSuggestions',new Ct(_0x14884b,_0x31f62a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x14884b['commands']['add']('discardAllSuggestions',new Ct(_0x14884b,_0xf046cf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x14884b['commands']['add']('acceptSelectedSuggestions',new Rt(_0x14884b,_0x31f62a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x14884b['commands']['add']('discardSelectedSuggestions',new Rt(_0x14884b,_0xf046cf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2f5407=_0x14884b['plugins']['get'](_0xe4cf4f);this['listenTo'](_0x2f5407,'addComment',(_0x4ee553,{threadId:_0x230a5f})=>{const _0x25c785=this['_suggestions']['get'](_0x230a5f);_0x25c785&&_0x25c785['commentThread']&&0x1===_0x25c785['commentThread']['length']&&this['_updateSuggestionData'](_0x230a5f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2f5407,'removeComment',(_0xd0f47b,{threadId:_0x684975})=>{const _0x15a0bd=this['_suggestions']['get'](_0x684975);_0x15a0bd&&_0x15a0bd['commentThread']&&!_0x15a0bd['commentThread']['length']&&this['_updateSuggestionData'](_0x684975,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49fa3d){const _0x34fbaa='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x466ddc=0x78e70,_0x3ea2cf=window['Date']['now'](),_0x4c6c8f=_0x49fa3d['editor'],_0x2bf544=new window['Promise'](_0x5ad00e=>{_0x4c6c8f['once']('ready',_0x5ad00e);}),_0x47d22e={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x535850=_0x4c6c8f['config']['get']('licenseKey');async function _0x5eb4ce(){let _0x306cce,_0x299345=null,_0x5d3476=null;try{return'GPL'==_0x535850?'NotAllowed':(_0x306cce=_0x254531(),_0x306cce?(_0x306cce['usageEndpoint']&&(_0x5d3476=_0x2dd91c(_0x306cce['usageEndpoint'],_0x306cce['jti'])),await _0x1b55b8()?_0x478d5()?_0x98355f()?'Expired':_0x557826()?('evaluation'==_0x306cce['licenseType']&&(_0x299345=_0x2bf09f('EvaluationLimit')),await _0x54aaac()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x98355f(){const _0x4231c6=['evaluation','trial']['includes'](_0x306cce['licenseType'])?_0x3ea2cf/0x3e8:0xe10*_0x466ddc;return _0x306cce['exp']<_0x4231c6;}function _0x478d5(){const _0xc75b0f=_0x306cce['features'];if(!_0xc75b0f)return!0x1;if(_0xc75b0f['includes']('*'))return!0x0;if(_0xc75b0f['includes']('TC'))return!0x0;if(_0xc75b0f['includes']('RTC')){if(_0x29cc03())return!0x0;if(_0x173caa()||_0x34a17c())return!0x0;}return!0x1;}function _0x557826(){const _0x46fcc6=_0x306cce['licensedHosts'];if(!_0x46fcc6||0x0==_0x46fcc6['length'])return!0x0;const {hostname:_0x3eb2a4}=new URL(window['location']['href']);if(_0x46fcc6['includes'](_0x3eb2a4))return!0x0;const _0x16a7d4=_0x3eb2a4['split']('.');return _0x46fcc6['filter'](_0x5cbfd9=>_0x5cbfd9['includes']('*'))['map'](_0x561a3d=>_0x561a3d['split']('.'))['filter'](_0x162747=>_0x162747['length']<=_0x16a7d4['length'])['map'](_0x5abbf2=>Array(_0x16a7d4['length']-_0x5abbf2['length'])['fill']('*'===_0x5abbf2[0x0]?'*':'')['concat'](_0x5abbf2))['some'](_0x21e173=>_0x16a7d4['every']((_0x1f6bf9,_0x17d6ab)=>_0x21e173[_0x17d6ab]===_0x1f6bf9||'*'===_0x21e173[_0x17d6ab]));}function _0x54aaac(){return _0x299345&&_0x5d3476?new window['Promise']((_0x41dbbd,_0x477c88)=>{_0x299345['then'](_0x41dbbd,_0x477c88),_0x5d3476['then'](_0x1601d7=>{'Valid'!=_0x1601d7&&_0x41dbbd(_0x1601d7);},_0x477c88);}):_0x299345||_0x5d3476||'Valid';}}function _0x2dd91c(_0x3765ac,_0x301e68){return new window['Promise'](_0x596731=>{if(_0x4beac9())return _0x596731('Valid');_0x555c44(),_0x4c6c8f['decorate']('_sendUsageRequest');let _0x5a2b4d=!0x1;const _0x50f460=_0x24c80d();function _0x5d9bbf(_0x30df7a){return!!_0x30df7a&&('object'==typeof _0x30df7a||'function'==typeof _0x30df7a)&&'function'==typeof _0x30df7a['then']&&'function'==typeof _0x30df7a['catch'];}function _0x323250(_0xf573e2){_0x143cb5(_0xf573e2)['then'](_0x269a43=>_0x269a43&&'ok'==_0x269a43['status']?_0x1632d5(_0x3c6836(_0x50f460+_0x301e68))!=_0x269a43['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x195dd5=>(_0x10e388(),_0x195dd5),()=>{const _0x24d2dc=_0x6fce21();return null==_0x24d2dc?(_0x10e388(),'Valid'):_0x3ea2cf-_0x24d2dc>0x240c8400?'UsageLimit':'Valid';})['then'](_0x596731)['catch'](()=>{_0x596731('UsageLimit');});const _0x1f0817=0x36ee80;function _0x10e388(){const _0xf86344='llct-'+_0x1632d5(_0x3c6836(_0x3765ac)),_0x3bf707=_0x56ec54(_0x1632d5(window['Math']['ceil'](_0x3ea2cf/_0x1f0817)));window['localStorage']['setItem'](_0xf86344,_0x3bf707);}function _0x6fce21(){const _0x112174='llct-'+_0x1632d5(_0x3c6836(_0x3765ac)),_0x2cd219=window['localStorage']['getItem'](_0x112174);return _0x2cd219?window['parseInt'](_0x56ec54(_0x2cd219),0x10)*_0x1f0817:null;}function _0x143cb5(_0xae5eb){return new window['Promise']((_0x27923c,_0x3f5027)=>{_0xae5eb['then'](_0x27923c,_0x3f5027),window['setTimeout'](_0x3f5027,0x1d4c0);});}}_0x4c6c8f['on']('_sendUsageRequest',(_0xe4edfb,_0x4aa247)=>{if(_0x4aa247[0x0]!=_0x3765ac)return _0x596731('UsageLimit');_0x4aa247[0x1]={..._0x4aa247[0x1],'requestId':_0x50f460};},{'priority':'high'}),_0x4c6c8f['on']('_sendUsageRequest',_0x4c5c75=>{_0x5d9bbf(_0x4c5c75['return'])&&(_0x5a2b4d=!0x0,_0x323250(_0x4c5c75['return']));},{'priority':'low'}),_0x2bf544['then'](()=>{_0x5a2b4d||_0x596731('UsageLimit');});});function _0x4beac9(){return'auto'==_0x4c6c8f['editing']['view']['_overlayModeHint'];}function _0x555c44(){_0x4c6c8f['editing']['view']['_overlayModeHint']='auto';}}function _0x2bf09f(_0x40f41d){const _0x267932=[new window['Promise'](_0x31c81d=>setTimeout(_0x31c81d,0x93ecc)),_0x2bf544['then'](()=>new window['Promise'](_0xb802b8=>{let _0x10008a=0x0;_0x4c6c8f['model']['on']('applyOperation',(_0x3cfd93,_0x1ce820)=>{_0x1ce820[0x0]['isDocumentOperation']&&_0x10008a++,0x5e8==_0x10008a&&(_0xb802b8(),_0x3cfd93['off']());});}))];return window['Promise']['race'](_0x267932)['then'](()=>_0x40f41d);}async function _0x1fd06f(){await _0x2bf544,_0x4c6c8f['model']['change']=_0x4bda3,_0x4c6c8f['model']['enqueueChange']=_0x4bda3,_0x4c6c8f['enableReadOnlyMode']('model');}function _0x29cc03(){return _0x1e8e7f('WebSocketGateway')&&'connected'==_0xf97f5('WebSocketGateway')['state'];}function _0x173caa(){return _0x1e8e7f('RevisionViewerIntegration');}function _0x34a17c(){return _0x1e8e7f('TrackChangesDataGetter');}function _0x4ad180(_0x1e8d5e){const _0x4c3349=_0x4bb9a2();_0x4c6c8f[_0x4c3349]='trackChangesLicenseKey'+_0x1e8d5e,'Valid'!=_0x1e8d5e&&_0x1fd06f();}function _0x4bb9a2(){const _0x26927e=window['String'](window['performance']['now']())['replace']('.','');let _0xc7d5b6='R';for(let _0x226452=0x0;_0x226452<_0x26927e['length'];_0x226452+=0x2){let _0x37d48b=window['parseInt'](_0x26927e['substring'](_0x226452,_0x226452+0x2));_0x37d48b>=0x3e&&(_0x37d48b-=0x3e),_0xc7d5b6+=_0x34fbaa[_0x37d48b];}return _0xc7d5b6;}function _0x254531(){const _0x25ac67=_0x535850['split']('.');if(0x3!=_0x25ac67['length'])return null;return _0x5ad230(_0x25ac67[0x1]);function _0x5ad230(_0x17d6a2){const _0x25ba77=_0x47772b(_0x17d6a2);return _0x25ba77&&_0xd14076()?_0x25ba77:null;function _0xd14076(){const _0x67da38=_0x25ba77['jti'],_0x24cb55=window['parseInt'](_0x67da38['substring'](_0x67da38['length']-0x8),0x10),_0x4c30d8={..._0x25ba77,'jti':_0x67da38['substring'](0x0,_0x67da38['length']-0x8)};return delete _0x4c30d8['vc'],_0x3c6836(_0x4c30d8)==_0x24cb55;}}}async function _0x1b55b8(){let _0x45742b=!0x0;try{const [_0x11aad8,_0x384616,_0x3098dd]=_0x535850['split']('.');return _0xbb4c43(_0x11aad8),await _0x44469f(_0x11aad8,_0x384616,_0x3098dd),_0x45742b;}catch{return!0x1;}function _0xbb4c43(_0x384f03){const _0x593c56=_0x47772b(_0x384f03);_0x593c56&&'ES256'==_0x593c56['alg']||(_0x45742b=!0x1);}async function _0x44469f(_0x23bc37,_0x378c9f,_0x1ff6f6){const _0x5050f3=window['Uint8Array']['from'](_0x1e39d7(_0x1ff6f6),_0x5905fc=>_0x5905fc['charCodeAt'](0x0)),_0x2b052d=new window['TextEncoder']()['encode'](_0x23bc37+'.'+_0x378c9f),_0x1e54fb=window['crypto']['subtle'];if(!_0x1e54fb)return;const _0x39b241=await _0x1e54fb['importKey']('jwk',_0x47d22e,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1e54fb['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x39b241,_0x5050f3,_0x2b052d)||(_0x45742b=!0x1);}}function _0x47772b(_0x3025f9){return _0x3025f9['startsWith']('ey')?JSON['parse'](_0x1e39d7(_0x3025f9)):null;}function _0x1e39d7(_0x2ad696){return window['atob'](_0x2ad696['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3c6836(_0x3096f1){let _0x3d23eb=0x1505;function _0x371f8e(_0x3c428f){for(let _0xf24e67=0x0;_0xf24e67<_0x3c428f['length'];_0xf24e67++){const _0x293112=_0x3c428f['charCodeAt'](_0xf24e67);_0x3d23eb=(_0x3d23eb<<0x5)+_0x3d23eb+_0x293112,_0x3d23eb&=_0x3d23eb;}}function _0x4ed2aa(_0x444ed8){Array['isArray'](_0x444ed8)?_0x444ed8['forEach'](_0x4ed2aa):_0x444ed8&&'object'==typeof _0x444ed8?Object['entries'](_0x444ed8)['sort']()['forEach'](([_0x23f1a6,_0x36ac40])=>{_0x371f8e(_0x23f1a6),_0x4ed2aa(_0x36ac40);}):_0x371f8e(window['String'](_0x444ed8));}return _0x4ed2aa(_0x3096f1),_0x3d23eb>>>0x0;}function _0x1632d5(_0x31fa9c){return _0x31fa9c['toString'](0x10)['padStart'](0x8,'0');}function _0x56ec54(_0x524ada){return _0x524ada['split']('')['reverse']()['join']('');}function _0x1e8e7f(_0x2e7971){return _0x4c6c8f['plugins']['has'](_0x2e7971);}function _0xf97f5(_0x2b2959){return _0x4c6c8f['plugins']['get'](_0x2b2959);}function _0x4bda3(){}_0x4ad180(await _0x5eb4ce());}(this);}set['adapter'](_0x2638ed){if(this['_adapter'])throw new _0xb0a0f9('track-changes-adapter-already-set',this);this['_adapter']=_0x2638ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47c4ff=!0x1,toJSON:_0x450478=!0x1}={}){const _0x5dac76=[];for(const _0x2a9a82 of this['_suggestions']['values']())_0x47c4ff&&!_0x2a9a82['isInContent']||_0x5dac76['push'](_0x2a9a82);return _0x450478?_0x5dac76['map'](_0x5bea9b=>_0x5bea9b['toJSON']()):_0x5dac76;}['getSuggestion'](_0x9040bf){const _0xc43722=this['_suggestions']['get'](_0x9040bf);if(!_0xc43722)throw new _0xb0a0f9('track-changes-suggestion-not-found',this);return _0xc43722;}['hasSuggestion'](_0x12d531){return this['_suggestions']['has'](_0x12d531);}['addSuggestionData'](_0x380526){const {authorId:_0x35b028,id:_0x445ebf,originalSuggestionId:_0x89f3e1,attributes:_0x442e5a}=_0x380526,[_0x38a7f0,_0x3bc80b]=_0x380526['type']['split'](':'),_0x3c9965=this['_suggestions']['get'](_0x445ebf)||this['_createSuggestion'](_0x38a7f0,_0x3bc80b,_0x445ebf,_0x35b028,_0x442e5a,_0x89f3e1);if(this['_addThreadToSuggestion'](_0x3c9965),this['_checkSuggestionCorrectness'](_0x3c9965,_0x38a7f0,_0x3bc80b||null,_0x35b028),_0x3c9965['createdAt']=_0x380526['createdAt'],_0x3c9965['_isDataLoaded']=!0x0,_0x442e5a&&_0x442e5a['@external']){const _0x4ba492=_0x442e5a['@external'],_0x2fd7a2=this['_getExternalAuthor'](_0x4ba492['authorName']);_0x3c9965['authoredAt']=_0x4ba492['createdAt'],_0x3c9965['author']=_0x2fd7a2;}else _0x3c9965['authoredAt']=_0x380526['createdAt'];switch(_0x380526['data']&&(_0x3c9965['data']=_0x380526['data']),_0x380526['attributes']&&(_0x3c9965['attributes']=_0x380526['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c9965['_saved']=!0x0),this['_suggestionState']['get'](_0x3c9965)){case'notReady':this['_suggestionState']['set'](_0x3c9965,'dataReady');break;case'markerReady':_0x3c9965['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c9965])),this['_refreshSuggestionsChain'](new Set([_0x3c9965])),this['_suggestionState']['set'](_0x3c9965,'ready'),this['fire']('suggestionLoaded',_0x3c9965)):this['_suggestionState']['set'](_0x3c9965,'removed');}return _0x3c9965;}['acceptSuggestion'](_0x44e07f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f9c51 of _0x44e07f['getAllAdjacentSuggestions']())_0x2f9c51['accept']();});});}['discardSuggestion'](_0x47f588){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb801f2 of _0x47f588['getAllAdjacentSuggestions']())_0xb801f2['discard']();});});}['enableCommand'](_0x40aac3,_0x5e6737){const _0x4f5d31=this['editor']['commands']['get'](_0x40aac3);if(!_0x4f5d31)throw new _0xb0a0f9('track-changes-command-not-found',this,{'commandName':_0x40aac3});if(this['_enabledCommands']['has'](_0x4f5d31))throw new _0xb0a0f9('track-changes-enable-command-twice',this,{'commandName':_0x40aac3});this['_enabledCommands']['add'](_0x4f5d31),_0x5e6737&&_0x4f5d31['on']('execute',(_0x19b722,_0x57e984)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x57e984['length']>0x0&&_0x57e984[_0x57e984['length']-0x1]&&_0x57e984[_0x57e984['length']-0x1]['forceDefaultExecution']?_0x57e984['pop']():(_0x19b722['return']=_0x5e6737((..._0x13a841)=>_0x4f5d31['execute'](..._0x13a841,{'forceDefaultExecution':!0x0}),..._0x57e984),_0x19b722['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d7330){let _0x331e2d,_0x472fe5;const _0x42c8c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x331e2d=_0x5d7330();}catch(_0x64776b){_0x472fe5=_0x64776b;}return _0x42c8c2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x472fe5&&_0xb0a0f9['rethrowUnexpectedError'](_0x472fe5,this),_0x331e2d;}['markInsertion'](_0x31ff54,_0x1c1ea1=null,_0xff9548={}){if(_0x31ff54['isCollapsed'])return null;const _0x3f60b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xff9548['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4eb98d,meta:_0xee1cf8}of this['_findSuggestions'](_0x31ff54,'insertion'))if(_0xee1cf8['isOwn']){if(!_0xee1cf8['isNextTo']){if(_0xee1cf8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x4eb98d,_0xff9548))continue;return _0x4eb98d;}if(En(_0x4eb98d,_0xff9548))return _0x4eb98d;this['_breakSuggestionMarker'](_0x4eb98d,_0x31ff54['start'],_0x31ff54['end']);break;}if(_0x1c1ea1==_0x4eb98d['subType']&&En(_0x4eb98d,_0xff9548)){const _0x53553c=_0x4eb98d['getFirstRange']();return _0x53553c['start']['isEqual'](_0x31ff54['end'])?this['_setSuggestionRange'](_0x4eb98d,this['_model']['createRange'](_0x31ff54['start'],_0x53553c['end'])):this['_setSuggestionRange'](_0x4eb98d,this['_model']['createRange'](_0x53553c['start'],_0x31ff54['end'])),_0x4eb98d;}}const _0x3d0a18=_0x24c80d(),_0x549d9c=_0x3f60b8['id'],_0x10568a=_0x1c1ea1?'insertion:'+_0x1c1ea1:'insertion',_0x2e3c5e=this['_setSuggestionData']({'id':_0x3d0a18,'type':_0x10568a,'createdAt':new Date(),'authorId':_0x549d9c,'attributes':_0xff9548});return this['_addSuggestionMarker'](_0x10568a,_0x3d0a18,_0x549d9c,_0x31ff54),_0x2e3c5e;}['markMultiRangeInsertion'](_0x5c313d,_0x22684d='multi',_0x5ef0a9={}){const _0x445e84=this['editor']['plugins']['get']('Users')['me'],_0x1e4d8d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x22684d,'join');this['_trackingSessionId']&&(_0x5ef0a9['trackingSessionId']=this['_trackingSessionId']);for(const _0x2595fb of this['getSuggestions']())if(_0x2595fb['author']['id']==_0x445e84['id']&&'insertion'==_0x2595fb['type']&&_0x2595fb['subType']==_0x22684d&&En(_0x2595fb,_0x5ef0a9)&&(_0x1e4d8d(_0x2595fb['getRanges'](),_0x5c313d)||_0x1e4d8d(_0x5c313d,_0x2595fb['getRanges']()))){for(const _0x2f464a of _0x5c313d)_0x2595fb['addRange'](_0x2f464a);return _0x2595fb;}for(const {suggestion:_0x576f32,meta:_0x2bd192}of this['_findSuggestions'](_0x5c313d,'insertion')){if(!_0x2bd192['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bd192['containsRangeInObject'])continue;if(!En(_0x576f32,_0x5ef0a9))continue;let _0x4ea8a2=!0x0;for(const _0x3dad0c of _0x576f32['getRanges']())for(const _0x56bd15 of _0x5c313d)if(!_0x3dad0c['containsRange'](_0x56bd15)){_0x4ea8a2=!0x1;break;}if(_0x4ea8a2)return _0x576f32;}const _0x334677=_0x24c80d(),_0x5e9888=_0x445e84['id'],_0x5618d7='insertion:'+_0x22684d,_0x3dcbc9=this['_setSuggestionData']({'id':_0x334677,'type':_0x5618d7,'createdAt':new Date(),'authorId':_0x5e9888,'attributes':_0x5ef0a9});for(const _0x13a189 of _0x5c313d)this['_addSuggestionMarker'](_0x5618d7,_0x334677,_0x5e9888,_0x13a189,yt['getMultiRangeId']());return _0x3dcbc9;}['markInlineFormat'](_0x17dcfc,_0x284443,_0x2dec76=null,_0x34a5ed={}){if(_0x2dec76=_0x2dec76||cn(_0x284443),_0x17dcfc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x34a5ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdccf44=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dec76,'accept');return this['forceDefaultExecution'](()=>_0xdccf44([_0x17dcfc],_0x284443,_0x34a5ed)),null;}const _0x2f25b9=this['editor']['plugins']['get']('Users')['me'],_0x4a42c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d6a99,meta:_0x41848a}of this['_findSuggestions'](_0x17dcfc,'insertion'))_0x41848a['isOwn']&&!_0x41848a['isInsideObject']&&_0x4a42c7['push'](..._0x2d6a99['getRanges']());}const _0x17dec3=function(_0x2f0fe9,_0x2ba671){const _0x341fd7=[];for(const _0x3332a7 of _0x2ba671){const _0x491289=_0x2f0fe9['getIntersection'](_0x3332a7);_0x491289&&_0x341fd7['push'](_0x491289);}return _0x341fd7;}(_0x17dcfc,_0x4a42c7),_0x3488cd=function(_0x2a3549,_0x17a571){const _0xecdf14=[_0x2a3549];for(const _0x4ed18c of _0x17a571){let _0x603fb2=0x0;for(;_0x603fb2<_0xecdf14['length'];){const _0x288575=_0xecdf14[_0x603fb2]['getDifference'](_0x4ed18c);_0xecdf14['splice'](_0x603fb2,0x1,..._0x288575),_0x603fb2+=_0x288575['length'];}}return _0xecdf14;}(_0x17dcfc,_0x4a42c7);_0x17dec3['length']&&this['_model']['change'](()=>{for(const _0x4223e8 of _0x17dec3){const _0xbec45=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dec76,'accept');this['forceDefaultExecution'](()=>_0xbec45([_0x4223e8],_0x284443,_0x34a5ed));}});for(const _0x4f5951 of _0x3488cd){let _0x15e658=null,_0x3fc5ab=_0x4f5951['start'],_0x5b14c4=_0x4f5951['end'];for(const {suggestion:_0x3824f8,meta:_0x1a1134}of this['_findSuggestions'](_0x4f5951,'formatInline')){if(!_0x1a1134['isOwn'])continue;if(_0x3824f8['subType']!=_0x2dec76)continue;if(!En(_0x3824f8,_0x34a5ed))continue;const _0x25f22a=_0x3824f8['getFirstRange']();if(_0x25f22a['containsRange'](_0x4f5951,!0x0))return null;_0x3fc5ab=_0x3fc5ab['isBefore'](_0x25f22a['start'])?_0x3fc5ab:_0x25f22a['start'],_0x5b14c4=_0x5b14c4['isAfter'](_0x25f22a['end'])?_0x5b14c4:_0x25f22a['end'],_0x15e658?_0x25f22a['start']['isBefore'](_0x15e658['getFirstRange']()['start'])?(_0x15e658['removeMarkers'](),_0x15e658=_0x3824f8):_0x3824f8['removeMarkers']():_0x15e658=_0x3824f8;}const _0x36ee2a=this['_model']['createRange'](_0x3fc5ab,_0x5b14c4);if(_0x15e658)this['_setSuggestionRange'](_0x15e658,_0x36ee2a);else{const _0x48c5c2=_0x24c80d(),_0xc98f3f=_0x2f25b9['id'];this['_setSuggestionData']({'id':_0x48c5c2,'type':'formatInline:'+_0x2dec76,'data':_0x284443,'createdAt':new Date(),'authorId':_0xc98f3f,'attributes':_0x34a5ed}),this['_addSuggestionMarker']('formatInline:'+_0x2dec76,_0x48c5c2,_0xc98f3f,_0x36ee2a);}}return null;}['markBlockFormat'](_0x13838a,_0x5b617b,_0x3b5195=[],_0x558a00=null,_0x479833={}){_0x5b617b['formatGroupId']||(_0x5b617b['formatGroupId']=_0x5b617b['commandName']),_0x5b617b['multipleBlocks']=_0x13838a['is']('range'),_0x558a00=_0x558a00||cn(_0x5b617b);const _0x5886df=_0x3b5195['map'](_0x45c049=>gn(_0x45c049,this['_model'])),_0x402126=_0x13838a['is']('range')?_0x13838a:gn(_0x13838a,this['_model']);if(this['_trackingSessionId']&&(_0x479833['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b2b6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x558a00,'accept');return this['forceDefaultExecution'](()=>_0x1b2b6d([_0x402126],_0x5b617b,_0x479833)),null;}_0x5886df['push'](_0x402126);let _0x57cea6=!0x0;for(const _0x11de00 of _0x5886df)if(!this['_rangeIsInLocalUserInsertion'](_0x11de00)){_0x57cea6=!0x1;break;}if(_0x57cea6&&'always'!==this['_trackFormatChanges']){const _0x1f7e4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x558a00,'accept');return this['forceDefaultExecution'](()=>_0x1f7e4a([_0x402126],_0x5b617b,_0x479833)),null;}let _0x595f01=null,_0x1a14b7=_0x402126['start'],_0x58779b=_0x402126['end'];for(const {suggestion:_0x536f6a,meta:_0x2b2ec0}of this['_findSuggestions'](_0x402126,'formatBlock')){if(!_0x2b2ec0['isOwn'])continue;if(_0x2b2ec0['isNextTo']||_0x2b2ec0['containsRangeInObject']||_0x2b2ec0['isInsideObject'])continue;if(_0x536f6a['data']['formatGroupId']!=_0x5b617b['formatGroupId'])continue;if(!En(_0x536f6a,_0x479833))continue;const _0x21aac2=_0x536f6a['getFirstRange']();if(_0x536f6a['subType']==_0x558a00){if(_0x21aac2['containsRange'](_0x402126,!0x0))return null;_0x1a14b7=_0x1a14b7['isBefore'](_0x21aac2['start'])?_0x1a14b7:_0x21aac2['start'],_0x58779b=_0x58779b['isAfter'](_0x21aac2['end'])?_0x58779b:_0x21aac2['end'],_0x595f01?_0x21aac2['start']['isBefore'](_0x595f01['getFirstRange']()['start'])?(_0x595f01['removeMarkers'](),_0x595f01=_0x536f6a):_0x536f6a['removeMarkers']():_0x595f01=_0x536f6a;}else{const _0x13224b=_0x402126['getIntersection'](_0x21aac2);this['_cutOutSuggestionMarker'](_0x536f6a,_0x13224b);}}const _0x41bfbf=this['editor']['plugins']['get']('Users')['me'],_0xdcb3f2=_0x24c80d(),_0x1ee308=_0x41bfbf['id'];if(_0x595f01)return this['_setSuggestionRange'](_0x595f01,this['_model']['createRange'](_0x1a14b7,_0x58779b)),_0x595f01;{const _0x4f24c9=this['_setSuggestionData']({'id':_0xdcb3f2,'type':'formatBlock:'+_0x558a00,'data':_0x5b617b,'createdAt':new Date(),'authorId':_0x1ee308,'attributes':_0x479833});return this['_addSuggestionMarker']('formatBlock:'+_0x558a00,_0xdcb3f2,_0x1ee308,this['_model']['createRange'](_0x1a14b7,_0x58779b)),_0x4f24c9;}}['markMultiRangeBlockFormat'](_0x5f3f6c,_0xcfb3cc,_0x575ee3=[],_0x48c2d5=null,_0x2925ec={}){_0xcfb3cc['formatGroupId']||(_0xcfb3cc['formatGroupId']=_0xcfb3cc['commandName']);const _0xd6e7c9=_0x5f3f6c[0x0];_0xcfb3cc['multipleBlocks']=_0xd6e7c9['is']('range'),_0x48c2d5=_0x48c2d5||cn(_0xcfb3cc);const _0x20acc1=_0x575ee3['map'](_0x2e5a12=>gn(_0x2e5a12,this['_model'])),_0x29cf66=_0xd6e7c9['is']('range')?_0x5f3f6c:_0x5f3f6c['map'](_0x454733=>gn(_0x454733,this['_model']));if(this['_trackingSessionId']&&(_0x2925ec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ab379=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'accept');return this['forceDefaultExecution'](()=>_0x5ab379(_0x29cf66,_0xcfb3cc,_0x2925ec)),null;}_0x20acc1['push'](..._0x29cf66);let _0x5f1603=!0x0;for(const _0xe5f930 of _0x20acc1)if(!this['_rangeIsInLocalUserInsertion'](_0xe5f930)){_0x5f1603=!0x1;break;}if(_0x5f1603&&'always'!==this['_trackFormatChanges']){const _0x4c48fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'accept');return this['forceDefaultExecution'](()=>_0x4c48fb(_0x29cf66,_0xcfb3cc,_0x2925ec)),null;}const _0x57b3d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e320a of this['getSuggestions']()){const _0x277f15=_0x5e320a['data'];if(_0x5e320a['author']['id']!=_0x57b3d5['id'])continue;if('formatBlock'!=_0x5e320a['type']||_0x277f15['formatGroupId']!=_0xcfb3cc['formatGroupId'])continue;if(!En(_0x5e320a,_0x2925ec))continue;const _0xca8bd6=_0x5e320a['subType']==_0x48c2d5;for(let _0x42045f=0x0;_0x42045f<_0x29cf66['length'];_0x42045f++){const _0x3a971c=_0x29cf66[_0x42045f];for(const _0x4298c1 of _0x5e320a['getMarkers']()){const _0x2736bb=_0x4298c1['getRange']();if(_0x3a971c['isEqual'](_0x2736bb)){_0xca8bd6?(_0x29cf66['splice'](_0x42045f,0x1),_0x42045f--):_0x5e320a['removeMarker'](_0x4298c1['name']);break;}}}}if(0x0==_0x29cf66['length'])return null;const _0x5d70c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48c2d5,'join');for(const _0xc21b62 of this['getSuggestions']()){const _0x369f5d=_0xc21b62['data'];if(_0xc21b62['author']['id']==_0x57b3d5['id']&&('formatBlock'==_0xc21b62['type']&&_0x369f5d['formatGroupId']==_0xcfb3cc['formatGroupId']&&_0xc21b62['subType']==_0x48c2d5&&En(_0xc21b62,_0x2925ec)&&(_0x5d70c9(_0xc21b62['getRanges'](),_0x29cf66)||_0x5d70c9(_0x29cf66,_0xc21b62['getRanges']())))){for(const _0x58262 of _0x29cf66)_0xc21b62['addRange'](_0x58262);return _0xc21b62;}}const _0x254989=_0x24c80d(),_0x9a1bdd=_0x57b3d5['id'],_0xfafed7='formatBlock:'+_0x48c2d5,_0x3641dd=this['_setSuggestionData']({'id':_0x254989,'type':_0xfafed7,'data':_0xcfb3cc,'createdAt':new Date(),'authorId':_0x9a1bdd,'attributes':_0x2925ec});for(const _0x967b2f of _0x29cf66)this['_addSuggestionMarker'](_0xfafed7,_0x254989,_0x9a1bdd,_0x967b2f,yt['getMultiRangeId']());return _0x3641dd;}['markDeletion'](_0x5d5738,_0x400fc4=null,_0x5b542c={}){if(_0x5d5738['isCollapsed'])return null;const _0x1b874c=this['editor']['plugins']['get']('Users')['me'],_0xce4671=new rt(_0x5d5738['start'],_0x5d5738['end']);this['_trackingSessionId']&&(_0x5b542c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x522650,meta:_0x46df82}of this['_findSuggestions'](_0xce4671,'insertion'))if(_0x46df82['isOwn']&&!_0x46df82['isNextTo']){if(_0x522650['isMultiRange']){const _0x2666db=_0x522650['getRanges']()['filter'](_0xcb7728=>'$graveyard'!=_0xcb7728['root']['rootName']);if(_0x2666db['every'](_0x214865=>_0xce4671['containsRange'](_0x214865,!0x0))&&_0x522650['discard'](),_0x2666db['some'](_0x469f36=>_0x469f36['containsRange'](_0xce4671,!0x0))){const _0x423d2a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x400fc4,'accept');return this['forceDefaultExecution'](()=>_0x423d2a([_0xce4671],null,_0x5b542c)),null;}}else{const _0x207f75=_0xce4671['getIntersection'](_0x522650['getFirstRange']());null!==_0x207f75&&_0x522650['_onDiscard']([_0x207f75],null,_0x5b542c);}}if(_0xce4671['detach'](),_0xce4671['isCollapsed']||'$graveyard'==_0xce4671['root']['rootName'])return null;let _0x15f267=null,_0x94fa35=_0xce4671['start'],_0x5ed2d1=_0xce4671['end'];const _0x229411=this['_findSuggestions'](_0xce4671,'deletion');for(const {suggestion:_0x894a61,meta:_0x3e652c}of _0x229411){const _0x5f4bb0=this['_model']['createRange'](_0x94fa35,_0x5ed2d1);if(_0x3e652c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e652c['containsRangeInObject']&&!_0x3e652c['isInsideObject'])){if(_0x894a61['isMultiRange']){if(!En(_0x894a61,_0x5b542c))continue;let _0x20dc0f=!0x0;for(const _0x54126f of _0x894a61['getRanges']()){if(_0x54126f['containsRange'](_0x5f4bb0,!0x0))return _0x894a61;_0x5f4bb0['containsRange'](_0x54126f)||(_0x20dc0f=!0x1);}_0x20dc0f&&_0x894a61['discard']();}else{const _0x4d9793=_0x894a61['getFirstRange']();if(_0x4d9793['containsRange'](_0x5f4bb0,!0x0))return _0x894a61;if(!En(_0x894a61,_0x5b542c)){_0x5f4bb0['containsRange'](_0x4d9793)?_0x894a61['removeMarkers']():_0x4d9793['containsPosition'](_0x94fa35)?_0x94fa35=_0x4d9793['end']:_0x4d9793['containsPosition'](_0x5ed2d1)&&(_0x5ed2d1=_0x4d9793['start']);continue;}_0x94fa35=_0x94fa35['isBefore'](_0x4d9793['start'])?_0x94fa35:_0x4d9793['start'],_0x5ed2d1=_0x5ed2d1['isAfter'](_0x4d9793['end'])?_0x5ed2d1:_0x4d9793['end'],_0x5b542c=Object['assign']({},_0x894a61['attributes']),_0x15f267?_0x4d9793['start']['isBefore'](_0x15f267['getFirstRange']()['start'])?(_0x15f267['removeMarkers'](),_0x15f267=_0x894a61):_0x894a61['removeMarkers']():_0x15f267=_0x894a61;}}}if(_0x15f267)return this['_setSuggestionRange'](_0x15f267,this['_model']['createRange'](_0x94fa35,_0x5ed2d1)),_0x15f267;{const _0x3a4d0c=_0x24c80d(),_0x3b5822=this['_model']['createRange'](_0x94fa35,_0x5ed2d1),_0x2ec545=_0x1b874c['id'],_0x5f407a=_0x400fc4?'deletion:'+_0x400fc4:'deletion',_0x2302e2=this['_setSuggestionData']({'id':_0x3a4d0c,'type':_0x5f407a,'createdAt':new Date(),'authorId':_0x2ec545,'attributes':_0x5b542c});return this['_addSuggestionMarker'](_0x5f407a,_0x3a4d0c,_0x2ec545,_0x3b5822),_0x2302e2;}}['markMultiRangeDeletion'](_0x4ec07b,_0x45771d='multi',_0x4aadc2={}){const _0x56d1ea=this['editor']['plugins']['get']('Users')['me'],_0x18d6fd=_0x4ec07b['map'](_0x347b34=>new rt(_0x347b34['start'],_0x347b34['end'])),_0x567078=new Set();this['_trackingSessionId']&&(_0x4aadc2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23b0e7,meta:_0x258a63}of this['_findSuggestions'](_0x18d6fd,'insertion'))_0x258a63['isOwn']&&!_0x258a63['isNextTo']&&_0x567078['add'](_0x23b0e7);for(const _0x21a1f8 of _0x567078)if(_0x21a1f8['isMultiRange']){const _0x4417a7=_0x21a1f8['getRanges']();if(_0x21a1f8['attributes']&&_0x21a1f8['attributes']['skipNestingCheck']||_0x4417a7['every'](_0x20867d=>_0x18d6fd['some'](_0x379f5e=>_0x379f5e['containsRange'](_0x20867d,!0x0)))&&_0x21a1f8['discard'](),_0x18d6fd['every'](_0x1ad47f=>_0x4417a7['some'](_0x36e919=>_0x36e919['containsRange'](_0x1ad47f,!0x0)))){const _0x5ca0e7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'accept');return this['forceDefaultExecution'](()=>_0x5ca0e7(_0x4ec07b,null,_0x4aadc2)),null;}}else{const _0x4fd7b9=_0x21a1f8['getFirstRange']();if(_0x18d6fd['some'](_0x3967b9=>_0x3967b9['containsRange'](_0x4fd7b9,!0x0))&&_0x21a1f8['discard'](),_0x18d6fd['every'](_0x39fc10=>_0x4fd7b9['containsRange'](_0x39fc10,!0x0))){const _0x4b9574=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'accept');return this['forceDefaultExecution'](()=>_0x4b9574(_0x18d6fd,null,_0x4aadc2)),null;}}const _0x2249ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45771d,'join');let _0x223255=null;for(const _0x320cd9 of this['getSuggestions']())if(_0x320cd9['author']['id']==_0x56d1ea['id']&&_0x320cd9['isInContent']&&'deletion'==_0x320cd9['type']&&_0x320cd9['subType']==_0x45771d&&En(_0x320cd9,_0x4aadc2)&&(_0x2249ee(_0x320cd9['getRanges'](),_0x18d6fd)||_0x2249ee(_0x18d6fd,_0x320cd9['getRanges']()))){if(_0x223255){if(_0x320cd9['commentThread']&&_0x320cd9['commentThread']['length'])continue;for(const _0x769d0e of _0x320cd9['getRanges']())_0x223255['isIntersectingWithRange'](_0x769d0e)||_0x223255['addRange'](_0x769d0e);_0x320cd9['removeMarkers']();}else{_0x223255=_0x320cd9;for(const _0x2c4b52 of _0x18d6fd)_0x320cd9['isIntersectingWithRange'](_0x2c4b52)||_0x320cd9['addRange'](_0x2c4b52);}}if(_0x223255)return _0x223255;_0x567078['clear']();for(const {suggestion:_0x527dc5,meta:_0x149b8c}of this['_findSuggestions'](_0x18d6fd,'deletion'))_0x149b8c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x149b8c['containsRangeInObject']&&!_0x149b8c['isInsideObject'])&&En(_0x527dc5,_0x4aadc2)&&_0x567078['add'](_0x527dc5);for(const _0xa36609 of _0x567078){const _0x453c00=_0xa36609['getRanges']();if((!_0x4aadc2||!_0x4aadc2['skipNestingCheck'])&&_0x18d6fd['every'](_0x16fc7d=>_0x453c00['some'](_0x22f87c=>_0x22f87c['containsRange'](_0x16fc7d,!0x0))))return _0xa36609;_0xa36609['attributes']&&_0xa36609['attributes']['skipNestingCheck']||_0x453c00['every'](_0x177f5d=>_0x18d6fd['some'](_0x151062=>_0x151062['containsRange'](_0x177f5d,!0x0)))&&_0xa36609['discard']();}const _0x2d6520=_0x24c80d(),_0x1fed35=_0x56d1ea['id'],_0x288719='deletion:'+_0x45771d,_0x194f5e=this['_setSuggestionData']({'id':_0x2d6520,'type':_0x288719,'createdAt':new Date(),'authorId':_0x1fed35,'attributes':_0x4aadc2});for(const _0xab58c0 of _0x18d6fd)_0xab58c0['detach'](),_0xab58c0['isCollapsed']||'$graveyard'==_0xab58c0['root']['rootName']||this['_addSuggestionMarker'](_0x288719,_0x2d6520,_0x1fed35,_0xab58c0,yt['getMultiRangeId']());return _0x194f5e;}['markAttributeChange'](_0x1bf555,_0xb7e35f,_0x3bb2f9,_0x2198d2,_0x471a0a){if(_0x1bf555['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f7332=this['editor']['plugins']['get']('Users')['me']['id'],_0x15aa32=Array['from'](this['_suggestions']['values']())['filter'](_0x556f0=>'attribute'==_0x556f0['type']&&_0x556f0['data']['key']==_0xb7e35f&&_0x556f0['isIntersectingWithRange'](_0x1bf555));if(this['_trackingSessionId']&&(_0x471a0a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x197bf9=this['_findSuggestions'](_0x1bf555,'insertion')['filter'](({meta:_0x3bf7f1})=>_0x3bf7f1['isOwn']&&!_0x3bf7f1['isInsideObject']&&!_0x3bf7f1['isNextTo'])['map'](({suggestion:_0x33cf35})=>_0x33cf35);_0x15aa32['unshift'](..._0x197bf9);}const _0x2fa02e=new Map([[_0x1bf555,_0x3bb2f9]]);for(const _0x1f5268 of _0x15aa32){const _0x54bf8e='attribute'==_0x1f5268['type']?_0x1f5268['data']['oldValue']:void 0x0,_0x514a4f=_0x1f5268['getFirstRange'](),_0x5ab088=Array['from'](_0x2fa02e['keys']())['find'](_0x1faa41=>_0x1faa41['isIntersecting'](_0x514a4f));if(!_0x5ab088)continue;const _0x275b44=_0x5ab088['getDifference'](_0x514a4f);this['_suggestionsConversion']['isBlockAttribute'](_0xb7e35f)&&'insertion'==_0x1f5268['type']&&0x0!=_0x275b44['length']||(_0x2fa02e['delete'](_0x5ab088),_0x275b44['forEach'](_0x5c53f8=>{_0x2fa02e['set'](_0x5c53f8,_0x3bb2f9);}),'insertion'!=_0x1f5268['type']&&_0x54bf8e!=_0x2198d2&&_0x2fa02e['set'](_0x5ab088['getIntersection'](_0x514a4f),_0x54bf8e));}const _0x22bb63=[];for(const [_0x3920d3,_0x530cc0]of _0x2fa02e){const _0x33d4fc=_0x24c80d(),_0x4575cb={'key':_0xb7e35f,'oldValue':_0x530cc0,'newValue':_0x2198d2};_0xb7e35f['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':_0xb7e35f});const _0x3524d8=('attribute:'+_0xb7e35f+'|'+cn({'newValue':_0x2198d2}))['substring'](0x0,0x3c),_0x26e213=this['_setSuggestionData']({'id':_0x33d4fc,'type':_0x3524d8,'data':_0x4575cb,'createdAt':new Date(),'authorId':_0x2f7332,'attributes':_0x471a0a});_0x22bb63['push'](_0x26e213),this['_addSuggestionMarker'](_0x3524d8,_0x33d4fc,_0x2f7332,_0x3920d3);}return _0x22bb63;}['enableDefaultAttributesIntegration'](_0xf88ec6){this['enableCommand'](_0xf88ec6,(_0x205f98,..._0x2f10aa)=>{this['recordAttributeChanges'](()=>{_0x205f98(..._0x2f10aa);});});}['startTrackingSession'](_0x455f63){return this['_trackingSessionId']=void 0x0!==_0x455f63?_0x455f63:_0x24c80d(),this['_trackingSessionId'];}['_getAttributeKey'](_0xa02f08){return'attribute'==_0xa02f08['type']?_n(_0xa02f08['subType']):null;}['_applyOperationsAsSuggestions'](_0x5292b2){if(0x0==_0x5292b2['length'])return;const _0x5341e3=this['editor'],_0x4f4e7d=_0x5341e3['plugins']['get'](_0x30e621),_0xe8d69=[],_0x5f4a6a=_0x2488f3=>{const _0x1d8109=_0x2488f3['_aiSource'];return _0x1d8109?{'@ai':{'type':_0x1d8109}}:{};},_0x584a2f=(_0x2cda5f,_0x33de7c,_0x2bfe01)=>{for(let _0xb510f3=_0x33de7c;_0xb510f3<_0x2cda5f['operations']['length'];_0xb510f3++){const _0x4960c8=_0x2cda5f['operations'][_0xb510f3];'marker'===_0x4960c8['type']&&(_0x4960c8['_aiSource']=_0x2bfe01);}};_0x5341e3['model']['change'](_0x4a6b47=>{for(let _0x37bdbd=0x0;_0x37bdbd<_0x5292b2['length'];_0x37bdbd++){const _0x1ae95d=_0x5292b2[_0x37bdbd],_0x37393c=_0x1ae95d['_aiSource'],_0x34170a=_0x4a6b47['batch']['operations']['length'];if(_0x1ae95d['baseVersion']=_0x5341e3['model']['document']['version'],_0x1ae95d['isDocumentOperation']=!0x0,_0x4f4e7d['isMarkedRemoveOperation'](_0x1ae95d)){const _0x968f8c=_0x3dc5bc(_0x1ae95d['newRange'],_0x5341e3['model']);_0xe8d69['unshift']({'range':rt['fromRange'](_0x968f8c),'opAttributes':_0x5f4a6a(_0x1ae95d),'aiSource':_0x37393c});}else{switch(_0x1ae95d['type']){case'rename':{const _0x16caae=_0x1ae95d['oldName'],_0x5289ab=_0x1ae95d['newName'];if(_0x16caae==_0x5289ab)break;_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0xc1e2e3='$elementName',_0x29aedd=_0x1ae95d['position'],_0x4ecdc4=_0x5341e3['model']['createRange'](_0x29aedd,_0x5341e3['model']['createPositionAt'](_0x29aedd['nodeAfter'],'end'));this['markAttributeChange'](_0x4ecdc4,_0xc1e2e3,_0x16caae,_0x5289ab,{..._0x5f4a6a(_0x1ae95d),'groupId':_0x24c80d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x57ff51=_0x1ae95d['oldValue'],_0x450e6b=_0x1ae95d['newValue'];if(_0x57ff51==_0x450e6b)break;_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0x5a2ef0=_0x1ae95d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5a2ef0))break;const _0x1b6484=_0x3dc5bc(_0x1ae95d['range'],_0x5341e3['model']);this['markAttributeChange'](_0x1b6484,_0x5a2ef0,_0x57ff51,_0x450e6b,{..._0x5f4a6a(_0x1ae95d),'groupId':_0x24c80d()});break;}case'insert':{if(_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d),_0x5292b2[_0x37bdbd+0x1]&&'move'==_0x5292b2[_0x37bdbd+0x1]['type'])break;const _0x14479d=_0x1ae95d['position'],_0xb01ce3=_0x1ae95d['howMany'],_0x4a519f=_0x3dc5bc(_0x5341e3['model']['createRange'](_0x14479d,_0x14479d['getShiftedBy'](_0xb01ce3)),_0x5341e3['model']);this['markInsertion'](_0x4a519f,null,{..._0x5f4a6a(_0x1ae95d)});break;}case'split':{_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);const _0x6f4e52=_0x1ae95d['splitPosition'],_0x50ea9a=_0x1ae95d['moveTargetPosition'],_0x532695=_0x5341e3['model']['createRange'](_0x6f4e52,_0x50ea9a);this['markInsertion'](_0x532695,null,{..._0x5f4a6a(_0x1ae95d)});break;}case'move':case'remove':_0x4a6b47['batch']['addOperation'](_0x1ae95d),_0x5341e3['model']['applyOperation'](_0x1ae95d);}_0x37393c&&_0x584a2f(_0x4a6b47['batch'],_0x34170a,_0x37393c);}}for(const {range:_0x551821,opAttributes:_0x4e3c0b,aiSource:_0x51deb7}of _0xe8d69){const _0x44f39a=_0x4a6b47['batch']['operations']['length'];_0x551821['detach'](),this['markDeletion'](_0x551821,null,{..._0x4e3c0b}),_0x51deb7&&_0x584a2f(_0x4a6b47['batch'],_0x44f39a,_0x51deb7);}});}['_setSuggestionRange'](_0x4aaf3e,_0x97787d){const _0x347659=_0x4aaf3e['getFirstMarker']();this['_model']['change'](_0x202bf0=>{_0x202bf0['updateMarker'](_0x347659,{'range':_0x97787d});});}['_addThreadToSuggestion'](_0x366b96){const _0x286404=_0x366b96['id'],_0x2e7cca=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x286404)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e7cca,'threadId':_0x286404,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x38b565=this['_commentsRepository']['getCommentThread'](_0x286404);_0x38b565['unbind']('isRemovable'),_0x38b565['isRemovable']=!0x1,_0x366b96['commentThread']=_0x38b565;}['_checkSuggestionCorrectness'](_0x334bb8,_0x220b29,_0x5a3891,_0x38c660){if(_0x334bb8['type']!=_0x220b29||_0x334bb8['subType']!=_0x5a3891||_0x334bb8['creator']['id']!=_0x38c660)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb0a0f9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x346bf1,_0x524048){const _0x4ce5cb=_0x346bf1['getFirstRange']();if(_0x524048['isEqual'](_0x4ce5cb))_0x346bf1['removeMarkers']();else{if(_0x4ce5cb['containsRange'](_0x524048)){const _0xd74b17=this['_model']['createPositionAt'](_0x524048['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x4ce5cb['start'],_0xd74b17));const _0xaaf8a7=_0x24c80d(),_0x53e7a6=_0x346bf1['creator']['id'],_0x1b0a2e=_0x346bf1['type']+':'+_0x346bf1['subType'];this['_setSuggestionData']({'id':_0xaaf8a7,'type':_0x1b0a2e,'createdAt':new Date(),'authorId':_0x53e7a6,'data':_0x346bf1['data'],'attributes':_0x346bf1['attributes']});const _0x235a93=this['_model']['createPositionAt'](_0x524048['end']['parent'],'after'),_0x166cf6=this['_model']['createRange'](_0x235a93,_0x4ce5cb['end']);this['_addSuggestionMarker'](_0x1b0a2e,_0xaaf8a7,_0x53e7a6,_0x166cf6);}else{if(_0x4ce5cb['containsPosition'](_0x524048['start'])){const _0x4df6f0=this['_model']['createPositionAt'](_0x524048['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x4ce5cb['start'],_0x4df6f0));}else{const _0x588446=this['_model']['createPositionAt'](_0x524048['end']['parent'],'after');this['_setSuggestionRange'](_0x346bf1,this['_model']['createRange'](_0x588446,_0x4ce5cb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x32c85b){for(const {suggestion:_0x585f63,meta:_0x57806d}of this['_findSuggestions'](_0x32c85b,'insertion')){if(!_0x57806d['isOwn'])continue;const _0x51c67e=_0x585f63['getRanges']();for(const _0x1d212f of _0x51c67e)if(!_0x32c85b['getDifference'](_0x1d212f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55fddd){return this['editor']['plugins']['get']('Users')['getUser'](_0x55fddd);}['_getExternalAuthor'](_0x9fce53){const _0x1cdaf3=this['editor']['plugins']['get']('Users'),_0x161a24=_0x24f18d('external:'+_0x9fce53),_0x1f795f=_0x1cdaf3['getUser'](_0x161a24);return _0x1f795f||_0x1cdaf3['addUser']({'id':_0x161a24,'name':_0x9fce53});}['_createSuggestion'](_0x2a0eab,_0x1fc6d5,_0x331dd3,_0x18b6be,_0x2bf21d,_0xd4f44){const _0x21d8ea=this['_getAuthorFromId'](_0x18b6be);if(!_0x21d8ea)throw new _0xb0a0f9('track-changes-user-not-found',this,{'authorId':_0x18b6be,'suggestionId':_0x331dd3});const _0x525c1e=this['_suggestionFactory']['buildSuggestion'](_0x2a0eab,_0x1fc6d5,_0x331dd3,_0x21d8ea,_0x2bf21d,_0x15d04d=>{this['_updateSuggestionData'](_0x331dd3,{'attributes':_0x15d04d});const _0x4fe579=this['getSuggestion'](_0x331dd3);this['_joinWithAdjacentSuggestions'](new Set([_0x4fe579])),this['_refreshSuggestionsChain'](new Set([_0x4fe579]));},_0xd4f44);return this['listenTo'](_0x525c1e,'accept',()=>{this['_updateSuggestionData'](_0x331dd3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x525c1e,'discard',()=>{this['_updateSuggestionData'](_0x331dd3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x331dd3,_0x525c1e),this['_suggestionState']['set'](_0x525c1e,'notReady'),_0x525c1e;}['_breakSuggestionMarker'](_0x2827af,_0x5ab67b,_0x2069a9){const _0x5d0f7e=_0x2827af['getFirstRange'](),_0x438389=_0x5d0f7e['start'],_0x2a9c0f=_0x5d0f7e['end'];this['_setSuggestionRange'](_0x2827af,this['_model']['createRange'](_0x438389,_0x5ab67b));const _0x50dfe4=_0x24c80d(),_0x583199=_0x2827af['creator']['id'],_0x2ae567=_0x2827af['type']+(_0x2827af['subType']?':'+_0x2827af['subType']:'');this['_setSuggestionData']({'id':_0x50dfe4,'type':_0x2ae567,'createdAt':new Date(),'authorId':_0x583199,'originalSuggestionId':_0x2827af['_originalSuggestionId']||_0x2827af['id'],'attributes':_0x2827af['attributes'],'data':_0x2827af['data']});const _0x937684=this['_getAttributeKey'](_0x2827af);('formatBlock'==_0x2827af['type']||_0x937684&&this['_suggestionsConversion']['isBlockAttribute'](_0x937684))&&(_0x2069a9=this['_model']['createPositionBefore'](_0x2069a9['parent'])),this['_addSuggestionMarker'](_0x2ae567,_0x50dfe4,_0x583199,this['_model']['createRange'](_0x2069a9,_0x2a9c0f));}['_findSuggestions'](_0x2e956d,_0x108299=null){const _0x535be3=[],_0x1ce11d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e956d)||(_0x2e956d=[_0x2e956d]);for(const _0x3f57ea of this['getSuggestions']()){if(!_0x3f57ea['isInContent'])continue;if(_0x108299&&_0x3f57ea['type']!=_0x108299)continue;let _0x513416=!0x1;for(const _0x2d1c5a of _0x3f57ea['getRanges']()){for(const _0x13af60 of _0x2e956d){const _0x2a6e2a=_0x13af60['start']['isEqual'](_0x2d1c5a['end'])||_0x13af60['end']['isEqual'](_0x2d1c5a['start']);if(_0x2a6e2a||_0x13af60['getIntersection'](_0x2d1c5a)){const _0x5e6ee5=_0x13af60['containsRange'](_0x2d1c5a)&&rn(this['_model']['schema'],_0x2d1c5a['start'],_0x13af60),_0x1ec12f=_0x2d1c5a['containsRange'](_0x13af60)&&rn(this['_model']['schema'],_0x13af60['start'],_0x2d1c5a);_0x535be3['push']({'suggestion':_0x3f57ea,'meta':{'isOwn':_0x1ce11d==_0x3f57ea['author'],'isNextTo':_0x2a6e2a,'isInsideObject':_0x5e6ee5,'containsRangeInObject':_0x1ec12f}}),_0x513416=!0x0;break;}}if(_0x513416)break;}}return _0x535be3;}['_addSuggestionMarker'](_0x1fb727,_0x566ee4,_0x5b3db5,_0x44f3bd,_0x4d84da){this['_model']['change'](_0x32a686=>{let _0x59c36b='suggestion:'+_0x1fb727+':'+_0x566ee4+':'+_0x5b3db5;_0x4d84da&&(_0x59c36b=_0x59c36b+':'+_0x4d84da),_0x32a686['addMarker'](_0x59c36b,{'range':_0x44f3bd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x34b361){const _0x4859f8=_0x34b361['previous'],_0x464f21=_0x34b361['next'];_0x34b361['previous']=null,_0x34b361['next']=null,null!=_0x4859f8&&_0x4859f8['next']==_0x34b361&&(_0x4859f8['next']=_0x464f21),null!=_0x464f21&&_0x464f21['previous']==_0x34b361&&(_0x464f21['previous']=_0x4859f8),'ready'==this['_suggestionState']['get'](_0x34b361)&&(this['_suggestionState']['set'](_0x34b361,'removed'),this['fire']('suggestionUnloaded',_0x34b361,_0x4859f8,_0x464f21));}['_setSuggestionData'](_0x2af58f){const _0x14694f=_0x2af58f['id'],_0x1a8fdc=this['addSuggestionData'](_0x2af58f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5b22e3=this['editor']['plugins']['get']('PendingActions'),_0x47b04b=_0x1a8fdc['hasComments'],_0x4cc6df=_0x1a8fdc['subType']?_0x1a8fdc['type']+':'+_0x1a8fdc['subType']:_0x1a8fdc['type'],_0x4754f1=this['editor']['locale'],_0x175362=_0x5b22e3['add'](St(_0x4754f1,'PENDING_ACTION_SUGGESTION')),_0x9e0a6={'id':_0x14694f,'type':_0x4cc6df,'hasComments':_0x47b04b,'data':_0x2af58f['data']||null,'originalSuggestionId':_0x2af58f['originalSuggestionId']||null,'attributes':_0x1a8fdc['attributes']};this['_adapter']['addSuggestion'](_0x9e0a6)['then'](_0x5b1e4b=>{_0x1a8fdc['_saved']=!0x0,_0x5b22e3['remove'](_0x175362),_0x5b1e4b&&_0x5b1e4b['createdAt']&&(this['_suggestions']['get'](_0x14694f)['createdAt']=_0x5b1e4b['createdAt']);})['catch'](_0x57d3b5=>{throw _0x5722b1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a8fdc['discard']();}),_0x1a8fdc['stopListening'](),this['_suggestions']['delete'](_0x1a8fdc['id']),this['_suggestionState']['delete'](_0x1a8fdc),_0x57d3b5;});}return _0x1a8fdc;}['_updateSuggestionData'](_0x315e98,_0x284c40){const _0x227be1=this['editor']['plugins']['get']('PendingActions'),_0x4dbec6=this['getSuggestion'](_0x315e98);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dbec6['_saved']){const _0x2e7c67=_0x227be1['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x315e98,_0x284c40)['then'](()=>{_0x227be1['remove'](_0x2e7c67);});}else _0x4dbec6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x315e98,_0x284c40);});}}['_getSuggestionData'](_0x4efddd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb0a0f9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4efddd);}['_handleNewSuggestionMarker'](_0x6c1018){const {id:_0x1e4c08,type:_0x31a42b,subType:_0x5b715a,authorId:_0x4c56b5}=tt(_0x6c1018),_0x40b78b=this['_suggestions']['get'](_0x1e4c08)||this['_createSuggestion'](_0x31a42b,_0x5b715a,_0x1e4c08,_0x4c56b5,{});switch(this['_checkSuggestionCorrectness'](_0x40b78b,_0x31a42b,_0x5b715a,_0x4c56b5),this['_suggestionState']['get'](_0x40b78b)){case'notReady':this['_getSuggestionData'](_0x1e4c08)['then'](_0x3c1b58=>{let _0x5c87fe=Promise['resolve']();_0x3c1b58['hasComments']&&(_0x5c87fe=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e4c08})),_0x5c87fe['then'](()=>{this['addSuggestionData'](_0x3c1b58)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40b78b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e4c08,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40b78b,'ready'),this['fire']('suggestionLoaded',_0x40b78b);break;case'ready':this['fire']('suggestionChanged',_0x40b78b);}return _0x40b78b['addMarkerName'](_0x6c1018),_0x40b78b;}['_refreshSuggestionsChain'](_0x3d091c){const _0x13f55f=Array['from'](_0x3d091c),_0x32e6d6=_0x13f55f['filter'](_0x151964=>'attribute'==_0x151964['type']);this['_refreshAttributeSuggestionsChain'](_0x32e6d6);const _0x3669c6=_0x13f55f['filter'](_0x57b572=>!_0x57b572['isMultiRange']&&'attribute'!=_0x57b572['type']),_0x16d208=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcb00ac=>!_0xcb00ac['isMultiRange']&&'attribute'!=_0xcb00ac['type']),_0x25187d=_0x16d208['filter'](_0x4ef946=>!_0x3d091c['has'](_0x4ef946)),_0x13840f=new Map(_0x16d208['map'](_0xca862=>[_0xca862,this['_suggestionFactory']['getSuggestionCallback'](_0xca862['type'],_0xca862['subType'],'chain')])),_0x4fe630=new Map(_0x16d208['map'](_0x205c3e=>[_0x205c3e,_0x205c3e['getFirstRange']()])),_0xde9bfa=new Set(),_0xbb6f3a=new Set();for(let _0x1a2fee=0x0;_0x1a2fee<_0x3669c6['length'];_0x1a2fee++)_0x5e6852(_0x3669c6[_0x1a2fee],_0x3669c6,_0x1a2fee+0x1);for(let _0x30222d=0x0;_0x30222d<_0x3669c6['length'];_0x30222d++)_0x5e6852(_0x3669c6[_0x30222d],_0x25187d,0x0);const _0x3f37ec=new Set();for(let _0x45abb2=0x0;_0x45abb2<_0x3669c6['length'];_0x45abb2++){const _0xfbe971=_0x3669c6[_0x45abb2];!_0xbb6f3a['has'](_0xfbe971)&&_0xfbe971['previous']&&(_0x3f37ec['add'](_0xfbe971['previous']),_0xfbe971['previous']['next']===_0xfbe971&&(_0xfbe971['previous']['next']=null),_0xfbe971['previous']=null),!_0xde9bfa['has'](_0xfbe971)&&_0xfbe971['next']&&(_0x3f37ec['add'](_0xfbe971['next']),_0xfbe971['next']['previous']===_0xfbe971&&(_0xfbe971['next']['previous']=null),_0xfbe971['next']=null);}function _0x5e6852(_0x172c5d,_0x5e695d,_0x15efb3){for(let _0x5dd690=_0x15efb3;_0x5dd690<_0x5e695d['length'];_0x5dd690++){const _0xfecc95=_0x2d8608(_0x172c5d,_0x5e695d[_0x5dd690]);_0xfecc95&&(_0xfecc95[0x0]['next']=_0xfecc95[0x1],_0xfecc95[0x1]['previous']=_0xfecc95[0x0],_0xde9bfa['add'](_0xfecc95[0x0]),_0xbb6f3a['add'](_0xfecc95[0x1]));}}function _0x2d8608(_0xca2db3,_0x361f5a){if(_0xca2db3['author']['id']!==_0x361f5a['author']['id'])return null;const _0x5814b3=_0x13840f['get'](_0xca2db3)(_0xca2db3,_0x361f5a,_0x4fe630['get'](_0xca2db3),_0x4fe630['get'](_0x361f5a));return _0x5814b3&&_0x13840f['get'](_0x361f5a)(_0xca2db3,_0x361f5a,_0x4fe630['get'](_0xca2db3),_0x4fe630['get'](_0x361f5a))?_0x5814b3[0x1]['commentThread']&&_0x5814b3[0x1]['commentThread']['length']?null:_0x5814b3:null;}_0x3f37ec['size']&&this['_refreshSuggestionsChain'](_0x3f37ec);}['_refreshAttributeSuggestionsChain'](_0x1a01a0){if(0x0==_0x1a01a0['length'])return;const _0x1a8127=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21b5f4=>'attribute'==_0x21b5f4['type']&&_0x21b5f4['_isDataLoaded']),_0x266043=[],_0x23dec0=new Map();for(const _0x33c046 of _0x1a8127){const _0x592a61=_0x24f18d(_0x33c046['attributes']);_0x23dec0['has'](_0x592a61)||(_0x23dec0['set'](_0x592a61,_0x266043['length']),_0x266043['push']([])),_0x266043[_0x23dec0['get'](_0x592a61)]['push'](_0x33c046);}!(function(){_0x266043['sort']((_0x4e8b,_0x231ffe)=>{const _0x2ae18c=_0x4e8b[0x0]['createdAt'],_0xe89ab1=_0x231ffe[0x0]['createdAt'];return _0x2ae18c==_0xe89ab1?_0x4e8b[0x0]['attributes']['groupId']<_0x231ffe[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ae18c<_0xe89ab1?-0x1:0x1;});for(const _0x4fdb8d of _0x266043)_0x4fdb8d['sort']((_0x48ddbf,_0x50baa9)=>_0x48ddbf['id']<_0x50baa9['id']?-0x1:0x1);}());for(let _0x2ed3a4=0x0;_0x2ed3a4<_0x266043['length'];_0x2ed3a4++){if(0x0==_0x266043[_0x2ed3a4]['length'])continue;const _0x1387ed=[];for(let _0x59d040=_0x2ed3a4+0x1;_0x59d040<_0x266043['length'];_0x59d040++)0x0!=_0x266043[_0x59d040]['length']&&_0x318733(_0x266043[_0x2ed3a4],_0x266043[_0x59d040])&&_0x1387ed['push'](_0x59d040);for(const _0x2a078a of _0x1387ed)_0x266043[_0x2ed3a4]=_0x266043[_0x2ed3a4]['concat'](_0x266043[_0x2a078a]),_0x266043[_0x2a078a]=[];}for(const _0x27d24b of _0x266043)for(let _0x45fc9c=0x0;_0x45fc9c<_0x27d24b['length'];_0x45fc9c++){const _0x3a8850=_0x27d24b[_0x45fc9c+0x1]||null;_0x27d24b[_0x45fc9c]['next']!==_0x3a8850&&(_0x27d24b[_0x45fc9c]['next']=_0x3a8850);}for(const _0x88790c of _0x266043)for(let _0x4e1b39=0x0;_0x4e1b39<_0x88790c['length'];_0x4e1b39++){const _0x7ad3f=_0x88790c[_0x4e1b39-0x1]||null;_0x88790c[_0x4e1b39]['previous']!==_0x7ad3f&&(_0x88790c[_0x4e1b39]['previous']=_0x7ad3f);}function _0x318733(_0x4e6565,_0x15475f){return(_0x4e6565[0x0]['attributes']['groupId']===_0x15475f[0x0]['attributes']['groupId']||_0x4e6565[0x0]['author']===_0x15475f[0x0]['author'])&&(!!function(_0x6c35f1,_0x42d223){return!_0x6c35f1['hasComments']&&!_0x42d223['hasComments']||(!_0x6c35f1['hasComments']||!_0x42d223['hasComments'])&&(!!(_0x6c35f1['hasComments']&&_0x42d223['createdAt']<_0x6c35f1['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x42d223['hasComments']&&_0x6c35f1['createdAt']<_0x42d223['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x4e6565[0x0],_0x15475f[0x0])&&(!!ct(lt(_0x4e6565[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x15475f[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x4e6565[0x0]['attributes']['groupId']==_0x15475f[0x0]['attributes']['groupId']||_0x4e6565[0x0]['attributes']['trackingSessionId']===_0x15475f[0x0]['attributes']['trackingSessionId']&&(!!_0x4e6565['every'](_0x3d2d9e=>_0x15475f['some'](_0x40908e=>_0x3d2d9e['getFirstRange']()['isEqual'](_0x40908e['getFirstRange']())))&&_0x15475f['every'](_0x591997=>_0x4e6565['some'](_0x428610=>_0x591997['getFirstRange']()['isEqual'](_0x428610['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x2479bb){const _0x30ab04=Array['from'](_0x2479bb),_0x1bd4c8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1fb755=_0x1bd4c8['filter'](_0xf03e70=>!_0x2479bb['has'](_0xf03e70)),_0x274c59=new Map(_0x30ab04['map'](_0x5ca595=>[_0x5ca595,this['_suggestionFactory']['getSuggestionCallback'](_0x5ca595['type'],_0x5ca595['subType'],'join')])),_0x278949=new Map(_0x1bd4c8['map'](_0x11212a=>[_0x11212a,_0x11212a['getRanges']()]));for(let _0x529a5f=0x0;_0x529a5f<_0x30ab04['length'];_0x529a5f++)if(_0x19f989(this,_0x30ab04[_0x529a5f],_0x30ab04,_0x529a5f+0x1))return!0x0;for(let _0x52adf2=0x0;_0x52adf2<_0x30ab04['length'];_0x52adf2++)if(_0x19f989(this,_0x30ab04[_0x52adf2],_0x1fb755,0x0))return!0x0;return!0x1;function _0x19f989(_0x275d88,_0x52d8b8,_0x23ab6c,_0x52ce32){for(let _0x2e10b6=_0x52ce32;_0x2e10b6<_0x23ab6c['length'];_0x2e10b6++){const _0x588b46=_0x23ab6c[_0x2e10b6];if(_0x588b46['type']!==_0x52d8b8['type']||_0x588b46['author']['id']!==_0x52d8b8['author']['id']||_0x588b46['subType']!==_0x52d8b8['subType'])continue;if(!mn(_0x52d8b8,_0x588b46))continue;if('attribute'==_0x52d8b8['type']&&_0x52d8b8['data']['oldValue']!=_0x588b46['data']['oldValue'])continue;if('attribute'==_0x52d8b8['type']&&_0x275d88['_suggestionsConversion']['isBlockAttribute'](_0x52d8b8['data']['key']))continue;if('formatBlock'==_0x52d8b8['type']){const _0x1238e4=_0x275d88['editor']['model'],_0x4a20e6=_0x52d8b8['getContainedElement']();if(_0x4a20e6&&(_0x1238e4['schema']['isObject'](_0x4a20e6)||_0x1238e4['schema']['isLimit'](_0x4a20e6)))continue;}const _0x275fc5=_0x274c59['get'](_0x52d8b8),_0xb3cee7=_0x278949['get'](_0x52d8b8),_0x586c11=_0x278949['get'](_0x588b46),_0xa398b2=_0x52d8b8['commentThread']&&_0x52d8b8['commentThread']['length'],_0x9f9dd=_0x588b46['commentThread']&&_0x588b46['commentThread']['length'];if(!_0xa398b2&&_0x275fc5(_0x586c11,_0xb3cee7))return _0x275d88['_joinSuggestions'](_0x588b46,_0x52d8b8),_0x278949['delete'](_0x52d8b8),!0x0;if(!_0x9f9dd&&_0x275fc5(_0xb3cee7,_0x586c11))return _0x275d88['_joinSuggestions'](_0x52d8b8,_0x588b46),_0x278949['delete'](_0x588b46),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14f8af,_0x43f30f){if(_0x14f8af['isMultiRange']){for(const _0x4d5929 of _0x43f30f['getRanges']())_0x14f8af['addRange'](_0x4d5929);}else{const _0x52f5f1=_0x43f30f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14f8af,this['_model']['createRange'](_0x14f8af['getFirstRange']()['start'],_0x52f5f1));}_0x43f30f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1f99cd,_0x249d83,_0x53deca){const _0x3bf6fa=_0x1f99cd['startsWith']('format')||_0x1f99cd['startsWith']('attribute')?'FORMATTING':_0x1f99cd['toUpperCase']();return St(this['editor']['locale'],_0x249d83+'_'+_0x3bf6fa+'_SUGGESTION_ANNOUNCEMENT',_0x53deca);}['_initAriaMarkerChangeAnnouncements'](){const _0xfba789=this['editor'];if(!_0xfba789['ui'])return;const {ariaLiveAnnouncer:_0x28f071}=_0xfba789['ui'];et(this['_model'],({left:_0x49ed71,entered:_0x4dc90e})=>{for(const _0x41888e of _0x49ed71){const {group:_0x49f48e,type:_0x2fe9dc}=tt(_0x41888e['name']);if('suggestion'===_0x49f48e){_0x28f071['announce'](this['_getMarkerAnnouncementText'](_0x2fe9dc,'LEAVE'));break;}}for(const _0x5b1255 of _0x4dc90e){const {group:_0x1aabae,type:_0xa32cb4}=tt(_0x5b1255['name']);if('suggestion'===_0x1aabae){_0x28f071['announce'](this['_getMarkerAnnouncementText'](_0xa32cb4,'ENTER',_0x4b7938(_0x525bb2)));break;}}});}['_processAttributeChanges'](_0x1b391e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2bcf9e=this['editor'],_0x39b6d8=_0x2bcf9e['model']['document']['differ']['getChanges']();if(0x0==_0x39b6d8['length'])return!0x1;const _0x2f5f47=[],_0x24e835=_0x39b6d8['filter'](_0x4afada=>'attribute'==_0x4afada['type']),_0x5ae277=_0x39b6d8['filter'](_0x218d3d=>'insert'==_0x218d3d['type']&&'$text'!=_0x218d3d['name']),_0x3267b3=_0x39b6d8['filter'](_0x26aa23=>'remove'==_0x26aa23['type']&&'$text'!=_0x26aa23['name']);for(const _0x5efd7d of _0x24e835)_0x2f5f47['push']({'key':_0x5efd7d['attributeKey'],'newValue':_0x5efd7d['attributeNewValue'],'oldValue':_0x5efd7d['attributeOldValue'],'range':hn(_0x5efd7d['range'],_0x2bcf9e['model'])});for(const _0x5f1a69 of _0x5ae277){const _0x5e5097=_0x3267b3['find'](_0x379e37=>_0x379e37['position']['isEqual'](_0x5f1a69['position']));_0x5e5097&&_0x2f5f47['push']({'key':en,'newValue':_0x5f1a69['name'],'oldValue':_0x5e5097['name'],'range':_0x2bcf9e['model']['createRangeOn'](_0x5f1a69['position']['nodeAfter'])});}return 0x0!=_0x2f5f47['length']&&this['_reduceExistingSuggestions'](_0x1b391e,_0x2f5f47);}['_processAttributeSuggestions'](_0x44b57c){let _0xa46ceb=!0x1;const _0x7143f9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x395e59=>_0x395e59['data']['newRange']&&_0x395e59['name']['startsWith']('suggestion:attribute:'));for(const _0x2612a3 of _0x7143f9){const {subType:_0x5c1cb8,id:_0x4cf881}=tt(_0x2612a3['name']),_0x3029ac=_0x5c1cb8['split']('|')[0x0];for(const _0x592b34 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x592b34['id']!=_0x4cf881&&'attribute'==_0x592b34['type']&&_0x592b34['data']&&_0x592b34['data']['key']==_0x3029ac&&_0x592b34['getFirstRange']()['isIntersecting'](_0x2612a3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x592b34,_0x2612a3['data']['newRange'],_0x44b57c),_0xa46ceb=!0x0);}return _0xa46ceb;}['recordAttributeChanges'](_0x11dc81){this['_recordAttributeSuggestions']=!0x0,_0x11dc81();}['_reduceExistingSuggestions'](_0x4eacf9,_0x3bb0af){if(0x0==_0x3bb0af['length'])return!0x1;let _0x1f30e1=!0x1;for(const _0x2e0e08 of _0x3bb0af){const _0x192e66=this['_findSuggestions'](_0x2e0e08['range'],'attribute')['filter'](_0x4cece5=>!_0x4cece5['meta']['isNextTo'])['map'](_0x2b553d=>_0x2b553d['suggestion']),_0x81ecad=_0x24f18d({'newValue':_0x2e0e08['newValue']});_0x192e66['filter'](_0x1b6aab=>{const [_0x56bd4a,_0x2d0868]=_0x1b6aab['subType']['split']('|');return _0x56bd4a==_0x2e0e08['key']&&_0x2d0868!=_0x81ecad;})['forEach'](_0x192322=>{this['_reduceSuggestionAttributeRange'](_0x192322,_0x2e0e08['range'],_0x4eacf9),_0x1f30e1=!0x0;});}return _0x1f30e1;}['_reduceSuggestionAttributeRange'](_0x843c01,_0x542c6d,_0x146f4b){const _0x2a2f34=_0x843c01['getFirstRange']()['getDifference'](_0x542c6d);0x0!==_0x2a2f34['length']?0x1!==_0x2a2f34['length']?this['_breakSuggestionMarker'](_0x843c01,_0x542c6d['start'],_0x542c6d['end']):this['_setSuggestionRange'](_0x843c01,_0x2a2f34[0x0]):_0x146f4b['removeMarker'](_0x843c01['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d0670){this['_editor']=_0x3d0670,this['_model']=_0x3d0670['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x49ba14,_0x125801,_0x1fe92c,_0x61c5da,_0x2c9607,_0x50974b,_0x1e17d2){return new yt(this['_model'],{'type':_0x49ba14,'subType':_0x125801,'id':_0x1fe92c,'originalSuggestionId':_0x1e17d2,'author':_0x61c5da,'creator':_0x61c5da,'attributes':_0x2c9607,'onAttributesChange':_0x50974b,'onAccept':(..._0x3f340e)=>this['getSuggestionCallback'](_0x49ba14,_0x125801,'accept')(..._0x3f340e),'onDiscard':(..._0x5f3f14)=>this['getSuggestionCallback'](_0x49ba14,_0x125801,'discard')(..._0x5f3f14)});}['registerCustomCallback'](_0xb72c98,_0x5077ab,_0x48a94c,_0x506370){const _0x4a3a2e=_0xb72c98+':'+_0x5077ab+':'+_0x48a94c;this['_customCallbacks']['set'](_0x4a3a2e,_0x506370);}['getSuggestionCallback'](_0x4d8688,_0x2cff4f,_0x39b770){const _0x5df434=_0x4d8688+':'+_0x2cff4f+':'+_0x39b770;return this['_customCallbacks']['get'](_0x5df434)||this['_defaultCallbacks']['get'](_0x4d8688+':'+_0x39b770);}['_registerDefaultCallbacks'](){const _0x2eac45=()=>!0x1,_0x25d1ca=_0x80bfd9=>{_0x80bfd9['sort']((_0x1138d0,_0x2adbbb)=>_0x1138d0['start']['isBefore'](_0x2adbbb['start'])?0x1:-0x1),this['_model']['change'](_0x540c1a=>{for(const _0x3ecc64 of _0x80bfd9){let _0x792ce7;_0x792ce7=_0x3ecc64['end']['isAtEnd']&&_0x3ecc64['end']['parent']==_0x3ecc64['start']['nodeAfter']?_0x540c1a['createSelection'](_0x3ecc64['start']['nodeAfter'],'on'):_0x540c1a['createSelection'](_0x3ecc64),this['_model']['deleteContent'](_0x792ce7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x38896a=(_0x326a01,_0x184230)=>{_0x184230&&this['_model']['change'](_0x399fcb=>{const {commandName:_0x15de9a,commandParams:_0x19c9f2=[]}=_0x184230,_0x4eb4a9=_0x326a01['map'](_0x4365ac=>(on(_0x4365ac)&&(_0x4365ac=this['_model']['createRange'](_0x4365ac['end'])),_0x4365ac))['filter'](_0x5c0648=>'$graveyard'!==_0x5c0648['root']['rootName']);if(_0x4eb4a9['length']<0x1)return;const _0x3148a5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x529d8f=>rt['fromRange'](_0x529d8f));_0x399fcb['setSelection'](_0x4eb4a9);for(const _0xec0eab of this['_editor']['commands']['commands']())_0xec0eab['refresh']();_0x19c9f2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15de9a,..._0x19c9f2);const _0x5da1f9=_0x3148a5['filter'](_0x8248ae=>'$graveyard'!=_0x8248ae['root']['rootName']);_0x5da1f9['length']>0x0&&_0x399fcb['setSelection'](_0x5da1f9);for(const _0xbe3768 of _0x3148a5)_0xbe3768['detach']();});},_0x23e142=(_0x48e29d,_0x37eb68)=>0x1==_0x48e29d['length']&&0x1==_0x37eb68['length']&&_0x48e29d[0x0]['end']['isEqual'](_0x37eb68[0x0]['start']),_0xb89d9c=(_0x3e36a5,_0x47f1f2,_0x153c71,_0x3c0890)=>fn(_0x3e36a5,_0x47f1f2,_0x153c71,_0x3c0890)?[_0x3e36a5,_0x47f1f2]:fn(_0x47f1f2,_0x3e36a5,_0x3c0890,_0x153c71)?[_0x47f1f2,_0x3e36a5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2eac45),this['_defaultCallbacks']['set']('insertion:discard',_0x25d1ca),this['_defaultCallbacks']['set']('insertion:join',_0x23e142),this['_defaultCallbacks']['set']('insertion:chain',_0xb89d9c),this['_defaultCallbacks']['set']('deletion:accept',_0x25d1ca),this['_defaultCallbacks']['set']('deletion:discard',_0x2eac45),this['_defaultCallbacks']['set']('deletion:join',_0x23e142),this['_defaultCallbacks']['set']('deletion:chain',_0xb89d9c),this['_defaultCallbacks']['set']('formatInline:accept',_0x38896a),this['_defaultCallbacks']['set']('formatInline:discard',_0x2eac45),this['_defaultCallbacks']['set']('formatInline:join',_0x23e142),this['_defaultCallbacks']['set']('formatInline:chain',_0x2eac45),this['_defaultCallbacks']['set']('formatBlock:accept',_0x38896a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2eac45),this['_defaultCallbacks']['set']('formatBlock:join',_0x23e142),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2eac45),this['_defaultCallbacks']['set']('attribute:accept',_0x2eac45),this['_defaultCallbacks']['set']('attribute:discard',(_0x294c04,_0x4fc93e)=>{if(!_0x4fc93e)return;const _0x20aee0=this['_editor']['plugins']['get'](_0x4df9c4);this['_model']['change'](_0x141cc4=>{if('$elementName'==_0x4fc93e['key'])for(const _0xdc6467 of _0x294c04){const _0x4f8bc2=_0xdc6467['start']['nodeAfter'],_0x29c28f=_0x4fc93e['oldValue'];_0x141cc4['rename'](_0x4f8bc2,_0x29c28f);}else{if(_0x20aee0['isBlockAttribute'](_0x4fc93e['key'])){for(const _0x2eb45d of _0x294c04)void 0x0!==_0x4fc93e['oldValue']?_0x141cc4['setAttribute'](_0x4fc93e['key'],_0x4fc93e['oldValue'],_0x2eb45d['start']['nodeAfter']):_0x141cc4['removeAttribute'](_0x4fc93e['key'],_0x2eb45d['start']['nodeAfter']);}else{for(const _0x27bee2 of _0x294c04)_0x4fc93e['oldValue']?_0x141cc4['setAttribute'](_0x4fc93e['key'],_0x4fc93e['oldValue'],_0x27bee2):_0x141cc4['removeAttribute'](_0x4fc93e['key'],_0x27bee2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x23e142);}};function rn(_0x367770,_0x2c565a,_0x553e3a){for(const _0x2da69d of _0x2c565a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2da69d['root']==_0x2da69d)return!0x1;if(!_0x553e3a['containsItem'](_0x2da69d))return!0x1;if(_0x367770['isObject'](_0x2da69d)||_0x367770['isLimit'](_0x2da69d))return!0x0;}return!0x1;}function on(_0x116862){return _0x116862['end']['parent']==_0x116862['start']['nodeAfter']&&_0x116862['end']['isAtStart'];}function an(_0x3bbde1,_0x37111c,_0x1a80e2,_0x44cba2){const _0x400768=_0x3919ef=>!_0x3919ef['item']['is']('$textProxy')&&!_0x44cba2['isObject'](_0x3919ef['item']),_0x283fb7=_0x3bbde1['start']['getLastMatchingPosition'](_0x400768),_0x120a05=_0x3bbde1['end']['getLastMatchingPosition'](_0x400768,{'direction':'backward'});return(!_0x3bbde1['start']['isEqual'](_0x283fb7)||!_0x3bbde1['end']['isEqual'](_0x120a05))&&(_0x283fb7['isBefore'](_0x120a05)?_0x1a80e2['updateMarker'](_0x37111c,{'range':_0x1a80e2['createRange'](_0x283fb7,_0x120a05)}):_0x1a80e2['removeMarker'](_0x37111c),!0x0);}function cn(_0x21e5dd){return _0x24f18d(_0x21e5dd);}function ln(_0xe21a3f){const _0x4cc216=_0xe21a3f['start']['nodeAfter'];return _0x4cc216&&_0x4cc216['is']('element');}function un(_0x4e4a6f){return on(_0x4e4a6f)||function(_0x263936){return _0x263936['start']['parent']==_0x263936['end']['nodeBefore']&&_0x263936['start']['isAtEnd'];}(_0x4e4a6f);}function dn(_0x20b0fa,_0x5665bc){try{const _0x992f61=_0x20b0fa['getRange']();for(const _0x50f79f of _0x5665bc)if(_0x20b0fa!==_0x50f79f&&_0x992f61&&_0x992f61['isIntersecting'](_0x50f79f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x2b85dd,_0x372ea7){return null==_0x2b85dd['end']['nodeBefore']&&_0x2b85dd['end']['parent']==_0x2b85dd['start']['nodeAfter']?gn(_0x2b85dd['start']['nodeAfter'],_0x372ea7):_0x2b85dd;}function gn(_0x51b5e9,_0x53c1b2){const _0x43a161=_0x53c1b2['schema']['isObject'](_0x51b5e9)||_0x53c1b2['schema']['isSelectable'](_0x51b5e9);return _0x53c1b2['createRange'](_0x53c1b2['createPositionAt'](_0x51b5e9,'before'),_0x43a161?_0x53c1b2['createPositionAfter'](_0x51b5e9):_0x53c1b2['createPositionAt'](_0x51b5e9,'end'));}function fn(_0x3f0209,_0x570f14,_0x396509,_0x41e5ce){return!!mn(_0x3f0209,_0x570f14)&&_0x396509['end']['isEqual'](_0x41e5ce['start']);}function mn(_0x473f57,_0x16cb96){if(!_0x473f57['_isDataLoaded']||!_0x16cb96['_isDataLoaded'])return!0x1;const _0x1b4318=new Set(Object['keys'](_0x473f57['attributes'])),_0x3c46ad=new Set(Object['keys'](_0x16cb96['attributes']));if(_0x1b4318['delete']('groupId'),_0x3c46ad['delete']('groupId'),0x0==_0x1b4318['size']&&0x0==_0x3c46ad['size'])return!0x0;if(_0x1b4318['size']!=_0x3c46ad['size'])return!0x1;const _0x4b0bdc={..._0x473f57['attributes']},_0x5ea055={..._0x16cb96['attributes']};return delete _0x4b0bdc['groupId'],delete _0x5ea055['groupId'],JSON['stringify'](_0x4b0bdc)==JSON['stringify'](_0x5ea055);}function En(_0x389e3b,_0x5202b9){const _0x23d803=Tn(_0x389e3b['attributes']),_0x265758=Tn(_0x5202b9);if(!_0x389e3b['_isDataLoaded'])return!0x1;if(!ct(_0x23d803['@ai'],_0x265758['@ai']))return!0x1;for(const _0x296d64 of Object['keys'](_0x265758))if(!ct(_0x23d803[_0x296d64],_0x265758[_0x296d64]))return!0x1;return!0x0;}function Tn(_0x215e8b){const _0x3d2993=Object['assign']({},_0x215e8b);return delete _0x3d2993['skipNestingCheck'],delete _0x3d2993['tablePasteChainId'],_0x3d2993;}function _n(_0x1a0105){return _0x1a0105['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x41a589();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2296da,_0xef579a,_0x2d675b,_0x463705){super(),this['model']=_0xef579a,this['view']=_0x2d675b,this['commentThreadController']=_0x463705,this['_editor']=_0x2296da,this['_acceptCommand']=_0x2296da['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2296da['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ee0ca,_0x381326)=>_0x3ee0ca||_0x381326),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x140cf4=>_0x140cf4&&this['_editor']['model']['canEditAt'](_0xef579a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x525761=>_0x525761&&this['_editor']['model']['canEditAt'](_0xef579a['getRanges']())),this['_pendingAction']=null,_0x2d675b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d675b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d675b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d675b,'change:isDirty',()=>{_0x2d675b['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 _0x1d053a=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1d053a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x359f90{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d3f68,_0x5a2fb3,_0x3336cf,_0x103070){super(_0x4d3f68),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48d7c9(_0x4d3f68,St(_0x4d3f68,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a2fb3['authoredAt']),this['bind']('authoredAt')['to'](_0x5a2fb3),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',_0x5a2fb3,'authoredAt',this,'descriptionParts',(_0x106286,_0x36808d,_0x59dff8)=>{const _0x180165=_0x59dff8['map'](_0x3a4d28=>pt(_0x3a4d28['content']))['join']('.\x20')+'.',_0x2b3e49=_0x5a2fb3['aiSource']&&'author'===_0x103070['showAISource']?_0x103070['aiAuthor']['name']:_0x5a2fb3['author']['name'],_0xc74880=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x106286-0x1,_0x2b3e49,_0x36808d?_0x103070['formatDateTime'](_0x36808d):'',new DOMParser()['parseFromString'](_0x180165,'text/html')['body']['textContent']]);return _0x5a2fb3['aiSource']&&'pill'===_0x103070['showAISource']?_0xc74880+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0xc74880;}),this['focusables']=new _0x4aa534(),this['focusTracker']=new _0x27d278(),this['keystrokes']=new _0x2b5be1(),this['focusCycler']=new _0x3b07c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x68fe50=>_0x68fe50['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a2fb3,this['_localUser']=_0x3336cf,this['_config']=_0x103070,_0x103070['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x21d6af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1346d2}=this['_config'];this['commentsListView']=new _0x1346d2(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',_0x30c5cd=>_0x30c5cd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44eab,_0x329540)=>_0x44eab||!!_0x329540);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x130d22}=this['_config'],_0x3f54c4=new _0x130d22(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3372ca=_0x3f54c4['commentInputView'];return _0x3f54c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3372ca,'value',(_0x2a9aa0,_0x3780e3,_0x1a8830)=>!!_0x1a8830||_0x2a9aa0&&!_0x3780e3),_0x3372ca['on']('submit',(_0x2988bf,_0xd21c49)=>{this['fire']('addComment',_0xd21c49),_0x3372ca['editor']['setData']('');}),_0x3372ca['on']('cancel',()=>this['focus']()),_0x3372ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f54c4;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x171754,_0x591c30,_0x1c4d76,_0x5acbf3){super(_0x171754,_0x591c30,_0x1c4d76,_0x5acbf3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a5b3b=>_0x2a5b3b&&_0x2a5b3b[0x0]?_0x2a5b3b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x382af2,_0x1297d6)=>{let _0x520cfe='';for(const _0x5ae551 of _0x382af2)_0x520cfe+='<p>'+pt(_0x5ae551['content'],_0x5ae551['color'])+'</p>';return _0x1297d6?_0x520cfe:nt(_0x520cfe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5acbf3['SuggestionView'](_0x171754,_0x591c30,{'formatDateTime':_0x5acbf3['formatDateTime'],'showAISource':_0x5acbf3['showAISource'],'aiAuthor':_0x5acbf3['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 _0x40e62a=this['bindTemplate'],_0x134c94=[this['suggestionView']];return this['commentsListView']&&_0x134c94['push'](this['commentsListView']),this['commentThreadInputView']&&_0x134c94['push'](this['commentThreadInputView']),_0x134c94['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x40e62a['if']('isActive','ck-suggestion-wrapper--active'),_0x40e62a['to']('type',_0x1ae24c=>'ck-suggestion-'+_0x1ae24c),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':_0x40e62a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x134c94};}['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));}},bn=class extends _0x359f90{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a4e95,_0x19718e,_0x26ba2b){super(_0x1a4e95),this['_model']=_0x19718e,this['_config']=_0x26ba2b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x19718e),this['acceptButton']=this['_createButton'](St(_0x1a4e95,'Accept\x20suggestion'),_0x50f8b3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x1a4e95,'Discard\x20suggestion'),_0x376450,'ck-suggestion--discard','discardSuggestion','sw');const _0x591736=!!_0x19718e['aiSource']&&'author'===_0x26ba2b['showAISource'],_0x129c2f=_0x591736?this['_createAIUser'](_0x26ba2b['aiAuthor']):_0x19718e['author'],_0x15da2a=_0x591736&&!_0x26ba2b['aiAuthor']['avatar']?_0x5bcc5c:void 0x0;this['userView']=new _0x5c1d3d(_0x1a4e95,_0x129c2f,this['getUserViewNotificationText'](),_0x15da2a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4aa534([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x27d278(),this['keystrokes']=new _0x2b5be1(),this['focusCycler']=new _0x3b07c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xfaa24=>_0xfaa24['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x491bac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x491bac['innerHTML']=this['description'],this['on']('change:description',(_0xe1eda3,_0x1fc1d8,_0xa718b6)=>{_0x491bac['innerHTML']=_0xa718b6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e8a91=this['bindTemplate'],_0x365c0a=[{'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':_0x3e8a91['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e8a91['to']('authoredAt',_0x801ae8=>this['_config']['formatDateTime'](_0x801ae8))}]}]},{'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']&&_0x365c0a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5d14aa=new _0x5e5110(this['locale']);_0x5d14aa['set']({'icon':_0x5207dc,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x365c0a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5d14aa]});}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':_0x365c0a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x4482c3){return new _0x360be7({'id':'ck-ai-author','name':_0x4482c3['name'],'avatar':_0x4482c3['avatar'],'color':new _0x1cc976(0x0)});}['_createButton'](_0x2b06ed,_0x6b51d5,_0x48d5c6,_0x1e5ad0,_0x59098f){const _0x3900de=new _0x2bc11b(this['locale']);return _0x3900de['set']({'label':_0x2b06ed,'icon':_0x6b51d5,'tooltip':!0x0,'tooltipPosition':_0x59098f}),_0x3900de['extendTemplate']({'attributes':{'class':_0x48d5c6}}),_0x3900de['on']('execute',()=>{this['fire'](_0x1e5ad0,this['_model']['id']);}),_0x3900de;}['_setupKeyboardNavigation'](){const _0x208823=this['element'];this['keystrokes']['listenTo'](_0x208823);for(const _0x2710c4 of this['focusables'])this['focusTracker']['add'](_0x2710c4['element']),this['keystrokes']['listenTo'](_0x2710c4['element']);this['keystrokes']['set']('enter',(_0x6fba88,_0x5cf487)=>{_0x208823===_0x6fba88['target']&&(this['focusCycler']['focusFirst'](),_0x5cf487());}),this['keystrokes']['set']('esc',(_0x5ab2f9,_0x54d783)=>{_0x208823!==_0x5ab2f9['target']&&(this['focus'](),_0x54d783());});}},kn=class extends _0x2dafdc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x30610e,_0xe4cf4f,_0x3a4036,_0x3eea2f];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc7b8f5){super(_0xc7b8f5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4dbf5d=this['editor']['config'];_0x4dbf5d['define']('trackChanges.SuggestionThreadView',An),_0x4dbf5d['define']('trackChanges.SuggestionView',bn),_0x4dbf5d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4dbf5d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4f7b49,_0x19c430){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a28b1,_0x768e6e]of this['_handleControllerBuffer']){const _0x19ffd=this['_suggestionToController']['has'](_0x2a28b1);_0x19ffd||_0x768e6e?_0x19ffd&&_0x768e6e&&this['_destroyController'](_0x2a28b1):this['_initializeController'](_0x2a28b1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x3eea2f)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4f7b49,_0x19c430);}['init'](){const _0x5d7076=this['editor'],_0x29c6dc=_0x5d7076['plugins']['get'](nn),_0x2075eb=_0x5d7076['plugins']['get'](_0x3a4036),_0x36b65d=_0x5d7076['plugins']['get'](_0x3eea2f),_0x5c552d=_0x5d7076['plugins']['get'](_0xe4cf4f);this['_addUIComponentsToFactory'](),_0x36b65d['addSourceCollector'](()=>{const _0x5f446d=[];for(const [_0x115a07,_0x7ba81a]of Array['from'](this['_suggestionToController'])){const _0x3af180=_0x115a07['getAllAdjacentSuggestions'](),_0x4f516a=[];for(const _0x3daba9 of _0x3af180){if(!_0x3daba9['isInContent'])continue;if(_0x3daba9['isMultiRange']){_0x4f516a['push'](..._0x3daba9['getRanges']());continue;}const _0x259b48=_0x3daba9['getFirstRange']();if(_0x4f516a['length']>0x0){const _0x9ce702=_0x4f516a[0x0]['getJoined'](_0x259b48);if(_0x9ce702){_0x4f516a[0x0]=_0x9ce702;continue;}}_0x4f516a['push'](_0x259b48);}_0x5f446d['push']([_0x7ba81a['view'],_0x4f516a]);}return _0x5f446d;}),this['listenTo'](_0x29c6dc,'suggestionLoaded',(_0x7b230,_0x5ad8d2)=>{this['listenTo'](_0x5ad8d2,'change:previous',(_0x29e8e9,_0x1c84f8,_0x2cd42e,_0x5c98d7)=>{_0x5ad8d2['isInContent']&&(null==_0x2cd42e?(this['_updateController'](_0x5c98d7['head']),this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x1)):(this['_updateController'](_0x2cd42e['head']),null==_0x5c98d7&&this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x0)));}),null!==_0x5ad8d2['previous']?this['_updateController'](_0x5ad8d2['head']):this['_handleSuggestionControllerDelayed'](_0x5ad8d2,!0x1);}),this['listenTo'](_0x29c6dc,'suggestionUnloaded',(_0x45ae02,_0x54ceaa,_0x588ae5)=>{this['stopListening'](_0x54ceaa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54ceaa),this['_suggestionToController']['has'](_0x54ceaa)&&this['_destroyController'](_0x54ceaa),_0x588ae5&&this['_updateController'](_0x588ae5['head']);}),this['listenTo'](_0x29c6dc,'suggestionChanged',(_0x2b535e,_0x504d73)=>{this['_updateController'](_0x504d73);}),this['listenTo'](_0x2075eb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c552d,'addComment',(_0x235747,{threadId:_0x3475ca,isFromAdapter:_0x343678})=>{if(_0x343678||!_0x29c6dc['hasSuggestion'](_0x3475ca))return;const _0x2a9901=_0x29c6dc['getSuggestion'](_0x3475ca);this['_suggestionToController']['get'](_0x2a9901)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46722d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18ff04;for(const _0x27ec11 in _0x46722d){const _0x59b816=_0x27ec11,_0xfea42c=_0x46722d[_0x59b816];if('trackChangesLicenseKeyValid'==_0xfea42c||'trackChangesLicenseKeyInvalid'==_0xfea42c||'trackChangesLicenseKeyExpired'==_0xfea42c||'trackChangesLicenseKeyDomainLimit'==_0xfea42c||'trackChangesLicenseKeyNotAllowed'==_0xfea42c||'trackChangesLicenseKeyEvaluationLimit'==_0xfea42c||'trackChangesLicenseKeyUsageLimit'==_0xfea42c){delete _0x46722d[_0x59b816],_0x18ff04=_0xfea42c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x18ff04&&_0x46722d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x18ff04&&_0x46722d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x18ff04&&_0x46722d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x18ff04&&_0x46722d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4e3b88){const _0x5a5fc9=this['_suggestionToController']['get'](_0x4e3b88);return _0x5a5fc9&&this['editor']['plugins']['get'](_0x3a4036)['getByInnerView'](_0x5a5fc9['view'])||null;}['getSuggestionForAnnotation'](_0x35ad90){const _0x4248f2=this['_viewToController']['get'](_0x35ad90['innerView']);return _0x4248f2?_0x4248f2['model']:null;}['_refreshActiveMarkers'](){const _0x3255f0=this['editor']['plugins']['get'](_0x3a4036),_0x356725=this['editor']['plugins']['get'](nn),_0x143cd3=Array['from'](_0x3255f0['activeAnnotations'],_0x5c30aa=>_0x5c30aa['innerView'])['filter'](_0x11a614=>this['_viewToController']['has'](_0x11a614)),_0x180ab1=[];for(const _0x5b8681 of _0x143cd3){const _0x3f7874=this['_viewToController']['get'](_0x5b8681)['model']['getAllAdjacentSuggestions']();_0x180ab1['push'](..._0x3f7874['reduce']((_0x129b1a,_0x2678ca)=>[..._0x129b1a,..._0x2678ca['getMarkerNames']()],[]));}_0x356725['activeMarkers']=_0x180ab1;}['_addUIComponentsToFactory'](){const _0x5a2f8b=this['editor'],_0x39f1a9=_0x5a2f8b['locale'],_0x534d1d=St(_0x39f1a9,'Track\x20changes'),_0x125eaf=new _0x1350c2([{'type':'switchbutton','model':new _0x5440b6({'withText':!0x0,'isToggleable':!0x0,'label':_0x534d1d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5a2f8b['plugins']['has']('TrackChangesPreview')&&_0x125eaf['addMany']([{'type':'separator'},{'type':'button','model':new _0x5440b6({'withText':!0x0,'label':St(_0x39f1a9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x13e957 of _0x125eaf)if(Cn(_0x13e957)){const _0xfce7c0=_0x5a2f8b['commands']['get'](_0x13e957['model']['commandName']);_0x13e957['model']['bind']('isOn','isEnabled')['to'](_0xfce7c0,'value','isEnabled');}_0x5a2f8b['ui']['componentFactory']['add']('trackChanges',_0x653237=>this['_createToolbarButton'](_0x653237,_0x125eaf,_0x534d1d)),_0x5a2f8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x12851e=>this['_createMenuBarMenu'](_0x12851e,_0x125eaf,_0x534d1d));}['_createToolbarButton'](_0x5e8117,_0x2e3579,_0x2a031a){const _0x528597=_0x5873aa(_0x5e8117,_0x4440c7),_0x5d8c7e=this['editor']['commands']['get']('trackChanges');_0x528597['buttonView']['set']({'tooltip':_0x2a031a,'label':_0x2a031a,'icon':_0x152b1f}),_0x528597['buttonView']['bind']('isOn')['to'](_0x5d8c7e,'value'),_0x528597['buttonView']['on']('execute',()=>{_0x5d8c7e['execute'](),this['editor']['editing']['view']['focus']();}),_0x53017d(_0x528597,_0x2e3579,{'role':'menu'});const _0x1cf7d3=[];for(const _0x3bbb49 of _0x2e3579)Cn(_0x3bbb49)&&_0x1cf7d3['push'](this['editor']['commands']['get'](_0x3bbb49['model']['commandName']));const _0x4a713d=_0x528597['buttonView'];return _0x4a713d['actionView']['unbind']('isEnabled'),_0x4a713d['arrowView']['unbind']('isEnabled'),_0x4a713d['actionView']['bind']('isEnabled')['to'](_0x5d8c7e,'isEnabled'),_0x4a713d['arrowView']['bind']('isEnabled')['toMany'](_0x1cf7d3,'isEnabled',(..._0x29c85c)=>_0x29c85c['some'](_0xad910c=>_0xad910c)),_0x528597['on']('execute',_0x394ad3=>{this['editor']['execute'](_0x394ad3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x528597;}['_createMenuBarMenu'](_0x334016,_0x2afe42,_0x2a68e8){const _0x1c52c9=new _0x55e3f3(_0x334016),_0x4e6a53=this['editor']['commands']['get']('trackChanges');_0x1c52c9['buttonView']['set']({'label':_0x2a68e8,'icon':_0x152b1f});const _0x4e493d=new _0x5c449a(_0x334016);for(const _0x48a61f of _0x2afe42){if('separator'==_0x48a61f['type']){_0x4e493d['items']['add'](new _0x73fd58(_0x334016));continue;}const _0x49b85a=new _0x5d3ceb(_0x334016,_0x1c52c9),_0x2b42bc=new _0x2a72c8(_0x334016),_0x4581e0=_0x48a61f['model'];_0x2b42bc['bind'](...Object['keys'](_0x4581e0))['to'](_0x4581e0),_0x2b42bc['delegate']('execute')['to'](_0x1c52c9),_0x2b42bc['on']('execute',()=>{this['editor']['execute'](_0x4581e0['commandName']),this['editor']['editing']['view']['focus']();}),_0x49b85a['children']['add'](_0x2b42bc),_0x4e493d['items']['add'](_0x49b85a);}return _0x1c52c9['bind']('isEnabled')['to'](_0x4e6a53,'isEnabled'),_0x1c52c9['panelView']['children']['add'](_0x4e493d),_0x1c52c9;}['_initializeController'](_0x4e3e30){const _0xcbe35e=this['editor'],_0xe06ffd=_0xcbe35e['config'],_0x1ab294=_0xcbe35e['plugins']['get'](_0x3a4036),_0xb8b3cd=_0xcbe35e['plugins']['get'](_0xe4cf4f),_0xa7e4d5=_0xcbe35e['plugins']['get'](_0x3eea2f),_0x2ec493=_0xcbe35e['plugins']['get'](_0x30610e)['me'],_0x1310de=_0xe06ffd['get']('trackChanges')['SuggestionThreadView'],_0xfae3c7=_0xe06ffd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4e3925,CommentThreadInputView:_0x250f12}=_0xcbe35e['plugins']['get']('CommentsUI');let _0x27cc40,_0x12f138,_0x4b0af4;this['_annotationViews']['has'](_0x4e3e30['id'])?(_0x12f138=this['_annotationViews']['get'](_0x4e3e30['id']),_0x27cc40=_0x12f138['mainView']):(_0x27cc40=new _0x1310de(_0xcbe35e['locale'],_0x4e3e30,_0x2ec493,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe06ffd['get']('comments.editorConfig'),'licenseKey':_0xe06ffd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe06ffd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe06ffd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe06ffd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5d204d(_0xe06ffd['get']('locale'),_0xcbe35e['locale']),'CommentView':_0xe06ffd['get']('comments')['CommentView'],'CommentsListView':_0x4e3925,'CommentThreadInputView':_0x250f12,'SuggestionView':_0xfae3c7,'showAISource':_0xe06ffd['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xe06ffd['get']('trackChanges.aiAuthor'),'name':_0xe06ffd['get']('trackChanges.aiAuthor')?.['name']||St(_0xcbe35e['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x27cc40['suggestionView']['acceptButton']['on']('execute',()=>{_0xcbe35e['editing']['view']['focus']();}),_0x27cc40['suggestionView']['discardButton']['on']('execute',()=>{_0xcbe35e['editing']['view']['focus']();}),_0x12f138=_0x1ab294['createAnnotationView'](this['editor']['locale'],_0x27cc40),_0x12f138['bind']('isDirty')['to'](_0x27cc40,'isDirty'),_0x12f138['bind']('length')['to'](_0x27cc40),_0x12f138['bind']('type')['to'](_0x27cc40,'type',_0x7d742c=>'suggestion-'+_0x7d742c),_0x27cc40['on']('escape',()=>{_0x4b0af4['fire']('escape');}),this['_annotationViews']['set'](_0x4e3e30['id'],_0x12f138));const _0x346c0b=_0xb8b3cd['createCommentThreadController'](_0x4e3e30['commentThread'],_0x27cc40),_0x2c21d4=new Ln(_0xcbe35e,_0x4e3e30,_0x27cc40,_0x346c0b),_0x2c0d3e=_0x4e3e30['getAllAdjacentSuggestions']()['filter'](_0x355ff5=>_0x355ff5['isInContent']);_0x27cc40['descriptionParts']=_0xcbe35e['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x2c0d3e),this['_suggestionToController']['set'](_0x4e3e30,_0x2c21d4),this['_viewToController']['set'](_0x27cc40,_0x2c21d4);const _0x5e6cca=()=>{const _0x203d31=[],_0x28aa04=_0x4e3e30['getAllAdjacentSuggestions']()['filter'](_0xe2f6a4=>_0xe2f6a4['isInContent']);for(const _0x5ed584 of _0x28aa04)_0x203d31['push'](..._0x5ed584['getMarkers']());return _0x16637f(_0xcbe35e['editing'],_0x203d31);};_0x4b0af4=_0x1ab294['createAnnotation']({'view':_0x12f138,'target':_0x5e6cca,'type':()=>'suggestion-'+_0x2c21d4['view']['type'],'isVisible':!!_0x5e6cca()}),_0xb8b3cd['_bindAnnotationToEditors'](_0x27cc40,_0x4b0af4),_0x1ab294['add'](_0x4b0af4),_0xa7e4d5['registerAnnotation'](_0x4b0af4);}['_destroyController'](_0x50d56d){const _0x5756e9=this['editor']['plugins']['get'](_0xe4cf4f),_0xef2c3c=this['editor']['plugins']['get'](_0x3a4036),_0x3f6368=this['_suggestionToController']['get'](_0x50d56d),_0x3545a0=_0x3f6368['view'],_0x37ad08=_0xef2c3c['getByInnerView'](_0x3545a0);_0x5756e9['_unbindEditors'](_0x3545a0),_0x37ad08&&_0xef2c3c['remove'](_0x37ad08),this['_suggestionToController']['delete'](_0x50d56d),this['_viewToController']['delete'](_0x3545a0),_0x3f6368['destroy']();}['_updateController'](_0x2ee8d7){if(!_0x2ee8d7['isInContent']||!this['_suggestionToController']['has'](_0x2ee8d7))return;const _0x2d6294=this['editor']['plugins']['get'](nn),_0x308b1c=this['_suggestionToController']['get'](_0x2ee8d7),_0x165149=_0x2ee8d7['getAllAdjacentSuggestions']();_0x308b1c['view']['descriptionParts']=_0x2d6294['descriptionFactory']['getDescriptions'](_0x165149);}['destroy'](){for(const _0x47ef5e of this['_suggestionToController']['keys']())this['_destroyController'](_0x47ef5e);for(const _0x2bf7bb of this['_annotationViews']['values']())_0x2bf7bb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x11e70a){return'model'in _0x11e70a;}var Rn=class extends _0x2dafdc{static get['requires'](){return[nn,kn,_0x2fb358];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xaa1ced){this['editor']['plugins']['get'](nn)['adapter']=_0xaa1ced;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x53a408){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x53a408);}['getSuggestions']({skipNotAttached:_0x227273=!0x1,toJSON:_0x518c00=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x227273,'toJSON':_0x518c00});}['getSuggestion'](_0x5a8a3e){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x5a8a3e);}};const Nn=['Pagination'];var yn=class extends _0x2dafdc{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e4f54=this['editor'];if(_0x1e4f54['config']['define']('trackChangesData.editorCreator',_0x168581=>{const _0x3991e5=_0x1e4f54['model']['document']['getRootNames']()['reduce']((_0x33c652,_0x13cf1b)=>(_0x33c652[_0x13cf1b]='',_0x33c652),{});return _0x1e4f54['constructor']['create'](_0x3991e5,_0x168581);}),'function'!=typeof _0x1e4f54['config']['get']('trackChangesData')['editorCreator'])throw new _0xb0a0f9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9775){return On(this['editor'],!0x0,_0x9775);}['getDataWithDiscardedSuggestions'](_0xb154dc){return On(this['editor'],!0x1,_0xb154dc);}},Sn=class extends _0x2dafdc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1daa19){super(_0x1daa19),this['result']='end',_0x1daa19['editing']['view']['_overlayModeHint']='auto',_0x1daa19['_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 Mn(_0x3bc4b4){return void 0x0!==_0x3bc4b4['getRootsAttributes'];}async function On(_0x4a8eff,_0x508677,_0x16bda1){const _0x21e89d=_0x4257ae(_0x4a8eff,Nn);if(_0x21e89d['plugins']['push'](nn,Sn),Mn(_0x4a8eff)){_0x21e89d['roots']=Object['create'](null);for(const _0x3fab66 of _0x4a8eff['model']['document']['getRootNames']())_0x21e89d['roots'][_0x3fab66]={'modelAttributes':_0x4a8eff['getRootAttributes'](_0x3fab66)};}const _0x3681ca=document['createDocumentFragment'](),_0x363132=_0x4a8eff['config']['get']('trackChangesData')['editorCreator'],_0x5cb2eb=await _0x363132(_0x21e89d,()=>function(_0x383543){const _0x4808e6=document['createElement']('div');return _0x383543['appendChild'](_0x4808e6),_0x4808e6;}(_0x3681ca));!function(_0x350cde,_0x4c7a92){const _0x37998d=_0x350cde['model']['document']['getRootNames']()['reduce']((_0x396b79,_0x355f2e)=>(_0x396b79[_0x355f2e]=_0x350cde['data']['get']({'rootName':_0x355f2e}),_0x396b79),{}),_0xd63261=_0x350cde['plugins']['get']('Users')['users']['map'](_0x150482=>({'id':_0x150482['id'],'name':_0x150482['name']})),_0x3ba176=_0x350cde['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4fdf2c=_0x350cde['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f58a0=_0x4c7a92['plugins']['get']('Users'),_0x21a90d=_0x4c7a92['plugins']['get']('TrackChangesEditing'),_0x4f84ab=_0x4c7a92['plugins']['get']('CommentsRepository');for(const _0x447e49 of _0x4f84ab['getCommentThreads']())_0x447e49['remove']();for(const _0xd78768 of _0xd63261)_0x5f58a0['getUser'](_0xd78768['id'])||_0x5f58a0['addUser'](_0xd78768);_0x5f58a0['me']||_0x5f58a0['useAnonymousUser']();for(const _0x6f666d of _0x4fdf2c)_0x4f84ab['addCommentThread'](_0x6f666d);for(const _0x1ee254 of _0x3ba176)_0x21a90d['addSuggestionData'](_0x1ee254);_0x4c7a92['data']['set'](_0x37998d);}(_0x4a8eff,_0x5cb2eb),_0x5cb2eb['execute'](_0x508677?'acceptAllSuggestions':'discardAllSuggestions');const _0x42cb6f=Mn(_0x5cb2eb)?_0x5cb2eb['getFullData'](_0x16bda1):_0x5cb2eb['data']['get'](_0x16bda1);return await _0x5cb2eb['destroy'](),_0x42cb6f;}var wn=class extends _0x359f90{['options'];constructor(_0x6bffee,_0x1fb926){super(_0x6bffee),this['options']=_0x1fb926,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'](_0xfd23e8,_0x4237a7){if(!this['element'])return;const _0x3d6c49=[];for(const [_0x4f0d3f,_0x14af98]of _0xfd23e8){const _0x49c794=document['createElement']('div');_0x49c794['setAttribute']('data-ck-root-name',_0x4f0d3f),_0x49c794['className']=_0x14af98['classes']+'\x20ck-track-changes-preview__root-container',_0x49c794['innerHTML']=_0x14af98['content'],_0x3d6c49['push'](_0x49c794);}_0x4237a7(this['element'],_0x3d6c49),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x1da237{constructor(_0x41ccf9){super(_0x41ccf9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1eb95b=this['editor'],_0x5b3900=_0x1eb95b['locale'],_0x5282bf=_0x1eb95b['plugins']['get']('Dialog');let _0x1ac76c;const _0x28e0a4=function(_0x71cd15){const _0x3e6042={};if('editables'in _0x71cd15['ui']['view']){for(const [_0x1cbe0f,_0x92867e]of Object['entries'](_0x71cd15['ui']['view']['editables']))_0x3e6042[_0x1cbe0f]=_0x92867e['element'];}else _0x3e6042[_0x71cd15['model']['document']['getRootNames']()[0x0]]=_0x71cd15['ui']['view']['editable']['element'];return _0x3e6042;}(_0x1eb95b),_0x16a61b=function(_0x7a90aa){let _0x557b7d=0x0;for(const _0x2b6a74 of Object['values'](_0x7a90aa))_0x557b7d=Math['max'](_0x557b7d,_0x2b6a74['getBoundingClientRect']()['width']);let _0x539458=0x0;for(const _0x30a81b of Object['values'](_0x7a90aa))_0x539458+=_0x30a81b['getBoundingClientRect']()['height'];const _0x31f956=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x557b7d,'height':Math['min'](_0x539458,_0x31f956)};}(_0x28e0a4);_0x5282bf['show']({'id':'finalContentPreview','title':St(_0x5b3900,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x5b3900,{'dialogRects':_0x16a61b}),'onHide':()=>{_0x1ac76c['detachFromDom']();},'onShow':()=>{_0x1eb95b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x260ba5=>{const _0x363d74=this['_standarizeRootsData'](_0x260ba5,_0x1eb95b,_0x28e0a4);_0x5282bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x363d74,_0x1eb95b['config']['get']('trackChanges.preview.renderFunction'));}),_0x1ac76c=new _0x53523d(_0x5b3900,[_0x5282bf['view']]),_0x1ac76c['attachToDom'](),_0x1ac76c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1eb95b['once']('destroy',()=>{_0x1ac76c['detachFromDom']();});const _0xa90fec=_0x5282bf['view']['headerView']['class'];_0x5282bf['view']['headerView']['class']=_0xa90fec?_0xa90fec+'\x20ck-reset_all':'ck-reset_all',_0x5282bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5282bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1d26f5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16b15f=_0x1d26f5['previewMode'],_0x4a6a8e={};if('$labels'===_0x16b15f){for(const _0x2c635d of _0x1d26f5['getMergeFieldsIds']())_0x4a6a8e[_0x2c635d]=_0x1d26f5['getLabel'](_0x2c635d)||_0x2c635d;}else{const _0x483584='$defaultValues'===_0x16b15f?_0x1d26f5['getDefaultValues']():_0x1d26f5['getDataSetValues'](_0x16b15f,!0x0);for(const _0x579745 of Object['entries'](_0x483584)){const [_0x51f064,_0x40b46f]=_0x579745;_0x4a6a8e[_0x51f064]=null!==_0x40b46f?_0x40b46f:_0x1d26f5['getLabel'](_0x51f064)||_0x51f064;}}return{'mergeFieldsData':_0x4a6a8e};}['_standarizeRootsData'](_0x2fb404,_0x46da5b,_0x46f56b){let _0x738453;_0x738453='string'==typeof _0x2fb404?{[_0x46da5b['model']['document']['getRootNames']()[0x0]]:_0x2fb404}:_0x2fb404;const _0x134857=this['_fixMediaEmbeds'](_0x738453,_0x46da5b);return function(_0x207510,_0xd84fb9){for(const [_0x19db4a,_0x47baa5]of _0x207510)_0x47baa5['classes']=_0xd84fb9[_0x19db4a]['classList']['value']['replace']('ck-focused','');return _0x207510;}(this['_sortRoots'](_0x46da5b)['reduce']((_0x2102e0,_0x365e2e)=>(_0x2102e0['push']([_0x365e2e,{'content':_0x134857[_0x365e2e],'classes':''}]),_0x2102e0),[]),_0x46f56b);}['_fixMediaEmbeds'](_0x5845f6,_0x21a04f){if(!_0x21a04f['plugins']['has']('MediaEmbedEditing'))return _0x5845f6;const _0x438fd3=_0x21a04f['plugins']['get']('MediaEmbedEditing');for(const [_0x1ae67d,_0x41a8f0]of Object['entries'](_0x5845f6)){const _0x43eb2f=document['createElement']('div');_0x43eb2f['innerHTML']=_0x41a8f0,_0x43eb2f['querySelectorAll']('figure.media')['forEach'](_0x1803f3=>{const _0x2a93fb=_0x1803f3['querySelector']('oembed');if(_0x2a93fb){const _0x50b2e8=_0x2a93fb['getAttribute']('url');if(_0x50b2e8){const _0x4fa320=_0x438fd3['registry']['getMediaViewElement'](new ot(_0x21a04f['editing']['view']['document']),_0x50b2e8,{'elementName':'','renderForEditingView':!0x0}),_0x3fcdc2=document['createElement']('div');_0x3fcdc2['classList']['add']('ck-media__wrapper'),_0x4fa320['render'](_0x3fcdc2,_0x21a04f['editing']['view']['domConverter']),_0x2a93fb['replaceWith'](_0x3fcdc2);}}}),_0x5845f6[_0x1ae67d]=_0x43eb2f['innerHTML'];}return _0x5845f6;}['_sortRoots'](_0x2e55dd){if(!function(_0x2e5195){return void 0x0!==_0x2e5195['getRootsAttributes'];}(_0x2e55dd))return _0x2e55dd['model']['document']['getRootNames']();const _0x6ed79a=[],_0x437fa1=new Map();for(const _0x494c9c of _0x2e55dd['model']['document']['getRootNames']()){const _0x539d24=_0x2e55dd['editing']['view']['getDomRoot'](_0x494c9c)['getClientRects']()['item'](0x0);_0x6ed79a['push'](_0x494c9c),_0x437fa1['set'](_0x494c9c,_0x539d24);}return _0x6ed79a['sort']((_0x21f93a,_0x14252d)=>{const _0x298529=_0x437fa1['get'](_0x21f93a),_0x5b3f57=_0x437fa1['get'](_0x14252d);return _0x298529['y']-_0x5b3f57['y']||_0x298529['x']-_0x5b3f57['x'];}),_0x6ed79a;}},Bn=class extends _0x2dafdc{static get['requires'](){return[yn,_0x4dc3b7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c2d1f){super(_0x2c2d1f),_0x2c2d1f['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x2c2d1f['config']['define']('trackChanges.preview.renderFunction',(_0x535211,_0x58c4f5)=>{for(const _0x2e7043 of _0x58c4f5)_0x535211['appendChild'](_0x2e7043);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x32d1f9,PendingActions as _0x464ffe,Plugin as _0x545319}from'@ckeditor/ckeditor5-core';import{Annotations as _0x38af8e,Comments as _0x1873b8,CommentsRepository as _0x57e609,EditorAnnotations as _0x5a1951}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x1e6e4c,Collection as _0x5a0ddc,FocusTracker as _0x13a459,KeystrokeHandler as _0x5afe33,ObservableMixin as _0x4ab034,getEnvKeystrokeText as _0x45163b,insertToPriorityArray as _0x51947d,logWarning as _0x2bdfe0,priorities as _0x1623c5,uid as _0xf105bf}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x20195a,IconCancel as _0x1e262b,IconCheck as _0x5b571b,IconSparkle as _0x529964,IconTrackChanges as _0x566df5}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0xd3961e,Dialog as _0x238abc,FocusCycler as _0xa5cd60,ListSeparatorView as _0x53515d,MenuBarMenuListItemButtonView as _0x3253fc,MenuBarMenuListItemView as _0x3083a5,MenuBarMenuListView as _0x29adbf,MenuBarMenuView as _0x561bb8,SplitButtonView as _0x2cfed8,UIModel as _0x2360bd,View as _0x4d5a7b,ViewCollection as _0x3bd8b5,addListToDropdown as _0x26db00,createDropdown as _0x4b6d76,normalizeColorOptions as _0x41e231}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x33e495,CollaborationUserColor as _0x190dee,DocumentCompare as _0x41516b,FOCUS_ANNOTATION_KEYSTROKE as _0x408fe4,LateFocusButtonView as _0xc03681,PillView as _0x2a82f6,SuggestionsConversion as _0x4fbf2b,User as _0xe861df,UserView as _0x51ccdf,Users as _0x308bd2,fixElementSuggestionRange as _0x580763,getAllMarkersDomElementsSorted as _0x2796fc,getDateTimeFormatter as _0x28dc46,hashObject as _0x45c83d,sanitizeEditorConfig as _0x371361,setupThreadKeyboardNavigation as _0x2ca599,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{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x32d1f9{['_enabledCommands'];constructor(_0x1075ad,_0x28f66f){super(_0x1075ad),this['_enabledCommands']=_0x28f66f,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 _0x4ccc59 of this['editor']['commands']['commands']())_0x4ccc59['affectsData']&&!this['_enabledCommands']['has'](_0x4ccc59)&&_0x4ccc59['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12eb78 of this['editor']['commands']['commands']())_0x12eb78['affectsData']&&!this['_enabledCommands']['has'](_0x12eb78)&&_0x12eb78['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x32d1f9{['_suggestions'];constructor(_0x40af2b,_0x17c56b){super(_0x40af2b),this['_suggestions']=_0x17c56b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4ca57a){const _0x1e89b0=this['_suggestions']['get'](_0x4ca57a);if(!_0x1e89b0)throw new _0x1e6e4c('track-changes-accept-suggestion-not-found',this);const _0x238866=_0x1e89b0['getRanges']();this['editor']['model']['canEditAt'](_0x238866)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1e89b0);}},_t=class extends _0x32d1f9{['_suggestions'];constructor(_0x3009a5,_0x22bb91){super(_0x3009a5),this['_suggestions']=_0x22bb91,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa2ffe3){const _0x54175b=this['_suggestions']['get'](_0xa2ffe3);if(!_0x54175b)throw new _0x1e6e4c('track-changes-discard-suggestion-not-found',this);const _0x402886=_0x54175b['getRanges']();this['editor']['model']['canEditAt'](_0x402886)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x54175b);}};function pt(_0x2705e7,_0xf90ca5){let _0x2a564d='';return _0x2a564d+=_0x2705e7['split']('*')['map']((_0x1df608,_0x58018f)=>_0x58018f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x1df608)+'</span>':Lt(_0x1df608))['join'](''),_0xf90ca5&&(_0x2a564d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xf90ca5['value']+'\x22\x20title=\x22'+_0xf90ca5['title']+'\x22></span>'),_0x2a564d;}function Lt(_0x2c4161){const _0x296514=document['createElement']('span');return _0x296514['innerText']=_0x2c4161,_0x296514['innerHTML'];}function It(_0x245b86){return _0x245b86['sort']((_0x2f9b0d,_0x154769)=>'attribute'===_0x2f9b0d['type']&&'attribute'!==_0x154769['type']?-0x1:'attribute'!==_0x2f9b0d['type']&&'attribute'===_0x154769['type']?0x1:'deletion'==_0x2f9b0d['type']&&'deletion'!=_0x154769['type']?-0x1:'deletion'!=_0x2f9b0d['type']&&'deletion'==_0x154769['type']?0x1:0x0);}function At(_0x30b6e1,_0x44f733){let _0xcf0f89,_0x114745=0x0;const _0x523654=[],_0x50125b=_0x44f733['schema'];for(;_0x114745<_0x30b6e1['length'];){const _0x45efa9=_0x30b6e1[_0x114745],_0x5529ee=_0x30b6e1[_0x114745+0x1];_0xcf0f89||(_0xcf0f89=_0x44f733['createPositionBefore'](_0x45efa9)),bt(_0x44f733,_0x45efa9,_0x5529ee)||(_0x523654['push'](_0x44f733['createRange'](_0xcf0f89,_0x50125b['isObject'](_0x45efa9)?_0x44f733['createPositionAfter'](_0x45efa9):_0x44f733['createPositionAt'](_0x45efa9,'end'))),_0xcf0f89=null),_0x114745++;}return _0x523654;}function bt(_0x399217,_0xea5acf,_0x2f57ba){if(!_0x2f57ba)return!0x1;const _0x2a19f7=_0x399217['createPositionAfter'](_0xea5acf),_0x3bf3b3=_0x399217['createPositionBefore'](_0x2f57ba);return _0x2a19f7['isTouching'](_0x3bf3b3);}function kt(_0x525857,_0x7b8272,_0x2ae1fd){for(;_0x2ae1fd['length'];){const _0x1c5fe1=_0x2ae1fd['splice'](0x0,0x64);_0x525857['change'](()=>{for(const _0xb9a1ce of _0x1c5fe1)_0xb9a1ce['isInContent']&&_0x7b8272['execute'](_0xb9a1ce['id']);});}}var Ct=class extends _0x32d1f9{['_command'];['_suggestions'];constructor(_0x5e2e56,_0x1ec0ff,_0x3b314d){super(_0x5e2e56),this['_command']=_0x1ec0ff,this['_suggestions']=_0x3b314d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xd0ac3=Array['from'](this['_suggestions']['values']())['some'](_0x12123c=>_0x12123c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xd0ac3;}['execute'](){const _0x376893=It(Array['from'](this['_suggestions']['values']()));for(const _0x6646dc of _0x376893){const _0x2aa322=_0x6646dc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2aa322))return;}kt(this['editor']['model'],this['_command'],_0x376893);}},Rt=class extends _0x32d1f9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x299f5a,_0x4516cb,_0x2d24d4){super(_0x299f5a),this['_command']=_0x4516cb,this['_suggestions']=_0x2d24d4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3d0045=this['editor']['model']['document']['selection'],_0x2326f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5008d9,_0x40091f){const _0x427865=Array['from'](_0x5008d9['getRanges']()),_0x3b50f3=new Set();for(const _0x34a5c3 of _0x40091f)if(_0x34a5c3['isInContent']){for(const _0x58d278 of _0x427865)for(const _0x3c5c1b of _0x34a5c3['getRanges']())(_0x58d278['isIntersecting'](_0x3c5c1b)||_0x5008d9['isCollapsed']&&!_0x34a5c3['isMultiRange']&&_0x34a5c3['next']&&_0x3c5c1b['end']['isTouching'](_0x58d278['start']))&&_0x3b50f3['add'](_0x34a5c3);}return _0x3b50f3;}(_0x3d0045,_0x2326f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1f8482=It(Array['from'](this['_selectedSuggestions']));for(const _0x32e447 of _0x1f8482){const _0x15358e=_0x32e447['getRanges']();if(!this['editor']['model']['canEditAt'](_0x15358e))return;}kt(this['editor']['model'],this['_command'],_0x1f8482);}};const Nt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ab034();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x7156af,_0x511dba){super(),this['id']=_0x511dba['id'],this['type']=_0x511dba['type'],this['subType']=_0x511dba['subType']||null,this['author']=_0x511dba['author'],this['creator']=_0x511dba['creator']||_0x511dba['author'],this['data']=null,this['_originalSuggestionId']=_0x511dba['originalSuggestionId']||null,this['_model']=_0x7156af,this['_onAccept']=_0x511dba['onAccept'],this['_onDiscard']=_0x511dba['onDiscard'],this['_onAttributesChange']=_0x511dba['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x511dba['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 _0x57c89d=this;for(;_0x57c89d['previous'];)_0x57c89d=_0x57c89d['previous'];return _0x57c89d;}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'](_0x2de7cb){this['_markerNames']['add'](_0x2de7cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1a24d4=>this['_model']['markers']['get'](_0x1a24d4))['filter'](_0x5b8ca3=>_0x5b8ca3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x143a3e=>{for(const _0x4547c1 of this['getMarkers']())_0x143a3e['removeMarker'](_0x4547c1);}),this['_markerNames']['clear']();}['removeMarker'](_0x14e3a3){this['_model']['change'](_0xda170a=>{_0xda170a['removeMarker'](_0x14e3a3);}),this['_markerNames']['delete'](_0x14e3a3);}['addRange'](_0x39dcf1){const _0x2bea8c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x2bea8c),this['_model']['change'](_0x27faf3=>{_0x27faf3['addMarker'](_0x2bea8c,{'range':_0x39dcf1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2aef95){for(const _0x4a770c of this['getRanges']())if(_0x4a770c['isIntersecting'](_0x2aef95))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f8c14=>_0x4f8c14['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5d88a9,_0x3be294)=>[..._0x5d88a9,..._0x3be294['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x32474b=this['getRanges']();if(0x1!=_0x32474b['length'])return null;const _0x4a5dac=_0x32474b[0x0],_0x1b232f=_0x4a5dac['start']['nodeAfter'],_0x54605a=_0x4a5dac['end']['nodeBefore'];return _0x1b232f instanceof it?_0x1b232f!=_0x54605a?null:_0x1b232f: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 _0x2288f1=[];let _0x207490=this['head'];for(;_0x207490;)_0x2288f1['push'](_0x207490),_0x207490=_0x207490['next'];return _0x2288f1;}['setAttribute'](_0x4457aa,_0x481db5){const _0x2db122=at(this['attributes']);ut(_0x2db122,_0x4457aa,_0x481db5),ct(_0x2db122,this['attributes'])||(this['attributes']=_0x2db122,this['_onAttributesChange'](_0x2db122));}['removeAttribute'](_0x66c341){const _0x1fbf8a=at(this['attributes']);dt(_0x1fbf8a,_0x66c341),ct(_0x1fbf8a,this['attributes'])||(this['attributes']=_0x1fbf8a,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 _0xf105bf()['substr'](0x1,0x5);}};function St(_0x466263,_0x12240a,_0x46b49a){const _0x42f1a9=_0x466263['t'],t=_0x466263['t'];switch(_0x12240a){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',_0x46b49a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46b49a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46b49a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46b49a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46b49a);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',_0x46b49a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46b49a);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',_0x46b49a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46b49a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46b49a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46b49a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46b49a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46b49a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46b49a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46b49a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46b49a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46b49a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46b49a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46b49a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46b49a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46b49a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46b49a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46b49a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46b49a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46b49a);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'},_0x46b49a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46b49a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46b49a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46b49a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46b49a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46b49a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46b49a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46b49a);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'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46b49a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46b49a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46b49a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46b49a);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'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46b49a);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x46b49a);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x46b49a);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x46b49a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46b49a);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'},_0x46b49a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46b49a);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 _0x42f1a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46b49a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x42f1a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46b49a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46b49a);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'},_0x46b49a);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'},_0x46b49a);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'},_0x46b49a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12240a;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3baae6,_0x4b8818){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3baae6,this['_locale']=_0x4b8818;}['getDescriptions'](_0x22cb43){const _0x3d6036=[],_0x287b58=new Set(),_0x614124=new Set();for(let _0x1c2cea=0x0;_0x1c2cea<_0x22cb43['length'];_0x1c2cea++){const _0x4e3dc1=_0x22cb43[_0x1c2cea];if(!_0x4e3dc1['isInContent'])continue;const _0x5f5b96=this['_handleCustomCallbackDescription'](_0x4e3dc1);if(_0x5f5b96){if(null!=_0x4e3dc1['subType']){if(_0x287b58['has'](_0x4e3dc1['subType']))continue;_0x287b58['add'](_0x4e3dc1['subType']);}_0x3d6036['push'](_0x5f5b96);}else{if('attribute'==_0x4e3dc1['type']){const _0x4e3773=_0x4e3dc1['data']['key'];if(_0x614124['has'](_0x4e3773))continue;_0x614124['add'](_0x4e3dc1['data']['key']),'$elementName'==_0x4e3773?this['_handleRenameSuggestionDescription'](_0x3d6036,_0x4e3dc1):this['_handleAttributeSuggestionDescription'](_0x3d6036,_0x4e3dc1);continue;}'insertion'!=_0x4e3dc1['type']&&'deletion'!=_0x4e3dc1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3d6036,_0x4e3dc1,_0x22cb43[_0x1c2cea+0x1]);}}return this['_resolveDescriptionItems'](_0x3d6036);}['registerDescriptionCallback'](_0x2ab96f){this['_customCallbacks']['push'](_0x2ab96f);}['registerElementLabel'](_0xa37cf2,_0x4b3613,_0x5d53af=_0x1623c5['normal']){'function'==typeof _0xa37cf2?_0x51947d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa37cf2,'label':_0x4b3613,'priority':_0x5d53af}):this['_itemLabels']['set'](_0xa37cf2,_0x4b3613);}['registerAttributeLabel'](_0x14effc,_0x37e84b){this['_attributeLabels']['set'](_0x14effc,_0x37e84b);}['getItemLabel'](_0x8478da,_0x4351a7=0x1){let _0x507344;for(const _0x51a712 of this['_itemLabelsCallbacks'])if(_0x51a712['matchingCallback'](_0x8478da)){_0x507344=_0x51a712['label'];break;}return _0x507344||(_0x507344=this['_itemLabels']['get'](_0x8478da['name'])),_0x507344?_0x507344(_0x4351a7):0x1!==_0x4351a7?_0x4351a7+'\x20'+_0x8478da['name']+'s':''+_0x8478da['name'];}['_addDescriptionItems'](_0x18f769,_0x5dfc26){const _0x5b29ea=_0x5dfc26['getFirstRange']()['getWalker'](),_0x5bdb71='insertion'==_0x5dfc26['type']?'add':'remove';for(const _0x5b6e20 of _0x5b29ea){const _0x153217=_0x5b6e20['item'],_0x40ae27=_0x18f769[_0x18f769['length']-0x1];if(_0x153217['is']('$textProxy'))_0x40ae27&&_0x40ae27['type']['indexOf']('Container')>-0x1&&_0x18f769['pop'](),_0x40ae27&&'text'==_0x40ae27['type']?_0x40ae27[_0x5bdb71]+=_0x153217['data']:_0x18f769['push']({'type':'text','add':'add'==_0x5bdb71?_0x153217['data']:'','remove':'remove'==_0x5bdb71?_0x153217['data']:''});else{if(this['_schema']['isObject'](_0x153217)){const _0x1c0763=_0x153217;if(_0x40ae27&&_0x40ae27['type']['indexOf']('Container')>-0x1&&_0x18f769['pop'](),'elementEnd'==_0x5b6e20['type'])continue;_0x40ae27&&_0x40ae27['type']==_0x5bdb71+'Object'&&_0x40ae27['element']['name']==_0x1c0763['name']?_0x40ae27['quantity']++:_0x18f769['push']({'type':_0x5bdb71+'Object','element':_0x1c0763,'quantity':0x1}),_0x5b29ea['skip'](_0x4469dc=>!('elementEnd'==_0x4469dc['type']&&_0x4469dc['item']==_0x153217));}else{if(this['_schema']['checkChild'](_0x153217,'$text')||_0x153217['is']('element','softBreak')){const _0x3b3132=_0x153217;if('add'==_0x5bdb71&&'elementStart'==_0x5b6e20['type']||'remove'==_0x5bdb71&&'elementEnd'==_0x5b6e20['type'])continue;if(_0x40ae27&&-0x1==_0x40ae27['type']['indexOf']('Container')){'text'==_0x40ae27['type']&&(_0x40ae27[_0x5bdb71]+='\x0a');continue;}let _0x16baa5;if(_0x16baa5='add'==_0x5bdb71?_0x3b3132['nextSibling']&&!this['_schema']['isObject'](_0x3b3132['nextSibling'])?_0x3b3132['nextSibling']:null:_0x3b3132['previousSibling']&&!this['_schema']['isObject'](_0x3b3132['previousSibling'])?_0x3b3132['previousSibling']:null,_0x3b3132['isEmpty']||_0x16baa5&&_0x16baa5['isEmpty']){const _0x540028=_0x16baa5&&_0x16baa5['isEmpty']?_0x16baa5:_0x3b3132;_0x40ae27&&_0x40ae27['type']==_0x5bdb71+'EmptyContainer'&&_0x40ae27['element']['name']==_0x540028['name']?_0x40ae27['quantity']++:_0x18f769['push']({'type':_0x5bdb71+'EmptyContainer','element':_0x540028,'quantity':0x1});}else _0x18f769['push']({'type':_0x5bdb71+'Container','element':_0x3b3132});}}}}}['_resolveDescriptionItems'](_0x5d7798){const _0x545474=this['_locale'],_0xed3eee=[],_0x1ff053=[],_0x1bc4a2=[];for(const _0xd27731 of _0x5d7798)switch(_0xd27731['type']){case'text':if(_0xd27731['add']=_0xd27731['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xd27731['remove']=_0xd27731['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xd27731['add']&&''!=_0xd27731['remove']){_0xed3eee['push']({'type':'replace','content':St(_0x545474,'REPLACE_TEXT',['\x22'+_0xd27731['remove']+'\x22','\x22'+_0xd27731['add']+'\x22'])});continue;}if(null!=_0xd27731['add']['match'](/^ +$/)){_0xed3eee['push']({'type':'insertion','content':St(_0x545474,'*Insert:*\x20%0',St(_0x545474,'ELEMENT_SPACE',_0xd27731['add']['length']))});continue;}if(null!=_0xd27731['remove']['match'](/^ +$/)){_0xed3eee['push']({'type':'deletion','content':St(_0x545474,'*Remove:*\x20%0',St(_0x545474,'ELEMENT_SPACE',_0xd27731['remove']['length']))});continue;}if(''!=_0xd27731['add']){_0xed3eee['push']({'type':'insertion','content':St(_0x545474,'*Insert:*\x20%0','\x22'+_0xd27731['add']+'\x22')});continue;}_0xed3eee['push']({'type':'deletion','content':St(_0x545474,'*Remove:*\x20%0','\x22'+_0xd27731['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xed3eee['push']({'type':'insertion','content':St(_0x545474,'*Insert:*\x20%0',this['getItemLabel'](_0xd27731['element'],_0xd27731['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xed3eee['push']({'type':'deletion','content':St(_0x545474,'*Remove:*\x20%0',this['getItemLabel'](_0xd27731['element'],_0xd27731['quantity']))});continue;case'addContainer':_0xed3eee['push']({'type':'insertion','content':St(_0x545474,'*Split:*\x20%0',this['getItemLabel'](_0xd27731['element'],_0xd27731['quantity']))});continue;case'removeContainer':_0xed3eee['push']({'type':'deletion','content':St(_0x545474,'*Merge:*\x20%0',this['getItemLabel'](_0xd27731['element'],_0xd27731['quantity']))});continue;case'addFormat':_0x1ff053['push'](_0xd27731['key']);continue;case'removeFormat':_0x1bc4a2['push'](_0xd27731['key']);continue;default:_0xed3eee['push'](_0xd27731);}if(_0x1ff053['length']){const _0x278f4f=_0x1ff053['map'](_0x5c6714=>this['_attributeLabels']['has'](_0x5c6714)?this['_attributeLabels']['get'](_0x5c6714):_0x5c6714)['join'](',\x20');_0xed3eee['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x278f4f)});}if(_0x1bc4a2['length']){const _0x25c0e7=_0x1bc4a2['map'](_0x4661e2=>this['_attributeLabels']['has'](_0x4661e2)?this['_attributeLabels']['get'](_0x4661e2):_0x4661e2)['join'](',\x20');_0xed3eee['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x25c0e7)});}return _0xed3eee;}['_handleCustomCallbackDescription'](_0x2e4cd8){for(const _0x3517b1 of this['_customCallbacks']){const _0x30435c=_0x3517b1(_0x2e4cd8);if(_0x30435c&&'type'in _0x30435c)return _0x30435c;}}['_handleAttributeSuggestionDescription'](_0x56f6b1,_0x4e9b2a){const _0x2d445d=_0x4e9b2a['data'],_0x4fe5a3=void 0x0===_0x2d445d['newValue']?'removeFormat':'addFormat';_0x56f6b1['push']({'type':_0x4fe5a3,'key':_0x2d445d['key']});}['_handleRenameSuggestionDescription'](_0x437b2d,_0x57f91a){_0x437b2d['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x57f91a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x275b96,_0x25eb16,_0x55ed30){if(this['_addDescriptionItems'](_0x275b96,_0x25eb16),_0x55ed30&&_0x55ed30['getFirstRange']()&&!_0x25eb16['getFirstRange']()['end']['isEqual'](_0x55ed30['getFirstRange']()['start'])){const _0x36d0b2=_0x275b96[_0x275b96['length']-0x1],_0x36d8c9='insertion'==_0x25eb16['type']?'add':'remove';_0x36d0b2&&'text'==_0x36d0b2['type']&&(_0x36d0b2[_0x36d8c9]+='\x0a');}}},Ot=class extends _0x545319{['afterInit'](){const _0x2951c2=this['editor'],_0x44358a=_0x2951c2['plugins']['get']('TrackChangesEditing');_0x2951c2['commands']['get']('showAIAssistant')&&_0x44358a['enableCommand']('showAIAssistant');}},wt=class extends _0x545319{['afterInit'](){const _0x58e2bc=this['editor'],_0x337ded=_0x58e2bc['plugins']['get']('TrackChangesEditing');_0x58e2bc['commands']['get']('toggleAi')&&_0x337ded['enableCommand']('toggleAi');}},Ft=class extends _0x545319{['afterInit'](){const _0x4a1378=this['editor'],_0x516a69=_0x4a1378['plugins']['get']('TrackChangesEditing');_0x4a1378['commands']['get']('aiQuickAction')&&_0x516a69['enableCommand']('aiQuickAction');}},Bt=class extends _0x545319{['afterInit'](){const _0x570994=this['editor'],_0x44f1fa=_0x570994['locale'];if(!_0x570994['plugins']['has']('AlignmentEditing'))return;const _0x226413=_0x570994['plugins']['get']('TrackChangesEditing');_0x226413['enableDefaultAttributesIntegration']('alignment'),_0x226413['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x44f1fa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcb5de1=this['editor'],_0x31c345=_0xcb5de1['locale'];_0xcb5de1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa2ff=>{if('formatBlock'!=_0x4fa2ff['type'])return;const {data:_0x437bd6}=_0x4fa2ff;if(_0x437bd6&&'alignment'==_0x437bd6['commandName']){const _0x3caf86=_0x437bd6['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x31c345,'*Format:*\x20%0',function(_0x39159d){switch(_0x39159d){case'left':return St(_0x31c345,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x31c345,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x31c345,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x31c345,'FORMAT_JUSTIFY_TEXT');}}(_0x3caf86))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x545319{['afterInit'](){const _0x234167=this['editor'],_0x2cbf79=_0x234167['plugins']['get']('TrackChangesEditing'),_0x378fa9=_0x234167['locale'];for(const _0x480969 of vt){if(!_0x234167['plugins']['has'](_0x480969))continue;const _0x1f01f4=_0x480969['slice'](0x0,-0x7)['toLowerCase'](),_0x569498='FORMAT_'+_0x1f01f4['toUpperCase']();_0x2cbf79['enableDefaultAttributesIntegration'](_0x1f01f4),_0x2cbf79['descriptionFactory']['registerAttributeLabel'](_0x1f01f4,St(_0x378fa9,_0x569498));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5974f3=this['editor'],_0x414fb9=_0x5974f3['locale'],_0x267a1a=_0x5974f3['plugins']['get']('TrackChangesEditing');function _0x21f033(_0x2c999f,_0xdfd6e5){_0x267a1a['descriptionFactory']['registerDescriptionCallback'](_0x24ad10=>{if('formatInline'!=_0x24ad10['type'])return;const {data:_0x384680}=_0x24ad10;return _0x384680&&_0x384680['commandName']===_0x2c999f?_0x384680['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x414fb9,'*Format:*\x20%0',_0xdfd6e5)}:{'type':'format','content':St(_0x414fb9,'*Remove\x20format:*\x20%0',_0xdfd6e5)}:void 0x0;});}_0x21f033('bold',St(_0x414fb9,'FORMAT_BOLD')),_0x21f033('italic',St(_0x414fb9,'FORMAT_ITALIC')),_0x21f033('underline',St(_0x414fb9,'FORMAT_UNDERLINE')),_0x21f033('code',St(_0x414fb9,'FORMAT_CODE')),_0x21f033('strikethrough',St(_0x414fb9,'FORMAT_STRIKETHROUGH')),_0x21f033('subscript',St(_0x414fb9,'FORMAT_SUBSCRIPT')),_0x21f033('superscript',St(_0x414fb9,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x545319{['afterInit'](){const _0x423ec7=this['editor'],_0x584010=_0x423ec7['locale'];if(!_0x423ec7['plugins']['has']('BlockQuoteEditing'))return;const _0x3fee4d=_0x423ec7['plugins']['get']('TrackChangesEditing'),_0x5cf9e8=this['editor']['commands']['get']('blockQuote');_0x3fee4d['enableCommand']('blockQuote',(_0x423733,_0x39c8da={})=>{const _0x37c388=this['editor']['model']['document']['selection'],_0x225fbd=_0x39c8da&&void 0x0!==_0x39c8da['forceValue']?_0x39c8da['forceValue']:!_0x5cf9e8['value'];let _0x2fd305=[];_0x2fd305=At(_0x225fbd?Array['from'](_0x37c388['getSelectedBlocks']())['filter'](_0x569eea=>Pt(_0x569eea)||function(_0x541ed1,_0x39a302){const _0x294ff5=_0x39a302['createContext'](_0x541ed1['parent']);return!!_0x39a302['checkChild'](_0x294ff5,'blockQuote')&&!!_0x39a302['checkChild'](_0x294ff5['push']('blockQuote'),_0x541ed1);}(_0x569eea,this['editor']['model']['schema'])):Array['from'](_0x37c388['getSelectedBlocks']())['filter'](_0x2e89ae=>Pt(_0x2e89ae)),_0x423ec7['model']),_0x423ec7['model']['change'](()=>{for(const _0x1c7fc3 of _0x2fd305)_0x3fee4d['markBlockFormat'](_0x1c7fc3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x225fbd}]});});}),_0x3fee4d['descriptionFactory']['registerDescriptionCallback'](_0xc35e5e=>{const {data:_0xcd3532}=_0xc35e5e;if(_0xcd3532&&'blockQuote'==_0xcd3532['commandName']){const _0x12a5bb=St(_0x584010,'ELEMENT_BLOCK_QUOTE');return _0xcd3532['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x584010,'*Set\x20format:*\x20%0',_0x12a5bb)}:{'type':'format','content':St(_0x584010,'*Remove\x20format:*\x20%0',_0x12a5bb)};}});}};function Pt(_0x3a4e0b){return'blockQuote'==_0x3a4e0b['parent']['name'];}var xt=class extends _0x545319{['afterInit'](){const _0x4512da=this['editor'],_0x467848=_0x4512da['locale'],_0x2e6ddd=_0x4512da['plugins']['get']('TrackChangesEditing');_0x4512da['plugins']['has']('BookmarkEditing')&&(_0x2e6ddd['enableCommand']('insertBookmark'),_0x2e6ddd['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e6ddd['descriptionFactory']['registerDescriptionCallback'](_0x1427c2=>{if('insertion'!=_0x1427c2['type']&&'deletion'!=_0x1427c2['type']&&'attribute'!=_0x1427c2['type'])return;const _0x118b7d=_0x1427c2['getContainedElement']();if(null==_0x118b7d)return;if(!_0x118b7d['is']('element','bookmark'))return;const _0x716d9a=_0x118b7d['getAttribute']('bookmarkId');if('insertion'==_0x1427c2['type'])return{'type':'insertion','content':St(_0x467848,'*Insert:*\x20%0','\x22'+_0x716d9a+'\x22\x20'+St(_0x467848,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1427c2['type'])return{'type':'deletion','content':St(_0x467848,'*Remove:*\x20%0','\x22'+_0x716d9a+'\x22\x20'+St(_0x467848,'ELEMENT_BOOKMARK'))};const {data:_0x1bd997}=_0x1427c2;return _0x1bd997&&'bookmarkId'==_0x1bd997['key']?{'type':'format','content':St(_0x467848,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bd997['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x545319{['afterInit'](){const _0x1f1337=this['editor'];_0x1f1337['plugins']['has']('CaseChange')&&(_0x1f1337['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1f1337['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1f1337['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x545319{['afterInit'](){const _0x5d6c14=this['editor'];_0x5d6c14['commands']['get']('ckbox')&&_0x5d6c14['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x545319{['afterInit'](){const _0x43783a=this['editor'];if(!_0x43783a['plugins']['has']('CodeBlock'))return;const _0x4b8af5=_0x43783a['plugins']['get']('TrackChangesEditing'),_0x5ac766=_0x43783a['locale'],_0x1f4007=_0x43783a['config']['get']('codeBlock')['languages'],_0x51ffd2=_0x43783a['commands']['get']('codeBlock');_0x4b8af5['enableCommand']('indentCodeBlock'),_0x4b8af5['enableCommand']('outdentCodeBlock'),_0x4b8af5['enableCommand']('codeBlock',(_0x5cf8c7,_0xe7e903={})=>{const _0x4a2e4f=_0x43783a['model'],_0x51cf30=_0x43783a['model']['document']['selection'],_0x35c554=_0xe7e903&&void 0x0!==_0xe7e903['forceValue']?_0xe7e903['forceValue']:!_0x51ffd2['value'];let _0x1b3c6e;_0xe7e903['language']||(_0xe7e903['language']=_0x1f4007[0x0]['language']),_0x1b3c6e=_0x35c554?Array['from'](_0x51cf30['getSelectedBlocks']())['filter'](_0x3abb6a=>{return Vt(_0x3abb6a)||(_0x5c73da=_0x3abb6a,_0x2564ff=_0x4a2e4f['schema'],!_0x5c73da['is']('rootElement')&&!_0x2564ff['isLimit'](_0x5c73da)&&_0x2564ff['checkChild'](_0x5c73da['parent'],'codeBlock'));var _0x5c73da,_0x2564ff;}):Array['from'](_0x51cf30['getSelectedBlocks']())['filter'](_0x5f0731=>Vt(_0x5f0731));const _0x1611ec=At(_0x1b3c6e,_0x4a2e4f);_0x4a2e4f['change'](()=>{for(const _0x406aef of _0x1611ec)_0x4b8af5['markBlockFormat'](_0x406aef,{'commandName':'codeBlock','commandParams':[{..._0xe7e903,'forceValue':_0x35c554}],'formatGroupId':'blockName'});});}),(_0x4b8af5['descriptionFactory']['registerElementLabel']('codeBlock',_0x20c573=>St(_0x5ac766,'ELEMENT_CODE_BLOCK',_0x20c573)),_0x4b8af5['descriptionFactory']['registerDescriptionCallback'](_0x4a3648=>{if('formatBlock'!=_0x4a3648['type'])return;const _0x145d85=_0x5ac766['t'],{data:_0x416b0d}=_0x4a3648;if(!_0x416b0d||'codeBlock'!=_0x416b0d['commandName'])return;const _0x401f5f=_0x416b0d['commandParams'][0x0]['language'],_0x293dbb=_0x145d85(_0x1f4007['find'](_0x3229bc=>_0x3229bc['language']===_0x401f5f)['label'])['toLowerCase']();return _0x416b0d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5ac766,'*Set\x20format:*\x20%0',St(_0x5ac766,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x293dbb+')')}:{'type':'format','content':St(_0x5ac766,'*Remove\x20format:*\x20%0',St(_0x5ac766,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x5123e2){return'codeBlock'==_0x5123e2['name'];}var Wt=class extends _0x545319{['afterInit'](){const _0x26a134=this['editor'];_0x26a134['plugins']['has']('CommentsEditing')&&_0x26a134['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x545319{static get['requires'](){return[ht];}['init'](){const _0x575c26=this['editor'],_0x32b484=_0x575c26['plugins']['get']('TrackChangesEditing');_0x32b484['enableCommand']('delete');const _0xda49c6=_0x575c26['commands']['get']('deleteForward');_0x32b484['enableCommand']('deleteForward',(_0xb6f229,_0x3c61a7={})=>{const _0x4b6367=_0x575c26['model']['createSelection'](_0x575c26['model']['document']['selection']);_0x4b6367['isCollapsed']&&_0x575c26['model']['modifySelection'](_0x4b6367,{'direction':'forward','unit':_0x3c61a7['unit']});const _0x3254c7=_0x4b6367['getFirstRange'](),_0x285810=rt['fromRange'](_0x3254c7);let _0x4ce79b;_0xb6f229(_0x3c61a7),_0x4ce79b='$graveyard'==_0x285810['root']['rootName']?_0x575c26['model']['createRange'](_0x3254c7['start']):_0x575c26['model']['createRange'](_0x285810['start'],_0x285810['end']),_0x285810['detach'](),_0x575c26['model']['enqueueChange'](_0xda49c6['buffer']['batch'],_0x3438d8=>{_0xda49c6['buffer']['lock'](),_0x3438d8['setSelection'](_0x3438d8['createRange'](_0x4ce79b['end'])),_0xda49c6['buffer']['unlock']();});});}},Kt=class extends _0x545319{['afterInit'](){const _0x1ca1d0=this['editor'];if(!_0x1ca1d0['plugins']['has']('ListEditing'))return;const _0x39c62b=_0x1ca1d0['locale'],_0x1190da=_0x1ca1d0['plugins']['get']('TrackChangesEditing'),_0x243c9c=_0x1ca1d0['plugins']['has']('TodoListEditing'),_0x38c65b=!!_0x1ca1d0['config']['get']('list.multiBlock');function _0x812a21(_0x15b881){return{'type':'format','content':''+St(_0x39c62b,'*Set\x20format:*\x20%0',_0x15b881)};}function _0x60fae7(_0x5d6e77){return{'type':'format','content':''+St(_0x39c62b,'*Remove\x20format:*\x20%0',_0x5d6e77)};}_0x1190da['enableDefaultAttributesIntegration']('numberedList'),_0x1190da['enableDefaultAttributesIntegration']('bulletedList'),_0x1190da['enableDefaultAttributesIntegration']('customNumberedList'),_0x1190da['enableDefaultAttributesIntegration']('customBulletedList'),_0x1190da['enableDefaultAttributesIntegration']('indentList'),_0x1190da['enableDefaultAttributesIntegration']('outdentList'),_0x1190da['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1190da['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38c65b&&(_0x1190da['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1190da['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x243c9c&&(_0x1190da['enableDefaultAttributesIntegration']('todoList'),_0x1190da['enableDefaultAttributesIntegration']('checkTodoList'),_0x1190da['descriptionFactory']['registerDescriptionCallback'](_0x41e568=>{const {data:_0x1d8aa2}=_0x41e568;if(_0x1d8aa2&&'todoListChecked'==_0x1d8aa2['key'])return{'type':'format','content':_0x1d8aa2['newValue']?St(_0x39c62b,'*Check\x20item*'):St(_0x39c62b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x52b57b=>{if(_0x52b57b['batch']['isUndo'])return!0x1;let _0x4d751e=!0x1;const _0xc9d72c=_0x1190da['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bd3d9=>'todoListChecked'===_0x1190da['_getAttributeKey'](_0x5bd3d9));for(const _0xa00f56 of _0xc9d72c)'todo'!=_0xa00f56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1190da['_findSuggestions'](_0xa00f56['getFirstRange'](),'attribute')['find'](_0x2dbfa6=>'listType'===_0x1190da['_getAttributeKey'](_0x2dbfa6['suggestion']))||(_0x52b57b['removeMarker'](_0xa00f56['getFirstMarker']()),_0x4d751e=!0x0));return _0x4d751e;})),_0x1190da['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x39c62b,'FORMAT_INDENT'));const _0x228b65={'type':'format','content':''};_0x1190da['descriptionFactory']['registerDescriptionCallback'](_0x5aa5da=>{const {data:_0x21c617}=_0x5aa5da;if(!_0x21c617||'listType'!=_0x21c617['key'])return;let _0xd2ff4c=_0x5aa5da['head'];for(;_0xd2ff4c;){if(_0xd2ff4c['data']&&(('listStyle'==_0xd2ff4c['data']['key']||'listMarkerStyle'==_0xd2ff4c['data']['key'])&&(_0xd2ff4c['data']['newValue']&&'default'!=_0xd2ff4c['data']['newValue']||'default'!=_0xd2ff4c['data']['oldValue']&&!_0x21c617['newValue'])||!_0x38c65b&&'$elementName'==_0xd2ff4c['data']['key']))return _0x228b65;_0xd2ff4c=_0xd2ff4c['next'];}if(null==_0x21c617['newValue'])switch(_0x21c617['oldValue']){case'bulleted':return _0x60fae7(St(_0x39c62b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x60fae7(St(_0x39c62b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x60fae7(St(_0x39c62b,'ELEMENT_TODO_LIST'));}switch(_0x21c617['newValue']){case'bulleted':return _0x812a21(St(_0x39c62b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x812a21(St(_0x39c62b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x812a21(St(_0x39c62b,'ELEMENT_TODO_LIST'));}}),_0x1190da['descriptionFactory']['registerDescriptionCallback'](_0x25064f=>{const {data:_0x42d7a7}=_0x25064f;if(_0x42d7a7&&'listIndent'==_0x42d7a7['key'])return null==_0x42d7a7['newValue']||null==_0x42d7a7['oldValue']&&0x0==_0x42d7a7['newValue']?_0x228b65:void 0x0;}),_0x1190da['descriptionFactory']['registerDescriptionCallback'](_0x2501bf=>{if('attribute'!=_0x2501bf['type'])return;const {data:_0x14999b}=_0x2501bf;if(!_0x14999b||'listItemId'!=_0x14999b['key'])return;const _0x49687b=zt(_0x2501bf);return'newValue'==_0x49687b?{'type':'format','content':St(_0x39c62b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49687b?{'type':'format','content':St(_0x39c62b,'*Split:*\x20list\x20item')}:_0x228b65;}),_0x1ca1d0['model']['document']['registerPostFixer'](_0x1c86e7=>this['listItemIdFixer'](_0x1c86e7)),_0x1ca1d0['model']['document']['registerPostFixer'](_0x361222=>this['noTrackChangesFixer'](_0x361222)),_0x1ca1d0['model']['document']['on']('change:data',(_0x40866e,_0x53e334)=>{if(_0x53e334['isUndo']||!_0x53e334['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5358b4){if(_0x5358b4['batch']['isUndo']||!_0x5358b4['batch']['isLocal'])return!0x1;let _0x1d5a5f=!0x1;const _0x1c0c64=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x88fa0b=>_0x88fa0b['data']&&'listItemId'==_0x88fa0b['data']['key'])['filter'](_0x4b7acd=>_0x4b7acd['data']['newValue']&&_0x4b7acd['data']['oldValue']);for(const _0x2a220b of _0x1c0c64)zt(_0x2a220b)||(_0x5358b4['removeMarker'](_0x2a220b['getFirstMarker']()),_0x1d5a5f=!0x0);return _0x1d5a5f;}['noTrackChangesFixer'](_0x564dc3){if(_0x564dc3['batch']['isUndo']||!_0x564dc3['batch']['isLocal'])return!0x1;const _0x55d95e=this['editor']['model']['document']['differ'],_0x3e337f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3e337f['trackChangesCommand']['value'])return!0x1;let _0x3e4ee6=!0x1;const _0x2f9548=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x451f26=_0x55d95e['getChanges']()['filter'](_0x593a5a=>'attribute'==_0x593a5a['type'])['filter'](_0x11a9e7=>_0x2f9548['has'](_0x11a9e7['attributeKey']));if(0x0==_0x451f26['length'])return _0x3e4ee6;const _0x1881ea=new Set(_0x55d95e['getMarkersToAdd']()['filter'](_0x1acbdc=>{if(!_0x1acbdc['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x45bc56=tt(_0x1acbdc['name'])['subType']['split']('|')[0x0];return _0x2f9548['has'](_0x45bc56);})['map'](_0x453f24=>tt(_0x453f24['name'])['id']));for(const _0x1959c5 of _0x451f26){const _0x19711e=_0x3e337f['_findSuggestions'](_0x1959c5['range'],'attribute')['filter'](_0x9ac849=>{if(_0x9ac849['meta']['isNextTo'])return!0x1;if(_0x1881ea['has'](_0x9ac849['suggestion']['id']))return!0x1;const _0x3cedc3=_0x3e337f['_getAttributeKey'](_0x9ac849['suggestion']);return _0x2f9548['has'](_0x3cedc3);})['map'](_0xf3d2ed=>_0xf3d2ed['suggestion']);if(_0x19711e['length']){for(const _0x216836 of _0x19711e)_0x564dc3['removeMarker'](_0x216836['getFirstMarker']());_0x3e4ee6=!0x0;}}return _0x3e4ee6;}['assureChains'](){const _0xdd1c00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ae53b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4e5679;const _0x4a9aaa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x569f90=>{if(_0x569f90['data']['oldRange']||!_0x569f90['data']['newRange'])return null;if(!_0x569f90['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xfe8bb0}=tt(_0x569f90['name']);if(!_0xdd1c00['hasSuggestion'](_0xfe8bb0))return null;const _0xc332a6=_0xdd1c00['getSuggestion'](_0xfe8bb0);return _0x3ae53b['includes'](_0xc332a6['data']['key']);})['map'](_0x5adea8=>{const {id:_0x257c91}=tt(_0x5adea8['name']),_0x129181=_0xdd1c00['getSuggestion'](_0x257c91);return _0x4e5679=_0x129181['attributes']['groupId'],_0x129181['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4a9aaa['size'])return;const _0x352deb=_0xdd1c00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f3b9e=>'attribute'==_0x5f3b9e['type']&&_0x5f3b9e['data']&&_0x3ae53b['includes'](_0x5f3b9e['data']['key'])&&_0x5f3b9e['attributes']['groupId']!=_0x4e5679)['map'](_0x43d634=>({'listItem':_0x43d634['getFirstRange']()['start']['nodeAfter'],'groupId':_0x43d634['attributes']['groupId']})),_0xab1ab=new Set();for(const {groupId:_0x140954,listItem:_0x231813}of _0x352deb)_0x4a9aaa['has'](_0x231813)&&_0xab1ab['add'](_0x140954);for(const _0x22f74e of _0xdd1c00['getSuggestions']())_0xab1ab['has'](_0x22f74e['attributes']['groupId'])&&_0x22f74e['setAttribute']('groupId',_0x4e5679);}['_supportLegacySuggestions'](){const _0x4af2bc=this['editor'],_0x2a728f=_0x4af2bc['locale'],_0x180819=_0x4af2bc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x180819['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25f652,_0x364613){const _0x1ec097=[];for(let _0x2edfee of _0x25f652)_0x2edfee['start']['nodeAfter']===_0x2edfee['end']['parent']&&(_0x2edfee=_0x4af2bc['model']['createRange'](_0x4af2bc['model']['createPositionAt'](_0x2edfee['start']['nodeAfter'],0x0))),_0x1ec097['push'](_0x2edfee);_0x4af2bc['model']['change'](_0x142f58=>{const _0x5d5866=_0x4af2bc['model']['document']['selection'],_0x179d99=Array['from'](_0x5d5866['getRanges']())['map'](_0x1594dc=>rt['fromRange'](_0x1594dc));_0x142f58['setSelection'](_0x1ec097),_0x4af2bc['commands']['get'](_0x364613['commandName'])['refresh'](),_0x364613['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4af2bc['execute'](_0x364613['commandName'],..._0x364613['commandParams']),_0x142f58['setSelection'](_0x179d99);for(const _0x5b0010 of _0x179d99)_0x5b0010['detach']();});}),_0x180819['descriptionFactory']['registerElementLabel'](function(_0xecc496){const _0x311687=!_0x4af2bc['model']['schema']['isObject'](_0xecc496),_0x1eb7a6=_0xecc496['previousSibling'],_0x52e6cd=_0xecc496['nextSibling'],_0x473400=_0xecc496['getAttribute']('listItemId'),_0xf2fa97=!_0x1eb7a6||_0x1eb7a6['getAttribute']('listItemId')!==_0x473400,_0x21bf3c=!_0x52e6cd||_0x52e6cd['getAttribute']('listItemId')!==_0x473400;return _0x311687&&Boolean(_0x473400)&&_0xf2fa97&&_0x21bf3c;},_0x1087f0=>St(_0x2a728f,'ELEMENT_LIST_ITEM',_0x1087f0));}['_registerLegacyDescription'](){const _0x45e8c3=this['editor'],_0x5d2e71=_0x45e8c3['locale'];function _0x4ca88e(_0x116d25){const _0x2cb12a=_0x45e8c3['commands']['get']('bulletedList')['value'],_0x300492=_0x45e8c3['commands']['get']('numberedList')['value'];return'numberedList'===_0x116d25?_0x2cb12a:_0x300492;}_0x45e8c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a9ab0){if('formatBlock'!=_0x5a9ab0['type'])return;const {data:_0x415678}=_0x5a9ab0;if(!_0x415678)return;let _0x3b8034,_0x3fe86e,_0x4a5dfd,_0x322258;switch(_0x415678['commandName']){case'bulletedList':_0x4a5dfd=_0x415678['commandParams'][0x0]['forceValue'],_0x322258=_0x4ca88e(_0x415678['commandName']),_0x3b8034=_0x4a5dfd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x322258&&_0x45e8c3['config']['get']('list.multiBlock')||(_0x3b8034='*Change\x20to:*\x20%0'),_0x3fe86e={'type':'format','content':St(_0x5d2e71,_0x3b8034,St(_0x5d2e71,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a5dfd=_0x415678['commandParams'][0x0]['forceValue'],_0x322258=_0x4ca88e(_0x415678['commandName']),_0x3b8034=_0x4a5dfd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x322258&&_0x45e8c3['config']['get']('list.multiBlock')||(_0x3b8034='*Change\x20to:*\x20%0'),_0x3fe86e={'type':'format','content':St(_0x5d2e71,_0x3b8034,St(_0x5d2e71,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b8034='*Indent:*\x20%0',_0x3fe86e={'type':'format','content':St(_0x5d2e71,_0x3b8034,St(_0x5d2e71,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b8034=function(_0x1e1548){const _0xa3564b=_0x1e1548['getFirstRange']();let _0x8206f3=_0xa3564b['start']['nodeAfter'];for(;_0x8206f3&&_0xa3564b['containsItem'](_0x8206f3);){if(_0x8206f3['getAttribute']('listIndent')>0x0)return!0x1;_0x8206f3=_0x8206f3['nextSibling'];}return!0x0;}(_0x5a9ab0)?St(_0x5d2e71,'*Format:*\x20remove\x20from\x20%0',St(_0x5d2e71,function(_0x551e9f){return'ELEMENT_'+_0x551e9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a9ab0))):St(_0x5d2e71,'*Outdent:*\x20%0',St(_0x5d2e71,'ELEMENT_LIST_ITEM')),_0x3fe86e={'type':'format','content':_0x3b8034};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x415678['multipleBlocks']&&(_0x3b8034='*Merge:*\x20%0',_0x3fe86e={'type':'deletion','content':St(_0x5d2e71,_0x3b8034,St(_0x5d2e71,'ELEMENT_LIST_ITEM'))});}return _0x3fe86e;});}};function zt(_0x41dd06){let _0x400f38=_0x41dd06['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x400f38;){const _0x1e3587=_0x400f38['getAttribute']('listItemId');if(!_0x1e3587)return!0x1;if(_0x1e3587==_0x41dd06['data']['newValue'])return'newValue';if(_0x1e3587==_0x41dd06['data']['oldValue'])return'oldValue';_0x400f38=_0x400f38['previousSibling'];}return!0x1;}var Xt=class extends _0x545319{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1489f0=this['editor']['config']['get']('list.properties'),_0x3e8cbc=this['editor']['plugins']['get']('TrackChangesEditing');_0x1489f0['styles']&&_0x3e8cbc['enableDefaultAttributesIntegration']('listStyle'),_0x1489f0['reversed']&&_0x3e8cbc['enableDefaultAttributesIntegration']('listReversed'),_0x1489f0['startIndex']&&_0x3e8cbc['enableDefaultAttributesIntegration']('listStart');const _0x37d34b={'type':'format','content':''};_0x3e8cbc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1c9129=this['editor']['locale'];_0x3e8cbc['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x1c9129,'FORMAT_LIST_REVERSED')),_0x3e8cbc['descriptionFactory']['registerDescriptionCallback'](_0xc0f3dd=>{const {data:_0x11debe}=_0xc0f3dd;if(_0x11debe&&'listReversed'==_0x11debe['key'])return null==_0x11debe['newValue']||0x0==_0x11debe['newValue']&&null==_0x11debe['oldValue']?_0x37d34b:void 0x0;}),_0x3e8cbc['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x1c9129,'FORMAT_LIST_START')),_0x3e8cbc['descriptionFactory']['registerDescriptionCallback'](_0x44bbf4=>{const {data:_0x558855}=_0x44bbf4;if(_0x558855&&'listStart'==_0x558855['key'])return null==_0x558855['newValue']||0x1==_0x558855['newValue']&&null==_0x558855['oldValue']?_0x37d34b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc53109=>{if(_0xc53109['batch']['isUndo'])return!0x1;let _0x11865d=!0x1;const _0x3f4ccb=_0x3e8cbc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a65eb=>{const _0xbcf4d1=_0x3e8cbc['_getAttributeKey'](_0x1a65eb);return'listStart'==_0xbcf4d1||'listReversed'==_0xbcf4d1;});for(const _0x1db091 of _0x3f4ccb){const _0x5da803=_0x1db091['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x5da803&&'customNumbered'!=_0x5da803&&(_0x3e8cbc['_findSuggestions'](_0x1db091['getFirstRange'](),'attribute')['find'](_0x57ba02=>'listType'==_0x3e8cbc['_getAttributeKey'](_0x57ba02['suggestion']))||(_0xc53109['removeMarker'](_0x1db091['getFirstMarker']()),_0x11865d=!0x0));}return _0x11865d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xedead3){const _0x13026f=this['editor']['locale'],{data:_0x224b8c}=_0xedead3,_0x488e2b={'type':'format','content':''};if(!_0x224b8c||'listStyle'!=_0x224b8c['key'])return;if(!_0x224b8c['oldValue'])return'default'==_0x224b8c['newValue']?_0x488e2b:{'type':'format','content':''+St(_0x13026f,'*Set\x20format:*\x20%0',St(_0x13026f,this['_getTranslationKeyForListStyle'](_0x224b8c['newValue'])))};if(!_0x224b8c['newValue']){if('default'==_0x224b8c['oldValue'])return _0x488e2b;let _0x41e7cd=_0xedead3['head'];for(;_0x41e7cd;){if(_0x41e7cd['data']&&'listType'==_0x41e7cd['data']['key']&&_0x41e7cd['data']['newValue'])return _0x488e2b;_0x41e7cd=_0x41e7cd['next'];}return{'type':'format','content':''+St(_0x13026f,'*Remove\x20format:*\x20%0',St(_0x13026f,this['_getTranslationKeyForListStyle'](_0x224b8c['oldValue'])))};}if('default'!=_0x224b8c['newValue'])return{'type':'format','content':''+St(_0x13026f,'*Set\x20format:*\x20%0',St(_0x13026f,this['_getTranslationKeyForListStyle'](_0x224b8c['newValue'])))};let _0x4e085e=_0xedead3['head'];for(;_0x4e085e;){if(_0x4e085e['data']&&'listType'==_0x4e085e['data']['key']&&_0x4e085e['data']['newValue']&&_0x4e085e['data']['oldValue'])return _0x488e2b;_0x4e085e=_0x4e085e['next'];}return{'type':'format','content':St(_0x13026f,'*Set\x20format:*\x20%0',St(_0x13026f,'ELEMENT_'+_0xedead3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x10f07c=this['editor'],_0x34eb1e=_0x10f07c['locale'];_0x10f07c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e900b=>{if('formatBlock'!=_0x1e900b['type'])return;const {data:_0x2eb678}=_0x1e900b;if(!_0x2eb678)return;let _0x4e15e8,_0xf7bc04;switch(_0x2eb678['commandName']){case'listStyle':_0x4e15e8='*Change\x20to:*\x20%0',_0xf7bc04={'type':'format','content':St(_0x34eb1e,_0x4e15e8,St(_0x34eb1e,this['_getTranslationKeyForListStyle'](_0x2eb678['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e15e8=_0x2eb678['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf7bc04={'type':'format','content':St(_0x34eb1e,_0x4e15e8)};break;case'listStart':_0x4e15e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf7bc04={'type':'format','content':St(_0x34eb1e,_0x4e15e8,_0x2eb678['commandParams'][0x0]['startIndex'])};}return _0xf7bc04;});}['_getTranslationKeyForListStyle'](_0x52a806){return'ELEMENT_'+(_0x4bbc02=_0x52a806,qt['includes'](_0x4bbc02)?'bulleted':Yt['includes'](_0x4bbc02)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x52a806['toUpperCase']()['replace'](/-/g,'_');var _0x4bbc02;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x545319{['afterInit'](){const _0x3095c0=this['editor'];_0x3095c0['commands']['get']('emoji')&&_0x3095c0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x545319{static get['requires'](){return[ft];}['init'](){const _0x187110=this['editor'],_0x35efce=_0x187110['plugins']['get']('TrackChangesEditing'),_0x17be1e=_0x187110['commands']['get']('enter');_0x35efce['enableCommand']('enter',()=>{_0x187110['model']['change'](_0x441689=>{const _0x469824=_0x187110['model']['document']['selection'],_0x5c4f2b=_0x469824['getFirstPosition'](),_0x1cd4c8=rt['fromRange'](_0x469824['getFirstRange']());if(_0x17be1e['enterBlock'](_0x441689)){const _0x2821c6=_0x187110['model']['createPositionAt'](_0x5c4f2b['parent']['nextSibling'],0x0),_0x3e7573=_0x441689['createRange'](_0x5c4f2b,_0x2821c6);_0x35efce['markInsertion'](_0x3e7573);}else _0x441689['setSelection'](_0x441689['createRange'](_0x1cd4c8['end']));_0x1cd4c8['detach'](),_0x17be1e['fire']('afterExecute',{'writer':_0x441689});});});}},Jt=class extends _0x545319{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x543bbb=this['editor']['plugins']['get']('TrackChangesEditing');_0x543bbb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x543bbb['enableCommand']('findNext'),_0x543bbb['enableCommand']('findPrevious'),_0x543bbb['enableCommand']('replace'),_0x543bbb['enableCommand']('replaceAll');}['handleFindCommand'](_0x2da525,_0x1c93a5,_0x11605b={}){const _0x3f6f03=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2da525(_0x3bbe8b=>{let _0x4a3f33=('string'==typeof _0x1c93a5?_0x3f6f03['findByTextCallback'](_0x1c93a5,_0x11605b):_0x1c93a5)(_0x3bbe8b);Array['isArray'](_0x4a3f33)&&(_0x4a3f33={'results':_0x4a3f33,'searchText':'string'==typeof _0x1c93a5?_0x1c93a5:''});const _0x5791d8=_0x4a3f33['results']['filter'](_0x531ab6=>!0x1===this['_isInDeletionRange'](_0x531ab6,_0x3bbe8b['item']));return{..._0x4a3f33,'results':_0x5791d8};},_0x11605b);}['_isInDeletionRange'](_0xd7d598,_0x218663){const _0x2e9102=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x218663,_0xd7d598['start']),this['editor']['model']['createPositionAt'](_0x218663,_0xd7d598['end']));for(const _0x4c6452 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2e9102['getIntersection'](_0x4c6452['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x545319{['afterInit'](){const _0x473149=this['editor']['locale'],_0xd3fd30=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c9dd7,commandName:_0x147e1e}of te)this['editor']['plugins']['has'](_0x2c9dd7)&&_0xd3fd30['enableDefaultAttributesIntegration'](_0x147e1e);_0xd3fd30['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x473149,'FORMAT_FONT_SIZE')),_0xd3fd30['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x473149,'FORMAT_FONT_FAMILY')),_0xd3fd30['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x473149,'FORMAT_FONT_COLOR')),_0xd3fd30['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x473149,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e7f73=this['editor'],_0x5ac564=_0x6e7f73['locale'];_0x6e7f73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcac1e4=>{const _0x4e890b=_0x5ac564['t'];if('formatInline'!=_0xcac1e4['type'])return;const {data:_0x47ac1a}=_0xcac1e4;if(null!=_0x47ac1a){if('fontSize'==_0x47ac1a['commandName']){const _0x193016=_0x47ac1a['commandParams'][0x0]['value'];if(_0x193016){const _0x512121=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x447503=>_0x447503['model']==_0x193016)['title'];return{'type':'format','content':St(_0x5ac564,'*Set\x20font\x20size:*\x20%0',_0x4e890b(_0x512121)['toLowerCase']())};}return{'type':'format','content':St(_0x5ac564,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x47ac1a['commandName']){const _0x56e7da=_0x47ac1a['commandParams'][0x0]['value'];return _0x56e7da?{'type':'format','content':St(_0x5ac564,'*Set\x20font\x20family:*\x20%0',_0x56e7da)}:{'type':'format','content':St(_0x5ac564,'*Reset\x20font\x20family*')};}if('fontColor'==_0x47ac1a['commandName']){const _0xf3d35d=_0x47ac1a['commandParams'][0x0]['value'];if(_0xf3d35d){const _0x4c22b8=_0x41e231(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4fdf0d=>_0x4fdf0d['model']==_0xf3d35d);let _0x46d13b=_0xf3d35d,_0x599f51='';return _0x4c22b8&&(_0x46d13b=_0x4c22b8['label'],_0x599f51=_0x4e890b(_0x46d13b)['toLowerCase']()),{'type':'format','content':St(_0x5ac564,'*Set\x20font\x20color:*\x20%0',_0x599f51)['trim'](),'color':{'value':_0xf3d35d,'title':_0x599f51||_0x46d13b}};}return{'type':'format','content':St(_0x5ac564,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x47ac1a['commandName']){const _0xee644f=_0x47ac1a['commandParams'][0x0]['value'];if(_0xee644f){const _0x7a7cf3=_0x41e231(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2867de=>_0x2867de['model']==_0xee644f);let _0xee3cc3=_0xee644f,_0x1c1ce0='';return _0x7a7cf3&&(_0xee3cc3=_0x7a7cf3['label'],_0x1c1ce0=_0x4e890b(_0xee3cc3)['toLowerCase']()),{'type':'format','content':St(_0x5ac564,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c1ce0)['trim'](),'color':{'value':_0xee644f,'title':_0x1c1ce0||_0xee3cc3}};}return{'type':'format','content':St(_0x5ac564,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x545319{['afterInit'](){const {plugins:_0x35a2a6}=this['editor'];_0x35a2a6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x35a2a6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1926c0,plugins:_0x343d2b,commands:_0x3c6853}=this['editor'],_0x4c5ef9=_0x343d2b['get']('TrackChangesEditing');_0x3c6853['get']('footnotesStyle')&&_0x4c5ef9['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3c6853['get']('footnotesStart')&&_0x4c5ef9['enableDefaultAttributesIntegration']('footnotesStart'),_0x4c5ef9['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x1926c0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4c5ef9['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x1926c0,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xd10a2f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x58d79a,commands:_0x2365f0}=this['editor'];_0x2365f0['get']('insertFootnote')&&_0xd10a2f['enableCommand']('insertFootnote'),_0xd10a2f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x14ef23=>St(_0x58d79a,'ELEMENT_FOOTNOTE_REF',_0x14ef23)),_0xd10a2f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x19dc01=>St(_0x58d79a,'ELEMENT_FOOTNOTE_DEFINITION',_0x19dc01)),_0xd10a2f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x214f91=>St(_0x58d79a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x214f91));}},ie=class extends _0x545319{['afterInit'](){const _0x398503=this['editor'],_0x59e1cc=_0x398503['plugins']['get']('TrackChangesEditing'),_0x838153=_0x398503['commands']['get']('copyFormat'),_0x4035d7=_0x398503['commands']['get']('pasteFormat');_0x838153&&_0x4035d7&&(_0x59e1cc['enableDefaultAttributesIntegration']('pasteFormat'),_0x59e1cc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xdf744=this['editor'],_0x3cbf33=_0xdf744['locale'];_0xdf744['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3135ba=>{if('formatBlock'!=_0x3135ba['type']&&'formatInline'!=_0x3135ba['type'])return;const {data:_0x58c12c}=_0x3135ba;if(_0x58c12c&&'pasteFormat'===_0x58c12c['commandName']){const _0x33f691=[],_0x435b1b=_0x58c12c['commandParams'][0x0];for(const [_0x1a444d,_0x51a91d]of Object['entries'](_0x435b1b))_0x33f691['push'](se(_0xdf744,_0x1a444d,_0x51a91d));return _0x33f691['length']?{'type':'format','content':St(_0x3cbf33,'*Set\x20format\x20to:*\x20%0',_0x33f691['join'](',\x20'))}:{'type':'format','content':St(_0x3cbf33,'*Remove\x20all\x20formatting*')};}});}};function se(_0x4b9ccf,_0x45b79c,_0x314a57){const _0x47bde8=_0x4b9ccf['locale']['t'],_0x31fa13=_0x45b79c['split'](/(?=[A-Z])/)['join']('\x20'),_0x707212=_0x47bde8(_0x31fa13['charAt'](0x0)['toUpperCase']()+_0x31fa13['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x314a57)return _0x707212;if('fontColor'===_0x45b79c||'fontBackgroundColor'===_0x45b79c){const _0x13997c=_0x41e231(_0x4b9ccf['config']['get']('fontColor.colors'))['find'](_0x51d1a5=>_0x51d1a5['model']==_0x314a57);return _0x707212+'\x20('+(_0x13997c?_0x47bde8(_0x13997c['label'])['toLowerCase']():_0x314a57)+')';}if('fontSize'===_0x45b79c&&isNaN(parseFloat(_0x314a57))){const _0x179ef0=_0x4b9ccf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b9ccf['config']['get']('fontSize.options'))['find'](_0x37fbc4=>_0x37fbc4['model']==_0x314a57);return _0x707212+'\x20('+(_0x179ef0?_0x47bde8(_0x179ef0['title'])['toLowerCase']():_0x314a57)+')';}return _0x707212+'\x20('+_0x314a57+')';}var re=class extends _0x545319{['afterInit'](){const _0xdb3753=this['editor'];if(!_0xdb3753['plugins']['has']('GeneralHtmlSupport')||!_0xdb3753['plugins']['has']('DataSchema'))return;const _0x2fe245=_0xdb3753['plugins']['get']('TrackChangesEditing'),_0x291026=_0xdb3753['plugins']['get']('GeneralHtmlSupport'),_0x3d9230=_0xdb3753['plugins']['get']('DataSchema'),_0x2bf3b0=_0xdb3753['locale'],_0x460806=new Set(['htmlContent']);for(const _0x24adc5 of _0x3d9230['getDefinitionsForView'](/.*/,!0x1)){const _0x35502a=_0x24adc5['view'],_0x481db4=_0x291026['getGhsAttributeNameForElement'](_0x35502a);_0x460806['add'](_0x481db4),!_0x24adc5['isInline']||_0x24adc5['isObject']||'appliesToBlock'in _0x24adc5&&_0x24adc5['appliesToBlock']||_0x2fe245['descriptionFactory']['registerAttributeLabel'](_0x481db4,_0x35502a),_0x24adc5['model']['startsWith']('html')&&_0x2fe245['descriptionFactory']['registerElementLabel'](_0x24adc5['model'],_0x2ee727=>St(_0x2bf3b0,'ELEMENT_HTML_TAG',[_0x2ee727,_0x35502a]));}_0x2fe245['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x2bf3b0,'FORMAT_RAW_HTML_CONTENT')),_0x2fe245['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x2bf3b0,'FORMAT_HTML_LIST_ITEM')),_0x2fe245['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x2bf3b0,'FORMAT_HTML_BULLETED_LIST')),_0x2fe245['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x2bf3b0,'FORMAT_HTML_NUMBERED_LIST')),_0x2fe245['descriptionFactory']['registerDescriptionCallback'](_0x1604b0=>{if('attribute'!==_0x1604b0['type'])return;const _0x3d080f=_0x1604b0['data'];if(!_0x3d080f||!_0x460806['has'](_0x3d080f['key']))return;if('htmlContent'===_0x3d080f['key'])return{'type':'format','content':St(_0x2bf3b0,'*Change\x20%0\x20content*',St(_0x2bf3b0,'ELEMENT_RAW_HTML'))};const {setItems:_0x1d5741,removeItems:_0x185687}=function(_0xc5814f,_0x36094a,_0x4c97d7){const _0xb12ab1=[],_0x2ca810=[],_0xcb3750=_0xc5814f['styles']??{},_0x402ca8=_0x36094a['styles']??{};for(const _0x25b346 of new Set([...Object['keys'](_0xcb3750),...Object['keys'](_0x402ca8)]))_0xcb3750[_0x25b346]!==_0x402ca8[_0x25b346]&&(void 0x0===_0x402ca8[_0x25b346]?_0x2ca810['push'](_0x25b346):_0xb12ab1['push'](_0x25b346+'\x20('+_0x402ca8[_0x25b346]+')'));const _0x30b210=St(_0x4c97d7,'FORMAT_HTML_CLASS'),_0x265c2d=new Set(_0xc5814f['classes']??[]),_0x4dc769=new Set(_0x36094a['classes']??[]),_0xc2ad14=[..._0x4dc769]['some'](_0x5032d2=>!_0x265c2d['has'](_0x5032d2)),_0x89b96c=[..._0x265c2d]['some'](_0x49fdd2=>!_0x4dc769['has'](_0x49fdd2));_0xc2ad14&&_0xb12ab1['push'](_0x30b210),_0x89b96c&&_0x2ca810['push'](_0x30b210);const _0x4e8578=St(_0x4c97d7,'FORMAT_HTML_ATTRIBUTE'),_0x183696=_0xc5814f['attributes']??{},_0xdff04=_0x36094a['attributes']??{};let _0x2e4744=!0x1,_0x3b8113=!0x1;for(const _0x2fbbad of new Set([...Object['keys'](_0x183696),...Object['keys'](_0xdff04)]))_0x183696[_0x2fbbad]!==_0xdff04[_0x2fbbad]&&(void 0x0===_0xdff04[_0x2fbbad]?_0x3b8113=!0x0:_0x2e4744=!0x0);return _0x2e4744&&_0xb12ab1['push'](_0x4e8578),_0x3b8113&&_0x2ca810['push'](_0x4e8578),{'setItems':_0xb12ab1,'removeItems':_0x2ca810};}(_0x3d080f['oldValue']??{},_0x3d080f['newValue']??{},_0x2bf3b0);if(!_0x1d5741['length']&&!_0x185687['length'])return;const _0x3ea68f=[];return _0x1d5741['length']&&_0x3ea68f['push'](St(_0x2bf3b0,'*Set\x20format:*\x20%0',_0x1d5741['join'](',\x20'))),_0x185687['length']&&_0x3ea68f['push'](St(_0x2bf3b0,'*Remove\x20format:*\x20%0',_0x185687['join'](',\x20'))),{'type':'format','content':_0x3ea68f['join']('\x0a')};});}},oe=class extends _0x545319{['_headingOptions'];['afterInit'](){const _0x788488=this['editor'];if(!_0x788488['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x788488['config']['get']('heading.options');const _0x19f75b=_0x788488['locale'],_0x11a45d=_0x788488['plugins']['get']('TrackChangesEditing');_0x11a45d['enableDefaultAttributesIntegration']('heading');for(const _0x2401cf of this['_headingOptions'])'paragraph'!=_0x2401cf['model']&&_0x11a45d['descriptionFactory']['registerElementLabel'](_0x2401cf['model'],_0x428001=>{const _0x18145b=this['_getHeadingLevel'](_0x2401cf['model']);return null!==_0x18145b?_0x48b3dc(_0x428001,_0x18145b):_0x59c58d(_0x428001,_0x2401cf['title']);});function _0x48b3dc(_0x53b666,_0x4205cd){return St(_0x19f75b,'ELEMENT_HEADING',[_0x53b666,_0x4205cd]);}function _0x59c58d(_0xdcd7ac,_0x186fa6){return St(_0x19f75b,'ELEMENT_HEADING_CUSTOM',[_0xdcd7ac,_0x186fa6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x331133=this['editor'],_0x341472=_0x331133['locale'];function _0x5a373a(_0x29f2e8,_0x463056){return St(_0x341472,'ELEMENT_HEADING_CUSTOM',[_0x29f2e8,_0x463056]);}_0x331133['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8e67=>{if('formatBlock'!=_0x3e8e67['type'])return;const {data:_0x412e74}=_0x3e8e67;if(_0x412e74&&'heading'==_0x412e74['commandName']){const _0x5bd17d=_0x412e74['commandParams'][0x0]['value'],_0x39fdcd=this['_getHeadingLevel'](_0x5bd17d);if(null!==_0x39fdcd)return{'type':'format','content':St(_0x341472,'*Change\x20to:*\x20%0',(_0x8edaeb=0x1,_0x3c205c=_0x39fdcd,St(_0x341472,'ELEMENT_HEADING',[_0x8edaeb,_0x3c205c])))};const _0x4c55a9=this['_headingOptions']['find'](_0x3541e4=>_0x3541e4['model']===_0x5bd17d)['title'];return{'type':'format','content':St(_0x341472,'*Change\x20to:*\x20%0',_0x5a373a(0x1,_0x4c55a9))};}var _0x8edaeb,_0x3c205c;});}['_getHeadingLevel'](_0x6e3517){const _0x322dfc=_0x6e3517['match'](/^heading(\d+)/);if(_0x322dfc)return _0x322dfc[0x1];const _0x49c3cd=this['_headingOptions']?.['find'](_0x41cd41=>_0x41cd41['model']==_0x6e3517);if(_0x49c3cd&&_0x49c3cd['view']){const _0x3d6707=_0x49c3cd['view'],_0x367dc6=(_0x3d6707['name']??_0x3d6707)['match'](/^h(\d+)/);if(_0x367dc6)return _0x367dc6[0x1];}return null;}},ae=class extends _0x545319{['afterInit'](){const _0x35bcee=this['editor'];if(!_0x35bcee['plugins']['has']('HighlightEditing'))return;const _0xced456=_0x35bcee['plugins']['get']('TrackChangesEditing'),_0x4e255e=_0x35bcee['locale'];_0xced456['enableDefaultAttributesIntegration']('highlight'),_0xced456['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x4e255e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x73d9a9=this['editor'],_0x250ed8=_0x73d9a9['locale'];_0x73d9a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcd6b83=>{if('formatInline'!=_0xcd6b83['type'])return;const {data:_0x5aff39}=_0xcd6b83;if(_0x5aff39&&'highlight'==_0x5aff39['commandName']){const _0xb69838=_0x250ed8['t'],_0x1f29ec=_0x5aff39['commandParams'][0x0]['value'];if(_0x1f29ec){const _0x24f5a9=_0x73d9a9['config']['get']('highlight.options')['find'](_0x3974d4=>_0x3974d4['model']==_0x1f29ec);return{'type':'format','content':St(_0x250ed8,'*Set\x20highlight:*\x20%0',_0xb69838(_0x24f5a9['title'])['toLowerCase']()),'color':{'value':_0x24f5a9['color'],'title':_0x24f5a9['title']}};}return{'type':'format','content':St(_0x250ed8,'*Remove\x20highlight*',St(_0x250ed8,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x545319{['afterInit'](){const _0x4d5a07=this['editor'];if(!_0x4d5a07['plugins']['has']('HorizontalLineEditing'))return;_0x4d5a07['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x22e768=_0x4d5a07['plugins']['get']('TrackChangesEditing'),_0x131f90=_0x4d5a07['locale'];_0x22e768['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe2cda2=>St(_0x131f90,'ELEMENT_HORIZONTAL_LINE',_0xe2cda2));}},le=class extends _0x545319{['afterInit'](){const _0x6e08ff=this['editor'];if(!_0x6e08ff['plugins']['has']('HtmlEmbed'))return;const _0x112057=_0x6e08ff['plugins']['get']('TrackChangesEditing'),_0x5dc29b=_0x6e08ff['locale'];_0x112057['descriptionFactory']['registerElementLabel']('rawHtml',_0x230df9=>St(_0x5dc29b,'ELEMENT_HTML_EMBED',_0x230df9)),_0x112057['enableDefaultAttributesIntegration']('htmlEmbed'),_0x112057['descriptionFactory']['registerDescriptionCallback'](_0x852eb=>{if('attribute'!=_0x852eb['type'])return;const {data:_0xe66b39}=_0x852eb;return _0xe66b39&&'value'==_0xe66b39['key']&&_0x852eb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x5dc29b,'*Change\x20%0\x20content*',St(_0x5dc29b,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b80a6=this['editor'],_0x542eff=_0x4b80a6['locale'];_0x4b80a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f0110=>{if('formatBlock'!=_0x1f0110['type'])return;const {data:_0x4e2b52}=_0x1f0110;return _0x4e2b52&&'htmlEmbed'==_0x4e2b52['commandName']?{'type':'format','content':St(_0x542eff,'*Change\x20%0\x20content*',St(_0x542eff,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x545319{['afterInit'](){const _0x514b0a=this['editor'];if(!_0x514b0a['plugins']['has']('ImageEditing'))return;const _0x4fcf82=_0x514b0a['plugins']['get']('TrackChangesEditing'),_0x3cb261=_0x514b0a['plugins']['get']('ImageUtils'),_0x483317=_0x514b0a['locale'];_0x4fcf82['enableCommand']('insertImage'),_0x4fcf82['descriptionFactory']['registerElementLabel']('imageBlock',_0x54fcf8=>St(_0x483317,'ELEMENT_IMAGE',_0x54fcf8)),_0x4fcf82['descriptionFactory']['registerElementLabel']('imageInline',_0x15ff2b=>St(_0x483317,'ELEMENT_INLINE_IMAGE',_0x15ff2b)),_0x4fcf82['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x483317,'ELEMENT_CAPTION')),_0x514b0a['plugins']['has']('ImageUploadEditing')&&_0x4fcf82['enableCommand']('uploadImage'),_0x514b0a['plugins']['has']('ImageBlockEditing')&&_0x514b0a['plugins']['has']('ImageInlineEditing')&&(_0x4fcf82['enableCommand']('imageTypeInline',(_0x1f2b4b,_0x3cfeca)=>{const _0x3103c9=_0x3cb261['getClosestSelectedImageElement'](_0x514b0a['model']['document']['selection']);_0x514b0a['model']['change'](()=>{_0x4fcf82['markBlockFormat'](_0x3103c9,{'commandName':'imageTypeInline','commandParams':[_0x3cfeca]},[],'convertBlockImageToInline');});}),_0x4fcf82['enableCommand']('imageTypeBlock',(_0x167ccd,_0x33d000)=>{_0x514b0a['model']['change'](_0x379ca9=>{let _0x32f50e=_0x3cb261['getClosestSelectedImageElement'](_0x514b0a['model']['document']['selection']),_0xe0c0e4=_0x379ca9['createRangeOn'](_0x32f50e);const _0x221d12=st['fromPosition'](_0xe0c0e4['start'],'toPrevious'),_0x394abf=st['fromPosition'](_0xe0c0e4['end'],'toNext');_0x4fcf82['forceDefaultExecution'](()=>_0x167ccd(_0x33d000)),_0x32f50e=_0x3cb261['getClosestSelectedImageElement'](_0x514b0a['model']['document']['selection']),_0xe0c0e4=_0x379ca9['createRangeOn'](_0x32f50e);const _0x216222=_0x379ca9['createRange'](_0x221d12,_0x394abf);_0x221d12['detach'](),_0x394abf['detach'](),_0x4fcf82['markBlockFormat'](_0x32f50e,{'commandName':'imageTypeInline','commandParams':[_0x33d000]},[],'convertInlineImageToBlock'),_0x216222['start']['isBefore'](_0xe0c0e4['start'])&&_0x4fcf82['markInsertion'](_0x379ca9['createRange'](_0x216222['start'],_0xe0c0e4['start']),'convertInlineImageToBlock'),_0xe0c0e4['end']['isBefore'](_0x216222['end'])&&_0x4fcf82['markInsertion'](_0x379ca9['createRange'](_0xe0c0e4['end'],_0x216222['end']),'convertInlineImageToBlock');});}),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4fcf82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5c4fc2])=>{const _0x401c41=_0x4fcf82['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f7dca=_0x5c4fc2['start'],_0x165c0e=_0x5c4fc2['end'];const _0x61f40b=_0x514b0a['model']['schema']['getNearestSelectionRange'](_0x3f7dca,'backward'),_0x44da69=_0x514b0a['model']['schema']['getNearestSelectionRange'](_0x165c0e,'forward');_0x61f40b['isCollapsed']&&(_0x3f7dca=_0x61f40b['start']),_0x44da69['isCollapsed']&&(_0x165c0e=_0x44da69['end']),_0x401c41([_0x514b0a['model']['createRange'](_0x3f7dca,_0x165c0e)]);}),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1c2e4d),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1c2e4d)),_0x514b0a['plugins']['has']('ImageCaptionEditing')&&(_0x4fcf82['enableCommand']('toggleImageCaption',(_0x556ec0,_0x5b7093)=>{const _0x39b937=_0x514b0a['plugins']['get']('ImageCaptionUtils');let _0x4ba5f3=_0x3cb261['getClosestSelectedImageElement'](_0x514b0a['model']['document']['selection']),_0x54890f=_0x39b937['getCaptionFromImageModelElement'](_0x4ba5f3);_0x514b0a['model']['change'](()=>{if(_0x54890f)return void _0x4fcf82['markDeletion'](_0x514b0a['model']['createRangeOn'](_0x54890f));const _0x10f603=_0x3cb261['isBlockImage'](_0x4ba5f3);_0x556ec0(_0x5b7093),_0x4ba5f3=_0x3cb261['getClosestSelectedImageElement'](_0x514b0a['model']['document']['selection']),_0x54890f=_0x39b937['getCaptionFromImageModelElement'](_0x4ba5f3),_0x4fcf82['markInsertion'](_0x514b0a['model']['createRangeOn'](_0x54890f),_0x10f603?null:'imageCaption');});}),_0x4fcf82['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1c2e4d));const _0x3f3952=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x598584(_0xaed4df,_0x3fdcb5){const _0x5361ed=_0x3f3952['findIndex'](({type:_0x90cea5,subType:_0x18ac32})=>_0xaed4df['type']==_0x90cea5&&_0xaed4df['subType']==_0x18ac32),_0x10f19e=_0x3f3952['findIndex'](({type:_0x151ed4,subType:_0xe4aec})=>_0x3fdcb5['type']==_0x151ed4&&_0x3fdcb5['subType']==_0xe4aec);if(_0x5361ed<0x0||_0x10f19e<0x0)return!0x1;const _0x6fb6b0=_0xaed4df['getFirstRange'](),_0x2a537a=_0x3fdcb5['getFirstRange']();if((0x0==_0x5361ed||0x1==_0x5361ed)&&0x2==_0x10f19e&&_0x6fb6b0['isIntersecting'](_0x2a537a))return!0x0;if(0x2==_0x5361ed&&0x3==_0x10f19e){const _0x22aac0=_0x4fcf82['_findSuggestions'](_0x6fb6b0,'insertion')['filter'](({suggestion:_0x550765,meta:_0x326c01})=>_0x326c01['isOwn']&&'convertInlineImageToBlock'==_0x550765['subType']);if(_0x22aac0['length']>0x1&&_0x2a537a['end']['isEqual'](_0x6fb6b0['start']))return!0x0;if(0x1==_0x22aac0['length']&&(_0x6fb6b0['start']['isEqual'](_0x2a537a['end'])||_0x6fb6b0['end']['isEqual'](_0x2a537a['start'])))return!0x0;}if(0x3==_0x5361ed&&0x3==_0x10f19e&&_0x6fb6b0['start']['isBefore'](_0x2a537a['start'])){const _0x454231=_0x6fb6b0['end']['nodeAfter'],_0x4f8f04=_0x2a537a['start']['nodeBefore'];return _0x3cb261['isBlockImage'](_0x454231)&&_0x454231===_0x4f8f04;}return!0x1;}function _0x1c2e4d(_0x4af067,_0x4d894e){return _0x598584(_0x4af067,_0x4d894e)?[_0x4af067,_0x4d894e]:_0x598584(_0x4d894e,_0x4af067)?[_0x4d894e,_0x4af067]:null;}_0x514b0a['plugins']['has']('ImageResize')&&(_0x4fcf82['enableDefaultAttributesIntegration']('resizeImage'),_0x4fcf82['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x483317,'FORMAT_IMAGE_SIZE'))),_0x514b0a['plugins']['has']('ImageTextAlternativeEditing')&&_0x4fcf82['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x514b0a['plugins']['has']('PictureEditing')&&_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0x393313=>{if('attribute'!=_0x393313['type'])return;const {data:_0xa91954}=_0x393313;return _0xa91954&&'sources'==_0xa91954['key']?{'type':'format','content':''}:void 0x0;}),_0x514b0a['plugins']['has']('ImageSizeAttributes')&&_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0x765f7b=>{if('attribute'!=_0x765f7b['type'])return;const {data:_0x42822f}=_0x765f7b;return!_0x42822f||'width'!=_0x42822f['key']&&'height'!=_0x42822f['key']?void 0x0:{'type':'format','content':''};}),_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0x5a7692=>{if(_0x3f3952['find'](({type:_0x5cb6df,subType:_0x45ba57})=>_0x5a7692['type']==_0x5cb6df&&_0x5a7692['subType']==_0x45ba57))return _0x5a7692['previous']?{}:void 0x0;}),_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0x4293e0=>{if('insertion'==_0x4293e0['type']||'deletion'==_0x4293e0['type']){const _0x12e8f1=_0x4293e0['getContainedElement']();if(_0x12e8f1&&_0x12e8f1['is']('element','caption'))return{'type':'insertion'==_0x4293e0['type']?'addObject':'removeObject','element':_0x12e8f1,'quantity':0x1};}}),_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0x416219=>'formatBlock'==_0x416219['type']&&'convertInlineImageToBlock'==_0x416219['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x416219['type']&&'convertBlockImageToInline'==_0x416219['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4fcf82['descriptionFactory']['registerDescriptionCallback'](_0xb955b2=>{if('attribute'!=_0xb955b2['type'])return;const {data:_0x8cc775}=_0xb955b2;if(!_0x8cc775||'alt'!=_0x8cc775['key'])return;const _0x51daf8=_0x8cc775['newValue'];return _0x51daf8?{'type':'format','content':St(_0x483317,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x51daf8+'\x22')}:{'type':'format','content':St(_0x483317,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d0c88=this['editor'],_0x457ff6=_0x5d0c88['locale'];_0x5d0c88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35152=>{if('formatBlock'!=_0x35152['type']&&'formatInline'!=_0x35152['type'])return;const {data:_0xe8dae4}=_0x35152;if(_0xe8dae4){if('imageTextAlternative'==_0xe8dae4['commandName']){const _0x23a406=_0xe8dae4['commandParams'][0x0]['newValue'];return _0x23a406?{'type':'format','content':St(_0x457ff6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23a406+'\x22')}:{'type':'format','content':St(_0x457ff6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8dae4['commandName']){const _0x11185b=_0xe8dae4['commandParams'][0x0]['width'];return _0x11185b?{'type':'format','content':St(_0x457ff6,'*Set\x20image\x20width:*\x20%0',_0x11185b)}:{'type':'format','content':St(_0x457ff6,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x545319{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1f3874=this['editor']['locale'],_0x21c6e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x21c6e2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x21c6e2['descriptionFactory']['registerDescriptionCallback'](_0x15e97c=>{if('attribute'!=_0x15e97c['type'])return;const {data:_0x5dcf2d}=_0x15e97c;return _0x5dcf2d&&'src'==_0x5dcf2d['key']?_0x5dcf2d['newValue']&&_0x5dcf2d['oldValue']?{'type':'format','content':St(_0x1f3874,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20ab39=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ab39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20ab39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20ab39['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20ab39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486a9f=this['editor'],_0x39ee5a=_0x486a9f['locale'];_0x486a9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x579ee5=>{if('formatBlock'!=_0x579ee5['type']&&'formatInline'!=_0x579ee5['type'])return;const {data:_0x5059d4}=_0x579ee5;return _0x5059d4&&'replaceImageSource'==_0x5059d4['commandName']?{'type':'format','content':St(_0x39ee5a,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x545319{['afterInit'](){const _0x21830f=this['editor'];if(!_0x21830f['plugins']['has']('ImageStyleEditing'))return;const _0x5e2f9c=_0x21830f['plugins']['get']('TrackChangesEditing'),_0xfbe022=_0x21830f['plugins']['get']('ImageUtils'),_0x45fd2f={};_0x5e2f9c['enableCommand']('imageStyle',(_0x4a93ff,_0x46109e)=>{const _0x52ec6d=_0x21830f['plugins']['get']('Users')['me'],_0x5c48d0=_0x21830f['commands']['get']('imageStyle');let _0xb742f=_0xfbe022['getClosestSelectedImageElement'](_0x21830f['model']['document']['selection']),_0x5e8a90=_0x21830f['model']['createRangeOn'](_0xb742f),_0x4e8629=_0x5c48d0['value'];if(_0x4e8629==_0x46109e['value'])return;if(_0x46109e['value']&&_0xfbe022['isInlineImage'](_0xb742f)&&!_0x5c48d0['isStyleEnabled'](_0x46109e['value']))return;const _0x393228={'commandName':'imageStyle','commandParams':[_0x46109e],'formatGroupId':_0xf105bf()};_0x21830f['model']['change'](()=>{if(_0x5e2f9c['getSuggestions']()['filter'](_0x58ddec=>_0x58ddec['isInContent']&&_0x52ec6d==_0x58ddec['author']&&('formatBlock'==_0x58ddec['type']||'formatInline'==_0x58ddec['type'])&&('imageStylePreApply'==_0x58ddec['subType']||'imageStylePostApply'==_0x58ddec['subType'])&&_0x58ddec['getFirstRange']()['isEqual'](_0x5e8a90))['forEach'](_0x2e481b=>_0x5e2f9c['discardSuggestion'](_0x2e481b['head'])),_0xb742f=_0xfbe022['getClosestSelectedImageElement'](_0x21830f['model']['document']['selection']),_0x5e8a90=_0x21830f['model']['createRangeOn'](_0xb742f),_0x5c48d0['refresh'](),_0x21830f['commands']['get']('imageTypeInline')['refresh'](),_0x21830f['commands']['get']('imageTypeBlock')['refresh'](),_0x4e8629=_0x5c48d0['value'],_0x4e8629!=_0x46109e['value'])return _0xfbe022['isInlineImage'](_0xb742f)&&_0x5c48d0['shouldConvertImageType'](_0x46109e['value'],_0xb742f)?(_0x4a93ff({..._0x46109e,'setImageSizes':!0x1}),_0xb742f=_0xfbe022['getClosestSelectedImageElement'](_0x21830f['model']['document']['selection']),void _0x5e2f9c['markBlockFormat'](_0xb742f,{..._0x393228,'commandReversedParams':[{'value':_0x4e8629||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xfbe022['isBlockImage'](_0xb742f)?_0x5e2f9c['markBlockFormat'](_0xb742f,_0x393228,[],'imageStylePostApply'):_0x5e2f9c['markInlineFormat'](_0x5e8a90,_0x393228,'imageStylePostApply'));});});for(const _0x114a4d of _0x21830f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45fd2f[_0x114a4d['name']]=_0x114a4d['title']['toLowerCase']();_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4634c3])=>{_0xfbe022['setImageNaturalSizeAttributes'](_0x4634c3['getContainedElement']());}),_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27321b,_0x1aabe9)=>{_0x5e2f9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27321b,{'commandName':_0x1aabe9['commandName'],'commandParams':_0x1aabe9['commandReversedParams']});}),_0x5e2f9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x543309,_0x53e12e){return _0x2f6025(_0x543309,_0x53e12e)?[_0x543309,_0x53e12e]:_0x2f6025(_0x53e12e,_0x543309)?[_0x53e12e,_0x543309]:null;});const _0x285534=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f6025(_0x19ac55,_0x1345f7){const _0x248bac=_0x285534['findIndex'](({type:_0xd5f6fc,subType:_0x5d8e8e})=>_0x19ac55['type']==_0xd5f6fc&&_0x19ac55['subType']==_0x5d8e8e),_0x2d87af=_0x285534['findIndex'](({type:_0x3b683a,subType:_0x74cc91})=>_0x1345f7['type']==_0x3b683a&&_0x1345f7['subType']==_0x74cc91);if(_0x248bac<0x0||_0x2d87af<0x0)return!0x1;const _0x5238b7=_0x19ac55['getFirstRange'](),_0x40716e=_0x1345f7['getFirstRange']();if((0x0==_0x248bac||0x1==_0x248bac)&&0x2==_0x2d87af&&_0x5238b7['isIntersecting'](_0x40716e))return!0x0;if(0x2==_0x248bac&&0x3==_0x2d87af){const _0x3872c9=_0x5e2f9c['_findSuggestions'](_0x5238b7,'insertion')['filter'](({suggestion:_0x2c5120,meta:_0x1006c6})=>_0x1006c6['isOwn']&&'convertInlineImageToBlock'==_0x2c5120['subType']);if(_0x3872c9['length']>0x1&&_0x40716e['end']['isEqual'](_0x5238b7['start']))return!0x0;if(0x1==_0x3872c9['length']&&(_0x5238b7['start']['isEqual'](_0x40716e['end'])||_0x5238b7['end']['isEqual'](_0x40716e['start'])))return!0x0;}if(0x3==_0x248bac&&0x3==_0x2d87af&&_0x5238b7['start']['isBefore'](_0x40716e['start'])){const _0x553a63=_0x5238b7['end']['nodeAfter'],_0x773759=_0x40716e['start']['nodeBefore'];return _0xfbe022['isBlockImage'](_0x553a63)&&_0x553a63===_0x773759;}return!0x1;}_0x21830f['model']['document']['registerPostFixer'](()=>{let _0x1aa9fb=!0x1;const _0x19617f=Array['from'](_0x21830f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fb8f5,data:_0x4bd084}of _0x19617f){const {group:_0x5e27c7,type:_0x1669ec,subType:_0x4b122f,id:_0x52e504}=tt(_0x4fb8f5);if('suggestion'==_0x5e27c7&&_0x5e2f9c['hasSuggestion'](_0x52e504)){if('formatBlock'==_0x1669ec&&('imageStylePreApply'==_0x4b122f||'imageStylePostApply'==_0x4b122f)){const _0x263eea=_0x5e2f9c['getSuggestion'](_0x52e504);if(_0x4bd084['newRange']){const _0x52e165=_0x263eea['getFirstRange']()['getContainedElement']();if(_0xfbe022['isBlockImage'](_0x52e165))continue;_0x5e2f9c['discardSuggestion'](_0x263eea),_0x1aa9fb=!0x0;}}if('insertion'==_0x1669ec&&'imageCaption'==_0x4b122f&&!_0x4bd084['newRange']){const _0x9f0458=_0x5e2f9c['getSuggestion'](_0x52e504);_0x9f0458['next']&&_0x9f0458['next']['isInContent']&&(_0x5e2f9c['discardSuggestion'](_0x9f0458['next']),_0x1aa9fb=!0x0);}}}return _0x1aa9fb;}),this['_registerLegacyDescription'](_0x45fd2f);}['_registerLegacyDescription'](_0x5bcf1b){const _0x1b7831=this['editor'],_0x398fd8=_0x1b7831['locale'];_0x1b7831['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x768acc=>{if('formatBlock'!=_0x768acc['type']&&'formatInline'!=_0x768acc['type'])return;const {data:_0x2fef87}=_0x768acc;if(!_0x2fef87||'imageStyle'!=_0x2fef87['commandName'])return;const _0x352cca=_0x2fef87['commandParams'][0x0]['value'];return _0x1f8569('side'===_0x352cca?St(_0x398fd8,'FORMAT_SIDE_IMAGE'):_0x5bcf1b[_0x352cca]||_0x352cca);function _0x1f8569(_0x535cb8){return{'type':'format','content':St(_0x398fd8,'*Format:*\x20%0',_0x535cb8)};}});}},ge=class extends _0x545319{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x455b15){super(_0x455b15),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5150ff=this['editor'],_0x11c3f6=_0x5150ff['commands']['get']('importWord'),_0x4d4dbe=_0x5150ff['commands']['get']('trackChanges');_0x11c3f6&&(_0x11c3f6['on']('execute',(_0x4b0af2,[,_0x4c34a2])=>{this['_trackChangesValueDuringImport']=_0x4d4dbe['value'],_0x4c34a2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x11c3f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x11c3f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d4dbe['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5150ff['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a3bbb,_0x1d9dd7){const {suggestions:_0x58b5d0}=_0x1d9dd7,_0x1456f9=this['editor']['commands']['get']('trackChanges'),_0x3e7e82=_0x1456f9['value'];this['_trackChangesValueDuringImport']!==_0x3e7e82&&(_0x1456f9['execute'](),this['_trackChangesExecuted']=!0x0),_0x58b5d0&&_0x58b5d0['forEach'](({id:_0x52ebe1,type:_0x1081d0,author:_0x1f7b95,created_at:_0x34708b})=>{const _0x34648b={'id':_0x52ebe1,'type':_0x1081d0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1f7b95,'createdAt':_0x34708b?new Date(_0x34708b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x34648b);});}},fe=class extends _0x545319{['afterInit'](){const _0x45f246=this['editor'],_0xf30e1e=_0x45f246['plugins']['get']('TrackChangesEditing');if(_0x45f246['plugins']['has']('IndentEditing')&&(_0xf30e1e['enableCommand']('indent'),_0xf30e1e['enableCommand']('outdent')),_0x45f246['plugins']['has']('IndentBlock')){for(const _0xfbe192 of['indentBlock','outdentBlock'])_0xf30e1e['enableDefaultAttributesIntegration'](_0xfbe192);if(_0x45f246['plugins']['has']('ListEditing')){for(const _0x2a77cf of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xf30e1e['enableDefaultAttributesIntegration'](_0x2a77cf);}}const _0x238c5a=_0x45f246['locale'];_0xf30e1e['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x238c5a,'FORMAT_INDENT')),_0xf30e1e['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x238c5a,'FORMAT_INDENT')),_0xf30e1e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x238c5a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c79e7=this['editor'],_0xf32e83=_0x4c79e7['locale'],_0x4b58bd=_0x4c79e7['plugins']['get']('TrackChangesEditing');_0x4b58bd['descriptionFactory']['registerDescriptionCallback'](_0xe5daa0=>{if('formatBlock'!=_0xe5daa0['type'])return;const {data:_0x155fae}=_0xe5daa0;if(!_0x155fae)return;if('indentBlock'!=_0x155fae['commandName']&&'outdentBlock'!=_0x155fae['commandName'])return;const _0xd1574b=_0xe5daa0['getItems']()[0x0],_0xedc68d=_0x4b58bd['descriptionFactory']['getItemLabel'](_0xd1574b);return'indentBlock'==_0x155fae['commandName']?{'type':'format','content':St(_0xf32e83,'*Indent:*\x20%0',_0xedc68d)}:'outdentBlock'==_0x155fae['commandName']?{'type':'format','content':St(_0xf32e83,'*Outdent:*\x20%0',_0xedc68d)}:void 0x0;});}},me=class extends _0x545319{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x545319{['afterInit'](){const _0x55fa58=this['editor'];if(!_0x55fa58['plugins']['has']('LinkEditing'))return;const _0x17c01f=_0x55fa58['plugins']['get']('TrackChangesEditing'),_0x1035b5=_0x55fa58['commands']['get']('link');_0x17c01f['enableDefaultAttributesIntegration']('link'),_0x17c01f['enableDefaultAttributesIntegration']('unlink');for(const _0x497cce of _0x1035b5['manualDecorators'])_0x17c01f['descriptionFactory']['registerAttributeLabel'](_0x497cce['id'],'link\x20('+_0x497cce['label']['toLowerCase']()+')');_0x17c01f['descriptionFactory']['registerDescriptionCallback'](_0x1184e2=>{if('attribute'!=_0x1184e2['type'])return;const {data:_0x4ddf80}=_0x1184e2;if(!_0x4ddf80||'linkHref'!=_0x4ddf80['key'])return;const _0x363c41=_0x4ddf80['newValue'],_0x356895=_0x55fa58['locale'];return{'type':'format','content':null==_0x363c41?St(_0x356895,'*Remove\x20link*'):St(_0x356895,'*Set\x20link:*\x20%0','\x22'+_0x363c41+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26f25e=this['editor'],_0x181f1c=_0x26f25e['locale'];_0x26f25e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x278dad=>{if('formatInline'!=_0x278dad['type'])return;const {data:_0x434dcb}=_0x278dad;if(_0x434dcb){if('link'==_0x434dcb['commandName']){const _0x2219bd=_0x434dcb['commandParams'][0x0];return{'type':'format','content':St(_0x181f1c,'*Set\x20link:*\x20%0','\x22'+_0x2219bd+'\x22')};}return'unlink'==_0x434dcb['commandName']?{'type':'format','content':St(_0x181f1c,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x545319{['afterInit'](){const _0x28e421=this['editor'],_0x589ec8=_0x28e421['locale'];if(!_0x28e421['plugins']['has']('LegacyListEditing'))return;const _0xffe034=_0x28e421['plugins']['get']('TrackChangesEditing'),_0x9c1ef4=_0x28e421['plugins']['has']('LegacyTodoListEditing');function _0x295135(_0x1b8625){return()=>{const _0x2dc7a3=_0x28e421['model']['document']['selection'],_0x1cb82d=_0x28e421['commands']['get'](_0x1b8625);if(_0x1cb82d['value'])return void _0x28e421['execute']('paragraph',{});const _0x48ddbe=_0x1b8625['slice'](0x0,-0x4),_0x1b76cf=function(_0x4659fb,_0x503a29,_0x9e617a){let _0x3e9a84=Array['from'](_0x4659fb)['filter'](_0x8b09bf=>function(_0x530e6f,_0x4f9ff0){return _0x4f9ff0['checkChild'](_0x530e6f['parent'],'listItem')&&!_0x4f9ff0['isObject'](_0x530e6f);}(_0x8b09bf,_0x9e617a));_0x3e9a84=_0x3e9a84['filter'](_0x5c105f=>!_0x5c105f['is']('element','listItem')||_0x5c105f['getAttribute']('listType')!=_0x503a29);const _0x5b71a8=new Set();for(const _0x3c7df9 of _0x3e9a84)_0x3c7df9['is']('element','listItem')?_0x5b71a8['add'](_e(_0x3c7df9)):_0x5b71a8['add'](_0x3c7df9);return Array['from'](_0x5b71a8);}(_0x2dc7a3['getSelectedBlocks'](),_0x48ddbe,_0x28e421['model']['schema']);_0x28e421['model']['change'](()=>{for(const _0x4f4514 of _0x1b76cf)_0xffe034['markBlockFormat'](_0x4f4514,{'commandName':_0x1b8625,'commandParams':[{'forceValue':!_0x1cb82d['value']}],'formatGroupId':'blockName'},pe(_0x4f4514));});};}function _0x62c4dc(_0x1ff93c){return()=>{const _0x20ba75=function(_0x40b7aa){let _0x479769=Array['from'](_0x40b7aa);const _0x2412bf=_0x479769['findIndex'](_0x5a3faa=>'listItem'!=_0x5a3faa['name']);return _0x2412bf>-0x1&&(_0x479769=_0x479769['slice'](0x0,_0x2412bf)),_0x479769;}(_0x28e421['model']['document']['selection']['getSelectedBlocks']()),_0x2ce25d=_0x28e421['model']['createRange'](_0x28e421['model']['createPositionAt'](_0x20ba75[0x0],'before'),_0x28e421['model']['createPositionAt'](_0x20ba75[_0x20ba75['length']-0x1],'end'));_0x28e421['model']['change'](()=>{_0xffe034['markBlockFormat'](_0x2ce25d,{'commandName':_0x1ff93c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x52dae7){const _0x1acc68=new Set();for(const _0x3addbe of _0x52dae7){let _0x12b5f7=_0x3addbe['nextSibling'];for(;_0x12b5f7&&_0x12b5f7['getAttribute']('listIndent')>_0x3addbe['getAttribute']('listIndent');)_0x1acc68['add'](_0x12b5f7),_0x12b5f7=_0x12b5f7['nextSibling'];}return Array['from'](_0x1acc68);}(_0x20ba75));});};}_0xffe034['enableCommand']('numberedList',_0x295135('numberedList')),_0xffe034['enableCommand']('bulletedList',_0x295135('bulletedList')),_0x9c1ef4&&_0xffe034['enableCommand']('todoList',_0x295135('todoList')),_0xffe034['enableCommand']('indentList',_0x62c4dc('indentList')),_0xffe034['enableCommand']('outdentList',_0x62c4dc('outdentList')),_0x9c1ef4&&_0xffe034['enableCommand']('checkTodoList',()=>{const _0x5622c5=_0x28e421['commands']['get']('checkTodoList'),_0x15b18f=Array['from'](_0x5622c5['_selectedElements']);_0x15b18f['filter'](_0x457f4f=>_0x457f4f['getAttribute']('todoListChecked')!=_0x5622c5['value']),_0x28e421['model']['change'](()=>{for(const _0x4cc2a4 of _0x15b18f)_0xffe034['markBlockFormat'](_0x4cc2a4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5622c5['value']}]});});}),_0xffe034['descriptionFactory']['registerElementLabel']('listItem',_0xff373a=>St(_0x589ec8,'ELEMENT_LIST_ITEM',_0xff373a)),_0xffe034['descriptionFactory']['registerDescriptionCallback'](_0x115d64=>{if('formatBlock'!=_0x115d64['type']&&'formatInline'!=_0x115d64['type'])return;const {data:_0x1e698c}=_0x115d64;if(_0x1e698c){if('numberedList'==_0x1e698c['commandName']||'bulletedList'==_0x1e698c['commandName']||'todoList'==_0x1e698c['commandName'])switch(_0x1e698c['commandName']['replace']('List','')){case'bulleted':return _0x1655f4(St(_0x589ec8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1655f4(St(_0x589ec8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1655f4(St(_0x589ec8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1e698c['commandName'])return{'type':'format','content':St(_0x589ec8,'*Indent:*\x20%0',St(_0x589ec8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1e698c['commandName'])return{'type':'format','content':St(_0x589ec8,'*Outdent:*\x20%0',St(_0x589ec8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1e698c['commandName'])return _0x1e698c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x589ec8,'*Check\x20item*')}:{'type':'format','content':St(_0x589ec8,'*Uncheck\x20item*')};}function _0x1655f4(_0xaf464e){return{'type':'format','content':St(_0x589ec8,'*Change\x20to:*\x20%0',_0xaf464e)};}});}};function _e(_0x54676d){const _0x57f725=_0x54676d['getAttribute']('listIndent');if(0x0==_0x57f725)return _0x54676d;let _0x217097=_0x54676d;for(;_0x54676d['previousSibling']&&_0x54676d['previousSibling']['is']('element','listItem');){const _0x3f4c52=_0x54676d['previousSibling']['getAttribute']('listIndent');if(_0x3f4c52==_0x57f725)_0x217097=_0x54676d['previousSibling'];else{if(_0x3f4c52<_0x57f725)break;}_0x54676d=_0x54676d['previousSibling'];}return _0x217097;}function pe(_0x2a6c8a){const _0x4a40d6=[];if(_0x2a6c8a['is']('element','listItem')&&_0x2a6c8a['getAttribute']('listIndent')>0x0){let _0x20eec3=_0x2a6c8a['nextSibling'];for(;_0x20eec3&&'listItem'==_0x20eec3['name']&&_0x20eec3['getAttribute']('listIndent')==_0x2a6c8a['getAttribute']('listIndent');)_0x4a40d6['push'](_0x20eec3),_0x20eec3=_0x20eec3['nextSibling'];}return _0x4a40d6;}var Le=class extends _0x545319{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1381de=this['editor']['config']['get']('list.properties'),_0x15128e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1381de['styles']&&_0x15128e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1381de['reversed']&&_0x15128e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1381de['startIndex']&&_0x15128e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x15128e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x878e75,_0x5b8e13={}){const _0xd2765d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b7e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd2765d['markMultiRangeBlockFormat'](_0x56b7e4,{'commandName':'listStyle','commandParams':[{'type':_0x5b8e13['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xeea8df,_0x885fa7={}){const _0x39405e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402663=this['_getSuggestionBlocks'](_0xe1d2d1=>_0xe1d2d1['is']('element','listItem')&&'numbered'===_0xe1d2d1['getAttribute']('listType'));if(_0x402663['length']<0x1)return;const _0x283c19=_0x402663['map'](_0x3b467a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b467a,'before'),this['editor']['model']['createPositionAt'](_0x3b467a,0x0)));this['editor']['model']['change'](()=>{_0x39405e['markMultiRangeBlockFormat'](_0x283c19,{'commandName':'listReversed','commandParams':[{'reversed':_0x885fa7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x11a472,_0xe352e7={}){const _0x403e6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x508645=this['_getSuggestionBlocks'](_0x557cef=>_0x557cef['is']('element','listItem')&&'numbered'===_0x557cef['getAttribute']('listType'));if(_0x508645['length']<0x1)return;const _0x2d3852=_0x508645['map'](_0x371534=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x371534,'before'),this['editor']['model']['createPositionAt'](_0x371534,0x0)));this['editor']['model']['change'](()=>{_0x403e6f['markMultiRangeBlockFormat'](_0x2d3852,{'commandName':'listStart','commandParams':[{'startIndex':_0xe352e7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4934bb){if('formatBlock'!=_0x4934bb['type']&&'formatInline'!=_0x4934bb['type'])return;const _0xaf1fce=this['editor']['locale'],{data:_0x1d4e77}=_0x4934bb;if(!_0x1d4e77)return;let _0xddef72,_0x1a2fa5;switch(_0x1d4e77['commandName']){case'listStyle':_0xddef72='*Change\x20to:*\x20%0',_0x1a2fa5={'type':'format','content':St(_0xaf1fce,_0xddef72,St(_0xaf1fce,this['_getTranslationKeyForListStyle'](_0x1d4e77['commandParams'][0x0]['type'])))};break;case'listReversed':_0xddef72=_0x1d4e77['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a2fa5={'type':'format','content':St(_0xaf1fce,_0xddef72)};break;case'listStart':_0xddef72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a2fa5={'type':'format','content':St(_0xaf1fce,_0xddef72,_0x1d4e77['commandParams'][0x0]['startIndex'])};}return _0x1a2fa5;}['_getSuggestionBlocksForListStyle'](){const _0x4553fc=this['editor']['plugins']['get']('LegacyListUtils');let _0xd5380d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd5380d[0x0]?.['is']('element','listItem')&&_0xd5380d['unshift'](..._0x4553fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd5380d[_0xd5380d['length']-0x1]?.['is']('element','listItem')&&_0xd5380d['push'](..._0x4553fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd5380d=[...new Set(_0xd5380d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd5380d=_0xd5380d['filter'](_0xa7724=>_0xa7724['is']('element','listItem'))),_0xd5380d;}['_getSuggestionBlocks'](_0xb7581f){const _0x33b153=this['editor']['plugins']['get']('LegacyListUtils');let _0x483028=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xb7581f)['map'](_0x2d6bc8=>{const _0x91bee0=this['editor']['model']['createPositionAt'](_0x2d6bc8,0x0);return[..._0x33b153['getSiblingNodes'](_0x91bee0,'backward'),..._0x33b153['getSiblingNodes'](_0x91bee0,'forward')];})['flat']();return _0x483028=[...new Set(_0x483028)],_0x483028;}['_getTranslationKeyForListStyle'](_0x57c1ec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x57c1ec)||'default')['toUpperCase']()+'_LIST_'+_0x57c1ec['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x545319{['afterInit'](){const _0x19b9f7=this['editor'];if(!_0x19b9f7['plugins']['has']('MediaEmbedEditing'))return;const _0x216ba5=_0x19b9f7['plugins']['get']('TrackChangesEditing'),_0x35ed2d=_0x19b9f7['locale'];_0x216ba5['enableCommand']('mediaEmbed'),_0x216ba5['descriptionFactory']['registerElementLabel']('media',_0x2463fa=>St(_0x35ed2d,'ELEMENT_MEDIA',_0x2463fa)),_0x19b9f7['plugins']['has']('MediaEmbedResizeEditing')&&(_0x216ba5['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x216ba5['descriptionFactory']['registerDescriptionCallback'](_0x5d623b=>{if('attribute'!=_0x5d623b['type'])return;const {data:_0x27f8b5}=_0x5d623b;if(!_0x27f8b5||'resizedWidth'!=_0x27f8b5['key'])return;const _0x4722f8=_0x5d623b['getContainedElement']();return _0x4722f8&&_0x4722f8['is']('element','media')?{'type':'format','content':St(_0x35ed2d,'*Set\x20format:*\x20%0',St(_0x35ed2d,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x545319{['afterInit'](){const _0x1e9cba=this['editor'];if(!_0x1e9cba['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3e76fb=_0x1e9cba['plugins']['get']('TrackChangesEditing'),_0x518136=_0x1e9cba['locale'],_0x212177=_0x1e9cba['plugins']['get']('MediaEmbedStyleEditing'),_0x4cba74={};for(const _0x182b9f of _0x212177['normalizedStyles'])_0x4cba74[_0x182b9f['name']]=_0x182b9f['title']['toLowerCase']();const _0x39f894=_0x212177['normalizedStyles']['find'](_0x4a8981=>_0x4a8981['isDefault'])?.['name'];_0x3e76fb['enableCommand']('mediaStyle',(_0x290860,_0x3f4d95)=>{const _0x14142e=_0x1e9cba['plugins']['get']('Users')['me'],_0x2ec08d=_0x1e9cba['commands']['get']('mediaStyle'),_0x82f0bc=function(_0x42381c){const _0x27414b=_0x42381c['model']['document']['selection']['getSelectedElement']();return _0x27414b&&_0x27414b['is']('element','media')?_0x27414b:null;}(_0x1e9cba);if(!_0x82f0bc)return;const _0x25103e=_0x1e9cba['model']['createRangeOn'](_0x82f0bc);let _0x5556b8=_0x2ec08d['value'];if(_0x5556b8==_0x3f4d95['value'])return;const _0x1eacf9={'commandName':'mediaStyle','commandParams':[_0x3f4d95],'formatGroupId':_0xf105bf()};_0x1e9cba['model']['change'](()=>{_0x3e76fb['getSuggestions']()['filter'](_0x1c4fb8=>_0x1c4fb8['isInContent']&&_0x14142e==_0x1c4fb8['author']&&'formatBlock'==_0x1c4fb8['type']&&'mediaStylePostApply'==_0x1c4fb8['subType']&&_0x1c4fb8['getFirstRange']()['isEqual'](_0x25103e))['forEach'](_0xc1862=>_0x3e76fb['discardSuggestion'](_0xc1862['head'])),_0x2ec08d['refresh'](),_0x5556b8=_0x2ec08d['value'],_0x5556b8!=_0x3f4d95['value']&&_0x3e76fb['markBlockFormat'](_0x82f0bc,{..._0x1eacf9,'commandReversedParams':[{'value':'string'==typeof _0x5556b8?_0x5556b8:null}]},[],'mediaStylePostApply');});}),_0x3e76fb['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3e76fb['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x172adc,_0x2c6ecc)=>{_0x3e76fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x172adc,{'commandName':_0x2c6ecc['commandName'],'commandParams':_0x2c6ecc['commandReversedParams']});}),_0x3e76fb['descriptionFactory']['registerDescriptionCallback'](_0x35c839=>{if('formatBlock'!=_0x35c839['type'])return;const {data:_0x2dcead}=_0x35c839;if(!_0x2dcead||'mediaStyle'!=_0x2dcead['commandName'])return;const _0x36c5c3=_0x2dcead['commandParams'][0x0]['value']||_0x39f894;return _0x36c5c3?{'type':'format','content':St(_0x518136,'*Format:*\x20%0',_0x4cba74[_0x36c5c3]||_0x36c5c3)}:void 0x0;});}},be=class extends _0x545319{['afterInit'](){const _0x132a58=this['editor'];_0x132a58['plugins']['has']('MentionEditing')&&_0x132a58['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x545319{['afterInit'](){const _0x49e5ff=this['editor'];if(!_0x49e5ff['plugins']['has']('MergeFieldsEditing'))return;const _0x340c97=_0x49e5ff['plugins']['get']('TrackChangesEditing'),_0x176a2b=_0x49e5ff['locale'];_0x340c97['enableCommand']('insertMergeField'),_0x340c97['enableCommand']('insertMergeFieldBlock'),_0x340c97['enableCommand']('insertMergeFieldImage'),_0x340c97['descriptionFactory']['registerElementLabel']('mergeField',_0xc7b402=>St(_0x176a2b,'ELEMENT_MERGE_FIELD',_0xc7b402)),_0x340c97['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x423608=>St(_0x176a2b,'ELEMENT_MERGE_FIELD',_0x423608)),_0x340c97['descriptionFactory']['registerDescriptionCallback'](_0x383940=>{if('insertion'!=_0x383940['type']&&'deletion'!=_0x383940['type'])return;const _0x30c1a6=_0x383940['getContainedElement']();if(null==_0x30c1a6)return;const _0x54960f=_0x49e5ff['plugins']['get']('MergeFieldsEditing');let _0x1faaea;switch(_0x54960f['getMergeFieldType'](_0x30c1a6)){case null:return;case'image':{const _0x39ac33=_0x54960f['unwrapAffixes'](_0x30c1a6['getAttribute']('src'));_0x1faaea=_0x54960f['getLabel'](_0x39ac33)||_0x39ac33;break;}default:{const _0x1930ec=_0x30c1a6['getAttribute']('id');_0x1faaea=_0x54960f['getLabel'](_0x1930ec)||_0x1930ec;break;}}return'insertion'==_0x383940['type']?{'type':'insertion','content':St(_0x176a2b,'*Insert:*\x20%0','\x22'+_0x1faaea+'\x22\x20'+St(_0x176a2b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x176a2b,'*Remove:*\x20%0','\x22'+_0x1faaea+'\x22\x20'+St(_0x176a2b,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x545319{['afterInit'](){const _0x3c867c=this['editor'],_0x2666ec=_0x3c867c['plugins']['get']('TrackChangesEditing');_0x3c867c['plugins']['has']('MultiLevelList')&&(_0x2666ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x2666ec['descriptionFactory']['registerDescriptionCallback'](_0x11ef7d=>this['handleDescriptions'](_0x11ef7d)));}['handleDescriptions'](_0x18990f){const _0x295be6=this['editor']['locale'],{data:_0x667986}=_0x18990f,_0x3ac587={'type':'format','content':''};if(_0x667986&&'listMarkerStyle'==_0x667986['key']){if(!_0x667986['oldValue'])return{'type':'format','content':St(_0x295be6,'*Set\x20format:*\x20%0',St(_0x295be6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x667986['newValue']+')'};if(!_0x667986['newValue']){let _0x5f1f86=_0x18990f['head'];for(;_0x5f1f86;){if(_0x5f1f86['data']&&'listType'==_0x5f1f86['data']['key']&&_0x5f1f86['data']['newValue'])return _0x3ac587;_0x5f1f86=_0x5f1f86['next'];}return{'type':'format','content':St(_0x295be6,'*Remove\x20format:*\x20%0',St(_0x295be6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x667986['oldValue']+')'};}}}},Re=class extends _0x545319{['afterInit'](){const _0x2dbf64=this['editor'];if(!_0x2dbf64['plugins']['has']('PageBreakEditing'))return;_0x2dbf64['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x57507b=_0x2dbf64['plugins']['get']('TrackChangesEditing'),_0x43bf9b=_0x2dbf64['locale'];_0x57507b['descriptionFactory']['registerElementLabel']('pageBreak',_0x23daf1=>St(_0x43bf9b,'ELEMENT_PAGE_BREAK',_0x23daf1));}},Ne=class extends _0x545319{['afterInit'](){const _0x41972b=this['editor'];if(!_0x41972b['plugins']['has']('Paragraph'))return;const _0x2894c6=_0x41972b['locale'],_0x4e3323=_0x41972b['plugins']['get']('TrackChangesEditing');_0x4e3323['descriptionFactory']['registerElementLabel']('paragraph',_0x133999=>St(_0x2894c6,'ELEMENT_PARAGRAPH',_0x133999)),_0x4e3323['enableDefaultAttributesIntegration']('paragraph'),_0x4e3323['enableCommand']('insertParagraph');const _0x5de7e8=_0x4e3323['descriptionFactory'];_0x5de7e8['registerDescriptionCallback'](_0x11a317=>{if('insertion'!==_0x11a317['type'])return;const {start:_0x578daf,end:_0x436330}=_0x11a317['getFirstRange']();if(!_0x578daf['isTouching'](_0x436330)||!_0x578daf['nodeAfter'])return;const _0x453ae1=_0x41972b['model']['schema'],_0x44eb4e=_0x578daf['nodeAfter'];return _0x453ae1['isBlock'](_0x44eb4e)&&!_0x453ae1['isLimit'](_0x44eb4e)&&_0x453ae1['checkChild'](_0x44eb4e,'$text')?{'type':'insertion','content':St(_0x2894c6,'*Insert:*\x20%0',_0x5de7e8['getItemLabel'](_0x44eb4e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23860a=this['editor'],_0x5e0108=_0x23860a['locale'];_0x23860a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2129c5=>{if('formatBlock'!=_0x2129c5['type'])return;const {data:_0x3cf887}=_0x2129c5;return _0x3cf887&&'paragraph'==_0x3cf887['commandName']?{'type':'format','content':St(_0x5e0108,'*Change\x20to:*\x20%0',St(_0x5e0108,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x545319{['afterInit'](){const _0x4e7f8d=this['editor'];_0x4e7f8d['commands']['get']('replaceSource')&&_0x4e7f8d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x545319{['afterInit'](){const _0x208674=this['editor'];_0x208674['plugins']['has']('RemoveFormatEditing')&&(_0x208674['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2ba63e=this['editor'];_0x2ba63e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f5307=>{if('formatBlock'!=_0x3f5307['type']&&'formatInline'!=_0x3f5307['type'])return;const {data:_0x1f226f}=_0x3f5307;return _0x1f226f&&'removeFormat'==_0x1f226f['commandName']?{'type':'format','content':St(_0x2ba63e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x545319{['afterInit'](){const _0x4e3ef7=this['editor'];if(!_0x4e3ef7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32b7df=_0x4e3ef7['plugins']['get']('TrackChangesEditing');_0x32b7df['enableCommand']('goToPreviousRestrictedEditingException'),_0x32b7df['enableCommand']('goToNextRestrictedEditingException');const _0x47f2d9=_0x4e3ef7['plugins']['get']('RestrictedEditingModeEditing');_0x47f2d9['enableCommand']('trackChanges'),_0x47f2d9['enableCommand']('acceptSuggestion'),_0x47f2d9['enableCommand']('discardSuggestion'),_0x47f2d9['enableCommand']('acceptAllSuggestions'),_0x47f2d9['enableCommand']('discardAllSuggestions'),_0x47f2d9['enableCommand']('acceptSelectedSuggestions'),_0x47f2d9['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x545319{['afterInit'](){const _0x581da1=this['editor'];if(!_0x581da1['plugins']['has']('ShiftEnter'))return;const _0x59a602=_0x581da1['plugins']['get']('TrackChangesEditing');_0x59a602['enableCommand']('shiftEnter'),_0x59a602['descriptionFactory']['registerElementLabel']('softBreak',_0x5bcdab=>St(_0x581da1['locale'],'ELEMENT_LINE_BREAK',_0x5bcdab));}};function we(_0x37655a,_0x1dfb7f,_0x102566){const _0x52f684=[];for(const _0x2e3a9b of _0x1dfb7f['getItems']())_0x2e3a9b['hasAttribute'](_0x37655a)&&_0x52f684['push'](_0x102566['createRangeOn'](_0x2e3a9b));return _0x52f684;}var Fe=class extends _0x545319{['afterInit'](){const _0x30fee0=this['editor'],_0x1d0071=_0x30fee0['plugins']['get']('TrackChangesEditing');_0x30fee0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1d0071['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xdba860=this['editor'],_0x16f0b6=_0xdba860['model'],_0x449592=_0xdba860['locale'],_0x1ecead=_0xdba860['plugins']['get']('TrackChangesEditing'),_0x3e52be='restrictedEditingException',_0x5b5cf6=_0xdba860['commands']['get'](_0x3e52be);_0x1ecead['enableCommand'](_0x3e52be,(_0x5743f3,_0x19cc2d={})=>{const _0x467cd3=_0x16f0b6['document']['selection'];if(_0x467cd3['isCollapsed'])return void _0x5743f3(_0x19cc2d);const _0x468eac=void 0x0!==_0x19cc2d['forceValue']?_0x19cc2d['forceValue']:!_0x5b5cf6['value'];_0x16f0b6['change'](()=>{const _0x308634=Array['from'](_0x467cd3['getRanges']());for(const _0x21d36f of _0x308634){const _0x2885ac=_0x468eac?[_0x21d36f]:we(_0x3e52be,_0x21d36f,_0x16f0b6);for(const _0x370de7 of _0x2885ac)_0x1ecead['markInlineFormat'](_0x370de7,{'commandName':_0x3e52be,'commandParams':[{'forceValue':_0x468eac}]});}});}),_0x1ecead['descriptionFactory']['registerDescriptionCallback'](_0x119f9f=>{if('formatBlock'!=_0x119f9f['type']&&'formatInline'!=_0x119f9f['type'])return;const {data:_0x1c5aaa}=_0x119f9f;return _0x1c5aaa&&_0x1c5aaa['commandName']==_0x3e52be?_0x1c5aaa['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x449592,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x449592,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x47266c=this['editor'],_0x109157=_0x47266c['locale'],_0xf79933=_0x47266c['plugins']['get']('TrackChangesEditing'),_0xf84440='restrictedEditingExceptionBlock',_0x446b90=this['editor']['commands']['get'](_0xf84440);_0xf79933['enableCommand'](_0xf84440,(_0x16a671,_0x17a7e1={})=>{const _0x2fdc05=this['editor']['model']['document']['selection'],_0x4fe4fe=_0x17a7e1&&void 0x0!==_0x17a7e1['forceValue']?_0x17a7e1['forceValue']:!_0x446b90['value'];let _0x20d477=[];_0x20d477=At(_0x4fe4fe?Array['from'](_0x2fdc05['getSelectedBlocks']())['filter'](_0x6ab96e=>function(_0x40c5d3){return!!_0x40c5d3['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6ab96e)||function(_0x44dac1,_0x2ee390){const _0x459930=_0x2ee390['createContext'](_0x44dac1['parent']);return!!_0x2ee390['checkChild'](_0x459930,'restrictedEditingException')&&!!_0x2ee390['checkChild'](_0x459930['push']('restrictedEditingException'),_0x44dac1);}(_0x6ab96e,this['editor']['model']['schema'])):Array['from'](_0x2fdc05['getSelectedBlocks']())['map'](_0x2ce7bf=>function(_0x175155){let _0x1dfc21=_0x175155;for(;_0x1dfc21['parent'];){if('restrictedEditingException'==_0x1dfc21['parent']['name'])return _0x1dfc21;_0x1dfc21=_0x1dfc21['parent'];}return null;}(_0x2ce7bf))['filter'](_0x35710a=>!!_0x35710a),_0x47266c['model']),_0x47266c['model']['change'](()=>{for(const _0x986604 of _0x20d477)_0xf79933['markBlockFormat'](_0x986604,{'commandName':_0xf84440,'commandParams':[{'forceValue':_0x4fe4fe}]});});}),_0xf79933['descriptionFactory']['registerDescriptionCallback'](_0x544617=>{const {data:_0x1016f4}=_0x544617;if(_0x1016f4&&_0x1016f4['commandName']==_0xf84440)return _0x1016f4['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x109157,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x109157,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x545319{['afterInit'](){const _0x4c525f=this['editor'];_0x4c525f['plugins']['has']('Style')&&_0x4c525f['plugins']['has']('DataSchema')&&(_0x4c525f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1e66e8=this['editor'],_0xf47b05=_0x1e66e8['locale'];_0x1e66e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29535f=>{if('formatBlock'!=_0x29535f['type']&&'formatInline'!=_0x29535f['type'])return;const {data:_0x3db7a6}=_0x29535f;return _0x3db7a6&&'style'===_0x3db7a6['commandName']?_0x3db7a6['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0xf47b05,'*Set\x20format:*\x20%0',_0x3db7a6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0xf47b05,'*Remove\x20format:*\x20%0',_0x3db7a6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x545319{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5a53d8){super(_0x5a53d8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3027d6=this['editor'],_0x3988b1=_0x3027d6['model']['document']['selection'];if(!_0x3027d6['plugins']['has']('TableEditing'))return;const _0x3567c4=_0x3027d6['locale'],_0x2421eb=_0x3027d6['plugins']['get']('TrackChangesEditing'),_0x112660=_0x3027d6['plugins']['get']('TableUtils');_0x2421eb['descriptionFactory']['registerElementLabel']('table',_0x20ffe0=>St(_0x3567c4,'ELEMENT_TABLE',_0x20ffe0)),this['_setupColumnsRowsFixing'](),_0x2421eb['enableCommand']('insertTable'),_0x2421eb['enableCommand']('selectTableRow'),_0x2421eb['enableCommand']('selectTableColumn');for(const _0x5311db of['insertTableRowAbove','insertTableRowBelow']){const _0x362116=_0x3027d6['commands']['get'](_0x5311db);_0x2421eb['enableCommand'](_0x5311db,_0x4cacdf=>{_0x3027d6['model']['change'](_0x5b0903=>{_0x4cacdf();const _0x1f7e05='above'===_0x362116['order'],_0x43ff85=_0x112660['getSelectionAffectedTableCells'](_0x3988b1),_0x30a6e5=_0x112660['getRowIndexes'](_0x43ff85),_0x8168e0=_0x1f7e05?_0x30a6e5['first']-0x1:_0x30a6e5['last']+0x1,_0x2b729b=_0x43ff85[0x0]['findAncestor']('table'),_0x3c146e=_0x112660['createTableWalker'](_0x2b729b,{'startRow':_0x8168e0,'endRow':_0x8168e0}),_0xb5413c=Array['from'](_0x3c146e)['map'](_0x492b6a=>_0x5b0903['createRangeOn'](_0x492b6a['cell']));_0x2421eb['markMultiRangeInsertion'](_0xb5413c,'tableRow');});});}for(const _0x4c5aef of['insertTableColumnLeft','insertTableColumnRight']){const _0x470b1a=_0x3027d6['commands']['get'](_0x4c5aef);_0x2421eb['enableCommand'](_0x4c5aef,_0x56aa13=>{_0x3027d6['model']['change'](_0xeefd86=>{_0x56aa13();const _0xb9756d='left'===_0x470b1a['order'],_0x60cfb7=_0x112660['getSelectionAffectedTableCells'](_0x3988b1),_0x1a72c4=_0x112660['getColumnIndexes'](_0x60cfb7),_0xe4c025=_0xb9756d?_0x1a72c4['first']-0x1:_0x1a72c4['last']+0x1,_0x272bec=_0x60cfb7[0x0]['findAncestor']('table'),_0x4b661c=_0x112660['createTableWalker'](_0x272bec,{'startRow':0x0,'column':_0xe4c025,'includeAllSlots':!0x1}),_0x375758=Array['from'](_0x4b661c)['map'](_0x3404fa=>_0xeefd86['createRangeOn'](_0x3404fa['cell']));_0x2421eb['markMultiRangeInsertion'](_0x375758,'tableColumn');});});}for(const _0x334893 of['removeTableRow','removeTableColumn']){const _0x2f1f9c=_0x334893['substr'](0xb),_0x54701b=_0x2f1f9c['toLowerCase'](),_0xa25bde=_0x54701b['substr'](0x0,0x3)+'span',_0x5f4c38='table'+_0x2f1f9c,_0x4390b0='min'+_0x2f1f9c,_0x9d0455='max'+_0x2f1f9c;_0x2421eb['enableCommand'](_0x334893,()=>{_0x3027d6['model']['change'](_0xe8f07f=>{const _0x204ebf=_0x112660['getSelectionAffectedTableCells'](_0x3988b1),_0x50725b=_0x204ebf[0x0]['findAncestor']('table');let _0x1bddee;if('removeTableRow'==_0x334893){const _0x5c069d=_0x112660['getRowIndexes'](_0x204ebf);_0x1bddee={'startRow':_0x5c069d['first'],'endRow':_0x5c069d['last'],'includeAllSlots':!0x0};}else{const _0x4e9b1c=_0x112660['getColumnIndexes'](_0x204ebf);_0x1bddee={'startColumn':_0x4e9b1c['first'],'endColumn':_0x4e9b1c['last'],'includeAllSlots':!0x0};}const _0x1e04a3=_0x112660['createTableWalker'](_0x50725b,_0x1bddee),_0x516c21=Array['from'](_0x1e04a3)['map'](({cell:_0x3543c6})=>_0x3543c6),_0x126dd2=De(_0x516c21['filter'](_0x27d144=>_0x27d144['hasAttribute'](_0xa25bde))),_0x43e792=De(_0x516c21['filter'](_0x37fcd9=>!_0x37fcd9['hasAttribute'](_0xa25bde)))['map'](_0x569701=>_0xe8f07f['createRangeOn'](_0x569701)),_0x55fc04=_0x2421eb['markMultiRangeDeletion'](_0x43e792,_0x5f4c38);if(_0x55fc04&&('tableRow'==_0x55fc04['subType']||'tableColumn'==_0x55fc04['subType'])){const _0x5bea65=this['_getSuggestionCoords'](_0x55fc04);for(const _0x551415 of _0x126dd2){const _0xdfbad5=_0xe8f07f['createRangeOn'](_0x551415),_0xa87a09=_0x112660['getCellLocation'](_0x551415),_0x33c530=_0x551415['getAttribute'](_0xa25bde)-0x1,_0x39d4c7=_0x5bea65[_0x4390b0],_0x489c28=_0x5bea65[_0x9d0455];_0x39d4c7<=_0xa87a09[_0x54701b]&&_0xa87a09[_0x54701b]+_0x33c530<=_0x489c28&&_0x55fc04['addRange'](_0xdfbad5);}}});});}function _0x5a405b(_0x1965e8){const _0x44a8dc=Array['from'](_0x3988b1['getRanges']())['map'](_0x41014c=>rt['fromRange'](_0x41014c));_0x3027d6['model']['change'](_0x2aa652=>{const _0x2b21fd=_0x2aa652['batch'];_0x1965e8=_0x1965e8['filter'](_0x2f8c37=>'$graveyard'!=_0x2f8c37['root']['rootName']),_0x2aa652['setSelection'](_0x1965e8),_0x3027d6['commands']['get']('removeTableRow')['refresh'](),_0x3027d6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3027d6['model']['enqueueChange'](()=>{_0x3027d6['model']['enqueueChange'](_0x2b21fd,_0x3b53a7=>{const _0x4bdf84=_0x44a8dc['filter'](_0x495dac=>'$graveyard'!=_0x495dac['root']['rootName']);_0x4bdf84['length']>0x0&&_0x3b53a7['setSelection'](_0x4bdf84);for(const _0x271432 of _0x44a8dc)_0x271432['detach']();});});});}function _0x2c2eeb(_0x2b3f99){_0x3027d6['model']['change'](_0x10fdc9=>{const _0x3bf19f=Array['from'](_0x3988b1['getRanges']())['map'](_0x42c8f2=>rt['fromRange'](_0x42c8f2)),_0x508812=[];for(const _0x115bb4 of _0x2b3f99)for(const _0x1218f5 of _0x115bb4['getItems']({'shallow':!0x0}))_0x508812['push'](_0x1218f5);for(const _0x1b5188 of _0x508812)'$graveyard'!=_0x1b5188['root']['rootName']&&(_0x10fdc9['setSelection'](_0x10fdc9['createPositionAt'](_0x1b5188,0x0)),_0x3027d6['commands']['get']('removeTableColumn')['refresh'](),_0x3027d6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x177f38=_0x3bf19f['filter'](_0x84e408=>'$graveyard'!=_0x84e408['root']['rootName']);_0x177f38['length']>0x0&&_0x10fdc9['setSelection'](_0x177f38);for(const _0x5aa341 of _0x3bf19f)_0x5aa341['detach']();});}function _0x5ce879(_0x2292d0,_0x57ebbe){return _0x57ebbe['every'](_0x422c3b=>_0x2292d0['some'](_0x1a10a3=>_0x1a10a3['end']['isEqual'](_0x422c3b['start'])||_0x422c3b['end']['isEqual'](_0x1a10a3['start'])));}function _0x2eaf33(_0x3172bd,_0x42ed66){return!_0x3172bd['some'](_0x2a5629=>_0x42ed66['some'](_0x143d44=>_0x2a5629['isIntersecting'](_0x143d44)))&&_0x3172bd['some'](_0x5ddaa4=>_0x42ed66['some'](_0x3e0708=>_0x5ddaa4['end']['isTouching'](_0x3e0708['start'])));}_0x2421eb['descriptionFactory']['registerDescriptionCallback'](_0x2bb828=>{if('insertion'!=_0x2bb828['type']&&'deletion'!=_0x2bb828['type'])return;const _0x1e202f=_0x2bb828['getContainedElement']();if(null!=_0x1e202f&&_0x1e202f['is']('element','table')){if('insertion'==_0x2bb828['type']){const _0x964765=_0x2bb828['getItems']()['filter'](_0x5c32a6=>_0x5c32a6['is']('$textProxy'))['map'](_0x9bbe1c=>_0x9bbe1c['data']);if(_0x964765['length'])return{'type':'insertion','content':St(_0x3567c4,'*Insert:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x964765['join']('\x20')+'\x22'))};}if('deletion'==_0x2bb828['type']){const _0xe69d4e=_0x2bb828['getItems']()['filter'](_0x27df22=>_0x27df22['is']('$textProxy'))['map'](_0x1d7a48=>_0x1d7a48['data']);if(_0xe69d4e['length'])return{'type':'deletion','content':St(_0x3567c4,'*Remove:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe69d4e['join']('\x20')+'\x22'))};}}}),_0x2421eb['descriptionFactory']['registerDescriptionCallback'](_0xbfe171=>{if('tableRow'==_0xbfe171['subType']){const _0x38dd75=_0xbfe171['getItems']()['filter'](_0x144a1a=>_0x144a1a['is']('$textProxy'))['map'](_0x341a45=>_0x341a45['data']),_0x352f69=this['_getSuggestionCoords'](_0xbfe171),_0x5826aa=_0x352f69['maxRow']-_0x352f69['minRow']+0x1;if('insertion'==_0xbfe171['type'])return _0x38dd75['length']?{'type':'insertion','content':St(_0x3567c4,'*Insert:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5826aa,'\x22'+_0x38dd75['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x3567c4,'*Insert:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_ROW',_0x5826aa))};if('deletion'==_0xbfe171['type'])return _0x38dd75['length']?{'type':'deletion','content':St(_0x3567c4,'*Remove:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5826aa,'\x22'+_0x38dd75['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x3567c4,'*Remove:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_ROW',_0x5826aa))};}if('tableColumn'==_0xbfe171['subType']){const _0x54c7d5=_0xbfe171['getItems']()['filter'](_0x4aeed9=>_0x4aeed9['is']('$textProxy'))['map'](_0x5a2ff9=>_0x5a2ff9['data']),_0x3b755c=this['_getSuggestionCoords'](_0xbfe171),_0x34b14e=_0x3b755c['maxColumn']-_0x3b755c['minColumn']+0x1;if('insertion'==_0xbfe171['type'])return _0x54c7d5['length']?{'type':'insertion','content':St(_0x3567c4,'*Insert:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34b14e,'\x22'+_0x54c7d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x3567c4,'*Insert:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_COLUMN',_0x34b14e))};if('deletion'==_0xbfe171['type'])return _0x54c7d5['length']?{'type':'deletion','content':St(_0x3567c4,'*Remove:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34b14e,'\x22'+_0x54c7d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x3567c4,'*Remove:*\x20%0',St(_0x3567c4,'ELEMENT_TABLE_COLUMN',_0x34b14e))};}}),_0x2421eb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5a405b),_0x2421eb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5a405b),_0x2421eb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c2eeb),_0x2421eb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c2eeb),_0x2421eb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5ce879),_0x2421eb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5ce879),_0x2421eb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2eaf33),_0x2421eb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2eaf33);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3aa5c5=this['editor'],_0x5c9955=_0x3aa5c5['model']['document']['selection'];return(_0x127c6d,_0x1b2bcc)=>{_0x3aa5c5['model']['change'](_0x347621=>{const {commandName:_0x5edfed,commandParams:_0x2dee51}=_0x1b2bcc;let _0x492862=_0x127c6d[0x0]['end']['nodeBefore'];_0x2dee51&&_0x2dee51[0x0]&&!0x1===_0x2dee51[0x0]['forceValue']&&(_0x492862=_0x127c6d[0x0]['start']['nodeAfter']);const _0x2023b5=_0x347621['createRangeIn'](_0x492862);if('$graveyard'==_0x2023b5['root']['rootName'])return;const _0x385152=Array['from'](_0x5c9955['getRanges']())['map'](_0x3255ff=>rt['fromRange'](_0x3255ff));_0x347621['setSelection'](_0x2023b5),_0x3aa5c5['commands']['get'](_0x5edfed)['refresh'](),_0x2dee51['push']({'forceDefaultExecution':!0x0}),_0x3aa5c5['execute'](_0x5edfed,..._0x2dee51);const _0x1f45f8=_0x385152['filter'](_0x4caf48=>'$graveyard'!=_0x4caf48['root']['rootName']);_0x1f45f8['length']>0x0&&_0x347621['setSelection'](_0x1f45f8);for(const _0x477935 of _0x385152)_0x477935['detach']();});};}['_getCoordsForCells'](_0x3f3d5f){const _0xff10f2=this['editor']['plugins']['get']('TableUtils');let _0x4575f4=Number['MAX_SAFE_INTEGER'],_0x4a37f3=Number['MIN_SAFE_INTEGER'],_0x2968ed=Number['MAX_SAFE_INTEGER'],_0x283ab0=Number['MIN_SAFE_INTEGER'];for(const _0x1f3390 of _0x3f3d5f){if('$graveyard'==_0x1f3390['root']['rootName'])continue;const {row:_0x43279f,column:_0x24e882}=_0xff10f2['getCellLocation'](_0x1f3390),_0x1d1562=_0x1f3390['hasAttribute']('rowspan')?_0x1f3390['getAttribute']('rowspan')-0x1:0x0,_0x2bd152=_0x1f3390['hasAttribute']('colspan')?_0x1f3390['getAttribute']('colspan')-0x1:0x0;_0x4575f4=_0x43279f<_0x4575f4?_0x43279f:_0x4575f4,_0x4a37f3=_0x43279f+_0x1d1562>_0x4a37f3?_0x43279f+_0x1d1562:_0x4a37f3,_0x2968ed=_0x24e882<_0x2968ed?_0x24e882:_0x2968ed,_0x283ab0=_0x24e882+_0x2bd152>_0x283ab0?_0x24e882+_0x2bd152:_0x283ab0;}return{'minRow':_0x4575f4,'maxRow':_0x4a37f3,'minColumn':_0x2968ed,'maxColumn':_0x283ab0};}['_setupColumnsRowsFixing'](){const _0x4d89c0=this['editor'],_0x437004=_0x4d89c0['plugins']['get']('TrackChangesEditing'),_0x3f639c=_0x4d89c0['plugins']['get']('TableUtils');_0x4d89c0['model']['document']['on']('change:data',()=>{const _0x5889d8=Array['from'](_0x4d89c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dad71,data:_0x45c947}of _0x5889d8){const {group:_0x37cda2,id:_0x37aa8a,subType:_0x227613}=tt(_0x1dad71);if('suggestion'!=_0x37cda2)continue;if(null!=_0x45c947['oldRange'])continue;const _0x40bc75=_0x437004['getSuggestion'](_0x37aa8a);this['_tablePostFixingSubtypes']['includes'](_0x227613)&&this['_tableSuggestions']['add'](_0x40bc75);}},{'priority':'low'});const _0x4813f1=(_0x59a2d6,_0x3e96c8)=>{let _0x2a64e8=!0x1;const _0x4964fd=_0x3e96c8['createRangeOn'](_0x59a2d6),_0x279d92=_0x59a2d6['findAncestor']('table'),_0x3e2a81=_0x3f639c['getCellLocation'](_0x59a2d6);for(const _0x46495f of this['_tableSuggestions']){const _0x3e3532=_0x46495f['subType'],_0x204104=_0x3e3532['startsWith']('tablePaste'),_0x8e3332=_0x3e3532['substr'](_0x204104?0xa:0x5),_0x1928cf=_0x8e3332['toLowerCase'](),_0x2a2bd1=_0x1928cf['substr'](0x0,0x3)+'span',_0x257406='min'+_0x8e3332,_0x3c1b9b='max'+_0x8e3332;if(!_0x46495f['isInContent'])continue;if(_0x279d92!=_0x46495f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46495f['isIntersectingWithRange'](_0x4964fd))continue;const _0x1da398=_0x59a2d6['hasAttribute'](_0x2a2bd1)?_0x59a2d6['getAttribute'](_0x2a2bd1)-0x1:0x0,_0x1e1ece=this['_getSuggestionCoords'](_0x46495f),_0x3407ed=_0x1e1ece[_0x257406],_0x50fc05=_0x1e1ece[_0x3c1b9b];_0x3407ed<=_0x3e2a81[_0x1928cf]&&_0x3e2a81[_0x1928cf]+_0x1da398<=_0x50fc05&&(_0x46495f['addRange'](_0x4964fd),_0x2a64e8=!0x0);}return _0x2a64e8;};_0x4d89c0['model']['document']['registerPostFixer'](_0x1f109e=>{let _0x4789c9=!0x1;for(const _0x3873b2 of _0x4d89c0['model']['document']['differ']['getChanges']())if('insert'==_0x3873b2['type']){if('tableRow'==_0x3873b2['name']){for(const _0x3280c9 of _0x3873b2['position']['nodeAfter']['getChildren']())_0x4789c9=_0x4789c9||_0x4813f1(_0x3280c9,_0x1f109e);}else'tableCell'==_0x3873b2['name']&&(_0x4789c9=_0x4789c9||_0x4813f1(_0x3873b2['position']['nodeAfter'],_0x1f109e));}return _0x4789c9;});}['_getSuggestionCoords'](_0x261486){return this['_getCoordsForCells'](_0x261486['getRanges']()['map'](_0x4a85fc=>_0x4a85fc['start']['nodeAfter']));}};function De(_0x415bf2){return Array['from'](new Set(_0x415bf2)['values']());}var Ue=class extends _0x545319{static get['requires'](){return[ve];}['afterInit'](){const _0x3718a8=this['editor'],_0x45b6da=_0x3718a8['model']['document']['selection'],_0x37e476=_0x3718a8['locale'];if(!_0x3718a8['plugins']['has']('TableEditing'))return;const _0x7e6b18=_0x3718a8['plugins']['get']('TrackChangesEditing'),_0x587976=_0x3718a8['plugins']['get']('TableUtils'),_0x2b8b8b=_0x3718a8['plugins']['get'](ve);_0x2b8b8b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x7e6b18['enableCommand']('mergeTableCells',()=>{const _0x49a43f=_0x587976['getSelectionAffectedTableCells'](_0x3718a8['model']['document']['selection']);_0x3718a8['model']['change'](()=>{_0x7e6b18['markMultiRangeBlockFormat'](_0x49a43f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3718a8['commands']['get']('mergeTableCells')['on']('execute',(_0x49d6af,_0x1c43cb)=>{_0x3718a8['commands']['get']('trackChanges')['value']&&(_0x1c43cb['length']>0x0&&_0x1c43cb[_0x1c43cb['length']-0x1]&&_0x1c43cb[_0x1c43cb['length']-0x1]['forceDefaultExecution']||_0x7e6b18['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x49d6af['stop']());},{'priority':'highest'});for(const _0x47a821 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x353570=_0x3718a8['commands']['get'](_0x47a821);_0x7e6b18['enableCommand'](_0x47a821,()=>{const _0x2b23c6=_0x3718a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ab3bf=>_0x1ab3bf['is']('element','tableCell')),_0x3da9fa=_0x353570['value'];_0x3718a8['model']['change'](()=>{_0x7e6b18['markMultiRangeBlockFormat']([_0x2b23c6,_0x3da9fa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a5747 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f4711=_0x3718a8['commands']['get'](_0x1a5747);_0x7e6b18['enableCommand'](_0x1a5747,()=>{const _0x8e42dc=_0x587976['getSelectionAffectedTableCells'](_0x3718a8['model']['document']['selection'])[0x0],_0x38f643=_0x8e42dc['findAncestor']('table'),{column:_0x21e72f,row:_0x4edb42}=_0x587976['getCellLocation'](_0x8e42dc);let _0x4db325=[];if('horizontally'==_0x5f4711['direction']){const _0xb1271e=_0x587976['createTableWalker'](_0x38f643,{'startRow':_0x4edb42,'endRow':_0x4edb42,'includeAllSlots':!0x0});_0x4db325=Array['from'](_0xb1271e)['map'](_0x5c2bb6=>_0x5c2bb6['cell']);}else{const _0x4fc948=_0x587976['createTableWalker'](_0x38f643,{'column':_0x21e72f,'includeAllSlots':!0x0});_0x4db325=Array['from'](_0x4fc948)['map'](_0x156848=>_0x156848['cell']);}_0x3718a8['model']['change'](_0x2390c6=>{_0x7e6b18['markBlockFormat'](_0x2390c6['createRangeOn'](_0x8e42dc),{'commandName':_0x1a5747,'commandParams':[]},_0x4db325,_0x1a5747);});});}_0x7e6b18['descriptionFactory']['registerDescriptionCallback'](_0x5b88be=>{if('formatBlock'!=_0x5b88be['type']&&'formatInline'!=_0x5b88be['type'])return;const {data:_0x5b7969}=_0x5b88be;return _0x5b7969&&'mergeTableCells'==_0x5b7969['commandName']?{'type':'format','content':St(_0x37e476,'*Merge\x20cells*')}:void 0x0;}),_0x7e6b18['descriptionFactory']['registerDescriptionCallback'](_0x9a88a5=>{if('formatBlock'!=_0x9a88a5['type']&&'formatInline'!=_0x9a88a5['type'])return;const {data:_0x45dba9}=_0x9a88a5;return _0x45dba9?'splitTableCellVertically'==_0x45dba9['commandName']?{'type':'format','content':St(_0x37e476,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45dba9['commandName']?{'type':'format','content':St(_0x37e476,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1d08f4=_0x2b8b8b['_acceptFormatSuggestionCallbackFactory']();for(const _0x143a80 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x7e6b18['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x143a80,'accept',_0x1d08f4);for(const _0x28a901 of['splitTableCellVertically','splitTableCellHorizontally'])_0x7e6b18['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28a901,'accept',_0x1d08f4);_0x7e6b18['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1d57f4=>{_0x3718a8['model']['change'](_0x110d15=>{const _0x269f44=Array['from'](_0x45b6da['getRanges']())['map'](_0x145ac5=>rt['fromRange'](_0x145ac5));_0x110d15['setSelection'](_0x1d57f4),_0x3718a8['commands']['get']('mergeTableCells')['refresh'](),_0x3718a8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x218335=_0x269f44['filter'](_0x1bfaad=>'$graveyard'!=_0x1bfaad['root']['rootName']);_0x218335['length']>0x0&&_0x110d15['setSelection'](_0x218335);for(const _0x58003a of _0x269f44)_0x58003a['detach']();});});for(const _0x47f409 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xc09fbe=_0x3718a8['commands']['get'](_0x47f409);_0xc09fbe['on']('set:isEnabled',(_0x11d125,_0x23c088,_0x104d16)=>{if(_0x104d16){const _0xeb80d2=_0x3718a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1840a2=>_0x1840a2['is']('element','tableCell'));this['_areMergableCells'](_0xc09fbe['value'],_0xeb80d2)||(_0x11d125['return']=!0x1,_0x11d125['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50e1b1=this['editor']['commands']['get']('mergeTableCells'),_0x54987b=this['editor']['plugins']['get']('TableUtils');if(!_0x50e1b1['isEnabled'])return!0x1;const _0x5deb1e=_0x54987b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1c8c8e of _0x5deb1e)for(const _0x4c780e of _0x5deb1e)if(_0x1c8c8e!=_0x4c780e&&!this['_areMergableCells'](_0x1c8c8e,_0x4c780e))return!0x1;return!0x0;}['_areMergableCells'](_0x53ca3e,_0x4c643b){const _0x62f841=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a2ca1=this['editor']['model']['createRangeOn'](_0x53ca3e),_0x5da99c=this['editor']['model']['createRangeOn'](_0x4c643b),_0x2fbcbd=new Set(),_0x8fdd20=new Set();for(const _0x1e4003 of _0x62f841['getSuggestions']())if(('insertion'==_0x1e4003['type']||'deletion'==_0x1e4003['type']||'mergeTableCells'==_0x1e4003['subType'])&&_0x1e4003['isInContent']){for(const _0x38b9b8 of _0x1e4003['getRanges']())_0x38b9b8['containsRange'](_0x2a2ca1,!0x0)&&_0x2fbcbd['add'](_0x1e4003['type']+':'+_0x1e4003['author']['id']),_0x38b9b8['containsRange'](_0x5da99c,!0x0)&&_0x8fdd20['add'](_0x1e4003['type']+':'+_0x1e4003['author']['id']);}if(_0x2fbcbd['size']!=_0x8fdd20['size'])return!0x1;for(const _0x45f8a4 of _0x2fbcbd)if(!_0x8fdd20['has'](_0x45f8a4))return!0x1;return!0x0;}},Pe=class extends _0x545319{static get['requires'](){return[ve];}['afterInit'](){const _0x591724=this['editor'];if(!_0x591724['plugins']['has']('TableEditing'))return;const _0x46be0b=_0x591724['locale'],_0x10787a=_0x591724['plugins']['get']('TrackChangesEditing');_0x10787a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10787a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10787a['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x46be0b,'FORMAT_HEADER_ROW')),_0x10787a['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x46be0b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x55ee7b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a628=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x55ee7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x14a628),_0x55ee7b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x14a628),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x20e4b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b8402=this['editor']['plugins']['get']('TableUtils');function _0x4b8ced({showActiveMarker:_0x509fe0=!0x0,setDataAttribute:_0x193007=!0x0}={}){return(_0x35da16,_0x115a24,_0x1ec4cb)=>{const {type:_0x79bea3,id:_0x8fe6c2}=tt(_0x115a24['markerName']);if(!_0x20e4b0['hasSuggestion'](_0x8fe6c2))return;const _0x571a98=_0x20e4b0['getSuggestion'](_0x8fe6c2),_0x5e9906=_0x571a98['data'];if('formatBlock'!=_0x571a98['type']||!_0x5e9906||'setTableColumnHeader'!=_0x5e9906['commandName'])return;if(_0x115a24['item'])return void _0x35da16['stop']();if(!_0x1ec4cb['consumable']['consume'](_0x115a24['markerRange'],_0x35da16['name']))return;const _0x6546cf=_0x115a24['markerRange']['start']['nodeAfter'],_0x29fdc4=_0x115a24['markerRange']['end']['nodeBefore'],_0x43bd14=_0x6546cf['parent']['parent'],{column:_0x4384be}=_0x9b8402['getCellLocation'](_0x6546cf),{column:_0x4c0bad}=_0x9b8402['getCellLocation'](_0x29fdc4);for(let _0x177e36=_0x4384be;_0x177e36<=_0x4c0bad;_0x177e36++){const _0x34e06b=_0x9b8402['createTableWalker'](_0x43bd14,{'column':_0x177e36,'includeAllSlots':!0x1});for(const _0x2be4da of _0x34e06b){const _0x309970=_0x2be4da['cell'],_0x109272=_0x1ec4cb['mapper']['toViewElement'](_0x309970);_0x1ec4cb['writer']['addClass']('ck-suggestion-marker-'+_0x79bea3,_0x109272),_0x193007&&_0x1ec4cb['writer']['setAttribute']('data-suggestion',_0x8fe6c2,_0x109272),_0x1ec4cb['mapper']['bindElementToMarker'](_0x109272,_0x115a24['markerName']),_0x509fe0&&(_0x20e4b0['activeMarkers']['includes'](_0x115a24['markerName'])?_0x1ec4cb['writer']['addClass']('ck-suggestion-marker--active',_0x109272):_0x1ec4cb['writer']['removeClass']('ck-suggestion-marker--active',_0x109272));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4b8ced(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x523bc0,_0x2e38df,_0x8b6ffb)=>{_0x8b6ffb['options']['showSuggestionHighlights']&&_0x4b8ced({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x523bc0,_0x2e38df,_0x8b6ffb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x517260,_0xb347bf,_0x3a35f3)=>{const {type:_0x14fd99,id:_0x5e08e1}=tt(_0xb347bf['markerName']);if(!_0x20e4b0['hasSuggestion'](_0x5e08e1))return;const _0x581f1b=_0x20e4b0['getSuggestion'](_0x5e08e1),_0x268f9a=_0x581f1b['data'];if('formatBlock'!=_0x581f1b['type']||!_0x268f9a||'setTableColumnHeader'!=_0x268f9a['commandName'])return;const _0x59440b=_0x3a35f3['mapper']['markerNameToElements'](_0xb347bf['markerName']);if(_0x59440b){for(const _0xe2119f of _0x59440b)_0x3a35f3['writer']['removeClass']('ck-suggestion-marker-'+_0x14fd99,_0xe2119f),_0x3a35f3['writer']['removeClass']('ck-suggestion-marker--active',_0xe2119f),_0x3a35f3['writer']['removeAttribute']('data-suggestion',_0xe2119f),_0x3a35f3['mapper']['unbindElementFromMarkerName'](_0xe2119f,_0xb347bf['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1ce6a3=this['editor'],_0x311716=_0x1ce6a3['locale'];function _0x3caeb3(_0x3c41d3){return{'type':'format','content':St(_0x311716,'*Format:*\x20%0',_0x3c41d3)};}_0x1ce6a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3060c0=>{if('formatBlock'!=_0x3060c0['type'])return;const {data:_0x4b53f6}=_0x3060c0;return _0x4b53f6?'setTableRowHeader'==_0x4b53f6['commandName']?_0x4b53f6['commandParams'][0x0]['forceValue']?_0x3caeb3(St(_0x311716,'FORMAT_HEADER_ROW')):_0x3caeb3(St(_0x311716,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4b53f6['commandName']?_0x4b53f6['commandParams'][0x0]['forceValue']?_0x3caeb3(St(_0x311716,'FORMAT_HEADER_COLUMN')):_0x3caeb3(St(_0x311716,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x545319{static get['requires'](){return[ve];}['afterInit'](){const _0x24d133=this['editor'];if(!_0x24d133['plugins']['has']('TableEditing')||!_0x24d133['config']['get']('table.enableFooters'))return;const _0xa28264=_0x24d133['locale'],_0x9163f1=_0x24d133['plugins']['get']('TrackChangesEditing');_0x9163f1['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x9163f1['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0xa28264,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x545319{['afterInit'](){const _0x472cfe=this['editor'],_0x4987d0=_0x472cfe['locale'],_0x8b20ec=_0x472cfe['plugins']['get']('TrackChangesEditing');function _0x121447(_0x5470e9){return{'type':'format','content':''+St(_0x4987d0,'*Set\x20table\x20type:*\x20%0',_0x5470e9)};}_0x472cfe['plugins']['has']('TableLayout')&&(_0x8b20ec['enableCommand']('insertTableLayout'),_0x8b20ec['enableDefaultAttributesIntegration']('tableType'),_0x8b20ec['descriptionFactory']['registerElementLabel'](_0x26935c=>_0x26935c['is']('element','table')&&'layout'===_0x26935c['getAttribute']('tableType'),_0x50c6a9=>St(_0x4987d0,'ELEMENT_LAYOUT_TABLE',_0x50c6a9)),_0x8b20ec['descriptionFactory']['registerDescriptionCallback'](_0xa17d27=>{const {data:_0x36e1b4}=_0xa17d27;if(_0x36e1b4&&'tableType'==_0x36e1b4['key'])switch(_0x36e1b4['newValue']){case'layout':return _0x121447(St(_0x4987d0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x121447(St(_0x4987d0,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](He['map'](_0x1c4198=>[_0x1c4198,null]));var Ve=class extends _0x545319{static get['requires'](){return[ve];}['afterInit'](){const _0x211b6d=this['editor'];if(!_0x211b6d['plugins']['has']('TableClipboard'))return;const _0xf09e64=_0x211b6d['plugins']['get']('TrackChangesEditing'),_0x182f16=_0x211b6d['plugins']['get']('TableUtils'),_0x5f2c9c=_0x211b6d['plugins']['get'](ve),_0xd99cac=_0x211b6d['plugins']['get']('TableClipboard'),_0x1bf191=_0x211b6d['plugins']['get']('TableSelection'),_0x2e66ae=_0x211b6d['plugins']['get'](mt);_0x5f2c9c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x211b6d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x211b6d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ace88=null,_0x40d866=!0x1;_0x2e66ae['on']('contentInsertion',(_0x3596d4,_0x5ef204)=>{_0x40d866='paste'===_0x5ef204['method'];}),_0x211b6d['model']['on']('insertContent',(_0x3f4a43,_0x1fc86a)=>{if(!_0x40d866&&null===_0x1bf191['getSelectedTableCells']())return;const [_0x2324ab,_0x4e8b44]=_0x1fc86a,_0x2ff35a=_0x1fc86a[_0x1fc86a['length']-0x1];_0x2ff35a&&_0x2ff35a['forceDefaultExecution']||_0xf09e64['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x35050e,_0x271301,_0x229296,_0x325605,_0x342391){if(_0x271301&&!_0x271301['is']('documentSelection'))return!0x1;const _0x148452=_0x342391['getTableIfOnlyTableInContent'](_0x35050e,_0x229296);if(!_0x148452||!je(_0x148452,void 0x0,_0x325605))return!0x1;const _0x533c08=_0x325605['getSelectionAffectedTableCells'](_0x229296['document']['selection']);if(!_0x533c08['length'])return!0x1;const _0x225a90=_0x533c08[0x0]['findAncestor']('table'),_0x3edca0=_0x325605['getRowIndexes'](_0x533c08),_0x1b97b9=_0x325605['getColumnIndexes'](_0x533c08),_0xaaea9e={'startRow':_0x3edca0['first'],'endRow':_0x3edca0['last'],'startColumn':_0x1b97b9['first'],'endColumn':_0x1b97b9['last']};return 0x1==_0x533c08['length']&&(_0xaaea9e['endRow']+=_0x325605['getRows'](_0x148452)-0x1,_0xaaea9e['endColumn']+=_0x325605['getColumns'](_0x148452)-0x1),je(_0x225a90,_0xaaea9e,_0x325605);}(_0x2324ab,_0x4e8b44,_0x211b6d['model'],_0x182f16,_0xd99cac)&&(_0x3f4a43['stop'](),_0x2ace88={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x211b6d['model']['change'](()=>{_0x211b6d['model']['insertContent'](_0x1fc86a[0x0],_0x1fc86a[0x1],_0x1fc86a[0x2],{'forceDefaultExecution':!0x0});const _0x3c8378=_0xf105bf(),{rowInsertionRanges:_0x3b37ed,columnInsertionRanges:_0x27a94f,insertionRanges:_0x5ad450,deletionRanges:_0x617a8c,cells:_0x466c2f}=_0x2ace88;_0x3b37ed['length']&&_0xf09e64['markMultiRangeInsertion'](_0x3b37ed,'tablePasteRow',{'tablePasteChainId':_0x3c8378}),_0x27a94f['length']&&_0xf09e64['markMultiRangeInsertion'](_0x27a94f,'tablePasteColumn',{'tablePasteChainId':_0x3c8378}),_0x5ad450['length']&&(_0xf09e64['markMultiRangeInsertion'](_0x5ad450,'tablePaste',{'tablePasteChainId':_0x3c8378,'skipNestingCheck':!0x0}),_0x5ad450['forEach'](_0x34685c=>_0x34685c['detach']?.())),_0x617a8c['length']&&(_0xf09e64['markMultiRangeDeletion'](_0x617a8c,'tablePaste',{'tablePasteChainId':_0x3c8378,'skipNestingCheck':!0x0}),_0x617a8c['forEach'](_0x27682f=>_0x27682f['detach']?.()));const _0x161247=_0xf09e64['markMultiRangeBlockFormat'](_0x466c2f['map'](({element:_0x1d5421})=>_0x1d5421),{'formatGroupId':_0xf105bf()},[],'tablePasteCell',{'tablePasteChainId':_0x3c8378});if(_0x161247){const _0x112bf7=_0x161247['getMarkers'](),_0x23965a=[];for(const {element:_0x32c8e8,attributes:_0x5a8aa5}of _0x466c2f){if(!_0x5a8aa5)continue;const _0x2f7fe4=_0x211b6d['model']['createRangeOn'](_0x32c8e8),_0x1c888b=_0x112bf7['find'](_0x196d0f=>_0x196d0f['getRange']()['isEqual'](_0x2f7fe4));_0x1c888b&&_0x23965a['push']([_0x1c888b['name'],_0x5a8aa5]);}_0x23965a['length']&&_0x161247['setAttribute']('markerAttributes',Object['fromEntries'](_0x23965a));}_0x2ace88=null;}));},{'priority':_0x1623c5['high']+0xa}),_0x2e66ae['on']('contentInsertion',()=>{_0x40d866=!0x1;},{'priority':'lowest'}),_0x211b6d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11016c,_0xc1b5bc)=>{const [_0x234c9b,_0x28234a,,_0x2ccc4a]=_0xc1b5bc;if(!_0x2ace88)return;_0x11016c['stop']();const _0x283e2c=_0x234c9b['cell'],_0x5f15c5=_0x28234a,_0x584fb8=We(_0x283e2c),_0x11a7c1=We(_0x5f15c5);_0x11016c['return']=_0x283e2c;let _0x8edffe=null,_0x2bc8a5=null;if(_0x11a7c1||_0x584fb8){if(_0x584fb8&&!_0x11a7c1){_0x2ccc4a['remove'](_0x283e2c['getChild'](0x0));for(const _0xea17aa of Array['from'](_0x5f15c5['getChildren']()))_0x2ccc4a['insert'](_0xea17aa,_0x283e2c,'end');const _0x4ce802=_0x2ace88['rowInsertionIndexes']['includes'](_0x234c9b['row']),_0x58dbe5=_0x2ace88['columnInsertionIndexes']['includes'](_0x234c9b['column']);_0x4ce802||_0x58dbe5||(_0x8edffe=rt['fromRange'](_0x2ccc4a['createRangeIn'](_0x283e2c)));}else _0x11a7c1&&!_0x584fb8&&(_0x2bc8a5=_0x2ccc4a['createRangeIn'](_0x283e2c));}else{const _0xa682e=_0x2ccc4a['createElement']('tableCellSuggestion'),_0x489001=_0x2ccc4a['createElement']('tableCellSuggestion');_0x2ccc4a['wrap'](_0x2ccc4a['createRangeIn'](_0x283e2c),_0x489001),_0x2ccc4a['insert'](_0xa682e,_0x283e2c,0x0);for(const _0x3ddef6 of Array['from'](_0x5f15c5['getChildren']()))_0x2ccc4a['insert'](_0x3ddef6,_0xa682e,'end');_0x8edffe=rt['fromRange'](_0x2ccc4a['createRangeOn'](_0xa682e)),_0x2bc8a5=rt['fromRange'](_0x2ccc4a['createRangeOn'](_0x489001));}const _0x267da2=Array['from'](_0x5f15c5['getAttributes']())['filter'](([_0x4cbf42])=>He['includes'](_0x4cbf42));_0x2ace88['cells']['push']({'element':_0x283e2c,'attributes':_0x267da2['length']?Object['fromEntries'](_0x267da2):null}),_0x8edffe&&_0x2ace88['insertionRanges']['push'](_0x8edffe),_0x2bc8a5&&_0x2ace88['deletionRanges']['push'](_0x2bc8a5);},{'priority':'high'}),_0x182f16['on']('insertColumns',(_0x61560,_0x3c9700)=>{const [_0x38d50f,_0x4f90d7={}]=_0x3c9700;if(!_0x2ace88)return;const _0x28eacd=_0x4f90d7['at']||0x0,_0x5adef8=_0x4f90d7['columns']||0x1;_0x2ace88['columnInsertionIndexes']=new Array(_0x5adef8)['fill'](_0x28eacd)['map']((_0x4f4957,_0x581484)=>_0x4f4957+_0x581484);for(const {cell:_0x58a67f}of _0x182f16['createTableWalker'](_0x38d50f,{'startColumn':_0x28eacd,'endColumn':_0x28eacd+_0x5adef8-0x1}))_0x2ace88['columnInsertionRanges']['push'](_0x211b6d['model']['createRangeOn'](_0x58a67f));},{'priority':'low'}),_0x182f16['on']('insertRows',(_0x397d4a,_0x58fa87)=>{const [_0x2d179d,_0x590da8={}]=_0x58fa87;if(!_0x2ace88)return;const _0x40c9c2=_0x590da8['at']||0x0,_0x31d7ae=_0x590da8['rows']||0x1;_0x2ace88['rowInsertionIndexes']=new Array(_0x31d7ae)['fill'](_0x40c9c2)['map']((_0x67215,_0x3d7bd8)=>_0x67215+_0x3d7bd8);for(const {cell:_0x24a639}of _0x182f16['createTableWalker'](_0x2d179d,{'startRow':_0x40c9c2,'endRow':_0x40c9c2+_0x31d7ae-0x1}))_0x2ace88['rowInsertionRanges']['push'](_0x211b6d['model']['createRangeOn'](_0x24a639));},{'priority':'low'}),_0xf09e64['descriptionFactory']['registerDescriptionCallback'](_0x4a874d=>{if(_0x4a874d['subType']&&_0x4a874d['subType']['startsWith']('tablePaste'))return _0x4a874d['previous']?{}:{'type':'insertion','content':St(_0x211b6d['locale'],'*Replace\x20table\x20cells*')};});const _0x55292b=()=>!0x1;for(const _0x5366c9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xf09e64['_suggestionFactory']['registerCustomCallback']('insertion',_0x5366c9,'join',_0x55292b),_0xf09e64['_suggestionFactory']['registerCustomCallback']('deletion',_0x5366c9,'join',_0x55292b),_0xf09e64['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5366c9,'join',_0x55292b);_0xf09e64['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x55292b),_0xf09e64['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e96ea,_0x7dd65,_0x47efe1)=>{const _0x52a1e3=_0x4e96ea['map'](_0x1d0b88=>_0x1d0b88['getContainedElement']())['filter'](_0x4af335=>_0x4af335),_0x5f41a1=new Map(_0x52a1e3['map'](_0x1c1317=>[_0x1c1317,null]));if(_0x2ace88){for(const {element:_0x65079,attributes:_0x23eb97}of _0x2ace88['cells'])_0x23eb97&&_0x5f41a1['set'](_0x65079,_0x23eb97);}else{if(_0x47efe1&&_0x47efe1['markerAttributes'])for(const [_0x259576,_0x16ec2b]of Object['entries'](_0x47efe1['markerAttributes'])){const _0x1916e0=_0x211b6d['model']['markers']['get'](_0x259576),_0x59014b=_0x1916e0?_0x1916e0['getRange']()['getContainedElement']():null;_0x59014b&&_0x5f41a1['set'](_0x59014b,_0x16ec2b);}}_0x211b6d['model']['change'](_0x46c1bc=>{for(const [_0x4661c7,_0x1e661c]of _0x5f41a1)_0x46c1bc['setAttributes']({...$e,..._0x1e661c},_0x4661c7);});});const _0x7a99c4=(_0x4ba7db,_0x24c0c5)=>{_0xf09e64['_suggestionFactory']['registerCustomCallback'](_0x4ba7db,'tablePaste',_0x24c0c5,(_0x3de5ba,_0x240390,_0xdb2cc9)=>{_0x211b6d['model']['change'](_0x5a54af=>{const _0x1f400c=[];for(const _0x118ace of _0x3de5ba){const _0x39e3fb=_0x118ace['start']['nodeAfter'];_0x39e3fb['is']('element','tableCellSuggestion')&&_0x1f400c['push'](_0x39e3fb);}_0xf09e64['_suggestionFactory']['getSuggestionCallback'](_0x4ba7db,null,_0x24c0c5)(_0x3de5ba,_0x240390,_0xdb2cc9);for(const _0x136147 of _0x1f400c)'$graveyard'!=_0x136147['root']['rootName']&&_0x5a54af['unwrap'](_0x136147);});});};_0x7a99c4('insertion','accept'),_0x7a99c4('insertion','discard'),_0x7a99c4('deletion','accept'),_0x7a99c4('deletion','discard'),_0xf09e64['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x25de9a=>{const _0x44ce0c=_0x25de9a['map'](_0xc6358e=>_0xc6358e['getContainedElement']()),_0xf4248d=_0x44ce0c[0x0]['findAncestor']('table'),{minRow:_0x2e31e2,maxRow:_0x175eff}=_0x5f2c9c['_getCoordsForCells'](_0x44ce0c);_0x182f16['removeRows'](_0xf4248d,{'at':_0x2e31e2,'rows':_0x175eff-_0x2e31e2+0x1});}),_0xf09e64['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5a53b0=>{const _0x48efda=_0x5a53b0['map'](_0x59bfcd=>_0x59bfcd['getContainedElement']()),_0x1e0e4a=_0x48efda[0x0]['findAncestor']('table'),{minColumn:_0x2255f2,maxColumn:_0x4cbc6c}=_0x5f2c9c['_getCoordsForCells'](_0x48efda);_0x182f16['removeColumns'](_0x1e0e4a,{'at':_0x2255f2,'columns':_0x4cbc6c-_0x2255f2+0x1});});const _0x434fe3=(_0x3b6397,_0x1d3d5e)=>{if(!_0x1d3d5e['subType']||!_0x1d3d5e['subType']['startsWith']('tablePaste'))return;const _0x36e652=_0x1d3d5e['attributes']['tablePasteChainId'],_0x45b7f5=_0xf09e64['getSuggestions']()['filter'](_0x3436b0=>_0x3436b0['isInContent']&&_0x3436b0['attributes']&&_0x3436b0['attributes']['tablePasteChainId']==_0x36e652);_0x45b7f5['length']&&_0x1d3d5e['getAllAdjacentSuggestions']()['length']!=_0x45b7f5['length']&&_0x45b7f5['reduce']((_0xe81ee0,_0x17f030)=>(_0xe81ee0['next']=_0x17f030,_0x17f030['previous']=_0xe81ee0,_0x17f030));};function _0x2c8c77(_0x23e17c,_0x280d69=!0x0){const {id:_0x266063,authorId:_0x3f83a6}=tt(_0x23e17c['markerName']),_0x4e9392=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c5c6b=_0xf09e64['activeMarkers']['includes'](_0x23e17c['markerName']);return _0x2c5c6b&&_0x4e9392['push']('ck-suggestion-marker--active'),{'classes':_0x4e9392,'attributes':{'data-suggestion':_0x266063,'data-author-id':_0x3f83a6},'priority':_0x2c5c6b&&_0x280d69?0xbc2:0xbb8};}_0xf09e64['on']('suggestionLoaded',_0x434fe3,{'priority':'high'}),_0xf09e64['on']('suggestionUnloaded',_0x434fe3,{'priority':'high'}),_0x211b6d['model']['document']['registerPostFixer'](()=>{let _0x23a825=!0x1;const _0x36aa30=Array['from'](_0x211b6d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c9f70,data:_0x1cc8f1}of _0x36aa30){const {group:_0x334b3b,type:_0x2e3812,id:_0xb2bacb}=tt(_0x4c9f70);if('suggestion'!=_0x334b3b||'deletion'!=_0x2e3812||_0x1cc8f1['oldRange'])continue;if(!_0xf09e64['hasSuggestion'](_0xb2bacb))continue;const _0x7d2c24=_0xf09e64['getSuggestion'](_0xb2bacb)['getRanges'](),_0x43ef5e=_0x211b6d['plugins']['get']('Users')['me'];for(const _0x4021c7 of _0xf09e64['getSuggestions']())if(_0x4021c7['isInContent']&&_0x4021c7['author']==_0x43ef5e&&'formatBlock'==_0x4021c7['type']&&'tablePasteCell'==_0x4021c7['subType']&&_0x4021c7['getRanges']()['every'](_0x2c831d=>_0x7d2c24['some'](_0x37f888=>_0x37f888['containsRange'](_0x2c831d,!0x0)))){for(const _0xd88edf of _0x4021c7['getAllAdjacentSuggestions']())_0xd88edf['isInContent']&&(_0xd88edf['discard'](),_0x23a825=!0x0);}}return _0x23a825;}),_0x211b6d['model']['document']['registerPostFixer'](_0x5ccc4f=>{const _0x27fb1c=_0x211b6d['commands']['get']('redo');if(!_0x27fb1c||!_0x27fb1c['_createdBatches']['has'](_0x5ccc4f['batch']))return!0x1;let _0x538d0c=!0x1;const _0x441ee0=_0x211b6d['plugins']['get']('Users')['me'],_0x74091e=_0x211b6d['model']['document']['differ']['getChanges'](),_0x41badd=Array['from'](_0x211b6d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x19db87,data:_0x6b5e4})=>{const {group:_0x1aaa67,subType:_0x571c4d,authorId:_0x423547}=tt(_0x19db87);return'suggestion'==_0x1aaa67&&'tablePaste'==_0x571c4d&&_0x423547==_0x441ee0['id']&&!_0x6b5e4['oldRange'];});for(const _0xc6025f of _0x74091e){if('insert'!=_0xc6025f['type']||'tableCellSuggestion'!=_0xc6025f['name']||0x1!=_0xc6025f['length'])continue;const _0x512bd4=_0x5ccc4f['createRange'](_0xc6025f['position'],_0xc6025f['position']['getShiftedBy'](0x1));if(!_0x41badd['find'](({data:_0x1a8639})=>_0x1a8639['newRange']['isEqual'](_0x512bd4))){for(const {name:_0x5e2d21,data:_0x508e75}of _0x41badd)if(_0x512bd4['containsRange'](_0x508e75['newRange'])){_0x5ccc4f['updateMarker'](_0x5e2d21,{'range':_0x512bd4}),_0x538d0c=!0x0;break;}}}return _0x538d0c;}),_0x211b6d['model']['document']['registerPostFixer'](_0x19d3a2=>{let _0x263f8b=!0x1;const _0x196c4c=_0x211b6d['plugins']['get']('Users')['me'],_0x508540=_0xf09e64['getSuggestions']()['filter'](_0x25545d=>_0x25545d['isInContent']&&_0x25545d['author']==_0x196c4c),_0x56accd=new Set(),_0x28fb24=new Set();for(const _0x4a4d2a of _0x508540)if('tablePaste'==_0x4a4d2a['subType'])for(const _0xeb38fc of _0x4a4d2a['getMarkers']()){const _0x3aa383=_0xeb38fc['getRange']()['getContainedElement']();if(_0x3aa383){if(_0x3aa383['is']('element','tableCellSuggestion')&&We(_0x3aa383)){_0x4a4d2a['removeMarker'](_0xeb38fc['name']),_0x56accd['add'](_0x3aa383),_0x263f8b=!0x0;const _0x1f46b2=_0x3aa383['nextSibling'],_0x304306=_0x3aa383['previousSibling'],_0xaef413=_0x1f46b2&&_0x1f46b2['is']('element','tableCellSuggestion'),_0x377cce=_0x304306&&_0x304306['is']('element','tableCellSuggestion');_0xaef413&&!_0x56accd['has'](_0x1f46b2)&&_0x28fb24['add'](_0x1f46b2),_0x377cce&&!_0x56accd['has'](_0x304306)&&_0x28fb24['add'](_0x304306);}else _0x3aa383['is']('element','paragraph')&&_0x3aa383['isEmpty']&&(_0x4a4d2a['removeMarker'](_0xeb38fc['name']),_0x263f8b=!0x0);}}else{if('tablePasteCell'==_0x4a4d2a['subType']){if(!_0x4a4d2a['attributes']||!_0x4a4d2a['attributes']['tablePasteChainId'])continue;const _0x379f2f=_0x4a4d2a['attributes']['markerAttributes'];if(_0x379f2f&&Object['keys'](_0x379f2f)['length'])continue;const _0xeeeec9=_0x4a4d2a['attributes']['tablePasteChainId'];let _0x34ae73=!0x0,_0x10d377=!0x0;for(const _0xa1e013 of _0x508540)if(_0xa1e013['subType']&&_0xa1e013['subType']['startsWith']('tablePaste')){if(!_0xa1e013['attributes']['tablePasteChainId']){_0x10d377=!0x1;break;}if(_0xa1e013['id']!=_0x4a4d2a['id']&&_0xa1e013['attributes']['tablePasteChainId']==_0xeeeec9){_0x34ae73=!0x1;break;}}_0x10d377&&_0x34ae73&&(_0x4a4d2a['removeMarkers'](),_0x263f8b=!0x0);}}for(const _0x585f80 of _0x56accd)_0x19d3a2['remove'](_0x585f80);for(const _0xcc87d0 of _0x28fb24)_0x19d3a2['unwrap'](_0xcc87d0);return _0x263f8b;}),_0x211b6d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x53105d=>_0x2c8c77(_0x53105d),'converterPriority':'high'}),_0x211b6d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b0053,_0xe55464)=>_0xe55464['options']['showSuggestionHighlights']?_0x2c8c77(_0x5b0053,!0x1):null,'converterPriority':'high'});const _0x2e505f=_0x211b6d['editing']['view'];this['listenTo'](_0x2e505f['document'],'clipboardOutput',(_0x2842e4,_0x3cd814)=>{const _0x107d54=[];for(const _0x3ba9b6 of _0x2e505f['createRangeIn'](_0x3cd814['content'])['getItems']())_0x3ba9b6['is']('element','suggestion-td')&&_0x107d54['push'](_0x3ba9b6);_0x2e505f['change'](_0x43bf68=>{for(const _0x470723 of _0x107d54)_0x43bf68['move'](_0x43bf68['createRangeIn'](_0x470723),_0x43bf68['createPositionBefore'](_0x470723)),_0x43bf68['remove'](_0x470723);});});}};function We(_0x54b0c3){if(_0x54b0c3['isEmpty'])return!0x0;const _0x11142c=_0x54b0c3['getChild'](0x0);return _0x11142c['is']('element','paragraph')&&_0x11142c['isEmpty'];}function je(_0x39a9c0,_0x2c6c89={},_0x550ba0){for(const {isAnchor:_0x4a0d70,cellHeight:_0x2b724a,cellWidth:_0x1bd7cc}of _0x550ba0['createTableWalker'](_0x39a9c0,{'includeAllSlots':!0x0,..._0x2c6c89}))if(!_0x4a0d70||0x1!=_0x2b724a||0x1!=_0x1bd7cc)return!0x1;return!0x0;}var Ke=class extends _0x545319{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ed35f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ed35f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ed35f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ed35f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ed35f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ed35f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ed35f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf304e0,_0x2b8d71){const _0x336ad9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a16b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c1270=_0x2b8d71['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20dd4b=_0x25a16b['getColumnGroupElement'](_0x2c1270);let _0x26f9df=_0x20dd4b?_0x25a16b['getTableColumnsWidths'](_0x20dd4b):null,_0x5c4204=_0x2c1270['getAttribute']('tableWidth')||null;const _0x270324=_0x2b8d71['tableWidth']||_0x5c4204,_0x35154c=_0x2b8d71['columnWidths']||_0x26f9df,_0x24f730=this['editor']['plugins']['get']('Users')['me'];for(const _0x14224a of _0x336ad9['getSuggestions']()){const _0x522682=_0x14224a['getContainedElement']();if('resizeTable'===_0x14224a['subType']&&_0x522682===_0x2c1270){_0x14224a['author']!==_0x24f730&&_0x14224a['discard']();const _0x57ca3a=_0x14224a['data']['commandParams'];_0x5c4204=_0x57ca3a[0x0]['tableWidth'],_0x26f9df=_0x57ca3a[0x0]['columnWidths'];break;}}_0xf304e0({'table':_0x2c1270,'tableWidth':_0x270324,'columnWidths':_0x35154c}),_0x336ad9['markBlockFormat'](_0x2c1270,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5c4204,'columnWidths':_0x26f9df}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3f1f4d){if('formatBlock'!=_0x3f1f4d['type']&&'formatInline'!=_0x3f1f4d['type'])return;const {data:_0x10121a}=_0x3f1f4d;return _0x10121a&&'resizeTable'===_0x10121a['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x545319{['afterInit'](){const _0x57b231=this['editor'];_0x57b231['plugins']['has']('Template')&&_0x57b231['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x545319{['afterInit'](){const _0x1a3db7=this['editor'];if(!_0x1a3db7['commands']['get']('insertTableOfContents'))return;_0x1a3db7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x6225a0=_0x1a3db7['plugins']['get']('TrackChangesEditing'),_0x8867a1=_0x1a3db7['locale'];_0x6225a0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x210407=>St(_0x8867a1,'ELEMENT_TABLE_OF_CONTENTS',_0x210407));}},qe=class extends _0x545319{['afterInit'](){const _0x4dcc4e=this['editor'];_0x4dcc4e['plugins']['has']('Title')&&(_0x4dcc4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x4dcc4e['locale'],'ELEMENT_TITLE')),_0x4dcc4e['model']['document']['registerPostFixer'](_0x25bb9e=>{let _0x326b17=!0x1;const _0x2e2627=Array['from'](_0x4dcc4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c0d09,data:_0x42d5d8}of _0x2e2627){const {group:_0x207f6a}=tt(_0x2c0d09);if('suggestion'!==_0x207f6a||!_0x42d5d8['newRange'])continue;const _0x182607=_0x42d5d8['newRange'],_0x2c33d5=_0x182607['end']['nodeBefore'];if(!_0x2c33d5||!_0x2c33d5['is']('element','title-content'))continue;if(!_0x182607['start']['isTouching'](_0x182607['end']))continue;const _0x2a4801=_0x4dcc4e['model']['schema']['getNearestSelectionRange'](_0x182607['end'],'forward');if(_0x2a4801&&_0x2a4801['isCollapsed']){const _0x355d5f=_0x25bb9e['createRange'](_0x182607['start'],_0x2a4801['start']);_0x355d5f['isEqual'](_0x182607)||(_0x25bb9e['updateMarker'](_0x2c0d09,{'range':_0x355d5f}),_0x326b17=!0x0);}_0x326b17||(_0x25bb9e['removeMarker'](_0x2c0d09),_0x326b17=!0x0);}return _0x326b17;}));}},Ye=class extends _0x545319{['afterInit'](){const _0x474b4c=this['editor'],_0x600855=_0x474b4c['plugins']['get']('TrackChangesEditing');_0x474b4c['plugins']['has']('Uploadcare')&&(_0x600855['enableCommand']('uploadcare'),_0x474b4c['plugins']['has']('UploadcareImageEdit')&&(_0x600855['enableCommand']('uploadcareImageEdit'),_0x600855['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x600855['descriptionFactory']['registerDescriptionCallback'](_0x55cf56=>{if('attribute'!=_0x55cf56['type'])return;const {data:_0x2dc730}=_0x55cf56;return _0x2dc730&&'uploadcareImageId'==_0x2dc730['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x545319{['afterInit'](){const _0x5214de=this['editor'],_0x25314e=_0x5214de['plugins']['get']('TrackChangesEditing');_0x5214de['plugins']['has']('UndoEditing')&&(_0x25314e['enableCommand']('undo'),_0x25314e['enableCommand']('redo'));}},Ze=class extends _0x545319{static get['requires'](){return[ve];}['afterInit'](){const _0x3d3547=this['editor'];_0x3d3547['plugins']['has']('TableCaptionEditing')&&_0x3d3547['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x545319{['tableProperties'];['tableCellProperties'];constructor(_0x10ecff){super(_0x10ecff),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 _0x380ee8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x472c42 of this['tableProperties'])_0x380ee8['enableCommand'](_0x472c42,(_0x409240,_0x289b18)=>{const _0x33315e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x472c42,[_0x33315e],this['tableProperties'],'tableProperties',_0x409240,_0x289b18);});_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x380ee8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2aa6b3,_0x57be25)=>this['handleDiscardAction'](this['tableProperties'],_0x2aa6b3,_0x57be25)),_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b2f43 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1b2f43)&&_0x380ee8['enableCommand'](_0x1b2f43,(_0x2eb03e,_0x240014)=>{const _0x520acd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b2f43,_0x520acd,this['tableCellProperties'],'tableCellProperties',_0x2eb03e,_0x240014);});_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x380ee8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x142e5e,_0x42301b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x142e5e,_0x42301b)),_0x380ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x380ee8['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x380ee8['descriptionFactory']['registerDescriptionCallback'](_0x1e5a5b=>this['handleSuggestionDescription'](_0x1e5a5b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x276042,_0x2f9d8f,_0x34ad67,_0x20d8f4,_0x2d7a1f,_0x23a630){const _0x3bbda6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x23a630['batch'],()=>{for(const _0x5c3d14 of _0x2f9d8f)if(this['_getSuggestion'](_0x5c3d14,_0x20d8f4))_0x2d7a1f(_0x23a630);else{const _0x49ffbb={};for(const _0x2ca429 of _0x34ad67){const _0x5ee38a=_0x5c3d14['getAttribute'](_0x2ca429);void 0x0!==_0x5ee38a&&(_0x49ffbb[_0x2ca429]=_0x5ee38a);}_0x2d7a1f(_0x23a630),_0x3bbda6['markBlockFormat'](_0x5c3d14,{'commandParams':[_0x49ffbb]},[],_0x20d8f4);}});}['handleDiscardAction'](_0x462cf4,_0x863117,_0x56ef0f){const _0x54e73c=_0x863117[0x0]['start']['nodeAfter'],_0x4ea909=_0x56ef0f['commandParams'][0x0];this['editor']['model']['change'](_0x1e38fd=>{for(const _0x4b20f2 of _0x462cf4)void 0x0!==_0x4ea909[_0x4b20f2]?_0x1e38fd['setAttribute'](_0x4b20f2,_0x4ea909[_0x4b20f2],_0x54e73c):_0x1e38fd['removeAttribute'](_0x4b20f2,_0x54e73c);});}['handleSuggestionDescription'](_0x3c0faf){if(_0x3c0faf['data'])switch(_0x3c0faf['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x14632d,_0x1d00ca){const _0x51ab38=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4451f of _0x51ab38['getSuggestions']({'skipNotAttached':!0x0})){const _0x142140=_0x4451f['getContainedElement']();if(_0x4451f['subType']===_0x1d00ca&&_0x142140===_0x14632d)return _0x4451f;}return null;}['_registerTablePropertiesAttributes'](){const _0x18b0a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2812c4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2a4d76 of _0x2812c4){const _0x2cf43b=_0x2a4d76['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x18b0a5['descriptionFactory']['registerAttributeLabel'](_0x2a4d76,St(this['editor']['locale'],'FORMAT_'+_0x2cf43b));}}},tn=class extends _0x545319{['afterInit'](){const _0x3ce1b7=this['editor'];if(!_0x3ce1b7['plugins']['has']('LineHeight'))return;const _0x4693cc=_0x3ce1b7['plugins']['get']('TrackChangesEditing'),_0x533739=_0x3ce1b7['locale'];_0x4693cc['enableDefaultAttributesIntegration']('lineHeight'),_0x4693cc['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x533739,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x545319{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x57e609,_0x4fbf2b,_0x308bd2,_0x464ffe,_0x41516b,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x277cfd){super(_0x277cfd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f7e83,_0x5a6081,_0x193410,_0x5d8c66)=>{this['_model']['change'](()=>{for(const _0x430e41 of[..._0x5d8c66,..._0x193410])this['_model']['markers']['has'](_0x430e41)&&_0x277cfd['editing']['reconvertMarker'](_0x430e41);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x277cfd['plugins']['get'](_0x57e609),this['_suggestionsConversion']=_0x277cfd['plugins']['get'](_0x4fbf2b),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x277cfd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x277cfd['config']['get']('trackChanges.trackFormatChanges'),_0x277cfd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x277cfd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x277cfd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x566fa3=this['editor'];_0x566fa3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x555019,{writer:_0x33ce58})=>{let _0x29927c='suggestion:'+_0x555019['getAttribute']('suggestion-type')+':'+_0x555019['getAttribute']('id');return _0x555019['getAttribute']('marker-count')&&(_0x29927c+=':'+_0x555019['getAttribute']('marker-count')),_0x33ce58['createElement']('$marker',{'data-name':_0x29927c});}}),_0x566fa3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x566fa3['model']['document']['registerPostFixer'](_0xf26fff=>{let _0x16da3e=!0x1;const _0x24ed70=Array['from'](_0x566fa3['model']['document']['differ']['getChangedMarkers']()),_0x398fd9=new Set();for(const {name:_0x1ee99e,data:_0x15c882}of _0x24ed70){const {group:_0x515405,type:_0x1c7afa,subType:_0x4db87d,id:_0x27fbbf}=tt(_0x1ee99e);if('suggestion'!==_0x515405)continue;const _0x17a3cf=_0x4db87d?'suggestion:'+_0x1c7afa+':'+_0x4db87d+':'+_0x27fbbf:'suggestion:'+_0x1c7afa+':'+_0x27fbbf,_0x11f079=_0x566fa3['model']['markers']['getMarkersGroup'](_0x17a3cf),_0x27c577=_0x566fa3['model']['markers']['get'](_0x1ee99e),_0x4f3130=this['_suggestions']['get'](_0x27fbbf);if(null!=_0x15c882['newRange']){'formatInline'==_0x1c7afa&&(_0x16da3e=_0x16da3e||an(_0x15c882['newRange'],_0x1ee99e,_0xf26fff,_0x566fa3['model']['schema']));const _0x275899='attribute'==_0x1c7afa&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x4db87d)),_0x44dd25='attribute'==_0x1c7afa&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x4db87d));if(_0x15c882['newRange']['isCollapsed']||'$graveyard'==_0x15c882['newRange']['root']['rootName']||'formatBlock'==_0x1c7afa&&!ln(_0x15c882['newRange'])||_0x275899&&!ln(_0x15c882['newRange'])||_0x44dd25&&un(_0x15c882['newRange'])||'deletion'==_0x1c7afa&&un(_0x15c882['newRange'])||_0x27c577&&dn(_0x27c577,_0x11f079))_0xf26fff['removeMarker'](_0x1ee99e),_0x16da3e=!0x0;else{if(!_0x4f3130||!_0x4f3130['isInContent'])continue;if(_0x15c882['newRange']&&_0x15c882['oldRange']&&_0x15c882['newRange']['isEqual'](_0x15c882['oldRange']))continue;_0x398fd9['add'](_0x4f3130);}}}return _0x398fd9['size']>0x0&&(_0x16da3e=!!this['_joinWithAdjacentSuggestions'](_0x398fd9)||_0x16da3e),_0x16da3e;}),_0x566fa3['model']['document']['registerPostFixer'](_0x248a30=>{let _0x2f8f2a=!0x1;for(const _0x5c8d88 of _0x566fa3['model']['document']['differ']['getChanges']())if('insert'==_0x5c8d88['type'])for(const _0x3f01e2 of this['_suggestions']['values']()){if(_0x3f01e2['isMultiRange']||!_0x3f01e2['isInContent'])continue;const _0x368f28='formatBlock'==_0x3f01e2['type'],_0x96e5f2=this['_getAttributeKey'](_0x3f01e2),_0x4e9fbd=_0x96e5f2&&this['_suggestionsConversion']['isBlockAttribute'](_0x96e5f2);if(!_0x368f28&&!_0x4e9fbd)continue;const _0x340a24=_0x3f01e2['getFirstRange']();if(_0x340a24['start']['parent']!=_0x340a24['end']['parent']&&!_0x340a24['end']['isAtEnd']){const _0x1c6098=_0x566fa3['model']['createPositionAt'](_0x340a24['start']['nodeAfter'],'end'),_0x57197d=_0x566fa3['model']['createRange'](_0x340a24['start'],_0x1c6098);_0x248a30['updateMarker'](_0x3f01e2['getFirstMarker'](),{'range':_0x57197d}),_0x2f8f2a=!0x0;}}return _0x2f8f2a;}),_0x566fa3['model']['document']['registerPostFixer'](_0x2ef614=>this['_processAttributeChanges'](_0x2ef614)),_0x566fa3['model']['document']['registerPostFixer'](_0x402e4a=>!_0x402e4a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x402e4a)),_0x566fa3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x566fa3['model']['document']['on']('change:data',(_0x38f8f2,_0x2ee0b1)=>{if(!_0x2ee0b1['isLocal']||_0x2ee0b1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x8c74d0=_0x566fa3['model']['document']['differ']['getChanges']();if(0x0==_0x8c74d0['length'])return;const _0xb439bc=[],_0x296382=_0x8c74d0['filter'](_0x5d1f73=>'attribute'==_0x5d1f73['type']),_0x2e343d=_0x8c74d0['filter'](_0x3ad476=>'insert'==_0x3ad476['type']&&'$text'!=_0x3ad476['name']);for(const _0x1643d2 of _0x296382)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1643d2['attributeKey'])&&_0xb439bc['push']({'key':_0x1643d2['attributeKey'],'newValue':_0x1643d2['attributeNewValue'],'oldValue':_0x1643d2['attributeOldValue'],'range':hn(_0x1643d2['range'],_0x566fa3['model'])});for(const _0x29fe35 of _0x2e343d){if('rename'!=_0x29fe35['action']&&'refresh'!=_0x29fe35['action'])continue;const _0x246129=gn(_0x29fe35['position']['nodeAfter'],_0x566fa3['model']),_0x332d81=_0x29fe35['before'];'rename'==_0x29fe35['action']&&_0xb439bc['push']({'key':en,'newValue':_0x29fe35['name'],'oldValue':_0x332d81['name'],'range':_0x246129});for(const [_0x244e20,_0x26e2e8]of _0x332d81['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x244e20))continue;const _0x146794=_0x29fe35['attributes']['get'](_0x244e20);_0x26e2e8!==_0x146794&&_0xb439bc['push']({'key':_0x244e20,'newValue':_0x146794,'oldValue':_0x26e2e8,'range':_0x246129});}for(const [_0x5d6fd7,_0x1122fb]of _0x29fe35['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5d6fd7)&&(_0x332d81['attributes']['has'](_0x5d6fd7)||_0xb439bc['push']({'key':_0x5d6fd7,'newValue':_0x1122fb,'oldValue':null,'range':_0x246129}));}0x0!=_0xb439bc['length']&&_0x566fa3['model']['enqueueChange'](_0x2ee0b1,_0x48720b=>{const _0x1207e5=_0xf105bf();for(const {range:_0x25facb,key:_0x5100ec,oldValue:_0x2c22c3,newValue:_0xbbc959}of _0xb439bc)this['markAttributeChange'](_0x25facb,_0x5100ec,_0x2c22c3,_0xbbc959,{'groupId':_0x1207e5});this['_reduceExistingSuggestions'](_0x48720b,_0xb439bc);});},{'priority':'lowest'}),_0x566fa3['model']['markers']['on']('update:suggestion',(_0x485e71,_0x27b22c,_0x4b39ee)=>{if(null==_0x4b39ee){const {id:_0x26dd33}=tt(_0x27b22c['name']),_0x107ff9=this['_suggestions']['get'](_0x26dd33);_0x107ff9&&_0x107ff9['addMarkerName'](_0x27b22c['name']);}}),_0x566fa3['model']['document']['on']('change:data',()=>{const _0x5d1871=Array['from'](_0x566fa3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e91f=>'suggestion'===tt(_0x20e91f['name'])['group']);if(0x0===_0x5d1871['length'])return;_0x5d1871['sort']((_0x231a7a,_0x26a9e9)=>{const _0x582f42=_0x231a7a['data']['oldRange'],_0x534666=_0x26a9e9['data']['oldRange'];return null===_0x582f42&&null===_0x534666?0x0:null===_0x582f42&&null!==_0x534666?-0x1:null!==_0x582f42&&null===_0x534666?0x1:_0x582f42['start']['isBefore'](_0x534666['start'])?-0x1:0x1;});const _0x4cca84=new Set(),_0x402d6f=new Set();for(const {name:_0x2c587e,data:_0x292b0d}of _0x5d1871){const {id:_0x28abbc}=tt(_0x2c587e);if(null===_0x292b0d['oldRange']){const _0x495d00=this['_handleNewSuggestionMarker'](_0x2c587e);_0x402d6f['add'](_0x495d00);}else{const _0x3f182e=this['_suggestions']['get'](_0x28abbc);null!==_0x292b0d['newRange']||_0x3f182e['isInContent']?(_0x4cca84['add'](_0x3f182e['head']),_0x402d6f['add'](_0x3f182e)):this['_removeSuggestion'](_0x3f182e);}}_0x402d6f['size']>0x0&&this['_refreshSuggestionsChain'](_0x402d6f);for(const _0x45ec6b of _0x4cca84)this['fire']('suggestionChanged',_0x45ec6b);}),_0x566fa3['model']['on']('applyOperation',(_0xfa6526,_0x29ea2b)=>{const _0x28ab97=_0x29ea2b[0x0];if(!this['_suggestions']['size'])return;if(!_0x28ab97['isDocumentOperation'])return;if(_0x28ab97['batch']['isUndo']||!_0x28ab97['batch']['isLocal'])return;let _0x14b22a,_0x24bb1f;switch(_0x28ab97['type']){case'insert':_0x14b22a=_0x566fa3['model']['createPositionAt'](_0x28ab97['position']),_0x24bb1f=_0x14b22a['getShiftedBy'](_0x28ab97['howMany']);break;case'split':_0x14b22a=_0x566fa3['model']['createPositionAt'](_0x28ab97['splitPosition']),_0x24bb1f=_0x566fa3['model']['createPositionAt'](_0x28ab97['moveTargetPosition']);break;case'move':_0x14b22a=_0x566fa3['model']['createPositionAt'](_0x28ab97['targetPosition']),_0x24bb1f=_0x14b22a['getShiftedBy'](_0x28ab97['howMany']);break;default:return;}const _0x1ee674=_0x566fa3['model']['createRange'](_0x14b22a,_0x24bb1f);_0x566fa3['model']['change'](()=>{for(const {suggestion:_0x32f3a7,meta:_0x5c1a06}of this['_findSuggestions'](_0x1ee674)){if(_0x32f3a7['isMultiRange'])continue;if('formatInline'==_0x32f3a7['type'])continue;const _0x5d6020=this['_getAttributeKey'](_0x32f3a7);if(_0x5d6020&&this['_suggestionsConversion']['isBlockAttribute'](_0x5d6020)&&'split'!=_0x28ab97['type'])continue;const _0x3fde12=_0x32f3a7['data']&&_0x32f3a7['data']['multipleBlocks'];('formatBlock'!=_0x32f3a7['type']||'split'==_0x28ab97['type']&&!_0x3fde12)&&(_0x5c1a06['containsRangeInObject']||'insertion'==_0x32f3a7['type']&&_0x5c1a06['isOwn']||_0x32f3a7['getFirstRange']()['containsRange'](_0x1ee674)&&this['_breakSuggestionMarker'](_0x32f3a7,_0x14b22a,_0x24bb1f));}});},{'priority':'lowest'}),_0x566fa3['model']['on']('deleteContent',(_0x41b72b,_0x5c4d6b)=>{const _0x381d75=_0x5c4d6b[0x0],_0x5de837=_0x5c4d6b[0x1];if(_0x5de837&&_0x5de837['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x381d75['isCollapsed'])return;const _0x52e974=_0x566fa3['model']['schema'],{start:_0x153b40,end:_0x2b08b7}=_0x381d75['getFirstRange'](),_0x200cb3=_0x153b40['nodeAfter']&&_0x52e974['isLimit'](_0x153b40['nodeAfter'])?null:_0x52e974['getNearestSelectionRange'](_0x153b40,'forward'),_0x415ac9=_0x2b08b7['nodeBefore']&&_0x52e974['isLimit'](_0x2b08b7['nodeBefore'])?null:_0x52e974['getNearestSelectionRange'](_0x2b08b7,'backward'),_0x45296a=_0x566fa3['model']['createRange'](_0x200cb3?_0x200cb3['start']:_0x153b40,_0x415ac9?_0x415ac9['end']:_0x2b08b7);_0x566fa3['model']['change'](_0x43378b=>{this['markDeletion'](_0x45296a);const _0x3131ca=_0x566fa3['model']['schema']['getNearestSelectionRange'](_0x45296a['start']);_0x381d75['is']('documentSelection')?_0x43378b['setSelection'](_0x3131ca):_0x381d75['setTo'](_0x3131ca);}),_0x41b72b['stop']();},{'priority':_0x1623c5['normal']+0xa}),_0x566fa3['model']['on']('insertContent',(_0x5ec5ab,_0x2a598e)=>{const _0x22d853=_0x2a598e[_0x2a598e['length']-0x1];_0x22d853&&_0x22d853['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x566fa3['model']['change'](()=>{let _0x4036b0=_0x566fa3['model']['insertContent'](_0x2a598e[0x0],_0x2a598e[0x1],_0x2a598e[0x2],{'forceDefaultExecution':!0x0});if(!_0x4036b0)return;_0x5ec5ab['return']=_0x4036b0['clone']();const _0x4d4fce=_0x4036b0['end']['nodeBefore'],_0x2a9d0a=_0x566fa3['model']['schema'];_0x4d4fce&&_0x2a9d0a['isBlock'](_0x4d4fce)&&!_0x2a9d0a['isObject'](_0x4d4fce)&&(_0x4036b0=_0x566fa3['model']['createRange'](_0x4036b0['start'],_0x566fa3['model']['createPositionAt'](_0x4d4fce,'end'))),this['markInsertion'](_0x4036b0);}),_0x5ec5ab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ad393=new Tt(_0x566fa3,this['_suggestions']);_0x566fa3['commands']['add']('acceptSuggestion',_0x2ad393),this['enableCommand']('acceptSuggestion');const _0x21994c=new _t(_0x566fa3,this['_suggestions']);_0x566fa3['commands']['add']('discardSuggestion',_0x21994c),this['enableCommand']('discardSuggestion'),_0x566fa3['commands']['add']('acceptAllSuggestions',new Ct(_0x566fa3,_0x2ad393,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x566fa3['commands']['add']('discardAllSuggestions',new Ct(_0x566fa3,_0x21994c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x566fa3['commands']['add']('acceptSelectedSuggestions',new Rt(_0x566fa3,_0x2ad393,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x566fa3['commands']['add']('discardSelectedSuggestions',new Rt(_0x566fa3,_0x21994c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x557b47=_0x566fa3['plugins']['get'](_0x57e609);this['listenTo'](_0x557b47,'addComment',(_0x43a641,{threadId:_0x5a788f})=>{const _0x543969=this['_suggestions']['get'](_0x5a788f);_0x543969&&_0x543969['commentThread']&&0x1===_0x543969['commentThread']['length']&&this['_updateSuggestionData'](_0x5a788f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x557b47,'removeComment',(_0x32a392,{threadId:_0x32010f})=>{const _0x2225eb=this['_suggestions']['get'](_0x32010f);_0x2225eb&&_0x2225eb['commentThread']&&!_0x2225eb['commentThread']['length']&&this['_updateSuggestionData'](_0x32010f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x24f037){const _0x155b13='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x4e65c0=0x78e88,_0x54dd93=window['Date']['now'](),_0x1654b6=_0x24f037['editor'],_0xe4f993=new window['Promise'](_0x28f373=>{_0x1654b6['once']('ready',_0x28f373);}),_0x35f328={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1550ef=_0x1654b6['config']['get']('licenseKey');async function _0x5b547a(){let _0x5354c5,_0x3f04d7=null,_0x8fc64f=null;try{return'GPL'==_0x1550ef?'NotAllowed':(_0x5354c5=_0x1d918a(),_0x5354c5?(_0x5354c5['usageEndpoint']&&(_0x8fc64f=_0x5ebc08(_0x5354c5['usageEndpoint'],_0x5354c5['jti'])),await _0x13dee5()?_0xb13bd7()?_0x4af67f()?'Expired':_0x25e61a()?('evaluation'==_0x5354c5['licenseType']&&(_0x3f04d7=_0x1a17b8('EvaluationLimit')),await _0x3a10ec()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4af67f(){const _0x516ce3=['evaluation','trial']['includes'](_0x5354c5['licenseType'])?_0x54dd93/0x3e8:0xe10*_0x4e65c0;return _0x5354c5['exp']<_0x516ce3;}function _0xb13bd7(){const _0x3374d9=_0x5354c5['features'];if(!_0x3374d9)return!0x1;if(_0x3374d9['includes']('*'))return!0x0;if(_0x3374d9['includes']('TC'))return!0x0;if(_0x3374d9['includes']('RTC')){if(_0xba1c5a())return!0x0;if(_0x3eff4e()||_0x17a82b())return!0x0;}return!0x1;}function _0x25e61a(){const _0x326409=_0x5354c5['licensedHosts'];if(!_0x326409||0x0==_0x326409['length'])return!0x0;const {hostname:_0x54ae1f}=new URL(window['location']['href']);if(_0x326409['includes'](_0x54ae1f))return!0x0;const _0x1eeca1=_0x54ae1f['split']('.');return _0x326409['filter'](_0x1faa13=>_0x1faa13['includes']('*'))['map'](_0x4a88fa=>_0x4a88fa['split']('.'))['filter'](_0x18367a=>_0x18367a['length']<=_0x1eeca1['length'])['map'](_0x56f918=>Array(_0x1eeca1['length']-_0x56f918['length'])['fill']('*'===_0x56f918[0x0]?'*':'')['concat'](_0x56f918))['some'](_0x141cdd=>_0x1eeca1['every']((_0x441989,_0x403a66)=>_0x141cdd[_0x403a66]===_0x441989||'*'===_0x141cdd[_0x403a66]));}function _0x3a10ec(){return _0x3f04d7&&_0x8fc64f?new window['Promise']((_0x10a9d7,_0x47f63e)=>{_0x3f04d7['then'](_0x10a9d7,_0x47f63e),_0x8fc64f['then'](_0x3c2356=>{'Valid'!=_0x3c2356&&_0x10a9d7(_0x3c2356);},_0x47f63e);}):_0x3f04d7||_0x8fc64f||'Valid';}}function _0x5ebc08(_0x242d48,_0x215fa7){return new window['Promise'](_0x4cb875=>{if(_0x2d7260())return _0x4cb875('Valid');_0x16e234(),_0x1654b6['decorate']('_sendUsageRequest');let _0x4148f9=!0x1;const _0x29dc01=_0xf105bf();function _0x57fe31(_0x50cf58){return!!_0x50cf58&&('object'==typeof _0x50cf58||'function'==typeof _0x50cf58)&&'function'==typeof _0x50cf58['then']&&'function'==typeof _0x50cf58['catch'];}function _0x581975(_0xf9133f){_0x51ac47(_0xf9133f)['then'](_0x1e640c=>_0x1e640c&&'ok'==_0x1e640c['status']?_0x1639a1(_0x7beb34(_0x29dc01+_0x215fa7))!=_0x1e640c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18f28c=>(_0x2885a2(),_0x18f28c),()=>{const _0x422596=_0x4f5f18();return null==_0x422596?(_0x2885a2(),'Valid'):_0x54dd93-_0x422596>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4cb875)['catch'](()=>{_0x4cb875('UsageLimit');});const _0x3e0757=0x36ee80;function _0x2885a2(){const _0x4f3ed6='llct-'+_0x1639a1(_0x7beb34(_0x242d48)),_0x2e31a3=_0x177ff2(_0x1639a1(window['Math']['ceil'](_0x54dd93/_0x3e0757)));window['localStorage']['setItem'](_0x4f3ed6,_0x2e31a3);}function _0x4f5f18(){const _0xc0344c='llct-'+_0x1639a1(_0x7beb34(_0x242d48)),_0x2caba8=window['localStorage']['getItem'](_0xc0344c);return _0x2caba8?window['parseInt'](_0x177ff2(_0x2caba8),0x10)*_0x3e0757:null;}function _0x51ac47(_0x291fcb){return new window['Promise']((_0xd4ba54,_0x144175)=>{_0x291fcb['then'](_0xd4ba54,_0x144175),window['setTimeout'](_0x144175,0x1d4c0);});}}_0x1654b6['on']('_sendUsageRequest',(_0x24f01f,_0x5cbc8e)=>{if(_0x5cbc8e[0x0]!=_0x242d48)return _0x4cb875('UsageLimit');_0x5cbc8e[0x1]={..._0x5cbc8e[0x1],'requestId':_0x29dc01};},{'priority':'high'}),_0x1654b6['on']('_sendUsageRequest',_0x14a06e=>{_0x57fe31(_0x14a06e['return'])&&(_0x4148f9=!0x0,_0x581975(_0x14a06e['return']));},{'priority':'low'}),_0xe4f993['then'](()=>{_0x4148f9||_0x4cb875('UsageLimit');});});function _0x2d7260(){return'auto'==_0x1654b6['editing']['view']['_overlayModeHint'];}function _0x16e234(){_0x1654b6['editing']['view']['_overlayModeHint']='auto';}}function _0x1a17b8(_0x2fee15){const _0x3f0f65=[new window['Promise'](_0x2ff004=>setTimeout(_0x2ff004,0x93ecc)),_0xe4f993['then'](()=>new window['Promise'](_0x48f04c=>{let _0x1f8ed3=0x0;_0x1654b6['model']['on']('applyOperation',(_0x3e7ac2,_0x231076)=>{_0x231076[0x0]['isDocumentOperation']&&_0x1f8ed3++,0x5e8==_0x1f8ed3&&(_0x48f04c(),_0x3e7ac2['off']());});}))];return window['Promise']['race'](_0x3f0f65)['then'](()=>_0x2fee15);}async function _0x1b28d0(){await _0xe4f993,_0x1654b6['model']['change']=_0x3e5beb,_0x1654b6['model']['enqueueChange']=_0x3e5beb,_0x1654b6['enableReadOnlyMode']('model');}function _0xba1c5a(){return _0x36bc63('WebSocketGateway')&&'connected'==_0x4d4f47('WebSocketGateway')['state'];}function _0x3eff4e(){return _0x36bc63('RevisionViewerIntegration');}function _0x17a82b(){return _0x36bc63('TrackChangesDataGetter');}function _0x50216f(_0x693a42){const _0x312826=_0x4182c9();_0x1654b6[_0x312826]='trackChangesLicenseKey'+_0x693a42,'Valid'!=_0x693a42&&_0x1b28d0();}function _0x4182c9(){const _0x3dcadd=window['String'](window['performance']['now']())['replace']('.','');let _0x145a10='R';for(let _0x3c77f8=0x0;_0x3c77f8<_0x3dcadd['length'];_0x3c77f8+=0x2){let _0x5d4114=window['parseInt'](_0x3dcadd['substring'](_0x3c77f8,_0x3c77f8+0x2));_0x5d4114>=0x3e&&(_0x5d4114-=0x3e),_0x145a10+=_0x155b13[_0x5d4114];}return _0x145a10;}function _0x1d918a(){const _0x14a99a=_0x1550ef['split']('.');if(0x3!=_0x14a99a['length'])return null;return _0x52ceba(_0x14a99a[0x1]);function _0x52ceba(_0x644bfd){const _0x5dfd3c=_0x1ba92d(_0x644bfd);return _0x5dfd3c&&_0x125e65()?_0x5dfd3c:null;function _0x125e65(){const _0x3d9f81=_0x5dfd3c['jti'],_0x3a6123=window['parseInt'](_0x3d9f81['substring'](_0x3d9f81['length']-0x8),0x10),_0x4fd8d3={..._0x5dfd3c,'jti':_0x3d9f81['substring'](0x0,_0x3d9f81['length']-0x8)};return delete _0x4fd8d3['vc'],_0x7beb34(_0x4fd8d3)==_0x3a6123;}}}async function _0x13dee5(){let _0x3d3a61=!0x0;try{const [_0x88ac26,_0x4271cd,_0x54fbf7]=_0x1550ef['split']('.');return _0x98763f(_0x88ac26),await _0xe32be3(_0x88ac26,_0x4271cd,_0x54fbf7),_0x3d3a61;}catch{return!0x1;}function _0x98763f(_0x3799bf){const _0x52bfb3=_0x1ba92d(_0x3799bf);_0x52bfb3&&'ES256'==_0x52bfb3['alg']||(_0x3d3a61=!0x1);}async function _0xe32be3(_0x2ca562,_0x59aaaf,_0x16e8e4){const _0x5211e3=window['Uint8Array']['from'](_0x3b26c2(_0x16e8e4),_0x58e268=>_0x58e268['charCodeAt'](0x0)),_0x20c04b=new window['TextEncoder']()['encode'](_0x2ca562+'.'+_0x59aaaf),_0xc51471=window['crypto']['subtle'];if(!_0xc51471)return;const _0x4e76f1=await _0xc51471['importKey']('jwk',_0x35f328,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc51471['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4e76f1,_0x5211e3,_0x20c04b)||(_0x3d3a61=!0x1);}}function _0x1ba92d(_0x4e1af5){return _0x4e1af5['startsWith']('ey')?JSON['parse'](_0x3b26c2(_0x4e1af5)):null;}function _0x3b26c2(_0x55210c){return window['atob'](_0x55210c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x7beb34(_0x3958c9){let _0x1efb45=0x1505;function _0x16b533(_0x425996){for(let _0x1cbcdb=0x0;_0x1cbcdb<_0x425996['length'];_0x1cbcdb++){const _0x5c6465=_0x425996['charCodeAt'](_0x1cbcdb);_0x1efb45=(_0x1efb45<<0x5)+_0x1efb45+_0x5c6465,_0x1efb45&=_0x1efb45;}}function _0x24b35d(_0x466e0c){Array['isArray'](_0x466e0c)?_0x466e0c['forEach'](_0x24b35d):_0x466e0c&&'object'==typeof _0x466e0c?Object['entries'](_0x466e0c)['sort']()['forEach'](([_0x559f6e,_0x3cdd40])=>{_0x16b533(_0x559f6e),_0x24b35d(_0x3cdd40);}):_0x16b533(window['String'](_0x466e0c));}return _0x24b35d(_0x3958c9),_0x1efb45>>>0x0;}function _0x1639a1(_0x203ab8){return _0x203ab8['toString'](0x10)['padStart'](0x8,'0');}function _0x177ff2(_0x4dace5){return _0x4dace5['split']('')['reverse']()['join']('');}function _0x36bc63(_0x4c4234){return _0x1654b6['plugins']['has'](_0x4c4234);}function _0x4d4f47(_0x1b4ede){return _0x1654b6['plugins']['get'](_0x1b4ede);}function _0x3e5beb(){}_0x50216f(await _0x5b547a());}(this);}set['adapter'](_0x1bb746){if(this['_adapter'])throw new _0x1e6e4c('track-changes-adapter-already-set',this);this['_adapter']=_0x1bb746;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d29b2=!0x1,toJSON:_0x215df4=!0x1}={}){const _0x5cc54b=[];for(const _0x16a604 of this['_suggestions']['values']())_0x5d29b2&&!_0x16a604['isInContent']||_0x5cc54b['push'](_0x16a604);return _0x215df4?_0x5cc54b['map'](_0x516d4a=>_0x516d4a['toJSON']()):_0x5cc54b;}['getSuggestion'](_0x232a0d){const _0x14557d=this['_suggestions']['get'](_0x232a0d);if(!_0x14557d)throw new _0x1e6e4c('track-changes-suggestion-not-found',this);return _0x14557d;}['hasSuggestion'](_0x473aab){return this['_suggestions']['has'](_0x473aab);}['addSuggestionData'](_0x37bea0){const {authorId:_0x39ab7b,id:_0x528153,originalSuggestionId:_0x589570,attributes:_0x5f2b60}=_0x37bea0,[_0x7a423,_0x59c45c]=_0x37bea0['type']['split'](':'),_0x39cf09=this['_suggestions']['get'](_0x528153)||this['_createSuggestion'](_0x7a423,_0x59c45c,_0x528153,_0x39ab7b,_0x5f2b60,_0x589570);if(this['_addThreadToSuggestion'](_0x39cf09),this['_checkSuggestionCorrectness'](_0x39cf09,_0x7a423,_0x59c45c||null,_0x39ab7b),_0x39cf09['createdAt']=_0x37bea0['createdAt'],_0x39cf09['_isDataLoaded']=!0x0,_0x5f2b60&&_0x5f2b60['@external']){const _0x3a263d=_0x5f2b60['@external'],_0x3b66b2=this['_getExternalAuthor'](_0x3a263d['authorName']);_0x39cf09['authoredAt']=_0x3a263d['createdAt'],_0x39cf09['author']=_0x3b66b2;}else _0x39cf09['authoredAt']=_0x37bea0['createdAt'];switch(_0x37bea0['data']&&(_0x39cf09['data']=_0x37bea0['data']),_0x37bea0['attributes']&&(_0x39cf09['attributes']=_0x37bea0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x39cf09['_saved']=!0x0),this['_suggestionState']['get'](_0x39cf09)){case'notReady':this['_suggestionState']['set'](_0x39cf09,'dataReady');break;case'markerReady':_0x39cf09['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x39cf09])),this['_refreshSuggestionsChain'](new Set([_0x39cf09])),this['_suggestionState']['set'](_0x39cf09,'ready'),this['fire']('suggestionLoaded',_0x39cf09)):this['_suggestionState']['set'](_0x39cf09,'removed');}return _0x39cf09;}['acceptSuggestion'](_0x14dd49){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x531acf of _0x14dd49['getAllAdjacentSuggestions']())_0x531acf['accept']();});});}['discardSuggestion'](_0x2a0210){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x149f08 of _0x2a0210['getAllAdjacentSuggestions']())_0x149f08['discard']();});});}['enableCommand'](_0x5588c5,_0x214aea){const _0x38c325=this['editor']['commands']['get'](_0x5588c5);if(!_0x38c325)throw new _0x1e6e4c('track-changes-command-not-found',this,{'commandName':_0x5588c5});if(this['_enabledCommands']['has'](_0x38c325))throw new _0x1e6e4c('track-changes-enable-command-twice',this,{'commandName':_0x5588c5});this['_enabledCommands']['add'](_0x38c325),_0x214aea&&_0x38c325['on']('execute',(_0x8b8aa3,_0x59d1b8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x59d1b8['length']>0x0&&_0x59d1b8[_0x59d1b8['length']-0x1]&&_0x59d1b8[_0x59d1b8['length']-0x1]['forceDefaultExecution']?_0x59d1b8['pop']():(_0x8b8aa3['return']=_0x214aea((..._0x1de820)=>_0x38c325['execute'](..._0x1de820,{'forceDefaultExecution':!0x0}),..._0x59d1b8),_0x8b8aa3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4ee926){let _0x268bd2,_0x491e48;const _0x5d8ef2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x268bd2=_0x4ee926();}catch(_0xa8bd2d){_0x491e48=_0xa8bd2d;}return _0x5d8ef2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x491e48&&_0x1e6e4c['rethrowUnexpectedError'](_0x491e48,this),_0x268bd2;}['markInsertion'](_0x472e27,_0x13879a=null,_0x74861c={}){if(_0x472e27['isCollapsed'])return null;const _0x12f2a3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x74861c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4096a7,meta:_0x47a4a7}of this['_findSuggestions'](_0x472e27,'insertion'))if(_0x47a4a7['isOwn']){if(!_0x47a4a7['isNextTo']){if(_0x47a4a7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x4096a7,_0x74861c))continue;return _0x4096a7;}if(En(_0x4096a7,_0x74861c))return _0x4096a7;this['_breakSuggestionMarker'](_0x4096a7,_0x472e27['start'],_0x472e27['end']);break;}if(_0x13879a==_0x4096a7['subType']&&En(_0x4096a7,_0x74861c)){const _0x4c5aa7=_0x4096a7['getFirstRange']();return _0x4c5aa7['start']['isEqual'](_0x472e27['end'])?this['_setSuggestionRange'](_0x4096a7,this['_model']['createRange'](_0x472e27['start'],_0x4c5aa7['end'])):this['_setSuggestionRange'](_0x4096a7,this['_model']['createRange'](_0x4c5aa7['start'],_0x472e27['end'])),_0x4096a7;}}const _0x50a9c7=_0xf105bf(),_0x5db607=_0x12f2a3['id'],_0xc860ad=_0x13879a?'insertion:'+_0x13879a:'insertion',_0x13cf66=this['_setSuggestionData']({'id':_0x50a9c7,'type':_0xc860ad,'createdAt':new Date(),'authorId':_0x5db607,'attributes':_0x74861c});return this['_addSuggestionMarker'](_0xc860ad,_0x50a9c7,_0x5db607,_0x472e27),_0x13cf66;}['markMultiRangeInsertion'](_0xb1c0d7,_0x5ee81b='multi',_0x5866ab={}){const _0x441413=this['editor']['plugins']['get']('Users')['me'],_0x2f5ea9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ee81b,'join');this['_trackingSessionId']&&(_0x5866ab['trackingSessionId']=this['_trackingSessionId']);for(const _0x1505fc of this['getSuggestions']())if(_0x1505fc['author']['id']==_0x441413['id']&&'insertion'==_0x1505fc['type']&&_0x1505fc['subType']==_0x5ee81b&&En(_0x1505fc,_0x5866ab)&&(_0x2f5ea9(_0x1505fc['getRanges'](),_0xb1c0d7)||_0x2f5ea9(_0xb1c0d7,_0x1505fc['getRanges']()))){for(const _0x5f07b0 of _0xb1c0d7)_0x1505fc['addRange'](_0x5f07b0);return _0x1505fc;}for(const {suggestion:_0x47bcdb,meta:_0x20b362}of this['_findSuggestions'](_0xb1c0d7,'insertion')){if(!_0x20b362['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x20b362['containsRangeInObject'])continue;if(!En(_0x47bcdb,_0x5866ab))continue;let _0xaf7bc6=!0x0;for(const _0x7f4213 of _0x47bcdb['getRanges']())for(const _0x5a1aa5 of _0xb1c0d7)if(!_0x7f4213['containsRange'](_0x5a1aa5)){_0xaf7bc6=!0x1;break;}if(_0xaf7bc6)return _0x47bcdb;}const _0x1a77cb=_0xf105bf(),_0x1531cf=_0x441413['id'],_0xa34519='insertion:'+_0x5ee81b,_0x536c8e=this['_setSuggestionData']({'id':_0x1a77cb,'type':_0xa34519,'createdAt':new Date(),'authorId':_0x1531cf,'attributes':_0x5866ab});for(const _0x417cbf of _0xb1c0d7)this['_addSuggestionMarker'](_0xa34519,_0x1a77cb,_0x1531cf,_0x417cbf,yt['getMultiRangeId']());return _0x536c8e;}['markInlineFormat'](_0x3d499a,_0x69f090,_0x4136f1=null,_0xa517b5={}){if(_0x4136f1=_0x4136f1||cn(_0x69f090),_0x3d499a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xa517b5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30f191=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4136f1,'accept');return this['forceDefaultExecution'](()=>_0x30f191([_0x3d499a],_0x69f090,_0xa517b5)),null;}const _0x41495f=this['editor']['plugins']['get']('Users')['me'],_0x12ca6b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x18bf6c,meta:_0x497d14}of this['_findSuggestions'](_0x3d499a,'insertion'))_0x497d14['isOwn']&&!_0x497d14['isInsideObject']&&_0x12ca6b['push'](..._0x18bf6c['getRanges']());}const _0x3298be=function(_0x5f31dc,_0x462ef2){const _0x1bf597=[];for(const _0xb47543 of _0x462ef2){const _0x2ed452=_0x5f31dc['getIntersection'](_0xb47543);_0x2ed452&&_0x1bf597['push'](_0x2ed452);}return _0x1bf597;}(_0x3d499a,_0x12ca6b),_0x5d6cd4=function(_0x452ebe,_0x378c11){const _0x2c8977=[_0x452ebe];for(const _0x40da86 of _0x378c11){let _0x1ea6b9=0x0;for(;_0x1ea6b9<_0x2c8977['length'];){const _0x4ff85a=_0x2c8977[_0x1ea6b9]['getDifference'](_0x40da86);_0x2c8977['splice'](_0x1ea6b9,0x1,..._0x4ff85a),_0x1ea6b9+=_0x4ff85a['length'];}}return _0x2c8977;}(_0x3d499a,_0x12ca6b);_0x3298be['length']&&this['_model']['change'](()=>{for(const _0x32ba8d of _0x3298be){const _0x1f1613=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4136f1,'accept');this['forceDefaultExecution'](()=>_0x1f1613([_0x32ba8d],_0x69f090,_0xa517b5));}});for(const _0x406a21 of _0x5d6cd4){let _0x2a0057=null,_0x1bdf26=_0x406a21['start'],_0x204997=_0x406a21['end'];for(const {suggestion:_0x2cb11e,meta:_0x57cec6}of this['_findSuggestions'](_0x406a21,'formatInline')){if(!_0x57cec6['isOwn'])continue;if(_0x2cb11e['subType']!=_0x4136f1)continue;if(!En(_0x2cb11e,_0xa517b5))continue;const _0x11a96b=_0x2cb11e['getFirstRange']();if(_0x11a96b['containsRange'](_0x406a21,!0x0))return null;_0x1bdf26=_0x1bdf26['isBefore'](_0x11a96b['start'])?_0x1bdf26:_0x11a96b['start'],_0x204997=_0x204997['isAfter'](_0x11a96b['end'])?_0x204997:_0x11a96b['end'],_0x2a0057?_0x11a96b['start']['isBefore'](_0x2a0057['getFirstRange']()['start'])?(_0x2a0057['removeMarkers'](),_0x2a0057=_0x2cb11e):_0x2cb11e['removeMarkers']():_0x2a0057=_0x2cb11e;}const _0x1fa8f2=this['_model']['createRange'](_0x1bdf26,_0x204997);if(_0x2a0057)this['_setSuggestionRange'](_0x2a0057,_0x1fa8f2);else{const _0x277208=_0xf105bf(),_0x458b20=_0x41495f['id'];this['_setSuggestionData']({'id':_0x277208,'type':'formatInline:'+_0x4136f1,'data':_0x69f090,'createdAt':new Date(),'authorId':_0x458b20,'attributes':_0xa517b5}),this['_addSuggestionMarker']('formatInline:'+_0x4136f1,_0x277208,_0x458b20,_0x1fa8f2);}}return null;}['markBlockFormat'](_0x3c5282,_0x521aa6,_0x3a6719=[],_0x47b0eb=null,_0x2e9aec={}){_0x521aa6['formatGroupId']||(_0x521aa6['formatGroupId']=_0x521aa6['commandName']),_0x521aa6['multipleBlocks']=_0x3c5282['is']('range'),_0x47b0eb=_0x47b0eb||cn(_0x521aa6);const _0x27b162=_0x3a6719['map'](_0x157511=>gn(_0x157511,this['_model'])),_0x33d197=_0x3c5282['is']('range')?_0x3c5282:gn(_0x3c5282,this['_model']);if(this['_trackingSessionId']&&(_0x2e9aec['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f8632=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47b0eb,'accept');return this['forceDefaultExecution'](()=>_0x1f8632([_0x33d197],_0x521aa6,_0x2e9aec)),null;}_0x27b162['push'](_0x33d197);let _0x3532cd=!0x0;for(const _0x589617 of _0x27b162)if(!this['_rangeIsInLocalUserInsertion'](_0x589617)){_0x3532cd=!0x1;break;}if(_0x3532cd&&'always'!==this['_trackFormatChanges']){const _0x58dc3e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47b0eb,'accept');return this['forceDefaultExecution'](()=>_0x58dc3e([_0x33d197],_0x521aa6,_0x2e9aec)),null;}let _0xc873a3=null,_0x2d35b=_0x33d197['start'],_0x2e798d=_0x33d197['end'];for(const {suggestion:_0x327bb6,meta:_0x1393e2}of this['_findSuggestions'](_0x33d197,'formatBlock')){if(!_0x1393e2['isOwn'])continue;if(_0x1393e2['isNextTo']||_0x1393e2['containsRangeInObject']||_0x1393e2['isInsideObject'])continue;if(_0x327bb6['data']['formatGroupId']!=_0x521aa6['formatGroupId'])continue;if(!En(_0x327bb6,_0x2e9aec))continue;const _0x20ceb5=_0x327bb6['getFirstRange']();if(_0x327bb6['subType']==_0x47b0eb){if(_0x20ceb5['containsRange'](_0x33d197,!0x0))return null;_0x2d35b=_0x2d35b['isBefore'](_0x20ceb5['start'])?_0x2d35b:_0x20ceb5['start'],_0x2e798d=_0x2e798d['isAfter'](_0x20ceb5['end'])?_0x2e798d:_0x20ceb5['end'],_0xc873a3?_0x20ceb5['start']['isBefore'](_0xc873a3['getFirstRange']()['start'])?(_0xc873a3['removeMarkers'](),_0xc873a3=_0x327bb6):_0x327bb6['removeMarkers']():_0xc873a3=_0x327bb6;}else{const _0x4a830b=_0x33d197['getIntersection'](_0x20ceb5);this['_cutOutSuggestionMarker'](_0x327bb6,_0x4a830b);}}const _0x59d388=this['editor']['plugins']['get']('Users')['me'],_0x59a1be=_0xf105bf(),_0x56c8a8=_0x59d388['id'];if(_0xc873a3)return this['_setSuggestionRange'](_0xc873a3,this['_model']['createRange'](_0x2d35b,_0x2e798d)),_0xc873a3;{const _0x309b38=this['_setSuggestionData']({'id':_0x59a1be,'type':'formatBlock:'+_0x47b0eb,'data':_0x521aa6,'createdAt':new Date(),'authorId':_0x56c8a8,'attributes':_0x2e9aec});return this['_addSuggestionMarker']('formatBlock:'+_0x47b0eb,_0x59a1be,_0x56c8a8,this['_model']['createRange'](_0x2d35b,_0x2e798d)),_0x309b38;}}['markMultiRangeBlockFormat'](_0x2d991d,_0x1f6ce1,_0x403846=[],_0x595e7b=null,_0x19ac9d={}){_0x1f6ce1['formatGroupId']||(_0x1f6ce1['formatGroupId']=_0x1f6ce1['commandName']);const _0x12201c=_0x2d991d[0x0];_0x1f6ce1['multipleBlocks']=_0x12201c['is']('range'),_0x595e7b=_0x595e7b||cn(_0x1f6ce1);const _0x19aeb6=_0x403846['map'](_0x2e6910=>gn(_0x2e6910,this['_model'])),_0x306662=_0x12201c['is']('range')?_0x2d991d:_0x2d991d['map'](_0x365f3e=>gn(_0x365f3e,this['_model']));if(this['_trackingSessionId']&&(_0x19ac9d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xf5ea3f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x595e7b,'accept');return this['forceDefaultExecution'](()=>_0xf5ea3f(_0x306662,_0x1f6ce1,_0x19ac9d)),null;}_0x19aeb6['push'](..._0x306662);let _0xbe4837=!0x0;for(const _0x2ff235 of _0x19aeb6)if(!this['_rangeIsInLocalUserInsertion'](_0x2ff235)){_0xbe4837=!0x1;break;}if(_0xbe4837&&'always'!==this['_trackFormatChanges']){const _0x39c624=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x595e7b,'accept');return this['forceDefaultExecution'](()=>_0x39c624(_0x306662,_0x1f6ce1,_0x19ac9d)),null;}const _0x1f8292=this['editor']['plugins']['get']('Users')['me'];for(const _0x899b49 of this['getSuggestions']()){const _0x4adc4f=_0x899b49['data'];if(_0x899b49['author']['id']!=_0x1f8292['id'])continue;if('formatBlock'!=_0x899b49['type']||_0x4adc4f['formatGroupId']!=_0x1f6ce1['formatGroupId'])continue;if(!En(_0x899b49,_0x19ac9d))continue;const _0xfb9303=_0x899b49['subType']==_0x595e7b;for(let _0x539cc8=0x0;_0x539cc8<_0x306662['length'];_0x539cc8++){const _0x228de9=_0x306662[_0x539cc8];for(const _0x55858a of _0x899b49['getMarkers']()){const _0x2b0c84=_0x55858a['getRange']();if(_0x228de9['isEqual'](_0x2b0c84)){_0xfb9303?(_0x306662['splice'](_0x539cc8,0x1),_0x539cc8--):_0x899b49['removeMarker'](_0x55858a['name']);break;}}}}if(0x0==_0x306662['length'])return null;const _0x59ef9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x595e7b,'join');for(const _0x4ed3dc of this['getSuggestions']()){const _0x4ea1ed=_0x4ed3dc['data'];if(_0x4ed3dc['author']['id']==_0x1f8292['id']&&('formatBlock'==_0x4ed3dc['type']&&_0x4ea1ed['formatGroupId']==_0x1f6ce1['formatGroupId']&&_0x4ed3dc['subType']==_0x595e7b&&En(_0x4ed3dc,_0x19ac9d)&&(_0x59ef9d(_0x4ed3dc['getRanges'](),_0x306662)||_0x59ef9d(_0x306662,_0x4ed3dc['getRanges']())))){for(const _0x541fea of _0x306662)_0x4ed3dc['addRange'](_0x541fea);return _0x4ed3dc;}}const _0x2927c1=_0xf105bf(),_0x32ec42=_0x1f8292['id'],_0x42c239='formatBlock:'+_0x595e7b,_0x3ccb80=this['_setSuggestionData']({'id':_0x2927c1,'type':_0x42c239,'data':_0x1f6ce1,'createdAt':new Date(),'authorId':_0x32ec42,'attributes':_0x19ac9d});for(const _0x2fd8fd of _0x306662)this['_addSuggestionMarker'](_0x42c239,_0x2927c1,_0x32ec42,_0x2fd8fd,yt['getMultiRangeId']());return _0x3ccb80;}['markDeletion'](_0x1aa692,_0x42272f=null,_0x5251fe={}){if(_0x1aa692['isCollapsed'])return null;const _0x12ec4f=this['editor']['plugins']['get']('Users')['me'],_0x1149a7=new rt(_0x1aa692['start'],_0x1aa692['end']);this['_trackingSessionId']&&(_0x5251fe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a186a,meta:_0x1931ef}of this['_findSuggestions'](_0x1149a7,'insertion'))if(_0x1931ef['isOwn']&&!_0x1931ef['isNextTo']){if(_0x1a186a['isMultiRange']){const _0x3a4848=_0x1a186a['getRanges']()['filter'](_0xc60e43=>'$graveyard'!=_0xc60e43['root']['rootName']);if(_0x3a4848['every'](_0x1e5127=>_0x1149a7['containsRange'](_0x1e5127,!0x0))&&_0x1a186a['discard'](),_0x3a4848['some'](_0xe3fd61=>_0xe3fd61['containsRange'](_0x1149a7,!0x0))){const _0x227d9a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42272f,'accept');return this['forceDefaultExecution'](()=>_0x227d9a([_0x1149a7],null,_0x5251fe)),null;}}else{const _0x3ad68e=_0x1149a7['getIntersection'](_0x1a186a['getFirstRange']());null!==_0x3ad68e&&_0x1a186a['_onDiscard']([_0x3ad68e],null,_0x5251fe);}}if(_0x1149a7['detach'](),_0x1149a7['isCollapsed']||'$graveyard'==_0x1149a7['root']['rootName'])return null;let _0x133ee9=null,_0x7dac36=_0x1149a7['start'],_0x273a60=_0x1149a7['end'];const _0x1bc793=this['_findSuggestions'](_0x1149a7,'deletion');for(const {suggestion:_0x5d4bdb,meta:_0x1db1e9}of _0x1bc793){const _0x58ee98=this['_model']['createRange'](_0x7dac36,_0x273a60);if(_0x1db1e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1db1e9['containsRangeInObject']&&!_0x1db1e9['isInsideObject'])){if(_0x5d4bdb['isMultiRange']){if(!En(_0x5d4bdb,_0x5251fe))continue;let _0x188778=!0x0;for(const _0x174f0d of _0x5d4bdb['getRanges']()){if(_0x174f0d['containsRange'](_0x58ee98,!0x0))return _0x5d4bdb;_0x58ee98['containsRange'](_0x174f0d)||(_0x188778=!0x1);}_0x188778&&_0x5d4bdb['discard']();}else{const _0x3b01ad=_0x5d4bdb['getFirstRange']();if(_0x3b01ad['containsRange'](_0x58ee98,!0x0))return _0x5d4bdb;if(!En(_0x5d4bdb,_0x5251fe)){_0x58ee98['containsRange'](_0x3b01ad)?_0x5d4bdb['removeMarkers']():_0x3b01ad['containsPosition'](_0x7dac36)?_0x7dac36=_0x3b01ad['end']:_0x3b01ad['containsPosition'](_0x273a60)&&(_0x273a60=_0x3b01ad['start']);continue;}_0x7dac36=_0x7dac36['isBefore'](_0x3b01ad['start'])?_0x7dac36:_0x3b01ad['start'],_0x273a60=_0x273a60['isAfter'](_0x3b01ad['end'])?_0x273a60:_0x3b01ad['end'],_0x5251fe=Object['assign']({},_0x5d4bdb['attributes']),_0x133ee9?_0x3b01ad['start']['isBefore'](_0x133ee9['getFirstRange']()['start'])?(_0x133ee9['removeMarkers'](),_0x133ee9=_0x5d4bdb):_0x5d4bdb['removeMarkers']():_0x133ee9=_0x5d4bdb;}}}if(_0x133ee9)return this['_setSuggestionRange'](_0x133ee9,this['_model']['createRange'](_0x7dac36,_0x273a60)),_0x133ee9;{const _0x158f26=_0xf105bf(),_0x510e60=this['_model']['createRange'](_0x7dac36,_0x273a60),_0x2e6a08=_0x12ec4f['id'],_0xd15728=_0x42272f?'deletion:'+_0x42272f:'deletion',_0xeeeebf=this['_setSuggestionData']({'id':_0x158f26,'type':_0xd15728,'createdAt':new Date(),'authorId':_0x2e6a08,'attributes':_0x5251fe});return this['_addSuggestionMarker'](_0xd15728,_0x158f26,_0x2e6a08,_0x510e60),_0xeeeebf;}}['markMultiRangeDeletion'](_0x58f3a3,_0x50dbf1='multi',_0x42e30c={}){const _0x420baf=this['editor']['plugins']['get']('Users')['me'],_0x5db19e=_0x58f3a3['map'](_0x5640e7=>new rt(_0x5640e7['start'],_0x5640e7['end'])),_0x5f3116=new Set();this['_trackingSessionId']&&(_0x42e30c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4664c5,meta:_0xcaaf26}of this['_findSuggestions'](_0x5db19e,'insertion'))_0xcaaf26['isOwn']&&!_0xcaaf26['isNextTo']&&_0x5f3116['add'](_0x4664c5);for(const _0x38d8f1 of _0x5f3116)if(_0x38d8f1['isMultiRange']){const _0x2a04f4=_0x38d8f1['getRanges']();if(_0x38d8f1['attributes']&&_0x38d8f1['attributes']['skipNestingCheck']||_0x2a04f4['every'](_0x153bbc=>_0x5db19e['some'](_0x5e8b60=>_0x5e8b60['containsRange'](_0x153bbc,!0x0)))&&_0x38d8f1['discard'](),_0x5db19e['every'](_0x3a2a02=>_0x2a04f4['some'](_0x11b4c5=>_0x11b4c5['containsRange'](_0x3a2a02,!0x0)))){const _0x329804=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50dbf1,'accept');return this['forceDefaultExecution'](()=>_0x329804(_0x58f3a3,null,_0x42e30c)),null;}}else{const _0x1b3b04=_0x38d8f1['getFirstRange']();if(_0x5db19e['some'](_0x186dbc=>_0x186dbc['containsRange'](_0x1b3b04,!0x0))&&_0x38d8f1['discard'](),_0x5db19e['every'](_0x2cb585=>_0x1b3b04['containsRange'](_0x2cb585,!0x0))){const _0x1c106e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50dbf1,'accept');return this['forceDefaultExecution'](()=>_0x1c106e(_0x5db19e,null,_0x42e30c)),null;}}const _0x192c3b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50dbf1,'join');let _0x9d64be=null;for(const _0x34fcea of this['getSuggestions']())if(_0x34fcea['author']['id']==_0x420baf['id']&&_0x34fcea['isInContent']&&'deletion'==_0x34fcea['type']&&_0x34fcea['subType']==_0x50dbf1&&En(_0x34fcea,_0x42e30c)&&(_0x192c3b(_0x34fcea['getRanges'](),_0x5db19e)||_0x192c3b(_0x5db19e,_0x34fcea['getRanges']()))){if(_0x9d64be){if(_0x34fcea['commentThread']&&_0x34fcea['commentThread']['length'])continue;for(const _0x5f5728 of _0x34fcea['getRanges']())_0x9d64be['isIntersectingWithRange'](_0x5f5728)||_0x9d64be['addRange'](_0x5f5728);_0x34fcea['removeMarkers']();}else{_0x9d64be=_0x34fcea;for(const _0x33076f of _0x5db19e)_0x34fcea['isIntersectingWithRange'](_0x33076f)||_0x34fcea['addRange'](_0x33076f);}}if(_0x9d64be)return _0x9d64be;_0x5f3116['clear']();for(const {suggestion:_0x2b0560,meta:_0x5c9332}of this['_findSuggestions'](_0x5db19e,'deletion'))_0x5c9332['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c9332['containsRangeInObject']&&!_0x5c9332['isInsideObject'])&&En(_0x2b0560,_0x42e30c)&&_0x5f3116['add'](_0x2b0560);for(const _0xb1fac7 of _0x5f3116){const _0x7caec6=_0xb1fac7['getRanges']();if((!_0x42e30c||!_0x42e30c['skipNestingCheck'])&&_0x5db19e['every'](_0x5cbf91=>_0x7caec6['some'](_0x45bafe=>_0x45bafe['containsRange'](_0x5cbf91,!0x0))))return _0xb1fac7;_0xb1fac7['attributes']&&_0xb1fac7['attributes']['skipNestingCheck']||_0x7caec6['every'](_0x853115=>_0x5db19e['some'](_0x295317=>_0x295317['containsRange'](_0x853115,!0x0)))&&_0xb1fac7['discard']();}const _0x4cb194=_0xf105bf(),_0x5de848=_0x420baf['id'],_0x579f4e='deletion:'+_0x50dbf1,_0x462178=this['_setSuggestionData']({'id':_0x4cb194,'type':_0x579f4e,'createdAt':new Date(),'authorId':_0x5de848,'attributes':_0x42e30c});for(const _0x5a5d7 of _0x5db19e)_0x5a5d7['detach'](),_0x5a5d7['isCollapsed']||'$graveyard'==_0x5a5d7['root']['rootName']||this['_addSuggestionMarker'](_0x579f4e,_0x4cb194,_0x5de848,_0x5a5d7,yt['getMultiRangeId']());return _0x462178;}['markAttributeChange'](_0x22589e,_0x2f9d00,_0x4b4a15,_0x2c75b3,_0x3aa14){if(_0x22589e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x143c1d=this['editor']['plugins']['get']('Users')['me']['id'],_0x22346e=Array['from'](this['_suggestions']['values']())['filter'](_0x295332=>'attribute'==_0x295332['type']&&_0x295332['data']['key']==_0x2f9d00&&_0x295332['isIntersectingWithRange'](_0x22589e));if(this['_trackingSessionId']&&(_0x3aa14['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x47b4a5=this['_findSuggestions'](_0x22589e,'insertion')['filter'](({meta:_0x1f6602})=>_0x1f6602['isOwn']&&!_0x1f6602['isInsideObject']&&!_0x1f6602['isNextTo'])['map'](({suggestion:_0x434ff6})=>_0x434ff6);_0x22346e['unshift'](..._0x47b4a5);}const _0x4b9266=new Map([[_0x22589e,_0x4b4a15]]);for(const _0x47fb2b of _0x22346e){const _0x27d348='attribute'==_0x47fb2b['type']?_0x47fb2b['data']['oldValue']:void 0x0,_0xf79d7e=_0x47fb2b['getFirstRange'](),_0x53b80c=Array['from'](_0x4b9266['keys']())['find'](_0x22fcf7=>_0x22fcf7['isIntersecting'](_0xf79d7e));if(!_0x53b80c)continue;const _0x1998c8=_0x53b80c['getDifference'](_0xf79d7e);this['_suggestionsConversion']['isBlockAttribute'](_0x2f9d00)&&'insertion'==_0x47fb2b['type']&&0x0!=_0x1998c8['length']||(_0x4b9266['delete'](_0x53b80c),_0x1998c8['forEach'](_0x3c71da=>{_0x4b9266['set'](_0x3c71da,_0x4b4a15);}),'insertion'!=_0x47fb2b['type']&&_0x27d348!=_0x2c75b3&&_0x4b9266['set'](_0x53b80c['getIntersection'](_0xf79d7e),_0x27d348));}const _0x50477b=[];for(const [_0x12ee42,_0x3db9bf]of _0x4b9266){const _0x3c8af0=_0xf105bf(),_0x1a47c6={'key':_0x2f9d00,'oldValue':_0x3db9bf,'newValue':_0x2c75b3};_0x2f9d00['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':_0x2f9d00});const _0x1a31e8=('attribute:'+_0x2f9d00+'|'+cn({'newValue':_0x2c75b3}))['substring'](0x0,0x3c),_0x4f0f58=this['_setSuggestionData']({'id':_0x3c8af0,'type':_0x1a31e8,'data':_0x1a47c6,'createdAt':new Date(),'authorId':_0x143c1d,'attributes':_0x3aa14});_0x50477b['push'](_0x4f0f58),this['_addSuggestionMarker'](_0x1a31e8,_0x3c8af0,_0x143c1d,_0x12ee42);}return _0x50477b;}['enableDefaultAttributesIntegration'](_0x4671f2){this['enableCommand'](_0x4671f2,(_0x305387,..._0xdb26b0)=>{this['recordAttributeChanges'](()=>{_0x305387(..._0xdb26b0);});});}['startTrackingSession'](_0x2327c5){return this['_trackingSessionId']=void 0x0!==_0x2327c5?_0x2327c5:_0xf105bf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5a06eb){return'attribute'==_0x5a06eb['type']?_n(_0x5a06eb['subType']):null;}['_applyOperationsAsSuggestions'](_0x4ae611){if(0x0==_0x4ae611['length'])return;const _0x26d83b=this['editor'],_0x2ae2cf=_0x26d83b['plugins']['get'](_0x41516b),_0x2f8d4d=[],_0x5dd776=_0x3df3fe=>{const _0x301ab4=_0x3df3fe['_aiSource'];return _0x301ab4?{'@ai':{'type':_0x301ab4}}:{};},_0x5f30dc=(_0x533cc6,_0x43ce73,_0x1903f0)=>{for(let _0x16beae=_0x43ce73;_0x16beae<_0x533cc6['operations']['length'];_0x16beae++){const _0x399973=_0x533cc6['operations'][_0x16beae];'marker'===_0x399973['type']&&(_0x399973['_aiSource']=_0x1903f0);}};_0x26d83b['model']['change'](_0x59e001=>{for(let _0x574035=0x0;_0x574035<_0x4ae611['length'];_0x574035++){const _0x9c2f14=_0x4ae611[_0x574035],_0x315bae=_0x9c2f14['_aiSource'],_0x2a8e20=_0x59e001['batch']['operations']['length'];if(_0x9c2f14['baseVersion']=_0x26d83b['model']['document']['version'],_0x9c2f14['isDocumentOperation']=!0x0,_0x2ae2cf['isMarkedRemoveOperation'](_0x9c2f14)){const _0x5f4cc0=_0x580763(_0x9c2f14['newRange'],_0x26d83b['model']);_0x2f8d4d['unshift']({'range':rt['fromRange'](_0x5f4cc0),'opAttributes':_0x5dd776(_0x9c2f14),'aiSource':_0x315bae});}else{switch(_0x9c2f14['type']){case'rename':{const _0x28a745=_0x9c2f14['oldName'],_0x22968f=_0x9c2f14['newName'];if(_0x28a745==_0x22968f)break;_0x59e001['batch']['addOperation'](_0x9c2f14),_0x26d83b['model']['applyOperation'](_0x9c2f14);const _0x2d206c='$elementName',_0x42444a=_0x9c2f14['position'],_0x408d7f=_0x26d83b['model']['createRange'](_0x42444a,_0x26d83b['model']['createPositionAt'](_0x42444a['nodeAfter'],'end'));this['markAttributeChange'](_0x408d7f,_0x2d206c,_0x28a745,_0x22968f,{..._0x5dd776(_0x9c2f14),'groupId':_0xf105bf()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2a4089=_0x9c2f14['oldValue'],_0x4289b2=_0x9c2f14['newValue'];if(_0x2a4089==_0x4289b2)break;_0x59e001['batch']['addOperation'](_0x9c2f14),_0x26d83b['model']['applyOperation'](_0x9c2f14);const _0x3e7113=_0x9c2f14['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3e7113))break;const _0x5b8ca4=_0x580763(_0x9c2f14['range'],_0x26d83b['model']);this['markAttributeChange'](_0x5b8ca4,_0x3e7113,_0x2a4089,_0x4289b2,{..._0x5dd776(_0x9c2f14),'groupId':_0xf105bf()});break;}case'insert':{if(_0x59e001['batch']['addOperation'](_0x9c2f14),_0x26d83b['model']['applyOperation'](_0x9c2f14),_0x4ae611[_0x574035+0x1]&&'move'==_0x4ae611[_0x574035+0x1]['type'])break;const _0x2913ee=_0x9c2f14['position'],_0x1f03a9=_0x9c2f14['howMany'],_0xf9e5dc=_0x580763(_0x26d83b['model']['createRange'](_0x2913ee,_0x2913ee['getShiftedBy'](_0x1f03a9)),_0x26d83b['model']);this['markInsertion'](_0xf9e5dc,null,{..._0x5dd776(_0x9c2f14)});break;}case'split':{_0x59e001['batch']['addOperation'](_0x9c2f14),_0x26d83b['model']['applyOperation'](_0x9c2f14);const _0x4a8482=_0x9c2f14['splitPosition'],_0x4d7fda=_0x9c2f14['moveTargetPosition'],_0x458ecc=_0x26d83b['model']['createRange'](_0x4a8482,_0x4d7fda);this['markInsertion'](_0x458ecc,null,{..._0x5dd776(_0x9c2f14)});break;}case'move':case'remove':_0x59e001['batch']['addOperation'](_0x9c2f14),_0x26d83b['model']['applyOperation'](_0x9c2f14);}_0x315bae&&_0x5f30dc(_0x59e001['batch'],_0x2a8e20,_0x315bae);}}for(const {range:_0x5c6b24,opAttributes:_0x215f18,aiSource:_0x4e73e4}of _0x2f8d4d){const _0x22611c=_0x59e001['batch']['operations']['length'];_0x5c6b24['detach'](),this['markDeletion'](_0x5c6b24,null,{..._0x215f18}),_0x4e73e4&&_0x5f30dc(_0x59e001['batch'],_0x22611c,_0x4e73e4);}});}['_setSuggestionRange'](_0x3f3ba4,_0x5b5678){const _0x2984cc=_0x3f3ba4['getFirstMarker']();this['_model']['change'](_0x44327c=>{_0x44327c['updateMarker'](_0x2984cc,{'range':_0x5b5678});});}['_addThreadToSuggestion'](_0x4c4e23){const _0x1fe356=_0x4c4e23['id'],_0x3d1831=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1fe356)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d1831,'threadId':_0x1fe356,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4cd458=this['_commentsRepository']['getCommentThread'](_0x1fe356);_0x4cd458['unbind']('isRemovable'),_0x4cd458['isRemovable']=!0x1,_0x4c4e23['commentThread']=_0x4cd458;}['_checkSuggestionCorrectness'](_0x30b52c,_0xe032ba,_0x39e7e6,_0x4a3b7b){if(_0x30b52c['type']!=_0xe032ba||_0x30b52c['subType']!=_0x39e7e6||_0x30b52c['creator']['id']!=_0x4a3b7b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1e6e4c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x38e32d,_0x3c7a7d){const _0xfac135=_0x38e32d['getFirstRange']();if(_0x3c7a7d['isEqual'](_0xfac135))_0x38e32d['removeMarkers']();else{if(_0xfac135['containsRange'](_0x3c7a7d)){const _0x125a01=this['_model']['createPositionAt'](_0x3c7a7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x38e32d,this['_model']['createRange'](_0xfac135['start'],_0x125a01));const _0x58a1aa=_0xf105bf(),_0x442898=_0x38e32d['creator']['id'],_0x156c35=_0x38e32d['type']+':'+_0x38e32d['subType'];this['_setSuggestionData']({'id':_0x58a1aa,'type':_0x156c35,'createdAt':new Date(),'authorId':_0x442898,'data':_0x38e32d['data'],'attributes':_0x38e32d['attributes']});const _0x3d36c9=this['_model']['createPositionAt'](_0x3c7a7d['end']['parent'],'after'),_0x114f99=this['_model']['createRange'](_0x3d36c9,_0xfac135['end']);this['_addSuggestionMarker'](_0x156c35,_0x58a1aa,_0x442898,_0x114f99);}else{if(_0xfac135['containsPosition'](_0x3c7a7d['start'])){const _0x410d13=this['_model']['createPositionAt'](_0x3c7a7d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x38e32d,this['_model']['createRange'](_0xfac135['start'],_0x410d13));}else{const _0x436e6a=this['_model']['createPositionAt'](_0x3c7a7d['end']['parent'],'after');this['_setSuggestionRange'](_0x38e32d,this['_model']['createRange'](_0x436e6a,_0xfac135['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d3631){for(const {suggestion:_0x250276,meta:_0xf2cbd5}of this['_findSuggestions'](_0x4d3631,'insertion')){if(!_0xf2cbd5['isOwn'])continue;const _0x4184ea=_0x250276['getRanges']();for(const _0xb44031 of _0x4184ea)if(!_0x4d3631['getDifference'](_0xb44031)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22c264){return this['editor']['plugins']['get']('Users')['getUser'](_0x22c264);}['_getExternalAuthor'](_0x2dd2d4){const _0x391597=this['editor']['plugins']['get']('Users'),_0x3c0ece=_0x45c83d('external:'+_0x2dd2d4),_0x25b521=_0x391597['getUser'](_0x3c0ece);return _0x25b521||_0x391597['addUser']({'id':_0x3c0ece,'name':_0x2dd2d4});}['_createSuggestion'](_0x57bba0,_0x12a148,_0x2fb3c9,_0xf41be7,_0x52b45f,_0x4e23d2){const _0x1d467e=this['_getAuthorFromId'](_0xf41be7);if(!_0x1d467e)throw new _0x1e6e4c('track-changes-user-not-found',this,{'authorId':_0xf41be7,'suggestionId':_0x2fb3c9});const _0x1692f2=this['_suggestionFactory']['buildSuggestion'](_0x57bba0,_0x12a148,_0x2fb3c9,_0x1d467e,_0x52b45f,_0x13fc17=>{this['_updateSuggestionData'](_0x2fb3c9,{'attributes':_0x13fc17});const _0x148061=this['getSuggestion'](_0x2fb3c9);this['_joinWithAdjacentSuggestions'](new Set([_0x148061])),this['_refreshSuggestionsChain'](new Set([_0x148061]));},_0x4e23d2);return this['listenTo'](_0x1692f2,'accept',()=>{this['_updateSuggestionData'](_0x2fb3c9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1692f2,'discard',()=>{this['_updateSuggestionData'](_0x2fb3c9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fb3c9,_0x1692f2),this['_suggestionState']['set'](_0x1692f2,'notReady'),_0x1692f2;}['_breakSuggestionMarker'](_0x3a31d1,_0x38063f,_0x37ea7a){const _0x5d58a2=_0x3a31d1['getFirstRange'](),_0x136ed4=_0x5d58a2['start'],_0x103a81=_0x5d58a2['end'];this['_setSuggestionRange'](_0x3a31d1,this['_model']['createRange'](_0x136ed4,_0x38063f));const _0x4d2166=_0xf105bf(),_0x4d3f23=_0x3a31d1['creator']['id'],_0x4bd56c=_0x3a31d1['type']+(_0x3a31d1['subType']?':'+_0x3a31d1['subType']:'');this['_setSuggestionData']({'id':_0x4d2166,'type':_0x4bd56c,'createdAt':new Date(),'authorId':_0x4d3f23,'originalSuggestionId':_0x3a31d1['_originalSuggestionId']||_0x3a31d1['id'],'attributes':_0x3a31d1['attributes'],'data':_0x3a31d1['data']});const _0x125c91=this['_getAttributeKey'](_0x3a31d1);('formatBlock'==_0x3a31d1['type']||_0x125c91&&this['_suggestionsConversion']['isBlockAttribute'](_0x125c91))&&(_0x37ea7a=this['_model']['createPositionBefore'](_0x37ea7a['parent'])),this['_addSuggestionMarker'](_0x4bd56c,_0x4d2166,_0x4d3f23,this['_model']['createRange'](_0x37ea7a,_0x103a81));}['_findSuggestions'](_0x5942c6,_0x4dfdd5=null){const _0x41d351=[],_0x732fbf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5942c6)||(_0x5942c6=[_0x5942c6]);for(const _0x5889f9 of this['getSuggestions']()){if(!_0x5889f9['isInContent'])continue;if(_0x4dfdd5&&_0x5889f9['type']!=_0x4dfdd5)continue;let _0x301587=!0x1;for(const _0x5813e6 of _0x5889f9['getRanges']()){for(const _0x9b6eaa of _0x5942c6){const _0x393898=_0x9b6eaa['start']['isEqual'](_0x5813e6['end'])||_0x9b6eaa['end']['isEqual'](_0x5813e6['start']);if(_0x393898||_0x9b6eaa['getIntersection'](_0x5813e6)){const _0x34efb8=_0x9b6eaa['containsRange'](_0x5813e6)&&rn(this['_model']['schema'],_0x5813e6['start'],_0x9b6eaa),_0x5732ea=_0x5813e6['containsRange'](_0x9b6eaa)&&rn(this['_model']['schema'],_0x9b6eaa['start'],_0x5813e6);_0x41d351['push']({'suggestion':_0x5889f9,'meta':{'isOwn':_0x732fbf==_0x5889f9['author'],'isNextTo':_0x393898,'isInsideObject':_0x34efb8,'containsRangeInObject':_0x5732ea}}),_0x301587=!0x0;break;}}if(_0x301587)break;}}return _0x41d351;}['_addSuggestionMarker'](_0x8d41b1,_0x3a2ae2,_0x209ebc,_0x4dba55,_0x568c04){this['_model']['change'](_0x43ac0c=>{let _0x46ac05='suggestion:'+_0x8d41b1+':'+_0x3a2ae2+':'+_0x209ebc;_0x568c04&&(_0x46ac05=_0x46ac05+':'+_0x568c04),_0x43ac0c['addMarker'](_0x46ac05,{'range':_0x4dba55,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x403870){const _0x451525=_0x403870['previous'],_0x1978f9=_0x403870['next'];_0x403870['previous']=null,_0x403870['next']=null,null!=_0x451525&&_0x451525['next']==_0x403870&&(_0x451525['next']=_0x1978f9),null!=_0x1978f9&&_0x1978f9['previous']==_0x403870&&(_0x1978f9['previous']=_0x451525),'ready'==this['_suggestionState']['get'](_0x403870)&&(this['_suggestionState']['set'](_0x403870,'removed'),this['fire']('suggestionUnloaded',_0x403870,_0x451525,_0x1978f9));}['_setSuggestionData'](_0x22015e){const _0x3eccf0=_0x22015e['id'],_0x23c34e=this['addSuggestionData'](_0x22015e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3b211f=this['editor']['plugins']['get']('PendingActions'),_0x1f7892=_0x23c34e['hasComments'],_0x4d372d=_0x23c34e['subType']?_0x23c34e['type']+':'+_0x23c34e['subType']:_0x23c34e['type'],_0x143dad=this['editor']['locale'],_0x19de25=_0x3b211f['add'](St(_0x143dad,'PENDING_ACTION_SUGGESTION')),_0x3bdc53={'id':_0x3eccf0,'type':_0x4d372d,'hasComments':_0x1f7892,'data':_0x22015e['data']||null,'originalSuggestionId':_0x22015e['originalSuggestionId']||null,'attributes':_0x23c34e['attributes']};this['_adapter']['addSuggestion'](_0x3bdc53)['then'](_0x14929f=>{_0x23c34e['_saved']=!0x0,_0x3b211f['remove'](_0x19de25),_0x14929f&&_0x14929f['createdAt']&&(this['_suggestions']['get'](_0x3eccf0)['createdAt']=_0x14929f['createdAt']);})['catch'](_0x371b15=>{throw _0x2bdfe0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23c34e['discard']();}),_0x23c34e['stopListening'](),this['_suggestions']['delete'](_0x23c34e['id']),this['_suggestionState']['delete'](_0x23c34e),_0x371b15;});}return _0x23c34e;}['_updateSuggestionData'](_0x186b57,_0x3804fa){const _0xa69f2f=this['editor']['plugins']['get']('PendingActions'),_0x455f42=this['getSuggestion'](_0x186b57);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x455f42['_saved']){const _0x27329e=_0xa69f2f['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x186b57,_0x3804fa)['then'](()=>{_0xa69f2f['remove'](_0x27329e);});}else _0x455f42['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x186b57,_0x3804fa);});}}['_getSuggestionData'](_0x3dd45b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1e6e4c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dd45b);}['_handleNewSuggestionMarker'](_0x5de891){const {id:_0xd548bb,type:_0x2b6818,subType:_0x3c6f25,authorId:_0x2f20e3}=tt(_0x5de891),_0x52a143=this['_suggestions']['get'](_0xd548bb)||this['_createSuggestion'](_0x2b6818,_0x3c6f25,_0xd548bb,_0x2f20e3,{});switch(this['_checkSuggestionCorrectness'](_0x52a143,_0x2b6818,_0x3c6f25,_0x2f20e3),this['_suggestionState']['get'](_0x52a143)){case'notReady':this['_getSuggestionData'](_0xd548bb)['then'](_0x190181=>{let _0x5041f7=Promise['resolve']();_0x190181['hasComments']&&(_0x5041f7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd548bb})),_0x5041f7['then'](()=>{this['addSuggestionData'](_0x190181)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x52a143,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd548bb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x52a143,'ready'),this['fire']('suggestionLoaded',_0x52a143);break;case'ready':this['fire']('suggestionChanged',_0x52a143);}return _0x52a143['addMarkerName'](_0x5de891),_0x52a143;}['_refreshSuggestionsChain'](_0x170e4c){const _0x30dfd1=Array['from'](_0x170e4c),_0xe1a2a6=_0x30dfd1['filter'](_0x401d1b=>'attribute'==_0x401d1b['type']);this['_refreshAttributeSuggestionsChain'](_0xe1a2a6);const _0x47f46b=_0x30dfd1['filter'](_0x2981bf=>!_0x2981bf['isMultiRange']&&'attribute'!=_0x2981bf['type']),_0x5886a2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e6a14=>!_0x1e6a14['isMultiRange']&&'attribute'!=_0x1e6a14['type']),_0x592968=_0x5886a2['filter'](_0x41cca3=>!_0x170e4c['has'](_0x41cca3)),_0x599a54=new Map(_0x5886a2['map'](_0x3c532b=>[_0x3c532b,this['_suggestionFactory']['getSuggestionCallback'](_0x3c532b['type'],_0x3c532b['subType'],'chain')])),_0x54b0e0=new Map(_0x5886a2['map'](_0x232bb2=>[_0x232bb2,_0x232bb2['getFirstRange']()])),_0x524493=new Set(),_0x27ecc3=new Set();for(let _0x10394a=0x0;_0x10394a<_0x47f46b['length'];_0x10394a++)_0x56c049(_0x47f46b[_0x10394a],_0x47f46b,_0x10394a+0x1);for(let _0x14f83d=0x0;_0x14f83d<_0x47f46b['length'];_0x14f83d++)_0x56c049(_0x47f46b[_0x14f83d],_0x592968,0x0);const _0x33cd22=new Set();for(let _0x25d621=0x0;_0x25d621<_0x47f46b['length'];_0x25d621++){const _0x3849d2=_0x47f46b[_0x25d621];!_0x27ecc3['has'](_0x3849d2)&&_0x3849d2['previous']&&(_0x33cd22['add'](_0x3849d2['previous']),_0x3849d2['previous']['next']===_0x3849d2&&(_0x3849d2['previous']['next']=null),_0x3849d2['previous']=null),!_0x524493['has'](_0x3849d2)&&_0x3849d2['next']&&(_0x33cd22['add'](_0x3849d2['next']),_0x3849d2['next']['previous']===_0x3849d2&&(_0x3849d2['next']['previous']=null),_0x3849d2['next']=null);}function _0x56c049(_0x43f9a7,_0x1cc25d,_0xf47ce4){for(let _0xebc607=_0xf47ce4;_0xebc607<_0x1cc25d['length'];_0xebc607++){const _0xf02167=_0x5f23e8(_0x43f9a7,_0x1cc25d[_0xebc607]);_0xf02167&&(_0xf02167[0x0]['next']=_0xf02167[0x1],_0xf02167[0x1]['previous']=_0xf02167[0x0],_0x524493['add'](_0xf02167[0x0]),_0x27ecc3['add'](_0xf02167[0x1]));}}function _0x5f23e8(_0x5980db,_0xab2d47){if(_0x5980db['author']['id']!==_0xab2d47['author']['id'])return null;const _0x19ace4=_0x599a54['get'](_0x5980db)(_0x5980db,_0xab2d47,_0x54b0e0['get'](_0x5980db),_0x54b0e0['get'](_0xab2d47));return _0x19ace4&&_0x599a54['get'](_0xab2d47)(_0x5980db,_0xab2d47,_0x54b0e0['get'](_0x5980db),_0x54b0e0['get'](_0xab2d47))?_0x19ace4[0x1]['commentThread']&&_0x19ace4[0x1]['commentThread']['length']?null:_0x19ace4:null;}_0x33cd22['size']&&this['_refreshSuggestionsChain'](_0x33cd22);}['_refreshAttributeSuggestionsChain'](_0x47559b){if(0x0==_0x47559b['length'])return;const _0x2b7d53=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfb24ed=>'attribute'==_0xfb24ed['type']&&_0xfb24ed['_isDataLoaded']),_0xe22c36=[],_0x592a52=new Map();for(const _0x229162 of _0x2b7d53){const _0x2dd7e8=_0x45c83d(_0x229162['attributes']);_0x592a52['has'](_0x2dd7e8)||(_0x592a52['set'](_0x2dd7e8,_0xe22c36['length']),_0xe22c36['push']([])),_0xe22c36[_0x592a52['get'](_0x2dd7e8)]['push'](_0x229162);}!(function(){_0xe22c36['sort']((_0x539268,_0x1ed70d)=>{const _0x4910fe=_0x539268[0x0]['createdAt'],_0x51ab45=_0x1ed70d[0x0]['createdAt'];return _0x4910fe==_0x51ab45?_0x539268[0x0]['attributes']['groupId']<_0x1ed70d[0x0]['attributes']['groupId']?-0x1:0x1:_0x4910fe<_0x51ab45?-0x1:0x1;});for(const _0x4b9fec of _0xe22c36)_0x4b9fec['sort']((_0xdde5a0,_0x1fe584)=>_0xdde5a0['id']<_0x1fe584['id']?-0x1:0x1);}());for(let _0x288b71=0x0;_0x288b71<_0xe22c36['length'];_0x288b71++){if(0x0==_0xe22c36[_0x288b71]['length'])continue;const _0x445a41=[];for(let _0x4f2c52=_0x288b71+0x1;_0x4f2c52<_0xe22c36['length'];_0x4f2c52++)0x0!=_0xe22c36[_0x4f2c52]['length']&&_0x404546(_0xe22c36[_0x288b71],_0xe22c36[_0x4f2c52])&&_0x445a41['push'](_0x4f2c52);for(const _0x4204c5 of _0x445a41)_0xe22c36[_0x288b71]=_0xe22c36[_0x288b71]['concat'](_0xe22c36[_0x4204c5]),_0xe22c36[_0x4204c5]=[];}for(const _0x48a25c of _0xe22c36)for(let _0x2ac901=0x0;_0x2ac901<_0x48a25c['length'];_0x2ac901++){const _0x35cae0=_0x48a25c[_0x2ac901+0x1]||null;_0x48a25c[_0x2ac901]['next']!==_0x35cae0&&(_0x48a25c[_0x2ac901]['next']=_0x35cae0);}for(const _0x2e808d of _0xe22c36)for(let _0x2b08af=0x0;_0x2b08af<_0x2e808d['length'];_0x2b08af++){const _0xca211c=_0x2e808d[_0x2b08af-0x1]||null;_0x2e808d[_0x2b08af]['previous']!==_0xca211c&&(_0x2e808d[_0x2b08af]['previous']=_0xca211c);}function _0x404546(_0x1bbcfd,_0x2b65b3){return(_0x1bbcfd[0x0]['attributes']['groupId']===_0x2b65b3[0x0]['attributes']['groupId']||_0x1bbcfd[0x0]['author']===_0x2b65b3[0x0]['author'])&&(!!function(_0x229b54,_0x14e636){return!_0x229b54['hasComments']&&!_0x14e636['hasComments']||(!_0x229b54['hasComments']||!_0x14e636['hasComments'])&&(!!(_0x229b54['hasComments']&&_0x14e636['createdAt']<_0x229b54['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x14e636['hasComments']&&_0x229b54['createdAt']<_0x14e636['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1bbcfd[0x0],_0x2b65b3[0x0])&&(!!ct(lt(_0x1bbcfd[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x2b65b3[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x1bbcfd[0x0]['attributes']['groupId']==_0x2b65b3[0x0]['attributes']['groupId']||_0x1bbcfd[0x0]['attributes']['trackingSessionId']===_0x2b65b3[0x0]['attributes']['trackingSessionId']&&(!!_0x1bbcfd['every'](_0x1a5bee=>_0x2b65b3['some'](_0x47e8a9=>_0x1a5bee['getFirstRange']()['isEqual'](_0x47e8a9['getFirstRange']())))&&_0x2b65b3['every'](_0x35202d=>_0x1bbcfd['some'](_0x5da21b=>_0x35202d['getFirstRange']()['isEqual'](_0x5da21b['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x2cfdb5){const _0x4c74a5=Array['from'](_0x2cfdb5),_0x1902d7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x187730=_0x1902d7['filter'](_0x135b06=>!_0x2cfdb5['has'](_0x135b06)),_0x105c5c=new Map(_0x4c74a5['map'](_0x402f21=>[_0x402f21,this['_suggestionFactory']['getSuggestionCallback'](_0x402f21['type'],_0x402f21['subType'],'join')])),_0x181022=new Map(_0x1902d7['map'](_0x4a75fd=>[_0x4a75fd,_0x4a75fd['getRanges']()]));for(let _0x936834=0x0;_0x936834<_0x4c74a5['length'];_0x936834++)if(_0x3ca891(this,_0x4c74a5[_0x936834],_0x4c74a5,_0x936834+0x1))return!0x0;for(let _0x46fc56=0x0;_0x46fc56<_0x4c74a5['length'];_0x46fc56++)if(_0x3ca891(this,_0x4c74a5[_0x46fc56],_0x187730,0x0))return!0x0;return!0x1;function _0x3ca891(_0x55412d,_0x41ad31,_0x53a827,_0xf5e50d){for(let _0x12095a=_0xf5e50d;_0x12095a<_0x53a827['length'];_0x12095a++){const _0x336eb5=_0x53a827[_0x12095a];if(_0x336eb5['type']!==_0x41ad31['type']||_0x336eb5['author']['id']!==_0x41ad31['author']['id']||_0x336eb5['subType']!==_0x41ad31['subType'])continue;if(!mn(_0x41ad31,_0x336eb5))continue;if('attribute'==_0x41ad31['type']&&_0x41ad31['data']['oldValue']!=_0x336eb5['data']['oldValue'])continue;if('attribute'==_0x41ad31['type']&&_0x55412d['_suggestionsConversion']['isBlockAttribute'](_0x41ad31['data']['key']))continue;if('formatBlock'==_0x41ad31['type']){const _0x18516a=_0x55412d['editor']['model'],_0x5ed7cc=_0x41ad31['getContainedElement']();if(_0x5ed7cc&&(_0x18516a['schema']['isObject'](_0x5ed7cc)||_0x18516a['schema']['isLimit'](_0x5ed7cc)))continue;}const _0x2cab4b=_0x105c5c['get'](_0x41ad31),_0x14a071=_0x181022['get'](_0x41ad31),_0x1575b8=_0x181022['get'](_0x336eb5),_0x2787fb=_0x41ad31['commentThread']&&_0x41ad31['commentThread']['length'],_0x361cb8=_0x336eb5['commentThread']&&_0x336eb5['commentThread']['length'];if(!_0x2787fb&&_0x2cab4b(_0x1575b8,_0x14a071))return _0x55412d['_joinSuggestions'](_0x336eb5,_0x41ad31),_0x181022['delete'](_0x41ad31),!0x0;if(!_0x361cb8&&_0x2cab4b(_0x14a071,_0x1575b8))return _0x55412d['_joinSuggestions'](_0x41ad31,_0x336eb5),_0x181022['delete'](_0x336eb5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2396c8,_0x3bff64){if(_0x2396c8['isMultiRange']){for(const _0x4db364 of _0x3bff64['getRanges']())_0x2396c8['addRange'](_0x4db364);}else{const _0x312674=_0x3bff64['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2396c8,this['_model']['createRange'](_0x2396c8['getFirstRange']()['start'],_0x312674));}_0x3bff64['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2929fd,_0xf4ad0d,_0xf308b3){const _0x550845=_0x2929fd['startsWith']('format')||_0x2929fd['startsWith']('attribute')?'FORMATTING':_0x2929fd['toUpperCase']();return St(this['editor']['locale'],_0xf4ad0d+'_'+_0x550845+'_SUGGESTION_ANNOUNCEMENT',_0xf308b3);}['_initAriaMarkerChangeAnnouncements'](){const _0x453f26=this['editor'];if(!_0x453f26['ui'])return;const {ariaLiveAnnouncer:_0x3f6756}=_0x453f26['ui'];et(this['_model'],({left:_0xe8c5e2,entered:_0x26cf36})=>{for(const _0x527a35 of _0xe8c5e2){const {group:_0x1c7324,type:_0x1b4c17}=tt(_0x527a35['name']);if('suggestion'===_0x1c7324){_0x3f6756['announce'](this['_getMarkerAnnouncementText'](_0x1b4c17,'LEAVE'));break;}}for(const _0x169b99 of _0x26cf36){const {group:_0x2fdda1,type:_0x568a20}=tt(_0x169b99['name']);if('suggestion'===_0x2fdda1){_0x3f6756['announce'](this['_getMarkerAnnouncementText'](_0x568a20,'ENTER',_0x45163b(_0x408fe4)));break;}}});}['_processAttributeChanges'](_0x2fcd63){if(this['_recordAttributeSuggestions'])return!0x1;const _0x416701=this['editor'],_0x10cf9b=_0x416701['model']['document']['differ']['getChanges']();if(0x0==_0x10cf9b['length'])return!0x1;const _0x191415=[],_0x4480bd=_0x10cf9b['filter'](_0x2e561d=>'attribute'==_0x2e561d['type']),_0x1ccd02=_0x10cf9b['filter'](_0x104575=>'insert'==_0x104575['type']&&'$text'!=_0x104575['name']),_0x5dfcb2=_0x10cf9b['filter'](_0x3f460b=>'remove'==_0x3f460b['type']&&'$text'!=_0x3f460b['name']);for(const _0x1dcb77 of _0x4480bd)_0x191415['push']({'key':_0x1dcb77['attributeKey'],'newValue':_0x1dcb77['attributeNewValue'],'oldValue':_0x1dcb77['attributeOldValue'],'range':hn(_0x1dcb77['range'],_0x416701['model'])});for(const _0x3d55c5 of _0x1ccd02){const _0x315bbd=_0x5dfcb2['find'](_0x1e2abe=>_0x1e2abe['position']['isEqual'](_0x3d55c5['position']));_0x315bbd&&_0x191415['push']({'key':en,'newValue':_0x3d55c5['name'],'oldValue':_0x315bbd['name'],'range':_0x416701['model']['createRangeOn'](_0x3d55c5['position']['nodeAfter'])});}return 0x0!=_0x191415['length']&&this['_reduceExistingSuggestions'](_0x2fcd63,_0x191415);}['_processAttributeSuggestions'](_0x4f67af){let _0x407289=!0x1;const _0x540af7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e3cec=>_0x1e3cec['data']['newRange']&&_0x1e3cec['name']['startsWith']('suggestion:attribute:'));for(const _0x114884 of _0x540af7){const {subType:_0x5712ee,id:_0x57519d}=tt(_0x114884['name']),_0x1ed48e=_0x5712ee['split']('|')[0x0];for(const _0x143189 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x143189['id']!=_0x57519d&&'attribute'==_0x143189['type']&&_0x143189['data']&&_0x143189['data']['key']==_0x1ed48e&&_0x143189['getFirstRange']()['isIntersecting'](_0x114884['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x143189,_0x114884['data']['newRange'],_0x4f67af),_0x407289=!0x0);}return _0x407289;}['recordAttributeChanges'](_0x36e525){this['_recordAttributeSuggestions']=!0x0,_0x36e525();}['_reduceExistingSuggestions'](_0x2c67f6,_0x77c2de){if(0x0==_0x77c2de['length'])return!0x1;let _0x572af8=!0x1;for(const _0x4a2e8d of _0x77c2de){const _0x5e797e=this['_findSuggestions'](_0x4a2e8d['range'],'attribute')['filter'](_0xce1249=>!_0xce1249['meta']['isNextTo'])['map'](_0x19330c=>_0x19330c['suggestion']),_0x477b16=_0x45c83d({'newValue':_0x4a2e8d['newValue']});_0x5e797e['filter'](_0x29b5a2=>{const [_0x2c8c28,_0x3180de]=_0x29b5a2['subType']['split']('|');return _0x2c8c28==_0x4a2e8d['key']&&_0x3180de!=_0x477b16;})['forEach'](_0x2d69cc=>{this['_reduceSuggestionAttributeRange'](_0x2d69cc,_0x4a2e8d['range'],_0x2c67f6),_0x572af8=!0x0;});}return _0x572af8;}['_reduceSuggestionAttributeRange'](_0x4bd5a4,_0x2d50d2,_0x5eca21){const _0x486db7=_0x4bd5a4['getFirstRange']()['getDifference'](_0x2d50d2);0x0!==_0x486db7['length']?0x1!==_0x486db7['length']?this['_breakSuggestionMarker'](_0x4bd5a4,_0x2d50d2['start'],_0x2d50d2['end']):this['_setSuggestionRange'](_0x4bd5a4,_0x486db7[0x0]):_0x5eca21['removeMarker'](_0x4bd5a4['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x150b94){this['_editor']=_0x150b94,this['_model']=_0x150b94['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34a94b,_0x58b9da,_0x865b16,_0x4a576b,_0x41feae,_0xd06591,_0x21ea77){return new yt(this['_model'],{'type':_0x34a94b,'subType':_0x58b9da,'id':_0x865b16,'originalSuggestionId':_0x21ea77,'author':_0x4a576b,'creator':_0x4a576b,'attributes':_0x41feae,'onAttributesChange':_0xd06591,'onAccept':(..._0x2b0389)=>this['getSuggestionCallback'](_0x34a94b,_0x58b9da,'accept')(..._0x2b0389),'onDiscard':(..._0xed3740)=>this['getSuggestionCallback'](_0x34a94b,_0x58b9da,'discard')(..._0xed3740)});}['registerCustomCallback'](_0xc03475,_0x4912b4,_0x51c758,_0x4887bc){const _0x528be6=_0xc03475+':'+_0x4912b4+':'+_0x51c758;this['_customCallbacks']['set'](_0x528be6,_0x4887bc);}['getSuggestionCallback'](_0xf91b52,_0x4b6687,_0x2a83a7){const _0x15fede=_0xf91b52+':'+_0x4b6687+':'+_0x2a83a7;return this['_customCallbacks']['get'](_0x15fede)||this['_defaultCallbacks']['get'](_0xf91b52+':'+_0x2a83a7);}['_registerDefaultCallbacks'](){const _0xf793c=()=>!0x1,_0x1ff377=_0x813783=>{_0x813783['sort']((_0x44c24b,_0x46838f)=>_0x44c24b['start']['isBefore'](_0x46838f['start'])?0x1:-0x1),this['_model']['change'](_0x34b085=>{for(const _0x17f714 of _0x813783){let _0x1b8b15;_0x1b8b15=_0x17f714['end']['isAtEnd']&&_0x17f714['end']['parent']==_0x17f714['start']['nodeAfter']?_0x34b085['createSelection'](_0x17f714['start']['nodeAfter'],'on'):_0x34b085['createSelection'](_0x17f714),this['_model']['deleteContent'](_0x1b8b15,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x506965=(_0x55ee78,_0x310c2f)=>{_0x310c2f&&this['_model']['change'](_0x4a55c1=>{const {commandName:_0x3a5c92,commandParams:_0x62b384=[]}=_0x310c2f,_0x168297=_0x55ee78['map'](_0x13d941=>(on(_0x13d941)&&(_0x13d941=this['_model']['createRange'](_0x13d941['end'])),_0x13d941))['filter'](_0x59ba99=>'$graveyard'!==_0x59ba99['root']['rootName']);if(_0x168297['length']<0x1)return;const _0x2c41cc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x401659=>rt['fromRange'](_0x401659));_0x4a55c1['setSelection'](_0x168297);for(const _0x174729 of this['_editor']['commands']['commands']())_0x174729['refresh']();_0x62b384['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a5c92,..._0x62b384);const _0x53a598=_0x2c41cc['filter'](_0x409166=>'$graveyard'!=_0x409166['root']['rootName']);_0x53a598['length']>0x0&&_0x4a55c1['setSelection'](_0x53a598);for(const _0x4294e9 of _0x2c41cc)_0x4294e9['detach']();});},_0xb666ad=(_0x14c3da,_0x33ce87)=>0x1==_0x14c3da['length']&&0x1==_0x33ce87['length']&&_0x14c3da[0x0]['end']['isEqual'](_0x33ce87[0x0]['start']),_0x3a4b96=(_0x36d106,_0x2baf7e,_0x2c596c,_0x1f3549)=>fn(_0x36d106,_0x2baf7e,_0x2c596c,_0x1f3549)?[_0x36d106,_0x2baf7e]:fn(_0x2baf7e,_0x36d106,_0x1f3549,_0x2c596c)?[_0x2baf7e,_0x36d106]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf793c),this['_defaultCallbacks']['set']('insertion:discard',_0x1ff377),this['_defaultCallbacks']['set']('insertion:join',_0xb666ad),this['_defaultCallbacks']['set']('insertion:chain',_0x3a4b96),this['_defaultCallbacks']['set']('deletion:accept',_0x1ff377),this['_defaultCallbacks']['set']('deletion:discard',_0xf793c),this['_defaultCallbacks']['set']('deletion:join',_0xb666ad),this['_defaultCallbacks']['set']('deletion:chain',_0x3a4b96),this['_defaultCallbacks']['set']('formatInline:accept',_0x506965),this['_defaultCallbacks']['set']('formatInline:discard',_0xf793c),this['_defaultCallbacks']['set']('formatInline:join',_0xb666ad),this['_defaultCallbacks']['set']('formatInline:chain',_0xf793c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x506965),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf793c),this['_defaultCallbacks']['set']('formatBlock:join',_0xb666ad),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf793c),this['_defaultCallbacks']['set']('attribute:accept',_0xf793c),this['_defaultCallbacks']['set']('attribute:discard',(_0x4e0ad0,_0x2954f6)=>{if(!_0x2954f6)return;const _0x2c273d=this['_editor']['plugins']['get'](_0x4fbf2b);this['_model']['change'](_0x46b1ee=>{if('$elementName'==_0x2954f6['key'])for(const _0x23997f of _0x4e0ad0){const _0x3852af=_0x23997f['start']['nodeAfter'],_0x2b7d5b=_0x2954f6['oldValue'];_0x46b1ee['rename'](_0x3852af,_0x2b7d5b);}else{if(_0x2c273d['isBlockAttribute'](_0x2954f6['key'])){for(const _0x21d815 of _0x4e0ad0)void 0x0!==_0x2954f6['oldValue']?_0x46b1ee['setAttribute'](_0x2954f6['key'],_0x2954f6['oldValue'],_0x21d815['start']['nodeAfter']):_0x46b1ee['removeAttribute'](_0x2954f6['key'],_0x21d815['start']['nodeAfter']);}else{for(const _0x4911b3 of _0x4e0ad0)_0x2954f6['oldValue']?_0x46b1ee['setAttribute'](_0x2954f6['key'],_0x2954f6['oldValue'],_0x4911b3):_0x46b1ee['removeAttribute'](_0x2954f6['key'],_0x4911b3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb666ad);}};function rn(_0xa8e262,_0xd429db,_0x21c2a5){for(const _0x2c180f of _0xd429db['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c180f['root']==_0x2c180f)return!0x1;if(!_0x21c2a5['containsItem'](_0x2c180f))return!0x1;if(_0xa8e262['isObject'](_0x2c180f)||_0xa8e262['isLimit'](_0x2c180f))return!0x0;}return!0x1;}function on(_0x42fa79){return _0x42fa79['end']['parent']==_0x42fa79['start']['nodeAfter']&&_0x42fa79['end']['isAtStart'];}function an(_0x53e6c2,_0x4128fc,_0x48f889,_0x3906cd){const _0x347781=_0x1d8d61=>!_0x1d8d61['item']['is']('$textProxy')&&!_0x3906cd['isObject'](_0x1d8d61['item']),_0x86a171=_0x53e6c2['start']['getLastMatchingPosition'](_0x347781),_0x718641=_0x53e6c2['end']['getLastMatchingPosition'](_0x347781,{'direction':'backward'});return(!_0x53e6c2['start']['isEqual'](_0x86a171)||!_0x53e6c2['end']['isEqual'](_0x718641))&&(_0x86a171['isBefore'](_0x718641)?_0x48f889['updateMarker'](_0x4128fc,{'range':_0x48f889['createRange'](_0x86a171,_0x718641)}):_0x48f889['removeMarker'](_0x4128fc),!0x0);}function cn(_0x42c760){return _0x45c83d(_0x42c760);}function ln(_0x356491){const _0x19c1e3=_0x356491['start']['nodeAfter'];return _0x19c1e3&&_0x19c1e3['is']('element');}function un(_0x4d016c){return on(_0x4d016c)||function(_0x29edb4){return _0x29edb4['start']['parent']==_0x29edb4['end']['nodeBefore']&&_0x29edb4['start']['isAtEnd'];}(_0x4d016c);}function dn(_0x4af77e,_0x5affdd){try{const _0x364c81=_0x4af77e['getRange']();for(const _0x30d7f3 of _0x5affdd)if(_0x4af77e!==_0x30d7f3&&_0x364c81&&_0x364c81['isIntersecting'](_0x30d7f3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x2c9465,_0x2fa682){return null==_0x2c9465['end']['nodeBefore']&&_0x2c9465['end']['parent']==_0x2c9465['start']['nodeAfter']?gn(_0x2c9465['start']['nodeAfter'],_0x2fa682):_0x2c9465;}function gn(_0x59df23,_0x37bd9f){const _0x519dd2=_0x37bd9f['schema']['isObject'](_0x59df23)||_0x37bd9f['schema']['isSelectable'](_0x59df23);return _0x37bd9f['createRange'](_0x37bd9f['createPositionAt'](_0x59df23,'before'),_0x519dd2?_0x37bd9f['createPositionAfter'](_0x59df23):_0x37bd9f['createPositionAt'](_0x59df23,'end'));}function fn(_0xcdfa96,_0x4cf1a9,_0x252fb0,_0x5caaae){return!!mn(_0xcdfa96,_0x4cf1a9)&&_0x252fb0['end']['isEqual'](_0x5caaae['start']);}function mn(_0x2e99d2,_0x10ae84){if(!_0x2e99d2['_isDataLoaded']||!_0x10ae84['_isDataLoaded'])return!0x1;const _0xd94705=new Set(Object['keys'](_0x2e99d2['attributes'])),_0x3b9b8a=new Set(Object['keys'](_0x10ae84['attributes']));if(_0xd94705['delete']('groupId'),_0x3b9b8a['delete']('groupId'),0x0==_0xd94705['size']&&0x0==_0x3b9b8a['size'])return!0x0;if(_0xd94705['size']!=_0x3b9b8a['size'])return!0x1;const _0x212ce6={..._0x2e99d2['attributes']},_0x1060b5={..._0x10ae84['attributes']};return delete _0x212ce6['groupId'],delete _0x1060b5['groupId'],JSON['stringify'](_0x212ce6)==JSON['stringify'](_0x1060b5);}function En(_0x4df178,_0x4f1524){const _0x45c751=Tn(_0x4df178['attributes']),_0x310c31=Tn(_0x4f1524);if(!_0x4df178['_isDataLoaded'])return!0x1;if(!ct(_0x45c751['@ai'],_0x310c31['@ai']))return!0x1;for(const _0x1b0e27 of Object['keys'](_0x310c31))if(!ct(_0x45c751[_0x1b0e27],_0x310c31[_0x1b0e27]))return!0x1;return!0x0;}function Tn(_0x1d2bab){const _0x273e79=Object['assign']({},_0x1d2bab);return delete _0x273e79['skipNestingCheck'],delete _0x273e79['tablePasteChainId'],_0x273e79;}function _n(_0x357ae4){return _0x357ae4['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4ab034();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x46c602,_0x7b308a,_0x2cab33,_0x38727b){super(),this['model']=_0x7b308a,this['view']=_0x2cab33,this['commentThreadController']=_0x38727b,this['_editor']=_0x46c602,this['_acceptCommand']=_0x46c602['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x46c602['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x339bda,_0x469afc)=>_0x339bda||_0x469afc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2da439=>_0x2da439&&this['_editor']['model']['canEditAt'](_0x7b308a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b750e=>_0x5b750e&&this['_editor']['model']['canEditAt'](_0x7b308a['getRanges']())),this['_pendingAction']=null,_0x2cab33['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2cab33,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2cab33,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2cab33,'change:isDirty',()=>{_0x2cab33['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 _0x511950=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x511950);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x4d5a7b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e5611,_0x3937bc,_0x5771ed,_0x548039){super(_0x2e5611),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33e495(_0x2e5611,St(_0x2e5611,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3937bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3937bc),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',_0x3937bc,'authoredAt',this,'descriptionParts',(_0x3f71c2,_0x58671c,_0x7f1abf)=>{const _0x592cd2=_0x7f1abf['map'](_0x3f4ba8=>pt(_0x3f4ba8['content']))['join']('.\x20')+'.',_0x55f330=_0x3937bc['aiSource']&&'author'===_0x548039['showAISource']?_0x548039['aiAuthor']['name']:_0x3937bc['author']['name'],_0x2880d2=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3f71c2-0x1,_0x55f330,_0x58671c?_0x548039['formatDateTime'](_0x58671c):'',new DOMParser()['parseFromString'](_0x592cd2,'text/html')['body']['textContent']]);return _0x3937bc['aiSource']&&'pill'===_0x548039['showAISource']?_0x2880d2+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x2880d2;}),this['focusables']=new _0x3bd8b5(),this['focusTracker']=new _0x13a459(),this['keystrokes']=new _0x5afe33(),this['focusCycler']=new _0xa5cd60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xf8be0a=>_0xf8be0a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3937bc,this['_localUser']=_0x5771ed,this['_config']=_0x548039,_0x548039['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2ca599(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x19e4b1}=this['_config'];this['commentsListView']=new _0x19e4b1(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',_0x5c6bba=>_0x5c6bba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f5421,_0x309bdd)=>_0x2f5421||!!_0x309bdd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf7fb88}=this['_config'],_0x4ae706=new _0xf7fb88(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24f094=_0x4ae706['commentInputView'];return _0x4ae706['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x24f094,'value',(_0x280df1,_0x13e5ee,_0x192d81)=>!!_0x192d81||_0x280df1&&!_0x13e5ee),_0x24f094['on']('submit',(_0x54ba21,_0x11b12f)=>{this['fire']('addComment',_0x11b12f),_0x24f094['editor']['setData']('');}),_0x24f094['on']('cancel',()=>this['focus']()),_0x24f094['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ae706;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x2ec694,_0x47f24b,_0xa808d0,_0x59b1ae){super(_0x2ec694,_0x47f24b,_0xa808d0,_0x59b1ae),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x27701f=>_0x27701f&&_0x27701f[0x0]?_0x27701f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe3996f,_0x59fe0d)=>{let _0x10e996='';for(const _0x22b669 of _0xe3996f)_0x10e996+='<p>'+pt(_0x22b669['content'],_0x22b669['color'])+'</p>';return _0x59fe0d?_0x10e996:nt(_0x10e996,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x59b1ae['SuggestionView'](_0x2ec694,_0x47f24b,{'formatDateTime':_0x59b1ae['formatDateTime'],'showAISource':_0x59b1ae['showAISource'],'aiAuthor':_0x59b1ae['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 _0x1d773b=this['bindTemplate'],_0x1840d0=[this['suggestionView']];return this['commentsListView']&&_0x1840d0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1840d0['push'](this['commentThreadInputView']),_0x1840d0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1d773b['if']('isActive','ck-suggestion-wrapper--active'),_0x1d773b['to']('type',_0x26bb2d=>'ck-suggestion-'+_0x26bb2d),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':_0x1d773b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1840d0};}['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));}},bn=class extends _0x4d5a7b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40b941,_0x4d0aec,_0x2c3e97){super(_0x40b941),this['_model']=_0x4d0aec,this['_config']=_0x2c3e97,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4d0aec),this['acceptButton']=this['_createButton'](St(_0x40b941,'Accept\x20suggestion'),_0x5b571b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x40b941,'Discard\x20suggestion'),_0x1e262b,'ck-suggestion--discard','discardSuggestion','sw');const _0x5922fc=!!_0x4d0aec['aiSource']&&'author'===_0x2c3e97['showAISource'],_0xa9ffb2=_0x5922fc?this['_createAIUser'](_0x2c3e97['aiAuthor']):_0x4d0aec['author'],_0x51b701=_0x5922fc&&!_0x2c3e97['aiAuthor']['avatar']?_0x20195a:void 0x0;this['userView']=new _0x51ccdf(_0x40b941,_0xa9ffb2,this['getUserViewNotificationText'](),_0x51b701),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3bd8b5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13a459(),this['keystrokes']=new _0x5afe33(),this['focusCycler']=new _0xa5cd60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x244554=>_0x244554['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x393e41=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x393e41['innerHTML']=this['description'],this['on']('change:description',(_0x29ebfe,_0x408af1,_0x289ac5)=>{_0x393e41['innerHTML']=_0x289ac5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c3527=this['bindTemplate'],_0x227cba=[{'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':_0x2c3527['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c3527['to']('authoredAt',_0x26628a=>this['_config']['formatDateTime'](_0x26628a))}]}]},{'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']&&_0x227cba['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x38c884=new _0x2a82f6(this['locale']);_0x38c884['set']({'icon':_0x529964,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x227cba['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x38c884]});}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':_0x227cba}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x2a6da8){return new _0xe861df({'id':'ck-ai-author','name':_0x2a6da8['name'],'avatar':_0x2a6da8['avatar'],'color':new _0x190dee(0x0)});}['_createButton'](_0x28c7ee,_0x3aa619,_0x2e1aaa,_0x31382f,_0x55bbb1){const _0xd063b4=new _0xc03681(this['locale']);return _0xd063b4['set']({'label':_0x28c7ee,'icon':_0x3aa619,'tooltip':!0x0,'tooltipPosition':_0x55bbb1}),_0xd063b4['extendTemplate']({'attributes':{'class':_0x2e1aaa}}),_0xd063b4['on']('execute',()=>{this['fire'](_0x31382f,this['_model']['id']);}),_0xd063b4;}['_setupKeyboardNavigation'](){const _0x5cb6f1=this['element'];this['keystrokes']['listenTo'](_0x5cb6f1);for(const _0x42f56a of this['focusables'])this['focusTracker']['add'](_0x42f56a['element']),this['keystrokes']['listenTo'](_0x42f56a['element']);this['keystrokes']['set']('enter',(_0x2374a9,_0x3b3e0e)=>{_0x5cb6f1===_0x2374a9['target']&&(this['focusCycler']['focusFirst'](),_0x3b3e0e());}),this['keystrokes']['set']('esc',(_0x4abb83,_0x3ec467)=>{_0x5cb6f1!==_0x4abb83['target']&&(this['focus'](),_0x3ec467());});}},kn=class extends _0x545319{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x308bd2,_0x57e609,_0x38af8e,_0x5a1951];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34261d){super(_0x34261d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x282fa9=this['editor']['config'];_0x282fa9['define']('trackChanges.SuggestionThreadView',An),_0x282fa9['define']('trackChanges.SuggestionView',bn),_0x282fa9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x282fa9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d802c,_0x8cad2d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x10a5c2,_0x3ab1d9]of this['_handleControllerBuffer']){const _0x4bd547=this['_suggestionToController']['has'](_0x10a5c2);_0x4bd547||_0x3ab1d9?_0x4bd547&&_0x3ab1d9&&this['_destroyController'](_0x10a5c2):this['_initializeController'](_0x10a5c2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5a1951)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d802c,_0x8cad2d);}['init'](){const _0x6210d3=this['editor'],_0x3cde7e=_0x6210d3['plugins']['get'](nn),_0x5f553a=_0x6210d3['plugins']['get'](_0x38af8e),_0x403d17=_0x6210d3['plugins']['get'](_0x5a1951),_0x491ee2=_0x6210d3['plugins']['get'](_0x57e609);this['_addUIComponentsToFactory'](),_0x403d17['addSourceCollector'](()=>{const _0x2ff65a=[];for(const [_0x3a3c8f,_0x158da3]of Array['from'](this['_suggestionToController'])){const _0x3bfa42=_0x3a3c8f['getAllAdjacentSuggestions'](),_0x504a19=[];for(const _0x7942f3 of _0x3bfa42){if(!_0x7942f3['isInContent'])continue;if(_0x7942f3['isMultiRange']){_0x504a19['push'](..._0x7942f3['getRanges']());continue;}const _0x5b2630=_0x7942f3['getFirstRange']();if(_0x504a19['length']>0x0){const _0x21221f=_0x504a19[0x0]['getJoined'](_0x5b2630);if(_0x21221f){_0x504a19[0x0]=_0x21221f;continue;}}_0x504a19['push'](_0x5b2630);}_0x2ff65a['push']([_0x158da3['view'],_0x504a19]);}return _0x2ff65a;}),this['listenTo'](_0x3cde7e,'suggestionLoaded',(_0x2756ff,_0x5642e7)=>{this['listenTo'](_0x5642e7,'change:previous',(_0x2e3019,_0xec21f6,_0x5158ee,_0x56cfde)=>{_0x5642e7['isInContent']&&(null==_0x5158ee?(this['_updateController'](_0x56cfde['head']),this['_handleSuggestionControllerDelayed'](_0x5642e7,!0x1)):(this['_updateController'](_0x5158ee['head']),null==_0x56cfde&&this['_handleSuggestionControllerDelayed'](_0x5642e7,!0x0)));}),null!==_0x5642e7['previous']?this['_updateController'](_0x5642e7['head']):this['_handleSuggestionControllerDelayed'](_0x5642e7,!0x1);}),this['listenTo'](_0x3cde7e,'suggestionUnloaded',(_0x19505b,_0x3cd5f7,_0x2bbf52)=>{this['stopListening'](_0x3cd5f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3cd5f7),this['_suggestionToController']['has'](_0x3cd5f7)&&this['_destroyController'](_0x3cd5f7),_0x2bbf52&&this['_updateController'](_0x2bbf52['head']);}),this['listenTo'](_0x3cde7e,'suggestionChanged',(_0x448c40,_0x5f3bb1)=>{this['_updateController'](_0x5f3bb1);}),this['listenTo'](_0x5f553a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x491ee2,'addComment',(_0x432faa,{threadId:_0x20379c,isFromAdapter:_0x3af608})=>{if(_0x3af608||!_0x3cde7e['hasSuggestion'](_0x20379c))return;const _0x523d55=_0x3cde7e['getSuggestion'](_0x20379c);this['_suggestionToController']['get'](_0x523d55)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x280f26=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47c98f;for(const _0x4f6532 in _0x280f26){const _0x12c7fa=_0x4f6532,_0x4fd484=_0x280f26[_0x12c7fa];if('trackChangesLicenseKeyValid'==_0x4fd484||'trackChangesLicenseKeyInvalid'==_0x4fd484||'trackChangesLicenseKeyExpired'==_0x4fd484||'trackChangesLicenseKeyDomainLimit'==_0x4fd484||'trackChangesLicenseKeyNotAllowed'==_0x4fd484||'trackChangesLicenseKeyEvaluationLimit'==_0x4fd484||'trackChangesLicenseKeyUsageLimit'==_0x4fd484){delete _0x280f26[_0x12c7fa],_0x47c98f=_0x4fd484,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47c98f&&_0x280f26['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47c98f&&_0x280f26['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47c98f&&_0x280f26['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47c98f&&_0x280f26['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47c98f&&_0x280f26['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47c98f&&_0x280f26['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3a9d8f){const _0x5a2e93=this['_suggestionToController']['get'](_0x3a9d8f);return _0x5a2e93&&this['editor']['plugins']['get'](_0x38af8e)['getByInnerView'](_0x5a2e93['view'])||null;}['getSuggestionForAnnotation'](_0x2f8244){const _0x24ea06=this['_viewToController']['get'](_0x2f8244['innerView']);return _0x24ea06?_0x24ea06['model']:null;}['_refreshActiveMarkers'](){const _0x144b1e=this['editor']['plugins']['get'](_0x38af8e),_0x43f76d=this['editor']['plugins']['get'](nn),_0x4fa257=Array['from'](_0x144b1e['activeAnnotations'],_0x306ace=>_0x306ace['innerView'])['filter'](_0x4e73c4=>this['_viewToController']['has'](_0x4e73c4)),_0x4bd988=[];for(const _0x2c3222 of _0x4fa257){const _0x876e32=this['_viewToController']['get'](_0x2c3222)['model']['getAllAdjacentSuggestions']();_0x4bd988['push'](..._0x876e32['reduce']((_0x4e4445,_0x387b40)=>[..._0x4e4445,..._0x387b40['getMarkerNames']()],[]));}_0x43f76d['activeMarkers']=_0x4bd988;}['_addUIComponentsToFactory'](){const _0x2a65=this['editor'],_0x479134=_0x2a65['locale'],_0x1533a3=St(_0x479134,'Track\x20changes'),_0x553587=new _0x5a0ddc([{'type':'switchbutton','model':new _0x2360bd({'withText':!0x0,'isToggleable':!0x0,'label':_0x1533a3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2360bd({'withText':!0x0,'label':St(_0x479134,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2360bd({'withText':!0x0,'label':St(_0x479134,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2360bd({'withText':!0x0,'label':St(_0x479134,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2360bd({'withText':!0x0,'label':St(_0x479134,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2a65['plugins']['has']('TrackChangesPreview')&&_0x553587['addMany']([{'type':'separator'},{'type':'button','model':new _0x2360bd({'withText':!0x0,'label':St(_0x479134,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xd4b2ff of _0x553587)if(Cn(_0xd4b2ff)){const _0x20e12c=_0x2a65['commands']['get'](_0xd4b2ff['model']['commandName']);_0xd4b2ff['model']['bind']('isOn','isEnabled')['to'](_0x20e12c,'value','isEnabled');}_0x2a65['ui']['componentFactory']['add']('trackChanges',_0xe581e3=>this['_createToolbarButton'](_0xe581e3,_0x553587,_0x1533a3)),_0x2a65['ui']['componentFactory']['add']('menuBar:trackChanges',_0x46f35d=>this['_createMenuBarMenu'](_0x46f35d,_0x553587,_0x1533a3));}['_createToolbarButton'](_0x48ac96,_0x401c1b,_0x2bbaa4){const _0x50da85=_0x4b6d76(_0x48ac96,_0x2cfed8),_0x40cc3a=this['editor']['commands']['get']('trackChanges');_0x50da85['buttonView']['set']({'tooltip':_0x2bbaa4,'label':_0x2bbaa4,'icon':_0x566df5}),_0x50da85['buttonView']['bind']('isOn')['to'](_0x40cc3a,'value'),_0x50da85['buttonView']['on']('execute',()=>{_0x40cc3a['execute'](),this['editor']['editing']['view']['focus']();}),_0x26db00(_0x50da85,_0x401c1b,{'role':'menu'});const _0x56f51a=[];for(const _0x1b33b4 of _0x401c1b)Cn(_0x1b33b4)&&_0x56f51a['push'](this['editor']['commands']['get'](_0x1b33b4['model']['commandName']));const _0x46fbf4=_0x50da85['buttonView'];return _0x46fbf4['actionView']['unbind']('isEnabled'),_0x46fbf4['arrowView']['unbind']('isEnabled'),_0x46fbf4['actionView']['bind']('isEnabled')['to'](_0x40cc3a,'isEnabled'),_0x46fbf4['arrowView']['bind']('isEnabled')['toMany'](_0x56f51a,'isEnabled',(..._0x29c57c)=>_0x29c57c['some'](_0x5c710d=>_0x5c710d)),_0x50da85['on']('execute',_0x2db150=>{this['editor']['execute'](_0x2db150['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50da85;}['_createMenuBarMenu'](_0xec069b,_0x3f1539,_0x367002){const _0x269381=new _0x561bb8(_0xec069b),_0x584871=this['editor']['commands']['get']('trackChanges');_0x269381['buttonView']['set']({'label':_0x367002,'icon':_0x566df5});const _0x1eb6ce=new _0x29adbf(_0xec069b);for(const _0x3517b0 of _0x3f1539){if('separator'==_0x3517b0['type']){_0x1eb6ce['items']['add'](new _0x53515d(_0xec069b));continue;}const _0x14c5ba=new _0x3083a5(_0xec069b,_0x269381),_0x42718b=new _0x3253fc(_0xec069b),_0x7f2364=_0x3517b0['model'];_0x42718b['bind'](...Object['keys'](_0x7f2364))['to'](_0x7f2364),_0x42718b['delegate']('execute')['to'](_0x269381),_0x42718b['on']('execute',()=>{this['editor']['execute'](_0x7f2364['commandName']),this['editor']['editing']['view']['focus']();}),_0x14c5ba['children']['add'](_0x42718b),_0x1eb6ce['items']['add'](_0x14c5ba);}return _0x269381['bind']('isEnabled')['to'](_0x584871,'isEnabled'),_0x269381['panelView']['children']['add'](_0x1eb6ce),_0x269381;}['_initializeController'](_0x20d579){const _0x4b0aef=this['editor'],_0xad3ab3=_0x4b0aef['config'],_0x4b2144=_0x4b0aef['plugins']['get'](_0x38af8e),_0x31b39b=_0x4b0aef['plugins']['get'](_0x57e609),_0x28cf7c=_0x4b0aef['plugins']['get'](_0x5a1951),_0x32eba7=_0x4b0aef['plugins']['get'](_0x308bd2)['me'],_0x1e74fa=_0xad3ab3['get']('trackChanges')['SuggestionThreadView'],_0x14dd09=_0xad3ab3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x401f23,CommentThreadInputView:_0x9dda90}=_0x4b0aef['plugins']['get']('CommentsUI');let _0x823580,_0x1952a3,_0x806d59;this['_annotationViews']['has'](_0x20d579['id'])?(_0x1952a3=this['_annotationViews']['get'](_0x20d579['id']),_0x823580=_0x1952a3['mainView']):(_0x823580=new _0x1e74fa(_0x4b0aef['locale'],_0x20d579,_0x32eba7,{'disableComments':this['_disableComments'],'editorConfig':{..._0xad3ab3['get']('comments.editorConfig'),'licenseKey':_0xad3ab3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xad3ab3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xad3ab3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xad3ab3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x28dc46(_0xad3ab3['get']('locale'),_0x4b0aef['locale']),'CommentView':_0xad3ab3['get']('comments')['CommentView'],'CommentsListView':_0x401f23,'CommentThreadInputView':_0x9dda90,'SuggestionView':_0x14dd09,'showAISource':_0xad3ab3['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xad3ab3['get']('trackChanges.aiAuthor'),'name':_0xad3ab3['get']('trackChanges.aiAuthor')?.['name']||St(_0x4b0aef['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x823580['suggestionView']['acceptButton']['on']('execute',()=>{_0x4b0aef['editing']['view']['focus']();}),_0x823580['suggestionView']['discardButton']['on']('execute',()=>{_0x4b0aef['editing']['view']['focus']();}),_0x1952a3=_0x4b2144['createAnnotationView'](this['editor']['locale'],_0x823580),_0x1952a3['bind']('isDirty')['to'](_0x823580,'isDirty'),_0x1952a3['bind']('length')['to'](_0x823580),_0x1952a3['bind']('type')['to'](_0x823580,'type',_0x5eb2e5=>'suggestion-'+_0x5eb2e5),_0x823580['on']('escape',()=>{_0x806d59['fire']('escape');}),this['_annotationViews']['set'](_0x20d579['id'],_0x1952a3));const _0xe1fa6d=_0x31b39b['createCommentThreadController'](_0x20d579['commentThread'],_0x823580),_0x395fcd=new Ln(_0x4b0aef,_0x20d579,_0x823580,_0xe1fa6d),_0x2650a0=_0x20d579['getAllAdjacentSuggestions']()['filter'](_0x3ef706=>_0x3ef706['isInContent']);_0x823580['descriptionParts']=_0x4b0aef['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x2650a0),this['_suggestionToController']['set'](_0x20d579,_0x395fcd),this['_viewToController']['set'](_0x823580,_0x395fcd);const _0x345109=()=>{const _0x44c7e3=[],_0x2f6525=_0x20d579['getAllAdjacentSuggestions']()['filter'](_0x5e7358=>_0x5e7358['isInContent']);for(const _0x3cd9d5 of _0x2f6525)_0x44c7e3['push'](..._0x3cd9d5['getMarkers']());return _0x2796fc(_0x4b0aef['editing'],_0x44c7e3);};_0x806d59=_0x4b2144['createAnnotation']({'view':_0x1952a3,'target':_0x345109,'type':()=>'suggestion-'+_0x395fcd['view']['type'],'isVisible':!!_0x345109()}),_0x31b39b['_bindAnnotationToEditors'](_0x823580,_0x806d59),_0x4b2144['add'](_0x806d59),_0x28cf7c['registerAnnotation'](_0x806d59);}['_destroyController'](_0x2aaf75){const _0x5ca765=this['editor']['plugins']['get'](_0x57e609),_0x101a87=this['editor']['plugins']['get'](_0x38af8e),_0x34dffe=this['_suggestionToController']['get'](_0x2aaf75),_0x5bcd7f=_0x34dffe['view'],_0x5af8ee=_0x101a87['getByInnerView'](_0x5bcd7f);_0x5ca765['_unbindEditors'](_0x5bcd7f),_0x5af8ee&&_0x101a87['remove'](_0x5af8ee),this['_suggestionToController']['delete'](_0x2aaf75),this['_viewToController']['delete'](_0x5bcd7f),_0x34dffe['destroy']();}['_updateController'](_0x44c805){if(!_0x44c805['isInContent']||!this['_suggestionToController']['has'](_0x44c805))return;const _0x34fdc9=this['editor']['plugins']['get'](nn),_0x393ff8=this['_suggestionToController']['get'](_0x44c805),_0x147013=_0x44c805['getAllAdjacentSuggestions']();_0x393ff8['view']['descriptionParts']=_0x34fdc9['descriptionFactory']['getDescriptions'](_0x147013);}['destroy'](){for(const _0x12ba72 of this['_suggestionToController']['keys']())this['_destroyController'](_0x12ba72);for(const _0xe2bc3d of this['_annotationViews']['values']())_0xe2bc3d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x482f13){return'model'in _0x482f13;}var Rn=class extends _0x545319{static get['requires'](){return[nn,kn,_0x1873b8];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x592a12){this['editor']['plugins']['get'](nn)['adapter']=_0x592a12;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x4b64ca){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x4b64ca);}['getSuggestions']({skipNotAttached:_0x277060=!0x1,toJSON:_0x90b0c8=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x277060,'toJSON':_0x90b0c8});}['getSuggestion'](_0x50bee7){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x50bee7);}};const Nn=['Pagination'];var yn=class extends _0x545319{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5bb516=this['editor'];if(_0x5bb516['config']['define']('trackChangesData.editorCreator',_0x2959c7=>{const _0x459b44=_0x5bb516['model']['document']['getRootNames']()['reduce']((_0x2fa47a,_0x260bc4)=>(_0x2fa47a[_0x260bc4]='',_0x2fa47a),{});return _0x5bb516['constructor']['create'](_0x459b44,_0x2959c7);}),'function'!=typeof _0x5bb516['config']['get']('trackChangesData')['editorCreator'])throw new _0x1e6e4c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cd265){return On(this['editor'],!0x0,_0x4cd265);}['getDataWithDiscardedSuggestions'](_0xd46a2d){return On(this['editor'],!0x1,_0xd46a2d);}},Sn=class extends _0x545319{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x223834){super(_0x223834),this['result']='end',_0x223834['editing']['view']['_overlayModeHint']='auto',_0x223834['_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 Mn(_0x4f1e92){return void 0x0!==_0x4f1e92['getRootsAttributes'];}async function On(_0x532690,_0x15b4a1,_0x185a23){const _0xeee8de=_0x371361(_0x532690,Nn);if(_0xeee8de['plugins']['push'](nn,Sn),Mn(_0x532690)){_0xeee8de['roots']=Object['create'](null);for(const _0x4c0abc of _0x532690['model']['document']['getRootNames']())_0xeee8de['roots'][_0x4c0abc]={'modelAttributes':_0x532690['getRootAttributes'](_0x4c0abc)};}const _0x2b449c=document['createDocumentFragment'](),_0x36b338=_0x532690['config']['get']('trackChangesData')['editorCreator'],_0x4407e0=await _0x36b338(_0xeee8de,()=>function(_0x102955){const _0x414f34=document['createElement']('div');return _0x102955['appendChild'](_0x414f34),_0x414f34;}(_0x2b449c));!function(_0x2a6775,_0x2ea5ec){const _0x61ee6e=_0x2a6775['model']['document']['getRootNames']()['reduce']((_0x37f46e,_0x36c360)=>(_0x37f46e[_0x36c360]=_0x2a6775['data']['get']({'rootName':_0x36c360}),_0x37f46e),{}),_0x42931f=_0x2a6775['plugins']['get']('Users')['users']['map'](_0x53b1ec=>({'id':_0x53b1ec['id'],'name':_0x53b1ec['name']})),_0x18fd0f=_0x2a6775['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4dbb98=_0x2a6775['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28ba59=_0x2ea5ec['plugins']['get']('Users'),_0x29bbf9=_0x2ea5ec['plugins']['get']('TrackChangesEditing'),_0x1df6b9=_0x2ea5ec['plugins']['get']('CommentsRepository');for(const _0x3d8fcf of _0x1df6b9['getCommentThreads']())_0x3d8fcf['remove']();for(const _0x5c4ec6 of _0x42931f)_0x28ba59['getUser'](_0x5c4ec6['id'])||_0x28ba59['addUser'](_0x5c4ec6);_0x28ba59['me']||_0x28ba59['useAnonymousUser']();for(const _0x166d52 of _0x4dbb98)_0x1df6b9['addCommentThread'](_0x166d52);for(const _0x354026 of _0x18fd0f)_0x29bbf9['addSuggestionData'](_0x354026);_0x2ea5ec['data']['set'](_0x61ee6e);}(_0x532690,_0x4407e0),_0x4407e0['execute'](_0x15b4a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x51e74b=Mn(_0x4407e0)?_0x4407e0['getFullData'](_0x185a23):_0x4407e0['data']['get'](_0x185a23);return await _0x4407e0['destroy'](),_0x51e74b;}var wn=class extends _0x4d5a7b{['options'];constructor(_0x88f2c5,_0x547eea){super(_0x88f2c5),this['options']=_0x547eea,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'](_0x565d25,_0x2a322c){if(!this['element'])return;const _0x9933bd=[];for(const [_0x39460a,_0x232fe4]of _0x565d25){const _0x48bb5a=document['createElement']('div');_0x48bb5a['setAttribute']('data-ck-root-name',_0x39460a),_0x48bb5a['className']=_0x232fe4['classes']+'\x20ck-track-changes-preview__root-container',_0x48bb5a['innerHTML']=_0x232fe4['content'],_0x9933bd['push'](_0x48bb5a);}_0x2a322c(this['element'],_0x9933bd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x32d1f9{constructor(_0x4c62ab){super(_0x4c62ab),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x25a3ce=this['editor'],_0x38a6b9=_0x25a3ce['locale'],_0x3e93f0=_0x25a3ce['plugins']['get']('Dialog');let _0x43644d;const _0x34cd18=function(_0x30cf81){const _0x2714c8={};if('editables'in _0x30cf81['ui']['view']){for(const [_0x139216,_0x2022c7]of Object['entries'](_0x30cf81['ui']['view']['editables']))_0x2714c8[_0x139216]=_0x2022c7['element'];}else _0x2714c8[_0x30cf81['model']['document']['getRootNames']()[0x0]]=_0x30cf81['ui']['view']['editable']['element'];return _0x2714c8;}(_0x25a3ce),_0x279812=function(_0x96b694){let _0x698765=0x0;for(const _0x58c669 of Object['values'](_0x96b694))_0x698765=Math['max'](_0x698765,_0x58c669['getBoundingClientRect']()['width']);let _0x1a5129=0x0;for(const _0x5c525a of Object['values'](_0x96b694))_0x1a5129+=_0x5c525a['getBoundingClientRect']()['height'];const _0x2a6bce=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x698765,'height':Math['min'](_0x1a5129,_0x2a6bce)};}(_0x34cd18);_0x3e93f0['show']({'id':'finalContentPreview','title':St(_0x38a6b9,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x38a6b9,{'dialogRects':_0x279812}),'onHide':()=>{_0x43644d['detachFromDom']();},'onShow':()=>{_0x25a3ce['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a3a37=>{const _0x225777=this['_standarizeRootsData'](_0x2a3a37,_0x25a3ce,_0x34cd18);_0x3e93f0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x225777,_0x25a3ce['config']['get']('trackChanges.preview.renderFunction'));}),_0x43644d=new _0xd3961e(_0x38a6b9,[_0x3e93f0['view']]),_0x43644d['attachToDom'](),_0x43644d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x25a3ce['once']('destroy',()=>{_0x43644d['detachFromDom']();});const _0x363f6f=_0x3e93f0['view']['headerView']['class'];_0x3e93f0['view']['headerView']['class']=_0x363f6f?_0x363f6f+'\x20ck-reset_all':'ck-reset_all',_0x3e93f0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3e93f0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4becde=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5131d9=_0x4becde['previewMode'],_0x3554ca={};if('$labels'===_0x5131d9){for(const _0x15d923 of _0x4becde['getMergeFieldsIds']())_0x3554ca[_0x15d923]=_0x4becde['getLabel'](_0x15d923)||_0x15d923;}else{const _0x5996f4='$defaultValues'===_0x5131d9?_0x4becde['getDefaultValues']():_0x4becde['getDataSetValues'](_0x5131d9,!0x0);for(const _0x7c1f79 of Object['entries'](_0x5996f4)){const [_0x22e688,_0x5d36ff]=_0x7c1f79;_0x3554ca[_0x22e688]=null!==_0x5d36ff?_0x5d36ff:_0x4becde['getLabel'](_0x22e688)||_0x22e688;}}return{'mergeFieldsData':_0x3554ca};}['_standarizeRootsData'](_0xe485ed,_0x3ea821,_0x418cc1){let _0xb7e068;_0xb7e068='string'==typeof _0xe485ed?{[_0x3ea821['model']['document']['getRootNames']()[0x0]]:_0xe485ed}:_0xe485ed;const _0x6677c4=this['_fixMediaEmbeds'](_0xb7e068,_0x3ea821);return function(_0x3b8676,_0xe183fb){for(const [_0x21fbdf,_0x328808]of _0x3b8676)_0x328808['classes']=_0xe183fb[_0x21fbdf]['classList']['value']['replace']('ck-focused','');return _0x3b8676;}(this['_sortRoots'](_0x3ea821)['reduce']((_0x45d494,_0x1e602e)=>(_0x45d494['push']([_0x1e602e,{'content':_0x6677c4[_0x1e602e],'classes':''}]),_0x45d494),[]),_0x418cc1);}['_fixMediaEmbeds'](_0x47bef2,_0x1b9612){if(!_0x1b9612['plugins']['has']('MediaEmbedEditing'))return _0x47bef2;const _0x5efcaf=_0x1b9612['plugins']['get']('MediaEmbedEditing');for(const [_0x1e8bba,_0x1e7258]of Object['entries'](_0x47bef2)){const _0x26c988=document['createElement']('div');_0x26c988['innerHTML']=_0x1e7258,_0x26c988['querySelectorAll']('figure.media')['forEach'](_0x456d61=>{const _0x5dd7cb=_0x456d61['querySelector']('oembed');if(_0x5dd7cb){const _0x5eca8a=_0x5dd7cb['getAttribute']('url');if(_0x5eca8a){const _0xc72570=_0x5efcaf['registry']['getMediaViewElement'](new ot(_0x1b9612['editing']['view']['document']),_0x5eca8a,{'elementName':'','renderForEditingView':!0x0}),_0x108bce=document['createElement']('div');_0x108bce['classList']['add']('ck-media__wrapper'),_0xc72570['render'](_0x108bce,_0x1b9612['editing']['view']['domConverter']),_0x5dd7cb['replaceWith'](_0x108bce);}}}),_0x47bef2[_0x1e8bba]=_0x26c988['innerHTML'];}return _0x47bef2;}['_sortRoots'](_0x40cce3){if(!function(_0x237ec9){return void 0x0!==_0x237ec9['getRootsAttributes'];}(_0x40cce3))return _0x40cce3['model']['document']['getRootNames']();const _0x3d0a0c=[],_0xead8ef=new Map();for(const _0x175e6d of _0x40cce3['model']['document']['getRootNames']()){const _0x569fab=_0x40cce3['editing']['view']['getDomRoot'](_0x175e6d)['getClientRects']()['item'](0x0);_0x3d0a0c['push'](_0x175e6d),_0xead8ef['set'](_0x175e6d,_0x569fab);}return _0x3d0a0c['sort']((_0x23cd79,_0x182430)=>{const _0x3de771=_0xead8ef['get'](_0x23cd79),_0x2906a8=_0xead8ef['get'](_0x182430);return _0x3de771['y']-_0x2906a8['y']||_0x3de771['x']-_0x2906a8['x'];}),_0x3d0a0c;}},Bn=class extends _0x545319{static get['requires'](){return[yn,_0x238abc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x502c2f){super(_0x502c2f),_0x502c2f['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x502c2f['config']['define']('trackChanges.preview.renderFunction',(_0x3d9648,_0x330bbd)=>{for(const _0x32bd84 of _0x330bbd)_0x3d9648['appendChild'](_0x32bd84);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|