@ckeditor/ckeditor5-track-changes 48.3.0-alpha.0 → 48.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x56fea7,PendingActions as _0x18a188,Plugin as _0x1a4f44}from'@ckeditor/ckeditor5-core';import{Annotations as _0xd6c75c,Comments as _0x287dc5,CommentsRepository as _0x4522ba,EditorAnnotations as _0x5a64bd}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2ca032,Collection as _0x5b3a50,FocusTracker as _0x446810,KeystrokeHandler as _0x2a1141,ObservableMixin as _0x58d8b4,getEnvKeystrokeText as _0x5b231d,insertToPriorityArray as _0x2a44e5,logWarning as _0x195bce,priorities as _0x535ad9,uid as _0x25321b}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3f7edc,IconCancel as _0x4b29b8,IconCheck as _0x245124,IconSparkle as _0x1c2ddb,IconTrackChanges as _0x1dccf5}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1608a4,Dialog as _0x47b59f,FocusCycler as _0x8d07ec,ListSeparatorView as _0x351e1e,MenuBarMenuListItemButtonView as _0x109bbe,MenuBarMenuListItemView as _0x2010b4,MenuBarMenuListView as _0xf9905d,MenuBarMenuView as _0x4ed3f0,SplitButtonView as _0x85046c,UIModel as _0x351d43,View as _0x48ea13,ViewCollection as _0x7d9825,addListToDropdown as _0x4de4ff,createDropdown as _0x216eb4,normalizeColorOptions as _0x4be3a7}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x3f75ca,CollaborationUserColor as _0x4df9c0,DocumentCompare as _0x3e0605,FOCUS_ANNOTATION_KEYSTROKE as _0x27b811,LateFocusButtonView as _0x3cd450,PillView as _0x22ac6f,SuggestionsConversion as _0x3c4484,User as _0x20d5ba,UserView as _0x3c0295,Users as _0x20c4f0,fixElementSuggestionRange as _0x575b19,getAllMarkersDomElementsSorted as _0x358226,getDateTimeFormatter as _0x48f7cd,hashObject as _0x46f71b,sanitizeEditorConfig as _0x3e4906,setupThreadKeyboardNavigation as _0x2b984e,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 _0x56fea7{['_enabledCommands'];constructor(_0xd06df4,_0xcb8d34){super(_0xd06df4),this['_enabledCommands']=_0xcb8d34,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 _0x46f339 of this['editor']['commands']['commands']())_0x46f339['affectsData']&&!this['_enabledCommands']['has'](_0x46f339)&&_0x46f339['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1fa233 of this['editor']['commands']['commands']())_0x1fa233['affectsData']&&!this['_enabledCommands']['has'](_0x1fa233)&&_0x1fa233['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x56fea7{['_suggestions'];constructor(_0x1aad12,_0x31a264){super(_0x1aad12),this['_suggestions']=_0x31a264,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2675ce){const _0x17038b=this['_suggestions']['get'](_0x2675ce);if(!_0x17038b)throw new _0x2ca032('track-changes-accept-suggestion-not-found',this);const _0x3903c7=_0x17038b['getRanges']();this['editor']['model']['canEditAt'](_0x3903c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17038b);}},_t=class extends _0x56fea7{['_suggestions'];constructor(_0x53cef1,_0x2a0bc2){super(_0x53cef1),this['_suggestions']=_0x2a0bc2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x203b9c){const _0x2525fd=this['_suggestions']['get'](_0x203b9c);if(!_0x2525fd)throw new _0x2ca032('track-changes-discard-suggestion-not-found',this);const _0xdef5d7=_0x2525fd['getRanges']();this['editor']['model']['canEditAt'](_0xdef5d7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2525fd);}};function pt(_0x283497,_0x4e5ead){let _0x4853cc='';return _0x4853cc+=_0x283497['split']('*')['map']((_0xbfbad,_0x4c746c)=>_0x4c746c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0xbfbad)+'</span>':Lt(_0xbfbad))['join'](''),_0x4e5ead&&(_0x4853cc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4e5ead['value']+'\x22\x20title=\x22'+_0x4e5ead['title']+'\x22></span>'),_0x4853cc;}function Lt(_0x4593fa){const _0x58077b=document['createElement']('span');return _0x58077b['innerText']=_0x4593fa,_0x58077b['innerHTML'];}function It(_0x38a17e){return _0x38a17e['sort']((_0x413c90,_0x3262c7)=>'attribute'===_0x413c90['type']&&'attribute'!==_0x3262c7['type']?-0x1:'attribute'!==_0x413c90['type']&&'attribute'===_0x3262c7['type']?0x1:'deletion'==_0x413c90['type']&&'deletion'!=_0x3262c7['type']?-0x1:'deletion'!=_0x413c90['type']&&'deletion'==_0x3262c7['type']?0x1:0x0);}function At(_0x2a5649,_0x2632e7){let _0x26efc4,_0x2e268a=0x0;const _0x551b9c=[],_0x26fc29=_0x2632e7['schema'];for(;_0x2e268a<_0x2a5649['length'];){const _0xaf19c=_0x2a5649[_0x2e268a],_0x1cc0e0=_0x2a5649[_0x2e268a+0x1];_0x26efc4||(_0x26efc4=_0x2632e7['createPositionBefore'](_0xaf19c)),bt(_0x2632e7,_0xaf19c,_0x1cc0e0)||(_0x551b9c['push'](_0x2632e7['createRange'](_0x26efc4,_0x26fc29['isObject'](_0xaf19c)?_0x2632e7['createPositionAfter'](_0xaf19c):_0x2632e7['createPositionAt'](_0xaf19c,'end'))),_0x26efc4=null),_0x2e268a++;}return _0x551b9c;}function bt(_0x33c3e1,_0x36f8cf,_0x5928d6){if(!_0x5928d6)return!0x1;const _0x463531=_0x33c3e1['createPositionAfter'](_0x36f8cf),_0x35d9df=_0x33c3e1['createPositionBefore'](_0x5928d6);return _0x463531['isTouching'](_0x35d9df);}function kt(_0x8155f,_0x4e0c20,_0x38fc3e){for(;_0x38fc3e['length'];){const _0x1ab7c7=_0x38fc3e['splice'](0x0,0x64);_0x8155f['change'](()=>{for(const _0x4f0caa of _0x1ab7c7)_0x4f0caa['isInContent']&&_0x4e0c20['execute'](_0x4f0caa['id']);});}}var Ct=class extends _0x56fea7{['_command'];['_suggestions'];constructor(_0x8a248b,_0xb107cd,_0x4c9e52){super(_0x8a248b),this['_command']=_0xb107cd,this['_suggestions']=_0x4c9e52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x12c8b1=Array['from'](this['_suggestions']['values']())['some'](_0x34d990=>_0x34d990['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x12c8b1;}['execute'](){const _0x26e242=It(Array['from'](this['_suggestions']['values']()));for(const _0x8f8af0 of _0x26e242){const _0x1eb435=_0x8f8af0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1eb435))return;}kt(this['editor']['model'],this['_command'],_0x26e242);}},Rt=class extends _0x56fea7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5da07a,_0x519d6a,_0x2bb80d){super(_0x5da07a),this['_command']=_0x519d6a,this['_suggestions']=_0x2bb80d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x192332=this['editor']['model']['document']['selection'],_0x933833=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4a3014,_0x31d8a6){const _0x2b66e4=Array['from'](_0x4a3014['getRanges']()),_0x2fcd87=new Set();for(const _0xe7cd94 of _0x31d8a6)if(_0xe7cd94['isInContent']){for(const _0x42ffd6 of _0x2b66e4)for(const _0x4ac3da of _0xe7cd94['getRanges']())(_0x42ffd6['isIntersecting'](_0x4ac3da)||_0x4a3014['isCollapsed']&&!_0xe7cd94['isMultiRange']&&_0xe7cd94['next']&&_0x4ac3da['end']['isTouching'](_0x42ffd6['start']))&&_0x2fcd87['add'](_0xe7cd94);}return _0x2fcd87;}(_0x192332,_0x933833),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x15e5c5=It(Array['from'](this['_selectedSuggestions']));for(const _0x339267 of _0x15e5c5){const _0x5efac2=_0x339267['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5efac2))return;}kt(this['editor']['model'],this['_command'],_0x15e5c5);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x58d8b4();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x57ce7d,_0x27564b){super(),this['id']=_0x27564b['id'],this['type']=_0x27564b['type'],this['subType']=_0x27564b['subType']||null,this['author']=_0x27564b['author'],this['creator']=_0x27564b['creator']||_0x27564b['author'],this['data']=null,this['_originalSuggestionId']=_0x27564b['originalSuggestionId']||null,this['_model']=_0x57ce7d,this['_onAccept']=_0x27564b['onAccept'],this['_onDiscard']=_0x27564b['onDiscard'],this['_onAttributesChange']=_0x27564b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x27564b['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 _0x47b931=this;for(;_0x47b931['previous'];)_0x47b931=_0x47b931['previous'];return _0x47b931;}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'](_0x2a59f8){this['_markerNames']['add'](_0x2a59f8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x19cdeb=>this['_model']['markers']['get'](_0x19cdeb))['filter'](_0x253626=>_0x253626);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x487413=>{for(const _0x3cf2ab of this['getMarkers']())_0x487413['removeMarker'](_0x3cf2ab);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e2618){this['_model']['change'](_0x182f60=>{_0x182f60['removeMarker'](_0x1e2618);}),this['_markerNames']['delete'](_0x1e2618);}['addRange'](_0x562068){const _0x16d2fa='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x16d2fa),this['_model']['change'](_0x11beda=>{_0x11beda['addMarker'](_0x16d2fa,{'range':_0x562068,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4135c1){for(const _0x38ef6b of this['getRanges']())if(_0x38ef6b['isIntersecting'](_0x4135c1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a6b36=>_0x5a6b36['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2b0719,_0x1d75ef)=>[..._0x2b0719,..._0x1d75ef['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x497e9d=this['getRanges']();if(0x1!=_0x497e9d['length'])return null;const _0x4e783f=_0x497e9d[0x0],_0x42e490=_0x4e783f['start']['nodeAfter'],_0x241764=_0x4e783f['end']['nodeBefore'];return _0x42e490 instanceof it?_0x42e490!=_0x241764?null:_0x42e490: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 _0x1f5e8d=[];let _0x597478=this['head'];for(;_0x597478;)_0x1f5e8d['push'](_0x597478),_0x597478=_0x597478['next'];return _0x1f5e8d;}['setAttribute'](_0x59345a,_0x17c216){const _0x2534c8=at(this['attributes']);ut(_0x2534c8,_0x59345a,_0x17c216),ct(_0x2534c8,this['attributes'])||(this['attributes']=_0x2534c8,this['_onAttributesChange'](_0x2534c8));}['removeAttribute'](_0x3e88bb){const _0x1899a8=at(this['attributes']);dt(_0x1899a8,_0x3e88bb),ct(_0x1899a8,this['attributes'])||(this['attributes']=_0x1899a8,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 _0x25321b()['substr'](0x1,0x5);}};function St(_0x55e83b,_0x1277c3,_0x5d6a1f){const _0x53cc1c=_0x55e83b['t'],t=_0x55e83b['t'];switch(_0x1277c3){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',_0x5d6a1f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d6a1f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d6a1f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d6a1f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d6a1f);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',_0x5d6a1f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d6a1f);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',_0x5d6a1f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d6a1f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d6a1f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d6a1f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d6a1f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d6a1f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d6a1f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d6a1f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d6a1f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d6a1f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d6a1f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d6a1f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d6a1f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d6a1f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d6a1f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d6a1f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d6a1f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d6a1f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d6a1f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d6a1f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d6a1f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d6a1f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d6a1f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d6a1f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5d6a1f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5d6a1f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5d6a1f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d6a1f);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'},_0x5d6a1f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d6a1f);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 _0x53cc1c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d6a1f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x53cc1c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d6a1f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);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'},_0x5d6a1f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1277c3;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x53e38f,_0x16db8a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x53e38f,this['_locale']=_0x16db8a;}['getDescriptions'](_0x3205f5){const _0x56d260=[],_0x1481c2=new Set(),_0x1c48b9=new Set();for(let _0x242cac=0x0;_0x242cac<_0x3205f5['length'];_0x242cac++){const _0x31d129=_0x3205f5[_0x242cac];if(!_0x31d129['isInContent'])continue;const _0x2adc71=this['_handleCustomCallbackDescription'](_0x31d129);if(_0x2adc71){if(null!=_0x31d129['subType']){if(_0x1481c2['has'](_0x31d129['subType']))continue;_0x1481c2['add'](_0x31d129['subType']);}_0x56d260['push'](_0x2adc71);}else{if('attribute'==_0x31d129['type']){const _0x30579c=_0x31d129['data']['key'];if(_0x1c48b9['has'](_0x30579c))continue;_0x1c48b9['add'](_0x31d129['data']['key']),'$elementName'==_0x30579c?this['_handleRenameSuggestionDescription'](_0x56d260,_0x31d129):this['_handleAttributeSuggestionDescription'](_0x56d260,_0x31d129);continue;}'insertion'!=_0x31d129['type']&&'deletion'!=_0x31d129['type']||this['_handleInsertRemoveSuggestionDescription'](_0x56d260,_0x31d129,_0x3205f5[_0x242cac+0x1]);}}return this['_resolveDescriptionItems'](_0x56d260);}['registerDescriptionCallback'](_0x2b5b80){this['_customCallbacks']['push'](_0x2b5b80);}['registerElementLabel'](_0x447430,_0x4d9ee2,_0x86f405=_0x535ad9['normal']){'function'==typeof _0x447430?_0x2a44e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x447430,'label':_0x4d9ee2,'priority':_0x86f405}):this['_itemLabels']['set'](_0x447430,_0x4d9ee2);}['registerAttributeLabel'](_0x5636ec,_0x544333){this['_attributeLabels']['set'](_0x5636ec,_0x544333);}['getItemLabel'](_0x462848,_0x432ecb=0x1){let _0x3e5269;for(const _0x1c26f2 of this['_itemLabelsCallbacks'])if(_0x1c26f2['matchingCallback'](_0x462848)){_0x3e5269=_0x1c26f2['label'];break;}return _0x3e5269||(_0x3e5269=this['_itemLabels']['get'](_0x462848['name'])),_0x3e5269?_0x3e5269(_0x432ecb):0x1!==_0x432ecb?_0x432ecb+'\x20'+_0x462848['name']+'s':''+_0x462848['name'];}['_addDescriptionItems'](_0x2d4ee0,_0x882e82){const _0x439b32=_0x882e82['getFirstRange']()['getWalker'](),_0x7cfa1c='insertion'==_0x882e82['type']?'add':'remove';for(const _0x5ab1b9 of _0x439b32){const _0x5d4ef4=_0x5ab1b9['item'],_0x26df88=_0x2d4ee0[_0x2d4ee0['length']-0x1];if(_0x5d4ef4['is']('$textProxy'))_0x26df88&&_0x26df88['type']['indexOf']('Container')>-0x1&&_0x2d4ee0['pop'](),_0x26df88&&'text'==_0x26df88['type']?_0x26df88[_0x7cfa1c]+=_0x5d4ef4['data']:_0x2d4ee0['push']({'type':'text','add':'add'==_0x7cfa1c?_0x5d4ef4['data']:'','remove':'remove'==_0x7cfa1c?_0x5d4ef4['data']:''});else{if(this['_schema']['isObject'](_0x5d4ef4)){const _0x161e1b=_0x5d4ef4;if(_0x26df88&&_0x26df88['type']['indexOf']('Container')>-0x1&&_0x2d4ee0['pop'](),'elementEnd'==_0x5ab1b9['type'])continue;_0x26df88&&_0x26df88['type']==_0x7cfa1c+'Object'&&_0x26df88['element']['name']==_0x161e1b['name']?_0x26df88['quantity']++:_0x2d4ee0['push']({'type':_0x7cfa1c+'Object','element':_0x161e1b,'quantity':0x1}),_0x439b32['skip'](_0x16ff60=>!('elementEnd'==_0x16ff60['type']&&_0x16ff60['item']==_0x5d4ef4));}else{if(this['_schema']['checkChild'](_0x5d4ef4,'$text')||_0x5d4ef4['is']('element','softBreak')){const _0xc98f4=_0x5d4ef4;if('add'==_0x7cfa1c&&'elementStart'==_0x5ab1b9['type']||'remove'==_0x7cfa1c&&'elementEnd'==_0x5ab1b9['type'])continue;if(_0x26df88&&-0x1==_0x26df88['type']['indexOf']('Container')){'text'==_0x26df88['type']&&(_0x26df88[_0x7cfa1c]+='\x0a');continue;}let _0x1c394e;if(_0x1c394e='add'==_0x7cfa1c?_0xc98f4['nextSibling']&&!this['_schema']['isObject'](_0xc98f4['nextSibling'])?_0xc98f4['nextSibling']:null:_0xc98f4['previousSibling']&&!this['_schema']['isObject'](_0xc98f4['previousSibling'])?_0xc98f4['previousSibling']:null,_0xc98f4['isEmpty']||_0x1c394e&&_0x1c394e['isEmpty']){const _0x336466=_0x1c394e&&_0x1c394e['isEmpty']?_0x1c394e:_0xc98f4;_0x26df88&&_0x26df88['type']==_0x7cfa1c+'EmptyContainer'&&_0x26df88['element']['name']==_0x336466['name']?_0x26df88['quantity']++:_0x2d4ee0['push']({'type':_0x7cfa1c+'EmptyContainer','element':_0x336466,'quantity':0x1});}else _0x2d4ee0['push']({'type':_0x7cfa1c+'Container','element':_0xc98f4});}}}}}['_resolveDescriptionItems'](_0x160b8e){const _0x2056b8=this['_locale'],_0x31f601=[],_0x5ad7fd=[],_0x64b9df=[];for(const _0x27e065 of _0x160b8e)switch(_0x27e065['type']){case'text':if(_0x27e065['add']=_0x27e065['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27e065['remove']=_0x27e065['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27e065['add']&&''!=_0x27e065['remove']){_0x31f601['push']({'type':'replace','content':St(_0x2056b8,'REPLACE_TEXT',['\x22'+_0x27e065['remove']+'\x22','\x22'+_0x27e065['add']+'\x22'])});continue;}if(null!=_0x27e065['add']['match'](/^ +$/)){_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0',St(_0x2056b8,'ELEMENT_SPACE',_0x27e065['add']['length']))});continue;}if(null!=_0x27e065['remove']['match'](/^ +$/)){_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0',St(_0x2056b8,'ELEMENT_SPACE',_0x27e065['remove']['length']))});continue;}if(''!=_0x27e065['add']){_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0','\x22'+_0x27e065['add']+'\x22')});continue;}_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0','\x22'+_0x27e065['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Insert:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Remove:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'addContainer':_0x31f601['push']({'type':'insertion','content':St(_0x2056b8,'*Split:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'removeContainer':_0x31f601['push']({'type':'deletion','content':St(_0x2056b8,'*Merge:*\x20%0',this['getItemLabel'](_0x27e065['element'],_0x27e065['quantity']))});continue;case'addFormat':_0x5ad7fd['push'](_0x27e065['key']);continue;case'removeFormat':_0x64b9df['push'](_0x27e065['key']);continue;default:_0x31f601['push'](_0x27e065);}if(_0x5ad7fd['length']){const _0x557a6a=_0x5ad7fd['map'](_0x1a0fa0=>this['_attributeLabels']['has'](_0x1a0fa0)?this['_attributeLabels']['get'](_0x1a0fa0):_0x1a0fa0)['join'](',\x20');_0x31f601['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x557a6a)});}if(_0x64b9df['length']){const _0x53a97b=_0x64b9df['map'](_0x16a4fe=>this['_attributeLabels']['has'](_0x16a4fe)?this['_attributeLabels']['get'](_0x16a4fe):_0x16a4fe)['join'](',\x20');_0x31f601['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x53a97b)});}return _0x31f601;}['_handleCustomCallbackDescription'](_0x1f58d9){for(const _0x34c06b of this['_customCallbacks']){const _0x1e8003=_0x34c06b(_0x1f58d9);if(_0x1e8003&&'type'in _0x1e8003)return _0x1e8003;}}['_handleAttributeSuggestionDescription'](_0x54d806,_0x12ab1f){const _0x15732d=_0x12ab1f['data'],_0x53da33=void 0x0===_0x15732d['newValue']?'removeFormat':'addFormat';_0x54d806['push']({'type':_0x53da33,'key':_0x15732d['key']});}['_handleRenameSuggestionDescription'](_0x47b824,_0x67416){_0x47b824['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x67416['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a188c,_0x4f2f31,_0x202f9d){if(this['_addDescriptionItems'](_0x2a188c,_0x4f2f31),_0x202f9d&&_0x202f9d['getFirstRange']()&&!_0x4f2f31['getFirstRange']()['end']['isEqual'](_0x202f9d['getFirstRange']()['start'])){const _0xad32b1=_0x2a188c[_0x2a188c['length']-0x1],_0xfd6f33='insertion'==_0x4f2f31['type']?'add':'remove';_0xad32b1&&'text'==_0xad32b1['type']&&(_0xad32b1[_0xfd6f33]+='\x0a');}}},Ot=class extends _0x1a4f44{['afterInit'](){const _0x36a745=this['editor'],_0x25ce0d=_0x36a745['plugins']['get']('TrackChangesEditing');_0x36a745['commands']['get']('showAIAssistant')&&_0x25ce0d['enableCommand']('showAIAssistant');}},wt=class extends _0x1a4f44{['afterInit'](){const _0x13764c=this['editor'],_0x57a243=_0x13764c['plugins']['get']('TrackChangesEditing');_0x13764c['commands']['get']('toggleAi')&&_0x57a243['enableCommand']('toggleAi');}},Ft=class extends _0x1a4f44{['afterInit'](){const _0x471baf=this['editor'],_0x198acc=_0x471baf['plugins']['get']('TrackChangesEditing');_0x471baf['commands']['get']('aiQuickAction')&&_0x198acc['enableCommand']('aiQuickAction');}},Bt=class extends _0x1a4f44{['afterInit'](){const _0x2f87f8=this['editor'],_0x3d2248=_0x2f87f8['locale'];if(!_0x2f87f8['plugins']['has']('AlignmentEditing'))return;const _0x72e228=_0x2f87f8['plugins']['get']('TrackChangesEditing');_0x72e228['enableDefaultAttributesIntegration']('alignment'),_0x72e228['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x3d2248,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x560662=this['editor'],_0x3951ac=_0x560662['locale'];_0x560662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b059f=>{if('formatBlock'!=_0x2b059f['type'])return;const {data:_0x3fbeab}=_0x2b059f;if(_0x3fbeab&&'alignment'==_0x3fbeab['commandName']){const _0x3599dc=_0x3fbeab['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x3951ac,'*Format:*\x20%0',function(_0x4ac658){switch(_0x4ac658){case'left':return St(_0x3951ac,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x3951ac,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x3951ac,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x3951ac,'FORMAT_JUSTIFY_TEXT');}}(_0x3599dc))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x1a4f44{['afterInit'](){const _0x5e88ba=this['editor'],_0x18042d=_0x5e88ba['plugins']['get']('TrackChangesEditing'),_0x89b73f=_0x5e88ba['locale'];for(const _0x10ff9f of vt){if(!_0x5e88ba['plugins']['has'](_0x10ff9f))continue;const _0x488377=_0x10ff9f['slice'](0x0,-0x7)['toLowerCase'](),_0x66b1b2='FORMAT_'+_0x488377['toUpperCase']();_0x18042d['enableDefaultAttributesIntegration'](_0x488377),_0x18042d['descriptionFactory']['registerAttributeLabel'](_0x488377,St(_0x89b73f,_0x66b1b2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc05ef7=this['editor'],_0x1da630=_0xc05ef7['locale'],_0xa5890b=_0xc05ef7['plugins']['get']('TrackChangesEditing');function _0x298612(_0x4aeb69,_0x21d97b){_0xa5890b['descriptionFactory']['registerDescriptionCallback'](_0x30a964=>{if('formatInline'!=_0x30a964['type'])return;const {data:_0x311f6d}=_0x30a964;return _0x311f6d&&_0x311f6d['commandName']===_0x4aeb69?_0x311f6d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1da630,'*Format:*\x20%0',_0x21d97b)}:{'type':'format','content':St(_0x1da630,'*Remove\x20format:*\x20%0',_0x21d97b)}:void 0x0;});}_0x298612('bold',St(_0x1da630,'FORMAT_BOLD')),_0x298612('italic',St(_0x1da630,'FORMAT_ITALIC')),_0x298612('underline',St(_0x1da630,'FORMAT_UNDERLINE')),_0x298612('code',St(_0x1da630,'FORMAT_CODE')),_0x298612('strikethrough',St(_0x1da630,'FORMAT_STRIKETHROUGH')),_0x298612('subscript',St(_0x1da630,'FORMAT_SUBSCRIPT')),_0x298612('superscript',St(_0x1da630,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x1a4f44{['afterInit'](){const _0x1953ca=this['editor'],_0x928fc6=_0x1953ca['locale'];if(!_0x1953ca['plugins']['has']('BlockQuoteEditing'))return;const _0x1c08a7=_0x1953ca['plugins']['get']('TrackChangesEditing'),_0x18bbb3=this['editor']['commands']['get']('blockQuote');_0x1c08a7['enableCommand']('blockQuote',(_0x13f23c,_0x443cc7={})=>{const _0x5807fe=this['editor']['model']['document']['selection'],_0x32dd4a=_0x443cc7&&void 0x0!==_0x443cc7['forceValue']?_0x443cc7['forceValue']:!_0x18bbb3['value'];let _0x37c3af=[];_0x37c3af=At(_0x32dd4a?Array['from'](_0x5807fe['getSelectedBlocks']())['filter'](_0xfd4658=>Pt(_0xfd4658)||function(_0x1583bd,_0x86619d){const _0x46a3e1=_0x86619d['createContext'](_0x1583bd['parent']);return!!_0x86619d['checkChild'](_0x46a3e1,'blockQuote')&&!!_0x86619d['checkChild'](_0x46a3e1['push']('blockQuote'),_0x1583bd);}(_0xfd4658,this['editor']['model']['schema'])):Array['from'](_0x5807fe['getSelectedBlocks']())['filter'](_0x51bb74=>Pt(_0x51bb74)),_0x1953ca['model']),_0x1953ca['model']['change'](()=>{for(const _0x130484 of _0x37c3af)_0x1c08a7['markBlockFormat'](_0x130484,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x32dd4a}]});});}),_0x1c08a7['descriptionFactory']['registerDescriptionCallback'](_0x25c9a9=>{const {data:_0x59c254}=_0x25c9a9;if(_0x59c254&&'blockQuote'==_0x59c254['commandName']){const _0x2a6cee=St(_0x928fc6,'ELEMENT_BLOCK_QUOTE');return _0x59c254['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x928fc6,'*Set\x20format:*\x20%0',_0x2a6cee)}:{'type':'format','content':St(_0x928fc6,'*Remove\x20format:*\x20%0',_0x2a6cee)};}});}};function Pt(_0x1518c3){return'blockQuote'==_0x1518c3['parent']['name'];}var xt=class extends _0x1a4f44{['afterInit'](){const _0x3ffc5d=this['editor'],_0x26596f=_0x3ffc5d['locale'],_0x3ad06e=_0x3ffc5d['plugins']['get']('TrackChangesEditing');_0x3ffc5d['plugins']['has']('BookmarkEditing')&&(_0x3ad06e['enableCommand']('insertBookmark'),_0x3ad06e['enableDefaultAttributesIntegration']('updateBookmark'),_0x3ad06e['descriptionFactory']['registerDescriptionCallback'](_0xa79d3f=>{if('insertion'!=_0xa79d3f['type']&&'deletion'!=_0xa79d3f['type']&&'attribute'!=_0xa79d3f['type'])return;const _0x5a9682=_0xa79d3f['getContainedElement']();if(null==_0x5a9682)return;if(!_0x5a9682['is']('element','bookmark'))return;const _0x29bd2c=_0x5a9682['getAttribute']('bookmarkId');if('insertion'==_0xa79d3f['type'])return{'type':'insertion','content':St(_0x26596f,'*Insert:*\x20%0','\x22'+_0x29bd2c+'\x22\x20'+St(_0x26596f,'ELEMENT_BOOKMARK'))};if('deletion'==_0xa79d3f['type'])return{'type':'deletion','content':St(_0x26596f,'*Remove:*\x20%0','\x22'+_0x29bd2c+'\x22\x20'+St(_0x26596f,'ELEMENT_BOOKMARK'))};const {data:_0x2171a7}=_0xa79d3f;return _0x2171a7&&'bookmarkId'==_0x2171a7['key']?{'type':'format','content':St(_0x26596f,'*Set\x20bookmark:*\x20%0','\x22'+_0x2171a7['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x1a4f44{['afterInit'](){const _0x814614=this['editor'];_0x814614['plugins']['has']('CaseChange')&&(_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x814614['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x1a4f44{['afterInit'](){const _0x49d8e2=this['editor'];_0x49d8e2['commands']['get']('ckbox')&&_0x49d8e2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x1a4f44{['afterInit'](){const _0x2feb4e=this['editor'];if(!_0x2feb4e['plugins']['has']('CodeBlock'))return;const _0x3f23a8=_0x2feb4e['plugins']['get']('TrackChangesEditing'),_0x11a3ba=_0x2feb4e['locale'],_0x2baa2f=_0x2feb4e['config']['get']('codeBlock')['languages'],_0x50c75e=_0x2feb4e['commands']['get']('codeBlock');_0x3f23a8['enableCommand']('indentCodeBlock'),_0x3f23a8['enableCommand']('outdentCodeBlock'),_0x3f23a8['enableCommand']('codeBlock',(_0x89cca7,_0xc74498={})=>{const _0x54bc60=_0x2feb4e['model'],_0x1b8f2f=_0x2feb4e['model']['document']['selection'],_0x403252=_0xc74498&&void 0x0!==_0xc74498['forceValue']?_0xc74498['forceValue']:!_0x50c75e['value'];let _0x5337bb;_0xc74498['language']||(_0xc74498['language']=_0x2baa2f[0x0]['language']),_0x5337bb=_0x403252?Array['from'](_0x1b8f2f['getSelectedBlocks']())['filter'](_0x343f41=>{return Vt(_0x343f41)||(_0x2b8d0d=_0x343f41,_0x1eba41=_0x54bc60['schema'],!_0x2b8d0d['is']('rootElement')&&!_0x1eba41['isLimit'](_0x2b8d0d)&&_0x1eba41['checkChild'](_0x2b8d0d['parent'],'codeBlock'));var _0x2b8d0d,_0x1eba41;}):Array['from'](_0x1b8f2f['getSelectedBlocks']())['filter'](_0x3caed6=>Vt(_0x3caed6));const _0x181f81=At(_0x5337bb,_0x54bc60);_0x54bc60['change'](()=>{for(const _0x5b69b0 of _0x181f81)_0x3f23a8['markBlockFormat'](_0x5b69b0,{'commandName':'codeBlock','commandParams':[{..._0xc74498,'forceValue':_0x403252}],'formatGroupId':'blockName'});});}),(_0x3f23a8['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a7687=>St(_0x11a3ba,'ELEMENT_CODE_BLOCK',_0x1a7687)),_0x3f23a8['descriptionFactory']['registerDescriptionCallback'](_0x3c894a=>{if('formatBlock'!=_0x3c894a['type'])return;const _0x33b8c0=_0x11a3ba['t'],{data:_0x351d35}=_0x3c894a;if(!_0x351d35||'codeBlock'!=_0x351d35['commandName'])return;const _0x1b1327=_0x351d35['commandParams'][0x0]['language'],_0x508fc5=_0x33b8c0(_0x2baa2f['find'](_0xb90217=>_0xb90217['language']===_0x1b1327)['label'])['toLowerCase']();return _0x351d35['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x11a3ba,'*Set\x20format:*\x20%0',St(_0x11a3ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x508fc5+')')}:{'type':'format','content':St(_0x11a3ba,'*Remove\x20format:*\x20%0',St(_0x11a3ba,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0xed2deb){return'codeBlock'==_0xed2deb['name'];}var Wt=class extends _0x1a4f44{['afterInit'](){const _0x3dc991=this['editor'];_0x3dc991['plugins']['has']('CommentsEditing')&&_0x3dc991['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x1a4f44{static get['requires'](){return[ht];}['init'](){const _0x1e87d9=this['editor'],_0x44f146=_0x1e87d9['plugins']['get']('TrackChangesEditing');_0x44f146['enableCommand']('delete');const _0x82816a=_0x1e87d9['commands']['get']('deleteForward');_0x44f146['enableCommand']('deleteForward',(_0x3b4a71,_0x57d7b8={})=>{const _0x910263=_0x1e87d9['model']['createSelection'](_0x1e87d9['model']['document']['selection']);_0x910263['isCollapsed']&&_0x1e87d9['model']['modifySelection'](_0x910263,{'direction':'forward','unit':_0x57d7b8['unit']});const _0x4f31ce=_0x910263['getFirstRange'](),_0x5386fd=rt['fromRange'](_0x4f31ce);let _0x2a3bcf;_0x3b4a71(_0x57d7b8),_0x2a3bcf='$graveyard'==_0x5386fd['root']['rootName']?_0x1e87d9['model']['createRange'](_0x4f31ce['start']):_0x1e87d9['model']['createRange'](_0x5386fd['start'],_0x5386fd['end']),_0x5386fd['detach'](),_0x1e87d9['model']['enqueueChange'](_0x82816a['buffer']['batch'],_0x435a06=>{_0x82816a['buffer']['lock'](),_0x435a06['setSelection'](_0x435a06['createRange'](_0x2a3bcf['end'])),_0x82816a['buffer']['unlock']();});});}},Kt=class extends _0x1a4f44{['afterInit'](){const _0x5c1116=this['editor'];if(!_0x5c1116['plugins']['has']('ListEditing'))return;const _0x545eec=_0x5c1116['locale'],_0x211503=_0x5c1116['plugins']['get']('TrackChangesEditing'),_0x20f599=_0x5c1116['plugins']['has']('TodoListEditing'),_0x4f01ac=!!_0x5c1116['config']['get']('list.multiBlock');function _0x27c035(_0x3a386b){return{'type':'format','content':''+St(_0x545eec,'*Set\x20format:*\x20%0',_0x3a386b)};}function _0x43bba4(_0x330b9a){return{'type':'format','content':''+St(_0x545eec,'*Remove\x20format:*\x20%0',_0x330b9a)};}_0x211503['enableDefaultAttributesIntegration']('numberedList'),_0x211503['enableDefaultAttributesIntegration']('bulletedList'),_0x211503['enableDefaultAttributesIntegration']('customNumberedList'),_0x211503['enableDefaultAttributesIntegration']('customBulletedList'),_0x211503['enableDefaultAttributesIntegration']('indentList'),_0x211503['enableDefaultAttributesIntegration']('outdentList'),_0x211503['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x211503['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f01ac&&(_0x211503['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x211503['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x20f599&&(_0x211503['enableDefaultAttributesIntegration']('todoList'),_0x211503['enableDefaultAttributesIntegration']('checkTodoList'),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x132f87=>{const {data:_0x4b6161}=_0x132f87;if(_0x4b6161&&'todoListChecked'==_0x4b6161['key'])return{'type':'format','content':_0x4b6161['newValue']?St(_0x545eec,'*Check\x20item*'):St(_0x545eec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1fd764=>{if(_0x1fd764['batch']['isUndo'])return!0x1;let _0x3421ce=!0x1;const _0x3aa468=_0x211503['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26fad8=>'todoListChecked'===_0x211503['_getAttributeKey'](_0x26fad8));for(const _0x42d1ea of _0x3aa468)'todo'!=_0x42d1ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x211503['_findSuggestions'](_0x42d1ea['getFirstRange'](),'attribute')['find'](_0x5e1f5b=>'listType'===_0x211503['_getAttributeKey'](_0x5e1f5b['suggestion']))||(_0x1fd764['removeMarker'](_0x42d1ea['getFirstMarker']()),_0x3421ce=!0x0));return _0x3421ce;})),_0x211503['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x545eec,'FORMAT_INDENT'));const _0xd7cd3c={'type':'format','content':''};_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x4dd00a=>{const {data:_0x31b080}=_0x4dd00a;if(!_0x31b080||'listType'!=_0x31b080['key'])return;let _0x309f0f=_0x4dd00a['head'];for(;_0x309f0f;){if(_0x309f0f['data']&&(('listStyle'==_0x309f0f['data']['key']||'listMarkerStyle'==_0x309f0f['data']['key'])&&(_0x309f0f['data']['newValue']&&'default'!=_0x309f0f['data']['newValue']||'default'!=_0x309f0f['data']['oldValue']&&!_0x31b080['newValue'])||!_0x4f01ac&&'$elementName'==_0x309f0f['data']['key']))return _0xd7cd3c;_0x309f0f=_0x309f0f['next'];}if(null==_0x31b080['newValue'])switch(_0x31b080['oldValue']){case'bulleted':return _0x43bba4(St(_0x545eec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x43bba4(St(_0x545eec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x43bba4(St(_0x545eec,'ELEMENT_TODO_LIST'));}switch(_0x31b080['newValue']){case'bulleted':return _0x27c035(St(_0x545eec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27c035(St(_0x545eec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27c035(St(_0x545eec,'ELEMENT_TODO_LIST'));}}),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x296d7d=>{const {data:_0x26de4d}=_0x296d7d;if(_0x26de4d&&'listIndent'==_0x26de4d['key'])return null==_0x26de4d['newValue']||null==_0x26de4d['oldValue']&&0x0==_0x26de4d['newValue']?_0xd7cd3c:void 0x0;}),_0x211503['descriptionFactory']['registerDescriptionCallback'](_0x511573=>{if('attribute'!=_0x511573['type'])return;const {data:_0xb635af}=_0x511573;if(!_0xb635af||'listItemId'!=_0xb635af['key'])return;const _0x133635=zt(_0x511573);return'newValue'==_0x133635?{'type':'format','content':St(_0x545eec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x133635?{'type':'format','content':St(_0x545eec,'*Split:*\x20list\x20item')}:_0xd7cd3c;}),_0x5c1116['model']['document']['registerPostFixer'](_0x15fff6=>this['listItemIdFixer'](_0x15fff6)),_0x5c1116['model']['document']['registerPostFixer'](_0x9c85ed=>this['noTrackChangesFixer'](_0x9c85ed)),_0x5c1116['model']['document']['on']('change:data',(_0x70ebf4,_0x17e44e)=>{if(_0x17e44e['isUndo']||!_0x17e44e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xc7ff5){if(_0xc7ff5['batch']['isUndo']||!_0xc7ff5['batch']['isLocal'])return!0x1;let _0x25d2bf=!0x1;const _0x86811=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37f21f=>_0x37f21f['data']&&'listItemId'==_0x37f21f['data']['key'])['filter'](_0x5096b0=>_0x5096b0['data']['newValue']&&_0x5096b0['data']['oldValue']);for(const _0x410f9e of _0x86811)zt(_0x410f9e)||(_0xc7ff5['removeMarker'](_0x410f9e['getFirstMarker']()),_0x25d2bf=!0x0);return _0x25d2bf;}['noTrackChangesFixer'](_0x40cd77){if(_0x40cd77['batch']['isUndo']||!_0x40cd77['batch']['isLocal'])return!0x1;const _0x2bc8ed=this['editor']['model']['document']['differ'],_0x468ed2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x468ed2['trackChangesCommand']['value'])return!0x1;let _0x449ccd=!0x1;const _0x55fcc6=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3f4096=_0x2bc8ed['getChanges']()['filter'](_0x3414cb=>'attribute'==_0x3414cb['type'])['filter'](_0x4c9b19=>_0x55fcc6['has'](_0x4c9b19['attributeKey']));if(0x0==_0x3f4096['length'])return _0x449ccd;const _0x5a97ef=new Set(_0x2bc8ed['getMarkersToAdd']()['filter'](_0x3b100f=>{if(!_0x3b100f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3d6763=tt(_0x3b100f['name'])['subType']['split']('|')[0x0];return _0x55fcc6['has'](_0x3d6763);})['map'](_0x355600=>tt(_0x355600['name'])['id']));for(const _0xd287d7 of _0x3f4096){const _0x5e9a63=_0x468ed2['_findSuggestions'](_0xd287d7['range'],'attribute')['filter'](_0x35356a=>{if(_0x35356a['meta']['isNextTo'])return!0x1;if(_0x5a97ef['has'](_0x35356a['suggestion']['id']))return!0x1;const _0x4ac81a=_0x468ed2['_getAttributeKey'](_0x35356a['suggestion']);return _0x55fcc6['has'](_0x4ac81a);})['map'](_0x18904f=>_0x18904f['suggestion']);if(_0x5e9a63['length']){for(const _0x125db5 of _0x5e9a63)_0x40cd77['removeMarker'](_0x125db5['getFirstMarker']());_0x449ccd=!0x0;}}return _0x449ccd;}['assureChains'](){const _0x2e33f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28b249=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5b2578;const _0x111bc0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cad73=>{if(_0x2cad73['data']['oldRange']||!_0x2cad73['data']['newRange'])return null;if(!_0x2cad73['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x47f323}=tt(_0x2cad73['name']);if(!_0x2e33f8['hasSuggestion'](_0x47f323))return null;const _0x3453c1=_0x2e33f8['getSuggestion'](_0x47f323);return _0x28b249['includes'](_0x3453c1['data']['key']);})['map'](_0x108158=>{const {id:_0x2494d0}=tt(_0x108158['name']),_0x34d8fe=_0x2e33f8['getSuggestion'](_0x2494d0);return _0x5b2578=_0x34d8fe['attributes']['groupId'],_0x34d8fe['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x111bc0['size'])return;const _0x51d87c=_0x2e33f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f8bdd=>'attribute'==_0x2f8bdd['type']&&_0x2f8bdd['data']&&_0x28b249['includes'](_0x2f8bdd['data']['key'])&&_0x2f8bdd['attributes']['groupId']!=_0x5b2578)['map'](_0x194507=>({'listItem':_0x194507['getFirstRange']()['start']['nodeAfter'],'groupId':_0x194507['attributes']['groupId']})),_0x1481a2=new Set();for(const {groupId:_0x389bfa,listItem:_0x109bdc}of _0x51d87c)_0x111bc0['has'](_0x109bdc)&&_0x1481a2['add'](_0x389bfa);for(const _0x37a584 of _0x2e33f8['getSuggestions']())_0x1481a2['has'](_0x37a584['attributes']['groupId'])&&_0x37a584['setAttribute']('groupId',_0x5b2578);}['_supportLegacySuggestions'](){const _0x4deb6d=this['editor'],_0x52aae8=_0x4deb6d['locale'],_0x4bec5d=_0x4deb6d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4bec5d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x110ee4,_0x54ae26){const _0x576e20=[];for(let _0x1d3e13 of _0x110ee4)_0x1d3e13['start']['nodeAfter']===_0x1d3e13['end']['parent']&&(_0x1d3e13=_0x4deb6d['model']['createRange'](_0x4deb6d['model']['createPositionAt'](_0x1d3e13['start']['nodeAfter'],0x0))),_0x576e20['push'](_0x1d3e13);_0x4deb6d['model']['change'](_0x1c25c9=>{const _0x5f19fa=_0x4deb6d['model']['document']['selection'],_0x410cb7=Array['from'](_0x5f19fa['getRanges']())['map'](_0x39159a=>rt['fromRange'](_0x39159a));_0x1c25c9['setSelection'](_0x576e20),_0x4deb6d['commands']['get'](_0x54ae26['commandName'])['refresh'](),_0x54ae26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4deb6d['execute'](_0x54ae26['commandName'],..._0x54ae26['commandParams']),_0x1c25c9['setSelection'](_0x410cb7);for(const _0x3682c6 of _0x410cb7)_0x3682c6['detach']();});}),_0x4bec5d['descriptionFactory']['registerElementLabel'](function(_0x4bd08d){const _0x26aa1f=!_0x4deb6d['model']['schema']['isObject'](_0x4bd08d),_0x21e4b5=_0x4bd08d['previousSibling'],_0x1a9865=_0x4bd08d['nextSibling'],_0x20d9f5=_0x4bd08d['getAttribute']('listItemId'),_0x5652ff=!_0x21e4b5||_0x21e4b5['getAttribute']('listItemId')!==_0x20d9f5,_0x421722=!_0x1a9865||_0x1a9865['getAttribute']('listItemId')!==_0x20d9f5;return _0x26aa1f&&Boolean(_0x20d9f5)&&_0x5652ff&&_0x421722;},_0x3e6fc7=>St(_0x52aae8,'ELEMENT_LIST_ITEM',_0x3e6fc7));}['_registerLegacyDescription'](){const _0x51944d=this['editor'],_0x44e2f9=_0x51944d['locale'];function _0x5adfe3(_0x3c06ed){const _0x43368f=_0x51944d['commands']['get']('bulletedList')['value'],_0x4fb8bf=_0x51944d['commands']['get']('numberedList')['value'];return'numberedList'===_0x3c06ed?_0x43368f:_0x4fb8bf;}_0x51944d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4592e2){if('formatBlock'!=_0x4592e2['type'])return;const {data:_0x1f6387}=_0x4592e2;if(!_0x1f6387)return;let _0x173708,_0x783fd6,_0x33364b,_0x41023d;switch(_0x1f6387['commandName']){case'bulletedList':_0x33364b=_0x1f6387['commandParams'][0x0]['forceValue'],_0x41023d=_0x5adfe3(_0x1f6387['commandName']),_0x173708=_0x33364b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41023d&&_0x51944d['config']['get']('list.multiBlock')||(_0x173708='*Change\x20to:*\x20%0'),_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x33364b=_0x1f6387['commandParams'][0x0]['forceValue'],_0x41023d=_0x5adfe3(_0x1f6387['commandName']),_0x173708=_0x33364b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x41023d&&_0x51944d['config']['get']('list.multiBlock')||(_0x173708='*Change\x20to:*\x20%0'),_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x173708='*Indent:*\x20%0',_0x783fd6={'type':'format','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x173708=function(_0x202783){const _0x402b5a=_0x202783['getFirstRange']();let _0x80ecc6=_0x402b5a['start']['nodeAfter'];for(;_0x80ecc6&&_0x402b5a['containsItem'](_0x80ecc6);){if(_0x80ecc6['getAttribute']('listIndent')>0x0)return!0x1;_0x80ecc6=_0x80ecc6['nextSibling'];}return!0x0;}(_0x4592e2)?St(_0x44e2f9,'*Format:*\x20remove\x20from\x20%0',St(_0x44e2f9,function(_0x371e66){return'ELEMENT_'+_0x371e66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4592e2))):St(_0x44e2f9,'*Outdent:*\x20%0',St(_0x44e2f9,'ELEMENT_LIST_ITEM')),_0x783fd6={'type':'format','content':_0x173708};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1f6387['multipleBlocks']&&(_0x173708='*Merge:*\x20%0',_0x783fd6={'type':'deletion','content':St(_0x44e2f9,_0x173708,St(_0x44e2f9,'ELEMENT_LIST_ITEM'))});}return _0x783fd6;});}};function zt(_0x4d31f1){let _0x463b67=_0x4d31f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x463b67;){const _0xd9cd7=_0x463b67['getAttribute']('listItemId');if(!_0xd9cd7)return!0x1;if(_0xd9cd7==_0x4d31f1['data']['newValue'])return'newValue';if(_0xd9cd7==_0x4d31f1['data']['oldValue'])return'oldValue';_0x463b67=_0x463b67['previousSibling'];}return!0x1;}var Xt=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22ef13=this['editor']['config']['get']('list.properties'),_0x3e8aee=this['editor']['plugins']['get']('TrackChangesEditing');_0x22ef13['styles']&&_0x3e8aee['enableDefaultAttributesIntegration']('listStyle'),_0x22ef13['reversed']&&_0x3e8aee['enableDefaultAttributesIntegration']('listReversed'),_0x22ef13['startIndex']&&_0x3e8aee['enableDefaultAttributesIntegration']('listStart');const _0x4ec3a4={'type':'format','content':''};_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x350e3b=this['editor']['locale'];_0x3e8aee['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x350e3b,'FORMAT_LIST_REVERSED')),_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](_0x40d23a=>{const {data:_0x13ebe6}=_0x40d23a;if(_0x13ebe6&&'listReversed'==_0x13ebe6['key'])return null==_0x13ebe6['newValue']||0x0==_0x13ebe6['newValue']&&null==_0x13ebe6['oldValue']?_0x4ec3a4:void 0x0;}),_0x3e8aee['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x350e3b,'FORMAT_LIST_START')),_0x3e8aee['descriptionFactory']['registerDescriptionCallback'](_0x57d605=>{const {data:_0x3013bf}=_0x57d605;if(_0x3013bf&&'listStart'==_0x3013bf['key'])return null==_0x3013bf['newValue']||0x1==_0x3013bf['newValue']&&null==_0x3013bf['oldValue']?_0x4ec3a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x344f80=>{if(_0x344f80['batch']['isUndo'])return!0x1;let _0xfc2e33=!0x1;const _0x331d10=_0x3e8aee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4148ab=>{const _0x2c1a80=_0x3e8aee['_getAttributeKey'](_0x4148ab);return'listStart'==_0x2c1a80||'listReversed'==_0x2c1a80;});for(const _0x5647a2 of _0x331d10){const _0x42d9f0=_0x5647a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x42d9f0&&'customNumbered'!=_0x42d9f0&&(_0x3e8aee['_findSuggestions'](_0x5647a2['getFirstRange'](),'attribute')['find'](_0x1fce34=>'listType'==_0x3e8aee['_getAttributeKey'](_0x1fce34['suggestion']))||(_0x344f80['removeMarker'](_0x5647a2['getFirstMarker']()),_0xfc2e33=!0x0));}return _0xfc2e33;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bdf66){const _0x116cc1=this['editor']['locale'],{data:_0x2e3b26}=_0x5bdf66,_0x2e7ff2={'type':'format','content':''};if(!_0x2e3b26||'listStyle'!=_0x2e3b26['key'])return;if(!_0x2e3b26['oldValue'])return'default'==_0x2e3b26['newValue']?_0x2e7ff2:{'type':'format','content':''+St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['newValue'])))};if(!_0x2e3b26['newValue']){if('default'==_0x2e3b26['oldValue'])return _0x2e7ff2;let _0x577305=_0x5bdf66['head'];for(;_0x577305;){if(_0x577305['data']&&'listType'==_0x577305['data']['key']&&_0x577305['data']['newValue'])return _0x2e7ff2;_0x577305=_0x577305['next'];}return{'type':'format','content':''+St(_0x116cc1,'*Remove\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['oldValue'])))};}if('default'!=_0x2e3b26['newValue'])return{'type':'format','content':''+St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,this['_getTranslationKeyForListStyle'](_0x2e3b26['newValue'])))};let _0x321d52=_0x5bdf66['head'];for(;_0x321d52;){if(_0x321d52['data']&&'listType'==_0x321d52['data']['key']&&_0x321d52['data']['newValue']&&_0x321d52['data']['oldValue'])return _0x2e7ff2;_0x321d52=_0x321d52['next'];}return{'type':'format','content':St(_0x116cc1,'*Set\x20format:*\x20%0',St(_0x116cc1,'ELEMENT_'+_0x5bdf66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x194890=this['editor'],_0x138547=_0x194890['locale'];_0x194890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178206=>{if('formatBlock'!=_0x178206['type'])return;const {data:_0xa6466}=_0x178206;if(!_0xa6466)return;let _0x4d680e,_0x3ee03c;switch(_0xa6466['commandName']){case'listStyle':_0x4d680e='*Change\x20to:*\x20%0',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e,St(_0x138547,this['_getTranslationKeyForListStyle'](_0xa6466['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d680e=_0xa6466['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e)};break;case'listStart':_0x4d680e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ee03c={'type':'format','content':St(_0x138547,_0x4d680e,_0xa6466['commandParams'][0x0]['startIndex'])};}return _0x3ee03c;});}['_getTranslationKeyForListStyle'](_0x1c1e44){return'ELEMENT_'+(_0x1e6f63=_0x1c1e44,qt['includes'](_0x1e6f63)?'bulleted':Yt['includes'](_0x1e6f63)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x1c1e44['toUpperCase']()['replace'](/-/g,'_');var _0x1e6f63;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x1a4f44{['afterInit'](){const _0x3b5a64=this['editor'];_0x3b5a64['commands']['get']('emoji')&&_0x3b5a64['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x1a4f44{static get['requires'](){return[ft];}['init'](){const _0x18036f=this['editor'],_0x176050=_0x18036f['plugins']['get']('TrackChangesEditing'),_0x2300dd=_0x18036f['commands']['get']('enter');_0x176050['enableCommand']('enter',()=>{_0x18036f['model']['change'](_0x1f1f4a=>{const _0x85c50f=_0x18036f['model']['document']['selection'],_0x3dbd28=_0x85c50f['getFirstPosition'](),_0x4b2846=rt['fromRange'](_0x85c50f['getFirstRange']());if(_0x2300dd['enterBlock'](_0x1f1f4a)){const _0xe4c5cd=_0x18036f['model']['createPositionAt'](_0x3dbd28['parent']['nextSibling'],0x0),_0x36b30e=_0x1f1f4a['createRange'](_0x3dbd28,_0xe4c5cd);_0x176050['markInsertion'](_0x36b30e);}else _0x1f1f4a['setSelection'](_0x1f1f4a['createRange'](_0x4b2846['end']));_0x4b2846['detach'](),_0x2300dd['fire']('afterExecute',{'writer':_0x1f1f4a});});});}},Jt=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x556982=this['editor']['plugins']['get']('TrackChangesEditing');_0x556982['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x556982['enableCommand']('findNext'),_0x556982['enableCommand']('findPrevious'),_0x556982['enableCommand']('replace'),_0x556982['enableCommand']('replaceAll');}['handleFindCommand'](_0x5798d7,_0xbae020,_0x4cb7bc={}){const _0x51c8c7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5798d7(_0x5c6316=>{let _0x25d343=('string'==typeof _0xbae020?_0x51c8c7['findByTextCallback'](_0xbae020,_0x4cb7bc):_0xbae020)(_0x5c6316);Array['isArray'](_0x25d343)&&(_0x25d343={'results':_0x25d343,'searchText':'string'==typeof _0xbae020?_0xbae020:''});const _0x500d4f=_0x25d343['results']['filter'](_0x57fb0c=>!0x1===this['_isInDeletionRange'](_0x57fb0c,_0x5c6316['item']));return{..._0x25d343,'results':_0x500d4f};},_0x4cb7bc);}['_isInDeletionRange'](_0x1e083f,_0x4f513e){const _0x4615e8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f513e,_0x1e083f['start']),this['editor']['model']['createPositionAt'](_0x4f513e,_0x1e083f['end']));for(const _0x2971bf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4615e8['getIntersection'](_0x2971bf['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 _0x1a4f44{['afterInit'](){const _0x3b2402=this['editor']['locale'],_0x4cdfd1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3667d5,commandName:_0x12609a}of te)this['editor']['plugins']['has'](_0x3667d5)&&_0x4cdfd1['enableDefaultAttributesIntegration'](_0x12609a);_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x3b2402,'FORMAT_FONT_SIZE')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x3b2402,'FORMAT_FONT_FAMILY')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x3b2402,'FORMAT_FONT_COLOR')),_0x4cdfd1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x3b2402,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf65d8=this['editor'],_0x292e6b=_0xcf65d8['locale'];_0xcf65d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59defc=>{const _0xfefdf8=_0x292e6b['t'];if('formatInline'!=_0x59defc['type'])return;const {data:_0xda8967}=_0x59defc;if(null!=_0xda8967){if('fontSize'==_0xda8967['commandName']){const _0x451557=_0xda8967['commandParams'][0x0]['value'];if(_0x451557){const _0x11766d=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x165610=>_0x165610['model']==_0x451557)['title'];return{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20size:*\x20%0',_0xfefdf8(_0x11766d)['toLowerCase']())};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xda8967['commandName']){const _0x3b47b9=_0xda8967['commandParams'][0x0]['value'];return _0x3b47b9?{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20family:*\x20%0',_0x3b47b9)}:{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20family*')};}if('fontColor'==_0xda8967['commandName']){const _0x3b1a43=_0xda8967['commandParams'][0x0]['value'];if(_0x3b1a43){const _0x4d3697=_0x4be3a7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6ef41=>_0x6ef41['model']==_0x3b1a43);let _0x1309ee=_0x3b1a43,_0x1aecae='';return _0x4d3697&&(_0x1309ee=_0x4d3697['label'],_0x1aecae=_0xfefdf8(_0x1309ee)['toLowerCase']()),{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20color:*\x20%0',_0x1aecae)['trim'](),'color':{'value':_0x3b1a43,'title':_0x1aecae||_0x1309ee}};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xda8967['commandName']){const _0x5e9d71=_0xda8967['commandParams'][0x0]['value'];if(_0x5e9d71){const _0x9e8891=_0x4be3a7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x559acd=>_0x559acd['model']==_0x5e9d71);let _0x5581c2=_0x5e9d71,_0x3d6de4='';return _0x9e8891&&(_0x5581c2=_0x9e8891['label'],_0x3d6de4=_0xfefdf8(_0x5581c2)['toLowerCase']()),{'type':'format','content':St(_0x292e6b,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d6de4)['trim'](),'color':{'value':_0x5e9d71,'title':_0x3d6de4||_0x5581c2}};}return{'type':'format','content':St(_0x292e6b,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x1a4f44{['afterInit'](){const {plugins:_0x2a299e}=this['editor'];_0x2a299e['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2a299e['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2448fb,plugins:_0x531a69,commands:_0x3cc675}=this['editor'],_0x41dbd0=_0x531a69['get']('TrackChangesEditing');_0x3cc675['get']('footnotesStyle')&&_0x41dbd0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3cc675['get']('footnotesStart')&&_0x41dbd0['enableDefaultAttributesIntegration']('footnotesStart'),_0x41dbd0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x2448fb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x41dbd0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x2448fb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x409f71=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x8a7b49,commands:_0x518a27}=this['editor'];_0x518a27['get']('insertFootnote')&&_0x409f71['enableCommand']('insertFootnote'),_0x409f71['descriptionFactory']['registerElementLabel']('footnoteRef',_0x39154d=>St(_0x8a7b49,'ELEMENT_FOOTNOTE_REF',_0x39154d)),_0x409f71['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3b162d=>St(_0x8a7b49,'ELEMENT_FOOTNOTE_DEFINITION',_0x3b162d)),_0x409f71['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x39e577=>St(_0x8a7b49,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x39e577));}},ie=class extends _0x1a4f44{['afterInit'](){const _0x2f7d9b=this['editor'],_0x5a707b=_0x2f7d9b['plugins']['get']('TrackChangesEditing'),_0x17ad4a=_0x2f7d9b['commands']['get']('copyFormat'),_0x4c9ba2=_0x2f7d9b['commands']['get']('pasteFormat');_0x17ad4a&&_0x4c9ba2&&(_0x5a707b['enableDefaultAttributesIntegration']('pasteFormat'),_0x5a707b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2df205=this['editor'],_0x4c96ff=_0x2df205['locale'];_0x2df205['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184707=>{if('formatBlock'!=_0x184707['type']&&'formatInline'!=_0x184707['type'])return;const {data:_0x5630c3}=_0x184707;if(_0x5630c3&&'pasteFormat'===_0x5630c3['commandName']){const _0x18083c=[],_0x36195a=_0x5630c3['commandParams'][0x0];for(const [_0x10c415,_0xf73450]of Object['entries'](_0x36195a))_0x18083c['push'](se(_0x2df205,_0x10c415,_0xf73450));return _0x18083c['length']?{'type':'format','content':St(_0x4c96ff,'*Set\x20format\x20to:*\x20%0',_0x18083c['join'](',\x20'))}:{'type':'format','content':St(_0x4c96ff,'*Remove\x20all\x20formatting*')};}});}};function se(_0x495906,_0x2c4cec,_0x56d0eb){const _0x314b53=_0x495906['locale']['t'],_0x9e7e90=_0x2c4cec['split'](/(?=[A-Z])/)['join']('\x20'),_0x16641f=_0x314b53(_0x9e7e90['charAt'](0x0)['toUpperCase']()+_0x9e7e90['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x56d0eb)return _0x16641f;if('fontColor'===_0x2c4cec||'fontBackgroundColor'===_0x2c4cec){const _0x16ab67=_0x4be3a7(_0x495906['config']['get']('fontColor.colors'))['find'](_0x214b9c=>_0x214b9c['model']==_0x56d0eb);return _0x16641f+'\x20('+(_0x16ab67?_0x314b53(_0x16ab67['label'])['toLowerCase']():_0x56d0eb)+')';}if('fontSize'===_0x2c4cec&&isNaN(parseFloat(_0x56d0eb))){const _0xcb64e2=_0x495906['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x495906['config']['get']('fontSize.options'))['find'](_0xd688f8=>_0xd688f8['model']==_0x56d0eb);return _0x16641f+'\x20('+(_0xcb64e2?_0x314b53(_0xcb64e2['title'])['toLowerCase']():_0x56d0eb)+')';}return _0x16641f+'\x20('+_0x56d0eb+')';}var re=class extends _0x1a4f44{['afterInit'](){const _0x3085a9=this['editor'];if(!_0x3085a9['plugins']['has']('GeneralHtmlSupport')||!_0x3085a9['plugins']['has']('DataSchema'))return;const _0x58b4f0=_0x3085a9['plugins']['get']('TrackChangesEditing'),_0x3c51f1=_0x3085a9['plugins']['get']('GeneralHtmlSupport'),_0x1be63f=_0x3085a9['plugins']['get']('DataSchema'),_0x41d10b=_0x3085a9['locale'],_0x5439a8=new Set(['htmlContent']);for(const _0x392590 of _0x1be63f['getDefinitionsForView'](/.*/,!0x1)){const _0x90954a=_0x392590['view'],_0x53c877=_0x3c51f1['getGhsAttributeNameForElement'](_0x90954a);_0x5439a8['add'](_0x53c877),!_0x392590['isInline']||_0x392590['isObject']||'appliesToBlock'in _0x392590&&_0x392590['appliesToBlock']||_0x58b4f0['descriptionFactory']['registerAttributeLabel'](_0x53c877,_0x90954a),_0x392590['model']['startsWith']('html')&&_0x58b4f0['descriptionFactory']['registerElementLabel'](_0x392590['model'],_0x1ba201=>St(_0x41d10b,'ELEMENT_HTML_TAG',[_0x1ba201,_0x90954a]));}_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x41d10b,'FORMAT_RAW_HTML_CONTENT')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x41d10b,'FORMAT_HTML_LIST_ITEM')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x41d10b,'FORMAT_HTML_BULLETED_LIST')),_0x58b4f0['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x41d10b,'FORMAT_HTML_NUMBERED_LIST')),_0x58b4f0['descriptionFactory']['registerDescriptionCallback'](_0x37b9a7=>{if('attribute'!==_0x37b9a7['type'])return;const _0x230225=_0x37b9a7['data'];if(!_0x230225||!_0x5439a8['has'](_0x230225['key']))return;if('htmlContent'===_0x230225['key'])return{'type':'format','content':St(_0x41d10b,'*Change\x20%0\x20content*',St(_0x41d10b,'ELEMENT_RAW_HTML'))};const {setItems:_0x400345,removeItems:_0x2853}=function(_0x20b12d,_0x130677,_0x69820e){const _0x20e5c5=[],_0x3a93a4=[],_0xe10dea=_0x20b12d['styles']??{},_0x221caf=_0x130677['styles']??{};for(const _0x3a9969 of new Set([...Object['keys'](_0xe10dea),...Object['keys'](_0x221caf)]))_0xe10dea[_0x3a9969]!==_0x221caf[_0x3a9969]&&(void 0x0===_0x221caf[_0x3a9969]?_0x3a93a4['push'](_0x3a9969):_0x20e5c5['push'](_0x3a9969+'\x20('+_0x221caf[_0x3a9969]+')'));const _0x1a5463=St(_0x69820e,'FORMAT_HTML_CLASS'),_0x387235=new Set(_0x20b12d['classes']??[]),_0x26feb1=new Set(_0x130677['classes']??[]),_0x51d943=[..._0x26feb1]['some'](_0x1f9765=>!_0x387235['has'](_0x1f9765)),_0x2945ac=[..._0x387235]['some'](_0x272efc=>!_0x26feb1['has'](_0x272efc));_0x51d943&&_0x20e5c5['push'](_0x1a5463),_0x2945ac&&_0x3a93a4['push'](_0x1a5463);const _0xa36f39=St(_0x69820e,'FORMAT_HTML_ATTRIBUTE'),_0x4b7743=_0x20b12d['attributes']??{},_0x8e9c3e=_0x130677['attributes']??{};let _0x21cecb=!0x1,_0x59eee3=!0x1;for(const _0x21c7e8 of new Set([...Object['keys'](_0x4b7743),...Object['keys'](_0x8e9c3e)]))_0x4b7743[_0x21c7e8]!==_0x8e9c3e[_0x21c7e8]&&(void 0x0===_0x8e9c3e[_0x21c7e8]?_0x59eee3=!0x0:_0x21cecb=!0x0);return _0x21cecb&&_0x20e5c5['push'](_0xa36f39),_0x59eee3&&_0x3a93a4['push'](_0xa36f39),{'setItems':_0x20e5c5,'removeItems':_0x3a93a4};}(_0x230225['oldValue']??{},_0x230225['newValue']??{},_0x41d10b);if(!_0x400345['length']&&!_0x2853['length'])return;const _0x50ca6c=[];return _0x400345['length']&&_0x50ca6c['push'](St(_0x41d10b,'*Set\x20format:*\x20%0',_0x400345['join'](',\x20'))),_0x2853['length']&&_0x50ca6c['push'](St(_0x41d10b,'*Remove\x20format:*\x20%0',_0x2853['join'](',\x20'))),{'type':'format','content':_0x50ca6c['join']('\x0a')};});}},oe=class extends _0x1a4f44{['_headingOptions'];['afterInit'](){const _0x37eb68=this['editor'];if(!_0x37eb68['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37eb68['config']['get']('heading.options');const _0x412c29=_0x37eb68['locale'],_0x5c8edd=_0x37eb68['plugins']['get']('TrackChangesEditing');_0x5c8edd['enableDefaultAttributesIntegration']('heading');for(const _0x84eb8 of this['_headingOptions'])'paragraph'!=_0x84eb8['model']&&_0x5c8edd['descriptionFactory']['registerElementLabel'](_0x84eb8['model'],_0x5dbddb=>{const _0x57de8c=this['_getHeadingLevel'](_0x84eb8['model']);return null!==_0x57de8c?_0x48e5c7(_0x5dbddb,_0x57de8c):_0x1f9ff5(_0x5dbddb,_0x84eb8['title']);});function _0x48e5c7(_0x58800b,_0x5298de){return St(_0x412c29,'ELEMENT_HEADING',[_0x58800b,_0x5298de]);}function _0x1f9ff5(_0xbec091,_0x35585f){return St(_0x412c29,'ELEMENT_HEADING_CUSTOM',[_0xbec091,_0x35585f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2470cc=this['editor'],_0x3d63e1=_0x2470cc['locale'];function _0x4cf17a(_0x5a284c,_0x465f81){return St(_0x3d63e1,'ELEMENT_HEADING_CUSTOM',[_0x5a284c,_0x465f81]);}_0x2470cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be798=>{if('formatBlock'!=_0x5be798['type'])return;const {data:_0x25028a}=_0x5be798;if(_0x25028a&&'heading'==_0x25028a['commandName']){const _0x51d3a4=_0x25028a['commandParams'][0x0]['value'],_0x4c12f0=this['_getHeadingLevel'](_0x51d3a4);if(null!==_0x4c12f0)return{'type':'format','content':St(_0x3d63e1,'*Change\x20to:*\x20%0',(_0x2eb86b=0x1,_0x499c53=_0x4c12f0,St(_0x3d63e1,'ELEMENT_HEADING',[_0x2eb86b,_0x499c53])))};const _0x44c852=this['_headingOptions']['find'](_0x4b407f=>_0x4b407f['model']===_0x51d3a4)['title'];return{'type':'format','content':St(_0x3d63e1,'*Change\x20to:*\x20%0',_0x4cf17a(0x1,_0x44c852))};}var _0x2eb86b,_0x499c53;});}['_getHeadingLevel'](_0x3588e6){const _0x5ddbe4=_0x3588e6['match'](/^heading(\d+)/);if(_0x5ddbe4)return _0x5ddbe4[0x1];const _0x467c5b=this['_headingOptions']?.['find'](_0x112d27=>_0x112d27['model']==_0x3588e6);if(_0x467c5b&&_0x467c5b['view']){const _0x54970f=_0x467c5b['view'],_0x50ebf7=(_0x54970f['name']??_0x54970f)['match'](/^h(\d+)/);if(_0x50ebf7)return _0x50ebf7[0x1];}return null;}},ae=class extends _0x1a4f44{['afterInit'](){const _0x4f8406=this['editor'];if(!_0x4f8406['plugins']['has']('HighlightEditing'))return;const _0xef7705=_0x4f8406['plugins']['get']('TrackChangesEditing'),_0x3bb155=_0x4f8406['locale'];_0xef7705['enableDefaultAttributesIntegration']('highlight'),_0xef7705['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x3bb155,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10ce5d=this['editor'],_0x5b34e7=_0x10ce5d['locale'];_0x10ce5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f720=>{if('formatInline'!=_0x18f720['type'])return;const {data:_0x413e85}=_0x18f720;if(_0x413e85&&'highlight'==_0x413e85['commandName']){const _0x1b928b=_0x5b34e7['t'],_0x1eaafb=_0x413e85['commandParams'][0x0]['value'];if(_0x1eaafb){const _0x3a96c3=_0x10ce5d['config']['get']('highlight.options')['find'](_0xd2b2ec=>_0xd2b2ec['model']==_0x1eaafb);return{'type':'format','content':St(_0x5b34e7,'*Set\x20highlight:*\x20%0',_0x1b928b(_0x3a96c3['title'])['toLowerCase']()),'color':{'value':_0x3a96c3['color'],'title':_0x3a96c3['title']}};}return{'type':'format','content':St(_0x5b34e7,'*Remove\x20highlight*',St(_0x5b34e7,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x1a4f44{['afterInit'](){const _0x433b6a=this['editor'];if(!_0x433b6a['plugins']['has']('HorizontalLineEditing'))return;_0x433b6a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x284e27=_0x433b6a['plugins']['get']('TrackChangesEditing'),_0x281265=_0x433b6a['locale'];_0x284e27['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59e32b=>St(_0x281265,'ELEMENT_HORIZONTAL_LINE',_0x59e32b));}},le=class extends _0x1a4f44{['afterInit'](){const _0x2c7f27=this['editor'];if(!_0x2c7f27['plugins']['has']('HtmlEmbed'))return;const _0x6c7697=_0x2c7f27['plugins']['get']('TrackChangesEditing'),_0x46d065=_0x2c7f27['locale'];_0x6c7697['descriptionFactory']['registerElementLabel']('rawHtml',_0x640eb2=>St(_0x46d065,'ELEMENT_HTML_EMBED',_0x640eb2)),_0x6c7697['enableDefaultAttributesIntegration']('htmlEmbed'),_0x6c7697['descriptionFactory']['registerDescriptionCallback'](_0x338145=>{if('attribute'!=_0x338145['type'])return;const {data:_0x9b84af}=_0x338145;return _0x9b84af&&'value'==_0x9b84af['key']&&_0x338145['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x46d065,'*Change\x20%0\x20content*',St(_0x46d065,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e40f=this['editor'],_0xa73a0b=_0x36e40f['locale'];_0x36e40f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ba733=>{if('formatBlock'!=_0x4ba733['type'])return;const {data:_0x13247b}=_0x4ba733;return _0x13247b&&'htmlEmbed'==_0x13247b['commandName']?{'type':'format','content':St(_0xa73a0b,'*Change\x20%0\x20content*',St(_0xa73a0b,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x1a4f44{['afterInit'](){const _0x47f55d=this['editor'];if(!_0x47f55d['plugins']['has']('ImageEditing'))return;const _0x1f973d=_0x47f55d['plugins']['get']('TrackChangesEditing'),_0x1ce3bd=_0x47f55d['plugins']['get']('ImageUtils'),_0x4a0501=_0x47f55d['locale'];_0x1f973d['enableCommand']('insertImage'),_0x1f973d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a3cdf=>St(_0x4a0501,'ELEMENT_IMAGE',_0x3a3cdf)),_0x1f973d['descriptionFactory']['registerElementLabel']('imageInline',_0x426af0=>St(_0x4a0501,'ELEMENT_INLINE_IMAGE',_0x426af0)),_0x1f973d['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x4a0501,'ELEMENT_CAPTION')),_0x47f55d['plugins']['has']('ImageUploadEditing')&&_0x1f973d['enableCommand']('uploadImage'),_0x47f55d['plugins']['has']('ImageBlockEditing')&&_0x47f55d['plugins']['has']('ImageInlineEditing')&&(_0x1f973d['enableCommand']('imageTypeInline',(_0x4feabb,_0x4318f7)=>{const _0x9dfebf=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']);_0x47f55d['model']['change'](()=>{_0x1f973d['markBlockFormat'](_0x9dfebf,{'commandName':'imageTypeInline','commandParams':[_0x4318f7]},[],'convertBlockImageToInline');});}),_0x1f973d['enableCommand']('imageTypeBlock',(_0x3cd015,_0x814c0e)=>{_0x47f55d['model']['change'](_0x52cc5c=>{let _0x319d16=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0x4c7acb=_0x52cc5c['createRangeOn'](_0x319d16);const _0x18be7d=st['fromPosition'](_0x4c7acb['start'],'toPrevious'),_0xc740fb=st['fromPosition'](_0x4c7acb['end'],'toNext');_0x1f973d['forceDefaultExecution'](()=>_0x3cd015(_0x814c0e)),_0x319d16=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0x4c7acb=_0x52cc5c['createRangeOn'](_0x319d16);const _0x1e8fd6=_0x52cc5c['createRange'](_0x18be7d,_0xc740fb);_0x18be7d['detach'](),_0xc740fb['detach'](),_0x1f973d['markBlockFormat'](_0x319d16,{'commandName':'imageTypeInline','commandParams':[_0x814c0e]},[],'convertInlineImageToBlock'),_0x1e8fd6['start']['isBefore'](_0x4c7acb['start'])&&_0x1f973d['markInsertion'](_0x52cc5c['createRange'](_0x1e8fd6['start'],_0x4c7acb['start']),'convertInlineImageToBlock'),_0x4c7acb['end']['isBefore'](_0x1e8fd6['end'])&&_0x1f973d['markInsertion'](_0x52cc5c['createRange'](_0x4c7acb['end'],_0x1e8fd6['end']),'convertInlineImageToBlock');});}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1f973d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x50556e])=>{const _0x100574=_0x1f973d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ff1e6=_0x50556e['start'],_0x49be59=_0x50556e['end'];const _0x5beda6=_0x47f55d['model']['schema']['getNearestSelectionRange'](_0x4ff1e6,'backward'),_0x4e1207=_0x47f55d['model']['schema']['getNearestSelectionRange'](_0x49be59,'forward');_0x5beda6['isCollapsed']&&(_0x4ff1e6=_0x5beda6['start']),_0x4e1207['isCollapsed']&&(_0x49be59=_0x4e1207['end']),_0x100574([_0x47f55d['model']['createRange'](_0x4ff1e6,_0x49be59)]);}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c72f4),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c72f4)),_0x47f55d['plugins']['has']('ImageCaptionEditing')&&(_0x1f973d['enableCommand']('toggleImageCaption',(_0x281348,_0x129eb2)=>{const _0x22aebd=_0x47f55d['plugins']['get']('ImageCaptionUtils');let _0x217681=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0xb9bfaa=_0x22aebd['getCaptionFromImageModelElement'](_0x217681);_0x47f55d['model']['change'](()=>{if(_0xb9bfaa)return void _0x1f973d['markDeletion'](_0x47f55d['model']['createRangeOn'](_0xb9bfaa));const _0x2e5d07=_0x1ce3bd['isBlockImage'](_0x217681);_0x281348(_0x129eb2),_0x217681=_0x1ce3bd['getClosestSelectedImageElement'](_0x47f55d['model']['document']['selection']),_0xb9bfaa=_0x22aebd['getCaptionFromImageModelElement'](_0x217681),_0x1f973d['markInsertion'](_0x47f55d['model']['createRangeOn'](_0xb9bfaa),_0x2e5d07?null:'imageCaption');});}),_0x1f973d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c72f4));const _0x41bd22=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ff9e1(_0x5bfdb0,_0x4b1a59){const _0x1999b2=_0x41bd22['findIndex'](({type:_0x347f31,subType:_0x3097f2})=>_0x5bfdb0['type']==_0x347f31&&_0x5bfdb0['subType']==_0x3097f2),_0x1e4e05=_0x41bd22['findIndex'](({type:_0x27dd75,subType:_0x29ce2f})=>_0x4b1a59['type']==_0x27dd75&&_0x4b1a59['subType']==_0x29ce2f);if(_0x1999b2<0x0||_0x1e4e05<0x0)return!0x1;const _0x11f1c8=_0x5bfdb0['getFirstRange'](),_0x105042=_0x4b1a59['getFirstRange']();if((0x0==_0x1999b2||0x1==_0x1999b2)&&0x2==_0x1e4e05&&_0x11f1c8['isIntersecting'](_0x105042))return!0x0;if(0x2==_0x1999b2&&0x3==_0x1e4e05){const _0x185df2=_0x1f973d['_findSuggestions'](_0x11f1c8,'insertion')['filter'](({suggestion:_0x5031df,meta:_0x4772c5})=>_0x4772c5['isOwn']&&'convertInlineImageToBlock'==_0x5031df['subType']);if(_0x185df2['length']>0x1&&_0x105042['end']['isEqual'](_0x11f1c8['start']))return!0x0;if(0x1==_0x185df2['length']&&(_0x11f1c8['start']['isEqual'](_0x105042['end'])||_0x11f1c8['end']['isEqual'](_0x105042['start'])))return!0x0;}if(0x3==_0x1999b2&&0x3==_0x1e4e05&&_0x11f1c8['start']['isBefore'](_0x105042['start'])){const _0xec23c8=_0x11f1c8['end']['nodeAfter'],_0x12eef0=_0x105042['start']['nodeBefore'];return _0x1ce3bd['isBlockImage'](_0xec23c8)&&_0xec23c8===_0x12eef0;}return!0x1;}function _0x2c72f4(_0x4388fa,_0x1fa79c){return _0x3ff9e1(_0x4388fa,_0x1fa79c)?[_0x4388fa,_0x1fa79c]:_0x3ff9e1(_0x1fa79c,_0x4388fa)?[_0x1fa79c,_0x4388fa]:null;}_0x47f55d['plugins']['has']('ImageResize')&&(_0x1f973d['enableDefaultAttributesIntegration']('resizeImage'),_0x1f973d['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x4a0501,'FORMAT_IMAGE_SIZE'))),_0x47f55d['plugins']['has']('ImageTextAlternativeEditing')&&_0x1f973d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47f55d['plugins']['has']('PictureEditing')&&_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x1930ab=>{if('attribute'!=_0x1930ab['type'])return;const {data:_0x5f41b3}=_0x1930ab;return _0x5f41b3&&'sources'==_0x5f41b3['key']?{'type':'format','content':''}:void 0x0;}),_0x47f55d['plugins']['has']('ImageSizeAttributes')&&_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x467e6e=>{if('attribute'!=_0x467e6e['type'])return;const {data:_0x415888}=_0x467e6e;return!_0x415888||'width'!=_0x415888['key']&&'height'!=_0x415888['key']?void 0x0:{'type':'format','content':''};}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x144cd3=>{if(_0x41bd22['find'](({type:_0x5da897,subType:_0x1b0406})=>_0x144cd3['type']==_0x5da897&&_0x144cd3['subType']==_0x1b0406))return _0x144cd3['previous']?{}:void 0x0;}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0xa86942=>{if('insertion'==_0xa86942['type']||'deletion'==_0xa86942['type']){const _0x3f6db9=_0xa86942['getContainedElement']();if(_0x3f6db9&&_0x3f6db9['is']('element','caption'))return{'type':'insertion'==_0xa86942['type']?'addObject':'removeObject','element':_0x3f6db9,'quantity':0x1};}}),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x30ee59=>'formatBlock'==_0x30ee59['type']&&'convertInlineImageToBlock'==_0x30ee59['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x30ee59['type']&&'convertBlockImageToInline'==_0x30ee59['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1f973d['descriptionFactory']['registerDescriptionCallback'](_0x4b9806=>{if('attribute'!=_0x4b9806['type'])return;const {data:_0x48d5ba}=_0x4b9806;if(!_0x48d5ba||'alt'!=_0x48d5ba['key'])return;const _0x2c66d3=_0x48d5ba['newValue'];return _0x2c66d3?{'type':'format','content':St(_0x4a0501,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c66d3+'\x22')}:{'type':'format','content':St(_0x4a0501,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576ff3=this['editor'],_0x512d5f=_0x576ff3['locale'];_0x576ff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xac2524=>{if('formatBlock'!=_0xac2524['type']&&'formatInline'!=_0xac2524['type'])return;const {data:_0x1f3146}=_0xac2524;if(_0x1f3146){if('imageTextAlternative'==_0x1f3146['commandName']){const _0xae9ed6=_0x1f3146['commandParams'][0x0]['newValue'];return _0xae9ed6?{'type':'format','content':St(_0x512d5f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xae9ed6+'\x22')}:{'type':'format','content':St(_0x512d5f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1f3146['commandName']){const _0x340157=_0x1f3146['commandParams'][0x0]['width'];return _0x340157?{'type':'format','content':St(_0x512d5f,'*Set\x20image\x20width:*\x20%0',_0x340157)}:{'type':'format','content':St(_0x512d5f,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xae6cc3=this['editor']['locale'],_0x4886ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x4886ef['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4886ef['descriptionFactory']['registerDescriptionCallback'](_0x4d5ba7=>{if('attribute'!=_0x4d5ba7['type'])return;const {data:_0x2e5794}=_0x4d5ba7;return _0x2e5794&&'src'==_0x2e5794['key']?_0x2e5794['newValue']&&_0x2e5794['oldValue']?{'type':'format','content':St(_0xae6cc3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ab241=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ab241['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1ab241['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ab241['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1ab241['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x396a42=this['editor'],_0x3100df=_0x396a42['locale'];_0x396a42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27889d=>{if('formatBlock'!=_0x27889d['type']&&'formatInline'!=_0x27889d['type'])return;const {data:_0x212173}=_0x27889d;return _0x212173&&'replaceImageSource'==_0x212173['commandName']?{'type':'format','content':St(_0x3100df,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x1a4f44{['afterInit'](){const _0x3a6e3e=this['editor'];if(!_0x3a6e3e['plugins']['has']('ImageStyleEditing'))return;const _0x3a168c=_0x3a6e3e['plugins']['get']('TrackChangesEditing'),_0x18e7b2=_0x3a6e3e['plugins']['get']('ImageUtils'),_0xe01370={};_0x3a168c['enableCommand']('imageStyle',(_0x4e219a,_0x3fe1bf)=>{const _0x2f408a=_0x3a6e3e['plugins']['get']('Users')['me'],_0x4dce03=_0x3a6e3e['commands']['get']('imageStyle');let _0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),_0x423686=_0x3a6e3e['model']['createRangeOn'](_0x5d332c),_0x51e2ec=_0x4dce03['value'];if(_0x51e2ec==_0x3fe1bf['value'])return;if(_0x3fe1bf['value']&&_0x18e7b2['isInlineImage'](_0x5d332c)&&!_0x4dce03['isStyleEnabled'](_0x3fe1bf['value']))return;const _0x599ba8={'commandName':'imageStyle','commandParams':[_0x3fe1bf],'formatGroupId':_0x25321b()};_0x3a6e3e['model']['change'](()=>{if(_0x3a168c['getSuggestions']()['filter'](_0x923cb7=>_0x923cb7['isInContent']&&_0x2f408a==_0x923cb7['author']&&('formatBlock'==_0x923cb7['type']||'formatInline'==_0x923cb7['type'])&&('imageStylePreApply'==_0x923cb7['subType']||'imageStylePostApply'==_0x923cb7['subType'])&&_0x923cb7['getFirstRange']()['isEqual'](_0x423686))['forEach'](_0x36da7c=>_0x3a168c['discardSuggestion'](_0x36da7c['head'])),_0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),_0x423686=_0x3a6e3e['model']['createRangeOn'](_0x5d332c),_0x4dce03['refresh'](),_0x3a6e3e['commands']['get']('imageTypeInline')['refresh'](),_0x3a6e3e['commands']['get']('imageTypeBlock')['refresh'](),_0x51e2ec=_0x4dce03['value'],_0x51e2ec!=_0x3fe1bf['value'])return _0x18e7b2['isInlineImage'](_0x5d332c)&&_0x4dce03['shouldConvertImageType'](_0x3fe1bf['value'],_0x5d332c)?(_0x4e219a({..._0x3fe1bf,'setImageSizes':!0x1}),_0x5d332c=_0x18e7b2['getClosestSelectedImageElement'](_0x3a6e3e['model']['document']['selection']),void _0x3a168c['markBlockFormat'](_0x5d332c,{..._0x599ba8,'commandReversedParams':[{'value':_0x51e2ec||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18e7b2['isBlockImage'](_0x5d332c)?_0x3a168c['markBlockFormat'](_0x5d332c,_0x599ba8,[],'imageStylePostApply'):_0x3a168c['markInlineFormat'](_0x423686,_0x599ba8,'imageStylePostApply'));});});for(const _0x101f51 of _0x3a6e3e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe01370[_0x101f51['name']]=_0x101f51['title']['toLowerCase']();_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3c1999])=>{_0x18e7b2['setImageNaturalSizeAttributes'](_0x3c1999['getContainedElement']());}),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x253512,_0x32a3a5)=>{_0x3a168c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x253512,{'commandName':_0x32a3a5['commandName'],'commandParams':_0x32a3a5['commandReversedParams']});}),_0x3a168c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2adbdb,_0x568e83){return _0x5dbae4(_0x2adbdb,_0x568e83)?[_0x2adbdb,_0x568e83]:_0x5dbae4(_0x568e83,_0x2adbdb)?[_0x568e83,_0x2adbdb]:null;});const _0x500577=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5dbae4(_0x22cffb,_0x3174aa){const _0x1b0b5c=_0x500577['findIndex'](({type:_0x1d154e,subType:_0x4a6c75})=>_0x22cffb['type']==_0x1d154e&&_0x22cffb['subType']==_0x4a6c75),_0x5289d2=_0x500577['findIndex'](({type:_0x998d9c,subType:_0xea9bcc})=>_0x3174aa['type']==_0x998d9c&&_0x3174aa['subType']==_0xea9bcc);if(_0x1b0b5c<0x0||_0x5289d2<0x0)return!0x1;const _0x3861f6=_0x22cffb['getFirstRange'](),_0x139200=_0x3174aa['getFirstRange']();if((0x0==_0x1b0b5c||0x1==_0x1b0b5c)&&0x2==_0x5289d2&&_0x3861f6['isIntersecting'](_0x139200))return!0x0;if(0x2==_0x1b0b5c&&0x3==_0x5289d2){const _0x5ed6cf=_0x3a168c['_findSuggestions'](_0x3861f6,'insertion')['filter'](({suggestion:_0xf05846,meta:_0x5724f2})=>_0x5724f2['isOwn']&&'convertInlineImageToBlock'==_0xf05846['subType']);if(_0x5ed6cf['length']>0x1&&_0x139200['end']['isEqual'](_0x3861f6['start']))return!0x0;if(0x1==_0x5ed6cf['length']&&(_0x3861f6['start']['isEqual'](_0x139200['end'])||_0x3861f6['end']['isEqual'](_0x139200['start'])))return!0x0;}if(0x3==_0x1b0b5c&&0x3==_0x5289d2&&_0x3861f6['start']['isBefore'](_0x139200['start'])){const _0x3f08f4=_0x3861f6['end']['nodeAfter'],_0xed2aaf=_0x139200['start']['nodeBefore'];return _0x18e7b2['isBlockImage'](_0x3f08f4)&&_0x3f08f4===_0xed2aaf;}return!0x1;}_0x3a6e3e['model']['document']['registerPostFixer'](()=>{let _0x3d4146=!0x1;const _0x355927=Array['from'](_0x3a6e3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ee121,data:_0x4c548f}of _0x355927){const {group:_0x25362f,type:_0x4cedf8,subType:_0x5f8630,id:_0x35e37c}=tt(_0x2ee121);if('suggestion'==_0x25362f&&_0x3a168c['hasSuggestion'](_0x35e37c)){if('formatBlock'==_0x4cedf8&&('imageStylePreApply'==_0x5f8630||'imageStylePostApply'==_0x5f8630)){const _0x118872=_0x3a168c['getSuggestion'](_0x35e37c);if(_0x4c548f['newRange']){const _0x1bf376=_0x118872['getFirstRange']()['getContainedElement']();if(_0x18e7b2['isBlockImage'](_0x1bf376))continue;_0x3a168c['discardSuggestion'](_0x118872),_0x3d4146=!0x0;}}if('insertion'==_0x4cedf8&&'imageCaption'==_0x5f8630&&!_0x4c548f['newRange']){const _0x49bf18=_0x3a168c['getSuggestion'](_0x35e37c);_0x49bf18['next']&&_0x49bf18['next']['isInContent']&&(_0x3a168c['discardSuggestion'](_0x49bf18['next']),_0x3d4146=!0x0);}}}return _0x3d4146;}),this['_registerLegacyDescription'](_0xe01370);}['_registerLegacyDescription'](_0x19d9d4){const _0x22d6c2=this['editor'],_0x342334=_0x22d6c2['locale'];_0x22d6c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x544ba3=>{if('formatBlock'!=_0x544ba3['type']&&'formatInline'!=_0x544ba3['type'])return;const {data:_0x578520}=_0x544ba3;if(!_0x578520||'imageStyle'!=_0x578520['commandName'])return;const _0x141f0c=_0x578520['commandParams'][0x0]['value'];return _0x4fff08('side'===_0x141f0c?St(_0x342334,'FORMAT_SIDE_IMAGE'):_0x19d9d4[_0x141f0c]||_0x141f0c);function _0x4fff08(_0x28c1f4){return{'type':'format','content':St(_0x342334,'*Format:*\x20%0',_0x28c1f4)};}});}},ge=class extends _0x1a4f44{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b4e0a){super(_0x3b4e0a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ddd8e=this['editor'],_0x455469=_0x1ddd8e['commands']['get']('importWord'),_0x2dd818=_0x1ddd8e['commands']['get']('trackChanges');_0x455469&&(_0x455469['on']('execute',(_0x57d718,[,_0x18d420])=>{this['_trackChangesValueDuringImport']=_0x2dd818['value'],_0x18d420['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x455469,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x455469,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2dd818['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ddd8e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x21c383,_0x32afc1){const {suggestions:_0x5f1ebd}=_0x32afc1,_0x377a4c=this['editor']['commands']['get']('trackChanges'),_0x3f6dc0=_0x377a4c['value'];this['_trackChangesValueDuringImport']!==_0x3f6dc0&&(_0x377a4c['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f1ebd&&_0x5f1ebd['forEach'](({id:_0x4d7455,type:_0x5e536c,author:_0x454ad4,created_at:_0x282d48})=>{const _0x434bc0={'id':_0x4d7455,'type':_0x5e536c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x454ad4,'createdAt':_0x282d48?new Date(_0x282d48):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x434bc0);});}},fe=class extends _0x1a4f44{['afterInit'](){const _0x5252d4=this['editor'],_0x505d31=_0x5252d4['plugins']['get']('TrackChangesEditing');if(_0x5252d4['plugins']['has']('IndentEditing')&&(_0x505d31['enableCommand']('indent'),_0x505d31['enableCommand']('outdent')),_0x5252d4['plugins']['has']('IndentBlock')){for(const _0x1e5f9b of['indentBlock','outdentBlock'])_0x505d31['enableDefaultAttributesIntegration'](_0x1e5f9b);if(_0x5252d4['plugins']['has']('ListEditing')){for(const _0x3ceec6 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x505d31['enableDefaultAttributesIntegration'](_0x3ceec6);}}const _0x4af584=_0x5252d4['locale'];_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x4af584,'FORMAT_INDENT')),_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x4af584,'FORMAT_INDENT')),_0x505d31['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x4af584,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142657=this['editor'],_0x3c08bc=_0x142657['locale'],_0x1df068=_0x142657['plugins']['get']('TrackChangesEditing');_0x1df068['descriptionFactory']['registerDescriptionCallback'](_0x3846b7=>{if('formatBlock'!=_0x3846b7['type'])return;const {data:_0x52828d}=_0x3846b7;if(!_0x52828d)return;if('indentBlock'!=_0x52828d['commandName']&&'outdentBlock'!=_0x52828d['commandName'])return;const _0x574ed1=_0x3846b7['getItems']()[0x0],_0x46311c=_0x1df068['descriptionFactory']['getItemLabel'](_0x574ed1);return'indentBlock'==_0x52828d['commandName']?{'type':'format','content':St(_0x3c08bc,'*Indent:*\x20%0',_0x46311c)}:'outdentBlock'==_0x52828d['commandName']?{'type':'format','content':St(_0x3c08bc,'*Outdent:*\x20%0',_0x46311c)}:void 0x0;});}},me=class extends _0x1a4f44{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x1a4f44{['afterInit'](){const _0x393438=this['editor'];if(!_0x393438['plugins']['has']('LinkEditing'))return;const _0x166d53=_0x393438['plugins']['get']('TrackChangesEditing'),_0x2da472=_0x393438['commands']['get']('link');_0x166d53['enableDefaultAttributesIntegration']('link'),_0x166d53['enableDefaultAttributesIntegration']('unlink');for(const _0x40df42 of _0x2da472['manualDecorators'])_0x166d53['descriptionFactory']['registerAttributeLabel'](_0x40df42['id'],'link\x20('+_0x40df42['label']['toLowerCase']()+')');_0x166d53['descriptionFactory']['registerDescriptionCallback'](_0x23cd5a=>{if('attribute'!=_0x23cd5a['type'])return;const {data:_0x13062f}=_0x23cd5a;if(!_0x13062f||'linkHref'!=_0x13062f['key'])return;const _0x185120=_0x13062f['newValue'],_0x3118d0=_0x393438['locale'];return{'type':'format','content':null==_0x185120?St(_0x3118d0,'*Remove\x20link*'):St(_0x3118d0,'*Set\x20link:*\x20%0','\x22'+_0x185120+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbbd570=this['editor'],_0x5b84be=_0xbbd570['locale'];_0xbbd570['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe5ea=>{if('formatInline'!=_0x2fe5ea['type'])return;const {data:_0x5e51b7}=_0x2fe5ea;if(_0x5e51b7){if('link'==_0x5e51b7['commandName']){const _0x245282=_0x5e51b7['commandParams'][0x0];return{'type':'format','content':St(_0x5b84be,'*Set\x20link:*\x20%0','\x22'+_0x245282+'\x22')};}return'unlink'==_0x5e51b7['commandName']?{'type':'format','content':St(_0x5b84be,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x1a4f44{['afterInit'](){const _0x55f037=this['editor'],_0x11b7bf=_0x55f037['locale'];if(!_0x55f037['plugins']['has']('LegacyListEditing'))return;const _0x21e850=_0x55f037['plugins']['get']('TrackChangesEditing'),_0x25a504=_0x55f037['plugins']['has']('LegacyTodoListEditing');function _0x208bbd(_0xddbe6d){return()=>{const _0x30beb5=_0x55f037['model']['document']['selection'],_0x10da3c=_0x55f037['commands']['get'](_0xddbe6d);if(_0x10da3c['value'])return void _0x55f037['execute']('paragraph',{});const _0x23d50a=_0xddbe6d['slice'](0x0,-0x4),_0x352abe=function(_0x5088cb,_0x48014d,_0x6447da){let _0x449c2b=Array['from'](_0x5088cb)['filter'](_0x27448c=>function(_0x5f0e57,_0x9cfc8b){return _0x9cfc8b['checkChild'](_0x5f0e57['parent'],'listItem')&&!_0x9cfc8b['isObject'](_0x5f0e57);}(_0x27448c,_0x6447da));_0x449c2b=_0x449c2b['filter'](_0x4da721=>!_0x4da721['is']('element','listItem')||_0x4da721['getAttribute']('listType')!=_0x48014d);const _0x72bc91=new Set();for(const _0x5752c4 of _0x449c2b)_0x5752c4['is']('element','listItem')?_0x72bc91['add'](_e(_0x5752c4)):_0x72bc91['add'](_0x5752c4);return Array['from'](_0x72bc91);}(_0x30beb5['getSelectedBlocks'](),_0x23d50a,_0x55f037['model']['schema']);_0x55f037['model']['change'](()=>{for(const _0xc72eba of _0x352abe)_0x21e850['markBlockFormat'](_0xc72eba,{'commandName':_0xddbe6d,'commandParams':[{'forceValue':!_0x10da3c['value']}],'formatGroupId':'blockName'},pe(_0xc72eba));});};}function _0x379b03(_0x1ad344){return()=>{const _0x1eb14d=function(_0x5d5b1c){let _0x3f8635=Array['from'](_0x5d5b1c);const _0x26552c=_0x3f8635['findIndex'](_0x7d9f0c=>'listItem'!=_0x7d9f0c['name']);return _0x26552c>-0x1&&(_0x3f8635=_0x3f8635['slice'](0x0,_0x26552c)),_0x3f8635;}(_0x55f037['model']['document']['selection']['getSelectedBlocks']()),_0x2f4f63=_0x55f037['model']['createRange'](_0x55f037['model']['createPositionAt'](_0x1eb14d[0x0],'before'),_0x55f037['model']['createPositionAt'](_0x1eb14d[_0x1eb14d['length']-0x1],'end'));_0x55f037['model']['change'](()=>{_0x21e850['markBlockFormat'](_0x2f4f63,{'commandName':_0x1ad344,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23729a){const _0x40b709=new Set();for(const _0x40d515 of _0x23729a){let _0x4aca0c=_0x40d515['nextSibling'];for(;_0x4aca0c&&_0x4aca0c['getAttribute']('listIndent')>_0x40d515['getAttribute']('listIndent');)_0x40b709['add'](_0x4aca0c),_0x4aca0c=_0x4aca0c['nextSibling'];}return Array['from'](_0x40b709);}(_0x1eb14d));});};}_0x21e850['enableCommand']('numberedList',_0x208bbd('numberedList')),_0x21e850['enableCommand']('bulletedList',_0x208bbd('bulletedList')),_0x25a504&&_0x21e850['enableCommand']('todoList',_0x208bbd('todoList')),_0x21e850['enableCommand']('indentList',_0x379b03('indentList')),_0x21e850['enableCommand']('outdentList',_0x379b03('outdentList')),_0x25a504&&_0x21e850['enableCommand']('checkTodoList',()=>{const _0x3326e4=_0x55f037['commands']['get']('checkTodoList'),_0x33b404=Array['from'](_0x3326e4['_selectedElements']);_0x33b404['filter'](_0x53bd6c=>_0x53bd6c['getAttribute']('todoListChecked')!=_0x3326e4['value']),_0x55f037['model']['change'](()=>{for(const _0x3facd4 of _0x33b404)_0x21e850['markBlockFormat'](_0x3facd4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3326e4['value']}]});});}),_0x21e850['descriptionFactory']['registerElementLabel']('listItem',_0x29f1eb=>St(_0x11b7bf,'ELEMENT_LIST_ITEM',_0x29f1eb)),_0x21e850['descriptionFactory']['registerDescriptionCallback'](_0x24ec8e=>{if('formatBlock'!=_0x24ec8e['type']&&'formatInline'!=_0x24ec8e['type'])return;const {data:_0x1d25d9}=_0x24ec8e;if(_0x1d25d9){if('numberedList'==_0x1d25d9['commandName']||'bulletedList'==_0x1d25d9['commandName']||'todoList'==_0x1d25d9['commandName'])switch(_0x1d25d9['commandName']['replace']('List','')){case'bulleted':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ce6d2(St(_0x11b7bf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d25d9['commandName'])return{'type':'format','content':St(_0x11b7bf,'*Indent:*\x20%0',St(_0x11b7bf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d25d9['commandName'])return{'type':'format','content':St(_0x11b7bf,'*Outdent:*\x20%0',St(_0x11b7bf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d25d9['commandName'])return _0x1d25d9['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x11b7bf,'*Check\x20item*')}:{'type':'format','content':St(_0x11b7bf,'*Uncheck\x20item*')};}function _0x1ce6d2(_0x184c83){return{'type':'format','content':St(_0x11b7bf,'*Change\x20to:*\x20%0',_0x184c83)};}});}};function _e(_0x238b12){const _0x38360b=_0x238b12['getAttribute']('listIndent');if(0x0==_0x38360b)return _0x238b12;let _0x1c020e=_0x238b12;for(;_0x238b12['previousSibling']&&_0x238b12['previousSibling']['is']('element','listItem');){const _0x1b0e10=_0x238b12['previousSibling']['getAttribute']('listIndent');if(_0x1b0e10==_0x38360b)_0x1c020e=_0x238b12['previousSibling'];else{if(_0x1b0e10<_0x38360b)break;}_0x238b12=_0x238b12['previousSibling'];}return _0x1c020e;}function pe(_0x464316){const _0x49c63c=[];if(_0x464316['is']('element','listItem')&&_0x464316['getAttribute']('listIndent')>0x0){let _0x431852=_0x464316['nextSibling'];for(;_0x431852&&'listItem'==_0x431852['name']&&_0x431852['getAttribute']('listIndent')==_0x464316['getAttribute']('listIndent');)_0x49c63c['push'](_0x431852),_0x431852=_0x431852['nextSibling'];}return _0x49c63c;}var Le=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5611fd=this['editor']['config']['get']('list.properties'),_0xfbaef6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5611fd['styles']&&_0xfbaef6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5611fd['reversed']&&_0xfbaef6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5611fd['startIndex']&&_0xfbaef6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xfbaef6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xdf0f5b,_0x1f559e={}){const _0x1eff8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474082=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1eff8e['markMultiRangeBlockFormat'](_0x474082,{'commandName':'listStyle','commandParams':[{'type':_0x1f559e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1106cd,_0x2dfbb2={}){const _0x79268e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38bb26=this['_getSuggestionBlocks'](_0x37e563=>_0x37e563['is']('element','listItem')&&'numbered'===_0x37e563['getAttribute']('listType'));if(_0x38bb26['length']<0x1)return;const _0x54cb8d=_0x38bb26['map'](_0x455c52=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x455c52,'before'),this['editor']['model']['createPositionAt'](_0x455c52,0x0)));this['editor']['model']['change'](()=>{_0x79268e['markMultiRangeBlockFormat'](_0x54cb8d,{'commandName':'listReversed','commandParams':[{'reversed':_0x2dfbb2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3ac44e,_0xf4939f={}){const _0x2ccf9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a4a40=this['_getSuggestionBlocks'](_0x136981=>_0x136981['is']('element','listItem')&&'numbered'===_0x136981['getAttribute']('listType'));if(_0x4a4a40['length']<0x1)return;const _0x41b28e=_0x4a4a40['map'](_0x5ba1f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ba1f7,'before'),this['editor']['model']['createPositionAt'](_0x5ba1f7,0x0)));this['editor']['model']['change'](()=>{_0x2ccf9f['markMultiRangeBlockFormat'](_0x41b28e,{'commandName':'listStart','commandParams':[{'startIndex':_0xf4939f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3788a2){if('formatBlock'!=_0x3788a2['type']&&'formatInline'!=_0x3788a2['type'])return;const _0x5bc7a4=this['editor']['locale'],{data:_0x1d6184}=_0x3788a2;if(!_0x1d6184)return;let _0x2e9252,_0x338f24;switch(_0x1d6184['commandName']){case'listStyle':_0x2e9252='*Change\x20to:*\x20%0',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252,St(_0x5bc7a4,this['_getTranslationKeyForListStyle'](_0x1d6184['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e9252=_0x1d6184['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252)};break;case'listStart':_0x2e9252='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x338f24={'type':'format','content':St(_0x5bc7a4,_0x2e9252,_0x1d6184['commandParams'][0x0]['startIndex'])};}return _0x338f24;}['_getSuggestionBlocksForListStyle'](){const _0x3be090=this['editor']['plugins']['get']('LegacyListUtils');let _0x231b18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x231b18[0x0]?.['is']('element','listItem')&&_0x231b18['unshift'](..._0x3be090['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x231b18[_0x231b18['length']-0x1]?.['is']('element','listItem')&&_0x231b18['push'](..._0x3be090['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x231b18=[...new Set(_0x231b18)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x231b18=_0x231b18['filter'](_0x1e35dd=>_0x1e35dd['is']('element','listItem'))),_0x231b18;}['_getSuggestionBlocks'](_0x15881c){const _0x1a1d2a=this['editor']['plugins']['get']('LegacyListUtils');let _0x268a89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x15881c)['map'](_0x44e782=>{const _0x47d5be=this['editor']['model']['createPositionAt'](_0x44e782,0x0);return[..._0x1a1d2a['getSiblingNodes'](_0x47d5be,'backward'),..._0x1a1d2a['getSiblingNodes'](_0x47d5be,'forward')];})['flat']();return _0x268a89=[...new Set(_0x268a89)],_0x268a89;}['_getTranslationKeyForListStyle'](_0x27539f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27539f)||'default')['toUpperCase']()+'_LIST_'+_0x27539f['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x1a4f44{['afterInit'](){const _0x16ec4d=this['editor'];if(!_0x16ec4d['plugins']['has']('MediaEmbedEditing'))return;const _0x27049c=_0x16ec4d['plugins']['get']('TrackChangesEditing'),_0x166dcc=_0x16ec4d['locale'];_0x27049c['enableCommand']('mediaEmbed'),_0x27049c['descriptionFactory']['registerElementLabel']('media',_0x454151=>St(_0x166dcc,'ELEMENT_MEDIA',_0x454151)),_0x16ec4d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x27049c['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x27049c['descriptionFactory']['registerDescriptionCallback'](_0x40818b=>{if('attribute'!=_0x40818b['type'])return;const {data:_0x486c9e}=_0x40818b;if(!_0x486c9e||'resizedWidth'!=_0x486c9e['key'])return;const _0x5e0d90=_0x40818b['getContainedElement']();return _0x5e0d90&&_0x5e0d90['is']('element','media')?{'type':'format','content':St(_0x166dcc,'*Set\x20format:*\x20%0',St(_0x166dcc,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x1a4f44{['afterInit'](){const _0x44cdd7=this['editor'];if(!_0x44cdd7['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x40fec3=_0x44cdd7['plugins']['get']('TrackChangesEditing'),_0x57d666=_0x44cdd7['locale'],_0x3ecafc=_0x44cdd7['plugins']['get']('MediaEmbedStyleEditing'),_0x213ef8={};for(const _0x9ab984 of _0x3ecafc['normalizedStyles'])_0x213ef8[_0x9ab984['name']]=_0x9ab984['title']['toLowerCase']();const _0x1ddec6=_0x3ecafc['normalizedStyles']['find'](_0x210ecd=>_0x210ecd['isDefault'])?.['name'];_0x40fec3['enableCommand']('mediaStyle',(_0x3af413,_0x4679cf)=>{const _0x5cf2b6=_0x44cdd7['plugins']['get']('Users')['me'],_0x186133=_0x44cdd7['commands']['get']('mediaStyle'),_0x95ba2=function(_0x5bd091){const _0x39a9f7=_0x5bd091['model']['document']['selection']['getSelectedElement']();return _0x39a9f7&&_0x39a9f7['is']('element','media')?_0x39a9f7:null;}(_0x44cdd7);if(!_0x95ba2)return;const _0x2e4e70=_0x44cdd7['model']['createRangeOn'](_0x95ba2);let _0x565fa6=_0x186133['value'];if(_0x565fa6==_0x4679cf['value'])return;const _0x13b890={'commandName':'mediaStyle','commandParams':[_0x4679cf],'formatGroupId':_0x25321b()};_0x44cdd7['model']['change'](()=>{_0x40fec3['getSuggestions']()['filter'](_0x3b3931=>_0x3b3931['isInContent']&&_0x5cf2b6==_0x3b3931['author']&&'formatBlock'==_0x3b3931['type']&&'mediaStylePostApply'==_0x3b3931['subType']&&_0x3b3931['getFirstRange']()['isEqual'](_0x2e4e70))['forEach'](_0x3900fc=>_0x40fec3['discardSuggestion'](_0x3900fc['head'])),_0x186133['refresh'](),_0x565fa6=_0x186133['value'],_0x565fa6!=_0x4679cf['value']&&_0x40fec3['markBlockFormat'](_0x95ba2,{..._0x13b890,'commandReversedParams':[{'value':'string'==typeof _0x565fa6?_0x565fa6:null}]},[],'mediaStylePostApply');});}),_0x40fec3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x40fec3['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x382903,_0x164622)=>{_0x40fec3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x382903,{'commandName':_0x164622['commandName'],'commandParams':_0x164622['commandReversedParams']});}),_0x40fec3['descriptionFactory']['registerDescriptionCallback'](_0x888a7d=>{if('formatBlock'!=_0x888a7d['type'])return;const {data:_0x23b424}=_0x888a7d;if(!_0x23b424||'mediaStyle'!=_0x23b424['commandName'])return;const _0x482441=_0x23b424['commandParams'][0x0]['value']||_0x1ddec6;return _0x482441?{'type':'format','content':St(_0x57d666,'*Format:*\x20%0',_0x213ef8[_0x482441]||_0x482441)}:void 0x0;});}},be=class extends _0x1a4f44{['afterInit'](){const _0x3368a1=this['editor'];_0x3368a1['plugins']['has']('MentionEditing')&&_0x3368a1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x1a4f44{['afterInit'](){const _0x498d59=this['editor'];if(!_0x498d59['plugins']['has']('MergeFieldsEditing'))return;const _0x36d42f=_0x498d59['plugins']['get']('TrackChangesEditing'),_0x112ce4=_0x498d59['locale'];_0x36d42f['enableCommand']('insertMergeField'),_0x36d42f['enableCommand']('insertMergeFieldBlock'),_0x36d42f['enableCommand']('insertMergeFieldImage'),_0x36d42f['descriptionFactory']['registerElementLabel']('mergeField',_0x20cbc3=>St(_0x112ce4,'ELEMENT_MERGE_FIELD',_0x20cbc3)),_0x36d42f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29ac18=>St(_0x112ce4,'ELEMENT_MERGE_FIELD',_0x29ac18)),_0x36d42f['descriptionFactory']['registerDescriptionCallback'](_0x4b4ffd=>{if('insertion'!=_0x4b4ffd['type']&&'deletion'!=_0x4b4ffd['type'])return;const _0x56cc4b=_0x4b4ffd['getContainedElement']();if(null==_0x56cc4b)return;const _0x3ba276=_0x498d59['plugins']['get']('MergeFieldsEditing');let _0x56a5d7;switch(_0x3ba276['getMergeFieldType'](_0x56cc4b)){case null:return;case'image':{const _0xeaf5f4=_0x3ba276['unwrapAffixes'](_0x56cc4b['getAttribute']('src'));_0x56a5d7=_0x3ba276['getLabel'](_0xeaf5f4)||_0xeaf5f4;break;}default:{const _0x23ec3b=_0x56cc4b['getAttribute']('id');_0x56a5d7=_0x3ba276['getLabel'](_0x23ec3b)||_0x23ec3b;break;}}return'insertion'==_0x4b4ffd['type']?{'type':'insertion','content':St(_0x112ce4,'*Insert:*\x20%0','\x22'+_0x56a5d7+'\x22\x20'+St(_0x112ce4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x112ce4,'*Remove:*\x20%0','\x22'+_0x56a5d7+'\x22\x20'+St(_0x112ce4,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x1a4f44{['afterInit'](){const _0x8de2a8=this['editor'],_0x2369d2=_0x8de2a8['plugins']['get']('TrackChangesEditing');_0x8de2a8['plugins']['has']('MultiLevelList')&&(_0x2369d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x2369d2['descriptionFactory']['registerDescriptionCallback'](_0x2484d7=>this['handleDescriptions'](_0x2484d7)));}['handleDescriptions'](_0x19fd4c){const _0x4a6627=this['editor']['locale'],{data:_0x3566e8}=_0x19fd4c,_0x5af8db={'type':'format','content':''};if(_0x3566e8&&'listMarkerStyle'==_0x3566e8['key']){if(!_0x3566e8['oldValue'])return{'type':'format','content':St(_0x4a6627,'*Set\x20format:*\x20%0',St(_0x4a6627,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3566e8['newValue']+')'};if(!_0x3566e8['newValue']){let _0x414df0=_0x19fd4c['head'];for(;_0x414df0;){if(_0x414df0['data']&&'listType'==_0x414df0['data']['key']&&_0x414df0['data']['newValue'])return _0x5af8db;_0x414df0=_0x414df0['next'];}return{'type':'format','content':St(_0x4a6627,'*Remove\x20format:*\x20%0',St(_0x4a6627,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3566e8['oldValue']+')'};}}}},Re=class extends _0x1a4f44{['afterInit'](){const _0x3f6882=this['editor'];if(!_0x3f6882['plugins']['has']('PageBreakEditing'))return;_0x3f6882['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x121187=_0x3f6882['plugins']['get']('TrackChangesEditing'),_0x35a251=_0x3f6882['locale'];_0x121187['descriptionFactory']['registerElementLabel']('pageBreak',_0x3705f6=>St(_0x35a251,'ELEMENT_PAGE_BREAK',_0x3705f6));}},Ne=class extends _0x1a4f44{['afterInit'](){const _0x311829=this['editor'];if(!_0x311829['plugins']['has']('Paragraph'))return;const _0x1ee3e0=_0x311829['locale'],_0x4b53cd=_0x311829['plugins']['get']('TrackChangesEditing');_0x4b53cd['descriptionFactory']['registerElementLabel']('paragraph',_0x3ff978=>St(_0x1ee3e0,'ELEMENT_PARAGRAPH',_0x3ff978)),_0x4b53cd['enableDefaultAttributesIntegration']('paragraph'),_0x4b53cd['enableCommand']('insertParagraph');const _0x2182f8=_0x4b53cd['descriptionFactory'];_0x2182f8['registerDescriptionCallback'](_0x3ad594=>{if('insertion'!==_0x3ad594['type'])return;const {start:_0x2cf052,end:_0x1e7b56}=_0x3ad594['getFirstRange']();if(!_0x2cf052['isTouching'](_0x1e7b56)||!_0x2cf052['nodeAfter'])return;const _0x25fc73=_0x311829['model']['schema'],_0x2c8240=_0x2cf052['nodeAfter'];return _0x25fc73['isBlock'](_0x2c8240)&&!_0x25fc73['isLimit'](_0x2c8240)&&_0x25fc73['checkChild'](_0x2c8240,'$text')?{'type':'insertion','content':St(_0x1ee3e0,'*Insert:*\x20%0',_0x2182f8['getItemLabel'](_0x2c8240,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x323090=this['editor'],_0x1fdece=_0x323090['locale'];_0x323090['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x456326=>{if('formatBlock'!=_0x456326['type'])return;const {data:_0x372d38}=_0x456326;return _0x372d38&&'paragraph'==_0x372d38['commandName']?{'type':'format','content':St(_0x1fdece,'*Change\x20to:*\x20%0',St(_0x1fdece,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x1a4f44{['afterInit'](){const _0x5392ef=this['editor'];_0x5392ef['commands']['get']('replaceSource')&&_0x5392ef['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x1a4f44{['afterInit'](){const _0x139640=this['editor'];_0x139640['plugins']['has']('RemoveFormatEditing')&&(_0x139640['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xd8a173=this['editor'];_0xd8a173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba614=>{if('formatBlock'!=_0x1ba614['type']&&'formatInline'!=_0x1ba614['type'])return;const {data:_0x44343f}=_0x1ba614;return _0x44343f&&'removeFormat'==_0x44343f['commandName']?{'type':'format','content':St(_0xd8a173['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x1a4f44{['afterInit'](){const _0x185c72=this['editor'];if(!_0x185c72['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e453d=_0x185c72['plugins']['get']('TrackChangesEditing');_0x3e453d['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e453d['enableCommand']('goToNextRestrictedEditingException');const _0x558e2f=_0x185c72['plugins']['get']('RestrictedEditingModeEditing');_0x558e2f['enableCommand']('trackChanges'),_0x558e2f['enableCommand']('acceptSuggestion'),_0x558e2f['enableCommand']('discardSuggestion'),_0x558e2f['enableCommand']('acceptAllSuggestions'),_0x558e2f['enableCommand']('discardAllSuggestions'),_0x558e2f['enableCommand']('acceptSelectedSuggestions'),_0x558e2f['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x1a4f44{['afterInit'](){const _0x11eb82=this['editor'];if(!_0x11eb82['plugins']['has']('ShiftEnter'))return;const _0x40599f=_0x11eb82['plugins']['get']('TrackChangesEditing');_0x40599f['enableCommand']('shiftEnter'),_0x40599f['descriptionFactory']['registerElementLabel']('softBreak',_0x2c2412=>St(_0x11eb82['locale'],'ELEMENT_LINE_BREAK',_0x2c2412));}};function we(_0x5795b0,_0x506908,_0x265ce4){const _0x2a3ff5=[];for(const _0x7f2e34 of _0x506908['getItems']())_0x7f2e34['hasAttribute'](_0x5795b0)&&_0x2a3ff5['push'](_0x265ce4['createRangeOn'](_0x7f2e34));return _0x2a3ff5;}var Fe=class extends _0x1a4f44{['afterInit'](){const _0x3f4152=this['editor'],_0x372995=_0x3f4152['plugins']['get']('TrackChangesEditing');_0x3f4152['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x372995['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2ccba7=this['editor'],_0x965f96=_0x2ccba7['model'],_0x34ec12=_0x2ccba7['locale'],_0x3d4ff9=_0x2ccba7['plugins']['get']('TrackChangesEditing'),_0x145970='restrictedEditingException',_0x3473fe=_0x2ccba7['commands']['get'](_0x145970);_0x3d4ff9['enableCommand'](_0x145970,(_0x5373d4,_0x2e13d4={})=>{const _0x18d0d6=_0x965f96['document']['selection'];if(_0x18d0d6['isCollapsed'])return void _0x5373d4(_0x2e13d4);const _0xb34354=void 0x0!==_0x2e13d4['forceValue']?_0x2e13d4['forceValue']:!_0x3473fe['value'];_0x965f96['change'](()=>{const _0x572902=Array['from'](_0x18d0d6['getRanges']());for(const _0x41d70e of _0x572902){const _0xe8bcb=_0xb34354?[_0x41d70e]:we(_0x145970,_0x41d70e,_0x965f96);for(const _0x460feb of _0xe8bcb)_0x3d4ff9['markInlineFormat'](_0x460feb,{'commandName':_0x145970,'commandParams':[{'forceValue':_0xb34354}]});}});}),_0x3d4ff9['descriptionFactory']['registerDescriptionCallback'](_0x29d8ed=>{if('formatBlock'!=_0x29d8ed['type']&&'formatInline'!=_0x29d8ed['type'])return;const {data:_0x43879f}=_0x29d8ed;return _0x43879f&&_0x43879f['commandName']==_0x145970?_0x43879f['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x34ec12,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x34ec12,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x3fb3fb=this['editor'],_0x94780=_0x3fb3fb['locale'],_0x3d66e0=_0x3fb3fb['plugins']['get']('TrackChangesEditing'),_0x284b21='restrictedEditingExceptionBlock',_0x69ae38=this['editor']['commands']['get'](_0x284b21);_0x3d66e0['enableCommand'](_0x284b21,(_0x21bc2d,_0x566d53={})=>{const _0xa1db13=this['editor']['model']['document']['selection'],_0x2e53f9=_0x566d53&&void 0x0!==_0x566d53['forceValue']?_0x566d53['forceValue']:!_0x69ae38['value'];let _0x5b7ca2=[];_0x5b7ca2=At(_0x2e53f9?Array['from'](_0xa1db13['getSelectedBlocks']())['filter'](_0x52c1ab=>function(_0x288299){return!!_0x288299['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x52c1ab)||function(_0x21d7f9,_0x1d0f0e){const _0x118750=_0x1d0f0e['createContext'](_0x21d7f9['parent']);return!!_0x1d0f0e['checkChild'](_0x118750,'restrictedEditingException')&&!!_0x1d0f0e['checkChild'](_0x118750['push']('restrictedEditingException'),_0x21d7f9);}(_0x52c1ab,this['editor']['model']['schema'])):Array['from'](_0xa1db13['getSelectedBlocks']())['map'](_0x22cb9e=>function(_0x5895c1){let _0x178595=_0x5895c1;for(;_0x178595['parent'];){if('restrictedEditingException'==_0x178595['parent']['name'])return _0x178595;_0x178595=_0x178595['parent'];}return null;}(_0x22cb9e))['filter'](_0xdd4cf8=>!!_0xdd4cf8),_0x3fb3fb['model']),_0x3fb3fb['model']['change'](()=>{for(const _0x366b05 of _0x5b7ca2)_0x3d66e0['markBlockFormat'](_0x366b05,{'commandName':_0x284b21,'commandParams':[{'forceValue':_0x2e53f9}]});});}),_0x3d66e0['descriptionFactory']['registerDescriptionCallback'](_0x1ad9b5=>{const {data:_0x54000b}=_0x1ad9b5;if(_0x54000b&&_0x54000b['commandName']==_0x284b21)return _0x54000b['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x94780,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x94780,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x1a4f44{['afterInit'](){const _0x39eb2a=this['editor'];_0x39eb2a['plugins']['has']('Style')&&_0x39eb2a['plugins']['has']('DataSchema')&&(_0x39eb2a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1fb68c=this['editor'],_0x5bf3f5=_0x1fb68c['locale'];_0x1fb68c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26289f=>{if('formatBlock'!=_0x26289f['type']&&'formatInline'!=_0x26289f['type'])return;const {data:_0x5d3264}=_0x26289f;return _0x5d3264&&'style'===_0x5d3264['commandName']?_0x5d3264['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5bf3f5,'*Set\x20format:*\x20%0',_0x5d3264['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x5bf3f5,'*Remove\x20format:*\x20%0',_0x5d3264['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x1a4f44{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x171b8f){super(_0x171b8f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x338be9=this['editor'],_0x500b60=_0x338be9['model']['document']['selection'];if(!_0x338be9['plugins']['has']('TableEditing'))return;const _0xd36b68=_0x338be9['locale'],_0x10368c=_0x338be9['plugins']['get']('TrackChangesEditing'),_0x870490=_0x338be9['plugins']['get']('TableUtils');_0x10368c['descriptionFactory']['registerElementLabel']('table',_0x510727=>St(_0xd36b68,'ELEMENT_TABLE',_0x510727)),this['_setupColumnsRowsFixing'](),_0x10368c['enableCommand']('insertTable'),_0x10368c['enableCommand']('selectTableRow'),_0x10368c['enableCommand']('selectTableColumn');for(const _0x4cd0ab of['insertTableRowAbove','insertTableRowBelow']){const _0x4350f1=_0x338be9['commands']['get'](_0x4cd0ab);_0x10368c['enableCommand'](_0x4cd0ab,_0x2d19b6=>{_0x338be9['model']['change'](_0x26cafc=>{_0x2d19b6();const _0x3807b9='above'===_0x4350f1['order'],_0x21584d=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0x5e8489=_0x870490['getRowIndexes'](_0x21584d),_0xcccde5=_0x3807b9?_0x5e8489['first']-0x1:_0x5e8489['last']+0x1,_0x4b3fa2=_0x21584d[0x0]['findAncestor']('table'),_0x1c24e8=_0x870490['createTableWalker'](_0x4b3fa2,{'startRow':_0xcccde5,'endRow':_0xcccde5}),_0x304ddd=Array['from'](_0x1c24e8)['map'](_0x424d62=>_0x26cafc['createRangeOn'](_0x424d62['cell']));_0x10368c['markMultiRangeInsertion'](_0x304ddd,'tableRow');});});}for(const _0x51bc6d of['insertTableColumnLeft','insertTableColumnRight']){const _0x30f0ac=_0x338be9['commands']['get'](_0x51bc6d);_0x10368c['enableCommand'](_0x51bc6d,_0x31ed6b=>{_0x338be9['model']['change'](_0xe7d072=>{_0x31ed6b();const _0x48b05c='left'===_0x30f0ac['order'],_0x47bcfc=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0xcea476=_0x870490['getColumnIndexes'](_0x47bcfc),_0x226b09=_0x48b05c?_0xcea476['first']-0x1:_0xcea476['last']+0x1,_0x4b8974=_0x47bcfc[0x0]['findAncestor']('table'),_0x5d0bfe=_0x870490['createTableWalker'](_0x4b8974,{'startRow':0x0,'column':_0x226b09,'includeAllSlots':!0x1}),_0x924e76=Array['from'](_0x5d0bfe)['map'](_0x52f2bc=>_0xe7d072['createRangeOn'](_0x52f2bc['cell']));_0x10368c['markMultiRangeInsertion'](_0x924e76,'tableColumn');});});}for(const _0x256263 of['removeTableRow','removeTableColumn']){const _0x8c62d6=_0x256263['substr'](0xb),_0x8dd6a5=_0x8c62d6['toLowerCase'](),_0xfffc5=_0x8dd6a5['substr'](0x0,0x3)+'span',_0x344d33='table'+_0x8c62d6,_0x10d6c4='min'+_0x8c62d6,_0x48758c='max'+_0x8c62d6;_0x10368c['enableCommand'](_0x256263,()=>{_0x338be9['model']['change'](_0x29a4dd=>{const _0x392676=_0x870490['getSelectionAffectedTableCells'](_0x500b60),_0x282bd3=_0x392676[0x0]['findAncestor']('table');let _0x169329;if('removeTableRow'==_0x256263){const _0x3a3bb0=_0x870490['getRowIndexes'](_0x392676);_0x169329={'startRow':_0x3a3bb0['first'],'endRow':_0x3a3bb0['last'],'includeAllSlots':!0x0};}else{const _0x49a39f=_0x870490['getColumnIndexes'](_0x392676);_0x169329={'startColumn':_0x49a39f['first'],'endColumn':_0x49a39f['last'],'includeAllSlots':!0x0};}const _0x2db655=_0x870490['createTableWalker'](_0x282bd3,_0x169329),_0x26ee71=Array['from'](_0x2db655)['map'](({cell:_0x5a4358})=>_0x5a4358),_0x24ba75=De(_0x26ee71['filter'](_0x230a43=>_0x230a43['hasAttribute'](_0xfffc5))),_0x3ae485=De(_0x26ee71['filter'](_0x5c56fe=>!_0x5c56fe['hasAttribute'](_0xfffc5)))['map'](_0x1d8ae0=>_0x29a4dd['createRangeOn'](_0x1d8ae0)),_0x3fd675=_0x10368c['markMultiRangeDeletion'](_0x3ae485,_0x344d33);if(_0x3fd675&&('tableRow'==_0x3fd675['subType']||'tableColumn'==_0x3fd675['subType'])){const _0x43d0c1=this['_getSuggestionCoords'](_0x3fd675);for(const _0x3e3b3b of _0x24ba75){const _0x17b54b=_0x29a4dd['createRangeOn'](_0x3e3b3b),_0x7341a7=_0x870490['getCellLocation'](_0x3e3b3b),_0x1d4eab=_0x3e3b3b['getAttribute'](_0xfffc5)-0x1,_0x51691d=_0x43d0c1[_0x10d6c4],_0x27e7ea=_0x43d0c1[_0x48758c];_0x51691d<=_0x7341a7[_0x8dd6a5]&&_0x7341a7[_0x8dd6a5]+_0x1d4eab<=_0x27e7ea&&_0x3fd675['addRange'](_0x17b54b);}}});});}function _0x42d506(_0x11d46f){const _0x38e5b0=Array['from'](_0x500b60['getRanges']())['map'](_0x31ebfd=>rt['fromRange'](_0x31ebfd));_0x338be9['model']['change'](_0x3d1a01=>{const _0x50aa7e=_0x3d1a01['batch'];_0x11d46f=_0x11d46f['filter'](_0x20e135=>'$graveyard'!=_0x20e135['root']['rootName']),_0x3d1a01['setSelection'](_0x11d46f),_0x338be9['commands']['get']('removeTableRow')['refresh'](),_0x338be9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x338be9['model']['enqueueChange'](()=>{_0x338be9['model']['enqueueChange'](_0x50aa7e,_0x2101ed=>{const _0x408d42=_0x38e5b0['filter'](_0x58486e=>'$graveyard'!=_0x58486e['root']['rootName']);_0x408d42['length']>0x0&&_0x2101ed['setSelection'](_0x408d42);for(const _0xff8e05 of _0x38e5b0)_0xff8e05['detach']();});});});}function _0x512bed(_0x30f823){_0x338be9['model']['change'](_0x3393d2=>{const _0x2ee114=Array['from'](_0x500b60['getRanges']())['map'](_0x183046=>rt['fromRange'](_0x183046)),_0x1a119f=[];for(const _0x43f2d9 of _0x30f823)for(const _0x161482 of _0x43f2d9['getItems']({'shallow':!0x0}))_0x1a119f['push'](_0x161482);for(const _0x340778 of _0x1a119f)'$graveyard'!=_0x340778['root']['rootName']&&(_0x3393d2['setSelection'](_0x3393d2['createPositionAt'](_0x340778,0x0)),_0x338be9['commands']['get']('removeTableColumn')['refresh'](),_0x338be9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xdc1cde=_0x2ee114['filter'](_0x25a9a4=>'$graveyard'!=_0x25a9a4['root']['rootName']);_0xdc1cde['length']>0x0&&_0x3393d2['setSelection'](_0xdc1cde);for(const _0x1397f1 of _0x2ee114)_0x1397f1['detach']();});}function _0x530c4f(_0x23d17b,_0x14b781){return _0x14b781['every'](_0x52ddf0=>_0x23d17b['some'](_0x5eb724=>_0x5eb724['end']['isEqual'](_0x52ddf0['start'])||_0x52ddf0['end']['isEqual'](_0x5eb724['start'])));}function _0x382c2a(_0x54d368,_0x21fdc4){return!_0x54d368['some'](_0x5e169b=>_0x21fdc4['some'](_0x52b6ef=>_0x5e169b['isIntersecting'](_0x52b6ef)))&&_0x54d368['some'](_0x3ebdd0=>_0x21fdc4['some'](_0x48c5a2=>_0x3ebdd0['end']['isTouching'](_0x48c5a2['start'])));}_0x10368c['descriptionFactory']['registerDescriptionCallback'](_0x5589e3=>{if('insertion'!=_0x5589e3['type']&&'deletion'!=_0x5589e3['type'])return;const _0x20ea9e=_0x5589e3['getContainedElement']();if(null!=_0x20ea9e&&_0x20ea9e['is']('element','table')){if('insertion'==_0x5589e3['type']){const _0x37f70f=_0x5589e3['getItems']()['filter'](_0x12f628=>_0x12f628['is']('$textProxy'))['map'](_0x3f5dea=>_0x3f5dea['data']);if(_0x37f70f['length'])return{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37f70f['join']('\x20')+'\x22'))};}if('deletion'==_0x5589e3['type']){const _0x1effe9=_0x5589e3['getItems']()['filter'](_0xbc7512=>_0xbc7512['is']('$textProxy'))['map'](_0x3a056d=>_0x3a056d['data']);if(_0x1effe9['length'])return{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1effe9['join']('\x20')+'\x22'))};}}}),_0x10368c['descriptionFactory']['registerDescriptionCallback'](_0x15edbe=>{if('tableRow'==_0x15edbe['subType']){const _0x4578ca=_0x15edbe['getItems']()['filter'](_0x3bc0d7=>_0x3bc0d7['is']('$textProxy'))['map'](_0x32c098=>_0x32c098['data']),_0x2ec4ce=this['_getSuggestionCoords'](_0x15edbe),_0x1d5e61=_0x2ec4ce['maxRow']-_0x2ec4ce['minRow']+0x1;if('insertion'==_0x15edbe['type'])return _0x4578ca['length']?{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d5e61,'\x22'+_0x4578ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW',_0x1d5e61))};if('deletion'==_0x15edbe['type'])return _0x4578ca['length']?{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d5e61,'\x22'+_0x4578ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_ROW',_0x1d5e61))};}if('tableColumn'==_0x15edbe['subType']){const _0x3cec2a=_0x15edbe['getItems']()['filter'](_0x29da12=>_0x29da12['is']('$textProxy'))['map'](_0x491787=>_0x491787['data']),_0x162f8c=this['_getSuggestionCoords'](_0x15edbe),_0x279710=_0x162f8c['maxColumn']-_0x162f8c['minColumn']+0x1;if('insertion'==_0x15edbe['type'])return _0x3cec2a['length']?{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x279710,'\x22'+_0x3cec2a['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xd36b68,'*Insert:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN',_0x279710))};if('deletion'==_0x15edbe['type'])return _0x3cec2a['length']?{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x279710,'\x22'+_0x3cec2a['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xd36b68,'*Remove:*\x20%0',St(_0xd36b68,'ELEMENT_TABLE_COLUMN',_0x279710))};}}),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x42d506),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x42d506),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x512bed),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x512bed),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x530c4f),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x530c4f),_0x10368c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x382c2a),_0x10368c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x382c2a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x30c289=this['editor'],_0x2b1c1a=_0x30c289['model']['document']['selection'];return(_0x3f8bc9,_0x4b2090)=>{_0x30c289['model']['change'](_0x27d05c=>{const {commandName:_0x52b4d8,commandParams:_0x4742d4}=_0x4b2090;let _0xc3b6fc=_0x3f8bc9[0x0]['end']['nodeBefore'];_0x4742d4&&_0x4742d4[0x0]&&!0x1===_0x4742d4[0x0]['forceValue']&&(_0xc3b6fc=_0x3f8bc9[0x0]['start']['nodeAfter']);const _0x32282b=_0x27d05c['createRangeIn'](_0xc3b6fc);if('$graveyard'==_0x32282b['root']['rootName'])return;const _0x5f11a4=Array['from'](_0x2b1c1a['getRanges']())['map'](_0x4a1f5d=>rt['fromRange'](_0x4a1f5d));_0x27d05c['setSelection'](_0x32282b),_0x30c289['commands']['get'](_0x52b4d8)['refresh'](),_0x4742d4['push']({'forceDefaultExecution':!0x0}),_0x30c289['execute'](_0x52b4d8,..._0x4742d4);const _0x487dcf=_0x5f11a4['filter'](_0x3b695d=>'$graveyard'!=_0x3b695d['root']['rootName']);_0x487dcf['length']>0x0&&_0x27d05c['setSelection'](_0x487dcf);for(const _0x2b975c of _0x5f11a4)_0x2b975c['detach']();});};}['_getCoordsForCells'](_0x401399){const _0x1e8a1e=this['editor']['plugins']['get']('TableUtils');let _0x59830b=Number['MAX_SAFE_INTEGER'],_0x9f1aaf=Number['MIN_SAFE_INTEGER'],_0x418e72=Number['MAX_SAFE_INTEGER'],_0x500207=Number['MIN_SAFE_INTEGER'];for(const _0x39b022 of _0x401399){if('$graveyard'==_0x39b022['root']['rootName'])continue;const {row:_0x9cb974,column:_0x10ba5d}=_0x1e8a1e['getCellLocation'](_0x39b022),_0x4775f5=_0x39b022['hasAttribute']('rowspan')?_0x39b022['getAttribute']('rowspan')-0x1:0x0,_0xce5e20=_0x39b022['hasAttribute']('colspan')?_0x39b022['getAttribute']('colspan')-0x1:0x0;_0x59830b=_0x9cb974<_0x59830b?_0x9cb974:_0x59830b,_0x9f1aaf=_0x9cb974+_0x4775f5>_0x9f1aaf?_0x9cb974+_0x4775f5:_0x9f1aaf,_0x418e72=_0x10ba5d<_0x418e72?_0x10ba5d:_0x418e72,_0x500207=_0x10ba5d+_0xce5e20>_0x500207?_0x10ba5d+_0xce5e20:_0x500207;}return{'minRow':_0x59830b,'maxRow':_0x9f1aaf,'minColumn':_0x418e72,'maxColumn':_0x500207};}['_setupColumnsRowsFixing'](){const _0x1ee9fe=this['editor'],_0x585cd7=_0x1ee9fe['plugins']['get']('TrackChangesEditing'),_0x41d7aa=_0x1ee9fe['plugins']['get']('TableUtils');_0x1ee9fe['model']['document']['on']('change:data',()=>{const _0x4ba068=Array['from'](_0x1ee9fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10a181,data:_0x3e1aaa}of _0x4ba068){const {group:_0x50a7b4,id:_0xb3e3fd,subType:_0x28fcb7}=tt(_0x10a181);if('suggestion'!=_0x50a7b4)continue;if(null!=_0x3e1aaa['oldRange'])continue;const _0x4f8534=_0x585cd7['getSuggestion'](_0xb3e3fd);this['_tablePostFixingSubtypes']['includes'](_0x28fcb7)&&this['_tableSuggestions']['add'](_0x4f8534);}},{'priority':'low'});const _0x41989e=(_0x8d384a,_0x1a559f)=>{let _0x5770d1=!0x1;const _0x2a1c10=_0x1a559f['createRangeOn'](_0x8d384a),_0x51fbb1=_0x8d384a['findAncestor']('table'),_0x3aaeef=_0x41d7aa['getCellLocation'](_0x8d384a);for(const _0x10c2e9 of this['_tableSuggestions']){const _0x3ec8c4=_0x10c2e9['subType'],_0x5ecbe9=_0x3ec8c4['startsWith']('tablePaste'),_0x1259d4=_0x3ec8c4['substr'](_0x5ecbe9?0xa:0x5),_0x22576e=_0x1259d4['toLowerCase'](),_0x244317=_0x22576e['substr'](0x0,0x3)+'span',_0x9684e9='min'+_0x1259d4,_0x194263='max'+_0x1259d4;if(!_0x10c2e9['isInContent'])continue;if(_0x51fbb1!=_0x10c2e9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10c2e9['isIntersectingWithRange'](_0x2a1c10))continue;const _0x58b983=_0x8d384a['hasAttribute'](_0x244317)?_0x8d384a['getAttribute'](_0x244317)-0x1:0x0,_0x1cb6f3=this['_getSuggestionCoords'](_0x10c2e9),_0xef1f7c=_0x1cb6f3[_0x9684e9],_0x5bc755=_0x1cb6f3[_0x194263];_0xef1f7c<=_0x3aaeef[_0x22576e]&&_0x3aaeef[_0x22576e]+_0x58b983<=_0x5bc755&&(_0x10c2e9['addRange'](_0x2a1c10),_0x5770d1=!0x0);}return _0x5770d1;};_0x1ee9fe['model']['document']['registerPostFixer'](_0x4ef1d1=>{let _0x3484f8=!0x1;for(const _0x385ce7 of _0x1ee9fe['model']['document']['differ']['getChanges']())if('insert'==_0x385ce7['type']){if('tableRow'==_0x385ce7['name']){for(const _0x93cff8 of _0x385ce7['position']['nodeAfter']['getChildren']())_0x3484f8=_0x3484f8||_0x41989e(_0x93cff8,_0x4ef1d1);}else'tableCell'==_0x385ce7['name']&&(_0x3484f8=_0x3484f8||_0x41989e(_0x385ce7['position']['nodeAfter'],_0x4ef1d1));}return _0x3484f8;});}['_getSuggestionCoords'](_0x344d88){return this['_getCoordsForCells'](_0x344d88['getRanges']()['map'](_0x50d4af=>_0x50d4af['start']['nodeAfter']));}};function De(_0x23dc0d){return Array['from'](new Set(_0x23dc0d)['values']());}var Ue=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x754cba=this['editor'],_0x7fff26=_0x754cba['model']['document']['selection'],_0x4c36ee=_0x754cba['locale'];if(!_0x754cba['plugins']['has']('TableEditing'))return;const _0xa48a43=_0x754cba['plugins']['get']('TrackChangesEditing'),_0x300cfa=_0x754cba['plugins']['get']('TableUtils'),_0x402765=_0x754cba['plugins']['get'](ve);_0x402765['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa48a43['enableCommand']('mergeTableCells',()=>{const _0xda4078=_0x300cfa['getSelectionAffectedTableCells'](_0x754cba['model']['document']['selection']);_0x754cba['model']['change'](()=>{_0xa48a43['markMultiRangeBlockFormat'](_0xda4078,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x754cba['commands']['get']('mergeTableCells')['on']('execute',(_0x4c55db,_0x3c8eb8)=>{_0x754cba['commands']['get']('trackChanges')['value']&&(_0x3c8eb8['length']>0x0&&_0x3c8eb8[_0x3c8eb8['length']-0x1]&&_0x3c8eb8[_0x3c8eb8['length']-0x1]['forceDefaultExecution']||_0xa48a43['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4c55db['stop']());},{'priority':'highest'});for(const _0x1398af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xc88254=_0x754cba['commands']['get'](_0x1398af);_0xa48a43['enableCommand'](_0x1398af,()=>{const _0x424429=_0x754cba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fbfc3=>_0x2fbfc3['is']('element','tableCell')),_0x364b76=_0xc88254['value'];_0x754cba['model']['change'](()=>{_0xa48a43['markMultiRangeBlockFormat']([_0x424429,_0x364b76],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5308f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x167cde=_0x754cba['commands']['get'](_0x5308f2);_0xa48a43['enableCommand'](_0x5308f2,()=>{const _0x5c42f3=_0x300cfa['getSelectionAffectedTableCells'](_0x754cba['model']['document']['selection'])[0x0],_0x37759d=_0x5c42f3['findAncestor']('table'),{column:_0x2049ea,row:_0x374acc}=_0x300cfa['getCellLocation'](_0x5c42f3);let _0x477ac9=[];if('horizontally'==_0x167cde['direction']){const _0x2eebb3=_0x300cfa['createTableWalker'](_0x37759d,{'startRow':_0x374acc,'endRow':_0x374acc,'includeAllSlots':!0x0});_0x477ac9=Array['from'](_0x2eebb3)['map'](_0xde08c9=>_0xde08c9['cell']);}else{const _0xd83794=_0x300cfa['createTableWalker'](_0x37759d,{'column':_0x2049ea,'includeAllSlots':!0x0});_0x477ac9=Array['from'](_0xd83794)['map'](_0x331777=>_0x331777['cell']);}_0x754cba['model']['change'](_0x394a73=>{_0xa48a43['markBlockFormat'](_0x394a73['createRangeOn'](_0x5c42f3),{'commandName':_0x5308f2,'commandParams':[]},_0x477ac9,_0x5308f2);});});}_0xa48a43['descriptionFactory']['registerDescriptionCallback'](_0x2216de=>{if('formatBlock'!=_0x2216de['type']&&'formatInline'!=_0x2216de['type'])return;const {data:_0x48fc9a}=_0x2216de;return _0x48fc9a&&'mergeTableCells'==_0x48fc9a['commandName']?{'type':'format','content':St(_0x4c36ee,'*Merge\x20cells*')}:void 0x0;}),_0xa48a43['descriptionFactory']['registerDescriptionCallback'](_0xcb0791=>{if('formatBlock'!=_0xcb0791['type']&&'formatInline'!=_0xcb0791['type'])return;const {data:_0xb5bf54}=_0xcb0791;return _0xb5bf54?'splitTableCellVertically'==_0xb5bf54['commandName']?{'type':'format','content':St(_0x4c36ee,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb5bf54['commandName']?{'type':'format','content':St(_0x4c36ee,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4eca1e=_0x402765['_acceptFormatSuggestionCallbackFactory']();for(const _0x1e3ea2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e3ea2,'accept',_0x4eca1e);for(const _0x2b4c75 of['splitTableCellVertically','splitTableCellHorizontally'])_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b4c75,'accept',_0x4eca1e);_0xa48a43['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xc9b64c=>{_0x754cba['model']['change'](_0x589753=>{const _0x134dbf=Array['from'](_0x7fff26['getRanges']())['map'](_0x741067=>rt['fromRange'](_0x741067));_0x589753['setSelection'](_0xc9b64c),_0x754cba['commands']['get']('mergeTableCells')['refresh'](),_0x754cba['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50bdc2=_0x134dbf['filter'](_0x3076b3=>'$graveyard'!=_0x3076b3['root']['rootName']);_0x50bdc2['length']>0x0&&_0x589753['setSelection'](_0x50bdc2);for(const _0x45e25c of _0x134dbf)_0x45e25c['detach']();});});for(const _0x5bc19c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c9ab8=_0x754cba['commands']['get'](_0x5bc19c);_0x3c9ab8['on']('set:isEnabled',(_0x4549b7,_0x132a3f,_0x1dc66b)=>{if(_0x1dc66b){const _0x54da5f=_0x754cba['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29d1e7=>_0x29d1e7['is']('element','tableCell'));this['_areMergableCells'](_0x3c9ab8['value'],_0x54da5f)||(_0x4549b7['return']=!0x1,_0x4549b7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46cec0=this['editor']['commands']['get']('mergeTableCells'),_0x365857=this['editor']['plugins']['get']('TableUtils');if(!_0x46cec0['isEnabled'])return!0x1;const _0x4c1cc6=_0x365857['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c0c7f of _0x4c1cc6)for(const _0xf27fe5 of _0x4c1cc6)if(_0x3c0c7f!=_0xf27fe5&&!this['_areMergableCells'](_0x3c0c7f,_0xf27fe5))return!0x1;return!0x0;}['_areMergableCells'](_0x218f20,_0x3bb63a){const _0xcc6e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39f539=this['editor']['model']['createRangeOn'](_0x218f20),_0x27a2e6=this['editor']['model']['createRangeOn'](_0x3bb63a),_0x5a37e3=new Set(),_0x133457=new Set();for(const _0x2883c9 of _0xcc6e7['getSuggestions']())if(('insertion'==_0x2883c9['type']||'deletion'==_0x2883c9['type']||'mergeTableCells'==_0x2883c9['subType'])&&_0x2883c9['isInContent']){for(const _0x2005fb of _0x2883c9['getRanges']())_0x2005fb['containsRange'](_0x39f539,!0x0)&&_0x5a37e3['add'](_0x2883c9['type']+':'+_0x2883c9['author']['id']),_0x2005fb['containsRange'](_0x27a2e6,!0x0)&&_0x133457['add'](_0x2883c9['type']+':'+_0x2883c9['author']['id']);}if(_0x5a37e3['size']!=_0x133457['size'])return!0x1;for(const _0x1e6d60 of _0x5a37e3)if(!_0x133457['has'](_0x1e6d60))return!0x1;return!0x0;}},Pe=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x4bebc0=this['editor'];if(!_0x4bebc0['plugins']['has']('TableEditing'))return;const _0x81cb3=_0x4bebc0['locale'],_0x2c9f09=_0x4bebc0['plugins']['get']('TrackChangesEditing');_0x2c9f09['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c9f09['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c9f09['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x81cb3,'FORMAT_HEADER_ROW')),_0x2c9f09['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x81cb3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5801a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2128e2=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x5801a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2128e2),_0x5801a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2128e2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x40bb04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c444a=this['editor']['plugins']['get']('TableUtils');function _0x3d9c0b({showActiveMarker:_0x18997d=!0x0,setDataAttribute:_0x7ef056=!0x0}={}){return(_0x35526f,_0x4e53e1,_0x43a26b)=>{const {type:_0x1f7b77,id:_0x4ee7d9}=tt(_0x4e53e1['markerName']);if(!_0x40bb04['hasSuggestion'](_0x4ee7d9))return;const _0x5cf4cb=_0x40bb04['getSuggestion'](_0x4ee7d9),_0x413eb9=_0x5cf4cb['data'];if('formatBlock'!=_0x5cf4cb['type']||!_0x413eb9||'setTableColumnHeader'!=_0x413eb9['commandName'])return;if(_0x4e53e1['item'])return void _0x35526f['stop']();if(!_0x43a26b['consumable']['consume'](_0x4e53e1['markerRange'],_0x35526f['name']))return;const _0x19bb7e=_0x4e53e1['markerRange']['start']['nodeAfter'],_0x9730e8=_0x4e53e1['markerRange']['end']['nodeBefore'],_0x1b2f03=_0x19bb7e['parent']['parent'],{column:_0x1e9b86}=_0x4c444a['getCellLocation'](_0x19bb7e),{column:_0x1d09ba}=_0x4c444a['getCellLocation'](_0x9730e8);for(let _0x437dcc=_0x1e9b86;_0x437dcc<=_0x1d09ba;_0x437dcc++){const _0x352e14=_0x4c444a['createTableWalker'](_0x1b2f03,{'column':_0x437dcc,'includeAllSlots':!0x1});for(const _0x11e8d5 of _0x352e14){const _0x184dfc=_0x11e8d5['cell'],_0x2c2775=_0x43a26b['mapper']['toViewElement'](_0x184dfc);_0x43a26b['writer']['addClass']('ck-suggestion-marker-'+_0x1f7b77,_0x2c2775),_0x7ef056&&_0x43a26b['writer']['setAttribute']('data-suggestion',_0x4ee7d9,_0x2c2775),_0x43a26b['mapper']['bindElementToMarker'](_0x2c2775,_0x4e53e1['markerName']),_0x18997d&&(_0x40bb04['activeMarkers']['includes'](_0x4e53e1['markerName'])?_0x43a26b['writer']['addClass']('ck-suggestion-marker--active',_0x2c2775):_0x43a26b['writer']['removeClass']('ck-suggestion-marker--active',_0x2c2775));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d9c0b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493f26,_0x569b38,_0x10797f)=>{_0x10797f['options']['showSuggestionHighlights']&&_0x3d9c0b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x493f26,_0x569b38,_0x10797f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5cfd57,_0x5b7622,_0x355a6b)=>{const {type:_0x1a9c65,id:_0x7bb6d9}=tt(_0x5b7622['markerName']);if(!_0x40bb04['hasSuggestion'](_0x7bb6d9))return;const _0x5a1788=_0x40bb04['getSuggestion'](_0x7bb6d9),_0x55a8b0=_0x5a1788['data'];if('formatBlock'!=_0x5a1788['type']||!_0x55a8b0||'setTableColumnHeader'!=_0x55a8b0['commandName'])return;const _0x5b938d=_0x355a6b['mapper']['markerNameToElements'](_0x5b7622['markerName']);if(_0x5b938d){for(const _0xcaed5 of _0x5b938d)_0x355a6b['writer']['removeClass']('ck-suggestion-marker-'+_0x1a9c65,_0xcaed5),_0x355a6b['writer']['removeClass']('ck-suggestion-marker--active',_0xcaed5),_0x355a6b['writer']['removeAttribute']('data-suggestion',_0xcaed5),_0x355a6b['mapper']['unbindElementFromMarkerName'](_0xcaed5,_0x5b7622['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4ed432=this['editor'],_0x8e7048=_0x4ed432['locale'];function _0x7de4e0(_0x5ec08a){return{'type':'format','content':St(_0x8e7048,'*Format:*\x20%0',_0x5ec08a)};}_0x4ed432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2102e6=>{if('formatBlock'!=_0x2102e6['type'])return;const {data:_0x35324d}=_0x2102e6;return _0x35324d?'setTableRowHeader'==_0x35324d['commandName']?_0x35324d['commandParams'][0x0]['forceValue']?_0x7de4e0(St(_0x8e7048,'FORMAT_HEADER_ROW')):_0x7de4e0(St(_0x8e7048,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x35324d['commandName']?_0x35324d['commandParams'][0x0]['forceValue']?_0x7de4e0(St(_0x8e7048,'FORMAT_HEADER_COLUMN')):_0x7de4e0(St(_0x8e7048,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x2863f4=this['editor'];if(!_0x2863f4['plugins']['has']('TableEditing')||!_0x2863f4['config']['get']('table.enableFooters'))return;const _0x5598cc=_0x2863f4['locale'],_0x4972d6=_0x2863f4['plugins']['get']('TrackChangesEditing');_0x4972d6['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4972d6['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x5598cc,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x1a4f44{['afterInit'](){const _0x2b551c=this['editor'],_0x219e10=_0x2b551c['locale'],_0x256e22=_0x2b551c['plugins']['get']('TrackChangesEditing');function _0x555fc3(_0x4f37c2){return{'type':'format','content':''+St(_0x219e10,'*Set\x20table\x20type:*\x20%0',_0x4f37c2)};}_0x2b551c['plugins']['has']('TableLayout')&&(_0x256e22['enableCommand']('insertTableLayout'),_0x256e22['enableDefaultAttributesIntegration']('tableType'),_0x256e22['descriptionFactory']['registerElementLabel'](_0x5ba151=>_0x5ba151['is']('element','table')&&'layout'===_0x5ba151['getAttribute']('tableType'),_0x561d37=>St(_0x219e10,'ELEMENT_LAYOUT_TABLE',_0x561d37)),_0x256e22['descriptionFactory']['registerDescriptionCallback'](_0x4743aa=>{const {data:_0x595137}=_0x4743aa;if(_0x595137&&'tableType'==_0x595137['key'])switch(_0x595137['newValue']){case'layout':return _0x555fc3(St(_0x219e10,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x555fc3(St(_0x219e10,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](He['map'](_0x3371a0=>[_0x3371a0,null]));var Ve=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x9a9f6c=this['editor'];if(!_0x9a9f6c['plugins']['has']('TableClipboard'))return;const _0x7e8bf4=_0x9a9f6c['plugins']['get']('TrackChangesEditing'),_0x5623c8=_0x9a9f6c['plugins']['get']('TableUtils'),_0x286a36=_0x9a9f6c['plugins']['get'](ve),_0x588309=_0x9a9f6c['plugins']['get']('TableClipboard'),_0x1e73b6=_0x9a9f6c['plugins']['get']('TableSelection'),_0x2fe336=_0x9a9f6c['plugins']['get'](mt);_0x286a36['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x9a9f6c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x9a9f6c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1020cd=null,_0x2565b0=!0x1;_0x2fe336['on']('contentInsertion',(_0x3518c8,_0x32755a)=>{_0x2565b0='paste'===_0x32755a['method'];}),_0x9a9f6c['model']['on']('insertContent',(_0xe9925e,_0x21e575)=>{if(!_0x2565b0&&null===_0x1e73b6['getSelectedTableCells']())return;const [_0x55fabb,_0x123a3f]=_0x21e575,_0x34cbbc=_0x21e575[_0x21e575['length']-0x1];_0x34cbbc&&_0x34cbbc['forceDefaultExecution']||_0x7e8bf4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x235252,_0x5b6f9c,_0x223330,_0x1afe5b,_0x12f015){if(_0x5b6f9c&&!_0x5b6f9c['is']('documentSelection'))return!0x1;const _0x4b4557=_0x12f015['getTableIfOnlyTableInContent'](_0x235252,_0x223330);if(!_0x4b4557||!je(_0x4b4557,void 0x0,_0x1afe5b))return!0x1;const _0x53ecea=_0x1afe5b['getSelectionAffectedTableCells'](_0x223330['document']['selection']);if(!_0x53ecea['length'])return!0x1;const _0x521e89=_0x53ecea[0x0]['findAncestor']('table'),_0x477248=_0x1afe5b['getRowIndexes'](_0x53ecea),_0x17a8ec=_0x1afe5b['getColumnIndexes'](_0x53ecea),_0x347913={'startRow':_0x477248['first'],'endRow':_0x477248['last'],'startColumn':_0x17a8ec['first'],'endColumn':_0x17a8ec['last']};return 0x1==_0x53ecea['length']&&(_0x347913['endRow']+=_0x1afe5b['getRows'](_0x4b4557)-0x1,_0x347913['endColumn']+=_0x1afe5b['getColumns'](_0x4b4557)-0x1),je(_0x521e89,_0x347913,_0x1afe5b);}(_0x55fabb,_0x123a3f,_0x9a9f6c['model'],_0x5623c8,_0x588309)&&(_0xe9925e['stop'](),_0x1020cd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x9a9f6c['model']['change'](()=>{_0x9a9f6c['model']['insertContent'](_0x21e575[0x0],_0x21e575[0x1],_0x21e575[0x2],{'forceDefaultExecution':!0x0});const _0x9d2e0b=_0x25321b(),{rowInsertionRanges:_0x4246f4,columnInsertionRanges:_0x1345fb,insertionRanges:_0x216a10,deletionRanges:_0x47886b,cells:_0xa2e698}=_0x1020cd;_0x4246f4['length']&&_0x7e8bf4['markMultiRangeInsertion'](_0x4246f4,'tablePasteRow',{'tablePasteChainId':_0x9d2e0b}),_0x1345fb['length']&&_0x7e8bf4['markMultiRangeInsertion'](_0x1345fb,'tablePasteColumn',{'tablePasteChainId':_0x9d2e0b}),_0x216a10['length']&&(_0x7e8bf4['markMultiRangeInsertion'](_0x216a10,'tablePaste',{'tablePasteChainId':_0x9d2e0b,'skipNestingCheck':!0x0}),_0x216a10['forEach'](_0x136c0b=>_0x136c0b['detach']?.())),_0x47886b['length']&&(_0x7e8bf4['markMultiRangeDeletion'](_0x47886b,'tablePaste',{'tablePasteChainId':_0x9d2e0b,'skipNestingCheck':!0x0}),_0x47886b['forEach'](_0x23f6e6=>_0x23f6e6['detach']?.()));const _0x5944ce=_0x7e8bf4['markMultiRangeBlockFormat'](_0xa2e698['map'](({element:_0x5c2654})=>_0x5c2654),{'formatGroupId':_0x25321b()},[],'tablePasteCell',{'tablePasteChainId':_0x9d2e0b});if(_0x5944ce){const _0x2e0a97=_0x5944ce['getMarkers'](),_0x271ce9=[];for(const {element:_0x51bd9d,attributes:_0x49bdf9}of _0xa2e698){if(!_0x49bdf9)continue;const _0x12d28f=_0x9a9f6c['model']['createRangeOn'](_0x51bd9d),_0x175111=_0x2e0a97['find'](_0x221b82=>_0x221b82['getRange']()['isEqual'](_0x12d28f));_0x175111&&_0x271ce9['push']([_0x175111['name'],_0x49bdf9]);}_0x271ce9['length']&&_0x5944ce['setAttribute']('markerAttributes',Object['fromEntries'](_0x271ce9));}_0x1020cd=null;}));},{'priority':_0x535ad9['high']+0xa}),_0x2fe336['on']('contentInsertion',()=>{_0x2565b0=!0x1;},{'priority':'lowest'}),_0x9a9f6c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1ba305,_0x36fb89)=>{const [_0x408f6d,_0x23dee7,,_0x4b5e8a]=_0x36fb89;if(!_0x1020cd)return;_0x1ba305['stop']();const _0x4cc398=_0x408f6d['cell'],_0x58c42b=_0x23dee7,_0x4078bd=We(_0x4cc398),_0x142ac9=We(_0x58c42b);_0x1ba305['return']=_0x4cc398;let _0x54277c=null,_0x340c20=null;if(_0x142ac9||_0x4078bd){if(_0x4078bd&&!_0x142ac9){_0x4b5e8a['remove'](_0x4cc398['getChild'](0x0));for(const _0x115411 of Array['from'](_0x58c42b['getChildren']()))_0x4b5e8a['insert'](_0x115411,_0x4cc398,'end');const _0x958701=_0x1020cd['rowInsertionIndexes']['includes'](_0x408f6d['row']),_0x786d49=_0x1020cd['columnInsertionIndexes']['includes'](_0x408f6d['column']);_0x958701||_0x786d49||(_0x54277c=rt['fromRange'](_0x4b5e8a['createRangeIn'](_0x4cc398)));}else _0x142ac9&&!_0x4078bd&&(_0x340c20=_0x4b5e8a['createRangeIn'](_0x4cc398));}else{const _0x28ba94=_0x4b5e8a['createElement']('tableCellSuggestion'),_0x329fb5=_0x4b5e8a['createElement']('tableCellSuggestion');_0x4b5e8a['wrap'](_0x4b5e8a['createRangeIn'](_0x4cc398),_0x329fb5),_0x4b5e8a['insert'](_0x28ba94,_0x4cc398,0x0);for(const _0x5634e8 of Array['from'](_0x58c42b['getChildren']()))_0x4b5e8a['insert'](_0x5634e8,_0x28ba94,'end');_0x54277c=rt['fromRange'](_0x4b5e8a['createRangeOn'](_0x28ba94)),_0x340c20=rt['fromRange'](_0x4b5e8a['createRangeOn'](_0x329fb5));}const _0x389e5f=Array['from'](_0x58c42b['getAttributes']())['filter'](([_0x3ebf4f])=>He['includes'](_0x3ebf4f));_0x1020cd['cells']['push']({'element':_0x4cc398,'attributes':_0x389e5f['length']?Object['fromEntries'](_0x389e5f):null}),_0x54277c&&_0x1020cd['insertionRanges']['push'](_0x54277c),_0x340c20&&_0x1020cd['deletionRanges']['push'](_0x340c20);},{'priority':'high'}),_0x5623c8['on']('insertColumns',(_0x57b2f2,_0x2acafd)=>{const [_0xbc163a,_0x4d1f71={}]=_0x2acafd;if(!_0x1020cd)return;const _0x4d7ad9=_0x4d1f71['at']||0x0,_0x3615fe=_0x4d1f71['columns']||0x1;_0x1020cd['columnInsertionIndexes']=new Array(_0x3615fe)['fill'](_0x4d7ad9)['map']((_0x16e674,_0x319aee)=>_0x16e674+_0x319aee);for(const {cell:_0x3c594d}of _0x5623c8['createTableWalker'](_0xbc163a,{'startColumn':_0x4d7ad9,'endColumn':_0x4d7ad9+_0x3615fe-0x1}))_0x1020cd['columnInsertionRanges']['push'](_0x9a9f6c['model']['createRangeOn'](_0x3c594d));},{'priority':'low'}),_0x5623c8['on']('insertRows',(_0x1d387a,_0x572def)=>{const [_0xfcbe74,_0x18890e={}]=_0x572def;if(!_0x1020cd)return;const _0x7c29f7=_0x18890e['at']||0x0,_0x4eb057=_0x18890e['rows']||0x1;_0x1020cd['rowInsertionIndexes']=new Array(_0x4eb057)['fill'](_0x7c29f7)['map']((_0x43fe3a,_0x364277)=>_0x43fe3a+_0x364277);for(const {cell:_0x4ed591}of _0x5623c8['createTableWalker'](_0xfcbe74,{'startRow':_0x7c29f7,'endRow':_0x7c29f7+_0x4eb057-0x1}))_0x1020cd['rowInsertionRanges']['push'](_0x9a9f6c['model']['createRangeOn'](_0x4ed591));},{'priority':'low'}),_0x7e8bf4['descriptionFactory']['registerDescriptionCallback'](_0x5e991f=>{if(_0x5e991f['subType']&&_0x5e991f['subType']['startsWith']('tablePaste'))return _0x5e991f['previous']?{}:{'type':'insertion','content':St(_0x9a9f6c['locale'],'*Replace\x20table\x20cells*')};});const _0x133b27=()=>!0x1;for(const _0x1daa57 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion',_0x1daa57,'join',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('deletion',_0x1daa57,'join',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1daa57,'join',_0x133b27);_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x133b27),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1986ae,_0x26e668,_0x46d45d)=>{const _0x35f7ea=_0x1986ae['map'](_0x920f36=>_0x920f36['getContainedElement']())['filter'](_0x194c2b=>_0x194c2b),_0x56ca4a=new Map(_0x35f7ea['map'](_0x26d92a=>[_0x26d92a,null]));if(_0x1020cd){for(const {element:_0x10aaa7,attributes:_0x2986c4}of _0x1020cd['cells'])_0x2986c4&&_0x56ca4a['set'](_0x10aaa7,_0x2986c4);}else{if(_0x46d45d&&_0x46d45d['markerAttributes'])for(const [_0x9c1a81,_0x22e5b6]of Object['entries'](_0x46d45d['markerAttributes'])){const _0x4dbc1f=_0x9a9f6c['model']['markers']['get'](_0x9c1a81),_0x4a4d44=_0x4dbc1f?_0x4dbc1f['getRange']()['getContainedElement']():null;_0x4a4d44&&_0x56ca4a['set'](_0x4a4d44,_0x22e5b6);}}_0x9a9f6c['model']['change'](_0x2d42f4=>{for(const [_0x44e868,_0x444daa]of _0x56ca4a)_0x2d42f4['setAttributes']({...$e,..._0x444daa},_0x44e868);});});const _0x2ceb73=(_0x27b6bd,_0x54fa62)=>{_0x7e8bf4['_suggestionFactory']['registerCustomCallback'](_0x27b6bd,'tablePaste',_0x54fa62,(_0x1cc594,_0x33a5d4,_0x12aaaf)=>{_0x9a9f6c['model']['change'](_0x2a9993=>{const _0x51cd4d=[];for(const _0x3b3bb7 of _0x1cc594){const _0x4d55bd=_0x3b3bb7['start']['nodeAfter'];_0x4d55bd['is']('element','tableCellSuggestion')&&_0x51cd4d['push'](_0x4d55bd);}_0x7e8bf4['_suggestionFactory']['getSuggestionCallback'](_0x27b6bd,null,_0x54fa62)(_0x1cc594,_0x33a5d4,_0x12aaaf);for(const _0x1ab507 of _0x51cd4d)'$graveyard'!=_0x1ab507['root']['rootName']&&_0x2a9993['unwrap'](_0x1ab507);});});};_0x2ceb73('insertion','accept'),_0x2ceb73('insertion','discard'),_0x2ceb73('deletion','accept'),_0x2ceb73('deletion','discard'),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x47362f=>{const _0x17b284=_0x47362f['map'](_0x10c79e=>_0x10c79e['getContainedElement']()),_0x2f5dd3=_0x17b284[0x0]['findAncestor']('table'),{minRow:_0x41b7b5,maxRow:_0x14505b}=_0x286a36['_getCoordsForCells'](_0x17b284);_0x5623c8['removeRows'](_0x2f5dd3,{'at':_0x41b7b5,'rows':_0x14505b-_0x41b7b5+0x1});}),_0x7e8bf4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x97f7df=>{const _0x28ee03=_0x97f7df['map'](_0x34d90d=>_0x34d90d['getContainedElement']()),_0x1fd066=_0x28ee03[0x0]['findAncestor']('table'),{minColumn:_0x2f0d98,maxColumn:_0xa6260d}=_0x286a36['_getCoordsForCells'](_0x28ee03);_0x5623c8['removeColumns'](_0x1fd066,{'at':_0x2f0d98,'columns':_0xa6260d-_0x2f0d98+0x1});});const _0xcd54c3=(_0x6dbac1,_0xa8e42f)=>{if(!_0xa8e42f['subType']||!_0xa8e42f['subType']['startsWith']('tablePaste'))return;const _0x59dcc4=_0xa8e42f['attributes']['tablePasteChainId'],_0x528c05=_0x7e8bf4['getSuggestions']()['filter'](_0x451ed1=>_0x451ed1['isInContent']&&_0x451ed1['attributes']&&_0x451ed1['attributes']['tablePasteChainId']==_0x59dcc4);_0x528c05['length']&&_0xa8e42f['getAllAdjacentSuggestions']()['length']!=_0x528c05['length']&&_0x528c05['reduce']((_0x467c08,_0x42b1db)=>(_0x467c08['next']=_0x42b1db,_0x42b1db['previous']=_0x467c08,_0x42b1db));};function _0x921c0b(_0x57c01e,_0x4fd8c3=!0x0){const {id:_0x3ed496,authorId:_0x5c3a6c}=tt(_0x57c01e['markerName']),_0x203d96=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x492559=_0x7e8bf4['activeMarkers']['includes'](_0x57c01e['markerName']);return _0x492559&&_0x203d96['push']('ck-suggestion-marker--active'),{'classes':_0x203d96,'attributes':{'data-suggestion':_0x3ed496,'data-author-id':_0x5c3a6c},'priority':_0x492559&&_0x4fd8c3?0xbc2:0xbb8};}_0x7e8bf4['on']('suggestionLoaded',_0xcd54c3,{'priority':'high'}),_0x7e8bf4['on']('suggestionUnloaded',_0xcd54c3,{'priority':'high'}),_0x9a9f6c['model']['document']['registerPostFixer'](()=>{let _0x5c9452=!0x1;const _0x551643=Array['from'](_0x9a9f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7a0c28,data:_0x443f29}of _0x551643){const {group:_0x1f9354,type:_0x382349,id:_0xde829c}=tt(_0x7a0c28);if('suggestion'!=_0x1f9354||'deletion'!=_0x382349||_0x443f29['oldRange'])continue;if(!_0x7e8bf4['hasSuggestion'](_0xde829c))continue;const _0x12c0b7=_0x7e8bf4['getSuggestion'](_0xde829c)['getRanges'](),_0x327fd0=_0x9a9f6c['plugins']['get']('Users')['me'];for(const _0x54f84c of _0x7e8bf4['getSuggestions']())if(_0x54f84c['isInContent']&&_0x54f84c['author']==_0x327fd0&&'formatBlock'==_0x54f84c['type']&&'tablePasteCell'==_0x54f84c['subType']&&_0x54f84c['getRanges']()['every'](_0x36d269=>_0x12c0b7['some'](_0x84f0a=>_0x84f0a['containsRange'](_0x36d269,!0x0)))){for(const _0x4f41ac of _0x54f84c['getAllAdjacentSuggestions']())_0x4f41ac['isInContent']&&(_0x4f41ac['discard'](),_0x5c9452=!0x0);}}return _0x5c9452;}),_0x9a9f6c['model']['document']['registerPostFixer'](_0xf79ff3=>{const _0x89ec0c=_0x9a9f6c['commands']['get']('redo');if(!_0x89ec0c||!_0x89ec0c['_createdBatches']['has'](_0xf79ff3['batch']))return!0x1;let _0x37895c=!0x1;const _0x4c24ac=_0x9a9f6c['plugins']['get']('Users')['me'],_0x5ad371=_0x9a9f6c['model']['document']['differ']['getChanges'](),_0x4c6ba7=Array['from'](_0x9a9f6c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39c12f,data:_0x364753})=>{const {group:_0x1afe16,subType:_0x32ef67,authorId:_0x39bc34}=tt(_0x39c12f);return'suggestion'==_0x1afe16&&'tablePaste'==_0x32ef67&&_0x39bc34==_0x4c24ac['id']&&!_0x364753['oldRange'];});for(const _0x37265f of _0x5ad371){if('insert'!=_0x37265f['type']||'tableCellSuggestion'!=_0x37265f['name']||0x1!=_0x37265f['length'])continue;const _0x442a3f=_0xf79ff3['createRange'](_0x37265f['position'],_0x37265f['position']['getShiftedBy'](0x1));if(!_0x4c6ba7['find'](({data:_0x1809ba})=>_0x1809ba['newRange']['isEqual'](_0x442a3f))){for(const {name:_0x4d2f0c,data:_0x675df3}of _0x4c6ba7)if(_0x442a3f['containsRange'](_0x675df3['newRange'])){_0xf79ff3['updateMarker'](_0x4d2f0c,{'range':_0x442a3f}),_0x37895c=!0x0;break;}}}return _0x37895c;}),_0x9a9f6c['model']['document']['registerPostFixer'](_0x1b36a3=>{let _0x56c492=!0x1;const _0x24fc2f=_0x9a9f6c['plugins']['get']('Users')['me'],_0x2f32d6=_0x7e8bf4['getSuggestions']()['filter'](_0xb95e74=>_0xb95e74['isInContent']&&_0xb95e74['author']==_0x24fc2f),_0x2daee9=new Set(),_0x40a4e5=new Set();for(const _0x4576ab of _0x2f32d6)if('tablePaste'==_0x4576ab['subType'])for(const _0x5e0270 of _0x4576ab['getMarkers']()){const _0x3d55c5=_0x5e0270['getRange']()['getContainedElement']();if(_0x3d55c5){if(_0x3d55c5['is']('element','tableCellSuggestion')&&We(_0x3d55c5)){_0x4576ab['removeMarker'](_0x5e0270['name']),_0x2daee9['add'](_0x3d55c5),_0x56c492=!0x0;const _0x37c832=_0x3d55c5['nextSibling'],_0x3acb0e=_0x3d55c5['previousSibling'],_0x421095=_0x37c832&&_0x37c832['is']('element','tableCellSuggestion'),_0x5bde69=_0x3acb0e&&_0x3acb0e['is']('element','tableCellSuggestion');_0x421095&&!_0x2daee9['has'](_0x37c832)&&_0x40a4e5['add'](_0x37c832),_0x5bde69&&!_0x2daee9['has'](_0x3acb0e)&&_0x40a4e5['add'](_0x3acb0e);}else _0x3d55c5['is']('element','paragraph')&&_0x3d55c5['isEmpty']&&(_0x4576ab['removeMarker'](_0x5e0270['name']),_0x56c492=!0x0);}}else{if('tablePasteCell'==_0x4576ab['subType']){if(!_0x4576ab['attributes']||!_0x4576ab['attributes']['tablePasteChainId'])continue;const _0x4baa36=_0x4576ab['attributes']['markerAttributes'];if(_0x4baa36&&Object['keys'](_0x4baa36)['length'])continue;const _0x2662b5=_0x4576ab['attributes']['tablePasteChainId'];let _0x394139=!0x0,_0x4aa6c3=!0x0;for(const _0xfd74a3 of _0x2f32d6)if(_0xfd74a3['subType']&&_0xfd74a3['subType']['startsWith']('tablePaste')){if(!_0xfd74a3['attributes']['tablePasteChainId']){_0x4aa6c3=!0x1;break;}if(_0xfd74a3['id']!=_0x4576ab['id']&&_0xfd74a3['attributes']['tablePasteChainId']==_0x2662b5){_0x394139=!0x1;break;}}_0x4aa6c3&&_0x394139&&(_0x4576ab['removeMarkers'](),_0x56c492=!0x0);}}for(const _0x111898 of _0x2daee9)_0x1b36a3['remove'](_0x111898);for(const _0x26ed6e of _0x40a4e5)_0x1b36a3['unwrap'](_0x26ed6e);return _0x56c492;}),_0x9a9f6c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1ad0b7=>_0x921c0b(_0x1ad0b7),'converterPriority':'high'}),_0x9a9f6c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x381a33,_0x32398d)=>_0x32398d['options']['showSuggestionHighlights']?_0x921c0b(_0x381a33,!0x1):null,'converterPriority':'high'});const _0x266b2f=_0x9a9f6c['editing']['view'];this['listenTo'](_0x266b2f['document'],'clipboardOutput',(_0x3b694e,_0xb5c023)=>{const _0x951b6b=[];for(const _0x275930 of _0x266b2f['createRangeIn'](_0xb5c023['content'])['getItems']())_0x275930['is']('element','suggestion-td')&&_0x951b6b['push'](_0x275930);_0x266b2f['change'](_0x1ce01c=>{for(const _0x3287a2 of _0x951b6b)_0x1ce01c['move'](_0x1ce01c['createRangeIn'](_0x3287a2),_0x1ce01c['createPositionBefore'](_0x3287a2)),_0x1ce01c['remove'](_0x3287a2);});});}};function We(_0x424cc4){if(_0x424cc4['isEmpty'])return!0x0;const _0x297a9f=_0x424cc4['getChild'](0x0);return _0x297a9f['is']('element','paragraph')&&_0x297a9f['isEmpty'];}function je(_0x3e3258,_0xd9cc17={},_0x513c64){for(const {isAnchor:_0x41b359,cellHeight:_0x50921b,cellWidth:_0x462f96}of _0x513c64['createTableWalker'](_0x3e3258,{'includeAllSlots':!0x0,..._0xd9cc17}))if(!_0x41b359||0x1!=_0x50921b||0x1!=_0x462f96)return!0x1;return!0x0;}var Ke=class extends _0x1a4f44{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x508e9a=this['editor']['plugins']['get']('TrackChangesEditing');_0x508e9a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x508e9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x508e9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x508e9a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x508e9a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x508e9a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x578dcd,_0x27acbf){const _0xc30abd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5af049=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54197b=_0x27acbf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x523334=_0x5af049['getColumnGroupElement'](_0x54197b);let _0x34659f=_0x523334?_0x5af049['getTableColumnsWidths'](_0x523334):null,_0x3c4e67=_0x54197b['getAttribute']('tableWidth')||null;const _0x722458=_0x27acbf['tableWidth']||_0x3c4e67,_0x4575ff=_0x27acbf['columnWidths']||_0x34659f,_0x54495c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a1fd8 of _0xc30abd['getSuggestions']()){const _0x30d87b=_0x5a1fd8['getContainedElement']();if('resizeTable'===_0x5a1fd8['subType']&&_0x30d87b===_0x54197b){_0x5a1fd8['author']!==_0x54495c&&_0x5a1fd8['discard']();const _0x474c75=_0x5a1fd8['data']['commandParams'];_0x3c4e67=_0x474c75[0x0]['tableWidth'],_0x34659f=_0x474c75[0x0]['columnWidths'];break;}}_0x578dcd({'table':_0x54197b,'tableWidth':_0x722458,'columnWidths':_0x4575ff}),_0xc30abd['markBlockFormat'](_0x54197b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3c4e67,'columnWidths':_0x34659f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e42b4){if('formatBlock'!=_0x5e42b4['type']&&'formatInline'!=_0x5e42b4['type'])return;const {data:_0x2530d0}=_0x5e42b4;return _0x2530d0&&'resizeTable'===_0x2530d0['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x1a4f44{['afterInit'](){const _0x3718a7=this['editor'];_0x3718a7['plugins']['has']('Template')&&_0x3718a7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x1a4f44{['afterInit'](){const _0x3485a5=this['editor'];if(!_0x3485a5['commands']['get']('insertTableOfContents'))return;_0x3485a5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1d8f19=_0x3485a5['plugins']['get']('TrackChangesEditing'),_0x15e5a7=_0x3485a5['locale'];_0x1d8f19['descriptionFactory']['registerElementLabel']('tableOfContents',_0xb6506f=>St(_0x15e5a7,'ELEMENT_TABLE_OF_CONTENTS',_0xb6506f));}},qe=class extends _0x1a4f44{['afterInit'](){const _0x105bdb=this['editor'];_0x105bdb['plugins']['has']('Title')&&(_0x105bdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x105bdb['locale'],'ELEMENT_TITLE')),_0x105bdb['model']['document']['registerPostFixer'](_0x1ed3e4=>{let _0x3db0fb=!0x1;const _0x421170=Array['from'](_0x105bdb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10991f,data:_0x1d7129}of _0x421170){const {group:_0xad7139}=tt(_0x10991f);if('suggestion'!==_0xad7139||!_0x1d7129['newRange'])continue;const _0x2d092a=_0x1d7129['newRange'],_0xd9d6b=_0x2d092a['end']['nodeBefore'];if(!_0xd9d6b||!_0xd9d6b['is']('element','title-content'))continue;if(!_0x2d092a['start']['isTouching'](_0x2d092a['end']))continue;const _0x1e0606=_0x105bdb['model']['schema']['getNearestSelectionRange'](_0x2d092a['end'],'forward');if(_0x1e0606&&_0x1e0606['isCollapsed']){const _0x27ff70=_0x1ed3e4['createRange'](_0x2d092a['start'],_0x1e0606['start']);_0x27ff70['isEqual'](_0x2d092a)||(_0x1ed3e4['updateMarker'](_0x10991f,{'range':_0x27ff70}),_0x3db0fb=!0x0);}_0x3db0fb||(_0x1ed3e4['removeMarker'](_0x10991f),_0x3db0fb=!0x0);}return _0x3db0fb;}));}},Ye=class extends _0x1a4f44{['afterInit'](){const _0x4fb2de=this['editor'],_0x2eeeba=_0x4fb2de['plugins']['get']('TrackChangesEditing');_0x4fb2de['plugins']['has']('Uploadcare')&&(_0x2eeeba['enableCommand']('uploadcare'),_0x4fb2de['plugins']['has']('UploadcareImageEdit')&&(_0x2eeeba['enableCommand']('uploadcareImageEdit'),_0x2eeeba['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2eeeba['descriptionFactory']['registerDescriptionCallback'](_0x44870f=>{if('attribute'!=_0x44870f['type'])return;const {data:_0x28a69d}=_0x44870f;return _0x28a69d&&'uploadcareImageId'==_0x28a69d['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x1a4f44{['afterInit'](){const _0x52f926=this['editor'],_0x4902ab=_0x52f926['plugins']['get']('TrackChangesEditing');_0x52f926['plugins']['has']('UndoEditing')&&(_0x4902ab['enableCommand']('undo'),_0x4902ab['enableCommand']('redo'));}},Ze=class extends _0x1a4f44{static get['requires'](){return[ve];}['afterInit'](){const _0x478131=this['editor'];_0x478131['plugins']['has']('TableCaptionEditing')&&_0x478131['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x1a4f44{['tableProperties'];['tableCellProperties'];constructor(_0x141919){super(_0x141919),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 _0x40bb79=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45c556 of this['tableProperties'])_0x40bb79['enableCommand'](_0x45c556,(_0x28dadd,_0x31b0d0)=>{const _0x1aafca=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45c556,[_0x1aafca],this['tableProperties'],'tableProperties',_0x28dadd,_0x31b0d0);});_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40bb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd488b2,_0x41b06d)=>this['handleDiscardAction'](this['tableProperties'],_0xd488b2,_0x41b06d)),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x18bcbf of this['tableCellProperties'])this['editor']['commands']['get'](_0x18bcbf)&&_0x40bb79['enableCommand'](_0x18bcbf,(_0x29fe1b,_0x4559d1)=>{const _0x5e88ef=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x18bcbf,_0x5e88ef,this['tableCellProperties'],'tableCellProperties',_0x29fe1b,_0x4559d1);});_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40bb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc8038f,_0x80649b)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc8038f,_0x80649b)),_0x40bb79['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x40bb79['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x40bb79['descriptionFactory']['registerDescriptionCallback'](_0x185218=>this['handleSuggestionDescription'](_0x185218)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x56dd3f,_0x1b45b9,_0x147026,_0x47f69f,_0x3c07cc,_0x11b63d){const _0x1ee8ea=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x11b63d['batch'],()=>{for(const _0x236491 of _0x1b45b9)if(this['_getSuggestion'](_0x236491,_0x47f69f))_0x3c07cc(_0x11b63d);else{const _0x515f6c={};for(const _0x59f60d of _0x147026){const _0x4d8efa=_0x236491['getAttribute'](_0x59f60d);void 0x0!==_0x4d8efa&&(_0x515f6c[_0x59f60d]=_0x4d8efa);}_0x3c07cc(_0x11b63d),_0x1ee8ea['markBlockFormat'](_0x236491,{'commandParams':[_0x515f6c]},[],_0x47f69f);}});}['handleDiscardAction'](_0x5c276f,_0x197bd0,_0x260f26){const _0x3312d5=_0x197bd0[0x0]['start']['nodeAfter'],_0x5a6c60=_0x260f26['commandParams'][0x0];this['editor']['model']['change'](_0x3de931=>{for(const _0x41a3f1 of _0x5c276f)void 0x0!==_0x5a6c60[_0x41a3f1]?_0x3de931['setAttribute'](_0x41a3f1,_0x5a6c60[_0x41a3f1],_0x3312d5):_0x3de931['removeAttribute'](_0x41a3f1,_0x3312d5);});}['handleSuggestionDescription'](_0x2be54c){if(_0x2be54c['data'])switch(_0x2be54c['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'](_0x3d41f9,_0x3d9c46){const _0x48e583=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1aba3a of _0x48e583['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d6d0d=_0x1aba3a['getContainedElement']();if(_0x1aba3a['subType']===_0x3d9c46&&_0x1d6d0d===_0x3d41f9)return _0x1aba3a;}return null;}['_registerTablePropertiesAttributes'](){const _0xc2f82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48cf59=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48d5ee of _0x48cf59){const _0x58a0db=_0x48d5ee['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xc2f82['descriptionFactory']['registerAttributeLabel'](_0x48d5ee,St(this['editor']['locale'],'FORMAT_'+_0x58a0db));}}},tn=class extends _0x1a4f44{['afterInit'](){const _0x29bb67=this['editor'];if(!_0x29bb67['plugins']['has']('LineHeight'))return;const _0x36cd52=_0x29bb67['plugins']['get']('TrackChangesEditing'),_0x4f67ed=_0x29bb67['locale'];_0x36cd52['enableDefaultAttributesIntegration']('lineHeight'),_0x36cd52['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x4f67ed,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x1a4f44{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4522ba,_0x3c4484,_0x20c4f0,_0x18a188,_0x3e0605,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(_0x4d5cb5){super(_0x4d5cb5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a039e,_0x55a1fa,_0x160f8e,_0x5b5755)=>{this['_model']['change'](()=>{for(const _0x358b7d of[..._0x5b5755,..._0x160f8e])this['_model']['markers']['has'](_0x358b7d)&&_0x4d5cb5['editing']['reconvertMarker'](_0x358b7d);});}),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']=_0x4d5cb5['plugins']['get'](_0x4522ba),this['_suggestionsConversion']=_0x4d5cb5['plugins']['get'](_0x3c4484),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4d5cb5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d5cb5['config']['get']('trackChanges.trackFormatChanges'),_0x4d5cb5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d5cb5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x4d5cb5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x36982f=this['editor'];_0x36982f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a8cf4,{writer:_0x1156ca})=>{let _0x4af75e='suggestion:'+_0x4a8cf4['getAttribute']('suggestion-type')+':'+_0x4a8cf4['getAttribute']('id');return _0x4a8cf4['getAttribute']('marker-count')&&(_0x4af75e+=':'+_0x4a8cf4['getAttribute']('marker-count')),_0x1156ca['createElement']('$marker',{'data-name':_0x4af75e});}}),_0x36982f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36982f['model']['document']['registerPostFixer'](_0x234c73=>{let _0x404baa=!0x1;const _0x34d429=Array['from'](_0x36982f['model']['document']['differ']['getChangedMarkers']()),_0x3beac8=new Set();for(const {name:_0xbbde06,data:_0x63b43b}of _0x34d429){const {group:_0x10b322,type:_0x381dc1,subType:_0x5bc31d,id:_0x115633}=tt(_0xbbde06);if('suggestion'!==_0x10b322)continue;const _0x2e1a0a=_0x5bc31d?'suggestion:'+_0x381dc1+':'+_0x5bc31d+':'+_0x115633:'suggestion:'+_0x381dc1+':'+_0x115633,_0x233cd1=_0x36982f['model']['markers']['getMarkersGroup'](_0x2e1a0a),_0x12432e=_0x36982f['model']['markers']['get'](_0xbbde06),_0x1843a6=this['_suggestions']['get'](_0x115633);if(null!=_0x63b43b['newRange']){'formatInline'==_0x381dc1&&(_0x404baa=_0x404baa||an(_0x63b43b['newRange'],_0xbbde06,_0x234c73,_0x36982f['model']['schema']));const _0x422c4d='attribute'==_0x381dc1&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x5bc31d)),_0x37de78='attribute'==_0x381dc1&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x5bc31d));if(_0x63b43b['newRange']['isCollapsed']||'$graveyard'==_0x63b43b['newRange']['root']['rootName']||'formatBlock'==_0x381dc1&&!ln(_0x63b43b['newRange'])||_0x422c4d&&!ln(_0x63b43b['newRange'])||_0x37de78&&un(_0x63b43b['newRange'])||'deletion'==_0x381dc1&&un(_0x63b43b['newRange'])||_0x12432e&&dn(_0x12432e,_0x233cd1))_0x234c73['removeMarker'](_0xbbde06),_0x404baa=!0x0;else{if(!_0x1843a6||!_0x1843a6['isInContent'])continue;if(_0x63b43b['newRange']&&_0x63b43b['oldRange']&&_0x63b43b['newRange']['isEqual'](_0x63b43b['oldRange']))continue;_0x3beac8['add'](_0x1843a6);}}}return _0x3beac8['size']>0x0&&(_0x404baa=!!this['_joinWithAdjacentSuggestions'](_0x3beac8)||_0x404baa),_0x404baa;}),_0x36982f['model']['document']['registerPostFixer'](_0x4d1afe=>{let _0x375eed=!0x1;for(const _0x696a91 of _0x36982f['model']['document']['differ']['getChanges']())if('insert'==_0x696a91['type'])for(const _0x297ec5 of this['_suggestions']['values']()){if(_0x297ec5['isMultiRange']||!_0x297ec5['isInContent'])continue;const _0x580b79='formatBlock'==_0x297ec5['type'],_0x1d46d0=this['_getAttributeKey'](_0x297ec5),_0x410e70=_0x1d46d0&&this['_suggestionsConversion']['isBlockAttribute'](_0x1d46d0);if(!_0x580b79&&!_0x410e70)continue;const _0x3ddcbf=_0x297ec5['getFirstRange']();if(_0x3ddcbf['start']['parent']!=_0x3ddcbf['end']['parent']&&!_0x3ddcbf['end']['isAtEnd']){const _0x4b8a72=_0x36982f['model']['createPositionAt'](_0x3ddcbf['start']['nodeAfter'],'end'),_0x271d3e=_0x36982f['model']['createRange'](_0x3ddcbf['start'],_0x4b8a72);_0x4d1afe['updateMarker'](_0x297ec5['getFirstMarker'](),{'range':_0x271d3e}),_0x375eed=!0x0;}}return _0x375eed;}),_0x36982f['model']['document']['registerPostFixer'](_0x192367=>this['_processAttributeChanges'](_0x192367)),_0x36982f['model']['document']['registerPostFixer'](_0x5e353b=>!_0x5e353b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e353b)),_0x36982f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36982f['model']['document']['on']('change:data',(_0x55890f,_0x2b7c78)=>{if(!_0x2b7c78['isLocal']||_0x2b7c78['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2444c5=_0x36982f['model']['document']['differ']['getChanges']();if(0x0==_0x2444c5['length'])return;const _0x1514b5=[],_0x4858dd=_0x2444c5['filter'](_0x4f5260=>'attribute'==_0x4f5260['type']),_0xfb2b74=_0x2444c5['filter'](_0x5bbe8a=>'insert'==_0x5bbe8a['type']&&'$text'!=_0x5bbe8a['name']);for(const _0x349a5 of _0x4858dd)this['_suggestionsConversion']['isRegisteredAttribute'](_0x349a5['attributeKey'])&&_0x1514b5['push']({'key':_0x349a5['attributeKey'],'newValue':_0x349a5['attributeNewValue'],'oldValue':_0x349a5['attributeOldValue'],'range':hn(_0x349a5['range'],_0x36982f['model'])});for(const _0x10abbf of _0xfb2b74){if('rename'!=_0x10abbf['action']&&'refresh'!=_0x10abbf['action'])continue;const _0x2a02f6=gn(_0x10abbf['position']['nodeAfter'],_0x36982f['model']),_0x1ab11b=_0x10abbf['before'];'rename'==_0x10abbf['action']&&_0x1514b5['push']({'key':en,'newValue':_0x10abbf['name'],'oldValue':_0x1ab11b['name'],'range':_0x2a02f6});for(const [_0xf6bbb4,_0x5e6b3e]of _0x1ab11b['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xf6bbb4))continue;const _0x3e9d45=_0x10abbf['attributes']['get'](_0xf6bbb4);_0x5e6b3e!==_0x3e9d45&&_0x1514b5['push']({'key':_0xf6bbb4,'newValue':_0x3e9d45,'oldValue':_0x5e6b3e,'range':_0x2a02f6});}for(const [_0x321309,_0x56a808]of _0x10abbf['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x321309)&&(_0x1ab11b['attributes']['has'](_0x321309)||_0x1514b5['push']({'key':_0x321309,'newValue':_0x56a808,'oldValue':null,'range':_0x2a02f6}));}0x0!=_0x1514b5['length']&&_0x36982f['model']['enqueueChange'](_0x2b7c78,_0x110380=>{const _0x593d0c=_0x25321b();for(const {range:_0x31c194,key:_0x45729d,oldValue:_0x365a51,newValue:_0xde0289}of _0x1514b5)this['markAttributeChange'](_0x31c194,_0x45729d,_0x365a51,_0xde0289,{'groupId':_0x593d0c});this['_reduceExistingSuggestions'](_0x110380,_0x1514b5);});},{'priority':'lowest'}),_0x36982f['model']['markers']['on']('update:suggestion',(_0x16cc5f,_0x4e9be3,_0x257aef)=>{if(null==_0x257aef){const {id:_0x4249a5}=tt(_0x4e9be3['name']),_0x2eb1f9=this['_suggestions']['get'](_0x4249a5);_0x2eb1f9&&_0x2eb1f9['addMarkerName'](_0x4e9be3['name']);}}),_0x36982f['model']['document']['on']('change:data',()=>{const _0x673276=Array['from'](_0x36982f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x22897b=>'suggestion'===tt(_0x22897b['name'])['group']);if(0x0===_0x673276['length'])return;_0x673276['sort']((_0x107d45,_0x2958b6)=>{const _0x2f0882=_0x107d45['data']['oldRange'],_0x2db858=_0x2958b6['data']['oldRange'];return null===_0x2f0882&&null===_0x2db858?0x0:null===_0x2f0882&&null!==_0x2db858?-0x1:null!==_0x2f0882&&null===_0x2db858?0x1:_0x2f0882['start']['isBefore'](_0x2db858['start'])?-0x1:0x1;});const _0x499cf3=new Set(),_0x163fca=new Set();for(const {name:_0x1d7767,data:_0x316e97}of _0x673276){const {id:_0x178652}=tt(_0x1d7767);if(null===_0x316e97['oldRange']){const _0x1c312c=this['_handleNewSuggestionMarker'](_0x1d7767);_0x163fca['add'](_0x1c312c);}else{const _0x5a6283=this['_suggestions']['get'](_0x178652);null!==_0x316e97['newRange']||_0x5a6283['isInContent']?(_0x499cf3['add'](_0x5a6283['head']),_0x163fca['add'](_0x5a6283)):this['_removeSuggestion'](_0x5a6283);}}_0x163fca['size']>0x0&&this['_refreshSuggestionsChain'](_0x163fca);for(const _0x4f19f5 of _0x499cf3)this['fire']('suggestionChanged',_0x4f19f5);}),_0x36982f['model']['on']('applyOperation',(_0x16199c,_0x4e616a)=>{const _0x1152d5=_0x4e616a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1152d5['isDocumentOperation'])return;if(_0x1152d5['batch']['isUndo']||!_0x1152d5['batch']['isLocal'])return;let _0x578e0e,_0x48effa;switch(_0x1152d5['type']){case'insert':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['position']),_0x48effa=_0x578e0e['getShiftedBy'](_0x1152d5['howMany']);break;case'split':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['splitPosition']),_0x48effa=_0x36982f['model']['createPositionAt'](_0x1152d5['moveTargetPosition']);break;case'move':_0x578e0e=_0x36982f['model']['createPositionAt'](_0x1152d5['targetPosition']),_0x48effa=_0x578e0e['getShiftedBy'](_0x1152d5['howMany']);break;default:return;}const _0x160162=_0x36982f['model']['createRange'](_0x578e0e,_0x48effa);_0x36982f['model']['change'](()=>{for(const {suggestion:_0x2e0af9,meta:_0x3369b6}of this['_findSuggestions'](_0x160162)){if(_0x2e0af9['isMultiRange'])continue;if('formatInline'==_0x2e0af9['type'])continue;const _0x4614e0=this['_getAttributeKey'](_0x2e0af9);if(_0x4614e0&&this['_suggestionsConversion']['isBlockAttribute'](_0x4614e0)&&'split'!=_0x1152d5['type'])continue;const _0x53d8c3=_0x2e0af9['data']&&_0x2e0af9['data']['multipleBlocks'];('formatBlock'!=_0x2e0af9['type']||'split'==_0x1152d5['type']&&!_0x53d8c3)&&(_0x3369b6['containsRangeInObject']||'insertion'==_0x2e0af9['type']&&_0x3369b6['isOwn']||_0x2e0af9['getFirstRange']()['containsRange'](_0x160162)&&this['_breakSuggestionMarker'](_0x2e0af9,_0x578e0e,_0x48effa));}});},{'priority':'lowest'}),_0x36982f['model']['on']('deleteContent',(_0x424607,_0x555a73)=>{const _0x57871f=_0x555a73[0x0],_0x3630a1=_0x555a73[0x1];if(_0x3630a1&&_0x3630a1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x57871f['isCollapsed'])return;const _0x2910f6=_0x36982f['model']['schema'],{start:_0x15b4df,end:_0x4d8101}=_0x57871f['getFirstRange'](),_0x57fe48=_0x15b4df['nodeAfter']&&_0x2910f6['isLimit'](_0x15b4df['nodeAfter'])?null:_0x2910f6['getNearestSelectionRange'](_0x15b4df,'forward'),_0x26ddae=_0x4d8101['nodeBefore']&&_0x2910f6['isLimit'](_0x4d8101['nodeBefore'])?null:_0x2910f6['getNearestSelectionRange'](_0x4d8101,'backward'),_0x3fdc39=_0x36982f['model']['createRange'](_0x57fe48?_0x57fe48['start']:_0x15b4df,_0x26ddae?_0x26ddae['end']:_0x4d8101);_0x36982f['model']['change'](_0x30322b=>{this['markDeletion'](_0x3fdc39);const _0x1708f3=_0x36982f['model']['schema']['getNearestSelectionRange'](_0x3fdc39['start']);_0x57871f['is']('documentSelection')?_0x30322b['setSelection'](_0x1708f3):_0x57871f['setTo'](_0x1708f3);}),_0x424607['stop']();},{'priority':_0x535ad9['normal']+0xa}),_0x36982f['model']['on']('insertContent',(_0x33123a,_0xb9e5d4)=>{const _0x31b79b=_0xb9e5d4[_0xb9e5d4['length']-0x1];_0x31b79b&&_0x31b79b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36982f['model']['change'](()=>{let _0x560557=_0x36982f['model']['insertContent'](_0xb9e5d4[0x0],_0xb9e5d4[0x1],_0xb9e5d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x560557)return;_0x33123a['return']=_0x560557['clone']();const _0x55f697=_0x560557['end']['nodeBefore'],_0x266361=_0x36982f['model']['schema'];_0x55f697&&_0x266361['isBlock'](_0x55f697)&&!_0x266361['isObject'](_0x55f697)&&(_0x560557=_0x36982f['model']['createRange'](_0x560557['start'],_0x36982f['model']['createPositionAt'](_0x55f697,'end'))),this['markInsertion'](_0x560557);}),_0x33123a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4eccc6=new Tt(_0x36982f,this['_suggestions']);_0x36982f['commands']['add']('acceptSuggestion',_0x4eccc6),this['enableCommand']('acceptSuggestion');const _0x418c2d=new _t(_0x36982f,this['_suggestions']);_0x36982f['commands']['add']('discardSuggestion',_0x418c2d),this['enableCommand']('discardSuggestion'),_0x36982f['commands']['add']('acceptAllSuggestions',new Ct(_0x36982f,_0x4eccc6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36982f['commands']['add']('discardAllSuggestions',new Ct(_0x36982f,_0x418c2d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36982f['commands']['add']('acceptSelectedSuggestions',new Rt(_0x36982f,_0x4eccc6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36982f['commands']['add']('discardSelectedSuggestions',new Rt(_0x36982f,_0x418c2d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3a479c=_0x36982f['plugins']['get'](_0x4522ba);this['listenTo'](_0x3a479c,'addComment',(_0x336899,{threadId:_0x354186})=>{const _0x368075=this['_suggestions']['get'](_0x354186);_0x368075&&_0x368075['commentThread']&&0x1===_0x368075['commentThread']['length']&&this['_updateSuggestionData'](_0x354186,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3a479c,'removeComment',(_0x5b1b63,{threadId:_0x447186})=>{const _0x1020db=this['_suggestions']['get'](_0x447186);_0x1020db&&_0x1020db['commentThread']&&!_0x1020db['commentThread']['length']&&this['_updateSuggestionData'](_0x447186,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x309504){const _0x59dd75='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x316464=0x78de0,_0x4dfd71=window['Date']['now'](),_0x1fa564=_0x309504['editor'],_0x8e96ab=new window['Promise'](_0x41f76d=>{_0x1fa564['once']('ready',_0x41f76d);}),_0x3d66a0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x349635=_0x1fa564['config']['get']('licenseKey');async function _0xadcbd0(){let _0xf7a11a,_0x2968b2=null,_0x364b16=null;try{return'GPL'==_0x349635?'NotAllowed':(_0xf7a11a=_0x585daf(),_0xf7a11a?(_0xf7a11a['usageEndpoint']&&(_0x364b16=_0x5dce27(_0xf7a11a['usageEndpoint'],_0xf7a11a['jti'])),await _0x3de92d()?_0x4e2e0d()?_0x47a755()?'Expired':_0x461236()?('evaluation'==_0xf7a11a['licenseType']&&(_0x2968b2=_0x4a277e('EvaluationLimit')),await _0x445c23()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x47a755(){const _0x182060=['evaluation','trial']['includes'](_0xf7a11a['licenseType'])?_0x4dfd71/0x3e8:0xe10*_0x316464;return _0xf7a11a['exp']<_0x182060;}function _0x4e2e0d(){const _0x59b45f=_0xf7a11a['features'];if(!_0x59b45f)return!0x1;if(_0x59b45f['includes']('*'))return!0x0;if(_0x59b45f['includes']('TC'))return!0x0;if(_0x59b45f['includes']('RTC')){if(_0x3257ed())return!0x0;if(_0xc0030a()||_0x1a7297())return!0x0;}return!0x1;}function _0x461236(){const _0x7554c7=_0xf7a11a['licensedHosts'];if(!_0x7554c7||0x0==_0x7554c7['length'])return!0x0;const {hostname:_0x33c372}=new URL(window['location']['href']);if(_0x7554c7['includes'](_0x33c372))return!0x0;const _0x2a55eb=_0x33c372['split']('.');return _0x7554c7['filter'](_0x142e67=>_0x142e67['includes']('*'))['map'](_0x3ee1f4=>_0x3ee1f4['split']('.'))['filter'](_0x562205=>_0x562205['length']<=_0x2a55eb['length'])['map'](_0x1c78a1=>Array(_0x2a55eb['length']-_0x1c78a1['length'])['fill']('*'===_0x1c78a1[0x0]?'*':'')['concat'](_0x1c78a1))['some'](_0x488a23=>_0x2a55eb['every']((_0x111547,_0x4532da)=>_0x488a23[_0x4532da]===_0x111547||'*'===_0x488a23[_0x4532da]));}function _0x445c23(){return _0x2968b2&&_0x364b16?new window['Promise']((_0x2f89c5,_0x5d6874)=>{_0x2968b2['then'](_0x2f89c5,_0x5d6874),_0x364b16['then'](_0x4850f1=>{'Valid'!=_0x4850f1&&_0x2f89c5(_0x4850f1);},_0x5d6874);}):_0x2968b2||_0x364b16||'Valid';}}function _0x5dce27(_0xb1457,_0x5788d5){return new window['Promise'](_0x1d0db8=>{if(_0x1ebfc1())return _0x1d0db8('Valid');_0x4ab012(),_0x1fa564['decorate']('_sendUsageRequest');let _0x18c6f7=!0x1;const _0x23aba5=_0x25321b();function _0x3474f8(_0x1bdd50){return!!_0x1bdd50&&('object'==typeof _0x1bdd50||'function'==typeof _0x1bdd50)&&'function'==typeof _0x1bdd50['then']&&'function'==typeof _0x1bdd50['catch'];}function _0x103a74(_0x2e4a7a){_0x5c4d17(_0x2e4a7a)['then'](_0x98d032=>_0x98d032&&'ok'==_0x98d032['status']?_0x294cd9(_0x455299(_0x23aba5+_0x5788d5))!=_0x98d032['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x229e47=>(_0x2d260a(),_0x229e47),()=>{const _0x23c691=_0x5c8fc7();return null==_0x23c691?(_0x2d260a(),'Valid'):_0x4dfd71-_0x23c691>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1d0db8)['catch'](()=>{_0x1d0db8('UsageLimit');});const _0x5e0abe=0x36ee80;function _0x2d260a(){const _0x533157='llct-'+_0x294cd9(_0x455299(_0xb1457)),_0x602aaf=_0x175a1b(_0x294cd9(window['Math']['ceil'](_0x4dfd71/_0x5e0abe)));window['localStorage']['setItem'](_0x533157,_0x602aaf);}function _0x5c8fc7(){const _0x1fc8b0='llct-'+_0x294cd9(_0x455299(_0xb1457)),_0x4d2299=window['localStorage']['getItem'](_0x1fc8b0);return _0x4d2299?window['parseInt'](_0x175a1b(_0x4d2299),0x10)*_0x5e0abe:null;}function _0x5c4d17(_0x4cf943){return new window['Promise']((_0xa6f720,_0x1a90bf)=>{_0x4cf943['then'](_0xa6f720,_0x1a90bf),window['setTimeout'](_0x1a90bf,0x1d4c0);});}}_0x1fa564['on']('_sendUsageRequest',(_0x2e5d05,_0x520f9e)=>{if(_0x520f9e[0x0]!=_0xb1457)return _0x1d0db8('UsageLimit');_0x520f9e[0x1]={..._0x520f9e[0x1],'requestId':_0x23aba5};},{'priority':'high'}),_0x1fa564['on']('_sendUsageRequest',_0x36865d=>{_0x3474f8(_0x36865d['return'])&&(_0x18c6f7=!0x0,_0x103a74(_0x36865d['return']));},{'priority':'low'}),_0x8e96ab['then'](()=>{_0x18c6f7||_0x1d0db8('UsageLimit');});});function _0x1ebfc1(){return'auto'==_0x1fa564['editing']['view']['_overlayModeHint'];}function _0x4ab012(){_0x1fa564['editing']['view']['_overlayModeHint']='auto';}}function _0x4a277e(_0x25c308){const _0x2807a8=[new window['Promise'](_0x1dcc70=>setTimeout(_0x1dcc70,0x93ecc)),_0x8e96ab['then'](()=>new window['Promise'](_0x2fd137=>{let _0x381c42=0x0;_0x1fa564['model']['on']('applyOperation',(_0x2ad20b,_0x55bc7a)=>{_0x55bc7a[0x0]['isDocumentOperation']&&_0x381c42++,0x5e8==_0x381c42&&(_0x2fd137(),_0x2ad20b['off']());});}))];return window['Promise']['race'](_0x2807a8)['then'](()=>_0x25c308);}async function _0x36d4fe(){await _0x8e96ab,_0x1fa564['model']['change']=_0x57ea7e,_0x1fa564['model']['enqueueChange']=_0x57ea7e,_0x1fa564['enableReadOnlyMode']('model');}function _0x3257ed(){return _0x52baa9('WebSocketGateway')&&'connected'==_0x4e1167('WebSocketGateway')['state'];}function _0xc0030a(){return _0x52baa9('RevisionViewerIntegration');}function _0x1a7297(){return _0x52baa9('TrackChangesDataGetter');}function _0x3dbaec(_0xf4e759){const _0x1317e3=_0x102696();_0x1fa564[_0x1317e3]='trackChangesLicenseKey'+_0xf4e759,'Valid'!=_0xf4e759&&_0x36d4fe();}function _0x102696(){const _0x19f8bd=window['String'](window['performance']['now']())['replace']('.','');let _0x11c547='R';for(let _0x58188f=0x0;_0x58188f<_0x19f8bd['length'];_0x58188f+=0x2){let _0x3dcf4a=window['parseInt'](_0x19f8bd['substring'](_0x58188f,_0x58188f+0x2));_0x3dcf4a>=0x3e&&(_0x3dcf4a-=0x3e),_0x11c547+=_0x59dd75[_0x3dcf4a];}return _0x11c547;}function _0x585daf(){const _0x4daca1=_0x349635['split']('.');if(0x3!=_0x4daca1['length'])return null;return _0x25d9c3(_0x4daca1[0x1]);function _0x25d9c3(_0x4464b4){const _0x238565=_0x472f70(_0x4464b4);return _0x238565&&_0x139cb4()?_0x238565:null;function _0x139cb4(){const _0x25f56f=_0x238565['jti'],_0x2076db=window['parseInt'](_0x25f56f['substring'](_0x25f56f['length']-0x8),0x10),_0x4faa1b={..._0x238565,'jti':_0x25f56f['substring'](0x0,_0x25f56f['length']-0x8)};return delete _0x4faa1b['vc'],_0x455299(_0x4faa1b)==_0x2076db;}}}async function _0x3de92d(){let _0x32237e=!0x0;try{const [_0x3c0344,_0x38185f,_0x1ffd35]=_0x349635['split']('.');return _0x3f2a9f(_0x3c0344),await _0x23948a(_0x3c0344,_0x38185f,_0x1ffd35),_0x32237e;}catch{return!0x1;}function _0x3f2a9f(_0xd04cf7){const _0x3aaa54=_0x472f70(_0xd04cf7);_0x3aaa54&&'ES256'==_0x3aaa54['alg']||(_0x32237e=!0x1);}async function _0x23948a(_0x3d3276,_0x27e304,_0x3b7dd9){const _0x1e98d4=window['Uint8Array']['from'](_0x45746c(_0x3b7dd9),_0x3ad84a=>_0x3ad84a['charCodeAt'](0x0)),_0x38d70e=new window['TextEncoder']()['encode'](_0x3d3276+'.'+_0x27e304),_0x3ced4b=window['crypto']['subtle'];if(!_0x3ced4b)return;const _0x371799=await _0x3ced4b['importKey']('jwk',_0x3d66a0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3ced4b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x371799,_0x1e98d4,_0x38d70e)||(_0x32237e=!0x1);}}function _0x472f70(_0x57450b){return _0x57450b['startsWith']('ey')?JSON['parse'](_0x45746c(_0x57450b)):null;}function _0x45746c(_0x50f808){return window['atob'](_0x50f808['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x455299(_0x2e4875){let _0x1884a5=0x1505;function _0x32e2fa(_0x17403c){for(let _0x3f6c84=0x0;_0x3f6c84<_0x17403c['length'];_0x3f6c84++){const _0x20e897=_0x17403c['charCodeAt'](_0x3f6c84);_0x1884a5=(_0x1884a5<<0x5)+_0x1884a5+_0x20e897,_0x1884a5&=_0x1884a5;}}function _0x3bf924(_0x2e8794){Array['isArray'](_0x2e8794)?_0x2e8794['forEach'](_0x3bf924):_0x2e8794&&'object'==typeof _0x2e8794?Object['entries'](_0x2e8794)['sort']()['forEach'](([_0x1a99a9,_0x4a32b6])=>{_0x32e2fa(_0x1a99a9),_0x3bf924(_0x4a32b6);}):_0x32e2fa(window['String'](_0x2e8794));}return _0x3bf924(_0x2e4875),_0x1884a5>>>0x0;}function _0x294cd9(_0x1ea841){return _0x1ea841['toString'](0x10)['padStart'](0x8,'0');}function _0x175a1b(_0x54a9a4){return _0x54a9a4['split']('')['reverse']()['join']('');}function _0x52baa9(_0x18602f){return _0x1fa564['plugins']['has'](_0x18602f);}function _0x4e1167(_0xac9546){return _0x1fa564['plugins']['get'](_0xac9546);}function _0x57ea7e(){}_0x3dbaec(await _0xadcbd0());}(this);}set['adapter'](_0x21088d){if(this['_adapter'])throw new _0x2ca032('track-changes-adapter-already-set',this);this['_adapter']=_0x21088d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x14641f=!0x1,toJSON:_0x26df80=!0x1}={}){const _0x2f9cde=[];for(const _0x144af1 of this['_suggestions']['values']())_0x14641f&&!_0x144af1['isInContent']||_0x2f9cde['push'](_0x144af1);return _0x26df80?_0x2f9cde['map'](_0x48d6dc=>_0x48d6dc['toJSON']()):_0x2f9cde;}['getSuggestion'](_0x3fde45){const _0x605f51=this['_suggestions']['get'](_0x3fde45);if(!_0x605f51)throw new _0x2ca032('track-changes-suggestion-not-found',this);return _0x605f51;}['hasSuggestion'](_0x16c879){return this['_suggestions']['has'](_0x16c879);}['addSuggestionData'](_0x4566ba){const {authorId:_0x242576,id:_0x33b9e1,originalSuggestionId:_0x2ac103,attributes:_0x175cc1}=_0x4566ba,[_0x36b105,_0x5dc63c]=_0x4566ba['type']['split'](':'),_0x32858f=this['_suggestions']['get'](_0x33b9e1)||this['_createSuggestion'](_0x36b105,_0x5dc63c,_0x33b9e1,_0x242576,_0x175cc1,_0x2ac103);if(this['_addThreadToSuggestion'](_0x32858f),this['_checkSuggestionCorrectness'](_0x32858f,_0x36b105,_0x5dc63c||null,_0x242576),_0x32858f['createdAt']=_0x4566ba['createdAt'],_0x32858f['_isDataLoaded']=!0x0,_0x175cc1&&_0x175cc1['@external']){const _0x593470=_0x175cc1['@external'],_0x5c4e55=this['_getExternalAuthor'](_0x593470['authorName']);_0x32858f['authoredAt']=_0x593470['createdAt'],_0x32858f['author']=_0x5c4e55;}else _0x32858f['authoredAt']=_0x4566ba['createdAt'];switch(_0x4566ba['data']&&(_0x32858f['data']=_0x4566ba['data']),_0x4566ba['attributes']&&(_0x32858f['attributes']=_0x4566ba['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x32858f['_saved']=!0x0),this['_suggestionState']['get'](_0x32858f)){case'notReady':this['_suggestionState']['set'](_0x32858f,'dataReady');break;case'markerReady':_0x32858f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x32858f])),this['_refreshSuggestionsChain'](new Set([_0x32858f])),this['_suggestionState']['set'](_0x32858f,'ready'),this['fire']('suggestionLoaded',_0x32858f)):this['_suggestionState']['set'](_0x32858f,'removed');}return _0x32858f;}['acceptSuggestion'](_0x2bd8bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15ccd8 of _0x2bd8bb['getAllAdjacentSuggestions']())_0x15ccd8['accept']();});});}['discardSuggestion'](_0x438e7f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ea237 of _0x438e7f['getAllAdjacentSuggestions']())_0x5ea237['discard']();});});}['enableCommand'](_0x16c1bc,_0x1777b6){const _0xdbbd08=this['editor']['commands']['get'](_0x16c1bc);if(!_0xdbbd08)throw new _0x2ca032('track-changes-command-not-found',this,{'commandName':_0x16c1bc});if(this['_enabledCommands']['has'](_0xdbbd08))throw new _0x2ca032('track-changes-enable-command-twice',this,{'commandName':_0x16c1bc});this['_enabledCommands']['add'](_0xdbbd08),_0x1777b6&&_0xdbbd08['on']('execute',(_0x4573a8,_0x423f91)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x423f91['length']>0x0&&_0x423f91[_0x423f91['length']-0x1]&&_0x423f91[_0x423f91['length']-0x1]['forceDefaultExecution']?_0x423f91['pop']():(_0x4573a8['return']=_0x1777b6((..._0x5690d1)=>_0xdbbd08['execute'](..._0x5690d1,{'forceDefaultExecution':!0x0}),..._0x423f91),_0x4573a8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5734b6){let _0x522af0,_0xef83df;const _0x2cc311=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x522af0=_0x5734b6();}catch(_0x159f23){_0xef83df=_0x159f23;}return _0x2cc311||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xef83df&&_0x2ca032['rethrowUnexpectedError'](_0xef83df,this),_0x522af0;}['markInsertion'](_0x3d4e3c,_0xeb0926=null,_0x39b412={}){if(_0x3d4e3c['isCollapsed'])return null;const _0xf517a5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x39b412['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41f9b8,meta:_0x532e4e}of this['_findSuggestions'](_0x3d4e3c,'insertion'))if(_0x532e4e['isOwn']){if(!_0x532e4e['isNextTo']){if(_0x532e4e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x41f9b8,_0x39b412))continue;return _0x41f9b8;}if(En(_0x41f9b8,_0x39b412))return _0x41f9b8;this['_breakSuggestionMarker'](_0x41f9b8,_0x3d4e3c['start'],_0x3d4e3c['end']);break;}if(_0xeb0926==_0x41f9b8['subType']&&En(_0x41f9b8,_0x39b412)){const _0x23ab1a=_0x41f9b8['getFirstRange']();return _0x23ab1a['start']['isEqual'](_0x3d4e3c['end'])?this['_setSuggestionRange'](_0x41f9b8,this['_model']['createRange'](_0x3d4e3c['start'],_0x23ab1a['end'])):this['_setSuggestionRange'](_0x41f9b8,this['_model']['createRange'](_0x23ab1a['start'],_0x3d4e3c['end'])),_0x41f9b8;}}const _0x42fadd=_0x25321b(),_0x2c2602=_0xf517a5['id'],_0x2bd123=_0xeb0926?'insertion:'+_0xeb0926:'insertion',_0x348a90=this['_setSuggestionData']({'id':_0x42fadd,'type':_0x2bd123,'createdAt':new Date(),'authorId':_0x2c2602,'attributes':_0x39b412});return this['_addSuggestionMarker'](_0x2bd123,_0x42fadd,_0x2c2602,_0x3d4e3c),_0x348a90;}['markMultiRangeInsertion'](_0x1486c2,_0x53d904='multi',_0x3e5723={}){const _0x2a278b=this['editor']['plugins']['get']('Users')['me'],_0x101456=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53d904,'join');this['_trackingSessionId']&&(_0x3e5723['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d2308 of this['getSuggestions']())if(_0x5d2308['author']['id']==_0x2a278b['id']&&'insertion'==_0x5d2308['type']&&_0x5d2308['subType']==_0x53d904&&En(_0x5d2308,_0x3e5723)&&(_0x101456(_0x5d2308['getRanges'](),_0x1486c2)||_0x101456(_0x1486c2,_0x5d2308['getRanges']()))){for(const _0x2fc610 of _0x1486c2)_0x5d2308['addRange'](_0x2fc610);return _0x5d2308;}for(const {suggestion:_0x20271a,meta:_0xeecdf8}of this['_findSuggestions'](_0x1486c2,'insertion')){if(!_0xeecdf8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xeecdf8['containsRangeInObject'])continue;if(!En(_0x20271a,_0x3e5723))continue;let _0x363b8d=!0x0;for(const _0x50fcac of _0x20271a['getRanges']())for(const _0x13d9fe of _0x1486c2)if(!_0x50fcac['containsRange'](_0x13d9fe)){_0x363b8d=!0x1;break;}if(_0x363b8d)return _0x20271a;}const _0x51f506=_0x25321b(),_0x5acc0e=_0x2a278b['id'],_0x31e3fc='insertion:'+_0x53d904,_0x41ca76=this['_setSuggestionData']({'id':_0x51f506,'type':_0x31e3fc,'createdAt':new Date(),'authorId':_0x5acc0e,'attributes':_0x3e5723});for(const _0x4fdc43 of _0x1486c2)this['_addSuggestionMarker'](_0x31e3fc,_0x51f506,_0x5acc0e,_0x4fdc43,yt['getMultiRangeId']());return _0x41ca76;}['markInlineFormat'](_0x1f9dbc,_0x1a7387,_0x198c97=null,_0x358d26={}){if(_0x198c97=_0x198c97||cn(_0x1a7387),_0x1f9dbc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x358d26['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d2e7d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198c97,'accept');return this['forceDefaultExecution'](()=>_0x4d2e7d([_0x1f9dbc],_0x1a7387,_0x358d26)),null;}const _0x19e8d1=this['editor']['plugins']['get']('Users')['me'],_0x2190fd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x87a1e,meta:_0x566778}of this['_findSuggestions'](_0x1f9dbc,'insertion'))_0x566778['isOwn']&&!_0x566778['isInsideObject']&&_0x2190fd['push'](..._0x87a1e['getRanges']());}const _0x471a94=function(_0x518bb1,_0x16006b){const _0x439bc4=[];for(const _0x260ed6 of _0x16006b){const _0x224c00=_0x518bb1['getIntersection'](_0x260ed6);_0x224c00&&_0x439bc4['push'](_0x224c00);}return _0x439bc4;}(_0x1f9dbc,_0x2190fd),_0x325b07=function(_0x3ba39c,_0x3dea8a){const _0x54eb4f=[_0x3ba39c];for(const _0x4f61b8 of _0x3dea8a){let _0x13b552=0x0;for(;_0x13b552<_0x54eb4f['length'];){const _0x352f03=_0x54eb4f[_0x13b552]['getDifference'](_0x4f61b8);_0x54eb4f['splice'](_0x13b552,0x1,..._0x352f03),_0x13b552+=_0x352f03['length'];}}return _0x54eb4f;}(_0x1f9dbc,_0x2190fd);_0x471a94['length']&&this['_model']['change'](()=>{for(const _0x391d4c of _0x471a94){const _0x412479=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x198c97,'accept');this['forceDefaultExecution'](()=>_0x412479([_0x391d4c],_0x1a7387,_0x358d26));}});for(const _0x163a72 of _0x325b07){let _0x23256a=null,_0x419088=_0x163a72['start'],_0x558d1d=_0x163a72['end'];for(const {suggestion:_0x1ae3f2,meta:_0x243c20}of this['_findSuggestions'](_0x163a72,'formatInline')){if(!_0x243c20['isOwn'])continue;if(_0x1ae3f2['subType']!=_0x198c97)continue;if(!En(_0x1ae3f2,_0x358d26))continue;const _0x151f70=_0x1ae3f2['getFirstRange']();if(_0x151f70['containsRange'](_0x163a72,!0x0))return null;_0x419088=_0x419088['isBefore'](_0x151f70['start'])?_0x419088:_0x151f70['start'],_0x558d1d=_0x558d1d['isAfter'](_0x151f70['end'])?_0x558d1d:_0x151f70['end'],_0x23256a?_0x151f70['start']['isBefore'](_0x23256a['getFirstRange']()['start'])?(_0x23256a['removeMarkers'](),_0x23256a=_0x1ae3f2):_0x1ae3f2['removeMarkers']():_0x23256a=_0x1ae3f2;}const _0x15f08d=this['_model']['createRange'](_0x419088,_0x558d1d);if(_0x23256a)this['_setSuggestionRange'](_0x23256a,_0x15f08d);else{const _0x33b6a6=_0x25321b(),_0x3fc068=_0x19e8d1['id'];this['_setSuggestionData']({'id':_0x33b6a6,'type':'formatInline:'+_0x198c97,'data':_0x1a7387,'createdAt':new Date(),'authorId':_0x3fc068,'attributes':_0x358d26}),this['_addSuggestionMarker']('formatInline:'+_0x198c97,_0x33b6a6,_0x3fc068,_0x15f08d);}}return null;}['markBlockFormat'](_0x24c6a4,_0x174353,_0x81754b=[],_0x90dddb=null,_0x416156={}){_0x174353['formatGroupId']||(_0x174353['formatGroupId']=_0x174353['commandName']),_0x174353['multipleBlocks']=_0x24c6a4['is']('range'),_0x90dddb=_0x90dddb||cn(_0x174353);const _0x56f441=_0x81754b['map'](_0x4816a7=>gn(_0x4816a7,this['_model'])),_0x41a929=_0x24c6a4['is']('range')?_0x24c6a4:gn(_0x24c6a4,this['_model']);if(this['_trackingSessionId']&&(_0x416156['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31c073=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90dddb,'accept');return this['forceDefaultExecution'](()=>_0x31c073([_0x41a929],_0x174353,_0x416156)),null;}_0x56f441['push'](_0x41a929);let _0xd600f4=!0x0;for(const _0x4db087 of _0x56f441)if(!this['_rangeIsInLocalUserInsertion'](_0x4db087)){_0xd600f4=!0x1;break;}if(_0xd600f4&&'always'!==this['_trackFormatChanges']){const _0x4a390f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x90dddb,'accept');return this['forceDefaultExecution'](()=>_0x4a390f([_0x41a929],_0x174353,_0x416156)),null;}let _0x2449b9=null,_0x5e2df1=_0x41a929['start'],_0x2466f0=_0x41a929['end'];for(const {suggestion:_0xb93dc5,meta:_0x5a3f4c}of this['_findSuggestions'](_0x41a929,'formatBlock')){if(!_0x5a3f4c['isOwn'])continue;if(_0x5a3f4c['isNextTo']||_0x5a3f4c['containsRangeInObject']||_0x5a3f4c['isInsideObject'])continue;if(_0xb93dc5['data']['formatGroupId']!=_0x174353['formatGroupId'])continue;if(!En(_0xb93dc5,_0x416156))continue;const _0x256725=_0xb93dc5['getFirstRange']();if(_0xb93dc5['subType']==_0x90dddb){if(_0x256725['containsRange'](_0x41a929,!0x0))return null;_0x5e2df1=_0x5e2df1['isBefore'](_0x256725['start'])?_0x5e2df1:_0x256725['start'],_0x2466f0=_0x2466f0['isAfter'](_0x256725['end'])?_0x2466f0:_0x256725['end'],_0x2449b9?_0x256725['start']['isBefore'](_0x2449b9['getFirstRange']()['start'])?(_0x2449b9['removeMarkers'](),_0x2449b9=_0xb93dc5):_0xb93dc5['removeMarkers']():_0x2449b9=_0xb93dc5;}else{const _0x1c7821=_0x41a929['getIntersection'](_0x256725);this['_cutOutSuggestionMarker'](_0xb93dc5,_0x1c7821);}}const _0x5062b3=this['editor']['plugins']['get']('Users')['me'],_0x5e65fc=_0x25321b(),_0x42e2df=_0x5062b3['id'];if(_0x2449b9)return this['_setSuggestionRange'](_0x2449b9,this['_model']['createRange'](_0x5e2df1,_0x2466f0)),_0x2449b9;{const _0x22d2c2=this['_setSuggestionData']({'id':_0x5e65fc,'type':'formatBlock:'+_0x90dddb,'data':_0x174353,'createdAt':new Date(),'authorId':_0x42e2df,'attributes':_0x416156});return this['_addSuggestionMarker']('formatBlock:'+_0x90dddb,_0x5e65fc,_0x42e2df,this['_model']['createRange'](_0x5e2df1,_0x2466f0)),_0x22d2c2;}}['markMultiRangeBlockFormat'](_0x3e1d1e,_0x524d42,_0x549d06=[],_0x23ef8e=null,_0x5e940a={}){_0x524d42['formatGroupId']||(_0x524d42['formatGroupId']=_0x524d42['commandName']);const _0x235364=_0x3e1d1e[0x0];_0x524d42['multipleBlocks']=_0x235364['is']('range'),_0x23ef8e=_0x23ef8e||cn(_0x524d42);const _0x3ed1be=_0x549d06['map'](_0x382bd9=>gn(_0x382bd9,this['_model'])),_0x551f9e=_0x235364['is']('range')?_0x3e1d1e:_0x3e1d1e['map'](_0x5eceb4=>gn(_0x5eceb4,this['_model']));if(this['_trackingSessionId']&&(_0x5e940a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40cf20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'accept');return this['forceDefaultExecution'](()=>_0x40cf20(_0x551f9e,_0x524d42,_0x5e940a)),null;}_0x3ed1be['push'](..._0x551f9e);let _0x3eea15=!0x0;for(const _0x408467 of _0x3ed1be)if(!this['_rangeIsInLocalUserInsertion'](_0x408467)){_0x3eea15=!0x1;break;}if(_0x3eea15&&'always'!==this['_trackFormatChanges']){const _0x64e597=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'accept');return this['forceDefaultExecution'](()=>_0x64e597(_0x551f9e,_0x524d42,_0x5e940a)),null;}const _0x21ef0b=this['editor']['plugins']['get']('Users')['me'];for(const _0x38f158 of this['getSuggestions']()){const _0x31b3dc=_0x38f158['data'];if(_0x38f158['author']['id']!=_0x21ef0b['id'])continue;if('formatBlock'!=_0x38f158['type']||_0x31b3dc['formatGroupId']!=_0x524d42['formatGroupId'])continue;if(!En(_0x38f158,_0x5e940a))continue;const _0x1c85f4=_0x38f158['subType']==_0x23ef8e;for(let _0x3b4d3a=0x0;_0x3b4d3a<_0x551f9e['length'];_0x3b4d3a++){const _0x1b3f67=_0x551f9e[_0x3b4d3a];for(const _0x4fe583 of _0x38f158['getMarkers']()){const _0x3c085d=_0x4fe583['getRange']();if(_0x1b3f67['isEqual'](_0x3c085d)){_0x1c85f4?(_0x551f9e['splice'](_0x3b4d3a,0x1),_0x3b4d3a--):_0x38f158['removeMarker'](_0x4fe583['name']);break;}}}}if(0x0==_0x551f9e['length'])return null;const _0x2ec6c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23ef8e,'join');for(const _0x2eabbc of this['getSuggestions']()){const _0x29dfb3=_0x2eabbc['data'];if(_0x2eabbc['author']['id']==_0x21ef0b['id']&&('formatBlock'==_0x2eabbc['type']&&_0x29dfb3['formatGroupId']==_0x524d42['formatGroupId']&&_0x2eabbc['subType']==_0x23ef8e&&En(_0x2eabbc,_0x5e940a)&&(_0x2ec6c4(_0x2eabbc['getRanges'](),_0x551f9e)||_0x2ec6c4(_0x551f9e,_0x2eabbc['getRanges']())))){for(const _0x1d09e0 of _0x551f9e)_0x2eabbc['addRange'](_0x1d09e0);return _0x2eabbc;}}const _0x3352ca=_0x25321b(),_0xfcd526=_0x21ef0b['id'],_0x494261='formatBlock:'+_0x23ef8e,_0x5ba507=this['_setSuggestionData']({'id':_0x3352ca,'type':_0x494261,'data':_0x524d42,'createdAt':new Date(),'authorId':_0xfcd526,'attributes':_0x5e940a});for(const _0x12fd60 of _0x551f9e)this['_addSuggestionMarker'](_0x494261,_0x3352ca,_0xfcd526,_0x12fd60,yt['getMultiRangeId']());return _0x5ba507;}['markDeletion'](_0x2871fa,_0x483790=null,_0x4f8e01={}){if(_0x2871fa['isCollapsed'])return null;const _0x259e57=this['editor']['plugins']['get']('Users')['me'],_0x4084c5=new rt(_0x2871fa['start'],_0x2871fa['end']);this['_trackingSessionId']&&(_0x4f8e01['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x495caa,meta:_0x5448b4}of this['_findSuggestions'](_0x4084c5,'insertion'))if(_0x5448b4['isOwn']&&!_0x5448b4['isNextTo']){if(_0x495caa['isMultiRange']){const _0xb0df03=_0x495caa['getRanges']()['filter'](_0x214fa9=>'$graveyard'!=_0x214fa9['root']['rootName']);if(_0xb0df03['every'](_0x17a3f7=>_0x4084c5['containsRange'](_0x17a3f7,!0x0))&&_0x495caa['discard'](),_0xb0df03['some'](_0x32b242=>_0x32b242['containsRange'](_0x4084c5,!0x0))){const _0x1bef50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x483790,'accept');return this['forceDefaultExecution'](()=>_0x1bef50([_0x4084c5],null,_0x4f8e01)),null;}}else{const _0x55d372=_0x4084c5['getIntersection'](_0x495caa['getFirstRange']());null!==_0x55d372&&_0x495caa['_onDiscard']([_0x55d372],null,_0x4f8e01);}}if(_0x4084c5['detach'](),_0x4084c5['isCollapsed']||'$graveyard'==_0x4084c5['root']['rootName'])return null;let _0xf8f599=null,_0x52fdcc=_0x4084c5['start'],_0x643d55=_0x4084c5['end'];const _0xcae41e=this['_findSuggestions'](_0x4084c5,'deletion');for(const {suggestion:_0x139bba,meta:_0x4938bc}of _0xcae41e){const _0x13f2c8=this['_model']['createRange'](_0x52fdcc,_0x643d55);if(_0x4938bc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4938bc['containsRangeInObject']&&!_0x4938bc['isInsideObject'])){if(_0x139bba['isMultiRange']){if(!En(_0x139bba,_0x4f8e01))continue;let _0xd95c69=!0x0;for(const _0x230cdc of _0x139bba['getRanges']()){if(_0x230cdc['containsRange'](_0x13f2c8,!0x0))return _0x139bba;_0x13f2c8['containsRange'](_0x230cdc)||(_0xd95c69=!0x1);}_0xd95c69&&_0x139bba['discard']();}else{const _0x2e81ee=_0x139bba['getFirstRange']();if(_0x2e81ee['containsRange'](_0x13f2c8,!0x0))return _0x139bba;if(!En(_0x139bba,_0x4f8e01)){_0x13f2c8['containsRange'](_0x2e81ee)?_0x139bba['removeMarkers']():_0x2e81ee['containsPosition'](_0x52fdcc)?_0x52fdcc=_0x2e81ee['end']:_0x2e81ee['containsPosition'](_0x643d55)&&(_0x643d55=_0x2e81ee['start']);continue;}_0x52fdcc=_0x52fdcc['isBefore'](_0x2e81ee['start'])?_0x52fdcc:_0x2e81ee['start'],_0x643d55=_0x643d55['isAfter'](_0x2e81ee['end'])?_0x643d55:_0x2e81ee['end'],_0x4f8e01=Object['assign']({},_0x139bba['attributes']),_0xf8f599?_0x2e81ee['start']['isBefore'](_0xf8f599['getFirstRange']()['start'])?(_0xf8f599['removeMarkers'](),_0xf8f599=_0x139bba):_0x139bba['removeMarkers']():_0xf8f599=_0x139bba;}}}if(_0xf8f599)return this['_setSuggestionRange'](_0xf8f599,this['_model']['createRange'](_0x52fdcc,_0x643d55)),_0xf8f599;{const _0x452687=_0x25321b(),_0x12cc07=this['_model']['createRange'](_0x52fdcc,_0x643d55),_0x4f4948=_0x259e57['id'],_0x58a513=_0x483790?'deletion:'+_0x483790:'deletion',_0x4cbc75=this['_setSuggestionData']({'id':_0x452687,'type':_0x58a513,'createdAt':new Date(),'authorId':_0x4f4948,'attributes':_0x4f8e01});return this['_addSuggestionMarker'](_0x58a513,_0x452687,_0x4f4948,_0x12cc07),_0x4cbc75;}}['markMultiRangeDeletion'](_0x485162,_0x37819f='multi',_0x52a1d1={}){const _0x884812=this['editor']['plugins']['get']('Users')['me'],_0x163b4b=_0x485162['map'](_0x4335ad=>new rt(_0x4335ad['start'],_0x4335ad['end'])),_0x58b4b6=new Set();this['_trackingSessionId']&&(_0x52a1d1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29bead,meta:_0x1e2d9b}of this['_findSuggestions'](_0x163b4b,'insertion'))_0x1e2d9b['isOwn']&&!_0x1e2d9b['isNextTo']&&_0x58b4b6['add'](_0x29bead);for(const _0x26c258 of _0x58b4b6)if(_0x26c258['isMultiRange']){const _0x55b637=_0x26c258['getRanges']();if(_0x26c258['attributes']&&_0x26c258['attributes']['skipNestingCheck']||_0x55b637['every'](_0x13a4d9=>_0x163b4b['some'](_0x57561f=>_0x57561f['containsRange'](_0x13a4d9,!0x0)))&&_0x26c258['discard'](),_0x163b4b['every'](_0x15bc1b=>_0x55b637['some'](_0x30d7cf=>_0x30d7cf['containsRange'](_0x15bc1b,!0x0)))){const _0x36d63d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'accept');return this['forceDefaultExecution'](()=>_0x36d63d(_0x485162,null,_0x52a1d1)),null;}}else{const _0x39f6ef=_0x26c258['getFirstRange']();if(_0x163b4b['some'](_0x3f464a=>_0x3f464a['containsRange'](_0x39f6ef,!0x0))&&_0x26c258['discard'](),_0x163b4b['every'](_0x1c66cf=>_0x39f6ef['containsRange'](_0x1c66cf,!0x0))){const _0x2386d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'accept');return this['forceDefaultExecution'](()=>_0x2386d9(_0x163b4b,null,_0x52a1d1)),null;}}const _0x1bc194=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37819f,'join');let _0x52a35f=null;for(const _0x1c5567 of this['getSuggestions']())if(_0x1c5567['author']['id']==_0x884812['id']&&_0x1c5567['isInContent']&&'deletion'==_0x1c5567['type']&&_0x1c5567['subType']==_0x37819f&&En(_0x1c5567,_0x52a1d1)&&(_0x1bc194(_0x1c5567['getRanges'](),_0x163b4b)||_0x1bc194(_0x163b4b,_0x1c5567['getRanges']()))){if(_0x52a35f){if(_0x1c5567['commentThread']&&_0x1c5567['commentThread']['length'])continue;for(const _0x30b5f6 of _0x1c5567['getRanges']())_0x52a35f['isIntersectingWithRange'](_0x30b5f6)||_0x52a35f['addRange'](_0x30b5f6);_0x1c5567['removeMarkers']();}else{_0x52a35f=_0x1c5567;for(const _0x4d967c of _0x163b4b)_0x1c5567['isIntersectingWithRange'](_0x4d967c)||_0x1c5567['addRange'](_0x4d967c);}}if(_0x52a35f)return _0x52a35f;_0x58b4b6['clear']();for(const {suggestion:_0x57d6a0,meta:_0x3448ad}of this['_findSuggestions'](_0x163b4b,'deletion'))_0x3448ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3448ad['containsRangeInObject']&&!_0x3448ad['isInsideObject'])&&En(_0x57d6a0,_0x52a1d1)&&_0x58b4b6['add'](_0x57d6a0);for(const _0x880026 of _0x58b4b6){const _0x1d3078=_0x880026['getRanges']();if((!_0x52a1d1||!_0x52a1d1['skipNestingCheck'])&&_0x163b4b['every'](_0x48f4e2=>_0x1d3078['some'](_0x51c8cc=>_0x51c8cc['containsRange'](_0x48f4e2,!0x0))))return _0x880026;_0x880026['attributes']&&_0x880026['attributes']['skipNestingCheck']||_0x1d3078['every'](_0x50f784=>_0x163b4b['some'](_0x218a9d=>_0x218a9d['containsRange'](_0x50f784,!0x0)))&&_0x880026['discard']();}const _0x3da3a8=_0x25321b(),_0x121d70=_0x884812['id'],_0x5b3526='deletion:'+_0x37819f,_0x1be9d9=this['_setSuggestionData']({'id':_0x3da3a8,'type':_0x5b3526,'createdAt':new Date(),'authorId':_0x121d70,'attributes':_0x52a1d1});for(const _0x228740 of _0x163b4b)_0x228740['detach'](),_0x228740['isCollapsed']||'$graveyard'==_0x228740['root']['rootName']||this['_addSuggestionMarker'](_0x5b3526,_0x3da3a8,_0x121d70,_0x228740,yt['getMultiRangeId']());return _0x1be9d9;}['markAttributeChange'](_0x57d2d1,_0x2023fa,_0xb9a44f,_0x3693a8,_0x4d3703){if(_0x57d2d1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x59829e=this['editor']['plugins']['get']('Users')['me']['id'],_0x1beb36=Array['from'](this['_suggestions']['values']())['filter'](_0x4e673a=>'attribute'==_0x4e673a['type']&&_0x4e673a['data']['key']==_0x2023fa&&_0x4e673a['isIntersectingWithRange'](_0x57d2d1));if(this['_trackingSessionId']&&(_0x4d3703['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x356581=this['_findSuggestions'](_0x57d2d1,'insertion')['filter'](({meta:_0x355f3a})=>_0x355f3a['isOwn']&&!_0x355f3a['isInsideObject']&&!_0x355f3a['isNextTo'])['map'](({suggestion:_0x387e3b})=>_0x387e3b);_0x1beb36['unshift'](..._0x356581);}const _0x275cb9=new Map([[_0x57d2d1,_0xb9a44f]]);for(const _0x483fa7 of _0x1beb36){const _0x4a86cd='attribute'==_0x483fa7['type']?_0x483fa7['data']['oldValue']:void 0x0,_0x39a492=_0x483fa7['getFirstRange'](),_0x628fa2=Array['from'](_0x275cb9['keys']())['find'](_0x58ef1c=>_0x58ef1c['isIntersecting'](_0x39a492));if(!_0x628fa2)continue;const _0x1d4ae4=_0x628fa2['getDifference'](_0x39a492);this['_suggestionsConversion']['isBlockAttribute'](_0x2023fa)&&'insertion'==_0x483fa7['type']&&0x0!=_0x1d4ae4['length']||(_0x275cb9['delete'](_0x628fa2),_0x1d4ae4['forEach'](_0x3d20fc=>{_0x275cb9['set'](_0x3d20fc,_0xb9a44f);}),'insertion'!=_0x483fa7['type']&&_0x4a86cd!=_0x3693a8&&_0x275cb9['set'](_0x628fa2['getIntersection'](_0x39a492),_0x4a86cd));}const _0x1c46d7=[];for(const [_0x3dfb9f,_0x24ab31]of _0x275cb9){const _0x23b337=_0x25321b(),_0x27579e={'key':_0x2023fa,'oldValue':_0x24ab31,'newValue':_0x3693a8};_0x2023fa['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':_0x2023fa});const _0x3fa180=('attribute:'+_0x2023fa+'|'+cn({'newValue':_0x3693a8}))['substring'](0x0,0x3c),_0x59160e=this['_setSuggestionData']({'id':_0x23b337,'type':_0x3fa180,'data':_0x27579e,'createdAt':new Date(),'authorId':_0x59829e,'attributes':_0x4d3703});_0x1c46d7['push'](_0x59160e),this['_addSuggestionMarker'](_0x3fa180,_0x23b337,_0x59829e,_0x3dfb9f);}return _0x1c46d7;}['enableDefaultAttributesIntegration'](_0x5b371a){this['enableCommand'](_0x5b371a,(_0x1fca4b,..._0x13cf3e)=>{this['recordAttributeChanges'](()=>{_0x1fca4b(..._0x13cf3e);});});}['startTrackingSession'](_0xa17e5b){return this['_trackingSessionId']=void 0x0!==_0xa17e5b?_0xa17e5b:_0x25321b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4413cb){return'attribute'==_0x4413cb['type']?_n(_0x4413cb['subType']):null;}['_applyOperationsAsSuggestions'](_0x45a936){if(0x0==_0x45a936['length'])return;const _0x24bdee=this['editor'],_0x4bd288=_0x24bdee['plugins']['get'](_0x3e0605),_0x840870=[],_0x2617ed=_0x37fb7d=>{const _0x5621fe=_0x37fb7d['_aiSource'];return _0x5621fe?{'@ai':{'type':_0x5621fe}}:{};},_0x5c14a7=(_0x255dd4,_0x56d0f8,_0x4ef210)=>{for(let _0x2007d6=_0x56d0f8;_0x2007d6<_0x255dd4['operations']['length'];_0x2007d6++){const _0x227743=_0x255dd4['operations'][_0x2007d6];'marker'===_0x227743['type']&&(_0x227743['_aiSource']=_0x4ef210);}};_0x24bdee['model']['change'](_0x5b5476=>{for(let _0x256fa5=0x0;_0x256fa5<_0x45a936['length'];_0x256fa5++){const _0x2f99cf=_0x45a936[_0x256fa5],_0x4b865d=_0x2f99cf['_aiSource'],_0x508983=_0x5b5476['batch']['operations']['length'];if(_0x2f99cf['baseVersion']=_0x24bdee['model']['document']['version'],_0x2f99cf['isDocumentOperation']=!0x0,_0x4bd288['isMarkedRemoveOperation'](_0x2f99cf)){const _0x5ecfc6=_0x575b19(_0x2f99cf['newRange'],_0x24bdee['model']);_0x840870['unshift']({'range':rt['fromRange'](_0x5ecfc6),'opAttributes':_0x2617ed(_0x2f99cf),'aiSource':_0x4b865d});}else{switch(_0x2f99cf['type']){case'rename':{const _0x3f0556=_0x2f99cf['oldName'],_0x561960=_0x2f99cf['newName'];if(_0x3f0556==_0x561960)break;_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0xe2c34='$elementName',_0x3e8db3=_0x2f99cf['position'],_0x24b922=_0x24bdee['model']['createRange'](_0x3e8db3,_0x24bdee['model']['createPositionAt'](_0x3e8db3['nodeAfter'],'end'));this['markAttributeChange'](_0x24b922,_0xe2c34,_0x3f0556,_0x561960,{..._0x2617ed(_0x2f99cf),'groupId':_0x25321b()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x52ff33=_0x2f99cf['oldValue'],_0x3a3c01=_0x2f99cf['newValue'];if(_0x52ff33==_0x3a3c01)break;_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0x434f6f=_0x2f99cf['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x434f6f))break;const _0x22b421=_0x575b19(_0x2f99cf['range'],_0x24bdee['model']);this['markAttributeChange'](_0x22b421,_0x434f6f,_0x52ff33,_0x3a3c01,{..._0x2617ed(_0x2f99cf),'groupId':_0x25321b()});break;}case'insert':{if(_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf),_0x45a936[_0x256fa5+0x1]&&'move'==_0x45a936[_0x256fa5+0x1]['type'])break;const _0x8816a=_0x2f99cf['position'],_0x49c511=_0x2f99cf['howMany'],_0x4a3830=_0x575b19(_0x24bdee['model']['createRange'](_0x8816a,_0x8816a['getShiftedBy'](_0x49c511)),_0x24bdee['model']);this['markInsertion'](_0x4a3830,null,{..._0x2617ed(_0x2f99cf)});break;}case'split':{_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);const _0x32824d=_0x2f99cf['splitPosition'],_0x408263=_0x2f99cf['moveTargetPosition'],_0x5f57d7=_0x24bdee['model']['createRange'](_0x32824d,_0x408263);this['markInsertion'](_0x5f57d7,null,{..._0x2617ed(_0x2f99cf)});break;}case'move':case'remove':_0x5b5476['batch']['addOperation'](_0x2f99cf),_0x24bdee['model']['applyOperation'](_0x2f99cf);}_0x4b865d&&_0x5c14a7(_0x5b5476['batch'],_0x508983,_0x4b865d);}}for(const {range:_0x48ec18,opAttributes:_0x778c9,aiSource:_0x6c6dc2}of _0x840870){const _0x5ba482=_0x5b5476['batch']['operations']['length'];_0x48ec18['detach'](),this['markDeletion'](_0x48ec18,null,{..._0x778c9}),_0x6c6dc2&&_0x5c14a7(_0x5b5476['batch'],_0x5ba482,_0x6c6dc2);}});}['_setSuggestionRange'](_0x457c19,_0x2c3ab5){const _0xb4d0d4=_0x457c19['getFirstMarker']();this['_model']['change'](_0x4e1b0d=>{_0x4e1b0d['updateMarker'](_0xb4d0d4,{'range':_0x2c3ab5});});}['_addThreadToSuggestion'](_0x4c2d8e){const _0x13709f=_0x4c2d8e['id'],_0x1be6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x13709f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1be6d6,'threadId':_0x13709f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1daaa5=this['_commentsRepository']['getCommentThread'](_0x13709f);_0x1daaa5['unbind']('isRemovable'),_0x1daaa5['isRemovable']=!0x1,_0x4c2d8e['commentThread']=_0x1daaa5;}['_checkSuggestionCorrectness'](_0x5323ba,_0x446d08,_0x5d165b,_0x593571){if(_0x5323ba['type']!=_0x446d08||_0x5323ba['subType']!=_0x5d165b||_0x5323ba['creator']['id']!=_0x593571)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ca032('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4f0727,_0x53b752){const _0x56ae48=_0x4f0727['getFirstRange']();if(_0x53b752['isEqual'](_0x56ae48))_0x4f0727['removeMarkers']();else{if(_0x56ae48['containsRange'](_0x53b752)){const _0x17a752=this['_model']['createPositionAt'](_0x53b752['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x56ae48['start'],_0x17a752));const _0x34c9ec=_0x25321b(),_0x58c6cf=_0x4f0727['creator']['id'],_0x296fe4=_0x4f0727['type']+':'+_0x4f0727['subType'];this['_setSuggestionData']({'id':_0x34c9ec,'type':_0x296fe4,'createdAt':new Date(),'authorId':_0x58c6cf,'data':_0x4f0727['data'],'attributes':_0x4f0727['attributes']});const _0x470db3=this['_model']['createPositionAt'](_0x53b752['end']['parent'],'after'),_0x57356a=this['_model']['createRange'](_0x470db3,_0x56ae48['end']);this['_addSuggestionMarker'](_0x296fe4,_0x34c9ec,_0x58c6cf,_0x57356a);}else{if(_0x56ae48['containsPosition'](_0x53b752['start'])){const _0x3e2b13=this['_model']['createPositionAt'](_0x53b752['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x56ae48['start'],_0x3e2b13));}else{const _0x1121be=this['_model']['createPositionAt'](_0x53b752['end']['parent'],'after');this['_setSuggestionRange'](_0x4f0727,this['_model']['createRange'](_0x1121be,_0x56ae48['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd07040){for(const {suggestion:_0x173eb6,meta:_0x666b2e}of this['_findSuggestions'](_0xd07040,'insertion')){if(!_0x666b2e['isOwn'])continue;const _0x56843a=_0x173eb6['getRanges']();for(const _0x59196e of _0x56843a)if(!_0xd07040['getDifference'](_0x59196e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x270b3c){return this['editor']['plugins']['get']('Users')['getUser'](_0x270b3c);}['_getExternalAuthor'](_0x539ddf){const _0x4da4ad=this['editor']['plugins']['get']('Users'),_0x270f84=_0x46f71b('external:'+_0x539ddf),_0x4b64e0=_0x4da4ad['getUser'](_0x270f84);return _0x4b64e0||_0x4da4ad['addUser']({'id':_0x270f84,'name':_0x539ddf});}['_createSuggestion'](_0x1d4436,_0x5122be,_0x581fd2,_0x278a04,_0x78fb4,_0x46a050){const _0x528010=this['_getAuthorFromId'](_0x278a04);if(!_0x528010)throw new _0x2ca032('track-changes-user-not-found',this,{'authorId':_0x278a04,'suggestionId':_0x581fd2});const _0x4a1211=this['_suggestionFactory']['buildSuggestion'](_0x1d4436,_0x5122be,_0x581fd2,_0x528010,_0x78fb4,_0x4f188d=>{this['_updateSuggestionData'](_0x581fd2,{'attributes':_0x4f188d});const _0x17f2cf=this['getSuggestion'](_0x581fd2);this['_joinWithAdjacentSuggestions'](new Set([_0x17f2cf])),this['_refreshSuggestionsChain'](new Set([_0x17f2cf]));},_0x46a050);return this['listenTo'](_0x4a1211,'accept',()=>{this['_updateSuggestionData'](_0x581fd2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a1211,'discard',()=>{this['_updateSuggestionData'](_0x581fd2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x581fd2,_0x4a1211),this['_suggestionState']['set'](_0x4a1211,'notReady'),_0x4a1211;}['_breakSuggestionMarker'](_0x2cfd70,_0x2c4e7c,_0x531f03){const _0x222a30=_0x2cfd70['getFirstRange'](),_0x36051e=_0x222a30['start'],_0x146997=_0x222a30['end'];this['_setSuggestionRange'](_0x2cfd70,this['_model']['createRange'](_0x36051e,_0x2c4e7c));const _0x4f24a1=_0x25321b(),_0x2d6332=_0x2cfd70['creator']['id'],_0x1c4752=_0x2cfd70['type']+(_0x2cfd70['subType']?':'+_0x2cfd70['subType']:'');this['_setSuggestionData']({'id':_0x4f24a1,'type':_0x1c4752,'createdAt':new Date(),'authorId':_0x2d6332,'originalSuggestionId':_0x2cfd70['_originalSuggestionId']||_0x2cfd70['id'],'attributes':_0x2cfd70['attributes'],'data':_0x2cfd70['data']});const _0x26d017=this['_getAttributeKey'](_0x2cfd70);('formatBlock'==_0x2cfd70['type']||_0x26d017&&this['_suggestionsConversion']['isBlockAttribute'](_0x26d017))&&(_0x531f03=this['_model']['createPositionBefore'](_0x531f03['parent'])),this['_addSuggestionMarker'](_0x1c4752,_0x4f24a1,_0x2d6332,this['_model']['createRange'](_0x531f03,_0x146997));}['_findSuggestions'](_0x5761e6,_0x16da7e=null){const _0x2fea29=[],_0x41f456=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5761e6)||(_0x5761e6=[_0x5761e6]);for(const _0x53ee63 of this['getSuggestions']()){if(!_0x53ee63['isInContent'])continue;if(_0x16da7e&&_0x53ee63['type']!=_0x16da7e)continue;let _0x1f45de=!0x1;for(const _0x2b2c18 of _0x53ee63['getRanges']()){for(const _0x330532 of _0x5761e6){const _0x4c2096=_0x330532['start']['isEqual'](_0x2b2c18['end'])||_0x330532['end']['isEqual'](_0x2b2c18['start']);if(_0x4c2096||_0x330532['getIntersection'](_0x2b2c18)){const _0x53ed05=_0x330532['containsRange'](_0x2b2c18)&&rn(this['_model']['schema'],_0x2b2c18['start'],_0x330532),_0x4d5c69=_0x2b2c18['containsRange'](_0x330532)&&rn(this['_model']['schema'],_0x330532['start'],_0x2b2c18);_0x2fea29['push']({'suggestion':_0x53ee63,'meta':{'isOwn':_0x41f456==_0x53ee63['author'],'isNextTo':_0x4c2096,'isInsideObject':_0x53ed05,'containsRangeInObject':_0x4d5c69}}),_0x1f45de=!0x0;break;}}if(_0x1f45de)break;}}return _0x2fea29;}['_addSuggestionMarker'](_0x132c1f,_0x4332e4,_0x9175d4,_0x2778dc,_0x231668){this['_model']['change'](_0x4b8536=>{let _0x1f1145='suggestion:'+_0x132c1f+':'+_0x4332e4+':'+_0x9175d4;_0x231668&&(_0x1f1145=_0x1f1145+':'+_0x231668),_0x4b8536['addMarker'](_0x1f1145,{'range':_0x2778dc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xbc0b5b){const _0x51b90c=_0xbc0b5b['previous'],_0x57c30a=_0xbc0b5b['next'];_0xbc0b5b['previous']=null,_0xbc0b5b['next']=null,null!=_0x51b90c&&_0x51b90c['next']==_0xbc0b5b&&(_0x51b90c['next']=_0x57c30a),null!=_0x57c30a&&_0x57c30a['previous']==_0xbc0b5b&&(_0x57c30a['previous']=_0x51b90c),'ready'==this['_suggestionState']['get'](_0xbc0b5b)&&(this['_suggestionState']['set'](_0xbc0b5b,'removed'),this['fire']('suggestionUnloaded',_0xbc0b5b,_0x51b90c,_0x57c30a));}['_setSuggestionData'](_0x1206ef){const _0x17eb31=_0x1206ef['id'],_0x3a7dad=this['addSuggestionData'](_0x1206ef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c387e=this['editor']['plugins']['get']('PendingActions'),_0x31bdf9=_0x3a7dad['hasComments'],_0xa1be9a=_0x3a7dad['subType']?_0x3a7dad['type']+':'+_0x3a7dad['subType']:_0x3a7dad['type'],_0x417e28=this['editor']['locale'],_0x2e6c4c=_0x5c387e['add'](St(_0x417e28,'PENDING_ACTION_SUGGESTION')),_0x10d1da={'id':_0x17eb31,'type':_0xa1be9a,'hasComments':_0x31bdf9,'data':_0x1206ef['data']||null,'originalSuggestionId':_0x1206ef['originalSuggestionId']||null,'attributes':_0x3a7dad['attributes']};this['_adapter']['addSuggestion'](_0x10d1da)['then'](_0x14c7f0=>{_0x3a7dad['_saved']=!0x0,_0x5c387e['remove'](_0x2e6c4c),_0x14c7f0&&_0x14c7f0['createdAt']&&(this['_suggestions']['get'](_0x17eb31)['createdAt']=_0x14c7f0['createdAt']);})['catch'](_0x30851b=>{throw _0x195bce('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a7dad['discard']();}),_0x3a7dad['stopListening'](),this['_suggestions']['delete'](_0x3a7dad['id']),this['_suggestionState']['delete'](_0x3a7dad),_0x30851b;});}return _0x3a7dad;}['_updateSuggestionData'](_0x56a2b2,_0x384693){const _0x3cef16=this['editor']['plugins']['get']('PendingActions'),_0xd24e32=this['getSuggestion'](_0x56a2b2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd24e32['_saved']){const _0x18fbb5=_0x3cef16['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x56a2b2,_0x384693)['then'](()=>{_0x3cef16['remove'](_0x18fbb5);});}else _0xd24e32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x56a2b2,_0x384693);});}}['_getSuggestionData'](_0x567678){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ca032('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x567678);}['_handleNewSuggestionMarker'](_0x5ac1cc){const {id:_0x5cae97,type:_0x51b01e,subType:_0x430d45,authorId:_0x2c102c}=tt(_0x5ac1cc),_0x1d49bc=this['_suggestions']['get'](_0x5cae97)||this['_createSuggestion'](_0x51b01e,_0x430d45,_0x5cae97,_0x2c102c,{});switch(this['_checkSuggestionCorrectness'](_0x1d49bc,_0x51b01e,_0x430d45,_0x2c102c),this['_suggestionState']['get'](_0x1d49bc)){case'notReady':this['_getSuggestionData'](_0x5cae97)['then'](_0x537ab7=>{let _0x192bc2=Promise['resolve']();_0x537ab7['hasComments']&&(_0x192bc2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5cae97})),_0x192bc2['then'](()=>{this['addSuggestionData'](_0x537ab7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d49bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5cae97,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d49bc,'ready'),this['fire']('suggestionLoaded',_0x1d49bc);break;case'ready':this['fire']('suggestionChanged',_0x1d49bc);}return _0x1d49bc['addMarkerName'](_0x5ac1cc),_0x1d49bc;}['_refreshSuggestionsChain'](_0x349878){const _0x22b22e=Array['from'](_0x349878),_0x3dccf4=_0x22b22e['filter'](_0x1029bd=>'attribute'==_0x1029bd['type']);this['_refreshAttributeSuggestionsChain'](_0x3dccf4);const _0x2bd7e1=_0x22b22e['filter'](_0x57f007=>!_0x57f007['isMultiRange']&&'attribute'!=_0x57f007['type']),_0x417ac4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3538ce=>!_0x3538ce['isMultiRange']&&'attribute'!=_0x3538ce['type']),_0x4e733b=_0x417ac4['filter'](_0x148d35=>!_0x349878['has'](_0x148d35)),_0x248094=new Map(_0x417ac4['map'](_0x1afac0=>[_0x1afac0,this['_suggestionFactory']['getSuggestionCallback'](_0x1afac0['type'],_0x1afac0['subType'],'chain')])),_0x326e38=new Map(_0x417ac4['map'](_0x45e32f=>[_0x45e32f,_0x45e32f['getFirstRange']()])),_0x416e93=new Set(),_0x57c7f1=new Set();for(let _0x5a1ad7=0x0;_0x5a1ad7<_0x2bd7e1['length'];_0x5a1ad7++)_0x4af438(_0x2bd7e1[_0x5a1ad7],_0x2bd7e1,_0x5a1ad7+0x1);for(let _0x15dc9d=0x0;_0x15dc9d<_0x2bd7e1['length'];_0x15dc9d++)_0x4af438(_0x2bd7e1[_0x15dc9d],_0x4e733b,0x0);const _0x4cff24=new Set();for(let _0x3ac84f=0x0;_0x3ac84f<_0x2bd7e1['length'];_0x3ac84f++){const _0x38d533=_0x2bd7e1[_0x3ac84f];!_0x57c7f1['has'](_0x38d533)&&_0x38d533['previous']&&(_0x4cff24['add'](_0x38d533['previous']),_0x38d533['previous']['next']===_0x38d533&&(_0x38d533['previous']['next']=null),_0x38d533['previous']=null),!_0x416e93['has'](_0x38d533)&&_0x38d533['next']&&(_0x4cff24['add'](_0x38d533['next']),_0x38d533['next']['previous']===_0x38d533&&(_0x38d533['next']['previous']=null),_0x38d533['next']=null);}function _0x4af438(_0x4f9baa,_0x51193c,_0x115b6f){for(let _0x167444=_0x115b6f;_0x167444<_0x51193c['length'];_0x167444++){const _0x47fb5e=_0x4f7f44(_0x4f9baa,_0x51193c[_0x167444]);_0x47fb5e&&(_0x47fb5e[0x0]['next']=_0x47fb5e[0x1],_0x47fb5e[0x1]['previous']=_0x47fb5e[0x0],_0x416e93['add'](_0x47fb5e[0x0]),_0x57c7f1['add'](_0x47fb5e[0x1]));}}function _0x4f7f44(_0x5651cf,_0x30fa34){if(_0x5651cf['author']['id']!==_0x30fa34['author']['id'])return null;const _0x510fbc=_0x248094['get'](_0x5651cf)(_0x5651cf,_0x30fa34,_0x326e38['get'](_0x5651cf),_0x326e38['get'](_0x30fa34));return _0x510fbc&&_0x248094['get'](_0x30fa34)(_0x5651cf,_0x30fa34,_0x326e38['get'](_0x5651cf),_0x326e38['get'](_0x30fa34))?_0x510fbc[0x1]['commentThread']&&_0x510fbc[0x1]['commentThread']['length']?null:_0x510fbc:null;}_0x4cff24['size']&&this['_refreshSuggestionsChain'](_0x4cff24);}['_refreshAttributeSuggestionsChain'](_0x1ed79f){if(0x0==_0x1ed79f['length'])return;const _0x1c6c6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c760=>'attribute'==_0x49c760['type']&&_0x49c760['_isDataLoaded']),_0x34ce73=[],_0x521514=new Map();for(const _0x509778 of _0x1c6c6c){const _0xc657f6=_0x46f71b(_0x509778['attributes']);_0x521514['has'](_0xc657f6)||(_0x521514['set'](_0xc657f6,_0x34ce73['length']),_0x34ce73['push']([])),_0x34ce73[_0x521514['get'](_0xc657f6)]['push'](_0x509778);}!(function(){_0x34ce73['sort']((_0x24b6d4,_0x2ba3a7)=>{const _0x1a4511=_0x24b6d4[0x0]['createdAt'],_0xa52c77=_0x2ba3a7[0x0]['createdAt'];return _0x1a4511==_0xa52c77?_0x24b6d4[0x0]['attributes']['groupId']<_0x2ba3a7[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a4511<_0xa52c77?-0x1:0x1;});for(const _0x4d8e73 of _0x34ce73)_0x4d8e73['sort']((_0x3a352d,_0x5b5128)=>_0x3a352d['id']<_0x5b5128['id']?-0x1:0x1);}());for(let _0x14851a=0x0;_0x14851a<_0x34ce73['length'];_0x14851a++){if(0x0==_0x34ce73[_0x14851a]['length'])continue;const _0x3feece=[];for(let _0x20d761=_0x14851a+0x1;_0x20d761<_0x34ce73['length'];_0x20d761++)0x0!=_0x34ce73[_0x20d761]['length']&&_0x546e6e(_0x34ce73[_0x14851a],_0x34ce73[_0x20d761])&&_0x3feece['push'](_0x20d761);for(const _0x5b577f of _0x3feece)_0x34ce73[_0x14851a]=_0x34ce73[_0x14851a]['concat'](_0x34ce73[_0x5b577f]),_0x34ce73[_0x5b577f]=[];}for(const _0xfb06ca of _0x34ce73)for(let _0x19ebe9=0x0;_0x19ebe9<_0xfb06ca['length'];_0x19ebe9++){const _0x1a0086=_0xfb06ca[_0x19ebe9+0x1]||null;_0xfb06ca[_0x19ebe9]['next']!==_0x1a0086&&(_0xfb06ca[_0x19ebe9]['next']=_0x1a0086);}for(const _0x3909fe of _0x34ce73)for(let _0x2e7815=0x0;_0x2e7815<_0x3909fe['length'];_0x2e7815++){const _0x5a0384=_0x3909fe[_0x2e7815-0x1]||null;_0x3909fe[_0x2e7815]['previous']!==_0x5a0384&&(_0x3909fe[_0x2e7815]['previous']=_0x5a0384);}function _0x546e6e(_0x1517b5,_0x331a1e){return(_0x1517b5[0x0]['attributes']['groupId']===_0x331a1e[0x0]['attributes']['groupId']||_0x1517b5[0x0]['author']===_0x331a1e[0x0]['author'])&&(!!function(_0x3696ee,_0x5b5c95){return!_0x3696ee['hasComments']&&!_0x5b5c95['hasComments']||(!_0x3696ee['hasComments']||!_0x5b5c95['hasComments'])&&(!!(_0x3696ee['hasComments']&&_0x5b5c95['createdAt']<_0x3696ee['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5b5c95['hasComments']&&_0x3696ee['createdAt']<_0x5b5c95['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1517b5[0x0],_0x331a1e[0x0])&&(!!ct(lt(_0x1517b5[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x331a1e[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x1517b5[0x0]['attributes']['groupId']==_0x331a1e[0x0]['attributes']['groupId']||_0x1517b5[0x0]['attributes']['trackingSessionId']===_0x331a1e[0x0]['attributes']['trackingSessionId']&&(!!_0x1517b5['every'](_0x225a0b=>_0x331a1e['some'](_0x1bb1d4=>_0x225a0b['getFirstRange']()['isEqual'](_0x1bb1d4['getFirstRange']())))&&_0x331a1e['every'](_0x1421df=>_0x1517b5['some'](_0x4099a7=>_0x1421df['getFirstRange']()['isEqual'](_0x4099a7['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x3095cb){const _0x131835=Array['from'](_0x3095cb),_0x29666b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b33f1=_0x29666b['filter'](_0x989976=>!_0x3095cb['has'](_0x989976)),_0x45c16d=new Map(_0x131835['map'](_0x283e66=>[_0x283e66,this['_suggestionFactory']['getSuggestionCallback'](_0x283e66['type'],_0x283e66['subType'],'join')])),_0x4455b9=new Map(_0x29666b['map'](_0x2caaa1=>[_0x2caaa1,_0x2caaa1['getRanges']()]));for(let _0x14946c=0x0;_0x14946c<_0x131835['length'];_0x14946c++)if(_0x4e944d(this,_0x131835[_0x14946c],_0x131835,_0x14946c+0x1))return!0x0;for(let _0x4e1dd5=0x0;_0x4e1dd5<_0x131835['length'];_0x4e1dd5++)if(_0x4e944d(this,_0x131835[_0x4e1dd5],_0x1b33f1,0x0))return!0x0;return!0x1;function _0x4e944d(_0x130b4a,_0x4aec77,_0x26dee1,_0x76fdf0){for(let _0x120e95=_0x76fdf0;_0x120e95<_0x26dee1['length'];_0x120e95++){const _0x64f6b2=_0x26dee1[_0x120e95];if(_0x64f6b2['type']!==_0x4aec77['type']||_0x64f6b2['author']['id']!==_0x4aec77['author']['id']||_0x64f6b2['subType']!==_0x4aec77['subType'])continue;if(!mn(_0x4aec77,_0x64f6b2))continue;if('attribute'==_0x4aec77['type']&&_0x4aec77['data']['oldValue']!=_0x64f6b2['data']['oldValue'])continue;if('attribute'==_0x4aec77['type']&&_0x130b4a['_suggestionsConversion']['isBlockAttribute'](_0x4aec77['data']['key']))continue;if('formatBlock'==_0x4aec77['type']){const _0x5d44ac=_0x130b4a['editor']['model'],_0x41a5b5=_0x4aec77['getContainedElement']();if(_0x41a5b5&&(_0x5d44ac['schema']['isObject'](_0x41a5b5)||_0x5d44ac['schema']['isLimit'](_0x41a5b5)))continue;}const _0xaf58fd=_0x45c16d['get'](_0x4aec77),_0x2f9d39=_0x4455b9['get'](_0x4aec77),_0x5a790e=_0x4455b9['get'](_0x64f6b2),_0x33a22a=_0x4aec77['commentThread']&&_0x4aec77['commentThread']['length'],_0x185032=_0x64f6b2['commentThread']&&_0x64f6b2['commentThread']['length'];if(!_0x33a22a&&_0xaf58fd(_0x5a790e,_0x2f9d39))return _0x130b4a['_joinSuggestions'](_0x64f6b2,_0x4aec77),_0x4455b9['delete'](_0x4aec77),!0x0;if(!_0x185032&&_0xaf58fd(_0x2f9d39,_0x5a790e))return _0x130b4a['_joinSuggestions'](_0x4aec77,_0x64f6b2),_0x4455b9['delete'](_0x64f6b2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d0dc8,_0xd55ebc){if(_0x5d0dc8['isMultiRange']){for(const _0x5b944d of _0xd55ebc['getRanges']())_0x5d0dc8['addRange'](_0x5b944d);}else{const _0x76ba64=_0xd55ebc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d0dc8,this['_model']['createRange'](_0x5d0dc8['getFirstRange']()['start'],_0x76ba64));}_0xd55ebc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2ac5a4,_0x44cf2c,_0x5973dc){const _0x47a7a6=_0x2ac5a4['startsWith']('format')||_0x2ac5a4['startsWith']('attribute')?'FORMATTING':_0x2ac5a4['toUpperCase']();return St(this['editor']['locale'],_0x44cf2c+'_'+_0x47a7a6+'_SUGGESTION_ANNOUNCEMENT',_0x5973dc);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b18c2=this['editor'];if(!_0x5b18c2['ui'])return;const {ariaLiveAnnouncer:_0x2614b9}=_0x5b18c2['ui'];et(this['_model'],({left:_0x57668f,entered:_0xea3da1})=>{for(const _0x4aff66 of _0x57668f){const {group:_0x406c54,type:_0xa85478}=tt(_0x4aff66['name']);if('suggestion'===_0x406c54){_0x2614b9['announce'](this['_getMarkerAnnouncementText'](_0xa85478,'LEAVE'));break;}}for(const _0xa0ca22 of _0xea3da1){const {group:_0x21b1c4,type:_0xf46437}=tt(_0xa0ca22['name']);if('suggestion'===_0x21b1c4){_0x2614b9['announce'](this['_getMarkerAnnouncementText'](_0xf46437,'ENTER',_0x5b231d(_0x27b811)));break;}}});}['_processAttributeChanges'](_0x35ce29){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ea707=this['editor'],_0x18e222=_0x3ea707['model']['document']['differ']['getChanges']();if(0x0==_0x18e222['length'])return!0x1;const _0x1fea24=[],_0x4e79cb=_0x18e222['filter'](_0x524a86=>'attribute'==_0x524a86['type']),_0x53a5e9=_0x18e222['filter'](_0x117e05=>'insert'==_0x117e05['type']&&'$text'!=_0x117e05['name']),_0xd90625=_0x18e222['filter'](_0x3e5298=>'remove'==_0x3e5298['type']&&'$text'!=_0x3e5298['name']);for(const _0x4851b2 of _0x4e79cb)_0x1fea24['push']({'key':_0x4851b2['attributeKey'],'newValue':_0x4851b2['attributeNewValue'],'oldValue':_0x4851b2['attributeOldValue'],'range':hn(_0x4851b2['range'],_0x3ea707['model'])});for(const _0x5c3e88 of _0x53a5e9){const _0xc6cf8f=_0xd90625['find'](_0x1a28ec=>_0x1a28ec['position']['isEqual'](_0x5c3e88['position']));_0xc6cf8f&&_0x1fea24['push']({'key':en,'newValue':_0x5c3e88['name'],'oldValue':_0xc6cf8f['name'],'range':_0x3ea707['model']['createRangeOn'](_0x5c3e88['position']['nodeAfter'])});}return 0x0!=_0x1fea24['length']&&this['_reduceExistingSuggestions'](_0x35ce29,_0x1fea24);}['_processAttributeSuggestions'](_0x40783a){let _0x24f1b5=!0x1;const _0x40aaa0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30940a=>_0x30940a['data']['newRange']&&_0x30940a['name']['startsWith']('suggestion:attribute:'));for(const _0x208d7e of _0x40aaa0){const {subType:_0x216635,id:_0xecb761}=tt(_0x208d7e['name']),_0x49a4fa=_0x216635['split']('|')[0x0];for(const _0x6d3b13 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x6d3b13['id']!=_0xecb761&&'attribute'==_0x6d3b13['type']&&_0x6d3b13['data']&&_0x6d3b13['data']['key']==_0x49a4fa&&_0x6d3b13['getFirstRange']()['isIntersecting'](_0x208d7e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x6d3b13,_0x208d7e['data']['newRange'],_0x40783a),_0x24f1b5=!0x0);}return _0x24f1b5;}['recordAttributeChanges'](_0x579b25){this['_recordAttributeSuggestions']=!0x0,_0x579b25();}['_reduceExistingSuggestions'](_0x80a502,_0x19cec8){if(0x0==_0x19cec8['length'])return!0x1;let _0x3cb7f9=!0x1;for(const _0x1aa512 of _0x19cec8){const _0x15a5cc=this['_findSuggestions'](_0x1aa512['range'],'attribute')['filter'](_0x5a62a0=>!_0x5a62a0['meta']['isNextTo'])['map'](_0x1fd50f=>_0x1fd50f['suggestion']),_0x10ec07=_0x46f71b({'newValue':_0x1aa512['newValue']});_0x15a5cc['filter'](_0x1b62d3=>{const [_0xe8d17a,_0x15ce93]=_0x1b62d3['subType']['split']('|');return _0xe8d17a==_0x1aa512['key']&&_0x15ce93!=_0x10ec07;})['forEach'](_0x363965=>{this['_reduceSuggestionAttributeRange'](_0x363965,_0x1aa512['range'],_0x80a502),_0x3cb7f9=!0x0;});}return _0x3cb7f9;}['_reduceSuggestionAttributeRange'](_0x4b035f,_0x4dfe0e,_0x332c11){const _0x126f9b=_0x4b035f['getFirstRange']()['getDifference'](_0x4dfe0e);0x0!==_0x126f9b['length']?0x1!==_0x126f9b['length']?this['_breakSuggestionMarker'](_0x4b035f,_0x4dfe0e['start'],_0x4dfe0e['end']):this['_setSuggestionRange'](_0x4b035f,_0x126f9b[0x0]):_0x332c11['removeMarker'](_0x4b035f['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5021ff){this['_editor']=_0x5021ff,this['_model']=_0x5021ff['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x516cf4,_0x229152,_0x52315f,_0x1d94b7,_0x471238,_0x46aabf,_0xe24e31){return new yt(this['_model'],{'type':_0x516cf4,'subType':_0x229152,'id':_0x52315f,'originalSuggestionId':_0xe24e31,'author':_0x1d94b7,'creator':_0x1d94b7,'attributes':_0x471238,'onAttributesChange':_0x46aabf,'onAccept':(..._0x13fa38)=>this['getSuggestionCallback'](_0x516cf4,_0x229152,'accept')(..._0x13fa38),'onDiscard':(..._0x5c9ede)=>this['getSuggestionCallback'](_0x516cf4,_0x229152,'discard')(..._0x5c9ede)});}['registerCustomCallback'](_0xb57bc7,_0x9a29ce,_0x486bda,_0x497d9a){const _0x327085=_0xb57bc7+':'+_0x9a29ce+':'+_0x486bda;this['_customCallbacks']['set'](_0x327085,_0x497d9a);}['getSuggestionCallback'](_0x347b44,_0x489175,_0xfe45d3){const _0x388678=_0x347b44+':'+_0x489175+':'+_0xfe45d3;return this['_customCallbacks']['get'](_0x388678)||this['_defaultCallbacks']['get'](_0x347b44+':'+_0xfe45d3);}['_registerDefaultCallbacks'](){const _0x7607d8=()=>!0x1,_0x31e45f=_0x4af147=>{_0x4af147['sort']((_0x27761a,_0x5e7bbd)=>_0x27761a['start']['isBefore'](_0x5e7bbd['start'])?0x1:-0x1),this['_model']['change'](_0x3db8fa=>{for(const _0x361c5b of _0x4af147){let _0x55055d;_0x55055d=_0x361c5b['end']['isAtEnd']&&_0x361c5b['end']['parent']==_0x361c5b['start']['nodeAfter']?_0x3db8fa['createSelection'](_0x361c5b['start']['nodeAfter'],'on'):_0x3db8fa['createSelection'](_0x361c5b),this['_model']['deleteContent'](_0x55055d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x15c16d=(_0x3d135b,_0x4e758c)=>{_0x4e758c&&this['_model']['change'](_0x23b83b=>{const {commandName:_0x552260,commandParams:_0x39c4dc=[]}=_0x4e758c,_0x489362=_0x3d135b['map'](_0x18556f=>(on(_0x18556f)&&(_0x18556f=this['_model']['createRange'](_0x18556f['end'])),_0x18556f))['filter'](_0x171351=>'$graveyard'!==_0x171351['root']['rootName']);if(_0x489362['length']<0x1)return;const _0x5515cb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b7008=>rt['fromRange'](_0x3b7008));_0x23b83b['setSelection'](_0x489362);for(const _0x2e2e68 of this['_editor']['commands']['commands']())_0x2e2e68['refresh']();_0x39c4dc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x552260,..._0x39c4dc);const _0x5904c5=_0x5515cb['filter'](_0x202823=>'$graveyard'!=_0x202823['root']['rootName']);_0x5904c5['length']>0x0&&_0x23b83b['setSelection'](_0x5904c5);for(const _0x3b0a46 of _0x5515cb)_0x3b0a46['detach']();});},_0xfee49b=(_0xc02b96,_0x4e53a6)=>0x1==_0xc02b96['length']&&0x1==_0x4e53a6['length']&&_0xc02b96[0x0]['end']['isEqual'](_0x4e53a6[0x0]['start']),_0x576bb4=(_0x57c738,_0x2e1b2e,_0x3c1800,_0x31ea8f)=>fn(_0x57c738,_0x2e1b2e,_0x3c1800,_0x31ea8f)?[_0x57c738,_0x2e1b2e]:fn(_0x2e1b2e,_0x57c738,_0x31ea8f,_0x3c1800)?[_0x2e1b2e,_0x57c738]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x7607d8),this['_defaultCallbacks']['set']('insertion:discard',_0x31e45f),this['_defaultCallbacks']['set']('insertion:join',_0xfee49b),this['_defaultCallbacks']['set']('insertion:chain',_0x576bb4),this['_defaultCallbacks']['set']('deletion:accept',_0x31e45f),this['_defaultCallbacks']['set']('deletion:discard',_0x7607d8),this['_defaultCallbacks']['set']('deletion:join',_0xfee49b),this['_defaultCallbacks']['set']('deletion:chain',_0x576bb4),this['_defaultCallbacks']['set']('formatInline:accept',_0x15c16d),this['_defaultCallbacks']['set']('formatInline:discard',_0x7607d8),this['_defaultCallbacks']['set']('formatInline:join',_0xfee49b),this['_defaultCallbacks']['set']('formatInline:chain',_0x7607d8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15c16d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x7607d8),this['_defaultCallbacks']['set']('formatBlock:join',_0xfee49b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x7607d8),this['_defaultCallbacks']['set']('attribute:accept',_0x7607d8),this['_defaultCallbacks']['set']('attribute:discard',(_0x3eca64,_0x4ac7c9)=>{if(!_0x4ac7c9)return;const _0x3550ca=this['_editor']['plugins']['get'](_0x3c4484);this['_model']['change'](_0x4daa87=>{if('$elementName'==_0x4ac7c9['key'])for(const _0x47a8dd of _0x3eca64){const _0x140a53=_0x47a8dd['start']['nodeAfter'],_0x3c5c26=_0x4ac7c9['oldValue'];_0x4daa87['rename'](_0x140a53,_0x3c5c26);}else{if(_0x3550ca['isBlockAttribute'](_0x4ac7c9['key'])){for(const _0x82c1cc of _0x3eca64)void 0x0!==_0x4ac7c9['oldValue']?_0x4daa87['setAttribute'](_0x4ac7c9['key'],_0x4ac7c9['oldValue'],_0x82c1cc['start']['nodeAfter']):_0x4daa87['removeAttribute'](_0x4ac7c9['key'],_0x82c1cc['start']['nodeAfter']);}else{for(const _0x224941 of _0x3eca64)_0x4ac7c9['oldValue']?_0x4daa87['setAttribute'](_0x4ac7c9['key'],_0x4ac7c9['oldValue'],_0x224941):_0x4daa87['removeAttribute'](_0x4ac7c9['key'],_0x224941);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xfee49b);}};function rn(_0x3c5385,_0x256e31,_0xba633d){for(const _0x1d3832 of _0x256e31['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1d3832['root']==_0x1d3832)return!0x1;if(!_0xba633d['containsItem'](_0x1d3832))return!0x1;if(_0x3c5385['isObject'](_0x1d3832)||_0x3c5385['isLimit'](_0x1d3832))return!0x0;}return!0x1;}function on(_0x646b2f){return _0x646b2f['end']['parent']==_0x646b2f['start']['nodeAfter']&&_0x646b2f['end']['isAtStart'];}function an(_0x6b0e51,_0x20f4d1,_0x4bfbb0,_0x34366f){const _0x8efb89=_0x56524d=>!_0x56524d['item']['is']('$textProxy')&&!_0x34366f['isObject'](_0x56524d['item']),_0x43041d=_0x6b0e51['start']['getLastMatchingPosition'](_0x8efb89),_0x30d829=_0x6b0e51['end']['getLastMatchingPosition'](_0x8efb89,{'direction':'backward'});return(!_0x6b0e51['start']['isEqual'](_0x43041d)||!_0x6b0e51['end']['isEqual'](_0x30d829))&&(_0x43041d['isBefore'](_0x30d829)?_0x4bfbb0['updateMarker'](_0x20f4d1,{'range':_0x4bfbb0['createRange'](_0x43041d,_0x30d829)}):_0x4bfbb0['removeMarker'](_0x20f4d1),!0x0);}function cn(_0x40bcf1){return _0x46f71b(_0x40bcf1);}function ln(_0x203708){const _0x33b983=_0x203708['start']['nodeAfter'];return _0x33b983&&_0x33b983['is']('element');}function un(_0x4a9e16){return on(_0x4a9e16)||function(_0x26c892){return _0x26c892['start']['parent']==_0x26c892['end']['nodeBefore']&&_0x26c892['start']['isAtEnd'];}(_0x4a9e16);}function dn(_0x333575,_0x3e77ea){try{const _0x417d18=_0x333575['getRange']();for(const _0x898b49 of _0x3e77ea)if(_0x333575!==_0x898b49&&_0x417d18&&_0x417d18['isIntersecting'](_0x898b49['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x49f8d7,_0x345e27){return null==_0x49f8d7['end']['nodeBefore']&&_0x49f8d7['end']['parent']==_0x49f8d7['start']['nodeAfter']?gn(_0x49f8d7['start']['nodeAfter'],_0x345e27):_0x49f8d7;}function gn(_0x6559fc,_0x2b3e19){const _0xb97c66=_0x2b3e19['schema']['isObject'](_0x6559fc)||_0x2b3e19['schema']['isSelectable'](_0x6559fc);return _0x2b3e19['createRange'](_0x2b3e19['createPositionAt'](_0x6559fc,'before'),_0xb97c66?_0x2b3e19['createPositionAfter'](_0x6559fc):_0x2b3e19['createPositionAt'](_0x6559fc,'end'));}function fn(_0x3b1151,_0x10209b,_0x39dcb4,_0x1f504f){return!!mn(_0x3b1151,_0x10209b)&&_0x39dcb4['end']['isEqual'](_0x1f504f['start']);}function mn(_0x5d22b3,_0x2731b1){if(!_0x5d22b3['_isDataLoaded']||!_0x2731b1['_isDataLoaded'])return!0x1;const _0x35036d=new Set(Object['keys'](_0x5d22b3['attributes'])),_0x38bf92=new Set(Object['keys'](_0x2731b1['attributes']));if(_0x35036d['delete']('groupId'),_0x38bf92['delete']('groupId'),0x0==_0x35036d['size']&&0x0==_0x38bf92['size'])return!0x0;if(_0x35036d['size']!=_0x38bf92['size'])return!0x1;const _0x2dbbcf={..._0x5d22b3['attributes']},_0x214f92={..._0x2731b1['attributes']};return delete _0x2dbbcf['groupId'],delete _0x214f92['groupId'],JSON['stringify'](_0x2dbbcf)==JSON['stringify'](_0x214f92);}function En(_0xbbb49,_0x2e6e5a){const _0x456eb1=Tn(_0xbbb49['attributes']),_0x51e10c=Tn(_0x2e6e5a);if(!_0xbbb49['_isDataLoaded'])return!0x1;if(!ct(_0x456eb1['@ai'],_0x51e10c['@ai']))return!0x1;for(const _0x56e288 of Object['keys'](_0x51e10c))if(!ct(_0x456eb1[_0x56e288],_0x51e10c[_0x56e288]))return!0x1;return!0x0;}function Tn(_0x49f404){const _0x2b048a=Object['assign']({},_0x49f404);return delete _0x2b048a['skipNestingCheck'],delete _0x2b048a['tablePasteChainId'],_0x2b048a;}function _n(_0x3570ca){return _0x3570ca['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
- _0x58d8b4();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x185f1f,_0x20cd3b,_0x144100,_0xb5145f){super(),this['model']=_0x20cd3b,this['view']=_0x144100,this['commentThreadController']=_0xb5145f,this['_editor']=_0x185f1f,this['_acceptCommand']=_0x185f1f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x185f1f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x564dda,_0x4bfc6f)=>_0x564dda||_0x4bfc6f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x410ddc=>_0x410ddc&&this['_editor']['model']['canEditAt'](_0x20cd3b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ea66c=>_0x2ea66c&&this['_editor']['model']['canEditAt'](_0x20cd3b['getRanges']())),this['_pendingAction']=null,_0x144100['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x144100,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x144100,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x144100,'change:isDirty',()=>{_0x144100['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 _0x3b2d73=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b2d73);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x48ea13{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x33eb50,_0x48632b,_0x245291,_0x3b7952){super(_0x33eb50),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3f75ca(_0x33eb50,St(_0x33eb50,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48632b['authoredAt']),this['bind']('authoredAt')['to'](_0x48632b),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',_0x48632b,'authoredAt',this,'descriptionParts',(_0x3cb893,_0x1223b4,_0x30a1b0)=>{const _0x57aecf=_0x30a1b0['map'](_0x19589c=>pt(_0x19589c['content']))['join']('.\x20')+'.',_0x31691a=_0x48632b['aiSource']&&'author'===_0x3b7952['showAISource']?_0x3b7952['aiAuthor']['name']:_0x48632b['author']['name'],_0x37b74a=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3cb893-0x1,_0x31691a,_0x1223b4?_0x3b7952['formatDateTime'](_0x1223b4):'',new DOMParser()['parseFromString'](_0x57aecf,'text/html')['body']['textContent']]);return _0x48632b['aiSource']&&'pill'===_0x3b7952['showAISource']?_0x37b74a+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x37b74a;}),this['focusables']=new _0x7d9825(),this['focusTracker']=new _0x446810(),this['keystrokes']=new _0x2a1141(),this['focusCycler']=new _0x8d07ec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f385b=>_0x1f385b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48632b,this['_localUser']=_0x245291,this['_config']=_0x3b7952,_0x3b7952['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2b984e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1059b3}=this['_config'];this['commentsListView']=new _0x1059b3(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',_0x727d60=>_0x727d60+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3ad9cc,_0x1f2344)=>_0x3ad9cc||!!_0x1f2344);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x12782c}=this['_config'],_0x1291cf=new _0x12782c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ce52f=_0x1291cf['commentInputView'];return _0x1291cf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ce52f,'value',(_0x5a1174,_0x593f6e,_0x34df9f)=>!!_0x34df9f||_0x5a1174&&!_0x593f6e),_0x4ce52f['on']('submit',(_0x2b37b8,_0x14a874)=>{this['fire']('addComment',_0x14a874),_0x4ce52f['editor']['setData']('');}),_0x4ce52f['on']('cancel',()=>this['focus']()),_0x4ce52f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1291cf;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x1689b7,_0x26aebb,_0x365f9f,_0x5bfb60){super(_0x1689b7,_0x26aebb,_0x365f9f,_0x5bfb60),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3ae01e=>_0x3ae01e&&_0x3ae01e[0x0]?_0x3ae01e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x23b04b,_0x558e15)=>{let _0xbab3db='';for(const _0x5c6970 of _0x23b04b)_0xbab3db+='<p>'+pt(_0x5c6970['content'],_0x5c6970['color'])+'</p>';return _0x558e15?_0xbab3db:nt(_0xbab3db,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5bfb60['SuggestionView'](_0x1689b7,_0x26aebb,{'formatDateTime':_0x5bfb60['formatDateTime'],'showAISource':_0x5bfb60['showAISource'],'aiAuthor':_0x5bfb60['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 _0x5b71d1=this['bindTemplate'],_0x56cef0=[this['suggestionView']];return this['commentsListView']&&_0x56cef0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56cef0['push'](this['commentThreadInputView']),_0x56cef0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5b71d1['if']('isActive','ck-suggestion-wrapper--active'),_0x5b71d1['to']('type',_0x4f00f9=>'ck-suggestion-'+_0x4f00f9),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':_0x5b71d1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56cef0};}['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 _0x48ea13{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x47ff78,_0x392148,_0x3c1018){super(_0x47ff78),this['_model']=_0x392148,this['_config']=_0x3c1018,this['set']('description',''),this['bind']('authoredAt')['to'](_0x392148),this['acceptButton']=this['_createButton'](St(_0x47ff78,'Accept\x20suggestion'),_0x245124,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x47ff78,'Discard\x20suggestion'),_0x4b29b8,'ck-suggestion--discard','discardSuggestion','sw');const _0x4ab315=!!_0x392148['aiSource']&&'author'===_0x3c1018['showAISource'],_0x11ad6a=_0x4ab315?this['_createAIUser'](_0x3c1018['aiAuthor']):_0x392148['author'],_0x55e074=_0x4ab315&&!_0x3c1018['aiAuthor']['avatar']?_0x3f7edc:void 0x0;this['userView']=new _0x3c0295(_0x47ff78,_0x11ad6a,this['getUserViewNotificationText'](),_0x55e074),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x7d9825([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x446810(),this['keystrokes']=new _0x2a1141(),this['focusCycler']=new _0x8d07ec({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xe0715b=>_0xe0715b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3accb9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3accb9['innerHTML']=this['description'],this['on']('change:description',(_0x5efc90,_0x1072e2,_0x35aa5d)=>{_0x3accb9['innerHTML']=_0x35aa5d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b4df5=this['bindTemplate'],_0x4faa1a=[{'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':_0x2b4df5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b4df5['to']('authoredAt',_0x5af285=>this['_config']['formatDateTime'](_0x5af285))}]}]},{'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']&&_0x4faa1a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x2bc8bd=new _0x22ac6f(this['locale']);_0x2bc8bd['set']({'icon':_0x1c2ddb,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4faa1a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x2bc8bd]});}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':_0x4faa1a}]};}['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'](_0x493f5d){return new _0x20d5ba({'id':'ck-ai-author','name':_0x493f5d['name'],'avatar':_0x493f5d['avatar'],'color':new _0x4df9c0(0x0)});}['_createButton'](_0x4e1847,_0x8e8d2b,_0x588095,_0x3e7e6b,_0x4b52c4){const _0x36ae39=new _0x3cd450(this['locale']);return _0x36ae39['set']({'label':_0x4e1847,'icon':_0x8e8d2b,'tooltip':!0x0,'tooltipPosition':_0x4b52c4}),_0x36ae39['extendTemplate']({'attributes':{'class':_0x588095}}),_0x36ae39['on']('execute',()=>{this['fire'](_0x3e7e6b,this['_model']['id']);}),_0x36ae39;}['_setupKeyboardNavigation'](){const _0x29e306=this['element'];this['keystrokes']['listenTo'](_0x29e306);for(const _0x421448 of this['focusables'])this['focusTracker']['add'](_0x421448['element']),this['keystrokes']['listenTo'](_0x421448['element']);this['keystrokes']['set']('enter',(_0x16924e,_0x5468da)=>{_0x29e306===_0x16924e['target']&&(this['focusCycler']['focusFirst'](),_0x5468da());}),this['keystrokes']['set']('esc',(_0x589e1f,_0x1979c6)=>{_0x29e306!==_0x589e1f['target']&&(this['focus'](),_0x1979c6());});}},kn=class extends _0x1a4f44{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x20c4f0,_0x4522ba,_0xd6c75c,_0x5a64bd];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x327de2){super(_0x327de2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xf20f93=this['editor']['config'];_0xf20f93['define']('trackChanges.SuggestionThreadView',An),_0xf20f93['define']('trackChanges.SuggestionView',bn),_0xf20f93['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xf20f93['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x134683,_0x18e9dd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x204c15,_0x45e26d]of this['_handleControllerBuffer']){const _0x3cf322=this['_suggestionToController']['has'](_0x204c15);_0x3cf322||_0x45e26d?_0x3cf322&&_0x45e26d&&this['_destroyController'](_0x204c15):this['_initializeController'](_0x204c15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5a64bd)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x134683,_0x18e9dd);}['init'](){const _0x16eaee=this['editor'],_0x146580=_0x16eaee['plugins']['get'](nn),_0x739645=_0x16eaee['plugins']['get'](_0xd6c75c),_0x8c992f=_0x16eaee['plugins']['get'](_0x5a64bd),_0x152a6c=_0x16eaee['plugins']['get'](_0x4522ba);this['_addUIComponentsToFactory'](),_0x8c992f['addSourceCollector'](()=>{const _0x2fc445=[];for(const [_0x4e7c62,_0x5ba6e6]of Array['from'](this['_suggestionToController'])){const _0x1420ad=_0x4e7c62['getAllAdjacentSuggestions'](),_0x1b33ed=[];for(const _0x12ef3b of _0x1420ad){if(!_0x12ef3b['isInContent'])continue;if(_0x12ef3b['isMultiRange']){_0x1b33ed['push'](..._0x12ef3b['getRanges']());continue;}const _0x52de24=_0x12ef3b['getFirstRange']();if(_0x1b33ed['length']>0x0){const _0x22fa3c=_0x1b33ed[0x0]['getJoined'](_0x52de24);if(_0x22fa3c){_0x1b33ed[0x0]=_0x22fa3c;continue;}}_0x1b33ed['push'](_0x52de24);}_0x2fc445['push']([_0x5ba6e6['view'],_0x1b33ed]);}return _0x2fc445;}),this['listenTo'](_0x146580,'suggestionLoaded',(_0x37369c,_0x30f5b4)=>{this['listenTo'](_0x30f5b4,'change:previous',(_0x1e543b,_0x14b692,_0x2276f6,_0x281504)=>{_0x30f5b4['isInContent']&&(null==_0x2276f6?(this['_updateController'](_0x281504['head']),this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x1)):(this['_updateController'](_0x2276f6['head']),null==_0x281504&&this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x0)));}),null!==_0x30f5b4['previous']?this['_updateController'](_0x30f5b4['head']):this['_handleSuggestionControllerDelayed'](_0x30f5b4,!0x1);}),this['listenTo'](_0x146580,'suggestionUnloaded',(_0x4c2821,_0x57ecd2,_0x5802dc)=>{this['stopListening'](_0x57ecd2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x57ecd2),this['_suggestionToController']['has'](_0x57ecd2)&&this['_destroyController'](_0x57ecd2),_0x5802dc&&this['_updateController'](_0x5802dc['head']);}),this['listenTo'](_0x146580,'suggestionChanged',(_0x333d73,_0x2f1ae4)=>{this['_updateController'](_0x2f1ae4);}),this['listenTo'](_0x739645,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x152a6c,'addComment',(_0x4566ee,{threadId:_0x2c4d1c,isFromAdapter:_0x544878})=>{if(_0x544878||!_0x146580['hasSuggestion'](_0x2c4d1c))return;const _0x2ec784=_0x146580['getSuggestion'](_0x2c4d1c);this['_suggestionToController']['get'](_0x2ec784)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d2a28=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2620f5;for(const _0x16c4a8 in _0x3d2a28){const _0x2233cc=_0x16c4a8,_0xe74179=_0x3d2a28[_0x2233cc];if('trackChangesLicenseKeyValid'==_0xe74179||'trackChangesLicenseKeyInvalid'==_0xe74179||'trackChangesLicenseKeyExpired'==_0xe74179||'trackChangesLicenseKeyDomainLimit'==_0xe74179||'trackChangesLicenseKeyNotAllowed'==_0xe74179||'trackChangesLicenseKeyEvaluationLimit'==_0xe74179||'trackChangesLicenseKeyUsageLimit'==_0xe74179){delete _0x3d2a28[_0x2233cc],_0x2620f5=_0xe74179,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2620f5&&_0x3d2a28['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2620f5&&_0x3d2a28['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2620f5&&_0x3d2a28['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2620f5&&_0x3d2a28['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1e1c48){const _0x2d51fe=this['_suggestionToController']['get'](_0x1e1c48);return _0x2d51fe&&this['editor']['plugins']['get'](_0xd6c75c)['getByInnerView'](_0x2d51fe['view'])||null;}['getSuggestionForAnnotation'](_0x235061){const _0x566e5e=this['_viewToController']['get'](_0x235061['innerView']);return _0x566e5e?_0x566e5e['model']:null;}['_refreshActiveMarkers'](){const _0x16c98f=this['editor']['plugins']['get'](_0xd6c75c),_0x369e65=this['editor']['plugins']['get'](nn),_0x3b69b1=Array['from'](_0x16c98f['activeAnnotations'],_0x5ef0f5=>_0x5ef0f5['innerView'])['filter'](_0xdb67a=>this['_viewToController']['has'](_0xdb67a)),_0x319f17=[];for(const _0x50575d of _0x3b69b1){const _0x25973e=this['_viewToController']['get'](_0x50575d)['model']['getAllAdjacentSuggestions']();_0x319f17['push'](..._0x25973e['reduce']((_0x3fd7bb,_0x23bcd8)=>[..._0x3fd7bb,..._0x23bcd8['getMarkerNames']()],[]));}_0x369e65['activeMarkers']=_0x319f17;}['_addUIComponentsToFactory'](){const _0x1362ef=this['editor'],_0x159604=_0x1362ef['locale'],_0x4da3eb=St(_0x159604,'Track\x20changes'),_0x3a6e75=new _0x5b3a50([{'type':'switchbutton','model':new _0x351d43({'withText':!0x0,'isToggleable':!0x0,'label':_0x4da3eb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1362ef['plugins']['has']('TrackChangesPreview')&&_0x3a6e75['addMany']([{'type':'separator'},{'type':'button','model':new _0x351d43({'withText':!0x0,'label':St(_0x159604,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9f98be of _0x3a6e75)if(Cn(_0x9f98be)){const _0x4421e9=_0x1362ef['commands']['get'](_0x9f98be['model']['commandName']);_0x9f98be['model']['bind']('isOn','isEnabled')['to'](_0x4421e9,'value','isEnabled');}_0x1362ef['ui']['componentFactory']['add']('trackChanges',_0x31a7cd=>this['_createToolbarButton'](_0x31a7cd,_0x3a6e75,_0x4da3eb)),_0x1362ef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1fc8b1=>this['_createMenuBarMenu'](_0x1fc8b1,_0x3a6e75,_0x4da3eb));}['_createToolbarButton'](_0x35eb0f,_0x4b32b5,_0x32bd43){const _0x3fc01e=_0x216eb4(_0x35eb0f,_0x85046c),_0x5a2331=this['editor']['commands']['get']('trackChanges');_0x3fc01e['buttonView']['set']({'tooltip':_0x32bd43,'label':_0x32bd43,'icon':_0x1dccf5}),_0x3fc01e['buttonView']['bind']('isOn')['to'](_0x5a2331,'value'),_0x3fc01e['buttonView']['on']('execute',()=>{_0x5a2331['execute'](),this['editor']['editing']['view']['focus']();}),_0x4de4ff(_0x3fc01e,_0x4b32b5,{'role':'menu'});const _0x173d8a=[];for(const _0x3f4747 of _0x4b32b5)Cn(_0x3f4747)&&_0x173d8a['push'](this['editor']['commands']['get'](_0x3f4747['model']['commandName']));const _0x27f80a=_0x3fc01e['buttonView'];return _0x27f80a['actionView']['unbind']('isEnabled'),_0x27f80a['arrowView']['unbind']('isEnabled'),_0x27f80a['actionView']['bind']('isEnabled')['to'](_0x5a2331,'isEnabled'),_0x27f80a['arrowView']['bind']('isEnabled')['toMany'](_0x173d8a,'isEnabled',(..._0x5b2aef)=>_0x5b2aef['some'](_0x1e5c92=>_0x1e5c92)),_0x3fc01e['on']('execute',_0x41f638=>{this['editor']['execute'](_0x41f638['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3fc01e;}['_createMenuBarMenu'](_0x945f97,_0x58b4ae,_0x8e4f1a){const _0x12e3d8=new _0x4ed3f0(_0x945f97),_0x4feb36=this['editor']['commands']['get']('trackChanges');_0x12e3d8['buttonView']['set']({'label':_0x8e4f1a,'icon':_0x1dccf5});const _0x1130ee=new _0xf9905d(_0x945f97);for(const _0x5e506d of _0x58b4ae){if('separator'==_0x5e506d['type']){_0x1130ee['items']['add'](new _0x351e1e(_0x945f97));continue;}const _0x504e1f=new _0x2010b4(_0x945f97,_0x12e3d8),_0x3117d9=new _0x109bbe(_0x945f97),_0x7e0eb1=_0x5e506d['model'];_0x3117d9['bind'](...Object['keys'](_0x7e0eb1))['to'](_0x7e0eb1),_0x3117d9['delegate']('execute')['to'](_0x12e3d8),_0x3117d9['on']('execute',()=>{this['editor']['execute'](_0x7e0eb1['commandName']),this['editor']['editing']['view']['focus']();}),_0x504e1f['children']['add'](_0x3117d9),_0x1130ee['items']['add'](_0x504e1f);}return _0x12e3d8['bind']('isEnabled')['to'](_0x4feb36,'isEnabled'),_0x12e3d8['panelView']['children']['add'](_0x1130ee),_0x12e3d8;}['_initializeController'](_0x4ae337){const _0x246418=this['editor'],_0x41cb67=_0x246418['config'],_0x1f11f1=_0x246418['plugins']['get'](_0xd6c75c),_0x29ca4c=_0x246418['plugins']['get'](_0x4522ba),_0x1a8b3d=_0x246418['plugins']['get'](_0x5a64bd),_0x341b40=_0x246418['plugins']['get'](_0x20c4f0)['me'],_0x3335dd=_0x41cb67['get']('trackChanges')['SuggestionThreadView'],_0x582b29=_0x41cb67['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5db12d,CommentThreadInputView:_0xf9020e}=_0x246418['plugins']['get']('CommentsUI');let _0x4f015a,_0x4a7d7a,_0x489cca;this['_annotationViews']['has'](_0x4ae337['id'])?(_0x4a7d7a=this['_annotationViews']['get'](_0x4ae337['id']),_0x4f015a=_0x4a7d7a['mainView']):(_0x4f015a=new _0x3335dd(_0x246418['locale'],_0x4ae337,_0x341b40,{'disableComments':this['_disableComments'],'editorConfig':{..._0x41cb67['get']('comments.editorConfig'),'licenseKey':_0x41cb67['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x41cb67['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x41cb67['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x41cb67['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x48f7cd(_0x41cb67['get']('locale'),_0x246418['locale']),'CommentView':_0x41cb67['get']('comments')['CommentView'],'CommentsListView':_0x5db12d,'CommentThreadInputView':_0xf9020e,'SuggestionView':_0x582b29,'showAISource':_0x41cb67['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x41cb67['get']('trackChanges.aiAuthor'),'name':_0x41cb67['get']('trackChanges.aiAuthor')?.['name']||St(_0x246418['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4f015a['suggestionView']['acceptButton']['on']('execute',()=>{_0x246418['editing']['view']['focus']();}),_0x4f015a['suggestionView']['discardButton']['on']('execute',()=>{_0x246418['editing']['view']['focus']();}),_0x4a7d7a=_0x1f11f1['createAnnotationView'](this['editor']['locale'],_0x4f015a),_0x4a7d7a['bind']('isDirty')['to'](_0x4f015a,'isDirty'),_0x4a7d7a['bind']('length')['to'](_0x4f015a),_0x4a7d7a['bind']('type')['to'](_0x4f015a,'type',_0x1e5187=>'suggestion-'+_0x1e5187),_0x4f015a['on']('escape',()=>{_0x489cca['fire']('escape');}),this['_annotationViews']['set'](_0x4ae337['id'],_0x4a7d7a));const _0x5e18ae=_0x29ca4c['createCommentThreadController'](_0x4ae337['commentThread'],_0x4f015a),_0x217dd7=new Ln(_0x246418,_0x4ae337,_0x4f015a,_0x5e18ae),_0x37fae3=_0x4ae337['getAllAdjacentSuggestions']()['filter'](_0x562ef7=>_0x562ef7['isInContent']);_0x4f015a['descriptionParts']=_0x246418['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x37fae3),this['_suggestionToController']['set'](_0x4ae337,_0x217dd7),this['_viewToController']['set'](_0x4f015a,_0x217dd7);const _0x66981e=()=>{const _0x2ffbc8=[],_0x459253=_0x4ae337['getAllAdjacentSuggestions']()['filter'](_0x4f1631=>_0x4f1631['isInContent']);for(const _0x19e445 of _0x459253)_0x2ffbc8['push'](..._0x19e445['getMarkers']());return _0x358226(_0x246418['editing'],_0x2ffbc8);};_0x489cca=_0x1f11f1['createAnnotation']({'view':_0x4a7d7a,'target':_0x66981e,'type':()=>'suggestion-'+_0x217dd7['view']['type'],'isVisible':!!_0x66981e()}),_0x29ca4c['_bindAnnotationToEditors'](_0x4f015a,_0x489cca),_0x1f11f1['add'](_0x489cca),_0x1a8b3d['registerAnnotation'](_0x489cca);}['_destroyController'](_0x29220a){const _0x27cf1c=this['editor']['plugins']['get'](_0x4522ba),_0x2e2fec=this['editor']['plugins']['get'](_0xd6c75c),_0x47c7ab=this['_suggestionToController']['get'](_0x29220a),_0x19ce8d=_0x47c7ab['view'],_0x518b35=_0x2e2fec['getByInnerView'](_0x19ce8d);_0x27cf1c['_unbindEditors'](_0x19ce8d),_0x518b35&&_0x2e2fec['remove'](_0x518b35),this['_suggestionToController']['delete'](_0x29220a),this['_viewToController']['delete'](_0x19ce8d),_0x47c7ab['destroy']();}['_updateController'](_0x3616f9){if(!_0x3616f9['isInContent']||!this['_suggestionToController']['has'](_0x3616f9))return;const _0x1d73ab=this['editor']['plugins']['get'](nn),_0x52a958=this['_suggestionToController']['get'](_0x3616f9),_0x3cfab5=_0x3616f9['getAllAdjacentSuggestions']();_0x52a958['view']['descriptionParts']=_0x1d73ab['descriptionFactory']['getDescriptions'](_0x3cfab5);}['destroy'](){for(const _0x3e4691 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3e4691);for(const _0x2d91de of this['_annotationViews']['values']())_0x2d91de['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x1b3c91){return'model'in _0x1b3c91;}var Rn=class extends _0x1a4f44{static get['requires'](){return[nn,kn,_0x287dc5];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x46b53e){this['editor']['plugins']['get'](nn)['adapter']=_0x46b53e;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x45c9ef){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x45c9ef);}['getSuggestions']({skipNotAttached:_0x238ef8=!0x1,toJSON:_0x421f15=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x238ef8,'toJSON':_0x421f15});}['getSuggestion'](_0x27146b){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x27146b);}};const Nn=['Pagination'];var yn=class extends _0x1a4f44{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x474701=this['editor'];if(_0x474701['config']['define']('trackChangesData.editorCreator',_0x3e891c=>{const _0x2be7cf=_0x474701['model']['document']['getRootNames']()['reduce']((_0x19d428,_0x314e9c)=>(_0x19d428[_0x314e9c]='',_0x19d428),{});return _0x474701['constructor']['create'](_0x2be7cf,_0x3e891c);}),'function'!=typeof _0x474701['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ca032('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x282b5a){return On(this['editor'],!0x0,_0x282b5a);}['getDataWithDiscardedSuggestions'](_0x523802){return On(this['editor'],!0x1,_0x523802);}},Sn=class extends _0x1a4f44{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e597e){super(_0x3e597e),this['result']='end',_0x3e597e['editing']['view']['_overlayModeHint']='auto',_0x3e597e['_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(_0x30cabc){return void 0x0!==_0x30cabc['getRootsAttributes'];}async function On(_0x4902cb,_0x33933d,_0x58d894){const _0x5c2d8a=_0x3e4906(_0x4902cb,Nn);if(_0x5c2d8a['plugins']['push'](nn,Sn),Mn(_0x4902cb)){_0x5c2d8a['roots']=Object['create'](null);for(const _0x475a41 of _0x4902cb['model']['document']['getRootNames']())_0x5c2d8a['roots'][_0x475a41]={'modelAttributes':_0x4902cb['getRootAttributes'](_0x475a41)};}const _0xf2a073=document['createDocumentFragment'](),_0x19a352=_0x4902cb['config']['get']('trackChangesData')['editorCreator'],_0x356d9f=await _0x19a352(_0x5c2d8a,()=>function(_0x4aca29){const _0x4aab3d=document['createElement']('div');return _0x4aca29['appendChild'](_0x4aab3d),_0x4aab3d;}(_0xf2a073));!function(_0x121a61,_0x3597c1){const _0x1133f9=_0x121a61['model']['document']['getRootNames']()['reduce']((_0x19ba7b,_0x499672)=>(_0x19ba7b[_0x499672]=_0x121a61['data']['get']({'rootName':_0x499672}),_0x19ba7b),{}),_0x3f2e6a=_0x121a61['plugins']['get']('Users')['users']['map'](_0x533219=>({'id':_0x533219['id'],'name':_0x533219['name']})),_0x2d1414=_0x121a61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x99ed74=_0x121a61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bdd7d=_0x3597c1['plugins']['get']('Users'),_0x474447=_0x3597c1['plugins']['get']('TrackChangesEditing'),_0x365c3b=_0x3597c1['plugins']['get']('CommentsRepository');for(const _0x5ad842 of _0x365c3b['getCommentThreads']())_0x5ad842['remove']();for(const _0x1f036b of _0x3f2e6a)_0x3bdd7d['getUser'](_0x1f036b['id'])||_0x3bdd7d['addUser'](_0x1f036b);_0x3bdd7d['me']||_0x3bdd7d['useAnonymousUser']();for(const _0x4cf324 of _0x99ed74)_0x365c3b['addCommentThread'](_0x4cf324);for(const _0x1a8316 of _0x2d1414)_0x474447['addSuggestionData'](_0x1a8316);_0x3597c1['data']['set'](_0x1133f9);}(_0x4902cb,_0x356d9f),_0x356d9f['execute'](_0x33933d?'acceptAllSuggestions':'discardAllSuggestions');const _0x200d1d=Mn(_0x356d9f)?_0x356d9f['getFullData'](_0x58d894):_0x356d9f['data']['get'](_0x58d894);return await _0x356d9f['destroy'](),_0x200d1d;}var wn=class extends _0x48ea13{['options'];constructor(_0x17a607,_0x3d9c27){super(_0x17a607),this['options']=_0x3d9c27,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'](_0x5f5cbb,_0x4f0010){if(!this['element'])return;const _0x4ed86c=[];for(const [_0x2ab1f0,_0x5a1a93]of _0x5f5cbb){const _0x1ce0ce=document['createElement']('div');_0x1ce0ce['setAttribute']('data-ck-root-name',_0x2ab1f0),_0x1ce0ce['className']=_0x5a1a93['classes']+'\x20ck-track-changes-preview__root-container',_0x1ce0ce['innerHTML']=_0x5a1a93['content'],_0x4ed86c['push'](_0x1ce0ce);}_0x4f0010(this['element'],_0x4ed86c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x56fea7{constructor(_0x17296b){super(_0x17296b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd2f20e=this['editor'],_0x3bb9bf=_0xd2f20e['locale'],_0x2f6e40=_0xd2f20e['plugins']['get']('Dialog');let _0x1dc765;const _0x52efc6=function(_0x410071){const _0x4c8434={};if('editables'in _0x410071['ui']['view']){for(const [_0x37553c,_0x506b48]of Object['entries'](_0x410071['ui']['view']['editables']))_0x4c8434[_0x37553c]=_0x506b48['element'];}else _0x4c8434[_0x410071['model']['document']['getRootNames']()[0x0]]=_0x410071['ui']['view']['editable']['element'];return _0x4c8434;}(_0xd2f20e),_0x137e61=function(_0x21521f){let _0x421dcd=0x0;for(const _0x301a32 of Object['values'](_0x21521f))_0x421dcd=Math['max'](_0x421dcd,_0x301a32['getBoundingClientRect']()['width']);let _0x538417=0x0;for(const _0x4e362b of Object['values'](_0x21521f))_0x538417+=_0x4e362b['getBoundingClientRect']()['height'];const _0xa99f8a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x421dcd,'height':Math['min'](_0x538417,_0xa99f8a)};}(_0x52efc6);_0x2f6e40['show']({'id':'finalContentPreview','title':St(_0x3bb9bf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x3bb9bf,{'dialogRects':_0x137e61}),'onHide':()=>{_0x1dc765['detachFromDom']();},'onShow':()=>{_0xd2f20e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x24b305=>{const _0x41828d=this['_standarizeRootsData'](_0x24b305,_0xd2f20e,_0x52efc6);_0x2f6e40['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41828d,_0xd2f20e['config']['get']('trackChanges.preview.renderFunction'));}),_0x1dc765=new _0x1608a4(_0x3bb9bf,[_0x2f6e40['view']]),_0x1dc765['attachToDom'](),_0x1dc765['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd2f20e['once']('destroy',()=>{_0x1dc765['detachFromDom']();});const _0xdfa9d9=_0x2f6e40['view']['headerView']['class'];_0x2f6e40['view']['headerView']['class']=_0xdfa9d9?_0xdfa9d9+'\x20ck-reset_all':'ck-reset_all',_0x2f6e40['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f6e40['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b1de6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1e905c=_0x1b1de6['previewMode'],_0x4fb647={};if('$labels'===_0x1e905c){for(const _0x41b300 of _0x1b1de6['getMergeFieldsIds']())_0x4fb647[_0x41b300]=_0x1b1de6['getLabel'](_0x41b300)||_0x41b300;}else{const _0x46e21a='$defaultValues'===_0x1e905c?_0x1b1de6['getDefaultValues']():_0x1b1de6['getDataSetValues'](_0x1e905c,!0x0);for(const _0x306312 of Object['entries'](_0x46e21a)){const [_0x18dfe0,_0x1ebc6c]=_0x306312;_0x4fb647[_0x18dfe0]=null!==_0x1ebc6c?_0x1ebc6c:_0x1b1de6['getLabel'](_0x18dfe0)||_0x18dfe0;}}return{'mergeFieldsData':_0x4fb647};}['_standarizeRootsData'](_0x313ebc,_0x4ed24b,_0x210fa0){let _0x3ad11e;_0x3ad11e='string'==typeof _0x313ebc?{[_0x4ed24b['model']['document']['getRootNames']()[0x0]]:_0x313ebc}:_0x313ebc;const _0x14d878=this['_fixMediaEmbeds'](_0x3ad11e,_0x4ed24b);return function(_0x57197f,_0x5a06cc){for(const [_0x51cc3c,_0x3e5cf8]of _0x57197f)_0x3e5cf8['classes']=_0x5a06cc[_0x51cc3c]['classList']['value']['replace']('ck-focused','');return _0x57197f;}(this['_sortRoots'](_0x4ed24b)['reduce']((_0x438b6f,_0x1c46e2)=>(_0x438b6f['push']([_0x1c46e2,{'content':_0x14d878[_0x1c46e2],'classes':''}]),_0x438b6f),[]),_0x210fa0);}['_fixMediaEmbeds'](_0x3469bf,_0x15b51a){if(!_0x15b51a['plugins']['has']('MediaEmbedEditing'))return _0x3469bf;const _0x2e59d1=_0x15b51a['plugins']['get']('MediaEmbedEditing');for(const [_0x50bfba,_0x389f83]of Object['entries'](_0x3469bf)){const _0x92d079=document['createElement']('div');_0x92d079['innerHTML']=_0x389f83,_0x92d079['querySelectorAll']('figure.media')['forEach'](_0x9206fe=>{const _0x49004=_0x9206fe['querySelector']('oembed');if(_0x49004){const _0x57a145=_0x49004['getAttribute']('url');if(_0x57a145){const _0x260c5f=_0x2e59d1['registry']['getMediaViewElement'](new ot(_0x15b51a['editing']['view']['document']),_0x57a145,{'elementName':'','renderForEditingView':!0x0}),_0x16282a=document['createElement']('div');_0x16282a['classList']['add']('ck-media__wrapper'),_0x260c5f['render'](_0x16282a,_0x15b51a['editing']['view']['domConverter']),_0x49004['replaceWith'](_0x16282a);}}}),_0x3469bf[_0x50bfba]=_0x92d079['innerHTML'];}return _0x3469bf;}['_sortRoots'](_0xb8061e){if(!function(_0x1aa97e){return void 0x0!==_0x1aa97e['getRootsAttributes'];}(_0xb8061e))return _0xb8061e['model']['document']['getRootNames']();const _0x589179=[],_0x2d78c7=new Map();for(const _0x4b13e0 of _0xb8061e['model']['document']['getRootNames']()){const _0x1e20fc=_0xb8061e['editing']['view']['getDomRoot'](_0x4b13e0)['getClientRects']()['item'](0x0);_0x589179['push'](_0x4b13e0),_0x2d78c7['set'](_0x4b13e0,_0x1e20fc);}return _0x589179['sort']((_0x3e301e,_0x1720ba)=>{const _0x1dda33=_0x2d78c7['get'](_0x3e301e),_0x30dc60=_0x2d78c7['get'](_0x1720ba);return _0x1dda33['y']-_0x30dc60['y']||_0x1dda33['x']-_0x30dc60['x'];}),_0x589179;}},Bn=class extends _0x1a4f44{static get['requires'](){return[yn,_0x47b59f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfad26d){super(_0xfad26d),_0xfad26d['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0xfad26d['config']['define']('trackChanges.preview.renderFunction',(_0xedd5f8,_0x5765af)=>{for(const _0x2179b9 of _0x5765af)_0xedd5f8['appendChild'](_0x2179b9);});}};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 _0x562259,PendingActions as _0x18ed28,Plugin as _0x7848c6}from'@ckeditor/ckeditor5-core';import{Annotations as _0x545491,Comments as _0x4f2626,CommentsRepository as _0x4a356a,EditorAnnotations as _0x139dc1}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4bb6d3,Collection as _0x1b20e0,FocusTracker as _0x573918,KeystrokeHandler as _0x2a1e14,ObservableMixin as _0x511d46,getEnvKeystrokeText as _0xd49997,insertToPriorityArray as _0x21a065,logWarning as _0x4cb7fe,priorities as _0x4b9664,uid as _0x36f764}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4a0d2e,IconCancel as _0x3f178c,IconCheck as _0x3ddd3b,IconSparkle as _0x2a8d5f,IconTrackChanges as _0x1db323}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x51b0ed,Dialog as _0xdf4572,FocusCycler as _0x2c0173,ListSeparatorView as _0x256cc8,MenuBarMenuListItemButtonView as _0x487b64,MenuBarMenuListItemView as _0x40485b,MenuBarMenuListView as _0x3ba9f2,MenuBarMenuView as _0x18b2d7,SplitButtonView as _0x5051e9,UIModel as _0x2fd6d8,View as _0x491fa1,ViewCollection as _0x64c26e,addListToDropdown as _0x1ecd00,createDropdown as _0x3d2789,normalizeColorOptions as _0x57098d}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x56223e,CollaborationUserColor as _0x2119fb,DocumentCompare as _0x3bd5d2,FOCUS_ANNOTATION_KEYSTROKE as _0x3b6ffc,LateFocusButtonView as _0x7d9c52,PillView as _0x17faaf,SuggestionsConversion as _0x473fe4,User as _0x3bb289,UserView as _0x307be0,Users as _0x27edda,fixElementSuggestionRange as _0x3ca002,getAllMarkersDomElementsSorted as _0xc4398b,getDateTimeFormatter as _0x226177,hashObject as _0x308b95,sanitizeEditorConfig as _0x5d3ab2,setupThreadKeyboardNavigation as _0x31015e,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 _0x562259{['_enabledCommands'];constructor(_0x126d0a,_0x2e7682){super(_0x126d0a),this['_enabledCommands']=_0x2e7682,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 _0x214eca of this['editor']['commands']['commands']())_0x214eca['affectsData']&&!this['_enabledCommands']['has'](_0x214eca)&&_0x214eca['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2e1e6b of this['editor']['commands']['commands']())_0x2e1e6b['affectsData']&&!this['_enabledCommands']['has'](_0x2e1e6b)&&_0x2e1e6b['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x562259{['_suggestions'];constructor(_0x373990,_0x58a062){super(_0x373990),this['_suggestions']=_0x58a062,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x771c3a){const _0x186616=this['_suggestions']['get'](_0x771c3a);if(!_0x186616)throw new _0x4bb6d3('track-changes-accept-suggestion-not-found',this);const _0x24c2ca=_0x186616['getRanges']();this['editor']['model']['canEditAt'](_0x24c2ca)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x186616);}},_t=class extends _0x562259{['_suggestions'];constructor(_0x1f3f20,_0x147454){super(_0x1f3f20),this['_suggestions']=_0x147454,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x282609){const _0x48c453=this['_suggestions']['get'](_0x282609);if(!_0x48c453)throw new _0x4bb6d3('track-changes-discard-suggestion-not-found',this);const _0x173cda=_0x48c453['getRanges']();this['editor']['model']['canEditAt'](_0x173cda)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x48c453);}};function pt(_0x513a5a,_0x2d1bbd){let _0x42ffb4='';return _0x42ffb4+=_0x513a5a['split']('*')['map']((_0x15f8a0,_0x4b8e8d)=>_0x4b8e8d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x15f8a0)+'</span>':Lt(_0x15f8a0))['join'](''),_0x2d1bbd&&(_0x42ffb4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d1bbd['value']+'\x22\x20title=\x22'+_0x2d1bbd['title']+'\x22></span>'),_0x42ffb4;}function Lt(_0x26ff3c){const _0x418bf2=document['createElement']('span');return _0x418bf2['innerText']=_0x26ff3c,_0x418bf2['innerHTML'];}function It(_0x1f183c){return _0x1f183c['sort']((_0x1a077d,_0xad5f98)=>'attribute'===_0x1a077d['type']&&'attribute'!==_0xad5f98['type']?-0x1:'attribute'!==_0x1a077d['type']&&'attribute'===_0xad5f98['type']?0x1:'deletion'==_0x1a077d['type']&&'deletion'!=_0xad5f98['type']?-0x1:'deletion'!=_0x1a077d['type']&&'deletion'==_0xad5f98['type']?0x1:0x0);}function At(_0x234a11,_0x1bda32){let _0x4e5d32,_0x4f3e58=0x0;const _0x1d7f2f=[],_0x1942f2=_0x1bda32['schema'];for(;_0x4f3e58<_0x234a11['length'];){const _0x5005e1=_0x234a11[_0x4f3e58],_0x28eaed=_0x234a11[_0x4f3e58+0x1];_0x4e5d32||(_0x4e5d32=_0x1bda32['createPositionBefore'](_0x5005e1)),bt(_0x1bda32,_0x5005e1,_0x28eaed)||(_0x1d7f2f['push'](_0x1bda32['createRange'](_0x4e5d32,_0x1942f2['isObject'](_0x5005e1)?_0x1bda32['createPositionAfter'](_0x5005e1):_0x1bda32['createPositionAt'](_0x5005e1,'end'))),_0x4e5d32=null),_0x4f3e58++;}return _0x1d7f2f;}function bt(_0x460b7d,_0x287751,_0x546320){if(!_0x546320)return!0x1;const _0x4fe98e=_0x460b7d['createPositionAfter'](_0x287751),_0x35f496=_0x460b7d['createPositionBefore'](_0x546320);return _0x4fe98e['isTouching'](_0x35f496);}function kt(_0x5b34ca,_0x5f1b61,_0x5be8ec){for(;_0x5be8ec['length'];){const _0x275692=_0x5be8ec['splice'](0x0,0x64);_0x5b34ca['change'](()=>{for(const _0x5e8951 of _0x275692)_0x5e8951['isInContent']&&_0x5f1b61['execute'](_0x5e8951['id']);});}}var Ct=class extends _0x562259{['_command'];['_suggestions'];constructor(_0x549597,_0x1f7b2b,_0x3f8cdc){super(_0x549597),this['_command']=_0x1f7b2b,this['_suggestions']=_0x3f8cdc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x392f91=Array['from'](this['_suggestions']['values']())['some'](_0x5ac172=>_0x5ac172['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x392f91;}['execute'](){const _0x4eef20=It(Array['from'](this['_suggestions']['values']()));for(const _0x43b4a7 of _0x4eef20){const _0x423cf4=_0x43b4a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x423cf4))return;}kt(this['editor']['model'],this['_command'],_0x4eef20);}},Rt=class extends _0x562259{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xc7378a,_0x37a1df,_0x4ff601){super(_0xc7378a),this['_command']=_0x37a1df,this['_suggestions']=_0x4ff601,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3ab04f=this['editor']['model']['document']['selection'],_0x16e98e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2a2e59,_0x1b2ed7){const _0x5cc1b6=Array['from'](_0x2a2e59['getRanges']()),_0x16e49a=new Set();for(const _0x1d8eef of _0x1b2ed7)if(_0x1d8eef['isInContent']){for(const _0x7d9488 of _0x5cc1b6)for(const _0x19191a of _0x1d8eef['getRanges']())(_0x7d9488['isIntersecting'](_0x19191a)||_0x2a2e59['isCollapsed']&&!_0x1d8eef['isMultiRange']&&_0x1d8eef['next']&&_0x19191a['end']['isTouching'](_0x7d9488['start']))&&_0x16e49a['add'](_0x1d8eef);}return _0x16e49a;}(_0x3ab04f,_0x16e98e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x411a5d=It(Array['from'](this['_selectedSuggestions']));for(const _0x1723be of _0x411a5d){const _0x3715e5=_0x1723be['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3715e5))return;}kt(this['editor']['model'],this['_command'],_0x411a5d);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0x511d46();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x207ae2,_0x13d146){super(),this['id']=_0x13d146['id'],this['type']=_0x13d146['type'],this['subType']=_0x13d146['subType']||null,this['author']=_0x13d146['author'],this['creator']=_0x13d146['creator']||_0x13d146['author'],this['data']=null,this['_originalSuggestionId']=_0x13d146['originalSuggestionId']||null,this['_model']=_0x207ae2,this['_onAccept']=_0x13d146['onAccept'],this['_onDiscard']=_0x13d146['onDiscard'],this['_onAttributesChange']=_0x13d146['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13d146['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 _0x2bf649=this;for(;_0x2bf649['previous'];)_0x2bf649=_0x2bf649['previous'];return _0x2bf649;}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'](_0x521c87){this['_markerNames']['add'](_0x521c87);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x173a46=>this['_model']['markers']['get'](_0x173a46))['filter'](_0x3518ee=>_0x3518ee);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x447185=>{for(const _0x5397b0 of this['getMarkers']())_0x447185['removeMarker'](_0x5397b0);}),this['_markerNames']['clear']();}['removeMarker'](_0x553ecd){this['_model']['change'](_0x1347c7=>{_0x1347c7['removeMarker'](_0x553ecd);}),this['_markerNames']['delete'](_0x553ecd);}['addRange'](_0x1429cf){const _0x4d61cf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4d61cf),this['_model']['change'](_0x114124=>{_0x114124['addMarker'](_0x4d61cf,{'range':_0x1429cf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25d896){for(const _0x1edb75 of this['getRanges']())if(_0x1edb75['isIntersecting'](_0x25d896))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14eb12=>_0x14eb12['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22d095,_0x4146af)=>[..._0x22d095,..._0x4146af['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1321d8=this['getRanges']();if(0x1!=_0x1321d8['length'])return null;const _0xe75679=_0x1321d8[0x0],_0x3854a0=_0xe75679['start']['nodeAfter'],_0x4afafa=_0xe75679['end']['nodeBefore'];return _0x3854a0 instanceof it?_0x3854a0!=_0x4afafa?null:_0x3854a0: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 _0x4511c8=[];let _0x4255b9=this['head'];for(;_0x4255b9;)_0x4511c8['push'](_0x4255b9),_0x4255b9=_0x4255b9['next'];return _0x4511c8;}['setAttribute'](_0x4313e4,_0x269c8d){const _0x43343d=at(this['attributes']);ut(_0x43343d,_0x4313e4,_0x269c8d),ct(_0x43343d,this['attributes'])||(this['attributes']=_0x43343d,this['_onAttributesChange'](_0x43343d));}['removeAttribute'](_0x585a91){const _0xa35b58=at(this['attributes']);dt(_0xa35b58,_0x585a91),ct(_0xa35b58,this['attributes'])||(this['attributes']=_0xa35b58,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 _0x36f764()['substr'](0x1,0x5);}};function St(_0x1f8d10,_0x1090b5,_0x2d7bc3){const _0x487fec=_0x1f8d10['t'],t=_0x1f8d10['t'];switch(_0x1090b5){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',_0x2d7bc3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d7bc3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d7bc3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d7bc3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d7bc3);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',_0x2d7bc3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d7bc3);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',_0x2d7bc3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d7bc3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d7bc3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d7bc3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d7bc3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d7bc3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d7bc3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d7bc3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d7bc3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d7bc3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d7bc3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d7bc3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d7bc3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d7bc3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d7bc3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d7bc3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d7bc3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d7bc3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d7bc3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d7bc3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d7bc3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d7bc3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d7bc3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d7bc3);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'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d7bc3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d7bc3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d7bc3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d7bc3);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'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d7bc3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2d7bc3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2d7bc3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2d7bc3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d7bc3);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'},_0x2d7bc3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d7bc3);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 _0x487fec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d7bc3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x487fec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d7bc3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d7bc3);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'},_0x2d7bc3);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'},_0x2d7bc3);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'},_0x2d7bc3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1090b5;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x255e99,_0x1aa7ea){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x255e99,this['_locale']=_0x1aa7ea;}['getDescriptions'](_0xab2226){const _0x480415=[],_0x233987=new Set(),_0x328126=new Set();for(let _0x35f387=0x0;_0x35f387<_0xab2226['length'];_0x35f387++){const _0x36dded=_0xab2226[_0x35f387];if(!_0x36dded['isInContent'])continue;const _0x118542=this['_handleCustomCallbackDescription'](_0x36dded);if(_0x118542){if(null!=_0x36dded['subType']){if(_0x233987['has'](_0x36dded['subType']))continue;_0x233987['add'](_0x36dded['subType']);}_0x480415['push'](_0x118542);}else{if('attribute'==_0x36dded['type']){const _0x1c2c27=_0x36dded['data']['key'];if(_0x328126['has'](_0x1c2c27))continue;_0x328126['add'](_0x36dded['data']['key']),'$elementName'==_0x1c2c27?this['_handleRenameSuggestionDescription'](_0x480415,_0x36dded):this['_handleAttributeSuggestionDescription'](_0x480415,_0x36dded);continue;}'insertion'!=_0x36dded['type']&&'deletion'!=_0x36dded['type']||this['_handleInsertRemoveSuggestionDescription'](_0x480415,_0x36dded,_0xab2226[_0x35f387+0x1]);}}return this['_resolveDescriptionItems'](_0x480415);}['registerDescriptionCallback'](_0x213b96){this['_customCallbacks']['push'](_0x213b96);}['registerElementLabel'](_0x565829,_0x4a81fc,_0x3a26cf=_0x4b9664['normal']){'function'==typeof _0x565829?_0x21a065(this['_itemLabelsCallbacks'],{'matchingCallback':_0x565829,'label':_0x4a81fc,'priority':_0x3a26cf}):this['_itemLabels']['set'](_0x565829,_0x4a81fc);}['registerAttributeLabel'](_0x1fd53a,_0x54155c){this['_attributeLabels']['set'](_0x1fd53a,_0x54155c);}['getItemLabel'](_0x561cd3,_0x121426=0x1){let _0x1f81bf;for(const _0x23c973 of this['_itemLabelsCallbacks'])if(_0x23c973['matchingCallback'](_0x561cd3)){_0x1f81bf=_0x23c973['label'];break;}return _0x1f81bf||(_0x1f81bf=this['_itemLabels']['get'](_0x561cd3['name'])),_0x1f81bf?_0x1f81bf(_0x121426):0x1!==_0x121426?_0x121426+'\x20'+_0x561cd3['name']+'s':''+_0x561cd3['name'];}['_addDescriptionItems'](_0x4bc90e,_0x2a74e9){const _0x3fbaca=_0x2a74e9['getFirstRange']()['getWalker'](),_0x59e039='insertion'==_0x2a74e9['type']?'add':'remove';for(const _0x1172b6 of _0x3fbaca){const _0x453be0=_0x1172b6['item'],_0x391ffd=_0x4bc90e[_0x4bc90e['length']-0x1];if(_0x453be0['is']('$textProxy'))_0x391ffd&&_0x391ffd['type']['indexOf']('Container')>-0x1&&_0x4bc90e['pop'](),_0x391ffd&&'text'==_0x391ffd['type']?_0x391ffd[_0x59e039]+=_0x453be0['data']:_0x4bc90e['push']({'type':'text','add':'add'==_0x59e039?_0x453be0['data']:'','remove':'remove'==_0x59e039?_0x453be0['data']:''});else{if(this['_schema']['isObject'](_0x453be0)){const _0x447934=_0x453be0;if(_0x391ffd&&_0x391ffd['type']['indexOf']('Container')>-0x1&&_0x4bc90e['pop'](),'elementEnd'==_0x1172b6['type'])continue;_0x391ffd&&_0x391ffd['type']==_0x59e039+'Object'&&_0x391ffd['element']['name']==_0x447934['name']?_0x391ffd['quantity']++:_0x4bc90e['push']({'type':_0x59e039+'Object','element':_0x447934,'quantity':0x1}),_0x3fbaca['skip'](_0x34c324=>!('elementEnd'==_0x34c324['type']&&_0x34c324['item']==_0x453be0));}else{if(this['_schema']['checkChild'](_0x453be0,'$text')||_0x453be0['is']('element','softBreak')){const _0x54e460=_0x453be0;if('add'==_0x59e039&&'elementStart'==_0x1172b6['type']||'remove'==_0x59e039&&'elementEnd'==_0x1172b6['type'])continue;if(_0x391ffd&&-0x1==_0x391ffd['type']['indexOf']('Container')){'text'==_0x391ffd['type']&&(_0x391ffd[_0x59e039]+='\x0a');continue;}let _0x48e363;if(_0x48e363='add'==_0x59e039?_0x54e460['nextSibling']&&!this['_schema']['isObject'](_0x54e460['nextSibling'])?_0x54e460['nextSibling']:null:_0x54e460['previousSibling']&&!this['_schema']['isObject'](_0x54e460['previousSibling'])?_0x54e460['previousSibling']:null,_0x54e460['isEmpty']||_0x48e363&&_0x48e363['isEmpty']){const _0x2b0c5a=_0x48e363&&_0x48e363['isEmpty']?_0x48e363:_0x54e460;_0x391ffd&&_0x391ffd['type']==_0x59e039+'EmptyContainer'&&_0x391ffd['element']['name']==_0x2b0c5a['name']?_0x391ffd['quantity']++:_0x4bc90e['push']({'type':_0x59e039+'EmptyContainer','element':_0x2b0c5a,'quantity':0x1});}else _0x4bc90e['push']({'type':_0x59e039+'Container','element':_0x54e460});}}}}}['_resolveDescriptionItems'](_0x4306b0){const _0x23be6b=this['_locale'],_0x42902b=[],_0x208376=[],_0x26ef32=[];for(const _0x540615 of _0x4306b0)switch(_0x540615['type']){case'text':if(_0x540615['add']=_0x540615['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x540615['remove']=_0x540615['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x540615['add']&&''!=_0x540615['remove']){_0x42902b['push']({'type':'replace','content':St(_0x23be6b,'REPLACE_TEXT',['\x22'+_0x540615['remove']+'\x22','\x22'+_0x540615['add']+'\x22'])});continue;}if(null!=_0x540615['add']['match'](/^ +$/)){_0x42902b['push']({'type':'insertion','content':St(_0x23be6b,'*Insert:*\x20%0',St(_0x23be6b,'ELEMENT_SPACE',_0x540615['add']['length']))});continue;}if(null!=_0x540615['remove']['match'](/^ +$/)){_0x42902b['push']({'type':'deletion','content':St(_0x23be6b,'*Remove:*\x20%0',St(_0x23be6b,'ELEMENT_SPACE',_0x540615['remove']['length']))});continue;}if(''!=_0x540615['add']){_0x42902b['push']({'type':'insertion','content':St(_0x23be6b,'*Insert:*\x20%0','\x22'+_0x540615['add']+'\x22')});continue;}_0x42902b['push']({'type':'deletion','content':St(_0x23be6b,'*Remove:*\x20%0','\x22'+_0x540615['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x42902b['push']({'type':'insertion','content':St(_0x23be6b,'*Insert:*\x20%0',this['getItemLabel'](_0x540615['element'],_0x540615['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x42902b['push']({'type':'deletion','content':St(_0x23be6b,'*Remove:*\x20%0',this['getItemLabel'](_0x540615['element'],_0x540615['quantity']))});continue;case'addContainer':_0x42902b['push']({'type':'insertion','content':St(_0x23be6b,'*Split:*\x20%0',this['getItemLabel'](_0x540615['element'],_0x540615['quantity']))});continue;case'removeContainer':_0x42902b['push']({'type':'deletion','content':St(_0x23be6b,'*Merge:*\x20%0',this['getItemLabel'](_0x540615['element'],_0x540615['quantity']))});continue;case'addFormat':_0x208376['push'](_0x540615['key']);continue;case'removeFormat':_0x26ef32['push'](_0x540615['key']);continue;default:_0x42902b['push'](_0x540615);}if(_0x208376['length']){const _0xfd8f19=_0x208376['map'](_0x187c91=>this['_attributeLabels']['has'](_0x187c91)?this['_attributeLabels']['get'](_0x187c91):_0x187c91)['join'](',\x20');_0x42902b['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0xfd8f19)});}if(_0x26ef32['length']){const _0x322700=_0x26ef32['map'](_0x4162ef=>this['_attributeLabels']['has'](_0x4162ef)?this['_attributeLabels']['get'](_0x4162ef):_0x4162ef)['join'](',\x20');_0x42902b['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x322700)});}return _0x42902b;}['_handleCustomCallbackDescription'](_0x137488){for(const _0xc7c7b1 of this['_customCallbacks']){const _0xfa0ec2=_0xc7c7b1(_0x137488);if(_0xfa0ec2&&'type'in _0xfa0ec2)return _0xfa0ec2;}}['_handleAttributeSuggestionDescription'](_0x140400,_0x46bbb5){const _0x4c52b1=_0x46bbb5['data'],_0x322a5e=void 0x0===_0x4c52b1['newValue']?'removeFormat':'addFormat';_0x140400['push']({'type':_0x322a5e,'key':_0x4c52b1['key']});}['_handleRenameSuggestionDescription'](_0x1473b5,_0x204617){_0x1473b5['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x204617['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x183d19,_0x2dafd5,_0x1b4e80){if(this['_addDescriptionItems'](_0x183d19,_0x2dafd5),_0x1b4e80&&_0x1b4e80['getFirstRange']()&&!_0x2dafd5['getFirstRange']()['end']['isEqual'](_0x1b4e80['getFirstRange']()['start'])){const _0x686d0d=_0x183d19[_0x183d19['length']-0x1],_0x379558='insertion'==_0x2dafd5['type']?'add':'remove';_0x686d0d&&'text'==_0x686d0d['type']&&(_0x686d0d[_0x379558]+='\x0a');}}},Ot=class extends _0x7848c6{['afterInit'](){const _0x21eb3a=this['editor'],_0x3c6151=_0x21eb3a['plugins']['get']('TrackChangesEditing');_0x21eb3a['commands']['get']('showAIAssistant')&&_0x3c6151['enableCommand']('showAIAssistant');}},wt=class extends _0x7848c6{['afterInit'](){const _0x3ace27=this['editor'],_0x365e79=_0x3ace27['plugins']['get']('TrackChangesEditing');_0x3ace27['commands']['get']('toggleAi')&&_0x365e79['enableCommand']('toggleAi');}},Ft=class extends _0x7848c6{['afterInit'](){const _0xe48edb=this['editor'],_0x147d36=_0xe48edb['plugins']['get']('TrackChangesEditing');_0xe48edb['commands']['get']('aiQuickAction')&&_0x147d36['enableCommand']('aiQuickAction');}},Bt=class extends _0x7848c6{['afterInit'](){const _0x4fcb63=this['editor'],_0x34e50a=_0x4fcb63['locale'];if(!_0x4fcb63['plugins']['has']('AlignmentEditing'))return;const _0x31e015=_0x4fcb63['plugins']['get']('TrackChangesEditing');_0x31e015['enableDefaultAttributesIntegration']('alignment'),_0x31e015['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x34e50a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c318a=this['editor'],_0x394b84=_0x2c318a['locale'];_0x2c318a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x172826=>{if('formatBlock'!=_0x172826['type'])return;const {data:_0x4f7e90}=_0x172826;if(_0x4f7e90&&'alignment'==_0x4f7e90['commandName']){const _0x330f08=_0x4f7e90['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x394b84,'*Format:*\x20%0',function(_0x5cf919){switch(_0x5cf919){case'left':return St(_0x394b84,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x394b84,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x394b84,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x394b84,'FORMAT_JUSTIFY_TEXT');}}(_0x330f08))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x7848c6{['afterInit'](){const _0x1c8e82=this['editor'],_0x37723d=_0x1c8e82['plugins']['get']('TrackChangesEditing'),_0x2f9e82=_0x1c8e82['locale'];for(const _0x3b7760 of vt){if(!_0x1c8e82['plugins']['has'](_0x3b7760))continue;const _0x125193=_0x3b7760['slice'](0x0,-0x7)['toLowerCase'](),_0x1fb787='FORMAT_'+_0x125193['toUpperCase']();_0x37723d['enableDefaultAttributesIntegration'](_0x125193),_0x37723d['descriptionFactory']['registerAttributeLabel'](_0x125193,St(_0x2f9e82,_0x1fb787));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2be048=this['editor'],_0x35a91b=_0x2be048['locale'],_0x5e6b4d=_0x2be048['plugins']['get']('TrackChangesEditing');function _0x102790(_0x13dae6,_0x330f63){_0x5e6b4d['descriptionFactory']['registerDescriptionCallback'](_0x48ecd8=>{if('formatInline'!=_0x48ecd8['type'])return;const {data:_0x3cb266}=_0x48ecd8;return _0x3cb266&&_0x3cb266['commandName']===_0x13dae6?_0x3cb266['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x35a91b,'*Format:*\x20%0',_0x330f63)}:{'type':'format','content':St(_0x35a91b,'*Remove\x20format:*\x20%0',_0x330f63)}:void 0x0;});}_0x102790('bold',St(_0x35a91b,'FORMAT_BOLD')),_0x102790('italic',St(_0x35a91b,'FORMAT_ITALIC')),_0x102790('underline',St(_0x35a91b,'FORMAT_UNDERLINE')),_0x102790('code',St(_0x35a91b,'FORMAT_CODE')),_0x102790('strikethrough',St(_0x35a91b,'FORMAT_STRIKETHROUGH')),_0x102790('subscript',St(_0x35a91b,'FORMAT_SUBSCRIPT')),_0x102790('superscript',St(_0x35a91b,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x7848c6{['afterInit'](){const _0x15e338=this['editor'],_0x3f26da=_0x15e338['locale'];if(!_0x15e338['plugins']['has']('BlockQuoteEditing'))return;const _0x2e52b2=_0x15e338['plugins']['get']('TrackChangesEditing'),_0x17b1d3=this['editor']['commands']['get']('blockQuote');_0x2e52b2['enableCommand']('blockQuote',(_0x15a31c,_0x37a88c={})=>{const _0x34320c=this['editor']['model']['document']['selection'],_0xfef6fd=_0x37a88c&&void 0x0!==_0x37a88c['forceValue']?_0x37a88c['forceValue']:!_0x17b1d3['value'];let _0x3f4c45=[];_0x3f4c45=At(_0xfef6fd?Array['from'](_0x34320c['getSelectedBlocks']())['filter'](_0x253c72=>Pt(_0x253c72)||function(_0x66e3b9,_0x39a597){const _0x2b24da=_0x39a597['createContext'](_0x66e3b9['parent']);return!!_0x39a597['checkChild'](_0x2b24da,'blockQuote')&&!!_0x39a597['checkChild'](_0x2b24da['push']('blockQuote'),_0x66e3b9);}(_0x253c72,this['editor']['model']['schema'])):Array['from'](_0x34320c['getSelectedBlocks']())['filter'](_0x32014c=>Pt(_0x32014c)),_0x15e338['model']),_0x15e338['model']['change'](()=>{for(const _0x5f03f0 of _0x3f4c45)_0x2e52b2['markBlockFormat'](_0x5f03f0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xfef6fd}]});});}),_0x2e52b2['descriptionFactory']['registerDescriptionCallback'](_0x5b6824=>{const {data:_0x32d8f3}=_0x5b6824;if(_0x32d8f3&&'blockQuote'==_0x32d8f3['commandName']){const _0x113154=St(_0x3f26da,'ELEMENT_BLOCK_QUOTE');return _0x32d8f3['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3f26da,'*Set\x20format:*\x20%0',_0x113154)}:{'type':'format','content':St(_0x3f26da,'*Remove\x20format:*\x20%0',_0x113154)};}});}};function Pt(_0x16956c){return'blockQuote'==_0x16956c['parent']['name'];}var xt=class extends _0x7848c6{['afterInit'](){const _0x4d40f4=this['editor'],_0x52562e=_0x4d40f4['locale'],_0x5e6455=_0x4d40f4['plugins']['get']('TrackChangesEditing');_0x4d40f4['plugins']['has']('BookmarkEditing')&&(_0x5e6455['enableCommand']('insertBookmark'),_0x5e6455['enableDefaultAttributesIntegration']('updateBookmark'),_0x5e6455['descriptionFactory']['registerDescriptionCallback'](_0x43299b=>{if('insertion'!=_0x43299b['type']&&'deletion'!=_0x43299b['type']&&'attribute'!=_0x43299b['type'])return;const _0x1d3990=_0x43299b['getContainedElement']();if(null==_0x1d3990)return;if(!_0x1d3990['is']('element','bookmark'))return;const _0x415b01=_0x1d3990['getAttribute']('bookmarkId');if('insertion'==_0x43299b['type'])return{'type':'insertion','content':St(_0x52562e,'*Insert:*\x20%0','\x22'+_0x415b01+'\x22\x20'+St(_0x52562e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x43299b['type'])return{'type':'deletion','content':St(_0x52562e,'*Remove:*\x20%0','\x22'+_0x415b01+'\x22\x20'+St(_0x52562e,'ELEMENT_BOOKMARK'))};const {data:_0x3968a5}=_0x43299b;return _0x3968a5&&'bookmarkId'==_0x3968a5['key']?{'type':'format','content':St(_0x52562e,'*Set\x20bookmark:*\x20%0','\x22'+_0x3968a5['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x7848c6{['afterInit'](){const _0x84d6a5=this['editor'];_0x84d6a5['plugins']['has']('CaseChange')&&(_0x84d6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x84d6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x84d6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x7848c6{['afterInit'](){const _0x24f015=this['editor'];_0x24f015['commands']['get']('ckbox')&&_0x24f015['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x7848c6{['afterInit'](){const _0x447c4f=this['editor'];if(!_0x447c4f['plugins']['has']('CodeBlock'))return;const _0x6dccac=_0x447c4f['plugins']['get']('TrackChangesEditing'),_0x1e37c3=_0x447c4f['locale'],_0x4a2dfa=_0x447c4f['config']['get']('codeBlock')['languages'],_0x56b2e9=_0x447c4f['commands']['get']('codeBlock');_0x6dccac['enableCommand']('indentCodeBlock'),_0x6dccac['enableCommand']('outdentCodeBlock'),_0x6dccac['enableCommand']('codeBlock',(_0x36ea9c,_0xc427f1={})=>{const _0x5d9847=_0x447c4f['model'],_0xec0450=_0x447c4f['model']['document']['selection'],_0x430769=_0xc427f1&&void 0x0!==_0xc427f1['forceValue']?_0xc427f1['forceValue']:!_0x56b2e9['value'];let _0x349ff9;_0xc427f1['language']||(_0xc427f1['language']=_0x4a2dfa[0x0]['language']),_0x349ff9=_0x430769?Array['from'](_0xec0450['getSelectedBlocks']())['filter'](_0x7bc5f=>{return Vt(_0x7bc5f)||(_0x6de8ca=_0x7bc5f,_0x28b088=_0x5d9847['schema'],!_0x6de8ca['is']('rootElement')&&!_0x28b088['isLimit'](_0x6de8ca)&&_0x28b088['checkChild'](_0x6de8ca['parent'],'codeBlock'));var _0x6de8ca,_0x28b088;}):Array['from'](_0xec0450['getSelectedBlocks']())['filter'](_0xf2447f=>Vt(_0xf2447f));const _0x1ab2b7=At(_0x349ff9,_0x5d9847);_0x5d9847['change'](()=>{for(const _0x321471 of _0x1ab2b7)_0x6dccac['markBlockFormat'](_0x321471,{'commandName':'codeBlock','commandParams':[{..._0xc427f1,'forceValue':_0x430769}],'formatGroupId':'blockName'});});}),(_0x6dccac['descriptionFactory']['registerElementLabel']('codeBlock',_0x36453a=>St(_0x1e37c3,'ELEMENT_CODE_BLOCK',_0x36453a)),_0x6dccac['descriptionFactory']['registerDescriptionCallback'](_0x734193=>{if('formatBlock'!=_0x734193['type'])return;const _0x496c00=_0x1e37c3['t'],{data:_0x3cce64}=_0x734193;if(!_0x3cce64||'codeBlock'!=_0x3cce64['commandName'])return;const _0xa93983=_0x3cce64['commandParams'][0x0]['language'],_0x166b82=_0x496c00(_0x4a2dfa['find'](_0x4ca2a9=>_0x4ca2a9['language']===_0xa93983)['label'])['toLowerCase']();return _0x3cce64['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1e37c3,'*Set\x20format:*\x20%0',St(_0x1e37c3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x166b82+')')}:{'type':'format','content':St(_0x1e37c3,'*Remove\x20format:*\x20%0',St(_0x1e37c3,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x4a3756){return'codeBlock'==_0x4a3756['name'];}var Wt=class extends _0x7848c6{['afterInit'](){const _0x129dec=this['editor'];_0x129dec['plugins']['has']('CommentsEditing')&&_0x129dec['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x7848c6{static get['requires'](){return[ht];}['init'](){const _0x487b2d=this['editor'],_0x4dc122=_0x487b2d['plugins']['get']('TrackChangesEditing');_0x4dc122['enableCommand']('delete');const _0x4383ce=_0x487b2d['commands']['get']('deleteForward');_0x4dc122['enableCommand']('deleteForward',(_0x2d9195,_0x5278d8={})=>{const _0x14eaba=_0x487b2d['model']['createSelection'](_0x487b2d['model']['document']['selection']);_0x14eaba['isCollapsed']&&_0x487b2d['model']['modifySelection'](_0x14eaba,{'direction':'forward','unit':_0x5278d8['unit']});const _0x5f0ff5=_0x14eaba['getFirstRange'](),_0x49f64e=rt['fromRange'](_0x5f0ff5);let _0x44c37d;_0x2d9195(_0x5278d8),_0x44c37d='$graveyard'==_0x49f64e['root']['rootName']?_0x487b2d['model']['createRange'](_0x5f0ff5['start']):_0x487b2d['model']['createRange'](_0x49f64e['start'],_0x49f64e['end']),_0x49f64e['detach'](),_0x487b2d['model']['enqueueChange'](_0x4383ce['buffer']['batch'],_0x5c0cd6=>{_0x4383ce['buffer']['lock'](),_0x5c0cd6['setSelection'](_0x5c0cd6['createRange'](_0x44c37d['end'])),_0x4383ce['buffer']['unlock']();});});}},Kt=class extends _0x7848c6{['afterInit'](){const _0x104695=this['editor'];if(!_0x104695['plugins']['has']('ListEditing'))return;const _0x505b8a=_0x104695['locale'],_0x13f143=_0x104695['plugins']['get']('TrackChangesEditing'),_0xfe7696=_0x104695['plugins']['has']('TodoListEditing'),_0x2a43bf=!!_0x104695['config']['get']('list.multiBlock');function _0x537569(_0x385b8b){return{'type':'format','content':''+St(_0x505b8a,'*Set\x20format:*\x20%0',_0x385b8b)};}function _0xe86032(_0x465de8){return{'type':'format','content':''+St(_0x505b8a,'*Remove\x20format:*\x20%0',_0x465de8)};}_0x13f143['enableDefaultAttributesIntegration']('numberedList'),_0x13f143['enableDefaultAttributesIntegration']('bulletedList'),_0x13f143['enableDefaultAttributesIntegration']('customNumberedList'),_0x13f143['enableDefaultAttributesIntegration']('customBulletedList'),_0x13f143['enableDefaultAttributesIntegration']('indentList'),_0x13f143['enableDefaultAttributesIntegration']('outdentList'),_0x13f143['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13f143['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a43bf&&(_0x13f143['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13f143['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xfe7696&&(_0x13f143['enableDefaultAttributesIntegration']('todoList'),_0x13f143['enableDefaultAttributesIntegration']('checkTodoList'),_0x13f143['descriptionFactory']['registerDescriptionCallback'](_0x1c13ab=>{const {data:_0x5f056f}=_0x1c13ab;if(_0x5f056f&&'todoListChecked'==_0x5f056f['key'])return{'type':'format','content':_0x5f056f['newValue']?St(_0x505b8a,'*Check\x20item*'):St(_0x505b8a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd4066a=>{if(_0xd4066a['batch']['isUndo'])return!0x1;let _0x3f51d1=!0x1;const _0x3baea0=_0x13f143['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c94b1=>'todoListChecked'===_0x13f143['_getAttributeKey'](_0x1c94b1));for(const _0x2cbb7d of _0x3baea0)'todo'!=_0x2cbb7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13f143['_findSuggestions'](_0x2cbb7d['getFirstRange'](),'attribute')['find'](_0x4be5c0=>'listType'===_0x13f143['_getAttributeKey'](_0x4be5c0['suggestion']))||(_0xd4066a['removeMarker'](_0x2cbb7d['getFirstMarker']()),_0x3f51d1=!0x0));return _0x3f51d1;})),_0x13f143['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x505b8a,'FORMAT_INDENT'));const _0x1bf4a8={'type':'format','content':''};_0x13f143['descriptionFactory']['registerDescriptionCallback'](_0x1dc41d=>{const {data:_0x6053ac}=_0x1dc41d;if(!_0x6053ac||'listType'!=_0x6053ac['key'])return;let _0x1dfa25=_0x1dc41d['head'];for(;_0x1dfa25;){if(_0x1dfa25['data']&&(('listStyle'==_0x1dfa25['data']['key']||'listMarkerStyle'==_0x1dfa25['data']['key'])&&(_0x1dfa25['data']['newValue']&&'default'!=_0x1dfa25['data']['newValue']||'default'!=_0x1dfa25['data']['oldValue']&&!_0x6053ac['newValue'])||!_0x2a43bf&&'$elementName'==_0x1dfa25['data']['key']))return _0x1bf4a8;_0x1dfa25=_0x1dfa25['next'];}if(null==_0x6053ac['newValue'])switch(_0x6053ac['oldValue']){case'bulleted':return _0xe86032(St(_0x505b8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe86032(St(_0x505b8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe86032(St(_0x505b8a,'ELEMENT_TODO_LIST'));}switch(_0x6053ac['newValue']){case'bulleted':return _0x537569(St(_0x505b8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x537569(St(_0x505b8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x537569(St(_0x505b8a,'ELEMENT_TODO_LIST'));}}),_0x13f143['descriptionFactory']['registerDescriptionCallback'](_0x2fd745=>{const {data:_0x474f4a}=_0x2fd745;if(_0x474f4a&&'listIndent'==_0x474f4a['key'])return null==_0x474f4a['newValue']||null==_0x474f4a['oldValue']&&0x0==_0x474f4a['newValue']?_0x1bf4a8:void 0x0;}),_0x13f143['descriptionFactory']['registerDescriptionCallback'](_0x194fee=>{if('attribute'!=_0x194fee['type'])return;const {data:_0x3a69af}=_0x194fee;if(!_0x3a69af||'listItemId'!=_0x3a69af['key'])return;const _0x31f5b2=zt(_0x194fee);return'newValue'==_0x31f5b2?{'type':'format','content':St(_0x505b8a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31f5b2?{'type':'format','content':St(_0x505b8a,'*Split:*\x20list\x20item')}:_0x1bf4a8;}),_0x104695['model']['document']['registerPostFixer'](_0x5c59ce=>this['listItemIdFixer'](_0x5c59ce)),_0x104695['model']['document']['registerPostFixer'](_0x56e405=>this['noTrackChangesFixer'](_0x56e405)),_0x104695['model']['document']['on']('change:data',(_0x5b10c3,_0x4ff8cd)=>{if(_0x4ff8cd['isUndo']||!_0x4ff8cd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x39b312){if(_0x39b312['batch']['isUndo']||!_0x39b312['batch']['isLocal'])return!0x1;let _0x36558b=!0x1;const _0x1c1f58=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ed37c=>_0x1ed37c['data']&&'listItemId'==_0x1ed37c['data']['key'])['filter'](_0x11e0bc=>_0x11e0bc['data']['newValue']&&_0x11e0bc['data']['oldValue']);for(const _0x4b80a2 of _0x1c1f58)zt(_0x4b80a2)||(_0x39b312['removeMarker'](_0x4b80a2['getFirstMarker']()),_0x36558b=!0x0);return _0x36558b;}['noTrackChangesFixer'](_0x173bc8){if(_0x173bc8['batch']['isUndo']||!_0x173bc8['batch']['isLocal'])return!0x1;const _0x5a8f35=this['editor']['model']['document']['differ'],_0x30ac79=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ac79['trackChangesCommand']['value'])return!0x1;let _0x1c0c76=!0x1;const _0x5c362f=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x113723=_0x5a8f35['getChanges']()['filter'](_0xe1e025=>'attribute'==_0xe1e025['type'])['filter'](_0x518b88=>_0x5c362f['has'](_0x518b88['attributeKey']));if(0x0==_0x113723['length'])return _0x1c0c76;const _0x185d46=new Set(_0x5a8f35['getMarkersToAdd']()['filter'](_0x1c1df2=>{if(!_0x1c1df2['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4d1ed3=tt(_0x1c1df2['name'])['subType']['split']('|')[0x0];return _0x5c362f['has'](_0x4d1ed3);})['map'](_0x231ff6=>tt(_0x231ff6['name'])['id']));for(const _0x11985b of _0x113723){const _0x3911f2=_0x30ac79['_findSuggestions'](_0x11985b['range'],'attribute')['filter'](_0x168205=>{if(_0x168205['meta']['isNextTo'])return!0x1;if(_0x185d46['has'](_0x168205['suggestion']['id']))return!0x1;const _0x375e54=_0x30ac79['_getAttributeKey'](_0x168205['suggestion']);return _0x5c362f['has'](_0x375e54);})['map'](_0xc9b5e8=>_0xc9b5e8['suggestion']);if(_0x3911f2['length']){for(const _0xb0794 of _0x3911f2)_0x173bc8['removeMarker'](_0xb0794['getFirstMarker']());_0x1c0c76=!0x0;}}return _0x1c0c76;}['assureChains'](){const _0x3c1be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x541246=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x8b6b2b;const _0x13213a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14e970=>{if(_0x14e970['data']['oldRange']||!_0x14e970['data']['newRange'])return null;if(!_0x14e970['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7ffb5d}=tt(_0x14e970['name']);if(!_0x3c1be9['hasSuggestion'](_0x7ffb5d))return null;const _0x30363f=_0x3c1be9['getSuggestion'](_0x7ffb5d);return _0x541246['includes'](_0x30363f['data']['key']);})['map'](_0x3f4eb4=>{const {id:_0x2fcd9a}=tt(_0x3f4eb4['name']),_0x240f62=_0x3c1be9['getSuggestion'](_0x2fcd9a);return _0x8b6b2b=_0x240f62['attributes']['groupId'],_0x240f62['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13213a['size'])return;const _0x4779e9=_0x3c1be9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5027ee=>'attribute'==_0x5027ee['type']&&_0x5027ee['data']&&_0x541246['includes'](_0x5027ee['data']['key'])&&_0x5027ee['attributes']['groupId']!=_0x8b6b2b)['map'](_0xbdf726=>({'listItem':_0xbdf726['getFirstRange']()['start']['nodeAfter'],'groupId':_0xbdf726['attributes']['groupId']})),_0x3ad1d7=new Set();for(const {groupId:_0x30a909,listItem:_0x4d9c29}of _0x4779e9)_0x13213a['has'](_0x4d9c29)&&_0x3ad1d7['add'](_0x30a909);for(const _0x2d8a20 of _0x3c1be9['getSuggestions']())_0x3ad1d7['has'](_0x2d8a20['attributes']['groupId'])&&_0x2d8a20['setAttribute']('groupId',_0x8b6b2b);}['_supportLegacySuggestions'](){const _0x4e6e52=this['editor'],_0xf862c2=_0x4e6e52['locale'],_0x1c8d83=_0x4e6e52['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c8d83['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4cf18d,_0x2e58e6){const _0x522b29=[];for(let _0x3893fe of _0x4cf18d)_0x3893fe['start']['nodeAfter']===_0x3893fe['end']['parent']&&(_0x3893fe=_0x4e6e52['model']['createRange'](_0x4e6e52['model']['createPositionAt'](_0x3893fe['start']['nodeAfter'],0x0))),_0x522b29['push'](_0x3893fe);_0x4e6e52['model']['change'](_0x3b40eb=>{const _0x131c17=_0x4e6e52['model']['document']['selection'],_0x417708=Array['from'](_0x131c17['getRanges']())['map'](_0x4ab719=>rt['fromRange'](_0x4ab719));_0x3b40eb['setSelection'](_0x522b29),_0x4e6e52['commands']['get'](_0x2e58e6['commandName'])['refresh'](),_0x2e58e6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e6e52['execute'](_0x2e58e6['commandName'],..._0x2e58e6['commandParams']),_0x3b40eb['setSelection'](_0x417708);for(const _0x53fadb of _0x417708)_0x53fadb['detach']();});}),_0x1c8d83['descriptionFactory']['registerElementLabel'](function(_0x118e4a){const _0xa33098=!_0x4e6e52['model']['schema']['isObject'](_0x118e4a),_0x2dd313=_0x118e4a['previousSibling'],_0x2436e1=_0x118e4a['nextSibling'],_0x36cf49=_0x118e4a['getAttribute']('listItemId'),_0x17f9af=!_0x2dd313||_0x2dd313['getAttribute']('listItemId')!==_0x36cf49,_0x46016c=!_0x2436e1||_0x2436e1['getAttribute']('listItemId')!==_0x36cf49;return _0xa33098&&Boolean(_0x36cf49)&&_0x17f9af&&_0x46016c;},_0x483e49=>St(_0xf862c2,'ELEMENT_LIST_ITEM',_0x483e49));}['_registerLegacyDescription'](){const _0x1e356f=this['editor'],_0x552190=_0x1e356f['locale'];function _0x2a004b(_0x2158ec){const _0xc4221f=_0x1e356f['commands']['get']('bulletedList')['value'],_0x51de8d=_0x1e356f['commands']['get']('numberedList')['value'];return'numberedList'===_0x2158ec?_0xc4221f:_0x51de8d;}_0x1e356f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x27a556){if('formatBlock'!=_0x27a556['type'])return;const {data:_0x403e35}=_0x27a556;if(!_0x403e35)return;let _0x2450db,_0x9a42a0,_0xe98ed9,_0x1c3a6a;switch(_0x403e35['commandName']){case'bulletedList':_0xe98ed9=_0x403e35['commandParams'][0x0]['forceValue'],_0x1c3a6a=_0x2a004b(_0x403e35['commandName']),_0x2450db=_0xe98ed9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c3a6a&&_0x1e356f['config']['get']('list.multiBlock')||(_0x2450db='*Change\x20to:*\x20%0'),_0x9a42a0={'type':'format','content':St(_0x552190,_0x2450db,St(_0x552190,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xe98ed9=_0x403e35['commandParams'][0x0]['forceValue'],_0x1c3a6a=_0x2a004b(_0x403e35['commandName']),_0x2450db=_0xe98ed9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c3a6a&&_0x1e356f['config']['get']('list.multiBlock')||(_0x2450db='*Change\x20to:*\x20%0'),_0x9a42a0={'type':'format','content':St(_0x552190,_0x2450db,St(_0x552190,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2450db='*Indent:*\x20%0',_0x9a42a0={'type':'format','content':St(_0x552190,_0x2450db,St(_0x552190,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2450db=function(_0x568c87){const _0x1fbbed=_0x568c87['getFirstRange']();let _0x2f6ae7=_0x1fbbed['start']['nodeAfter'];for(;_0x2f6ae7&&_0x1fbbed['containsItem'](_0x2f6ae7);){if(_0x2f6ae7['getAttribute']('listIndent')>0x0)return!0x1;_0x2f6ae7=_0x2f6ae7['nextSibling'];}return!0x0;}(_0x27a556)?St(_0x552190,'*Format:*\x20remove\x20from\x20%0',St(_0x552190,function(_0x2c23a8){return'ELEMENT_'+_0x2c23a8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x27a556))):St(_0x552190,'*Outdent:*\x20%0',St(_0x552190,'ELEMENT_LIST_ITEM')),_0x9a42a0={'type':'format','content':_0x2450db};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x403e35['multipleBlocks']&&(_0x2450db='*Merge:*\x20%0',_0x9a42a0={'type':'deletion','content':St(_0x552190,_0x2450db,St(_0x552190,'ELEMENT_LIST_ITEM'))});}return _0x9a42a0;});}};function zt(_0x252a40){let _0x4ad508=_0x252a40['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ad508;){const _0x1c1ece=_0x4ad508['getAttribute']('listItemId');if(!_0x1c1ece)return!0x1;if(_0x1c1ece==_0x252a40['data']['newValue'])return'newValue';if(_0x1c1ece==_0x252a40['data']['oldValue'])return'oldValue';_0x4ad508=_0x4ad508['previousSibling'];}return!0x1;}var Xt=class extends _0x7848c6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3819c5=this['editor']['config']['get']('list.properties'),_0x2a2ea9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3819c5['styles']&&_0x2a2ea9['enableDefaultAttributesIntegration']('listStyle'),_0x3819c5['reversed']&&_0x2a2ea9['enableDefaultAttributesIntegration']('listReversed'),_0x3819c5['startIndex']&&_0x2a2ea9['enableDefaultAttributesIntegration']('listStart');const _0x543274={'type':'format','content':''};_0x2a2ea9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1f3ae8=this['editor']['locale'];_0x2a2ea9['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x1f3ae8,'FORMAT_LIST_REVERSED')),_0x2a2ea9['descriptionFactory']['registerDescriptionCallback'](_0x126465=>{const {data:_0x398605}=_0x126465;if(_0x398605&&'listReversed'==_0x398605['key'])return null==_0x398605['newValue']||0x0==_0x398605['newValue']&&null==_0x398605['oldValue']?_0x543274:void 0x0;}),_0x2a2ea9['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x1f3ae8,'FORMAT_LIST_START')),_0x2a2ea9['descriptionFactory']['registerDescriptionCallback'](_0x235cba=>{const {data:_0x1c54d1}=_0x235cba;if(_0x1c54d1&&'listStart'==_0x1c54d1['key'])return null==_0x1c54d1['newValue']||0x1==_0x1c54d1['newValue']&&null==_0x1c54d1['oldValue']?_0x543274:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x589629=>{if(_0x589629['batch']['isUndo'])return!0x1;let _0xcc9398=!0x1;const _0x5e2241=_0x2a2ea9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38cbfa=>{const _0xa55495=_0x2a2ea9['_getAttributeKey'](_0x38cbfa);return'listStart'==_0xa55495||'listReversed'==_0xa55495;});for(const _0x3c8d99 of _0x5e2241){const _0x25b94a=_0x3c8d99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x25b94a&&'customNumbered'!=_0x25b94a&&(_0x2a2ea9['_findSuggestions'](_0x3c8d99['getFirstRange'](),'attribute')['find'](_0x45a9fe=>'listType'==_0x2a2ea9['_getAttributeKey'](_0x45a9fe['suggestion']))||(_0x589629['removeMarker'](_0x3c8d99['getFirstMarker']()),_0xcc9398=!0x0));}return _0xcc9398;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x326c0b){const _0x3b43ce=this['editor']['locale'],{data:_0x185df6}=_0x326c0b,_0x419aa5={'type':'format','content':''};if(!_0x185df6||'listStyle'!=_0x185df6['key'])return;if(!_0x185df6['oldValue'])return'default'==_0x185df6['newValue']?_0x419aa5:{'type':'format','content':''+St(_0x3b43ce,'*Set\x20format:*\x20%0',St(_0x3b43ce,this['_getTranslationKeyForListStyle'](_0x185df6['newValue'])))};if(!_0x185df6['newValue']){if('default'==_0x185df6['oldValue'])return _0x419aa5;let _0x177446=_0x326c0b['head'];for(;_0x177446;){if(_0x177446['data']&&'listType'==_0x177446['data']['key']&&_0x177446['data']['newValue'])return _0x419aa5;_0x177446=_0x177446['next'];}return{'type':'format','content':''+St(_0x3b43ce,'*Remove\x20format:*\x20%0',St(_0x3b43ce,this['_getTranslationKeyForListStyle'](_0x185df6['oldValue'])))};}if('default'!=_0x185df6['newValue'])return{'type':'format','content':''+St(_0x3b43ce,'*Set\x20format:*\x20%0',St(_0x3b43ce,this['_getTranslationKeyForListStyle'](_0x185df6['newValue'])))};let _0x49a32f=_0x326c0b['head'];for(;_0x49a32f;){if(_0x49a32f['data']&&'listType'==_0x49a32f['data']['key']&&_0x49a32f['data']['newValue']&&_0x49a32f['data']['oldValue'])return _0x419aa5;_0x49a32f=_0x49a32f['next'];}return{'type':'format','content':St(_0x3b43ce,'*Set\x20format:*\x20%0',St(_0x3b43ce,'ELEMENT_'+_0x326c0b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c72c0=this['editor'],_0x4cb530=_0x4c72c0['locale'];_0x4c72c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55f180=>{if('formatBlock'!=_0x55f180['type'])return;const {data:_0x448274}=_0x55f180;if(!_0x448274)return;let _0x2b6999,_0x3d3bd2;switch(_0x448274['commandName']){case'listStyle':_0x2b6999='*Change\x20to:*\x20%0',_0x3d3bd2={'type':'format','content':St(_0x4cb530,_0x2b6999,St(_0x4cb530,this['_getTranslationKeyForListStyle'](_0x448274['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b6999=_0x448274['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d3bd2={'type':'format','content':St(_0x4cb530,_0x2b6999)};break;case'listStart':_0x2b6999='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d3bd2={'type':'format','content':St(_0x4cb530,_0x2b6999,_0x448274['commandParams'][0x0]['startIndex'])};}return _0x3d3bd2;});}['_getTranslationKeyForListStyle'](_0x55b07f){return'ELEMENT_'+(_0x5a508b=_0x55b07f,qt['includes'](_0x5a508b)?'bulleted':Yt['includes'](_0x5a508b)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x55b07f['toUpperCase']()['replace'](/-/g,'_');var _0x5a508b;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x7848c6{['afterInit'](){const _0x1d62de=this['editor'];_0x1d62de['commands']['get']('emoji')&&_0x1d62de['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x7848c6{static get['requires'](){return[ft];}['init'](){const _0x4a3a70=this['editor'],_0x30c3fa=_0x4a3a70['plugins']['get']('TrackChangesEditing'),_0x4af2c0=_0x4a3a70['commands']['get']('enter');_0x30c3fa['enableCommand']('enter',()=>{_0x4a3a70['model']['change'](_0x259555=>{const _0x24d5af=_0x4a3a70['model']['document']['selection'],_0x12febb=_0x24d5af['getFirstPosition'](),_0x47945c=rt['fromRange'](_0x24d5af['getFirstRange']());if(_0x4af2c0['enterBlock'](_0x259555)){const _0x261985=_0x4a3a70['model']['createPositionAt'](_0x12febb['parent']['nextSibling'],0x0),_0xb65f5e=_0x259555['createRange'](_0x12febb,_0x261985);_0x30c3fa['markInsertion'](_0xb65f5e);}else _0x259555['setSelection'](_0x259555['createRange'](_0x47945c['end']));_0x47945c['detach'](),_0x4af2c0['fire']('afterExecute',{'writer':_0x259555});});});}},Jt=class extends _0x7848c6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5494a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5494a6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5494a6['enableCommand']('findNext'),_0x5494a6['enableCommand']('findPrevious'),_0x5494a6['enableCommand']('replace'),_0x5494a6['enableCommand']('replaceAll');}['handleFindCommand'](_0x196bb9,_0x4668da,_0xd7b517={}){const _0x6579e6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x196bb9(_0x43a32c=>{let _0x37b273=('string'==typeof _0x4668da?_0x6579e6['findByTextCallback'](_0x4668da,_0xd7b517):_0x4668da)(_0x43a32c);Array['isArray'](_0x37b273)&&(_0x37b273={'results':_0x37b273,'searchText':'string'==typeof _0x4668da?_0x4668da:''});const _0x5b63e9=_0x37b273['results']['filter'](_0x5ee082=>!0x1===this['_isInDeletionRange'](_0x5ee082,_0x43a32c['item']));return{..._0x37b273,'results':_0x5b63e9};},_0xd7b517);}['_isInDeletionRange'](_0x3c70a2,_0x51f331){const _0x2d80d8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51f331,_0x3c70a2['start']),this['editor']['model']['createPositionAt'](_0x51f331,_0x3c70a2['end']));for(const _0x53cac4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2d80d8['getIntersection'](_0x53cac4['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 _0x7848c6{['afterInit'](){const _0x2c008b=this['editor']['locale'],_0x51952b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x564c40,commandName:_0x53a73b}of te)this['editor']['plugins']['has'](_0x564c40)&&_0x51952b['enableDefaultAttributesIntegration'](_0x53a73b);_0x51952b['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x2c008b,'FORMAT_FONT_SIZE')),_0x51952b['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x2c008b,'FORMAT_FONT_FAMILY')),_0x51952b['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x2c008b,'FORMAT_FONT_COLOR')),_0x51952b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x2c008b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d0466=this['editor'],_0x27796d=_0x5d0466['locale'];_0x5d0466['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc0527a=>{const _0x3168a6=_0x27796d['t'];if('formatInline'!=_0xc0527a['type'])return;const {data:_0x4a32ec}=_0xc0527a;if(null!=_0x4a32ec){if('fontSize'==_0x4a32ec['commandName']){const _0x247ea8=_0x4a32ec['commandParams'][0x0]['value'];if(_0x247ea8){const _0x117542=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3642e6=>_0x3642e6['model']==_0x247ea8)['title'];return{'type':'format','content':St(_0x27796d,'*Set\x20font\x20size:*\x20%0',_0x3168a6(_0x117542)['toLowerCase']())};}return{'type':'format','content':St(_0x27796d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a32ec['commandName']){const _0x522e2b=_0x4a32ec['commandParams'][0x0]['value'];return _0x522e2b?{'type':'format','content':St(_0x27796d,'*Set\x20font\x20family:*\x20%0',_0x522e2b)}:{'type':'format','content':St(_0x27796d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a32ec['commandName']){const _0x1e55d1=_0x4a32ec['commandParams'][0x0]['value'];if(_0x1e55d1){const _0x2b7c76=_0x57098d(this['editor']['config']['get']('fontColor.colors'))['find'](_0xe55e7f=>_0xe55e7f['model']==_0x1e55d1);let _0x366fc8=_0x1e55d1,_0x13e2c6='';return _0x2b7c76&&(_0x366fc8=_0x2b7c76['label'],_0x13e2c6=_0x3168a6(_0x366fc8)['toLowerCase']()),{'type':'format','content':St(_0x27796d,'*Set\x20font\x20color:*\x20%0',_0x13e2c6)['trim'](),'color':{'value':_0x1e55d1,'title':_0x13e2c6||_0x366fc8}};}return{'type':'format','content':St(_0x27796d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a32ec['commandName']){const _0x31b025=_0x4a32ec['commandParams'][0x0]['value'];if(_0x31b025){const _0x35eef5=_0x57098d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x189c0a=>_0x189c0a['model']==_0x31b025);let _0x1bb1a0=_0x31b025,_0x469a10='';return _0x35eef5&&(_0x1bb1a0=_0x35eef5['label'],_0x469a10=_0x3168a6(_0x1bb1a0)['toLowerCase']()),{'type':'format','content':St(_0x27796d,'*Set\x20font\x20background\x20color:*\x20%0',_0x469a10)['trim'](),'color':{'value':_0x31b025,'title':_0x469a10||_0x1bb1a0}};}return{'type':'format','content':St(_0x27796d,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x7848c6{['afterInit'](){const {plugins:_0x56a50c}=this['editor'];_0x56a50c['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x56a50c['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x483d5b,plugins:_0x5c7522,commands:_0x5f3e19}=this['editor'],_0x375599=_0x5c7522['get']('TrackChangesEditing');_0x5f3e19['get']('footnotesStyle')&&_0x375599['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5f3e19['get']('footnotesStart')&&_0x375599['enableDefaultAttributesIntegration']('footnotesStart'),_0x375599['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x483d5b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x375599['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x483d5b,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x107029=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x166761,commands:_0xaeaf82}=this['editor'];_0xaeaf82['get']('insertFootnote')&&_0x107029['enableCommand']('insertFootnote'),_0x107029['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4c1863=>St(_0x166761,'ELEMENT_FOOTNOTE_REF',_0x4c1863)),_0x107029['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x31199b=>St(_0x166761,'ELEMENT_FOOTNOTE_DEFINITION',_0x31199b)),_0x107029['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x450cac=>St(_0x166761,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x450cac));}},ie=class extends _0x7848c6{['afterInit'](){const _0x278bff=this['editor'],_0x2cbc37=_0x278bff['plugins']['get']('TrackChangesEditing'),_0x53e49d=_0x278bff['commands']['get']('copyFormat'),_0x196c41=_0x278bff['commands']['get']('pasteFormat');_0x53e49d&&_0x196c41&&(_0x2cbc37['enableDefaultAttributesIntegration']('pasteFormat'),_0x2cbc37['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x15dfdc=this['editor'],_0xdb3f80=_0x15dfdc['locale'];_0x15dfdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56bde5=>{if('formatBlock'!=_0x56bde5['type']&&'formatInline'!=_0x56bde5['type'])return;const {data:_0x29a645}=_0x56bde5;if(_0x29a645&&'pasteFormat'===_0x29a645['commandName']){const _0x3c7f4f=[],_0x5a78b3=_0x29a645['commandParams'][0x0];for(const [_0x5bc0d6,_0x126a03]of Object['entries'](_0x5a78b3))_0x3c7f4f['push'](se(_0x15dfdc,_0x5bc0d6,_0x126a03));return _0x3c7f4f['length']?{'type':'format','content':St(_0xdb3f80,'*Set\x20format\x20to:*\x20%0',_0x3c7f4f['join'](',\x20'))}:{'type':'format','content':St(_0xdb3f80,'*Remove\x20all\x20formatting*')};}});}};function se(_0x3d93c3,_0x2193de,_0x337bc9){const _0x4ce6bd=_0x3d93c3['locale']['t'],_0x1bcabe=_0x2193de['split'](/(?=[A-Z])/)['join']('\x20'),_0x1f64bf=_0x4ce6bd(_0x1bcabe['charAt'](0x0)['toUpperCase']()+_0x1bcabe['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x337bc9)return _0x1f64bf;if('fontColor'===_0x2193de||'fontBackgroundColor'===_0x2193de){const _0xcc40ef=_0x57098d(_0x3d93c3['config']['get']('fontColor.colors'))['find'](_0x47d334=>_0x47d334['model']==_0x337bc9);return _0x1f64bf+'\x20('+(_0xcc40ef?_0x4ce6bd(_0xcc40ef['label'])['toLowerCase']():_0x337bc9)+')';}if('fontSize'===_0x2193de&&isNaN(parseFloat(_0x337bc9))){const _0x6a1619=_0x3d93c3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3d93c3['config']['get']('fontSize.options'))['find'](_0x2c2de5=>_0x2c2de5['model']==_0x337bc9);return _0x1f64bf+'\x20('+(_0x6a1619?_0x4ce6bd(_0x6a1619['title'])['toLowerCase']():_0x337bc9)+')';}return _0x1f64bf+'\x20('+_0x337bc9+')';}var re=class extends _0x7848c6{['afterInit'](){const _0x1ba4cf=this['editor'];if(!_0x1ba4cf['plugins']['has']('GeneralHtmlSupport')||!_0x1ba4cf['plugins']['has']('DataSchema'))return;const _0x56f66b=_0x1ba4cf['plugins']['get']('TrackChangesEditing'),_0x9ee7e1=_0x1ba4cf['plugins']['get']('GeneralHtmlSupport'),_0x5848af=_0x1ba4cf['plugins']['get']('DataSchema'),_0x39a1c2=_0x1ba4cf['locale'],_0x11c8d5=new Set(['htmlContent']);for(const _0x6e0b8a of _0x5848af['getDefinitionsForView'](/.*/,!0x1)){const _0x54de1f=_0x6e0b8a['view'],_0x56b1af=_0x9ee7e1['getGhsAttributeNameForElement'](_0x54de1f);_0x11c8d5['add'](_0x56b1af),!_0x6e0b8a['isInline']||_0x6e0b8a['isObject']||'appliesToBlock'in _0x6e0b8a&&_0x6e0b8a['appliesToBlock']||_0x56f66b['descriptionFactory']['registerAttributeLabel'](_0x56b1af,_0x54de1f),_0x6e0b8a['model']['startsWith']('html')&&_0x56f66b['descriptionFactory']['registerElementLabel'](_0x6e0b8a['model'],_0xc21efc=>St(_0x39a1c2,'ELEMENT_HTML_TAG',[_0xc21efc,_0x54de1f]));}_0x56f66b['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x39a1c2,'FORMAT_RAW_HTML_CONTENT')),_0x56f66b['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x39a1c2,'FORMAT_HTML_LIST_ITEM')),_0x56f66b['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x39a1c2,'FORMAT_HTML_BULLETED_LIST')),_0x56f66b['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x39a1c2,'FORMAT_HTML_NUMBERED_LIST')),_0x56f66b['descriptionFactory']['registerDescriptionCallback'](_0x37e4ed=>{if('attribute'!==_0x37e4ed['type'])return;const _0x3fc5cc=_0x37e4ed['data'];if(!_0x3fc5cc||!_0x11c8d5['has'](_0x3fc5cc['key']))return;if('htmlContent'===_0x3fc5cc['key'])return{'type':'format','content':St(_0x39a1c2,'*Change\x20%0\x20content*',St(_0x39a1c2,'ELEMENT_RAW_HTML'))};const {setItems:_0x2632c5,removeItems:_0x155c50}=function(_0x2f79c9,_0x46fcfd,_0x532041){const _0x40e551=[],_0x5c19a2=[],_0x5aa888=_0x2f79c9['styles']??{},_0x369e8f=_0x46fcfd['styles']??{};for(const _0x251a8f of new Set([...Object['keys'](_0x5aa888),...Object['keys'](_0x369e8f)]))_0x5aa888[_0x251a8f]!==_0x369e8f[_0x251a8f]&&(void 0x0===_0x369e8f[_0x251a8f]?_0x5c19a2['push'](_0x251a8f):_0x40e551['push'](_0x251a8f+'\x20('+_0x369e8f[_0x251a8f]+')'));const _0x255a93=St(_0x532041,'FORMAT_HTML_CLASS'),_0x4f2236=new Set(_0x2f79c9['classes']??[]),_0x52fab7=new Set(_0x46fcfd['classes']??[]),_0xb4bdd=[..._0x52fab7]['some'](_0x3512d5=>!_0x4f2236['has'](_0x3512d5)),_0x38ed34=[..._0x4f2236]['some'](_0x1cddc1=>!_0x52fab7['has'](_0x1cddc1));_0xb4bdd&&_0x40e551['push'](_0x255a93),_0x38ed34&&_0x5c19a2['push'](_0x255a93);const _0x146634=St(_0x532041,'FORMAT_HTML_ATTRIBUTE'),_0x4fb0b7=_0x2f79c9['attributes']??{},_0x276a79=_0x46fcfd['attributes']??{};let _0x77d2c5=!0x1,_0x40a280=!0x1;for(const _0x242829 of new Set([...Object['keys'](_0x4fb0b7),...Object['keys'](_0x276a79)]))_0x4fb0b7[_0x242829]!==_0x276a79[_0x242829]&&(void 0x0===_0x276a79[_0x242829]?_0x40a280=!0x0:_0x77d2c5=!0x0);return _0x77d2c5&&_0x40e551['push'](_0x146634),_0x40a280&&_0x5c19a2['push'](_0x146634),{'setItems':_0x40e551,'removeItems':_0x5c19a2};}(_0x3fc5cc['oldValue']??{},_0x3fc5cc['newValue']??{},_0x39a1c2);if(!_0x2632c5['length']&&!_0x155c50['length'])return;const _0x415e03=[];return _0x2632c5['length']&&_0x415e03['push'](St(_0x39a1c2,'*Set\x20format:*\x20%0',_0x2632c5['join'](',\x20'))),_0x155c50['length']&&_0x415e03['push'](St(_0x39a1c2,'*Remove\x20format:*\x20%0',_0x155c50['join'](',\x20'))),{'type':'format','content':_0x415e03['join']('\x0a')};});}},oe=class extends _0x7848c6{['_headingOptions'];['afterInit'](){const _0x49ccd8=this['editor'];if(!_0x49ccd8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x49ccd8['config']['get']('heading.options');const _0x3ec404=_0x49ccd8['locale'],_0x35eeb7=_0x49ccd8['plugins']['get']('TrackChangesEditing');_0x35eeb7['enableDefaultAttributesIntegration']('heading');for(const _0x1a7100 of this['_headingOptions'])'paragraph'!=_0x1a7100['model']&&_0x35eeb7['descriptionFactory']['registerElementLabel'](_0x1a7100['model'],_0x2c9b93=>{const _0x38ac82=this['_getHeadingLevel'](_0x1a7100['model']);return null!==_0x38ac82?_0x39b611(_0x2c9b93,_0x38ac82):_0x2c084b(_0x2c9b93,_0x1a7100['title']);});function _0x39b611(_0x5cb2a1,_0x55c312){return St(_0x3ec404,'ELEMENT_HEADING',[_0x5cb2a1,_0x55c312]);}function _0x2c084b(_0x4ac1fd,_0x1110c4){return St(_0x3ec404,'ELEMENT_HEADING_CUSTOM',[_0x4ac1fd,_0x1110c4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474c60=this['editor'],_0x5e7779=_0x474c60['locale'];function _0x1c958b(_0x367575,_0x3a30e5){return St(_0x5e7779,'ELEMENT_HEADING_CUSTOM',[_0x367575,_0x3a30e5]);}_0x474c60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x586c51=>{if('formatBlock'!=_0x586c51['type'])return;const {data:_0x4e13c7}=_0x586c51;if(_0x4e13c7&&'heading'==_0x4e13c7['commandName']){const _0xd71079=_0x4e13c7['commandParams'][0x0]['value'],_0x14efd3=this['_getHeadingLevel'](_0xd71079);if(null!==_0x14efd3)return{'type':'format','content':St(_0x5e7779,'*Change\x20to:*\x20%0',(_0x1c2adf=0x1,_0x1db146=_0x14efd3,St(_0x5e7779,'ELEMENT_HEADING',[_0x1c2adf,_0x1db146])))};const _0x63146=this['_headingOptions']['find'](_0x34d2bc=>_0x34d2bc['model']===_0xd71079)['title'];return{'type':'format','content':St(_0x5e7779,'*Change\x20to:*\x20%0',_0x1c958b(0x1,_0x63146))};}var _0x1c2adf,_0x1db146;});}['_getHeadingLevel'](_0x55a4f5){const _0x565b93=_0x55a4f5['match'](/^heading(\d+)/);if(_0x565b93)return _0x565b93[0x1];const _0x427cdf=this['_headingOptions']?.['find'](_0x491f98=>_0x491f98['model']==_0x55a4f5);if(_0x427cdf&&_0x427cdf['view']){const _0x372ba4=_0x427cdf['view'],_0x58760a=(_0x372ba4['name']??_0x372ba4)['match'](/^h(\d+)/);if(_0x58760a)return _0x58760a[0x1];}return null;}},ae=class extends _0x7848c6{['afterInit'](){const _0x492752=this['editor'];if(!_0x492752['plugins']['has']('HighlightEditing'))return;const _0x1e0dce=_0x492752['plugins']['get']('TrackChangesEditing'),_0x5c9779=_0x492752['locale'];_0x1e0dce['enableDefaultAttributesIntegration']('highlight'),_0x1e0dce['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x5c9779,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x112a08=this['editor'],_0xcf4bb7=_0x112a08['locale'];_0x112a08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c089=>{if('formatInline'!=_0x35c089['type'])return;const {data:_0x264efc}=_0x35c089;if(_0x264efc&&'highlight'==_0x264efc['commandName']){const _0x239013=_0xcf4bb7['t'],_0xdebff7=_0x264efc['commandParams'][0x0]['value'];if(_0xdebff7){const _0x37ce44=_0x112a08['config']['get']('highlight.options')['find'](_0x423f7f=>_0x423f7f['model']==_0xdebff7);return{'type':'format','content':St(_0xcf4bb7,'*Set\x20highlight:*\x20%0',_0x239013(_0x37ce44['title'])['toLowerCase']()),'color':{'value':_0x37ce44['color'],'title':_0x37ce44['title']}};}return{'type':'format','content':St(_0xcf4bb7,'*Remove\x20highlight*',St(_0xcf4bb7,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x7848c6{['afterInit'](){const _0x13a201=this['editor'];if(!_0x13a201['plugins']['has']('HorizontalLineEditing'))return;_0x13a201['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x304a66=_0x13a201['plugins']['get']('TrackChangesEditing'),_0x50948b=_0x13a201['locale'];_0x304a66['descriptionFactory']['registerElementLabel']('horizontalLine',_0x568962=>St(_0x50948b,'ELEMENT_HORIZONTAL_LINE',_0x568962));}},le=class extends _0x7848c6{['afterInit'](){const _0x1ad435=this['editor'];if(!_0x1ad435['plugins']['has']('HtmlEmbed'))return;const _0x34f6ce=_0x1ad435['plugins']['get']('TrackChangesEditing'),_0x512e84=_0x1ad435['locale'];_0x34f6ce['descriptionFactory']['registerElementLabel']('rawHtml',_0x17e826=>St(_0x512e84,'ELEMENT_HTML_EMBED',_0x17e826)),_0x34f6ce['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34f6ce['descriptionFactory']['registerDescriptionCallback'](_0x417282=>{if('attribute'!=_0x417282['type'])return;const {data:_0x11b59d}=_0x417282;return _0x11b59d&&'value'==_0x11b59d['key']&&_0x417282['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x512e84,'*Change\x20%0\x20content*',St(_0x512e84,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3caecd=this['editor'],_0x3acbfc=_0x3caecd['locale'];_0x3caecd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59c966=>{if('formatBlock'!=_0x59c966['type'])return;const {data:_0x26580b}=_0x59c966;return _0x26580b&&'htmlEmbed'==_0x26580b['commandName']?{'type':'format','content':St(_0x3acbfc,'*Change\x20%0\x20content*',St(_0x3acbfc,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x7848c6{['afterInit'](){const _0x43fffa=this['editor'];if(!_0x43fffa['plugins']['has']('ImageEditing'))return;const _0x4138fd=_0x43fffa['plugins']['get']('TrackChangesEditing'),_0x2e4acc=_0x43fffa['plugins']['get']('ImageUtils'),_0x1c5897=_0x43fffa['locale'];_0x4138fd['enableCommand']('insertImage'),_0x4138fd['descriptionFactory']['registerElementLabel']('imageBlock',_0x4e85af=>St(_0x1c5897,'ELEMENT_IMAGE',_0x4e85af)),_0x4138fd['descriptionFactory']['registerElementLabel']('imageInline',_0x75a25b=>St(_0x1c5897,'ELEMENT_INLINE_IMAGE',_0x75a25b)),_0x4138fd['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x1c5897,'ELEMENT_CAPTION')),_0x43fffa['plugins']['has']('ImageUploadEditing')&&_0x4138fd['enableCommand']('uploadImage'),_0x43fffa['plugins']['has']('ImageBlockEditing')&&_0x43fffa['plugins']['has']('ImageInlineEditing')&&(_0x4138fd['enableCommand']('imageTypeInline',(_0x53da4d,_0x3595c3)=>{const _0x139e76=_0x2e4acc['getClosestSelectedImageElement'](_0x43fffa['model']['document']['selection']);_0x43fffa['model']['change'](()=>{_0x4138fd['markBlockFormat'](_0x139e76,{'commandName':'imageTypeInline','commandParams':[_0x3595c3]},[],'convertBlockImageToInline');});}),_0x4138fd['enableCommand']('imageTypeBlock',(_0x1144e3,_0x116b75)=>{_0x43fffa['model']['change'](_0x1d1fb8=>{let _0x295ecc=_0x2e4acc['getClosestSelectedImageElement'](_0x43fffa['model']['document']['selection']),_0xaaeb48=_0x1d1fb8['createRangeOn'](_0x295ecc);const _0x4524c9=st['fromPosition'](_0xaaeb48['start'],'toPrevious'),_0x5ba30a=st['fromPosition'](_0xaaeb48['end'],'toNext');_0x4138fd['forceDefaultExecution'](()=>_0x1144e3(_0x116b75)),_0x295ecc=_0x2e4acc['getClosestSelectedImageElement'](_0x43fffa['model']['document']['selection']),_0xaaeb48=_0x1d1fb8['createRangeOn'](_0x295ecc);const _0x347dd8=_0x1d1fb8['createRange'](_0x4524c9,_0x5ba30a);_0x4524c9['detach'](),_0x5ba30a['detach'](),_0x4138fd['markBlockFormat'](_0x295ecc,{'commandName':'imageTypeInline','commandParams':[_0x116b75]},[],'convertInlineImageToBlock'),_0x347dd8['start']['isBefore'](_0xaaeb48['start'])&&_0x4138fd['markInsertion'](_0x1d1fb8['createRange'](_0x347dd8['start'],_0xaaeb48['start']),'convertInlineImageToBlock'),_0xaaeb48['end']['isBefore'](_0x347dd8['end'])&&_0x4138fd['markInsertion'](_0x1d1fb8['createRange'](_0xaaeb48['end'],_0x347dd8['end']),'convertInlineImageToBlock');});}),_0x4138fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4138fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4138fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4138fd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4138fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4138fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1ca934])=>{const _0x516718=_0x4138fd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x271aca=_0x1ca934['start'],_0x50b18e=_0x1ca934['end'];const _0x120d0a=_0x43fffa['model']['schema']['getNearestSelectionRange'](_0x271aca,'backward'),_0x2d12ac=_0x43fffa['model']['schema']['getNearestSelectionRange'](_0x50b18e,'forward');_0x120d0a['isCollapsed']&&(_0x271aca=_0x120d0a['start']),_0x2d12ac['isCollapsed']&&(_0x50b18e=_0x2d12ac['end']),_0x516718([_0x43fffa['model']['createRange'](_0x271aca,_0x50b18e)]);}),_0x4138fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c1960),_0x4138fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c1960)),_0x43fffa['plugins']['has']('ImageCaptionEditing')&&(_0x4138fd['enableCommand']('toggleImageCaption',(_0x4f3d92,_0x48fe17)=>{const _0x1282eb=_0x43fffa['plugins']['get']('ImageCaptionUtils');let _0x29cf4c=_0x2e4acc['getClosestSelectedImageElement'](_0x43fffa['model']['document']['selection']),_0x230784=_0x1282eb['getCaptionFromImageModelElement'](_0x29cf4c);_0x43fffa['model']['change'](()=>{if(_0x230784)return void _0x4138fd['markDeletion'](_0x43fffa['model']['createRangeOn'](_0x230784));const _0x4c2808=_0x2e4acc['isBlockImage'](_0x29cf4c);_0x4f3d92(_0x48fe17),_0x29cf4c=_0x2e4acc['getClosestSelectedImageElement'](_0x43fffa['model']['document']['selection']),_0x230784=_0x1282eb['getCaptionFromImageModelElement'](_0x29cf4c),_0x4138fd['markInsertion'](_0x43fffa['model']['createRangeOn'](_0x230784),_0x4c2808?null:'imageCaption');});}),_0x4138fd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c1960));const _0x49d329=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xf481(_0x1ac758,_0x2d4cd9){const _0x1d2c8f=_0x49d329['findIndex'](({type:_0x16997b,subType:_0x573bd9})=>_0x1ac758['type']==_0x16997b&&_0x1ac758['subType']==_0x573bd9),_0x1b7c83=_0x49d329['findIndex'](({type:_0x272eb5,subType:_0x5967e2})=>_0x2d4cd9['type']==_0x272eb5&&_0x2d4cd9['subType']==_0x5967e2);if(_0x1d2c8f<0x0||_0x1b7c83<0x0)return!0x1;const _0x2c41fa=_0x1ac758['getFirstRange'](),_0x375023=_0x2d4cd9['getFirstRange']();if((0x0==_0x1d2c8f||0x1==_0x1d2c8f)&&0x2==_0x1b7c83&&_0x2c41fa['isIntersecting'](_0x375023))return!0x0;if(0x2==_0x1d2c8f&&0x3==_0x1b7c83){const _0x856e36=_0x4138fd['_findSuggestions'](_0x2c41fa,'insertion')['filter'](({suggestion:_0xe96175,meta:_0x588987})=>_0x588987['isOwn']&&'convertInlineImageToBlock'==_0xe96175['subType']);if(_0x856e36['length']>0x1&&_0x375023['end']['isEqual'](_0x2c41fa['start']))return!0x0;if(0x1==_0x856e36['length']&&(_0x2c41fa['start']['isEqual'](_0x375023['end'])||_0x2c41fa['end']['isEqual'](_0x375023['start'])))return!0x0;}if(0x3==_0x1d2c8f&&0x3==_0x1b7c83&&_0x2c41fa['start']['isBefore'](_0x375023['start'])){const _0x26a1c3=_0x2c41fa['end']['nodeAfter'],_0xbeb192=_0x375023['start']['nodeBefore'];return _0x2e4acc['isBlockImage'](_0x26a1c3)&&_0x26a1c3===_0xbeb192;}return!0x1;}function _0x4c1960(_0x1e3cd7,_0xe0f78a){return _0xf481(_0x1e3cd7,_0xe0f78a)?[_0x1e3cd7,_0xe0f78a]:_0xf481(_0xe0f78a,_0x1e3cd7)?[_0xe0f78a,_0x1e3cd7]:null;}_0x43fffa['plugins']['has']('ImageResize')&&(_0x4138fd['enableDefaultAttributesIntegration']('resizeImage'),_0x4138fd['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x1c5897,'FORMAT_IMAGE_SIZE'))),_0x43fffa['plugins']['has']('ImageTextAlternativeEditing')&&_0x4138fd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x43fffa['plugins']['has']('PictureEditing')&&_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x300273=>{if('attribute'!=_0x300273['type'])return;const {data:_0x4871a1}=_0x300273;return _0x4871a1&&'sources'==_0x4871a1['key']?{'type':'format','content':''}:void 0x0;}),_0x43fffa['plugins']['has']('ImageSizeAttributes')&&_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x4465d3=>{if('attribute'!=_0x4465d3['type'])return;const {data:_0x25cb36}=_0x4465d3;return!_0x25cb36||'width'!=_0x25cb36['key']&&'height'!=_0x25cb36['key']?void 0x0:{'type':'format','content':''};}),_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x3cac7b=>{if(_0x49d329['find'](({type:_0x29dc35,subType:_0x9b9e17})=>_0x3cac7b['type']==_0x29dc35&&_0x3cac7b['subType']==_0x9b9e17))return _0x3cac7b['previous']?{}:void 0x0;}),_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x12c06c=>{if('insertion'==_0x12c06c['type']||'deletion'==_0x12c06c['type']){const _0x2ba0e5=_0x12c06c['getContainedElement']();if(_0x2ba0e5&&_0x2ba0e5['is']('element','caption'))return{'type':'insertion'==_0x12c06c['type']?'addObject':'removeObject','element':_0x2ba0e5,'quantity':0x1};}}),_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x1ddac7=>'formatBlock'==_0x1ddac7['type']&&'convertInlineImageToBlock'==_0x1ddac7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ddac7['type']&&'convertBlockImageToInline'==_0x1ddac7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4138fd['descriptionFactory']['registerDescriptionCallback'](_0x222e57=>{if('attribute'!=_0x222e57['type'])return;const {data:_0x292053}=_0x222e57;if(!_0x292053||'alt'!=_0x292053['key'])return;const _0x4dac9f=_0x292053['newValue'];return _0x4dac9f?{'type':'format','content':St(_0x1c5897,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4dac9f+'\x22')}:{'type':'format','content':St(_0x1c5897,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262ce2=this['editor'],_0x259c6e=_0x262ce2['locale'];_0x262ce2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2933c9=>{if('formatBlock'!=_0x2933c9['type']&&'formatInline'!=_0x2933c9['type'])return;const {data:_0x379118}=_0x2933c9;if(_0x379118){if('imageTextAlternative'==_0x379118['commandName']){const _0x265677=_0x379118['commandParams'][0x0]['newValue'];return _0x265677?{'type':'format','content':St(_0x259c6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x265677+'\x22')}:{'type':'format','content':St(_0x259c6e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x379118['commandName']){const _0x434a96=_0x379118['commandParams'][0x0]['width'];return _0x434a96?{'type':'format','content':St(_0x259c6e,'*Set\x20image\x20width:*\x20%0',_0x434a96)}:{'type':'format','content':St(_0x259c6e,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x7848c6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5602af=this['editor']['locale'],_0x45a4cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x45a4cf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x45a4cf['descriptionFactory']['registerDescriptionCallback'](_0x2e0ed4=>{if('attribute'!=_0x2e0ed4['type'])return;const {data:_0x5bc8e9}=_0x2e0ed4;return _0x5bc8e9&&'src'==_0x5bc8e9['key']?_0x5bc8e9['newValue']&&_0x5bc8e9['oldValue']?{'type':'format','content':St(_0x5602af,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59c481=this['editor']['plugins']['get']('TrackChangesEditing');_0x59c481['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59c481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59c481['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59c481['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ba3ef=this['editor'],_0x4e9512=_0x3ba3ef['locale'];_0x3ba3ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af348=>{if('formatBlock'!=_0x2af348['type']&&'formatInline'!=_0x2af348['type'])return;const {data:_0x390ca9}=_0x2af348;return _0x390ca9&&'replaceImageSource'==_0x390ca9['commandName']?{'type':'format','content':St(_0x4e9512,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x7848c6{['afterInit'](){const _0x38e620=this['editor'];if(!_0x38e620['plugins']['has']('ImageStyleEditing'))return;const _0x2ae624=_0x38e620['plugins']['get']('TrackChangesEditing'),_0x6393ad=_0x38e620['plugins']['get']('ImageUtils'),_0x3f9859={};_0x2ae624['enableCommand']('imageStyle',(_0x1e7bad,_0x4f9747)=>{const _0xf69c86=_0x38e620['plugins']['get']('Users')['me'],_0x1f72d9=_0x38e620['commands']['get']('imageStyle');let _0x5803c0=_0x6393ad['getClosestSelectedImageElement'](_0x38e620['model']['document']['selection']),_0x1dcdb3=_0x38e620['model']['createRangeOn'](_0x5803c0),_0x2f52a5=_0x1f72d9['value'];if(_0x2f52a5==_0x4f9747['value'])return;if(_0x4f9747['value']&&_0x6393ad['isInlineImage'](_0x5803c0)&&!_0x1f72d9['isStyleEnabled'](_0x4f9747['value']))return;const _0x3c430d={'commandName':'imageStyle','commandParams':[_0x4f9747],'formatGroupId':_0x36f764()};_0x38e620['model']['change'](()=>{if(_0x2ae624['getSuggestions']()['filter'](_0x4c4941=>_0x4c4941['isInContent']&&_0xf69c86==_0x4c4941['author']&&('formatBlock'==_0x4c4941['type']||'formatInline'==_0x4c4941['type'])&&('imageStylePreApply'==_0x4c4941['subType']||'imageStylePostApply'==_0x4c4941['subType'])&&_0x4c4941['getFirstRange']()['isEqual'](_0x1dcdb3))['forEach'](_0x1e63de=>_0x2ae624['discardSuggestion'](_0x1e63de['head'])),_0x5803c0=_0x6393ad['getClosestSelectedImageElement'](_0x38e620['model']['document']['selection']),_0x1dcdb3=_0x38e620['model']['createRangeOn'](_0x5803c0),_0x1f72d9['refresh'](),_0x38e620['commands']['get']('imageTypeInline')['refresh'](),_0x38e620['commands']['get']('imageTypeBlock')['refresh'](),_0x2f52a5=_0x1f72d9['value'],_0x2f52a5!=_0x4f9747['value'])return _0x6393ad['isInlineImage'](_0x5803c0)&&_0x1f72d9['shouldConvertImageType'](_0x4f9747['value'],_0x5803c0)?(_0x1e7bad({..._0x4f9747,'setImageSizes':!0x1}),_0x5803c0=_0x6393ad['getClosestSelectedImageElement'](_0x38e620['model']['document']['selection']),void _0x2ae624['markBlockFormat'](_0x5803c0,{..._0x3c430d,'commandReversedParams':[{'value':_0x2f52a5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6393ad['isBlockImage'](_0x5803c0)?_0x2ae624['markBlockFormat'](_0x5803c0,_0x3c430d,[],'imageStylePostApply'):_0x2ae624['markInlineFormat'](_0x1dcdb3,_0x3c430d,'imageStylePostApply'));});});for(const _0x55da7f of _0x38e620['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f9859[_0x55da7f['name']]=_0x55da7f['title']['toLowerCase']();_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x32fb03])=>{_0x6393ad['setImageNaturalSizeAttributes'](_0x32fb03['getContainedElement']());}),_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5aeb3a,_0x486d36)=>{_0x2ae624['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5aeb3a,{'commandName':_0x486d36['commandName'],'commandParams':_0x486d36['commandReversedParams']});}),_0x2ae624['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x35d44f,_0x21fb04){return _0x2a7a27(_0x35d44f,_0x21fb04)?[_0x35d44f,_0x21fb04]:_0x2a7a27(_0x21fb04,_0x35d44f)?[_0x21fb04,_0x35d44f]:null;});const _0x1ca99f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a7a27(_0x1e9f9b,_0x2355bd){const _0xa89a3e=_0x1ca99f['findIndex'](({type:_0x3a8901,subType:_0x20b349})=>_0x1e9f9b['type']==_0x3a8901&&_0x1e9f9b['subType']==_0x20b349),_0x82124=_0x1ca99f['findIndex'](({type:_0x2442f0,subType:_0x2b645a})=>_0x2355bd['type']==_0x2442f0&&_0x2355bd['subType']==_0x2b645a);if(_0xa89a3e<0x0||_0x82124<0x0)return!0x1;const _0x275b53=_0x1e9f9b['getFirstRange'](),_0x12aee4=_0x2355bd['getFirstRange']();if((0x0==_0xa89a3e||0x1==_0xa89a3e)&&0x2==_0x82124&&_0x275b53['isIntersecting'](_0x12aee4))return!0x0;if(0x2==_0xa89a3e&&0x3==_0x82124){const _0x1b9d7a=_0x2ae624['_findSuggestions'](_0x275b53,'insertion')['filter'](({suggestion:_0x5497d5,meta:_0x38868c})=>_0x38868c['isOwn']&&'convertInlineImageToBlock'==_0x5497d5['subType']);if(_0x1b9d7a['length']>0x1&&_0x12aee4['end']['isEqual'](_0x275b53['start']))return!0x0;if(0x1==_0x1b9d7a['length']&&(_0x275b53['start']['isEqual'](_0x12aee4['end'])||_0x275b53['end']['isEqual'](_0x12aee4['start'])))return!0x0;}if(0x3==_0xa89a3e&&0x3==_0x82124&&_0x275b53['start']['isBefore'](_0x12aee4['start'])){const _0x5e98f4=_0x275b53['end']['nodeAfter'],_0x4f4fc0=_0x12aee4['start']['nodeBefore'];return _0x6393ad['isBlockImage'](_0x5e98f4)&&_0x5e98f4===_0x4f4fc0;}return!0x1;}_0x38e620['model']['document']['registerPostFixer'](()=>{let _0x3366f1=!0x1;const _0x5aa464=Array['from'](_0x38e620['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bea6d,data:_0x1f0748}of _0x5aa464){const {group:_0x52483e,type:_0x6478ca,subType:_0x309e85,id:_0x47f634}=tt(_0x1bea6d);if('suggestion'==_0x52483e&&_0x2ae624['hasSuggestion'](_0x47f634)){if('formatBlock'==_0x6478ca&&('imageStylePreApply'==_0x309e85||'imageStylePostApply'==_0x309e85)){const _0x2e838e=_0x2ae624['getSuggestion'](_0x47f634);if(_0x1f0748['newRange']){const _0x213a16=_0x2e838e['getFirstRange']()['getContainedElement']();if(_0x6393ad['isBlockImage'](_0x213a16))continue;_0x2ae624['discardSuggestion'](_0x2e838e),_0x3366f1=!0x0;}}if('insertion'==_0x6478ca&&'imageCaption'==_0x309e85&&!_0x1f0748['newRange']){const _0x2bc876=_0x2ae624['getSuggestion'](_0x47f634);_0x2bc876['next']&&_0x2bc876['next']['isInContent']&&(_0x2ae624['discardSuggestion'](_0x2bc876['next']),_0x3366f1=!0x0);}}}return _0x3366f1;}),this['_registerLegacyDescription'](_0x3f9859);}['_registerLegacyDescription'](_0x21e210){const _0x62a646=this['editor'],_0x45331b=_0x62a646['locale'];_0x62a646['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a8ed=>{if('formatBlock'!=_0x12a8ed['type']&&'formatInline'!=_0x12a8ed['type'])return;const {data:_0x2a9051}=_0x12a8ed;if(!_0x2a9051||'imageStyle'!=_0x2a9051['commandName'])return;const _0xb30ec3=_0x2a9051['commandParams'][0x0]['value'];return _0x54e858('side'===_0xb30ec3?St(_0x45331b,'FORMAT_SIDE_IMAGE'):_0x21e210[_0xb30ec3]||_0xb30ec3);function _0x54e858(_0x4c4605){return{'type':'format','content':St(_0x45331b,'*Format:*\x20%0',_0x4c4605)};}});}},ge=class extends _0x7848c6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f53e7){super(_0x2f53e7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48d806=this['editor'],_0x1a775a=_0x48d806['commands']['get']('importWord'),_0x432c60=_0x48d806['commands']['get']('trackChanges');_0x1a775a&&(_0x1a775a['on']('execute',(_0x42d4ae,[,_0x57d8db])=>{this['_trackChangesValueDuringImport']=_0x432c60['value'],_0x57d8db['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a775a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a775a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x432c60['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48d806['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3479ce,_0x2be63b){const {suggestions:_0x2b94d0}=_0x2be63b,_0x792ca1=this['editor']['commands']['get']('trackChanges'),_0x598cdb=_0x792ca1['value'];this['_trackChangesValueDuringImport']!==_0x598cdb&&(_0x792ca1['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b94d0&&_0x2b94d0['forEach'](({id:_0x14d0e6,type:_0x2d5fe2,author:_0x1e3618,created_at:_0x11ee0c})=>{const _0x30380a={'id':_0x14d0e6,'type':_0x2d5fe2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e3618,'createdAt':_0x11ee0c?new Date(_0x11ee0c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x30380a);});}},fe=class extends _0x7848c6{['afterInit'](){const _0x2f5ba1=this['editor'],_0x1593cd=_0x2f5ba1['plugins']['get']('TrackChangesEditing');if(_0x2f5ba1['plugins']['has']('IndentEditing')&&(_0x1593cd['enableCommand']('indent'),_0x1593cd['enableCommand']('outdent')),_0x2f5ba1['plugins']['has']('IndentBlock')){for(const _0xdb1126 of['indentBlock','outdentBlock'])_0x1593cd['enableDefaultAttributesIntegration'](_0xdb1126);if(_0x2f5ba1['plugins']['has']('ListEditing')){for(const _0x1298e9 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1593cd['enableDefaultAttributesIntegration'](_0x1298e9);}}const _0x4ea75e=_0x2f5ba1['locale'];_0x1593cd['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x4ea75e,'FORMAT_INDENT')),_0x1593cd['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x4ea75e,'FORMAT_INDENT')),_0x1593cd['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x4ea75e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x112741=this['editor'],_0x35241b=_0x112741['locale'],_0x4a9f67=_0x112741['plugins']['get']('TrackChangesEditing');_0x4a9f67['descriptionFactory']['registerDescriptionCallback'](_0x3a1a37=>{if('formatBlock'!=_0x3a1a37['type'])return;const {data:_0x563a2b}=_0x3a1a37;if(!_0x563a2b)return;if('indentBlock'!=_0x563a2b['commandName']&&'outdentBlock'!=_0x563a2b['commandName'])return;const _0x20b9e4=_0x3a1a37['getItems']()[0x0],_0x2b19e7=_0x4a9f67['descriptionFactory']['getItemLabel'](_0x20b9e4);return'indentBlock'==_0x563a2b['commandName']?{'type':'format','content':St(_0x35241b,'*Indent:*\x20%0',_0x2b19e7)}:'outdentBlock'==_0x563a2b['commandName']?{'type':'format','content':St(_0x35241b,'*Outdent:*\x20%0',_0x2b19e7)}:void 0x0;});}},me=class extends _0x7848c6{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x7848c6{['afterInit'](){const _0xab930d=this['editor'];if(!_0xab930d['plugins']['has']('LinkEditing'))return;const _0x2da048=_0xab930d['plugins']['get']('TrackChangesEditing'),_0x131624=_0xab930d['commands']['get']('link');_0x2da048['enableDefaultAttributesIntegration']('link'),_0x2da048['enableDefaultAttributesIntegration']('unlink');for(const _0x442d78 of _0x131624['manualDecorators'])_0x2da048['descriptionFactory']['registerAttributeLabel'](_0x442d78['id'],'link\x20('+_0x442d78['label']['toLowerCase']()+')');_0x2da048['descriptionFactory']['registerDescriptionCallback'](_0x412b3a=>{if('attribute'!=_0x412b3a['type'])return;const {data:_0x40dd47}=_0x412b3a;if(!_0x40dd47||'linkHref'!=_0x40dd47['key'])return;const _0x39e56f=_0x40dd47['newValue'],_0x1aca78=_0xab930d['locale'];return{'type':'format','content':null==_0x39e56f?St(_0x1aca78,'*Remove\x20link*'):St(_0x1aca78,'*Set\x20link:*\x20%0','\x22'+_0x39e56f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9ace=this['editor'],_0x5a7039=_0x4d9ace['locale'];_0x4d9ace['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af6ce=>{if('formatInline'!=_0x1af6ce['type'])return;const {data:_0x1cad4e}=_0x1af6ce;if(_0x1cad4e){if('link'==_0x1cad4e['commandName']){const _0x5e34f2=_0x1cad4e['commandParams'][0x0];return{'type':'format','content':St(_0x5a7039,'*Set\x20link:*\x20%0','\x22'+_0x5e34f2+'\x22')};}return'unlink'==_0x1cad4e['commandName']?{'type':'format','content':St(_0x5a7039,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x7848c6{['afterInit'](){const _0x261925=this['editor'],_0x112777=_0x261925['locale'];if(!_0x261925['plugins']['has']('LegacyListEditing'))return;const _0x33bd11=_0x261925['plugins']['get']('TrackChangesEditing'),_0x48cc95=_0x261925['plugins']['has']('LegacyTodoListEditing');function _0x453037(_0x5612fe){return()=>{const _0x29b80a=_0x261925['model']['document']['selection'],_0x122917=_0x261925['commands']['get'](_0x5612fe);if(_0x122917['value'])return void _0x261925['execute']('paragraph',{});const _0xce74cb=_0x5612fe['slice'](0x0,-0x4),_0x5c6b36=function(_0x5513ed,_0x10245e,_0x3239d4){let _0x5f3fad=Array['from'](_0x5513ed)['filter'](_0x4649e5=>function(_0x440265,_0x4c6d21){return _0x4c6d21['checkChild'](_0x440265['parent'],'listItem')&&!_0x4c6d21['isObject'](_0x440265);}(_0x4649e5,_0x3239d4));_0x5f3fad=_0x5f3fad['filter'](_0x3cc120=>!_0x3cc120['is']('element','listItem')||_0x3cc120['getAttribute']('listType')!=_0x10245e);const _0x2905d8=new Set();for(const _0x53086c of _0x5f3fad)_0x53086c['is']('element','listItem')?_0x2905d8['add'](_e(_0x53086c)):_0x2905d8['add'](_0x53086c);return Array['from'](_0x2905d8);}(_0x29b80a['getSelectedBlocks'](),_0xce74cb,_0x261925['model']['schema']);_0x261925['model']['change'](()=>{for(const _0x6644b1 of _0x5c6b36)_0x33bd11['markBlockFormat'](_0x6644b1,{'commandName':_0x5612fe,'commandParams':[{'forceValue':!_0x122917['value']}],'formatGroupId':'blockName'},pe(_0x6644b1));});};}function _0x57372b(_0x17e0f2){return()=>{const _0x3bb284=function(_0x4ff60e){let _0x5ed3a2=Array['from'](_0x4ff60e);const _0x1102d0=_0x5ed3a2['findIndex'](_0x394ce0=>'listItem'!=_0x394ce0['name']);return _0x1102d0>-0x1&&(_0x5ed3a2=_0x5ed3a2['slice'](0x0,_0x1102d0)),_0x5ed3a2;}(_0x261925['model']['document']['selection']['getSelectedBlocks']()),_0x9c0080=_0x261925['model']['createRange'](_0x261925['model']['createPositionAt'](_0x3bb284[0x0],'before'),_0x261925['model']['createPositionAt'](_0x3bb284[_0x3bb284['length']-0x1],'end'));_0x261925['model']['change'](()=>{_0x33bd11['markBlockFormat'](_0x9c0080,{'commandName':_0x17e0f2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18b7df){const _0x119463=new Set();for(const _0x339c7e of _0x18b7df){let _0x4df11f=_0x339c7e['nextSibling'];for(;_0x4df11f&&_0x4df11f['getAttribute']('listIndent')>_0x339c7e['getAttribute']('listIndent');)_0x119463['add'](_0x4df11f),_0x4df11f=_0x4df11f['nextSibling'];}return Array['from'](_0x119463);}(_0x3bb284));});};}_0x33bd11['enableCommand']('numberedList',_0x453037('numberedList')),_0x33bd11['enableCommand']('bulletedList',_0x453037('bulletedList')),_0x48cc95&&_0x33bd11['enableCommand']('todoList',_0x453037('todoList')),_0x33bd11['enableCommand']('indentList',_0x57372b('indentList')),_0x33bd11['enableCommand']('outdentList',_0x57372b('outdentList')),_0x48cc95&&_0x33bd11['enableCommand']('checkTodoList',()=>{const _0xd7a6f=_0x261925['commands']['get']('checkTodoList'),_0x5d5701=Array['from'](_0xd7a6f['_selectedElements']);_0x5d5701['filter'](_0x172b92=>_0x172b92['getAttribute']('todoListChecked')!=_0xd7a6f['value']),_0x261925['model']['change'](()=>{for(const _0x5bd5eb of _0x5d5701)_0x33bd11['markBlockFormat'](_0x5bd5eb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd7a6f['value']}]});});}),_0x33bd11['descriptionFactory']['registerElementLabel']('listItem',_0x5b7c60=>St(_0x112777,'ELEMENT_LIST_ITEM',_0x5b7c60)),_0x33bd11['descriptionFactory']['registerDescriptionCallback'](_0x37effe=>{if('formatBlock'!=_0x37effe['type']&&'formatInline'!=_0x37effe['type'])return;const {data:_0x578aad}=_0x37effe;if(_0x578aad){if('numberedList'==_0x578aad['commandName']||'bulletedList'==_0x578aad['commandName']||'todoList'==_0x578aad['commandName'])switch(_0x578aad['commandName']['replace']('List','')){case'bulleted':return _0x5816c3(St(_0x112777,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5816c3(St(_0x112777,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5816c3(St(_0x112777,'ELEMENT_TODO_LIST'));}if('indentList'==_0x578aad['commandName'])return{'type':'format','content':St(_0x112777,'*Indent:*\x20%0',St(_0x112777,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x578aad['commandName'])return{'type':'format','content':St(_0x112777,'*Outdent:*\x20%0',St(_0x112777,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x578aad['commandName'])return _0x578aad['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x112777,'*Check\x20item*')}:{'type':'format','content':St(_0x112777,'*Uncheck\x20item*')};}function _0x5816c3(_0x30a177){return{'type':'format','content':St(_0x112777,'*Change\x20to:*\x20%0',_0x30a177)};}});}};function _e(_0x33660d){const _0x1e18b2=_0x33660d['getAttribute']('listIndent');if(0x0==_0x1e18b2)return _0x33660d;let _0x23e2d6=_0x33660d;for(;_0x33660d['previousSibling']&&_0x33660d['previousSibling']['is']('element','listItem');){const _0x3a739f=_0x33660d['previousSibling']['getAttribute']('listIndent');if(_0x3a739f==_0x1e18b2)_0x23e2d6=_0x33660d['previousSibling'];else{if(_0x3a739f<_0x1e18b2)break;}_0x33660d=_0x33660d['previousSibling'];}return _0x23e2d6;}function pe(_0x1c1456){const _0xad1248=[];if(_0x1c1456['is']('element','listItem')&&_0x1c1456['getAttribute']('listIndent')>0x0){let _0x2d01ae=_0x1c1456['nextSibling'];for(;_0x2d01ae&&'listItem'==_0x2d01ae['name']&&_0x2d01ae['getAttribute']('listIndent')==_0x1c1456['getAttribute']('listIndent');)_0xad1248['push'](_0x2d01ae),_0x2d01ae=_0x2d01ae['nextSibling'];}return _0xad1248;}var Le=class extends _0x7848c6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a6a73=this['editor']['config']['get']('list.properties'),_0x392515=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a6a73['styles']&&_0x392515['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a6a73['reversed']&&_0x392515['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a6a73['startIndex']&&_0x392515['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x392515['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x585592,_0x4ed199={}){const _0x4a173c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a706a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4a173c['markMultiRangeBlockFormat'](_0x3a706a,{'commandName':'listStyle','commandParams':[{'type':_0x4ed199['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46b4e2,_0x56ee58={}){const _0x40efef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x340d23=this['_getSuggestionBlocks'](_0x35f768=>_0x35f768['is']('element','listItem')&&'numbered'===_0x35f768['getAttribute']('listType'));if(_0x340d23['length']<0x1)return;const _0x54365c=_0x340d23['map'](_0x16bfb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16bfb5,'before'),this['editor']['model']['createPositionAt'](_0x16bfb5,0x0)));this['editor']['model']['change'](()=>{_0x40efef['markMultiRangeBlockFormat'](_0x54365c,{'commandName':'listReversed','commandParams':[{'reversed':_0x56ee58['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e3904,_0x1a941d={}){const _0x5eb65b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16bc11=this['_getSuggestionBlocks'](_0x5cf93d=>_0x5cf93d['is']('element','listItem')&&'numbered'===_0x5cf93d['getAttribute']('listType'));if(_0x16bc11['length']<0x1)return;const _0xcd380f=_0x16bc11['map'](_0x2555bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2555bb,'before'),this['editor']['model']['createPositionAt'](_0x2555bb,0x0)));this['editor']['model']['change'](()=>{_0x5eb65b['markMultiRangeBlockFormat'](_0xcd380f,{'commandName':'listStart','commandParams':[{'startIndex':_0x1a941d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x161171){if('formatBlock'!=_0x161171['type']&&'formatInline'!=_0x161171['type'])return;const _0x1904da=this['editor']['locale'],{data:_0x30f1b0}=_0x161171;if(!_0x30f1b0)return;let _0xc0fc0f,_0x56a5e4;switch(_0x30f1b0['commandName']){case'listStyle':_0xc0fc0f='*Change\x20to:*\x20%0',_0x56a5e4={'type':'format','content':St(_0x1904da,_0xc0fc0f,St(_0x1904da,this['_getTranslationKeyForListStyle'](_0x30f1b0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc0fc0f=_0x30f1b0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56a5e4={'type':'format','content':St(_0x1904da,_0xc0fc0f)};break;case'listStart':_0xc0fc0f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56a5e4={'type':'format','content':St(_0x1904da,_0xc0fc0f,_0x30f1b0['commandParams'][0x0]['startIndex'])};}return _0x56a5e4;}['_getSuggestionBlocksForListStyle'](){const _0x3e8f4f=this['editor']['plugins']['get']('LegacyListUtils');let _0x6e9a75=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6e9a75[0x0]?.['is']('element','listItem')&&_0x6e9a75['unshift'](..._0x3e8f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6e9a75[_0x6e9a75['length']-0x1]?.['is']('element','listItem')&&_0x6e9a75['push'](..._0x3e8f4f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6e9a75=[...new Set(_0x6e9a75)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6e9a75=_0x6e9a75['filter'](_0x25485a=>_0x25485a['is']('element','listItem'))),_0x6e9a75;}['_getSuggestionBlocks'](_0x1b2e2e){const _0x10f965=this['editor']['plugins']['get']('LegacyListUtils');let _0x48b72d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b2e2e)['map'](_0x4b75bf=>{const _0x40c8b0=this['editor']['model']['createPositionAt'](_0x4b75bf,0x0);return[..._0x10f965['getSiblingNodes'](_0x40c8b0,'backward'),..._0x10f965['getSiblingNodes'](_0x40c8b0,'forward')];})['flat']();return _0x48b72d=[...new Set(_0x48b72d)],_0x48b72d;}['_getTranslationKeyForListStyle'](_0x3f4338){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f4338)||'default')['toUpperCase']()+'_LIST_'+_0x3f4338['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x7848c6{['afterInit'](){const _0x291b47=this['editor'];if(!_0x291b47['plugins']['has']('MediaEmbedEditing'))return;const _0x1e5596=_0x291b47['plugins']['get']('TrackChangesEditing'),_0x584da8=_0x291b47['locale'];_0x1e5596['enableCommand']('mediaEmbed'),_0x1e5596['descriptionFactory']['registerElementLabel']('media',_0x5f3008=>St(_0x584da8,'ELEMENT_MEDIA',_0x5f3008)),_0x291b47['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1e5596['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1e5596['descriptionFactory']['registerDescriptionCallback'](_0x40ecc2=>{if('attribute'!=_0x40ecc2['type'])return;const {data:_0xd840e3}=_0x40ecc2;if(!_0xd840e3||'resizedWidth'!=_0xd840e3['key'])return;const _0x267162=_0x40ecc2['getContainedElement']();return _0x267162&&_0x267162['is']('element','media')?{'type':'format','content':St(_0x584da8,'*Set\x20format:*\x20%0',St(_0x584da8,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x7848c6{['afterInit'](){const _0x1cbe73=this['editor'];if(!_0x1cbe73['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5b3e54=_0x1cbe73['plugins']['get']('TrackChangesEditing'),_0x4f2351=_0x1cbe73['locale'],_0x3ad2f0=_0x1cbe73['plugins']['get']('MediaEmbedStyleEditing'),_0xdc6418={};for(const _0x46a863 of _0x3ad2f0['normalizedStyles'])_0xdc6418[_0x46a863['name']]=_0x46a863['title']['toLowerCase']();const _0x2d99f7=_0x3ad2f0['normalizedStyles']['find'](_0x4a183f=>_0x4a183f['isDefault'])?.['name'];_0x5b3e54['enableCommand']('mediaStyle',(_0x50894e,_0x4e2c6f)=>{const _0x5ad3a3=_0x1cbe73['plugins']['get']('Users')['me'],_0x68980e=_0x1cbe73['commands']['get']('mediaStyle'),_0x1720b3=function(_0x2e8620){const _0x549869=_0x2e8620['model']['document']['selection']['getSelectedElement']();return _0x549869&&_0x549869['is']('element','media')?_0x549869:null;}(_0x1cbe73);if(!_0x1720b3)return;const _0x188222=_0x1cbe73['model']['createRangeOn'](_0x1720b3);let _0x3471d0=_0x68980e['value'];if(_0x3471d0==_0x4e2c6f['value'])return;const _0x510047={'commandName':'mediaStyle','commandParams':[_0x4e2c6f],'formatGroupId':_0x36f764()};_0x1cbe73['model']['change'](()=>{_0x5b3e54['getSuggestions']()['filter'](_0x364352=>_0x364352['isInContent']&&_0x5ad3a3==_0x364352['author']&&'formatBlock'==_0x364352['type']&&'mediaStylePostApply'==_0x364352['subType']&&_0x364352['getFirstRange']()['isEqual'](_0x188222))['forEach'](_0x403c27=>_0x5b3e54['discardSuggestion'](_0x403c27['head'])),_0x68980e['refresh'](),_0x3471d0=_0x68980e['value'],_0x3471d0!=_0x4e2c6f['value']&&_0x5b3e54['markBlockFormat'](_0x1720b3,{..._0x510047,'commandReversedParams':[{'value':'string'==typeof _0x3471d0?_0x3471d0:null}]},[],'mediaStylePostApply');});}),_0x5b3e54['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5b3e54['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x46a5a3,_0x1ea761)=>{_0x5b3e54['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46a5a3,{'commandName':_0x1ea761['commandName'],'commandParams':_0x1ea761['commandReversedParams']});}),_0x5b3e54['descriptionFactory']['registerDescriptionCallback'](_0x521870=>{if('formatBlock'!=_0x521870['type'])return;const {data:_0x3a8885}=_0x521870;if(!_0x3a8885||'mediaStyle'!=_0x3a8885['commandName'])return;const _0x38c4f2=_0x3a8885['commandParams'][0x0]['value']||_0x2d99f7;return _0x38c4f2?{'type':'format','content':St(_0x4f2351,'*Format:*\x20%0',_0xdc6418[_0x38c4f2]||_0x38c4f2)}:void 0x0;});}},be=class extends _0x7848c6{['afterInit'](){const _0x502335=this['editor'];_0x502335['plugins']['has']('MentionEditing')&&_0x502335['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x7848c6{['afterInit'](){const _0x22ba67=this['editor'];if(!_0x22ba67['plugins']['has']('MergeFieldsEditing'))return;const _0x3101e1=_0x22ba67['plugins']['get']('TrackChangesEditing'),_0x45956d=_0x22ba67['locale'];_0x3101e1['enableCommand']('insertMergeField'),_0x3101e1['enableCommand']('insertMergeFieldBlock'),_0x3101e1['enableCommand']('insertMergeFieldImage'),_0x3101e1['descriptionFactory']['registerElementLabel']('mergeField',_0x3b95cb=>St(_0x45956d,'ELEMENT_MERGE_FIELD',_0x3b95cb)),_0x3101e1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a426a=>St(_0x45956d,'ELEMENT_MERGE_FIELD',_0x4a426a)),_0x3101e1['descriptionFactory']['registerDescriptionCallback'](_0x9aad71=>{if('insertion'!=_0x9aad71['type']&&'deletion'!=_0x9aad71['type'])return;const _0x58575e=_0x9aad71['getContainedElement']();if(null==_0x58575e)return;const _0x4c455f=_0x22ba67['plugins']['get']('MergeFieldsEditing');let _0x58da9c;switch(_0x4c455f['getMergeFieldType'](_0x58575e)){case null:return;case'image':{const _0x5b404e=_0x4c455f['unwrapAffixes'](_0x58575e['getAttribute']('src'));_0x58da9c=_0x4c455f['getLabel'](_0x5b404e)||_0x5b404e;break;}default:{const _0x3c849c=_0x58575e['getAttribute']('id');_0x58da9c=_0x4c455f['getLabel'](_0x3c849c)||_0x3c849c;break;}}return'insertion'==_0x9aad71['type']?{'type':'insertion','content':St(_0x45956d,'*Insert:*\x20%0','\x22'+_0x58da9c+'\x22\x20'+St(_0x45956d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x45956d,'*Remove:*\x20%0','\x22'+_0x58da9c+'\x22\x20'+St(_0x45956d,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x7848c6{['afterInit'](){const _0x349858=this['editor'],_0x4e6761=_0x349858['plugins']['get']('TrackChangesEditing');_0x349858['plugins']['has']('MultiLevelList')&&(_0x4e6761['enableDefaultAttributesIntegration']('multiLevelList'),_0x4e6761['descriptionFactory']['registerDescriptionCallback'](_0x4b0a70=>this['handleDescriptions'](_0x4b0a70)));}['handleDescriptions'](_0x2572af){const _0x179eeb=this['editor']['locale'],{data:_0xb6f348}=_0x2572af,_0x197f3d={'type':'format','content':''};if(_0xb6f348&&'listMarkerStyle'==_0xb6f348['key']){if(!_0xb6f348['oldValue'])return{'type':'format','content':St(_0x179eeb,'*Set\x20format:*\x20%0',St(_0x179eeb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb6f348['newValue']+')'};if(!_0xb6f348['newValue']){let _0x91f4eb=_0x2572af['head'];for(;_0x91f4eb;){if(_0x91f4eb['data']&&'listType'==_0x91f4eb['data']['key']&&_0x91f4eb['data']['newValue'])return _0x197f3d;_0x91f4eb=_0x91f4eb['next'];}return{'type':'format','content':St(_0x179eeb,'*Remove\x20format:*\x20%0',St(_0x179eeb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb6f348['oldValue']+')'};}}}},Re=class extends _0x7848c6{['afterInit'](){const _0x23ec15=this['editor'];if(!_0x23ec15['plugins']['has']('PageBreakEditing'))return;_0x23ec15['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3e079c=_0x23ec15['plugins']['get']('TrackChangesEditing'),_0x34fb68=_0x23ec15['locale'];_0x3e079c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e5d5e=>St(_0x34fb68,'ELEMENT_PAGE_BREAK',_0x5e5d5e));}},Ne=class extends _0x7848c6{['afterInit'](){const _0x59d774=this['editor'];if(!_0x59d774['plugins']['has']('Paragraph'))return;const _0x210ce6=_0x59d774['locale'],_0x3c4a92=_0x59d774['plugins']['get']('TrackChangesEditing');_0x3c4a92['descriptionFactory']['registerElementLabel']('paragraph',_0x86ca0c=>St(_0x210ce6,'ELEMENT_PARAGRAPH',_0x86ca0c)),_0x3c4a92['enableDefaultAttributesIntegration']('paragraph'),_0x3c4a92['enableCommand']('insertParagraph');const _0x2e435c=_0x3c4a92['descriptionFactory'];_0x2e435c['registerDescriptionCallback'](_0x1139cb=>{if('insertion'!==_0x1139cb['type'])return;const {start:_0x42fc3f,end:_0x5556e3}=_0x1139cb['getFirstRange']();if(!_0x42fc3f['isTouching'](_0x5556e3)||!_0x42fc3f['nodeAfter'])return;const _0x588877=_0x59d774['model']['schema'],_0x383e43=_0x42fc3f['nodeAfter'];return _0x588877['isBlock'](_0x383e43)&&!_0x588877['isLimit'](_0x383e43)&&_0x588877['checkChild'](_0x383e43,'$text')?{'type':'insertion','content':St(_0x210ce6,'*Insert:*\x20%0',_0x2e435c['getItemLabel'](_0x383e43,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1010b7=this['editor'],_0x38b58b=_0x1010b7['locale'];_0x1010b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6435f9=>{if('formatBlock'!=_0x6435f9['type'])return;const {data:_0x598d9d}=_0x6435f9;return _0x598d9d&&'paragraph'==_0x598d9d['commandName']?{'type':'format','content':St(_0x38b58b,'*Change\x20to:*\x20%0',St(_0x38b58b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x7848c6{['afterInit'](){const _0x471405=this['editor'];_0x471405['commands']['get']('replaceSource')&&_0x471405['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x7848c6{['afterInit'](){const _0x3a168e=this['editor'];_0x3a168e['plugins']['has']('RemoveFormatEditing')&&(_0x3a168e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x353f89=this['editor'];_0x353f89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0c57=>{if('formatBlock'!=_0x3e0c57['type']&&'formatInline'!=_0x3e0c57['type'])return;const {data:_0x39c65d}=_0x3e0c57;return _0x39c65d&&'removeFormat'==_0x39c65d['commandName']?{'type':'format','content':St(_0x353f89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x7848c6{['afterInit'](){const _0xdf9349=this['editor'];if(!_0xdf9349['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56b2c2=_0xdf9349['plugins']['get']('TrackChangesEditing');_0x56b2c2['enableCommand']('goToPreviousRestrictedEditingException'),_0x56b2c2['enableCommand']('goToNextRestrictedEditingException');const _0x8d0811=_0xdf9349['plugins']['get']('RestrictedEditingModeEditing');_0x8d0811['enableCommand']('trackChanges'),_0x8d0811['enableCommand']('acceptSuggestion'),_0x8d0811['enableCommand']('discardSuggestion'),_0x8d0811['enableCommand']('acceptAllSuggestions'),_0x8d0811['enableCommand']('discardAllSuggestions'),_0x8d0811['enableCommand']('acceptSelectedSuggestions'),_0x8d0811['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x7848c6{['afterInit'](){const _0x2edc89=this['editor'];if(!_0x2edc89['plugins']['has']('ShiftEnter'))return;const _0x5d4c95=_0x2edc89['plugins']['get']('TrackChangesEditing');_0x5d4c95['enableCommand']('shiftEnter'),_0x5d4c95['descriptionFactory']['registerElementLabel']('softBreak',_0x225593=>St(_0x2edc89['locale'],'ELEMENT_LINE_BREAK',_0x225593));}};function we(_0x3b9f46,_0x3627c9,_0x473d52){const _0x25b110=[];for(const _0x5f1ffe of _0x3627c9['getItems']())_0x5f1ffe['hasAttribute'](_0x3b9f46)&&_0x25b110['push'](_0x473d52['createRangeOn'](_0x5f1ffe));return _0x25b110;}var Fe=class extends _0x7848c6{['afterInit'](){const _0x540384=this['editor'],_0x61d52c=_0x540384['plugins']['get']('TrackChangesEditing');_0x540384['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x61d52c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x4900b9=this['editor'],_0x575a24=_0x4900b9['model'],_0x533f75=_0x4900b9['locale'],_0x599b56=_0x4900b9['plugins']['get']('TrackChangesEditing'),_0x395306='restrictedEditingException',_0x30f07d=_0x4900b9['commands']['get'](_0x395306);_0x599b56['enableCommand'](_0x395306,(_0x278e4f,_0x5d31a6={})=>{const _0x2f4b3e=_0x575a24['document']['selection'];if(_0x2f4b3e['isCollapsed'])return void _0x278e4f(_0x5d31a6);const _0x56fcb6=void 0x0!==_0x5d31a6['forceValue']?_0x5d31a6['forceValue']:!_0x30f07d['value'];_0x575a24['change'](()=>{const _0x2e3146=Array['from'](_0x2f4b3e['getRanges']());for(const _0x27ef80 of _0x2e3146){const _0x12592c=_0x56fcb6?[_0x27ef80]:we(_0x395306,_0x27ef80,_0x575a24);for(const _0x2a12b3 of _0x12592c)_0x599b56['markInlineFormat'](_0x2a12b3,{'commandName':_0x395306,'commandParams':[{'forceValue':_0x56fcb6}]});}});}),_0x599b56['descriptionFactory']['registerDescriptionCallback'](_0x165ccb=>{if('formatBlock'!=_0x165ccb['type']&&'formatInline'!=_0x165ccb['type'])return;const {data:_0x1ca2b3}=_0x165ccb;return _0x1ca2b3&&_0x1ca2b3['commandName']==_0x395306?_0x1ca2b3['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x533f75,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x533f75,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x12555d=this['editor'],_0x795a99=_0x12555d['locale'],_0x1039d8=_0x12555d['plugins']['get']('TrackChangesEditing'),_0x3fc608='restrictedEditingExceptionBlock',_0x8db9d=this['editor']['commands']['get'](_0x3fc608);_0x1039d8['enableCommand'](_0x3fc608,(_0x2284ae,_0xd45841={})=>{const _0x4709bf=this['editor']['model']['document']['selection'],_0x16325c=_0xd45841&&void 0x0!==_0xd45841['forceValue']?_0xd45841['forceValue']:!_0x8db9d['value'];let _0x1e381b=[];_0x1e381b=At(_0x16325c?Array['from'](_0x4709bf['getSelectedBlocks']())['filter'](_0x217960=>function(_0x1f3e7b){return!!_0x1f3e7b['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x217960)||function(_0xbfb85c,_0x35262f){const _0x228545=_0x35262f['createContext'](_0xbfb85c['parent']);return!!_0x35262f['checkChild'](_0x228545,'restrictedEditingException')&&!!_0x35262f['checkChild'](_0x228545['push']('restrictedEditingException'),_0xbfb85c);}(_0x217960,this['editor']['model']['schema'])):Array['from'](_0x4709bf['getSelectedBlocks']())['map'](_0x1f3a53=>function(_0x5a50d3){let _0x6c2faf=_0x5a50d3;for(;_0x6c2faf['parent'];){if('restrictedEditingException'==_0x6c2faf['parent']['name'])return _0x6c2faf;_0x6c2faf=_0x6c2faf['parent'];}return null;}(_0x1f3a53))['filter'](_0x4e1ccd=>!!_0x4e1ccd),_0x12555d['model']),_0x12555d['model']['change'](()=>{for(const _0x4b82e3 of _0x1e381b)_0x1039d8['markBlockFormat'](_0x4b82e3,{'commandName':_0x3fc608,'commandParams':[{'forceValue':_0x16325c}]});});}),_0x1039d8['descriptionFactory']['registerDescriptionCallback'](_0x314064=>{const {data:_0x3efd5b}=_0x314064;if(_0x3efd5b&&_0x3efd5b['commandName']==_0x3fc608)return _0x3efd5b['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x795a99,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x795a99,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x7848c6{['afterInit'](){const _0x4e6a5e=this['editor'];_0x4e6a5e['plugins']['has']('Style')&&_0x4e6a5e['plugins']['has']('DataSchema')&&(_0x4e6a5e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x460071=this['editor'],_0x51633f=_0x460071['locale'];_0x460071['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49c8cf=>{if('formatBlock'!=_0x49c8cf['type']&&'formatInline'!=_0x49c8cf['type'])return;const {data:_0x10ead9}=_0x49c8cf;return _0x10ead9&&'style'===_0x10ead9['commandName']?_0x10ead9['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x51633f,'*Set\x20format:*\x20%0',_0x10ead9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x51633f,'*Remove\x20format:*\x20%0',_0x10ead9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x7848c6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ca587){super(_0x1ca587),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x254644=this['editor'],_0x275e49=_0x254644['model']['document']['selection'];if(!_0x254644['plugins']['has']('TableEditing'))return;const _0x3bf7c7=_0x254644['locale'],_0x8692cd=_0x254644['plugins']['get']('TrackChangesEditing'),_0x1629ef=_0x254644['plugins']['get']('TableUtils');_0x8692cd['descriptionFactory']['registerElementLabel']('table',_0x2b086a=>St(_0x3bf7c7,'ELEMENT_TABLE',_0x2b086a)),this['_setupColumnsRowsFixing'](),_0x8692cd['enableCommand']('insertTable'),_0x8692cd['enableCommand']('selectTableRow'),_0x8692cd['enableCommand']('selectTableColumn');for(const _0x28405a of['insertTableRowAbove','insertTableRowBelow']){const _0x5caecf=_0x254644['commands']['get'](_0x28405a);_0x8692cd['enableCommand'](_0x28405a,_0x4bf16a=>{_0x254644['model']['change'](_0x5a2b4f=>{_0x4bf16a();const _0x49b1f1='above'===_0x5caecf['order'],_0xea4869=_0x1629ef['getSelectionAffectedTableCells'](_0x275e49),_0x11a2c7=_0x1629ef['getRowIndexes'](_0xea4869),_0x623a0d=_0x49b1f1?_0x11a2c7['first']-0x1:_0x11a2c7['last']+0x1,_0x7421b5=_0xea4869[0x0]['findAncestor']('table'),_0x208ca6=_0x1629ef['createTableWalker'](_0x7421b5,{'startRow':_0x623a0d,'endRow':_0x623a0d}),_0x38a392=Array['from'](_0x208ca6)['map'](_0x5250e9=>_0x5a2b4f['createRangeOn'](_0x5250e9['cell']));_0x8692cd['markMultiRangeInsertion'](_0x38a392,'tableRow');});});}for(const _0x39b8cb of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c3b95=_0x254644['commands']['get'](_0x39b8cb);_0x8692cd['enableCommand'](_0x39b8cb,_0x5f0162=>{_0x254644['model']['change'](_0x21cd8c=>{_0x5f0162();const _0x2f250d='left'===_0x3c3b95['order'],_0x283fc2=_0x1629ef['getSelectionAffectedTableCells'](_0x275e49),_0x7986d9=_0x1629ef['getColumnIndexes'](_0x283fc2),_0x56ff1c=_0x2f250d?_0x7986d9['first']-0x1:_0x7986d9['last']+0x1,_0x436a88=_0x283fc2[0x0]['findAncestor']('table'),_0x3b1e77=_0x1629ef['createTableWalker'](_0x436a88,{'startRow':0x0,'column':_0x56ff1c,'includeAllSlots':!0x1}),_0x2b137f=Array['from'](_0x3b1e77)['map'](_0x4fb8cc=>_0x21cd8c['createRangeOn'](_0x4fb8cc['cell']));_0x8692cd['markMultiRangeInsertion'](_0x2b137f,'tableColumn');});});}for(const _0x372087 of['removeTableRow','removeTableColumn']){const _0x1e16ae=_0x372087['substr'](0xb),_0x3fdd70=_0x1e16ae['toLowerCase'](),_0x419039=_0x3fdd70['substr'](0x0,0x3)+'span',_0x40da1a='table'+_0x1e16ae,_0x1e98c8='min'+_0x1e16ae,_0x3e43f1='max'+_0x1e16ae;_0x8692cd['enableCommand'](_0x372087,()=>{_0x254644['model']['change'](_0x5b3937=>{const _0x4f861a=_0x1629ef['getSelectionAffectedTableCells'](_0x275e49),_0x1f5fcf=_0x4f861a[0x0]['findAncestor']('table');let _0x50394a;if('removeTableRow'==_0x372087){const _0xb0c916=_0x1629ef['getRowIndexes'](_0x4f861a);_0x50394a={'startRow':_0xb0c916['first'],'endRow':_0xb0c916['last'],'includeAllSlots':!0x0};}else{const _0x347a93=_0x1629ef['getColumnIndexes'](_0x4f861a);_0x50394a={'startColumn':_0x347a93['first'],'endColumn':_0x347a93['last'],'includeAllSlots':!0x0};}const _0x3f58b0=_0x1629ef['createTableWalker'](_0x1f5fcf,_0x50394a),_0x2aadd7=Array['from'](_0x3f58b0)['map'](({cell:_0x237014})=>_0x237014),_0x3e96eb=De(_0x2aadd7['filter'](_0xec5bbb=>_0xec5bbb['hasAttribute'](_0x419039))),_0x429e22=De(_0x2aadd7['filter'](_0x11f669=>!_0x11f669['hasAttribute'](_0x419039)))['map'](_0x5a349e=>_0x5b3937['createRangeOn'](_0x5a349e)),_0x3d5049=_0x8692cd['markMultiRangeDeletion'](_0x429e22,_0x40da1a);if(_0x3d5049&&('tableRow'==_0x3d5049['subType']||'tableColumn'==_0x3d5049['subType'])){const _0x57ebb1=this['_getSuggestionCoords'](_0x3d5049);for(const _0x5c2e05 of _0x3e96eb){const _0x108b8c=_0x5b3937['createRangeOn'](_0x5c2e05),_0x50cb77=_0x1629ef['getCellLocation'](_0x5c2e05),_0x3aa024=_0x5c2e05['getAttribute'](_0x419039)-0x1,_0x3815f5=_0x57ebb1[_0x1e98c8],_0x275181=_0x57ebb1[_0x3e43f1];_0x3815f5<=_0x50cb77[_0x3fdd70]&&_0x50cb77[_0x3fdd70]+_0x3aa024<=_0x275181&&_0x3d5049['addRange'](_0x108b8c);}}});});}function _0x9781b8(_0x2a5662){const _0x537ca8=Array['from'](_0x275e49['getRanges']())['map'](_0x4c60f6=>rt['fromRange'](_0x4c60f6));_0x254644['model']['change'](_0x11e41d=>{const _0x1b50d7=_0x11e41d['batch'];_0x2a5662=_0x2a5662['filter'](_0x1fbaa4=>'$graveyard'!=_0x1fbaa4['root']['rootName']),_0x11e41d['setSelection'](_0x2a5662),_0x254644['commands']['get']('removeTableRow')['refresh'](),_0x254644['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x254644['model']['enqueueChange'](()=>{_0x254644['model']['enqueueChange'](_0x1b50d7,_0x50ec7b=>{const _0x23b4d1=_0x537ca8['filter'](_0x4bb09b=>'$graveyard'!=_0x4bb09b['root']['rootName']);_0x23b4d1['length']>0x0&&_0x50ec7b['setSelection'](_0x23b4d1);for(const _0xfdf4ab of _0x537ca8)_0xfdf4ab['detach']();});});});}function _0x208989(_0x2a19a8){_0x254644['model']['change'](_0x3537c3=>{const _0x4e39ea=Array['from'](_0x275e49['getRanges']())['map'](_0x39aa4e=>rt['fromRange'](_0x39aa4e)),_0x1398be=[];for(const _0x493f1f of _0x2a19a8)for(const _0x4c1694 of _0x493f1f['getItems']({'shallow':!0x0}))_0x1398be['push'](_0x4c1694);for(const _0x32993d of _0x1398be)'$graveyard'!=_0x32993d['root']['rootName']&&(_0x3537c3['setSelection'](_0x3537c3['createPositionAt'](_0x32993d,0x0)),_0x254644['commands']['get']('removeTableColumn')['refresh'](),_0x254644['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5fed7e=_0x4e39ea['filter'](_0x16e20c=>'$graveyard'!=_0x16e20c['root']['rootName']);_0x5fed7e['length']>0x0&&_0x3537c3['setSelection'](_0x5fed7e);for(const _0x330e18 of _0x4e39ea)_0x330e18['detach']();});}function _0x19e14c(_0x2b4dfd,_0x3b9a99){return _0x3b9a99['every'](_0x22436f=>_0x2b4dfd['some'](_0x50c750=>_0x50c750['end']['isEqual'](_0x22436f['start'])||_0x22436f['end']['isEqual'](_0x50c750['start'])));}function _0x4b5d76(_0x505977,_0x5eed43){return!_0x505977['some'](_0x56a59d=>_0x5eed43['some'](_0x487a96=>_0x56a59d['isIntersecting'](_0x487a96)))&&_0x505977['some'](_0x12f066=>_0x5eed43['some'](_0x45342e=>_0x12f066['end']['isTouching'](_0x45342e['start'])));}_0x8692cd['descriptionFactory']['registerDescriptionCallback'](_0x3d564f=>{if('insertion'!=_0x3d564f['type']&&'deletion'!=_0x3d564f['type'])return;const _0x1a8959=_0x3d564f['getContainedElement']();if(null!=_0x1a8959&&_0x1a8959['is']('element','table')){if('insertion'==_0x3d564f['type']){const _0x2499e8=_0x3d564f['getItems']()['filter'](_0x58cdfe=>_0x58cdfe['is']('$textProxy'))['map'](_0x4278b0=>_0x4278b0['data']);if(_0x2499e8['length'])return{'type':'insertion','content':St(_0x3bf7c7,'*Insert:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2499e8['join']('\x20')+'\x22'))};}if('deletion'==_0x3d564f['type']){const _0x5df63=_0x3d564f['getItems']()['filter'](_0x174422=>_0x174422['is']('$textProxy'))['map'](_0x501f94=>_0x501f94['data']);if(_0x5df63['length'])return{'type':'deletion','content':St(_0x3bf7c7,'*Remove:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5df63['join']('\x20')+'\x22'))};}}}),_0x8692cd['descriptionFactory']['registerDescriptionCallback'](_0x4fa8aa=>{if('tableRow'==_0x4fa8aa['subType']){const _0x489976=_0x4fa8aa['getItems']()['filter'](_0x41b60d=>_0x41b60d['is']('$textProxy'))['map'](_0x5418ee=>_0x5418ee['data']),_0x2bdf27=this['_getSuggestionCoords'](_0x4fa8aa),_0x313815=_0x2bdf27['maxRow']-_0x2bdf27['minRow']+0x1;if('insertion'==_0x4fa8aa['type'])return _0x489976['length']?{'type':'insertion','content':St(_0x3bf7c7,'*Insert:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x313815,'\x22'+_0x489976['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x3bf7c7,'*Insert:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_ROW',_0x313815))};if('deletion'==_0x4fa8aa['type'])return _0x489976['length']?{'type':'deletion','content':St(_0x3bf7c7,'*Remove:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x313815,'\x22'+_0x489976['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x3bf7c7,'*Remove:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_ROW',_0x313815))};}if('tableColumn'==_0x4fa8aa['subType']){const _0x20ed2f=_0x4fa8aa['getItems']()['filter'](_0x3099df=>_0x3099df['is']('$textProxy'))['map'](_0x4cefdf=>_0x4cefdf['data']),_0x3db33f=this['_getSuggestionCoords'](_0x4fa8aa),_0x592d2d=_0x3db33f['maxColumn']-_0x3db33f['minColumn']+0x1;if('insertion'==_0x4fa8aa['type'])return _0x20ed2f['length']?{'type':'insertion','content':St(_0x3bf7c7,'*Insert:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x592d2d,'\x22'+_0x20ed2f['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x3bf7c7,'*Insert:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_COLUMN',_0x592d2d))};if('deletion'==_0x4fa8aa['type'])return _0x20ed2f['length']?{'type':'deletion','content':St(_0x3bf7c7,'*Remove:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x592d2d,'\x22'+_0x20ed2f['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x3bf7c7,'*Remove:*\x20%0',St(_0x3bf7c7,'ELEMENT_TABLE_COLUMN',_0x592d2d))};}}),_0x8692cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9781b8),_0x8692cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9781b8),_0x8692cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x208989),_0x8692cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x208989),_0x8692cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x19e14c),_0x8692cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x19e14c),_0x8692cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b5d76),_0x8692cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b5d76);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3e9134=this['editor'],_0x18d362=_0x3e9134['model']['document']['selection'];return(_0x5640c4,_0xfbf80f)=>{_0x3e9134['model']['change'](_0x3234d9=>{const {commandName:_0x51d096,commandParams:_0x16a1de}=_0xfbf80f;let _0x529454=_0x5640c4[0x0]['end']['nodeBefore'];_0x16a1de&&_0x16a1de[0x0]&&!0x1===_0x16a1de[0x0]['forceValue']&&(_0x529454=_0x5640c4[0x0]['start']['nodeAfter']);const _0x4ae424=_0x3234d9['createRangeIn'](_0x529454);if('$graveyard'==_0x4ae424['root']['rootName'])return;const _0x538fcd=Array['from'](_0x18d362['getRanges']())['map'](_0x3469b0=>rt['fromRange'](_0x3469b0));_0x3234d9['setSelection'](_0x4ae424),_0x3e9134['commands']['get'](_0x51d096)['refresh'](),_0x16a1de['push']({'forceDefaultExecution':!0x0}),_0x3e9134['execute'](_0x51d096,..._0x16a1de);const _0x40c77b=_0x538fcd['filter'](_0x23a84d=>'$graveyard'!=_0x23a84d['root']['rootName']);_0x40c77b['length']>0x0&&_0x3234d9['setSelection'](_0x40c77b);for(const _0x2afff7 of _0x538fcd)_0x2afff7['detach']();});};}['_getCoordsForCells'](_0x422da4){const _0x3543bc=this['editor']['plugins']['get']('TableUtils');let _0x4aef0c=Number['MAX_SAFE_INTEGER'],_0x3ad8e0=Number['MIN_SAFE_INTEGER'],_0x2027a8=Number['MAX_SAFE_INTEGER'],_0x36554b=Number['MIN_SAFE_INTEGER'];for(const _0x242242 of _0x422da4){if('$graveyard'==_0x242242['root']['rootName'])continue;const {row:_0x230073,column:_0x1bed55}=_0x3543bc['getCellLocation'](_0x242242),_0x5fbce7=_0x242242['hasAttribute']('rowspan')?_0x242242['getAttribute']('rowspan')-0x1:0x0,_0x1a0192=_0x242242['hasAttribute']('colspan')?_0x242242['getAttribute']('colspan')-0x1:0x0;_0x4aef0c=_0x230073<_0x4aef0c?_0x230073:_0x4aef0c,_0x3ad8e0=_0x230073+_0x5fbce7>_0x3ad8e0?_0x230073+_0x5fbce7:_0x3ad8e0,_0x2027a8=_0x1bed55<_0x2027a8?_0x1bed55:_0x2027a8,_0x36554b=_0x1bed55+_0x1a0192>_0x36554b?_0x1bed55+_0x1a0192:_0x36554b;}return{'minRow':_0x4aef0c,'maxRow':_0x3ad8e0,'minColumn':_0x2027a8,'maxColumn':_0x36554b};}['_setupColumnsRowsFixing'](){const _0x44d29c=this['editor'],_0x395629=_0x44d29c['plugins']['get']('TrackChangesEditing'),_0x4d9c07=_0x44d29c['plugins']['get']('TableUtils');_0x44d29c['model']['document']['on']('change:data',()=>{const _0x31c4f6=Array['from'](_0x44d29c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4dac7b,data:_0x332b00}of _0x31c4f6){const {group:_0x175bfb,id:_0x323e3e,subType:_0x1e85fd}=tt(_0x4dac7b);if('suggestion'!=_0x175bfb)continue;if(null!=_0x332b00['oldRange'])continue;const _0x42dea5=_0x395629['getSuggestion'](_0x323e3e);this['_tablePostFixingSubtypes']['includes'](_0x1e85fd)&&this['_tableSuggestions']['add'](_0x42dea5);}},{'priority':'low'});const _0x46605c=(_0x4e6b52,_0x5f4522)=>{let _0x4a6da5=!0x1;const _0x141ae9=_0x5f4522['createRangeOn'](_0x4e6b52),_0x8dd731=_0x4e6b52['findAncestor']('table'),_0x23678b=_0x4d9c07['getCellLocation'](_0x4e6b52);for(const _0x1f644e of this['_tableSuggestions']){const _0x46ebff=_0x1f644e['subType'],_0x1d86b2=_0x46ebff['startsWith']('tablePaste'),_0x4208e7=_0x46ebff['substr'](_0x1d86b2?0xa:0x5),_0x1696b4=_0x4208e7['toLowerCase'](),_0x462fdd=_0x1696b4['substr'](0x0,0x3)+'span',_0x3128fe='min'+_0x4208e7,_0x1a90cb='max'+_0x4208e7;if(!_0x1f644e['isInContent'])continue;if(_0x8dd731!=_0x1f644e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1f644e['isIntersectingWithRange'](_0x141ae9))continue;const _0x2f24c9=_0x4e6b52['hasAttribute'](_0x462fdd)?_0x4e6b52['getAttribute'](_0x462fdd)-0x1:0x0,_0x275bca=this['_getSuggestionCoords'](_0x1f644e),_0x48350e=_0x275bca[_0x3128fe],_0xee5516=_0x275bca[_0x1a90cb];_0x48350e<=_0x23678b[_0x1696b4]&&_0x23678b[_0x1696b4]+_0x2f24c9<=_0xee5516&&(_0x1f644e['addRange'](_0x141ae9),_0x4a6da5=!0x0);}return _0x4a6da5;};_0x44d29c['model']['document']['registerPostFixer'](_0x30f752=>{let _0x410990=!0x1;for(const _0x3d7bec of _0x44d29c['model']['document']['differ']['getChanges']())if('insert'==_0x3d7bec['type']){if('tableRow'==_0x3d7bec['name']){for(const _0x5e3bd1 of _0x3d7bec['position']['nodeAfter']['getChildren']())_0x410990=_0x410990||_0x46605c(_0x5e3bd1,_0x30f752);}else'tableCell'==_0x3d7bec['name']&&(_0x410990=_0x410990||_0x46605c(_0x3d7bec['position']['nodeAfter'],_0x30f752));}return _0x410990;});}['_getSuggestionCoords'](_0x312fd4){return this['_getCoordsForCells'](_0x312fd4['getRanges']()['map'](_0x18da23=>_0x18da23['start']['nodeAfter']));}};function De(_0xd13e4b){return Array['from'](new Set(_0xd13e4b)['values']());}var Ue=class extends _0x7848c6{static get['requires'](){return[ve];}['afterInit'](){const _0x1e4c1f=this['editor'],_0x28203c=_0x1e4c1f['model']['document']['selection'],_0x45a1c2=_0x1e4c1f['locale'];if(!_0x1e4c1f['plugins']['has']('TableEditing'))return;const _0x221fdf=_0x1e4c1f['plugins']['get']('TrackChangesEditing'),_0x332f67=_0x1e4c1f['plugins']['get']('TableUtils'),_0x19ed2c=_0x1e4c1f['plugins']['get'](ve);_0x19ed2c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x221fdf['enableCommand']('mergeTableCells',()=>{const _0x2a3cbc=_0x332f67['getSelectionAffectedTableCells'](_0x1e4c1f['model']['document']['selection']);_0x1e4c1f['model']['change'](()=>{_0x221fdf['markMultiRangeBlockFormat'](_0x2a3cbc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e4c1f['commands']['get']('mergeTableCells')['on']('execute',(_0x1b204d,_0x91b845)=>{_0x1e4c1f['commands']['get']('trackChanges')['value']&&(_0x91b845['length']>0x0&&_0x91b845[_0x91b845['length']-0x1]&&_0x91b845[_0x91b845['length']-0x1]['forceDefaultExecution']||_0x221fdf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b204d['stop']());},{'priority':'highest'});for(const _0x3b5c15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5686c8=_0x1e4c1f['commands']['get'](_0x3b5c15);_0x221fdf['enableCommand'](_0x3b5c15,()=>{const _0x514006=_0x1e4c1f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x279fa6=>_0x279fa6['is']('element','tableCell')),_0x24cc00=_0x5686c8['value'];_0x1e4c1f['model']['change'](()=>{_0x221fdf['markMultiRangeBlockFormat']([_0x514006,_0x24cc00],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3802e0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x216c4b=_0x1e4c1f['commands']['get'](_0x3802e0);_0x221fdf['enableCommand'](_0x3802e0,()=>{const _0x5d2d0c=_0x332f67['getSelectionAffectedTableCells'](_0x1e4c1f['model']['document']['selection'])[0x0],_0x395be9=_0x5d2d0c['findAncestor']('table'),{column:_0x43eaea,row:_0x449ea2}=_0x332f67['getCellLocation'](_0x5d2d0c);let _0x407f0b=[];if('horizontally'==_0x216c4b['direction']){const _0x980f54=_0x332f67['createTableWalker'](_0x395be9,{'startRow':_0x449ea2,'endRow':_0x449ea2,'includeAllSlots':!0x0});_0x407f0b=Array['from'](_0x980f54)['map'](_0x5a3ffd=>_0x5a3ffd['cell']);}else{const _0xaa1072=_0x332f67['createTableWalker'](_0x395be9,{'column':_0x43eaea,'includeAllSlots':!0x0});_0x407f0b=Array['from'](_0xaa1072)['map'](_0x1eeabb=>_0x1eeabb['cell']);}_0x1e4c1f['model']['change'](_0x2f9b67=>{_0x221fdf['markBlockFormat'](_0x2f9b67['createRangeOn'](_0x5d2d0c),{'commandName':_0x3802e0,'commandParams':[]},_0x407f0b,_0x3802e0);});});}_0x221fdf['descriptionFactory']['registerDescriptionCallback'](_0x4f96bf=>{if('formatBlock'!=_0x4f96bf['type']&&'formatInline'!=_0x4f96bf['type'])return;const {data:_0x1997d2}=_0x4f96bf;return _0x1997d2&&'mergeTableCells'==_0x1997d2['commandName']?{'type':'format','content':St(_0x45a1c2,'*Merge\x20cells*')}:void 0x0;}),_0x221fdf['descriptionFactory']['registerDescriptionCallback'](_0x4224f4=>{if('formatBlock'!=_0x4224f4['type']&&'formatInline'!=_0x4224f4['type'])return;const {data:_0x55d27a}=_0x4224f4;return _0x55d27a?'splitTableCellVertically'==_0x55d27a['commandName']?{'type':'format','content':St(_0x45a1c2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55d27a['commandName']?{'type':'format','content':St(_0x45a1c2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f55c9=_0x19ed2c['_acceptFormatSuggestionCallbackFactory']();for(const _0x845a77 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x221fdf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x845a77,'accept',_0x4f55c9);for(const _0x42dba9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x221fdf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42dba9,'accept',_0x4f55c9);_0x221fdf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e2b5e=>{_0x1e4c1f['model']['change'](_0x3d3723=>{const _0x17dfe2=Array['from'](_0x28203c['getRanges']())['map'](_0x5c6563=>rt['fromRange'](_0x5c6563));_0x3d3723['setSelection'](_0x2e2b5e),_0x1e4c1f['commands']['get']('mergeTableCells')['refresh'](),_0x1e4c1f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32f2ae=_0x17dfe2['filter'](_0x23f672=>'$graveyard'!=_0x23f672['root']['rootName']);_0x32f2ae['length']>0x0&&_0x3d3723['setSelection'](_0x32f2ae);for(const _0x26f93b of _0x17dfe2)_0x26f93b['detach']();});});for(const _0x3e00b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe1825=_0x1e4c1f['commands']['get'](_0x3e00b9);_0xe1825['on']('set:isEnabled',(_0x45ee85,_0x10bc43,_0x1c4257)=>{if(_0x1c4257){const _0x4721f9=_0x1e4c1f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x163ff4=>_0x163ff4['is']('element','tableCell'));this['_areMergableCells'](_0xe1825['value'],_0x4721f9)||(_0x45ee85['return']=!0x1,_0x45ee85['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5c9b47=this['editor']['commands']['get']('mergeTableCells'),_0x209459=this['editor']['plugins']['get']('TableUtils');if(!_0x5c9b47['isEnabled'])return!0x1;const _0x106d3b=_0x209459['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x243e9f of _0x106d3b)for(const _0x2aea63 of _0x106d3b)if(_0x243e9f!=_0x2aea63&&!this['_areMergableCells'](_0x243e9f,_0x2aea63))return!0x1;return!0x0;}['_areMergableCells'](_0x18c55c,_0xd01516){const _0x226e17=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbe30b4=this['editor']['model']['createRangeOn'](_0x18c55c),_0x1b6884=this['editor']['model']['createRangeOn'](_0xd01516),_0x24acd2=new Set(),_0x21e412=new Set();for(const _0x2f2867 of _0x226e17['getSuggestions']())if(('insertion'==_0x2f2867['type']||'deletion'==_0x2f2867['type']||'mergeTableCells'==_0x2f2867['subType'])&&_0x2f2867['isInContent']){for(const _0x28576c of _0x2f2867['getRanges']())_0x28576c['containsRange'](_0xbe30b4,!0x0)&&_0x24acd2['add'](_0x2f2867['type']+':'+_0x2f2867['author']['id']),_0x28576c['containsRange'](_0x1b6884,!0x0)&&_0x21e412['add'](_0x2f2867['type']+':'+_0x2f2867['author']['id']);}if(_0x24acd2['size']!=_0x21e412['size'])return!0x1;for(const _0x542e8c of _0x24acd2)if(!_0x21e412['has'](_0x542e8c))return!0x1;return!0x0;}},Pe=class extends _0x7848c6{static get['requires'](){return[ve];}['afterInit'](){const _0x62af42=this['editor'];if(!_0x62af42['plugins']['has']('TableEditing'))return;const _0xafc8b4=_0x62af42['locale'],_0x35888e=_0x62af42['plugins']['get']('TrackChangesEditing');_0x35888e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x35888e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x35888e['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0xafc8b4,'FORMAT_HEADER_ROW')),_0x35888e['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0xafc8b4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4662a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4026cb=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x4662a2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4026cb),_0x4662a2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4026cb),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x332e09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dc3ac=this['editor']['plugins']['get']('TableUtils');function _0x548ffe({showActiveMarker:_0x52dce2=!0x0,setDataAttribute:_0x53c1bd=!0x0}={}){return(_0x4828e9,_0x298277,_0x2c3be3)=>{const {type:_0x98eed,id:_0x1ee571}=tt(_0x298277['markerName']);if(!_0x332e09['hasSuggestion'](_0x1ee571))return;const _0x576809=_0x332e09['getSuggestion'](_0x1ee571),_0x3f88da=_0x576809['data'];if('formatBlock'!=_0x576809['type']||!_0x3f88da||'setTableColumnHeader'!=_0x3f88da['commandName'])return;if(_0x298277['item'])return void _0x4828e9['stop']();if(!_0x2c3be3['consumable']['consume'](_0x298277['markerRange'],_0x4828e9['name']))return;const _0x2315a6=_0x298277['markerRange']['start']['nodeAfter'],_0x5b84d1=_0x298277['markerRange']['end']['nodeBefore'],_0x460890=_0x2315a6['parent']['parent'],{column:_0x5b0703}=_0x5dc3ac['getCellLocation'](_0x2315a6),{column:_0x140dfc}=_0x5dc3ac['getCellLocation'](_0x5b84d1);for(let _0x22e8f5=_0x5b0703;_0x22e8f5<=_0x140dfc;_0x22e8f5++){const _0x37ec96=_0x5dc3ac['createTableWalker'](_0x460890,{'column':_0x22e8f5,'includeAllSlots':!0x1});for(const _0x80817d of _0x37ec96){const _0x338740=_0x80817d['cell'],_0x37bb38=_0x2c3be3['mapper']['toViewElement'](_0x338740);_0x2c3be3['writer']['addClass']('ck-suggestion-marker-'+_0x98eed,_0x37bb38),_0x53c1bd&&_0x2c3be3['writer']['setAttribute']('data-suggestion',_0x1ee571,_0x37bb38),_0x2c3be3['mapper']['bindElementToMarker'](_0x37bb38,_0x298277['markerName']),_0x52dce2&&(_0x332e09['activeMarkers']['includes'](_0x298277['markerName'])?_0x2c3be3['writer']['addClass']('ck-suggestion-marker--active',_0x37bb38):_0x2c3be3['writer']['removeClass']('ck-suggestion-marker--active',_0x37bb38));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x548ffe(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c1570,_0x13e0f5,_0x25b265)=>{_0x25b265['options']['showSuggestionHighlights']&&_0x548ffe({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c1570,_0x13e0f5,_0x25b265);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x173a86,_0x4e695c,_0x3847ce)=>{const {type:_0x231af0,id:_0x2b4458}=tt(_0x4e695c['markerName']);if(!_0x332e09['hasSuggestion'](_0x2b4458))return;const _0x58862b=_0x332e09['getSuggestion'](_0x2b4458),_0x423294=_0x58862b['data'];if('formatBlock'!=_0x58862b['type']||!_0x423294||'setTableColumnHeader'!=_0x423294['commandName'])return;const _0x385c43=_0x3847ce['mapper']['markerNameToElements'](_0x4e695c['markerName']);if(_0x385c43){for(const _0x395ad7 of _0x385c43)_0x3847ce['writer']['removeClass']('ck-suggestion-marker-'+_0x231af0,_0x395ad7),_0x3847ce['writer']['removeClass']('ck-suggestion-marker--active',_0x395ad7),_0x3847ce['writer']['removeAttribute']('data-suggestion',_0x395ad7),_0x3847ce['mapper']['unbindElementFromMarkerName'](_0x395ad7,_0x4e695c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x47bc11=this['editor'],_0x329d00=_0x47bc11['locale'];function _0xd4c2e7(_0x10d9a7){return{'type':'format','content':St(_0x329d00,'*Format:*\x20%0',_0x10d9a7)};}_0x47bc11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f3a0=>{if('formatBlock'!=_0x47f3a0['type'])return;const {data:_0x4e02e0}=_0x47f3a0;return _0x4e02e0?'setTableRowHeader'==_0x4e02e0['commandName']?_0x4e02e0['commandParams'][0x0]['forceValue']?_0xd4c2e7(St(_0x329d00,'FORMAT_HEADER_ROW')):_0xd4c2e7(St(_0x329d00,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4e02e0['commandName']?_0x4e02e0['commandParams'][0x0]['forceValue']?_0xd4c2e7(St(_0x329d00,'FORMAT_HEADER_COLUMN')):_0xd4c2e7(St(_0x329d00,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x7848c6{static get['requires'](){return[ve];}['afterInit'](){const _0x5c2764=this['editor'];if(!_0x5c2764['plugins']['has']('TableEditing')||!_0x5c2764['config']['get']('table.enableFooters'))return;const _0x1e5227=_0x5c2764['locale'],_0x250905=_0x5c2764['plugins']['get']('TrackChangesEditing');_0x250905['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x250905['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x1e5227,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x7848c6{['afterInit'](){const _0x41be4f=this['editor'],_0x3a8df4=_0x41be4f['locale'],_0x43f7d7=_0x41be4f['plugins']['get']('TrackChangesEditing');function _0x553f1f(_0x23e950){return{'type':'format','content':''+St(_0x3a8df4,'*Set\x20table\x20type:*\x20%0',_0x23e950)};}_0x41be4f['plugins']['has']('TableLayout')&&(_0x43f7d7['enableCommand']('insertTableLayout'),_0x43f7d7['enableDefaultAttributesIntegration']('tableType'),_0x43f7d7['descriptionFactory']['registerElementLabel'](_0x20d25b=>_0x20d25b['is']('element','table')&&'layout'===_0x20d25b['getAttribute']('tableType'),_0x2683f7=>St(_0x3a8df4,'ELEMENT_LAYOUT_TABLE',_0x2683f7)),_0x43f7d7['descriptionFactory']['registerDescriptionCallback'](_0x4e2370=>{const {data:_0x4e99de}=_0x4e2370;if(_0x4e99de&&'tableType'==_0x4e99de['key'])switch(_0x4e99de['newValue']){case'layout':return _0x553f1f(St(_0x3a8df4,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x553f1f(St(_0x3a8df4,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](He['map'](_0x25fb1b=>[_0x25fb1b,null]));var Ve=class extends _0x7848c6{static get['requires'](){return[ve];}['afterInit'](){const _0x517695=this['editor'];if(!_0x517695['plugins']['has']('TableClipboard'))return;const _0x297c22=_0x517695['plugins']['get']('TrackChangesEditing'),_0x51fd4a=_0x517695['plugins']['get']('TableUtils'),_0x4ec93e=_0x517695['plugins']['get'](ve),_0x3814cf=_0x517695['plugins']['get']('TableClipboard'),_0x27fc0b=_0x517695['plugins']['get']('TableSelection'),_0x19dbc4=_0x517695['plugins']['get'](mt);_0x4ec93e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x517695['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x517695['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x367ccd=null,_0x6e939d=!0x1;_0x19dbc4['on']('contentInsertion',(_0x46c762,_0x2e9fcd)=>{_0x6e939d='paste'===_0x2e9fcd['method'];}),_0x517695['model']['on']('insertContent',(_0x4eb440,_0x44ca8b)=>{if(!_0x6e939d&&null===_0x27fc0b['getSelectedTableCells']())return;const [_0x2645c0,_0x454af1]=_0x44ca8b,_0x270d1e=_0x44ca8b[_0x44ca8b['length']-0x1];_0x270d1e&&_0x270d1e['forceDefaultExecution']||_0x297c22['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x64dcb8,_0x3c1135,_0x356332,_0x1880f5,_0x5b3136){if(_0x3c1135&&!_0x3c1135['is']('documentSelection'))return!0x1;const _0x487cbc=_0x5b3136['getTableIfOnlyTableInContent'](_0x64dcb8,_0x356332);if(!_0x487cbc||!je(_0x487cbc,void 0x0,_0x1880f5))return!0x1;const _0x4542a6=_0x1880f5['getSelectionAffectedTableCells'](_0x356332['document']['selection']);if(!_0x4542a6['length'])return!0x1;const _0x4e7938=_0x4542a6[0x0]['findAncestor']('table'),_0x3e17f2=_0x1880f5['getRowIndexes'](_0x4542a6),_0x8842c8=_0x1880f5['getColumnIndexes'](_0x4542a6),_0x1f3319={'startRow':_0x3e17f2['first'],'endRow':_0x3e17f2['last'],'startColumn':_0x8842c8['first'],'endColumn':_0x8842c8['last']};return 0x1==_0x4542a6['length']&&(_0x1f3319['endRow']+=_0x1880f5['getRows'](_0x487cbc)-0x1,_0x1f3319['endColumn']+=_0x1880f5['getColumns'](_0x487cbc)-0x1),je(_0x4e7938,_0x1f3319,_0x1880f5);}(_0x2645c0,_0x454af1,_0x517695['model'],_0x51fd4a,_0x3814cf)&&(_0x4eb440['stop'](),_0x367ccd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x517695['model']['change'](()=>{_0x517695['model']['insertContent'](_0x44ca8b[0x0],_0x44ca8b[0x1],_0x44ca8b[0x2],{'forceDefaultExecution':!0x0});const _0x5136bf=_0x36f764(),{rowInsertionRanges:_0xb6a82f,columnInsertionRanges:_0x538330,insertionRanges:_0x20af51,deletionRanges:_0x1b86ca,cells:_0x37e027}=_0x367ccd;_0xb6a82f['length']&&_0x297c22['markMultiRangeInsertion'](_0xb6a82f,'tablePasteRow',{'tablePasteChainId':_0x5136bf}),_0x538330['length']&&_0x297c22['markMultiRangeInsertion'](_0x538330,'tablePasteColumn',{'tablePasteChainId':_0x5136bf}),_0x20af51['length']&&(_0x297c22['markMultiRangeInsertion'](_0x20af51,'tablePaste',{'tablePasteChainId':_0x5136bf,'skipNestingCheck':!0x0}),_0x20af51['forEach'](_0x206e61=>_0x206e61['detach']?.())),_0x1b86ca['length']&&(_0x297c22['markMultiRangeDeletion'](_0x1b86ca,'tablePaste',{'tablePasteChainId':_0x5136bf,'skipNestingCheck':!0x0}),_0x1b86ca['forEach'](_0x4b5a5d=>_0x4b5a5d['detach']?.()));const _0x469345=_0x297c22['markMultiRangeBlockFormat'](_0x37e027['map'](({element:_0xa65672})=>_0xa65672),{'formatGroupId':_0x36f764()},[],'tablePasteCell',{'tablePasteChainId':_0x5136bf});if(_0x469345){const _0x22dbe1=_0x469345['getMarkers'](),_0xfd321c=[];for(const {element:_0x10fdd4,attributes:_0x6ecf15}of _0x37e027){if(!_0x6ecf15)continue;const _0x3aaf41=_0x517695['model']['createRangeOn'](_0x10fdd4),_0x19485c=_0x22dbe1['find'](_0x436fd9=>_0x436fd9['getRange']()['isEqual'](_0x3aaf41));_0x19485c&&_0xfd321c['push']([_0x19485c['name'],_0x6ecf15]);}_0xfd321c['length']&&_0x469345['setAttribute']('markerAttributes',Object['fromEntries'](_0xfd321c));}_0x367ccd=null;}));},{'priority':_0x4b9664['high']+0xa}),_0x19dbc4['on']('contentInsertion',()=>{_0x6e939d=!0x1;},{'priority':'lowest'}),_0x517695['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x57db10,_0x2aa575)=>{const [_0x1023ef,_0x26be2a,,_0xbbf282]=_0x2aa575;if(!_0x367ccd)return;_0x57db10['stop']();const _0x332063=_0x1023ef['cell'],_0xdf1a34=_0x26be2a,_0x4a476d=We(_0x332063),_0x5a431c=We(_0xdf1a34);_0x57db10['return']=_0x332063;let _0x121844=null,_0x1e01ab=null;if(_0x5a431c||_0x4a476d){if(_0x4a476d&&!_0x5a431c){_0xbbf282['remove'](_0x332063['getChild'](0x0));for(const _0x4da46f of Array['from'](_0xdf1a34['getChildren']()))_0xbbf282['insert'](_0x4da46f,_0x332063,'end');const _0x277948=_0x367ccd['rowInsertionIndexes']['includes'](_0x1023ef['row']),_0x309d59=_0x367ccd['columnInsertionIndexes']['includes'](_0x1023ef['column']);_0x277948||_0x309d59||(_0x121844=rt['fromRange'](_0xbbf282['createRangeIn'](_0x332063)));}else _0x5a431c&&!_0x4a476d&&(_0x1e01ab=_0xbbf282['createRangeIn'](_0x332063));}else{const _0xc43449=_0xbbf282['createElement']('tableCellSuggestion'),_0x332623=_0xbbf282['createElement']('tableCellSuggestion');_0xbbf282['wrap'](_0xbbf282['createRangeIn'](_0x332063),_0x332623),_0xbbf282['insert'](_0xc43449,_0x332063,0x0);for(const _0x575d01 of Array['from'](_0xdf1a34['getChildren']()))_0xbbf282['insert'](_0x575d01,_0xc43449,'end');_0x121844=rt['fromRange'](_0xbbf282['createRangeOn'](_0xc43449)),_0x1e01ab=rt['fromRange'](_0xbbf282['createRangeOn'](_0x332623));}const _0x4dbe0a=Array['from'](_0xdf1a34['getAttributes']())['filter'](([_0x2093bf])=>He['includes'](_0x2093bf));_0x367ccd['cells']['push']({'element':_0x332063,'attributes':_0x4dbe0a['length']?Object['fromEntries'](_0x4dbe0a):null}),_0x121844&&_0x367ccd['insertionRanges']['push'](_0x121844),_0x1e01ab&&_0x367ccd['deletionRanges']['push'](_0x1e01ab);},{'priority':'high'}),_0x51fd4a['on']('insertColumns',(_0x2d5c46,_0x14aa5e)=>{const [_0x741ee0,_0x390aed={}]=_0x14aa5e;if(!_0x367ccd)return;const _0x4d2179=_0x390aed['at']||0x0,_0x335252=_0x390aed['columns']||0x1;_0x367ccd['columnInsertionIndexes']=new Array(_0x335252)['fill'](_0x4d2179)['map']((_0x1f065d,_0x5d5934)=>_0x1f065d+_0x5d5934);for(const {cell:_0x2664ad}of _0x51fd4a['createTableWalker'](_0x741ee0,{'startColumn':_0x4d2179,'endColumn':_0x4d2179+_0x335252-0x1}))_0x367ccd['columnInsertionRanges']['push'](_0x517695['model']['createRangeOn'](_0x2664ad));},{'priority':'low'}),_0x51fd4a['on']('insertRows',(_0x35841,_0x55ff96)=>{const [_0x3b856b,_0x298be2={}]=_0x55ff96;if(!_0x367ccd)return;const _0x2b0d08=_0x298be2['at']||0x0,_0x20384c=_0x298be2['rows']||0x1;_0x367ccd['rowInsertionIndexes']=new Array(_0x20384c)['fill'](_0x2b0d08)['map']((_0x10340a,_0x555e4a)=>_0x10340a+_0x555e4a);for(const {cell:_0x299bf0}of _0x51fd4a['createTableWalker'](_0x3b856b,{'startRow':_0x2b0d08,'endRow':_0x2b0d08+_0x20384c-0x1}))_0x367ccd['rowInsertionRanges']['push'](_0x517695['model']['createRangeOn'](_0x299bf0));},{'priority':'low'}),_0x297c22['descriptionFactory']['registerDescriptionCallback'](_0x57ec8a=>{if(_0x57ec8a['subType']&&_0x57ec8a['subType']['startsWith']('tablePaste'))return _0x57ec8a['previous']?{}:{'type':'insertion','content':St(_0x517695['locale'],'*Replace\x20table\x20cells*')};});const _0x327cbd=()=>!0x1;for(const _0x21ac63 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x297c22['_suggestionFactory']['registerCustomCallback']('insertion',_0x21ac63,'join',_0x327cbd),_0x297c22['_suggestionFactory']['registerCustomCallback']('deletion',_0x21ac63,'join',_0x327cbd),_0x297c22['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21ac63,'join',_0x327cbd);_0x297c22['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x327cbd),_0x297c22['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x31cc98,_0x50e7d5,_0x5e1a04)=>{const _0x5dfc8a=_0x31cc98['map'](_0x5c7a59=>_0x5c7a59['getContainedElement']())['filter'](_0x6fda15=>_0x6fda15),_0x2a0edd=new Map(_0x5dfc8a['map'](_0x3dd717=>[_0x3dd717,null]));if(_0x367ccd){for(const {element:_0x4ab1d3,attributes:_0x3f81ce}of _0x367ccd['cells'])_0x3f81ce&&_0x2a0edd['set'](_0x4ab1d3,_0x3f81ce);}else{if(_0x5e1a04&&_0x5e1a04['markerAttributes'])for(const [_0x2b3666,_0x214404]of Object['entries'](_0x5e1a04['markerAttributes'])){const _0x281545=_0x517695['model']['markers']['get'](_0x2b3666),_0x5c1669=_0x281545?_0x281545['getRange']()['getContainedElement']():null;_0x5c1669&&_0x2a0edd['set'](_0x5c1669,_0x214404);}}_0x517695['model']['change'](_0x2b8db7=>{for(const [_0x568801,_0x11180c]of _0x2a0edd)_0x2b8db7['setAttributes']({...$e,..._0x11180c},_0x568801);});});const _0x390aa3=(_0x4b9f9c,_0x29000e)=>{_0x297c22['_suggestionFactory']['registerCustomCallback'](_0x4b9f9c,'tablePaste',_0x29000e,(_0x1f961e,_0x55c16b,_0x5000eb)=>{_0x517695['model']['change'](_0x1bd213=>{const _0x1b4400=[];for(const _0x47a036 of _0x1f961e){const _0x5c2ac7=_0x47a036['start']['nodeAfter'];_0x5c2ac7['is']('element','tableCellSuggestion')&&_0x1b4400['push'](_0x5c2ac7);}_0x297c22['_suggestionFactory']['getSuggestionCallback'](_0x4b9f9c,null,_0x29000e)(_0x1f961e,_0x55c16b,_0x5000eb);for(const _0x2c2513 of _0x1b4400)'$graveyard'!=_0x2c2513['root']['rootName']&&_0x1bd213['unwrap'](_0x2c2513);});});};_0x390aa3('insertion','accept'),_0x390aa3('insertion','discard'),_0x390aa3('deletion','accept'),_0x390aa3('deletion','discard'),_0x297c22['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43e70d=>{const _0x5c14f5=_0x43e70d['map'](_0x393cc2=>_0x393cc2['getContainedElement']()),_0x27cf2a=_0x5c14f5[0x0]['findAncestor']('table'),{minRow:_0x390cb1,maxRow:_0x37ff48}=_0x4ec93e['_getCoordsForCells'](_0x5c14f5);_0x51fd4a['removeRows'](_0x27cf2a,{'at':_0x390cb1,'rows':_0x37ff48-_0x390cb1+0x1});}),_0x297c22['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe6ce70=>{const _0x1c113b=_0xe6ce70['map'](_0x466db1=>_0x466db1['getContainedElement']()),_0x2c3a44=_0x1c113b[0x0]['findAncestor']('table'),{minColumn:_0x5d7973,maxColumn:_0x36b907}=_0x4ec93e['_getCoordsForCells'](_0x1c113b);_0x51fd4a['removeColumns'](_0x2c3a44,{'at':_0x5d7973,'columns':_0x36b907-_0x5d7973+0x1});});const _0x51f420=(_0x4eb57e,_0x5473e6)=>{if(!_0x5473e6['subType']||!_0x5473e6['subType']['startsWith']('tablePaste'))return;const _0x16269a=_0x5473e6['attributes']['tablePasteChainId'],_0x339f7a=_0x297c22['getSuggestions']()['filter'](_0x460482=>_0x460482['isInContent']&&_0x460482['attributes']&&_0x460482['attributes']['tablePasteChainId']==_0x16269a);_0x339f7a['length']&&_0x5473e6['getAllAdjacentSuggestions']()['length']!=_0x339f7a['length']&&_0x339f7a['reduce']((_0x554d5d,_0x1c0cca)=>(_0x554d5d['next']=_0x1c0cca,_0x1c0cca['previous']=_0x554d5d,_0x1c0cca));};function _0x3ffb7c(_0x31c991,_0x41ae47=!0x0){const {id:_0xed935a,authorId:_0x37bf56}=tt(_0x31c991['markerName']),_0x2a6cdf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1597fd=_0x297c22['activeMarkers']['includes'](_0x31c991['markerName']);return _0x1597fd&&_0x2a6cdf['push']('ck-suggestion-marker--active'),{'classes':_0x2a6cdf,'attributes':{'data-suggestion':_0xed935a,'data-author-id':_0x37bf56},'priority':_0x1597fd&&_0x41ae47?0xbc2:0xbb8};}_0x297c22['on']('suggestionLoaded',_0x51f420,{'priority':'high'}),_0x297c22['on']('suggestionUnloaded',_0x51f420,{'priority':'high'}),_0x517695['model']['document']['registerPostFixer'](()=>{let _0x19a490=!0x1;const _0x454790=Array['from'](_0x517695['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x557f7c,data:_0x50aa06}of _0x454790){const {group:_0x2cf680,type:_0x38dfdc,id:_0x5cfc78}=tt(_0x557f7c);if('suggestion'!=_0x2cf680||'deletion'!=_0x38dfdc||_0x50aa06['oldRange'])continue;if(!_0x297c22['hasSuggestion'](_0x5cfc78))continue;const _0x8659a6=_0x297c22['getSuggestion'](_0x5cfc78)['getRanges'](),_0x49ebb6=_0x517695['plugins']['get']('Users')['me'];for(const _0x4436fa of _0x297c22['getSuggestions']())if(_0x4436fa['isInContent']&&_0x4436fa['author']==_0x49ebb6&&'formatBlock'==_0x4436fa['type']&&'tablePasteCell'==_0x4436fa['subType']&&_0x4436fa['getRanges']()['every'](_0x4599a0=>_0x8659a6['some'](_0x52ca18=>_0x52ca18['containsRange'](_0x4599a0,!0x0)))){for(const _0x3f8cc0 of _0x4436fa['getAllAdjacentSuggestions']())_0x3f8cc0['isInContent']&&(_0x3f8cc0['discard'](),_0x19a490=!0x0);}}return _0x19a490;}),_0x517695['model']['document']['registerPostFixer'](_0x105a02=>{const _0x212a29=_0x517695['commands']['get']('redo');if(!_0x212a29||!_0x212a29['_createdBatches']['has'](_0x105a02['batch']))return!0x1;let _0x418c6b=!0x1;const _0x15f757=_0x517695['plugins']['get']('Users')['me'],_0x341916=_0x517695['model']['document']['differ']['getChanges'](),_0x52dcc6=Array['from'](_0x517695['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2bd0ff,data:_0x59ce6e})=>{const {group:_0x23d72f,subType:_0x361bdd,authorId:_0x2344c6}=tt(_0x2bd0ff);return'suggestion'==_0x23d72f&&'tablePaste'==_0x361bdd&&_0x2344c6==_0x15f757['id']&&!_0x59ce6e['oldRange'];});for(const _0x4d5241 of _0x341916){if('insert'!=_0x4d5241['type']||'tableCellSuggestion'!=_0x4d5241['name']||0x1!=_0x4d5241['length'])continue;const _0xa08f3d=_0x105a02['createRange'](_0x4d5241['position'],_0x4d5241['position']['getShiftedBy'](0x1));if(!_0x52dcc6['find'](({data:_0x25f4c4})=>_0x25f4c4['newRange']['isEqual'](_0xa08f3d))){for(const {name:_0x204eda,data:_0x25c8dd}of _0x52dcc6)if(_0xa08f3d['containsRange'](_0x25c8dd['newRange'])){_0x105a02['updateMarker'](_0x204eda,{'range':_0xa08f3d}),_0x418c6b=!0x0;break;}}}return _0x418c6b;}),_0x517695['model']['document']['registerPostFixer'](_0x161b04=>{let _0x3f5485=!0x1;const _0x23fc80=_0x517695['plugins']['get']('Users')['me'],_0x4e2107=_0x297c22['getSuggestions']()['filter'](_0x13cc68=>_0x13cc68['isInContent']&&_0x13cc68['author']==_0x23fc80),_0x20db7c=new Set(),_0x3e9246=new Set();for(const _0x528630 of _0x4e2107)if('tablePaste'==_0x528630['subType'])for(const _0x36568b of _0x528630['getMarkers']()){const _0x5a0ff5=_0x36568b['getRange']()['getContainedElement']();if(_0x5a0ff5){if(_0x5a0ff5['is']('element','tableCellSuggestion')&&We(_0x5a0ff5)){_0x528630['removeMarker'](_0x36568b['name']),_0x20db7c['add'](_0x5a0ff5),_0x3f5485=!0x0;const _0x33b1bc=_0x5a0ff5['nextSibling'],_0x26d1be=_0x5a0ff5['previousSibling'],_0x4f8e06=_0x33b1bc&&_0x33b1bc['is']('element','tableCellSuggestion'),_0x84f938=_0x26d1be&&_0x26d1be['is']('element','tableCellSuggestion');_0x4f8e06&&!_0x20db7c['has'](_0x33b1bc)&&_0x3e9246['add'](_0x33b1bc),_0x84f938&&!_0x20db7c['has'](_0x26d1be)&&_0x3e9246['add'](_0x26d1be);}else _0x5a0ff5['is']('element','paragraph')&&_0x5a0ff5['isEmpty']&&(_0x528630['removeMarker'](_0x36568b['name']),_0x3f5485=!0x0);}}else{if('tablePasteCell'==_0x528630['subType']){if(!_0x528630['attributes']||!_0x528630['attributes']['tablePasteChainId'])continue;const _0xfb848b=_0x528630['attributes']['markerAttributes'];if(_0xfb848b&&Object['keys'](_0xfb848b)['length'])continue;const _0x236f52=_0x528630['attributes']['tablePasteChainId'];let _0x204124=!0x0,_0x6304ba=!0x0;for(const _0x4feae1 of _0x4e2107)if(_0x4feae1['subType']&&_0x4feae1['subType']['startsWith']('tablePaste')){if(!_0x4feae1['attributes']['tablePasteChainId']){_0x6304ba=!0x1;break;}if(_0x4feae1['id']!=_0x528630['id']&&_0x4feae1['attributes']['tablePasteChainId']==_0x236f52){_0x204124=!0x1;break;}}_0x6304ba&&_0x204124&&(_0x528630['removeMarkers'](),_0x3f5485=!0x0);}}for(const _0x24d9a0 of _0x20db7c)_0x161b04['remove'](_0x24d9a0);for(const _0x33c7f8 of _0x3e9246)_0x161b04['unwrap'](_0x33c7f8);return _0x3f5485;}),_0x517695['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xbc50dd=>_0x3ffb7c(_0xbc50dd),'converterPriority':'high'}),_0x517695['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13ab32,_0x548953)=>_0x548953['options']['showSuggestionHighlights']?_0x3ffb7c(_0x13ab32,!0x1):null,'converterPriority':'high'});const _0x46153d=_0x517695['editing']['view'];this['listenTo'](_0x46153d['document'],'clipboardOutput',(_0x28128d,_0x3e5abd)=>{const _0x398f7f=[];for(const _0x27f1f2 of _0x46153d['createRangeIn'](_0x3e5abd['content'])['getItems']())_0x27f1f2['is']('element','suggestion-td')&&_0x398f7f['push'](_0x27f1f2);_0x46153d['change'](_0x796895=>{for(const _0x2ef933 of _0x398f7f)_0x796895['move'](_0x796895['createRangeIn'](_0x2ef933),_0x796895['createPositionBefore'](_0x2ef933)),_0x796895['remove'](_0x2ef933);});});}};function We(_0x38f9d5){if(_0x38f9d5['isEmpty'])return!0x0;const _0x898fae=_0x38f9d5['getChild'](0x0);return _0x898fae['is']('element','paragraph')&&_0x898fae['isEmpty'];}function je(_0xb2202f,_0x244918={},_0x5495b0){for(const {isAnchor:_0xee5f56,cellHeight:_0x5595ce,cellWidth:_0x544d6a}of _0x5495b0['createTableWalker'](_0xb2202f,{'includeAllSlots':!0x0,..._0x244918}))if(!_0xee5f56||0x1!=_0x5595ce||0x1!=_0x544d6a)return!0x1;return!0x0;}var Ke=class extends _0x7848c6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x502df6=this['editor']['plugins']['get']('TrackChangesEditing');_0x502df6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x502df6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x502df6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x502df6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x502df6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x502df6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x178b75,_0x19c214){const _0x32cecb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a86fe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x268241=_0x19c214['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4bcc2a=_0x5a86fe['getColumnGroupElement'](_0x268241);let _0x1b5a4a=_0x4bcc2a?_0x5a86fe['getTableColumnsWidths'](_0x4bcc2a):null,_0x391c21=_0x268241['getAttribute']('tableWidth')||null;const _0x15383b=_0x19c214['tableWidth']||_0x391c21,_0x5b6002=_0x19c214['columnWidths']||_0x1b5a4a,_0x419b12=this['editor']['plugins']['get']('Users')['me'];for(const _0x37506e of _0x32cecb['getSuggestions']()){const _0x2b7053=_0x37506e['getContainedElement']();if('resizeTable'===_0x37506e['subType']&&_0x2b7053===_0x268241){_0x37506e['author']!==_0x419b12&&_0x37506e['discard']();const _0x7fccdc=_0x37506e['data']['commandParams'];_0x391c21=_0x7fccdc[0x0]['tableWidth'],_0x1b5a4a=_0x7fccdc[0x0]['columnWidths'];break;}}_0x178b75({'table':_0x268241,'tableWidth':_0x15383b,'columnWidths':_0x5b6002}),_0x32cecb['markBlockFormat'](_0x268241,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x391c21,'columnWidths':_0x1b5a4a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19150f){if('formatBlock'!=_0x19150f['type']&&'formatInline'!=_0x19150f['type'])return;const {data:_0x38b17e}=_0x19150f;return _0x38b17e&&'resizeTable'===_0x38b17e['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x7848c6{['afterInit'](){const _0x95b454=this['editor'];_0x95b454['plugins']['has']('Template')&&_0x95b454['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x7848c6{['afterInit'](){const _0x1fde2a=this['editor'];if(!_0x1fde2a['commands']['get']('insertTableOfContents'))return;_0x1fde2a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x170d31=_0x1fde2a['plugins']['get']('TrackChangesEditing'),_0x288105=_0x1fde2a['locale'];_0x170d31['descriptionFactory']['registerElementLabel']('tableOfContents',_0x17c911=>St(_0x288105,'ELEMENT_TABLE_OF_CONTENTS',_0x17c911));}},qe=class extends _0x7848c6{['afterInit'](){const _0x29ea50=this['editor'];_0x29ea50['plugins']['has']('Title')&&(_0x29ea50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x29ea50['locale'],'ELEMENT_TITLE')),_0x29ea50['model']['document']['registerPostFixer'](_0x47fa91=>{let _0x57c5d3=!0x1;const _0x3dbdb8=Array['from'](_0x29ea50['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3eaf84,data:_0x5b6ccf}of _0x3dbdb8){const {group:_0x137820}=tt(_0x3eaf84);if('suggestion'!==_0x137820||!_0x5b6ccf['newRange'])continue;const _0x33c8b1=_0x5b6ccf['newRange'],_0x511645=_0x33c8b1['end']['nodeBefore'];if(!_0x511645||!_0x511645['is']('element','title-content'))continue;if(!_0x33c8b1['start']['isTouching'](_0x33c8b1['end']))continue;const _0x4da4f6=_0x29ea50['model']['schema']['getNearestSelectionRange'](_0x33c8b1['end'],'forward');if(_0x4da4f6&&_0x4da4f6['isCollapsed']){const _0x291871=_0x47fa91['createRange'](_0x33c8b1['start'],_0x4da4f6['start']);_0x291871['isEqual'](_0x33c8b1)||(_0x47fa91['updateMarker'](_0x3eaf84,{'range':_0x291871}),_0x57c5d3=!0x0);}_0x57c5d3||(_0x47fa91['removeMarker'](_0x3eaf84),_0x57c5d3=!0x0);}return _0x57c5d3;}));}},Ye=class extends _0x7848c6{['afterInit'](){const _0x373b9d=this['editor'],_0x24c256=_0x373b9d['plugins']['get']('TrackChangesEditing');_0x373b9d['plugins']['has']('Uploadcare')&&(_0x24c256['enableCommand']('uploadcare'),_0x373b9d['plugins']['has']('UploadcareImageEdit')&&(_0x24c256['enableCommand']('uploadcareImageEdit'),_0x24c256['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x24c256['descriptionFactory']['registerDescriptionCallback'](_0x2fdd79=>{if('attribute'!=_0x2fdd79['type'])return;const {data:_0x2bf554}=_0x2fdd79;return _0x2bf554&&'uploadcareImageId'==_0x2bf554['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x7848c6{['afterInit'](){const _0x410115=this['editor'],_0x5f3b17=_0x410115['plugins']['get']('TrackChangesEditing');_0x410115['plugins']['has']('UndoEditing')&&(_0x5f3b17['enableCommand']('undo'),_0x5f3b17['enableCommand']('redo'));}},Ze=class extends _0x7848c6{static get['requires'](){return[ve];}['afterInit'](){const _0x1b8d55=this['editor'];_0x1b8d55['plugins']['has']('TableCaptionEditing')&&_0x1b8d55['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x7848c6{['tableProperties'];['tableCellProperties'];constructor(_0x599291){super(_0x599291),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 _0x3f1293=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d2b13 of this['tableProperties'])_0x3f1293['enableCommand'](_0x5d2b13,(_0x22d158,_0x4e5300)=>{const _0x2a7d62=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d2b13,[_0x2a7d62],this['tableProperties'],'tableProperties',_0x22d158,_0x4e5300);});_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3f1293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bde36,_0x295fa8)=>this['handleDiscardAction'](this['tableProperties'],_0x2bde36,_0x295fa8)),_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x580acb of this['tableCellProperties'])this['editor']['commands']['get'](_0x580acb)&&_0x3f1293['enableCommand'](_0x580acb,(_0x13ac68,_0x541c7a)=>{const _0x380fbb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x580acb,_0x380fbb,this['tableCellProperties'],'tableCellProperties',_0x13ac68,_0x541c7a);});_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3f1293['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x52fc88,_0x48063d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x52fc88,_0x48063d)),_0x3f1293['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3f1293['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3f1293['descriptionFactory']['registerDescriptionCallback'](_0x4e4a78=>this['handleSuggestionDescription'](_0x4e4a78)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x652e3d,_0x135da1,_0x518b50,_0x5c91f6,_0x5592fc,_0x25c400){const _0x271653=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x25c400['batch'],()=>{for(const _0x28947a of _0x135da1)if(this['_getSuggestion'](_0x28947a,_0x5c91f6))_0x5592fc(_0x25c400);else{const _0x4b3562={};for(const _0x1e2ba8 of _0x518b50){const _0x4a07c7=_0x28947a['getAttribute'](_0x1e2ba8);void 0x0!==_0x4a07c7&&(_0x4b3562[_0x1e2ba8]=_0x4a07c7);}_0x5592fc(_0x25c400),_0x271653['markBlockFormat'](_0x28947a,{'commandParams':[_0x4b3562]},[],_0x5c91f6);}});}['handleDiscardAction'](_0x5c94f9,_0x2feeca,_0x3784d4){const _0x37d199=_0x2feeca[0x0]['start']['nodeAfter'],_0x71792=_0x3784d4['commandParams'][0x0];this['editor']['model']['change'](_0x4e658d=>{for(const _0x527dc4 of _0x5c94f9)void 0x0!==_0x71792[_0x527dc4]?_0x4e658d['setAttribute'](_0x527dc4,_0x71792[_0x527dc4],_0x37d199):_0x4e658d['removeAttribute'](_0x527dc4,_0x37d199);});}['handleSuggestionDescription'](_0x2a34de){if(_0x2a34de['data'])switch(_0x2a34de['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'](_0x34a316,_0x142ea4){const _0x264f41=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x7139fe of _0x264f41['getSuggestions']({'skipNotAttached':!0x0})){const _0x45f891=_0x7139fe['getContainedElement']();if(_0x7139fe['subType']===_0x142ea4&&_0x45f891===_0x34a316)return _0x7139fe;}return null;}['_registerTablePropertiesAttributes'](){const _0x4e7d5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e24dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x147ca3 of _0x2e24dd){const _0x376d93=_0x147ca3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4e7d5f['descriptionFactory']['registerAttributeLabel'](_0x147ca3,St(this['editor']['locale'],'FORMAT_'+_0x376d93));}}},tn=class extends _0x7848c6{['afterInit'](){const _0x519302=this['editor'];if(!_0x519302['plugins']['has']('LineHeight'))return;const _0xfeb18a=_0x519302['plugins']['get']('TrackChangesEditing'),_0x480e7f=_0x519302['locale'];_0xfeb18a['enableDefaultAttributesIntegration']('lineHeight'),_0xfeb18a['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x480e7f,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x7848c6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4a356a,_0x473fe4,_0x27edda,_0x18ed28,_0x3bd5d2,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(_0x50052a){super(_0x50052a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x61491c,_0x2b7b36,_0x3a57c9,_0x358931)=>{this['_model']['change'](()=>{for(const _0xb70eb9 of[..._0x358931,..._0x3a57c9])this['_model']['markers']['has'](_0xb70eb9)&&_0x50052a['editing']['reconvertMarker'](_0xb70eb9);});}),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']=_0x50052a['plugins']['get'](_0x4a356a),this['_suggestionsConversion']=_0x50052a['plugins']['get'](_0x473fe4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x50052a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x50052a['config']['get']('trackChanges.trackFormatChanges'),_0x50052a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x50052a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x50052a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ea0f2=this['editor'];_0x4ea0f2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe0c7ae,{writer:_0x231ef9})=>{let _0x1974c1='suggestion:'+_0xe0c7ae['getAttribute']('suggestion-type')+':'+_0xe0c7ae['getAttribute']('id');return _0xe0c7ae['getAttribute']('marker-count')&&(_0x1974c1+=':'+_0xe0c7ae['getAttribute']('marker-count')),_0x231ef9['createElement']('$marker',{'data-name':_0x1974c1});}}),_0x4ea0f2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ea0f2['model']['document']['registerPostFixer'](_0x1dd009=>{let _0x55a2c8=!0x1;const _0x376942=Array['from'](_0x4ea0f2['model']['document']['differ']['getChangedMarkers']()),_0x4e37f4=new Set();for(const {name:_0x4f7067,data:_0xfd246b}of _0x376942){const {group:_0x28508c,type:_0x41a0b6,subType:_0x41671e,id:_0x483121}=tt(_0x4f7067);if('suggestion'!==_0x28508c)continue;const _0x2101dc=_0x41671e?'suggestion:'+_0x41a0b6+':'+_0x41671e+':'+_0x483121:'suggestion:'+_0x41a0b6+':'+_0x483121,_0xb0e72f=_0x4ea0f2['model']['markers']['getMarkersGroup'](_0x2101dc),_0x158e12=_0x4ea0f2['model']['markers']['get'](_0x4f7067),_0x14a4c7=this['_suggestions']['get'](_0x483121);if(null!=_0xfd246b['newRange']){'formatInline'==_0x41a0b6&&(_0x55a2c8=_0x55a2c8||an(_0xfd246b['newRange'],_0x4f7067,_0x1dd009,_0x4ea0f2['model']['schema']));const _0x366fc6='attribute'==_0x41a0b6&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x41671e)),_0x59b8d6='attribute'==_0x41a0b6&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x41671e));if(_0xfd246b['newRange']['isCollapsed']||'$graveyard'==_0xfd246b['newRange']['root']['rootName']||'formatBlock'==_0x41a0b6&&!ln(_0xfd246b['newRange'])||_0x366fc6&&!ln(_0xfd246b['newRange'])||_0x59b8d6&&un(_0xfd246b['newRange'])||'deletion'==_0x41a0b6&&un(_0xfd246b['newRange'])||_0x158e12&&dn(_0x158e12,_0xb0e72f))_0x1dd009['removeMarker'](_0x4f7067),_0x55a2c8=!0x0;else{if(!_0x14a4c7||!_0x14a4c7['isInContent'])continue;if(_0xfd246b['newRange']&&_0xfd246b['oldRange']&&_0xfd246b['newRange']['isEqual'](_0xfd246b['oldRange']))continue;_0x4e37f4['add'](_0x14a4c7);}}}return _0x4e37f4['size']>0x0&&(_0x55a2c8=!!this['_joinWithAdjacentSuggestions'](_0x4e37f4)||_0x55a2c8),_0x55a2c8;}),_0x4ea0f2['model']['document']['registerPostFixer'](_0x296ecf=>{let _0x142270=!0x1;for(const _0x31e3ce of _0x4ea0f2['model']['document']['differ']['getChanges']())if('insert'==_0x31e3ce['type'])for(const _0x23be08 of this['_suggestions']['values']()){if(_0x23be08['isMultiRange']||!_0x23be08['isInContent'])continue;const _0x48c3c7='formatBlock'==_0x23be08['type'],_0x1099d8=this['_getAttributeKey'](_0x23be08),_0x100d32=_0x1099d8&&this['_suggestionsConversion']['isBlockAttribute'](_0x1099d8);if(!_0x48c3c7&&!_0x100d32)continue;const _0x84fa9e=_0x23be08['getFirstRange']();if(_0x84fa9e['start']['parent']!=_0x84fa9e['end']['parent']&&!_0x84fa9e['end']['isAtEnd']){const _0x236c3d=_0x4ea0f2['model']['createPositionAt'](_0x84fa9e['start']['nodeAfter'],'end'),_0x5194b7=_0x4ea0f2['model']['createRange'](_0x84fa9e['start'],_0x236c3d);_0x296ecf['updateMarker'](_0x23be08['getFirstMarker'](),{'range':_0x5194b7}),_0x142270=!0x0;}}return _0x142270;}),_0x4ea0f2['model']['document']['registerPostFixer'](_0x4aa01e=>this['_processAttributeChanges'](_0x4aa01e)),_0x4ea0f2['model']['document']['registerPostFixer'](_0x592492=>!_0x592492['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x592492)),_0x4ea0f2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ea0f2['model']['document']['on']('change:data',(_0x121e06,_0xcd9aa9)=>{if(!_0xcd9aa9['isLocal']||_0xcd9aa9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x37132c=_0x4ea0f2['model']['document']['differ']['getChanges']();if(0x0==_0x37132c['length'])return;const _0x33c06d=[],_0x5df7f6=_0x37132c['filter'](_0x4c1d08=>'attribute'==_0x4c1d08['type']),_0x1e8c4f=_0x37132c['filter'](_0x5e2602=>'insert'==_0x5e2602['type']&&'$text'!=_0x5e2602['name']);for(const _0x5c35d of _0x5df7f6)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5c35d['attributeKey'])&&_0x33c06d['push']({'key':_0x5c35d['attributeKey'],'newValue':_0x5c35d['attributeNewValue'],'oldValue':_0x5c35d['attributeOldValue'],'range':hn(_0x5c35d['range'],_0x4ea0f2['model'])});for(const _0x5cf546 of _0x1e8c4f){if('rename'!=_0x5cf546['action']&&'refresh'!=_0x5cf546['action'])continue;const _0x38de0d=gn(_0x5cf546['position']['nodeAfter'],_0x4ea0f2['model']),_0x55caef=_0x5cf546['before'];'rename'==_0x5cf546['action']&&_0x33c06d['push']({'key':en,'newValue':_0x5cf546['name'],'oldValue':_0x55caef['name'],'range':_0x38de0d});for(const [_0xba1995,_0x205e93]of _0x55caef['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xba1995))continue;const _0x20e309=_0x5cf546['attributes']['get'](_0xba1995);_0x205e93!==_0x20e309&&_0x33c06d['push']({'key':_0xba1995,'newValue':_0x20e309,'oldValue':_0x205e93,'range':_0x38de0d});}for(const [_0x4fe8ec,_0x1af944]of _0x5cf546['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4fe8ec)&&(_0x55caef['attributes']['has'](_0x4fe8ec)||_0x33c06d['push']({'key':_0x4fe8ec,'newValue':_0x1af944,'oldValue':null,'range':_0x38de0d}));}0x0!=_0x33c06d['length']&&_0x4ea0f2['model']['enqueueChange'](_0xcd9aa9,_0x1b7c80=>{const _0x19dc7f=_0x36f764();for(const {range:_0x4fce3d,key:_0x4f5ee4,oldValue:_0x29f936,newValue:_0x3a4baf}of _0x33c06d)this['markAttributeChange'](_0x4fce3d,_0x4f5ee4,_0x29f936,_0x3a4baf,{'groupId':_0x19dc7f});this['_reduceExistingSuggestions'](_0x1b7c80,_0x33c06d);});},{'priority':'lowest'}),_0x4ea0f2['model']['markers']['on']('update:suggestion',(_0x3aa362,_0x1389c3,_0x358aeb)=>{if(null==_0x358aeb){const {id:_0x5a2385}=tt(_0x1389c3['name']),_0x4f17f4=this['_suggestions']['get'](_0x5a2385);_0x4f17f4&&_0x4f17f4['addMarkerName'](_0x1389c3['name']);}}),_0x4ea0f2['model']['document']['on']('change:data',()=>{const _0x2276f6=Array['from'](_0x4ea0f2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x18c811=>'suggestion'===tt(_0x18c811['name'])['group']);if(0x0===_0x2276f6['length'])return;_0x2276f6['sort']((_0x224676,_0x30a9a8)=>{const _0x488c6e=_0x224676['data']['oldRange'],_0x2ca811=_0x30a9a8['data']['oldRange'];return null===_0x488c6e&&null===_0x2ca811?0x0:null===_0x488c6e&&null!==_0x2ca811?-0x1:null!==_0x488c6e&&null===_0x2ca811?0x1:_0x488c6e['start']['isBefore'](_0x2ca811['start'])?-0x1:0x1;});const _0x5d3f22=new Set(),_0x4113cf=new Set();for(const {name:_0x5e631d,data:_0xa87e7c}of _0x2276f6){const {id:_0x5dcd0a}=tt(_0x5e631d);if(null===_0xa87e7c['oldRange']){const _0x405aa1=this['_handleNewSuggestionMarker'](_0x5e631d);_0x4113cf['add'](_0x405aa1);}else{const _0x125423=this['_suggestions']['get'](_0x5dcd0a);null!==_0xa87e7c['newRange']||_0x125423['isInContent']?(_0x5d3f22['add'](_0x125423['head']),_0x4113cf['add'](_0x125423)):this['_removeSuggestion'](_0x125423);}}_0x4113cf['size']>0x0&&this['_refreshSuggestionsChain'](_0x4113cf);for(const _0x47632b of _0x5d3f22)this['fire']('suggestionChanged',_0x47632b);}),_0x4ea0f2['model']['on']('applyOperation',(_0x4949f9,_0x21057d)=>{const _0x27b9b9=_0x21057d[0x0];if(!this['_suggestions']['size'])return;if(!_0x27b9b9['isDocumentOperation'])return;if(_0x27b9b9['batch']['isUndo']||!_0x27b9b9['batch']['isLocal'])return;let _0x17e6a9,_0x40887f;switch(_0x27b9b9['type']){case'insert':_0x17e6a9=_0x4ea0f2['model']['createPositionAt'](_0x27b9b9['position']),_0x40887f=_0x17e6a9['getShiftedBy'](_0x27b9b9['howMany']);break;case'split':_0x17e6a9=_0x4ea0f2['model']['createPositionAt'](_0x27b9b9['splitPosition']),_0x40887f=_0x4ea0f2['model']['createPositionAt'](_0x27b9b9['moveTargetPosition']);break;case'move':_0x17e6a9=_0x4ea0f2['model']['createPositionAt'](_0x27b9b9['targetPosition']),_0x40887f=_0x17e6a9['getShiftedBy'](_0x27b9b9['howMany']);break;default:return;}const _0x21e64b=_0x4ea0f2['model']['createRange'](_0x17e6a9,_0x40887f);_0x4ea0f2['model']['change'](()=>{for(const {suggestion:_0x2a9073,meta:_0xf01027}of this['_findSuggestions'](_0x21e64b)){if(_0x2a9073['isMultiRange'])continue;if('formatInline'==_0x2a9073['type'])continue;const _0x3b37e4=this['_getAttributeKey'](_0x2a9073);if(_0x3b37e4&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b37e4)&&'split'!=_0x27b9b9['type'])continue;const _0x3df078=_0x2a9073['data']&&_0x2a9073['data']['multipleBlocks'];('formatBlock'!=_0x2a9073['type']||'split'==_0x27b9b9['type']&&!_0x3df078)&&(_0xf01027['containsRangeInObject']||'insertion'==_0x2a9073['type']&&_0xf01027['isOwn']||_0x2a9073['getFirstRange']()['containsRange'](_0x21e64b)&&this['_breakSuggestionMarker'](_0x2a9073,_0x17e6a9,_0x40887f));}});},{'priority':'lowest'}),_0x4ea0f2['model']['on']('deleteContent',(_0x41823d,_0x27cb51)=>{const _0xd3fb92=_0x27cb51[0x0],_0x5b6c37=_0x27cb51[0x1];if(_0x5b6c37&&_0x5b6c37['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd3fb92['isCollapsed'])return;const _0x1fd1c6=_0x4ea0f2['model']['schema'],{start:_0x2c1770,end:_0x438655}=_0xd3fb92['getFirstRange'](),_0x3d3f42=_0x2c1770['nodeAfter']&&_0x1fd1c6['isLimit'](_0x2c1770['nodeAfter'])?null:_0x1fd1c6['getNearestSelectionRange'](_0x2c1770,'forward'),_0x2f7707=_0x438655['nodeBefore']&&_0x1fd1c6['isLimit'](_0x438655['nodeBefore'])?null:_0x1fd1c6['getNearestSelectionRange'](_0x438655,'backward'),_0x2fa94d=_0x4ea0f2['model']['createRange'](_0x3d3f42?_0x3d3f42['start']:_0x2c1770,_0x2f7707?_0x2f7707['end']:_0x438655);_0x4ea0f2['model']['change'](_0x2efefa=>{this['markDeletion'](_0x2fa94d);const _0x48f317=_0x4ea0f2['model']['schema']['getNearestSelectionRange'](_0x2fa94d['start']);_0xd3fb92['is']('documentSelection')?_0x2efefa['setSelection'](_0x48f317):_0xd3fb92['setTo'](_0x48f317);}),_0x41823d['stop']();},{'priority':_0x4b9664['normal']+0xa}),_0x4ea0f2['model']['on']('insertContent',(_0x8b65ff,_0xc0574f)=>{const _0x529dad=_0xc0574f[_0xc0574f['length']-0x1];_0x529dad&&_0x529dad['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ea0f2['model']['change'](()=>{let _0x13105b=_0x4ea0f2['model']['insertContent'](_0xc0574f[0x0],_0xc0574f[0x1],_0xc0574f[0x2],{'forceDefaultExecution':!0x0});if(!_0x13105b)return;_0x8b65ff['return']=_0x13105b['clone']();const _0x276b4f=_0x13105b['end']['nodeBefore'],_0x2f19f5=_0x4ea0f2['model']['schema'];_0x276b4f&&_0x2f19f5['isBlock'](_0x276b4f)&&!_0x2f19f5['isObject'](_0x276b4f)&&(_0x13105b=_0x4ea0f2['model']['createRange'](_0x13105b['start'],_0x4ea0f2['model']['createPositionAt'](_0x276b4f,'end'))),this['markInsertion'](_0x13105b);}),_0x8b65ff['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a11e1=new Tt(_0x4ea0f2,this['_suggestions']);_0x4ea0f2['commands']['add']('acceptSuggestion',_0x5a11e1),this['enableCommand']('acceptSuggestion');const _0x28326c=new _t(_0x4ea0f2,this['_suggestions']);_0x4ea0f2['commands']['add']('discardSuggestion',_0x28326c),this['enableCommand']('discardSuggestion'),_0x4ea0f2['commands']['add']('acceptAllSuggestions',new Ct(_0x4ea0f2,_0x5a11e1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ea0f2['commands']['add']('discardAllSuggestions',new Ct(_0x4ea0f2,_0x28326c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ea0f2['commands']['add']('acceptSelectedSuggestions',new Rt(_0x4ea0f2,_0x5a11e1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ea0f2['commands']['add']('discardSelectedSuggestions',new Rt(_0x4ea0f2,_0x28326c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2fe093=_0x4ea0f2['plugins']['get'](_0x4a356a);this['listenTo'](_0x2fe093,'addComment',(_0x5670f0,{threadId:_0x5245c4})=>{const _0x21e9f8=this['_suggestions']['get'](_0x5245c4);_0x21e9f8&&_0x21e9f8['commentThread']&&0x1===_0x21e9f8['commentThread']['length']&&this['_updateSuggestionData'](_0x5245c4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2fe093,'removeComment',(_0xba2d92,{threadId:_0xa7cadd})=>{const _0x583210=this['_suggestions']['get'](_0xa7cadd);_0x583210&&_0x583210['commentThread']&&!_0x583210['commentThread']['length']&&this['_updateSuggestionData'](_0xa7cadd,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x473c7e){const _0x5caa48='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x2a9bf7=0x78df8,_0x4aa35a=window['Date']['now'](),_0xf1d88c=_0x473c7e['editor'],_0x1318c1=new window['Promise'](_0x3d0ef5=>{_0xf1d88c['once']('ready',_0x3d0ef5);}),_0x1dd961={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3cc825=_0xf1d88c['config']['get']('licenseKey');async function _0x2499f8(){let _0x4cb47e,_0x35a57a=null,_0x2d860e=null;try{return'GPL'==_0x3cc825?'NotAllowed':(_0x4cb47e=_0x91c7fe(),_0x4cb47e?(_0x4cb47e['usageEndpoint']&&(_0x2d860e=_0x563e23(_0x4cb47e['usageEndpoint'],_0x4cb47e['jti'])),await _0x36c25a()?_0x578f39()?_0x5cd676()?'Expired':_0x14e41b()?('evaluation'==_0x4cb47e['licenseType']&&(_0x35a57a=_0x1069e7('EvaluationLimit')),await _0x755ba8()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5cd676(){const _0x857fea=['evaluation','trial']['includes'](_0x4cb47e['licenseType'])?_0x4aa35a/0x3e8:0xe10*_0x2a9bf7;return _0x4cb47e['exp']<_0x857fea;}function _0x578f39(){const _0x4533e3=_0x4cb47e['features'];if(!_0x4533e3)return!0x1;if(_0x4533e3['includes']('*'))return!0x0;if(_0x4533e3['includes']('TC'))return!0x0;if(_0x4533e3['includes']('RTC')){if(_0x3b0554())return!0x0;if(_0x3a671f()||_0x37d99d())return!0x0;}return!0x1;}function _0x14e41b(){const _0x3b3ceb=_0x4cb47e['licensedHosts'];if(!_0x3b3ceb||0x0==_0x3b3ceb['length'])return!0x0;const {hostname:_0x462fa7}=new URL(window['location']['href']);if(_0x3b3ceb['includes'](_0x462fa7))return!0x0;const _0x3fddff=_0x462fa7['split']('.');return _0x3b3ceb['filter'](_0x18e58a=>_0x18e58a['includes']('*'))['map'](_0x2e8392=>_0x2e8392['split']('.'))['filter'](_0x17ad69=>_0x17ad69['length']<=_0x3fddff['length'])['map'](_0xc658e3=>Array(_0x3fddff['length']-_0xc658e3['length'])['fill']('*'===_0xc658e3[0x0]?'*':'')['concat'](_0xc658e3))['some'](_0x434ee7=>_0x3fddff['every']((_0x1e3802,_0x8643e3)=>_0x434ee7[_0x8643e3]===_0x1e3802||'*'===_0x434ee7[_0x8643e3]));}function _0x755ba8(){return _0x35a57a&&_0x2d860e?new window['Promise']((_0xc07d44,_0x5ede3f)=>{_0x35a57a['then'](_0xc07d44,_0x5ede3f),_0x2d860e['then'](_0x15fd36=>{'Valid'!=_0x15fd36&&_0xc07d44(_0x15fd36);},_0x5ede3f);}):_0x35a57a||_0x2d860e||'Valid';}}function _0x563e23(_0xe9fa5c,_0x21dd95){return new window['Promise'](_0x32749f=>{if(_0x3eb655())return _0x32749f('Valid');_0x30f4ed(),_0xf1d88c['decorate']('_sendUsageRequest');let _0x11222d=!0x1;const _0x58394c=_0x36f764();function _0x4946ef(_0xdbe3cf){return!!_0xdbe3cf&&('object'==typeof _0xdbe3cf||'function'==typeof _0xdbe3cf)&&'function'==typeof _0xdbe3cf['then']&&'function'==typeof _0xdbe3cf['catch'];}function _0x168a3a(_0x28c1e7){_0x18c972(_0x28c1e7)['then'](_0x5590a1=>_0x5590a1&&'ok'==_0x5590a1['status']?_0x5add4b(_0x32f353(_0x58394c+_0x21dd95))!=_0x5590a1['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x58777a=>(_0x550941(),_0x58777a),()=>{const _0x35c480=_0x212441();return null==_0x35c480?(_0x550941(),'Valid'):_0x4aa35a-_0x35c480>0x240c8400?'UsageLimit':'Valid';})['then'](_0x32749f)['catch'](()=>{_0x32749f('UsageLimit');});const _0x42f15d=0x36ee80;function _0x550941(){const _0x4678b1='llct-'+_0x5add4b(_0x32f353(_0xe9fa5c)),_0x399f75=_0x48824c(_0x5add4b(window['Math']['ceil'](_0x4aa35a/_0x42f15d)));window['localStorage']['setItem'](_0x4678b1,_0x399f75);}function _0x212441(){const _0x38e2ac='llct-'+_0x5add4b(_0x32f353(_0xe9fa5c)),_0x5d5e40=window['localStorage']['getItem'](_0x38e2ac);return _0x5d5e40?window['parseInt'](_0x48824c(_0x5d5e40),0x10)*_0x42f15d:null;}function _0x18c972(_0x1b3498){return new window['Promise']((_0x533bc0,_0x1f59da)=>{_0x1b3498['then'](_0x533bc0,_0x1f59da),window['setTimeout'](_0x1f59da,0x1d4c0);});}}_0xf1d88c['on']('_sendUsageRequest',(_0x4994af,_0x50afae)=>{if(_0x50afae[0x0]!=_0xe9fa5c)return _0x32749f('UsageLimit');_0x50afae[0x1]={..._0x50afae[0x1],'requestId':_0x58394c};},{'priority':'high'}),_0xf1d88c['on']('_sendUsageRequest',_0x472aad=>{_0x4946ef(_0x472aad['return'])&&(_0x11222d=!0x0,_0x168a3a(_0x472aad['return']));},{'priority':'low'}),_0x1318c1['then'](()=>{_0x11222d||_0x32749f('UsageLimit');});});function _0x3eb655(){return'auto'==_0xf1d88c['editing']['view']['_overlayModeHint'];}function _0x30f4ed(){_0xf1d88c['editing']['view']['_overlayModeHint']='auto';}}function _0x1069e7(_0x147ff7){const _0x5c8e5a=[new window['Promise'](_0x9e7cf4=>setTimeout(_0x9e7cf4,0x93ecc)),_0x1318c1['then'](()=>new window['Promise'](_0x1c05e6=>{let _0x4dc62f=0x0;_0xf1d88c['model']['on']('applyOperation',(_0x1ee8ac,_0x58d256)=>{_0x58d256[0x0]['isDocumentOperation']&&_0x4dc62f++,0x5e8==_0x4dc62f&&(_0x1c05e6(),_0x1ee8ac['off']());});}))];return window['Promise']['race'](_0x5c8e5a)['then'](()=>_0x147ff7);}async function _0x2f0819(){await _0x1318c1,_0xf1d88c['model']['change']=_0x43ea5e,_0xf1d88c['model']['enqueueChange']=_0x43ea5e,_0xf1d88c['enableReadOnlyMode']('model');}function _0x3b0554(){return _0x2d12a0('WebSocketGateway')&&'connected'==_0x25b348('WebSocketGateway')['state'];}function _0x3a671f(){return _0x2d12a0('RevisionViewerIntegration');}function _0x37d99d(){return _0x2d12a0('TrackChangesDataGetter');}function _0xa804e2(_0x3ebeb1){const _0x29a87c=_0x4c2bb5();_0xf1d88c[_0x29a87c]='trackChangesLicenseKey'+_0x3ebeb1,'Valid'!=_0x3ebeb1&&_0x2f0819();}function _0x4c2bb5(){const _0x54411a=window['String'](window['performance']['now']())['replace']('.','');let _0x22e5e4='R';for(let _0x56b594=0x0;_0x56b594<_0x54411a['length'];_0x56b594+=0x2){let _0x334eab=window['parseInt'](_0x54411a['substring'](_0x56b594,_0x56b594+0x2));_0x334eab>=0x3e&&(_0x334eab-=0x3e),_0x22e5e4+=_0x5caa48[_0x334eab];}return _0x22e5e4;}function _0x91c7fe(){const _0x231ffd=_0x3cc825['split']('.');if(0x3!=_0x231ffd['length'])return null;return _0x297883(_0x231ffd[0x1]);function _0x297883(_0x2cd147){const _0x411d2f=_0x314f5e(_0x2cd147);return _0x411d2f&&_0x14e4bc()?_0x411d2f:null;function _0x14e4bc(){const _0x5c856e=_0x411d2f['jti'],_0x3ff340=window['parseInt'](_0x5c856e['substring'](_0x5c856e['length']-0x8),0x10),_0x189e92={..._0x411d2f,'jti':_0x5c856e['substring'](0x0,_0x5c856e['length']-0x8)};return delete _0x189e92['vc'],_0x32f353(_0x189e92)==_0x3ff340;}}}async function _0x36c25a(){let _0x1ea89b=!0x0;try{const [_0x5ef9b0,_0x57e2a4,_0x56080c]=_0x3cc825['split']('.');return _0x176cf4(_0x5ef9b0),await _0x348d81(_0x5ef9b0,_0x57e2a4,_0x56080c),_0x1ea89b;}catch{return!0x1;}function _0x176cf4(_0x11875d){const _0x4b6cc4=_0x314f5e(_0x11875d);_0x4b6cc4&&'ES256'==_0x4b6cc4['alg']||(_0x1ea89b=!0x1);}async function _0x348d81(_0x59817f,_0x468581,_0x5e0ef0){const _0x54661f=window['Uint8Array']['from'](_0x428ebd(_0x5e0ef0),_0x3edcee=>_0x3edcee['charCodeAt'](0x0)),_0x125d27=new window['TextEncoder']()['encode'](_0x59817f+'.'+_0x468581),_0xa4d7cc=window['crypto']['subtle'];if(!_0xa4d7cc)return;const _0x46bdea=await _0xa4d7cc['importKey']('jwk',_0x1dd961,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xa4d7cc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x46bdea,_0x54661f,_0x125d27)||(_0x1ea89b=!0x1);}}function _0x314f5e(_0x51d06d){return _0x51d06d['startsWith']('ey')?JSON['parse'](_0x428ebd(_0x51d06d)):null;}function _0x428ebd(_0x46c1e4){return window['atob'](_0x46c1e4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x32f353(_0x88571f){let _0x5e4518=0x1505;function _0xd7d79(_0x258f92){for(let _0xbdce78=0x0;_0xbdce78<_0x258f92['length'];_0xbdce78++){const _0x3f4625=_0x258f92['charCodeAt'](_0xbdce78);_0x5e4518=(_0x5e4518<<0x5)+_0x5e4518+_0x3f4625,_0x5e4518&=_0x5e4518;}}function _0x5e57aa(_0x36ff25){Array['isArray'](_0x36ff25)?_0x36ff25['forEach'](_0x5e57aa):_0x36ff25&&'object'==typeof _0x36ff25?Object['entries'](_0x36ff25)['sort']()['forEach'](([_0x395a4d,_0x275d2d])=>{_0xd7d79(_0x395a4d),_0x5e57aa(_0x275d2d);}):_0xd7d79(window['String'](_0x36ff25));}return _0x5e57aa(_0x88571f),_0x5e4518>>>0x0;}function _0x5add4b(_0x9ff2ff){return _0x9ff2ff['toString'](0x10)['padStart'](0x8,'0');}function _0x48824c(_0x2aa1f1){return _0x2aa1f1['split']('')['reverse']()['join']('');}function _0x2d12a0(_0x15dcc5){return _0xf1d88c['plugins']['has'](_0x15dcc5);}function _0x25b348(_0x188170){return _0xf1d88c['plugins']['get'](_0x188170);}function _0x43ea5e(){}_0xa804e2(await _0x2499f8());}(this);}set['adapter'](_0x41fc0b){if(this['_adapter'])throw new _0x4bb6d3('track-changes-adapter-already-set',this);this['_adapter']=_0x41fc0b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x463f41=!0x1,toJSON:_0x26bd45=!0x1}={}){const _0xc91a4=[];for(const _0x5de141 of this['_suggestions']['values']())_0x463f41&&!_0x5de141['isInContent']||_0xc91a4['push'](_0x5de141);return _0x26bd45?_0xc91a4['map'](_0x135142=>_0x135142['toJSON']()):_0xc91a4;}['getSuggestion'](_0xeb9e11){const _0x50057f=this['_suggestions']['get'](_0xeb9e11);if(!_0x50057f)throw new _0x4bb6d3('track-changes-suggestion-not-found',this);return _0x50057f;}['hasSuggestion'](_0x5765e3){return this['_suggestions']['has'](_0x5765e3);}['addSuggestionData'](_0x294531){const {authorId:_0x834f5b,id:_0x3453f2,originalSuggestionId:_0xae96ee,attributes:_0x4d7b23}=_0x294531,[_0x5696ae,_0x455e14]=_0x294531['type']['split'](':'),_0x51a0b8=this['_suggestions']['get'](_0x3453f2)||this['_createSuggestion'](_0x5696ae,_0x455e14,_0x3453f2,_0x834f5b,_0x4d7b23,_0xae96ee);if(this['_addThreadToSuggestion'](_0x51a0b8),this['_checkSuggestionCorrectness'](_0x51a0b8,_0x5696ae,_0x455e14||null,_0x834f5b),_0x51a0b8['createdAt']=_0x294531['createdAt'],_0x51a0b8['_isDataLoaded']=!0x0,_0x4d7b23&&_0x4d7b23['@external']){const _0x5aa8e2=_0x4d7b23['@external'],_0x18b49d=this['_getExternalAuthor'](_0x5aa8e2['authorName']);_0x51a0b8['authoredAt']=_0x5aa8e2['createdAt'],_0x51a0b8['author']=_0x18b49d;}else _0x51a0b8['authoredAt']=_0x294531['createdAt'];switch(_0x294531['data']&&(_0x51a0b8['data']=_0x294531['data']),_0x294531['attributes']&&(_0x51a0b8['attributes']=_0x294531['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x51a0b8['_saved']=!0x0),this['_suggestionState']['get'](_0x51a0b8)){case'notReady':this['_suggestionState']['set'](_0x51a0b8,'dataReady');break;case'markerReady':_0x51a0b8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x51a0b8])),this['_refreshSuggestionsChain'](new Set([_0x51a0b8])),this['_suggestionState']['set'](_0x51a0b8,'ready'),this['fire']('suggestionLoaded',_0x51a0b8)):this['_suggestionState']['set'](_0x51a0b8,'removed');}return _0x51a0b8;}['acceptSuggestion'](_0x51442f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5502e9 of _0x51442f['getAllAdjacentSuggestions']())_0x5502e9['accept']();});});}['discardSuggestion'](_0x264169){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xab0d93 of _0x264169['getAllAdjacentSuggestions']())_0xab0d93['discard']();});});}['enableCommand'](_0x2a7950,_0x12de55){const _0x46f6c0=this['editor']['commands']['get'](_0x2a7950);if(!_0x46f6c0)throw new _0x4bb6d3('track-changes-command-not-found',this,{'commandName':_0x2a7950});if(this['_enabledCommands']['has'](_0x46f6c0))throw new _0x4bb6d3('track-changes-enable-command-twice',this,{'commandName':_0x2a7950});this['_enabledCommands']['add'](_0x46f6c0),_0x12de55&&_0x46f6c0['on']('execute',(_0x3945d9,_0x185b75)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x185b75['length']>0x0&&_0x185b75[_0x185b75['length']-0x1]&&_0x185b75[_0x185b75['length']-0x1]['forceDefaultExecution']?_0x185b75['pop']():(_0x3945d9['return']=_0x12de55((..._0xc672f7)=>_0x46f6c0['execute'](..._0xc672f7,{'forceDefaultExecution':!0x0}),..._0x185b75),_0x3945d9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x517b4b){let _0x9f4786,_0x40dd9f;const _0x4ed8eb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x9f4786=_0x517b4b();}catch(_0x5903c0){_0x40dd9f=_0x5903c0;}return _0x4ed8eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x40dd9f&&_0x4bb6d3['rethrowUnexpectedError'](_0x40dd9f,this),_0x9f4786;}['markInsertion'](_0x1fc836,_0x1fa79f=null,_0x3c1d87={}){if(_0x1fc836['isCollapsed'])return null;const _0x566f35=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3c1d87['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x218ef5,meta:_0x32404b}of this['_findSuggestions'](_0x1fc836,'insertion'))if(_0x32404b['isOwn']){if(!_0x32404b['isNextTo']){if(_0x32404b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x218ef5,_0x3c1d87))continue;return _0x218ef5;}if(En(_0x218ef5,_0x3c1d87))return _0x218ef5;this['_breakSuggestionMarker'](_0x218ef5,_0x1fc836['start'],_0x1fc836['end']);break;}if(_0x1fa79f==_0x218ef5['subType']&&En(_0x218ef5,_0x3c1d87)){const _0x11f980=_0x218ef5['getFirstRange']();return _0x11f980['start']['isEqual'](_0x1fc836['end'])?this['_setSuggestionRange'](_0x218ef5,this['_model']['createRange'](_0x1fc836['start'],_0x11f980['end'])):this['_setSuggestionRange'](_0x218ef5,this['_model']['createRange'](_0x11f980['start'],_0x1fc836['end'])),_0x218ef5;}}const _0x3afce3=_0x36f764(),_0x2b0a93=_0x566f35['id'],_0x39cf2c=_0x1fa79f?'insertion:'+_0x1fa79f:'insertion',_0x498e14=this['_setSuggestionData']({'id':_0x3afce3,'type':_0x39cf2c,'createdAt':new Date(),'authorId':_0x2b0a93,'attributes':_0x3c1d87});return this['_addSuggestionMarker'](_0x39cf2c,_0x3afce3,_0x2b0a93,_0x1fc836),_0x498e14;}['markMultiRangeInsertion'](_0x347298,_0x14a4cb='multi',_0x26f098={}){const _0x7012d7=this['editor']['plugins']['get']('Users')['me'],_0x133cfd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14a4cb,'join');this['_trackingSessionId']&&(_0x26f098['trackingSessionId']=this['_trackingSessionId']);for(const _0x11c7a0 of this['getSuggestions']())if(_0x11c7a0['author']['id']==_0x7012d7['id']&&'insertion'==_0x11c7a0['type']&&_0x11c7a0['subType']==_0x14a4cb&&En(_0x11c7a0,_0x26f098)&&(_0x133cfd(_0x11c7a0['getRanges'](),_0x347298)||_0x133cfd(_0x347298,_0x11c7a0['getRanges']()))){for(const _0x22a59a of _0x347298)_0x11c7a0['addRange'](_0x22a59a);return _0x11c7a0;}for(const {suggestion:_0xc2fe93,meta:_0x347567}of this['_findSuggestions'](_0x347298,'insertion')){if(!_0x347567['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x347567['containsRangeInObject'])continue;if(!En(_0xc2fe93,_0x26f098))continue;let _0x5ed9b7=!0x0;for(const _0x3620f2 of _0xc2fe93['getRanges']())for(const _0x33d79a of _0x347298)if(!_0x3620f2['containsRange'](_0x33d79a)){_0x5ed9b7=!0x1;break;}if(_0x5ed9b7)return _0xc2fe93;}const _0x539dcd=_0x36f764(),_0x21c22c=_0x7012d7['id'],_0x1f8b2a='insertion:'+_0x14a4cb,_0x5a00ea=this['_setSuggestionData']({'id':_0x539dcd,'type':_0x1f8b2a,'createdAt':new Date(),'authorId':_0x21c22c,'attributes':_0x26f098});for(const _0x3486c7 of _0x347298)this['_addSuggestionMarker'](_0x1f8b2a,_0x539dcd,_0x21c22c,_0x3486c7,yt['getMultiRangeId']());return _0x5a00ea;}['markInlineFormat'](_0x4cf8fc,_0x3fdafe,_0x416ad6=null,_0x4e50e7={}){if(_0x416ad6=_0x416ad6||cn(_0x3fdafe),_0x4cf8fc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4e50e7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x49b561=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416ad6,'accept');return this['forceDefaultExecution'](()=>_0x49b561([_0x4cf8fc],_0x3fdafe,_0x4e50e7)),null;}const _0x2bb6d7=this['editor']['plugins']['get']('Users')['me'],_0x7b58cc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55cd07,meta:_0x4529ed}of this['_findSuggestions'](_0x4cf8fc,'insertion'))_0x4529ed['isOwn']&&!_0x4529ed['isInsideObject']&&_0x7b58cc['push'](..._0x55cd07['getRanges']());}const _0x59a885=function(_0x142075,_0x5ecb86){const _0x136f66=[];for(const _0x1b8f6b of _0x5ecb86){const _0x4cac2e=_0x142075['getIntersection'](_0x1b8f6b);_0x4cac2e&&_0x136f66['push'](_0x4cac2e);}return _0x136f66;}(_0x4cf8fc,_0x7b58cc),_0x27ff40=function(_0x296e41,_0x4b6c3e){const _0x3fbdcf=[_0x296e41];for(const _0xc43698 of _0x4b6c3e){let _0x2c2441=0x0;for(;_0x2c2441<_0x3fbdcf['length'];){const _0x52e9cd=_0x3fbdcf[_0x2c2441]['getDifference'](_0xc43698);_0x3fbdcf['splice'](_0x2c2441,0x1,..._0x52e9cd),_0x2c2441+=_0x52e9cd['length'];}}return _0x3fbdcf;}(_0x4cf8fc,_0x7b58cc);_0x59a885['length']&&this['_model']['change'](()=>{for(const _0x3bcffa of _0x59a885){const _0x21a4f4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416ad6,'accept');this['forceDefaultExecution'](()=>_0x21a4f4([_0x3bcffa],_0x3fdafe,_0x4e50e7));}});for(const _0x43def4 of _0x27ff40){let _0x588b0d=null,_0x411013=_0x43def4['start'],_0x1d245e=_0x43def4['end'];for(const {suggestion:_0x545b18,meta:_0x2a9f1c}of this['_findSuggestions'](_0x43def4,'formatInline')){if(!_0x2a9f1c['isOwn'])continue;if(_0x545b18['subType']!=_0x416ad6)continue;if(!En(_0x545b18,_0x4e50e7))continue;const _0x1d37d0=_0x545b18['getFirstRange']();if(_0x1d37d0['containsRange'](_0x43def4,!0x0))return null;_0x411013=_0x411013['isBefore'](_0x1d37d0['start'])?_0x411013:_0x1d37d0['start'],_0x1d245e=_0x1d245e['isAfter'](_0x1d37d0['end'])?_0x1d245e:_0x1d37d0['end'],_0x588b0d?_0x1d37d0['start']['isBefore'](_0x588b0d['getFirstRange']()['start'])?(_0x588b0d['removeMarkers'](),_0x588b0d=_0x545b18):_0x545b18['removeMarkers']():_0x588b0d=_0x545b18;}const _0x2b07f2=this['_model']['createRange'](_0x411013,_0x1d245e);if(_0x588b0d)this['_setSuggestionRange'](_0x588b0d,_0x2b07f2);else{const _0x22c0c7=_0x36f764(),_0xffc5ac=_0x2bb6d7['id'];this['_setSuggestionData']({'id':_0x22c0c7,'type':'formatInline:'+_0x416ad6,'data':_0x3fdafe,'createdAt':new Date(),'authorId':_0xffc5ac,'attributes':_0x4e50e7}),this['_addSuggestionMarker']('formatInline:'+_0x416ad6,_0x22c0c7,_0xffc5ac,_0x2b07f2);}}return null;}['markBlockFormat'](_0x30316c,_0x123439,_0x252f4b=[],_0x52c343=null,_0x45ad5b={}){_0x123439['formatGroupId']||(_0x123439['formatGroupId']=_0x123439['commandName']),_0x123439['multipleBlocks']=_0x30316c['is']('range'),_0x52c343=_0x52c343||cn(_0x123439);const _0x5c41f8=_0x252f4b['map'](_0x479270=>gn(_0x479270,this['_model'])),_0x466288=_0x30316c['is']('range')?_0x30316c:gn(_0x30316c,this['_model']);if(this['_trackingSessionId']&&(_0x45ad5b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28c1b2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c343,'accept');return this['forceDefaultExecution'](()=>_0x28c1b2([_0x466288],_0x123439,_0x45ad5b)),null;}_0x5c41f8['push'](_0x466288);let _0x4b34ae=!0x0;for(const _0x5e6193 of _0x5c41f8)if(!this['_rangeIsInLocalUserInsertion'](_0x5e6193)){_0x4b34ae=!0x1;break;}if(_0x4b34ae&&'always'!==this['_trackFormatChanges']){const _0x401342=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c343,'accept');return this['forceDefaultExecution'](()=>_0x401342([_0x466288],_0x123439,_0x45ad5b)),null;}let _0x57510c=null,_0x20ab89=_0x466288['start'],_0x5ba3e9=_0x466288['end'];for(const {suggestion:_0x2bf06d,meta:_0xe484a9}of this['_findSuggestions'](_0x466288,'formatBlock')){if(!_0xe484a9['isOwn'])continue;if(_0xe484a9['isNextTo']||_0xe484a9['containsRangeInObject']||_0xe484a9['isInsideObject'])continue;if(_0x2bf06d['data']['formatGroupId']!=_0x123439['formatGroupId'])continue;if(!En(_0x2bf06d,_0x45ad5b))continue;const _0x2ff7ee=_0x2bf06d['getFirstRange']();if(_0x2bf06d['subType']==_0x52c343){if(_0x2ff7ee['containsRange'](_0x466288,!0x0))return null;_0x20ab89=_0x20ab89['isBefore'](_0x2ff7ee['start'])?_0x20ab89:_0x2ff7ee['start'],_0x5ba3e9=_0x5ba3e9['isAfter'](_0x2ff7ee['end'])?_0x5ba3e9:_0x2ff7ee['end'],_0x57510c?_0x2ff7ee['start']['isBefore'](_0x57510c['getFirstRange']()['start'])?(_0x57510c['removeMarkers'](),_0x57510c=_0x2bf06d):_0x2bf06d['removeMarkers']():_0x57510c=_0x2bf06d;}else{const _0x41aa45=_0x466288['getIntersection'](_0x2ff7ee);this['_cutOutSuggestionMarker'](_0x2bf06d,_0x41aa45);}}const _0x598101=this['editor']['plugins']['get']('Users')['me'],_0x46b67b=_0x36f764(),_0x1cfbd9=_0x598101['id'];if(_0x57510c)return this['_setSuggestionRange'](_0x57510c,this['_model']['createRange'](_0x20ab89,_0x5ba3e9)),_0x57510c;{const _0x2bc674=this['_setSuggestionData']({'id':_0x46b67b,'type':'formatBlock:'+_0x52c343,'data':_0x123439,'createdAt':new Date(),'authorId':_0x1cfbd9,'attributes':_0x45ad5b});return this['_addSuggestionMarker']('formatBlock:'+_0x52c343,_0x46b67b,_0x1cfbd9,this['_model']['createRange'](_0x20ab89,_0x5ba3e9)),_0x2bc674;}}['markMultiRangeBlockFormat'](_0x3cddd0,_0x43be13,_0x3f8712=[],_0x2db9b7=null,_0x3d3ed4={}){_0x43be13['formatGroupId']||(_0x43be13['formatGroupId']=_0x43be13['commandName']);const _0x1905c3=_0x3cddd0[0x0];_0x43be13['multipleBlocks']=_0x1905c3['is']('range'),_0x2db9b7=_0x2db9b7||cn(_0x43be13);const _0x29f757=_0x3f8712['map'](_0x8d6896=>gn(_0x8d6896,this['_model'])),_0x44276f=_0x1905c3['is']('range')?_0x3cddd0:_0x3cddd0['map'](_0x4941f3=>gn(_0x4941f3,this['_model']));if(this['_trackingSessionId']&&(_0x3d3ed4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x115720=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2db9b7,'accept');return this['forceDefaultExecution'](()=>_0x115720(_0x44276f,_0x43be13,_0x3d3ed4)),null;}_0x29f757['push'](..._0x44276f);let _0x4325e9=!0x0;for(const _0x27a611 of _0x29f757)if(!this['_rangeIsInLocalUserInsertion'](_0x27a611)){_0x4325e9=!0x1;break;}if(_0x4325e9&&'always'!==this['_trackFormatChanges']){const _0x41e607=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2db9b7,'accept');return this['forceDefaultExecution'](()=>_0x41e607(_0x44276f,_0x43be13,_0x3d3ed4)),null;}const _0x124ed8=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e01e3 of this['getSuggestions']()){const _0x4e9e83=_0x5e01e3['data'];if(_0x5e01e3['author']['id']!=_0x124ed8['id'])continue;if('formatBlock'!=_0x5e01e3['type']||_0x4e9e83['formatGroupId']!=_0x43be13['formatGroupId'])continue;if(!En(_0x5e01e3,_0x3d3ed4))continue;const _0x5548d8=_0x5e01e3['subType']==_0x2db9b7;for(let _0x23855e=0x0;_0x23855e<_0x44276f['length'];_0x23855e++){const _0x412e59=_0x44276f[_0x23855e];for(const _0x1bf5cf of _0x5e01e3['getMarkers']()){const _0x34331b=_0x1bf5cf['getRange']();if(_0x412e59['isEqual'](_0x34331b)){_0x5548d8?(_0x44276f['splice'](_0x23855e,0x1),_0x23855e--):_0x5e01e3['removeMarker'](_0x1bf5cf['name']);break;}}}}if(0x0==_0x44276f['length'])return null;const _0x1e36a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2db9b7,'join');for(const _0x243eaa of this['getSuggestions']()){const _0x43381f=_0x243eaa['data'];if(_0x243eaa['author']['id']==_0x124ed8['id']&&('formatBlock'==_0x243eaa['type']&&_0x43381f['formatGroupId']==_0x43be13['formatGroupId']&&_0x243eaa['subType']==_0x2db9b7&&En(_0x243eaa,_0x3d3ed4)&&(_0x1e36a7(_0x243eaa['getRanges'](),_0x44276f)||_0x1e36a7(_0x44276f,_0x243eaa['getRanges']())))){for(const _0xd89e91 of _0x44276f)_0x243eaa['addRange'](_0xd89e91);return _0x243eaa;}}const _0x2095e9=_0x36f764(),_0x1dac4e=_0x124ed8['id'],_0x10fc7c='formatBlock:'+_0x2db9b7,_0xf270e8=this['_setSuggestionData']({'id':_0x2095e9,'type':_0x10fc7c,'data':_0x43be13,'createdAt':new Date(),'authorId':_0x1dac4e,'attributes':_0x3d3ed4});for(const _0x23171d of _0x44276f)this['_addSuggestionMarker'](_0x10fc7c,_0x2095e9,_0x1dac4e,_0x23171d,yt['getMultiRangeId']());return _0xf270e8;}['markDeletion'](_0x387e89,_0x195dce=null,_0x1e981c={}){if(_0x387e89['isCollapsed'])return null;const _0x19ec72=this['editor']['plugins']['get']('Users')['me'],_0x59cd0c=new rt(_0x387e89['start'],_0x387e89['end']);this['_trackingSessionId']&&(_0x1e981c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x10966f,meta:_0x314b1d}of this['_findSuggestions'](_0x59cd0c,'insertion'))if(_0x314b1d['isOwn']&&!_0x314b1d['isNextTo']){if(_0x10966f['isMultiRange']){const _0x567d2b=_0x10966f['getRanges']()['filter'](_0x25a223=>'$graveyard'!=_0x25a223['root']['rootName']);if(_0x567d2b['every'](_0x52b31f=>_0x59cd0c['containsRange'](_0x52b31f,!0x0))&&_0x10966f['discard'](),_0x567d2b['some'](_0x515a52=>_0x515a52['containsRange'](_0x59cd0c,!0x0))){const _0xe0e098=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x195dce,'accept');return this['forceDefaultExecution'](()=>_0xe0e098([_0x59cd0c],null,_0x1e981c)),null;}}else{const _0x2ecd8b=_0x59cd0c['getIntersection'](_0x10966f['getFirstRange']());null!==_0x2ecd8b&&_0x10966f['_onDiscard']([_0x2ecd8b],null,_0x1e981c);}}if(_0x59cd0c['detach'](),_0x59cd0c['isCollapsed']||'$graveyard'==_0x59cd0c['root']['rootName'])return null;let _0x3f7608=null,_0x1a36ca=_0x59cd0c['start'],_0x131170=_0x59cd0c['end'];const _0x316b70=this['_findSuggestions'](_0x59cd0c,'deletion');for(const {suggestion:_0xb15b6a,meta:_0x3ddbec}of _0x316b70){const _0x1b5c67=this['_model']['createRange'](_0x1a36ca,_0x131170);if(_0x3ddbec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ddbec['containsRangeInObject']&&!_0x3ddbec['isInsideObject'])){if(_0xb15b6a['isMultiRange']){if(!En(_0xb15b6a,_0x1e981c))continue;let _0xed4bf8=!0x0;for(const _0x24a24c of _0xb15b6a['getRanges']()){if(_0x24a24c['containsRange'](_0x1b5c67,!0x0))return _0xb15b6a;_0x1b5c67['containsRange'](_0x24a24c)||(_0xed4bf8=!0x1);}_0xed4bf8&&_0xb15b6a['discard']();}else{const _0x592c10=_0xb15b6a['getFirstRange']();if(_0x592c10['containsRange'](_0x1b5c67,!0x0))return _0xb15b6a;if(!En(_0xb15b6a,_0x1e981c)){_0x1b5c67['containsRange'](_0x592c10)?_0xb15b6a['removeMarkers']():_0x592c10['containsPosition'](_0x1a36ca)?_0x1a36ca=_0x592c10['end']:_0x592c10['containsPosition'](_0x131170)&&(_0x131170=_0x592c10['start']);continue;}_0x1a36ca=_0x1a36ca['isBefore'](_0x592c10['start'])?_0x1a36ca:_0x592c10['start'],_0x131170=_0x131170['isAfter'](_0x592c10['end'])?_0x131170:_0x592c10['end'],_0x1e981c=Object['assign']({},_0xb15b6a['attributes']),_0x3f7608?_0x592c10['start']['isBefore'](_0x3f7608['getFirstRange']()['start'])?(_0x3f7608['removeMarkers'](),_0x3f7608=_0xb15b6a):_0xb15b6a['removeMarkers']():_0x3f7608=_0xb15b6a;}}}if(_0x3f7608)return this['_setSuggestionRange'](_0x3f7608,this['_model']['createRange'](_0x1a36ca,_0x131170)),_0x3f7608;{const _0x57be17=_0x36f764(),_0x5d0c77=this['_model']['createRange'](_0x1a36ca,_0x131170),_0x29064d=_0x19ec72['id'],_0x208f33=_0x195dce?'deletion:'+_0x195dce:'deletion',_0x41b02d=this['_setSuggestionData']({'id':_0x57be17,'type':_0x208f33,'createdAt':new Date(),'authorId':_0x29064d,'attributes':_0x1e981c});return this['_addSuggestionMarker'](_0x208f33,_0x57be17,_0x29064d,_0x5d0c77),_0x41b02d;}}['markMultiRangeDeletion'](_0x5e86bd,_0x4d1354='multi',_0x426a26={}){const _0x3a0b56=this['editor']['plugins']['get']('Users')['me'],_0x566243=_0x5e86bd['map'](_0x583ce5=>new rt(_0x583ce5['start'],_0x583ce5['end'])),_0x26e86f=new Set();this['_trackingSessionId']&&(_0x426a26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4aa7a3,meta:_0x4ae0df}of this['_findSuggestions'](_0x566243,'insertion'))_0x4ae0df['isOwn']&&!_0x4ae0df['isNextTo']&&_0x26e86f['add'](_0x4aa7a3);for(const _0x31b5b4 of _0x26e86f)if(_0x31b5b4['isMultiRange']){const _0x39f12e=_0x31b5b4['getRanges']();if(_0x31b5b4['attributes']&&_0x31b5b4['attributes']['skipNestingCheck']||_0x39f12e['every'](_0x1a33f1=>_0x566243['some'](_0x25df15=>_0x25df15['containsRange'](_0x1a33f1,!0x0)))&&_0x31b5b4['discard'](),_0x566243['every'](_0x1c13cf=>_0x39f12e['some'](_0x434c97=>_0x434c97['containsRange'](_0x1c13cf,!0x0)))){const _0x39689=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1354,'accept');return this['forceDefaultExecution'](()=>_0x39689(_0x5e86bd,null,_0x426a26)),null;}}else{const _0x252456=_0x31b5b4['getFirstRange']();if(_0x566243['some'](_0x199382=>_0x199382['containsRange'](_0x252456,!0x0))&&_0x31b5b4['discard'](),_0x566243['every'](_0x4cfa6f=>_0x252456['containsRange'](_0x4cfa6f,!0x0))){const _0x11c515=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1354,'accept');return this['forceDefaultExecution'](()=>_0x11c515(_0x566243,null,_0x426a26)),null;}}const _0x1ef01e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1354,'join');let _0x49234e=null;for(const _0x2769fb of this['getSuggestions']())if(_0x2769fb['author']['id']==_0x3a0b56['id']&&_0x2769fb['isInContent']&&'deletion'==_0x2769fb['type']&&_0x2769fb['subType']==_0x4d1354&&En(_0x2769fb,_0x426a26)&&(_0x1ef01e(_0x2769fb['getRanges'](),_0x566243)||_0x1ef01e(_0x566243,_0x2769fb['getRanges']()))){if(_0x49234e){if(_0x2769fb['commentThread']&&_0x2769fb['commentThread']['length'])continue;for(const _0x1c66cd of _0x2769fb['getRanges']())_0x49234e['isIntersectingWithRange'](_0x1c66cd)||_0x49234e['addRange'](_0x1c66cd);_0x2769fb['removeMarkers']();}else{_0x49234e=_0x2769fb;for(const _0x481ffb of _0x566243)_0x2769fb['isIntersectingWithRange'](_0x481ffb)||_0x2769fb['addRange'](_0x481ffb);}}if(_0x49234e)return _0x49234e;_0x26e86f['clear']();for(const {suggestion:_0x50ce92,meta:_0x2f9f71}of this['_findSuggestions'](_0x566243,'deletion'))_0x2f9f71['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f9f71['containsRangeInObject']&&!_0x2f9f71['isInsideObject'])&&En(_0x50ce92,_0x426a26)&&_0x26e86f['add'](_0x50ce92);for(const _0x4a333e of _0x26e86f){const _0x43f574=_0x4a333e['getRanges']();if((!_0x426a26||!_0x426a26['skipNestingCheck'])&&_0x566243['every'](_0x59f72a=>_0x43f574['some'](_0x5a86b3=>_0x5a86b3['containsRange'](_0x59f72a,!0x0))))return _0x4a333e;_0x4a333e['attributes']&&_0x4a333e['attributes']['skipNestingCheck']||_0x43f574['every'](_0x588bc3=>_0x566243['some'](_0x38c8f7=>_0x38c8f7['containsRange'](_0x588bc3,!0x0)))&&_0x4a333e['discard']();}const _0x736245=_0x36f764(),_0x3957f6=_0x3a0b56['id'],_0x38a3c3='deletion:'+_0x4d1354,_0x31155a=this['_setSuggestionData']({'id':_0x736245,'type':_0x38a3c3,'createdAt':new Date(),'authorId':_0x3957f6,'attributes':_0x426a26});for(const _0x2ae09b of _0x566243)_0x2ae09b['detach'](),_0x2ae09b['isCollapsed']||'$graveyard'==_0x2ae09b['root']['rootName']||this['_addSuggestionMarker'](_0x38a3c3,_0x736245,_0x3957f6,_0x2ae09b,yt['getMultiRangeId']());return _0x31155a;}['markAttributeChange'](_0x471caf,_0x5013b8,_0x20f168,_0x42a0ac,_0x24815c){if(_0x471caf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x168e0b=this['editor']['plugins']['get']('Users')['me']['id'],_0x42e049=Array['from'](this['_suggestions']['values']())['filter'](_0x378fbb=>'attribute'==_0x378fbb['type']&&_0x378fbb['data']['key']==_0x5013b8&&_0x378fbb['isIntersectingWithRange'](_0x471caf));if(this['_trackingSessionId']&&(_0x24815c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x460b3e=this['_findSuggestions'](_0x471caf,'insertion')['filter'](({meta:_0x19ee81})=>_0x19ee81['isOwn']&&!_0x19ee81['isInsideObject']&&!_0x19ee81['isNextTo'])['map'](({suggestion:_0x2897c9})=>_0x2897c9);_0x42e049['unshift'](..._0x460b3e);}const _0x48bddb=new Map([[_0x471caf,_0x20f168]]);for(const _0x5adacc of _0x42e049){const _0x464e3b='attribute'==_0x5adacc['type']?_0x5adacc['data']['oldValue']:void 0x0,_0x295147=_0x5adacc['getFirstRange'](),_0x238c56=Array['from'](_0x48bddb['keys']())['find'](_0x3c8474=>_0x3c8474['isIntersecting'](_0x295147));if(!_0x238c56)continue;const _0x23f841=_0x238c56['getDifference'](_0x295147);this['_suggestionsConversion']['isBlockAttribute'](_0x5013b8)&&'insertion'==_0x5adacc['type']&&0x0!=_0x23f841['length']||(_0x48bddb['delete'](_0x238c56),_0x23f841['forEach'](_0x290eb6=>{_0x48bddb['set'](_0x290eb6,_0x20f168);}),'insertion'!=_0x5adacc['type']&&_0x464e3b!=_0x42a0ac&&_0x48bddb['set'](_0x238c56['getIntersection'](_0x295147),_0x464e3b));}const _0x296127=[];for(const [_0x4640f8,_0x3116b6]of _0x48bddb){const _0x222676=_0x36f764(),_0x1fe3d6={'key':_0x5013b8,'oldValue':_0x3116b6,'newValue':_0x42a0ac};_0x5013b8['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':_0x5013b8});const _0x35a627=('attribute:'+_0x5013b8+'|'+cn({'newValue':_0x42a0ac}))['substring'](0x0,0x3c),_0x3995b7=this['_setSuggestionData']({'id':_0x222676,'type':_0x35a627,'data':_0x1fe3d6,'createdAt':new Date(),'authorId':_0x168e0b,'attributes':_0x24815c});_0x296127['push'](_0x3995b7),this['_addSuggestionMarker'](_0x35a627,_0x222676,_0x168e0b,_0x4640f8);}return _0x296127;}['enableDefaultAttributesIntegration'](_0x438b05){this['enableCommand'](_0x438b05,(_0x1d81cd,..._0x286498)=>{this['recordAttributeChanges'](()=>{_0x1d81cd(..._0x286498);});});}['startTrackingSession'](_0x373d0d){return this['_trackingSessionId']=void 0x0!==_0x373d0d?_0x373d0d:_0x36f764(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3d9742){return'attribute'==_0x3d9742['type']?_n(_0x3d9742['subType']):null;}['_applyOperationsAsSuggestions'](_0x4a607c){if(0x0==_0x4a607c['length'])return;const _0x51b22d=this['editor'],_0x41cb3f=_0x51b22d['plugins']['get'](_0x3bd5d2),_0x1ad446=[],_0x54dd4f=_0x12c47a=>{const _0x47c8a1=_0x12c47a['_aiSource'];return _0x47c8a1?{'@ai':{'type':_0x47c8a1}}:{};},_0x33e9ba=(_0x480e45,_0x1d2ac5,_0x15bcfd)=>{for(let _0x43a5ec=_0x1d2ac5;_0x43a5ec<_0x480e45['operations']['length'];_0x43a5ec++){const _0x9aca31=_0x480e45['operations'][_0x43a5ec];'marker'===_0x9aca31['type']&&(_0x9aca31['_aiSource']=_0x15bcfd);}};_0x51b22d['model']['change'](_0xb0af40=>{for(let _0x19ff9a=0x0;_0x19ff9a<_0x4a607c['length'];_0x19ff9a++){const _0x39da84=_0x4a607c[_0x19ff9a],_0x423a11=_0x39da84['_aiSource'],_0x172a47=_0xb0af40['batch']['operations']['length'];if(_0x39da84['baseVersion']=_0x51b22d['model']['document']['version'],_0x39da84['isDocumentOperation']=!0x0,_0x41cb3f['isMarkedRemoveOperation'](_0x39da84)){const _0x5496bc=_0x3ca002(_0x39da84['newRange'],_0x51b22d['model']);_0x1ad446['unshift']({'range':rt['fromRange'](_0x5496bc),'opAttributes':_0x54dd4f(_0x39da84),'aiSource':_0x423a11});}else{switch(_0x39da84['type']){case'rename':{const _0x4ce3c1=_0x39da84['oldName'],_0x38d01d=_0x39da84['newName'];if(_0x4ce3c1==_0x38d01d)break;_0xb0af40['batch']['addOperation'](_0x39da84),_0x51b22d['model']['applyOperation'](_0x39da84);const _0x27a4a3='$elementName',_0x1cc2a1=_0x39da84['position'],_0x5ace5a=_0x51b22d['model']['createRange'](_0x1cc2a1,_0x51b22d['model']['createPositionAt'](_0x1cc2a1['nodeAfter'],'end'));this['markAttributeChange'](_0x5ace5a,_0x27a4a3,_0x4ce3c1,_0x38d01d,{..._0x54dd4f(_0x39da84),'groupId':_0x36f764()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4e7743=_0x39da84['oldValue'],_0xfe6530=_0x39da84['newValue'];if(_0x4e7743==_0xfe6530)break;_0xb0af40['batch']['addOperation'](_0x39da84),_0x51b22d['model']['applyOperation'](_0x39da84);const _0x1838a1=_0x39da84['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1838a1))break;const _0x3a5e10=_0x3ca002(_0x39da84['range'],_0x51b22d['model']);this['markAttributeChange'](_0x3a5e10,_0x1838a1,_0x4e7743,_0xfe6530,{..._0x54dd4f(_0x39da84),'groupId':_0x36f764()});break;}case'insert':{if(_0xb0af40['batch']['addOperation'](_0x39da84),_0x51b22d['model']['applyOperation'](_0x39da84),_0x4a607c[_0x19ff9a+0x1]&&'move'==_0x4a607c[_0x19ff9a+0x1]['type'])break;const _0x45bfd5=_0x39da84['position'],_0x4b1ff4=_0x39da84['howMany'],_0x23313a=_0x3ca002(_0x51b22d['model']['createRange'](_0x45bfd5,_0x45bfd5['getShiftedBy'](_0x4b1ff4)),_0x51b22d['model']);this['markInsertion'](_0x23313a,null,{..._0x54dd4f(_0x39da84)});break;}case'split':{_0xb0af40['batch']['addOperation'](_0x39da84),_0x51b22d['model']['applyOperation'](_0x39da84);const _0x31a355=_0x39da84['splitPosition'],_0x3e7d09=_0x39da84['moveTargetPosition'],_0x5ce8f7=_0x51b22d['model']['createRange'](_0x31a355,_0x3e7d09);this['markInsertion'](_0x5ce8f7,null,{..._0x54dd4f(_0x39da84)});break;}case'move':case'remove':_0xb0af40['batch']['addOperation'](_0x39da84),_0x51b22d['model']['applyOperation'](_0x39da84);}_0x423a11&&_0x33e9ba(_0xb0af40['batch'],_0x172a47,_0x423a11);}}for(const {range:_0x890721,opAttributes:_0x2a1e0e,aiSource:_0x45d088}of _0x1ad446){const _0xfa9828=_0xb0af40['batch']['operations']['length'];_0x890721['detach'](),this['markDeletion'](_0x890721,null,{..._0x2a1e0e}),_0x45d088&&_0x33e9ba(_0xb0af40['batch'],_0xfa9828,_0x45d088);}});}['_setSuggestionRange'](_0x43d170,_0x526999){const _0x27ca0f=_0x43d170['getFirstMarker']();this['_model']['change'](_0x46cef1=>{_0x46cef1['updateMarker'](_0x27ca0f,{'range':_0x526999});});}['_addThreadToSuggestion'](_0x58a143){const _0x80c433=_0x58a143['id'],_0x516bad=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x80c433)||this['_commentsRepository']['addCommentThread']({'channelId':_0x516bad,'threadId':_0x80c433,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x218aff=this['_commentsRepository']['getCommentThread'](_0x80c433);_0x218aff['unbind']('isRemovable'),_0x218aff['isRemovable']=!0x1,_0x58a143['commentThread']=_0x218aff;}['_checkSuggestionCorrectness'](_0x41fd47,_0x5b8e28,_0x195e8d,_0x5c35b5){if(_0x41fd47['type']!=_0x5b8e28||_0x41fd47['subType']!=_0x195e8d||_0x41fd47['creator']['id']!=_0x5c35b5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4bb6d3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x672255,_0x553dbd){const _0x998a4a=_0x672255['getFirstRange']();if(_0x553dbd['isEqual'](_0x998a4a))_0x672255['removeMarkers']();else{if(_0x998a4a['containsRange'](_0x553dbd)){const _0x3ac753=this['_model']['createPositionAt'](_0x553dbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x672255,this['_model']['createRange'](_0x998a4a['start'],_0x3ac753));const _0x91ed39=_0x36f764(),_0x5d860b=_0x672255['creator']['id'],_0x311328=_0x672255['type']+':'+_0x672255['subType'];this['_setSuggestionData']({'id':_0x91ed39,'type':_0x311328,'createdAt':new Date(),'authorId':_0x5d860b,'data':_0x672255['data'],'attributes':_0x672255['attributes']});const _0x5609bd=this['_model']['createPositionAt'](_0x553dbd['end']['parent'],'after'),_0x4ba313=this['_model']['createRange'](_0x5609bd,_0x998a4a['end']);this['_addSuggestionMarker'](_0x311328,_0x91ed39,_0x5d860b,_0x4ba313);}else{if(_0x998a4a['containsPosition'](_0x553dbd['start'])){const _0xe02e06=this['_model']['createPositionAt'](_0x553dbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x672255,this['_model']['createRange'](_0x998a4a['start'],_0xe02e06));}else{const _0x1ffda8=this['_model']['createPositionAt'](_0x553dbd['end']['parent'],'after');this['_setSuggestionRange'](_0x672255,this['_model']['createRange'](_0x1ffda8,_0x998a4a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x45ae69){for(const {suggestion:_0x47b4f3,meta:_0x5bc53f}of this['_findSuggestions'](_0x45ae69,'insertion')){if(!_0x5bc53f['isOwn'])continue;const _0x2d3c0=_0x47b4f3['getRanges']();for(const _0x1cb218 of _0x2d3c0)if(!_0x45ae69['getDifference'](_0x1cb218)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44eec0){return this['editor']['plugins']['get']('Users')['getUser'](_0x44eec0);}['_getExternalAuthor'](_0xc27103){const _0x414d3e=this['editor']['plugins']['get']('Users'),_0x41f776=_0x308b95('external:'+_0xc27103),_0x245876=_0x414d3e['getUser'](_0x41f776);return _0x245876||_0x414d3e['addUser']({'id':_0x41f776,'name':_0xc27103});}['_createSuggestion'](_0x3af626,_0x496118,_0x44ee13,_0x59fa69,_0x3ab401,_0x2882cc){const _0x5c1f95=this['_getAuthorFromId'](_0x59fa69);if(!_0x5c1f95)throw new _0x4bb6d3('track-changes-user-not-found',this,{'authorId':_0x59fa69,'suggestionId':_0x44ee13});const _0x44d4dc=this['_suggestionFactory']['buildSuggestion'](_0x3af626,_0x496118,_0x44ee13,_0x5c1f95,_0x3ab401,_0x4f9189=>{this['_updateSuggestionData'](_0x44ee13,{'attributes':_0x4f9189});const _0x22d082=this['getSuggestion'](_0x44ee13);this['_joinWithAdjacentSuggestions'](new Set([_0x22d082])),this['_refreshSuggestionsChain'](new Set([_0x22d082]));},_0x2882cc);return this['listenTo'](_0x44d4dc,'accept',()=>{this['_updateSuggestionData'](_0x44ee13,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x44d4dc,'discard',()=>{this['_updateSuggestionData'](_0x44ee13,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44ee13,_0x44d4dc),this['_suggestionState']['set'](_0x44d4dc,'notReady'),_0x44d4dc;}['_breakSuggestionMarker'](_0x3df769,_0x4bb041,_0x2eb02c){const _0x2c3060=_0x3df769['getFirstRange'](),_0x4e076a=_0x2c3060['start'],_0x1a29a4=_0x2c3060['end'];this['_setSuggestionRange'](_0x3df769,this['_model']['createRange'](_0x4e076a,_0x4bb041));const _0x460ea9=_0x36f764(),_0x3fb47f=_0x3df769['creator']['id'],_0x51179f=_0x3df769['type']+(_0x3df769['subType']?':'+_0x3df769['subType']:'');this['_setSuggestionData']({'id':_0x460ea9,'type':_0x51179f,'createdAt':new Date(),'authorId':_0x3fb47f,'originalSuggestionId':_0x3df769['_originalSuggestionId']||_0x3df769['id'],'attributes':_0x3df769['attributes'],'data':_0x3df769['data']});const _0x1b3858=this['_getAttributeKey'](_0x3df769);('formatBlock'==_0x3df769['type']||_0x1b3858&&this['_suggestionsConversion']['isBlockAttribute'](_0x1b3858))&&(_0x2eb02c=this['_model']['createPositionBefore'](_0x2eb02c['parent'])),this['_addSuggestionMarker'](_0x51179f,_0x460ea9,_0x3fb47f,this['_model']['createRange'](_0x2eb02c,_0x1a29a4));}['_findSuggestions'](_0x183a99,_0x52d47e=null){const _0x3d5972=[],_0x554c88=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x183a99)||(_0x183a99=[_0x183a99]);for(const _0x591da5 of this['getSuggestions']()){if(!_0x591da5['isInContent'])continue;if(_0x52d47e&&_0x591da5['type']!=_0x52d47e)continue;let _0x242bd0=!0x1;for(const _0x7f71ab of _0x591da5['getRanges']()){for(const _0xc3b781 of _0x183a99){const _0x4f4611=_0xc3b781['start']['isEqual'](_0x7f71ab['end'])||_0xc3b781['end']['isEqual'](_0x7f71ab['start']);if(_0x4f4611||_0xc3b781['getIntersection'](_0x7f71ab)){const _0x1bee11=_0xc3b781['containsRange'](_0x7f71ab)&&rn(this['_model']['schema'],_0x7f71ab['start'],_0xc3b781),_0x17b3b2=_0x7f71ab['containsRange'](_0xc3b781)&&rn(this['_model']['schema'],_0xc3b781['start'],_0x7f71ab);_0x3d5972['push']({'suggestion':_0x591da5,'meta':{'isOwn':_0x554c88==_0x591da5['author'],'isNextTo':_0x4f4611,'isInsideObject':_0x1bee11,'containsRangeInObject':_0x17b3b2}}),_0x242bd0=!0x0;break;}}if(_0x242bd0)break;}}return _0x3d5972;}['_addSuggestionMarker'](_0x29196d,_0x1988fd,_0x2f1869,_0x40fadd,_0x3db83f){this['_model']['change'](_0x5017ae=>{let _0x4290ea='suggestion:'+_0x29196d+':'+_0x1988fd+':'+_0x2f1869;_0x3db83f&&(_0x4290ea=_0x4290ea+':'+_0x3db83f),_0x5017ae['addMarker'](_0x4290ea,{'range':_0x40fadd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x47aab7){const _0xb40b31=_0x47aab7['previous'],_0x2e6341=_0x47aab7['next'];_0x47aab7['previous']=null,_0x47aab7['next']=null,null!=_0xb40b31&&_0xb40b31['next']==_0x47aab7&&(_0xb40b31['next']=_0x2e6341),null!=_0x2e6341&&_0x2e6341['previous']==_0x47aab7&&(_0x2e6341['previous']=_0xb40b31),'ready'==this['_suggestionState']['get'](_0x47aab7)&&(this['_suggestionState']['set'](_0x47aab7,'removed'),this['fire']('suggestionUnloaded',_0x47aab7,_0xb40b31,_0x2e6341));}['_setSuggestionData'](_0x532d30){const _0x5c08ae=_0x532d30['id'],_0x13b060=this['addSuggestionData'](_0x532d30);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x9b7bc0=this['editor']['plugins']['get']('PendingActions'),_0x375a4e=_0x13b060['hasComments'],_0x474239=_0x13b060['subType']?_0x13b060['type']+':'+_0x13b060['subType']:_0x13b060['type'],_0x2385e3=this['editor']['locale'],_0xb9854d=_0x9b7bc0['add'](St(_0x2385e3,'PENDING_ACTION_SUGGESTION')),_0x3607e8={'id':_0x5c08ae,'type':_0x474239,'hasComments':_0x375a4e,'data':_0x532d30['data']||null,'originalSuggestionId':_0x532d30['originalSuggestionId']||null,'attributes':_0x13b060['attributes']};this['_adapter']['addSuggestion'](_0x3607e8)['then'](_0x2df316=>{_0x13b060['_saved']=!0x0,_0x9b7bc0['remove'](_0xb9854d),_0x2df316&&_0x2df316['createdAt']&&(this['_suggestions']['get'](_0x5c08ae)['createdAt']=_0x2df316['createdAt']);})['catch'](_0x4fd126=>{throw _0x4cb7fe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x13b060['discard']();}),_0x13b060['stopListening'](),this['_suggestions']['delete'](_0x13b060['id']),this['_suggestionState']['delete'](_0x13b060),_0x4fd126;});}return _0x13b060;}['_updateSuggestionData'](_0x2678ab,_0x1b668d){const _0x339211=this['editor']['plugins']['get']('PendingActions'),_0x175595=this['getSuggestion'](_0x2678ab);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x175595['_saved']){const _0xc9526b=_0x339211['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2678ab,_0x1b668d)['then'](()=>{_0x339211['remove'](_0xc9526b);});}else _0x175595['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2678ab,_0x1b668d);});}}['_getSuggestionData'](_0x49d721){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4bb6d3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x49d721);}['_handleNewSuggestionMarker'](_0x16c96a){const {id:_0x662de9,type:_0x1cb11e,subType:_0x5a0c2d,authorId:_0x55ebbb}=tt(_0x16c96a),_0x977ecf=this['_suggestions']['get'](_0x662de9)||this['_createSuggestion'](_0x1cb11e,_0x5a0c2d,_0x662de9,_0x55ebbb,{});switch(this['_checkSuggestionCorrectness'](_0x977ecf,_0x1cb11e,_0x5a0c2d,_0x55ebbb),this['_suggestionState']['get'](_0x977ecf)){case'notReady':this['_getSuggestionData'](_0x662de9)['then'](_0x3901d2=>{let _0x31ce4c=Promise['resolve']();_0x3901d2['hasComments']&&(_0x31ce4c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x662de9})),_0x31ce4c['then'](()=>{this['addSuggestionData'](_0x3901d2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x977ecf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x662de9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x977ecf,'ready'),this['fire']('suggestionLoaded',_0x977ecf);break;case'ready':this['fire']('suggestionChanged',_0x977ecf);}return _0x977ecf['addMarkerName'](_0x16c96a),_0x977ecf;}['_refreshSuggestionsChain'](_0x2be54e){const _0x2fbf05=Array['from'](_0x2be54e),_0x39e780=_0x2fbf05['filter'](_0x555e02=>'attribute'==_0x555e02['type']);this['_refreshAttributeSuggestionsChain'](_0x39e780);const _0x34d61b=_0x2fbf05['filter'](_0x5e012f=>!_0x5e012f['isMultiRange']&&'attribute'!=_0x5e012f['type']),_0x319ac3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec935=>!_0x3ec935['isMultiRange']&&'attribute'!=_0x3ec935['type']),_0xf91a11=_0x319ac3['filter'](_0x35c8f2=>!_0x2be54e['has'](_0x35c8f2)),_0x24f1e1=new Map(_0x319ac3['map'](_0x3fbc0d=>[_0x3fbc0d,this['_suggestionFactory']['getSuggestionCallback'](_0x3fbc0d['type'],_0x3fbc0d['subType'],'chain')])),_0xbef21f=new Map(_0x319ac3['map'](_0x43daf9=>[_0x43daf9,_0x43daf9['getFirstRange']()])),_0x52d17a=new Set(),_0x3792e3=new Set();for(let _0x351696=0x0;_0x351696<_0x34d61b['length'];_0x351696++)_0x33b7df(_0x34d61b[_0x351696],_0x34d61b,_0x351696+0x1);for(let _0x590d23=0x0;_0x590d23<_0x34d61b['length'];_0x590d23++)_0x33b7df(_0x34d61b[_0x590d23],_0xf91a11,0x0);const _0x4675cc=new Set();for(let _0x243d96=0x0;_0x243d96<_0x34d61b['length'];_0x243d96++){const _0x36decc=_0x34d61b[_0x243d96];!_0x3792e3['has'](_0x36decc)&&_0x36decc['previous']&&(_0x4675cc['add'](_0x36decc['previous']),_0x36decc['previous']['next']===_0x36decc&&(_0x36decc['previous']['next']=null),_0x36decc['previous']=null),!_0x52d17a['has'](_0x36decc)&&_0x36decc['next']&&(_0x4675cc['add'](_0x36decc['next']),_0x36decc['next']['previous']===_0x36decc&&(_0x36decc['next']['previous']=null),_0x36decc['next']=null);}function _0x33b7df(_0x3bf5f7,_0x566786,_0x18bc79){for(let _0x390aa6=_0x18bc79;_0x390aa6<_0x566786['length'];_0x390aa6++){const _0x578b08=_0x4badb1(_0x3bf5f7,_0x566786[_0x390aa6]);_0x578b08&&(_0x578b08[0x0]['next']=_0x578b08[0x1],_0x578b08[0x1]['previous']=_0x578b08[0x0],_0x52d17a['add'](_0x578b08[0x0]),_0x3792e3['add'](_0x578b08[0x1]));}}function _0x4badb1(_0x4c52e1,_0x15fff4){if(_0x4c52e1['author']['id']!==_0x15fff4['author']['id'])return null;const _0x5b66c4=_0x24f1e1['get'](_0x4c52e1)(_0x4c52e1,_0x15fff4,_0xbef21f['get'](_0x4c52e1),_0xbef21f['get'](_0x15fff4));return _0x5b66c4&&_0x24f1e1['get'](_0x15fff4)(_0x4c52e1,_0x15fff4,_0xbef21f['get'](_0x4c52e1),_0xbef21f['get'](_0x15fff4))?_0x5b66c4[0x1]['commentThread']&&_0x5b66c4[0x1]['commentThread']['length']?null:_0x5b66c4:null;}_0x4675cc['size']&&this['_refreshSuggestionsChain'](_0x4675cc);}['_refreshAttributeSuggestionsChain'](_0x620a67){if(0x0==_0x620a67['length'])return;const _0x5d3f6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8de9d9=>'attribute'==_0x8de9d9['type']&&_0x8de9d9['_isDataLoaded']),_0x750023=[],_0x54a362=new Map();for(const _0x279449 of _0x5d3f6c){const _0x3a2e3c=_0x308b95(_0x279449['attributes']);_0x54a362['has'](_0x3a2e3c)||(_0x54a362['set'](_0x3a2e3c,_0x750023['length']),_0x750023['push']([])),_0x750023[_0x54a362['get'](_0x3a2e3c)]['push'](_0x279449);}!(function(){_0x750023['sort']((_0x52bc8b,_0x526686)=>{const _0x3175f2=_0x52bc8b[0x0]['createdAt'],_0x484720=_0x526686[0x0]['createdAt'];return _0x3175f2==_0x484720?_0x52bc8b[0x0]['attributes']['groupId']<_0x526686[0x0]['attributes']['groupId']?-0x1:0x1:_0x3175f2<_0x484720?-0x1:0x1;});for(const _0x47646c of _0x750023)_0x47646c['sort']((_0x38ebec,_0x4eb81f)=>_0x38ebec['id']<_0x4eb81f['id']?-0x1:0x1);}());for(let _0x47c741=0x0;_0x47c741<_0x750023['length'];_0x47c741++){if(0x0==_0x750023[_0x47c741]['length'])continue;const _0x1f00cb=[];for(let _0x5e2fb6=_0x47c741+0x1;_0x5e2fb6<_0x750023['length'];_0x5e2fb6++)0x0!=_0x750023[_0x5e2fb6]['length']&&_0x1783ce(_0x750023[_0x47c741],_0x750023[_0x5e2fb6])&&_0x1f00cb['push'](_0x5e2fb6);for(const _0xc71d67 of _0x1f00cb)_0x750023[_0x47c741]=_0x750023[_0x47c741]['concat'](_0x750023[_0xc71d67]),_0x750023[_0xc71d67]=[];}for(const _0x587a7c of _0x750023)for(let _0x1f3543=0x0;_0x1f3543<_0x587a7c['length'];_0x1f3543++){const _0x3f6702=_0x587a7c[_0x1f3543+0x1]||null;_0x587a7c[_0x1f3543]['next']!==_0x3f6702&&(_0x587a7c[_0x1f3543]['next']=_0x3f6702);}for(const _0x2109ba of _0x750023)for(let _0x29e65a=0x0;_0x29e65a<_0x2109ba['length'];_0x29e65a++){const _0xb3032d=_0x2109ba[_0x29e65a-0x1]||null;_0x2109ba[_0x29e65a]['previous']!==_0xb3032d&&(_0x2109ba[_0x29e65a]['previous']=_0xb3032d);}function _0x1783ce(_0x475d91,_0x4d56b5){return(_0x475d91[0x0]['attributes']['groupId']===_0x4d56b5[0x0]['attributes']['groupId']||_0x475d91[0x0]['author']===_0x4d56b5[0x0]['author'])&&(!!function(_0x4b8c3f,_0x49797b){return!_0x4b8c3f['hasComments']&&!_0x49797b['hasComments']||(!_0x4b8c3f['hasComments']||!_0x49797b['hasComments'])&&(!!(_0x4b8c3f['hasComments']&&_0x49797b['createdAt']<_0x4b8c3f['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x49797b['hasComments']&&_0x4b8c3f['createdAt']<_0x49797b['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x475d91[0x0],_0x4d56b5[0x0])&&(!!ct(lt(_0x475d91[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x4d56b5[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x475d91[0x0]['attributes']['groupId']==_0x4d56b5[0x0]['attributes']['groupId']||_0x475d91[0x0]['attributes']['trackingSessionId']===_0x4d56b5[0x0]['attributes']['trackingSessionId']&&(!!_0x475d91['every'](_0x1e02a2=>_0x4d56b5['some'](_0x402b37=>_0x1e02a2['getFirstRange']()['isEqual'](_0x402b37['getFirstRange']())))&&_0x4d56b5['every'](_0xa00b7=>_0x475d91['some'](_0x51bb5a=>_0xa00b7['getFirstRange']()['isEqual'](_0x51bb5a['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x44b072){const _0x4b32b2=Array['from'](_0x44b072),_0x6998e3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x45709d=_0x6998e3['filter'](_0x3aa2a9=>!_0x44b072['has'](_0x3aa2a9)),_0x30d007=new Map(_0x4b32b2['map'](_0x41278a=>[_0x41278a,this['_suggestionFactory']['getSuggestionCallback'](_0x41278a['type'],_0x41278a['subType'],'join')])),_0x20dea3=new Map(_0x6998e3['map'](_0x528b75=>[_0x528b75,_0x528b75['getRanges']()]));for(let _0x30aefc=0x0;_0x30aefc<_0x4b32b2['length'];_0x30aefc++)if(_0x3a5d6e(this,_0x4b32b2[_0x30aefc],_0x4b32b2,_0x30aefc+0x1))return!0x0;for(let _0x5e3f82=0x0;_0x5e3f82<_0x4b32b2['length'];_0x5e3f82++)if(_0x3a5d6e(this,_0x4b32b2[_0x5e3f82],_0x45709d,0x0))return!0x0;return!0x1;function _0x3a5d6e(_0x590b85,_0x1c8016,_0x268538,_0x52dcca){for(let _0x1c6df5=_0x52dcca;_0x1c6df5<_0x268538['length'];_0x1c6df5++){const _0x60da79=_0x268538[_0x1c6df5];if(_0x60da79['type']!==_0x1c8016['type']||_0x60da79['author']['id']!==_0x1c8016['author']['id']||_0x60da79['subType']!==_0x1c8016['subType'])continue;if(!mn(_0x1c8016,_0x60da79))continue;if('attribute'==_0x1c8016['type']&&_0x1c8016['data']['oldValue']!=_0x60da79['data']['oldValue'])continue;if('attribute'==_0x1c8016['type']&&_0x590b85['_suggestionsConversion']['isBlockAttribute'](_0x1c8016['data']['key']))continue;if('formatBlock'==_0x1c8016['type']){const _0x3cad7c=_0x590b85['editor']['model'],_0x43bdf2=_0x1c8016['getContainedElement']();if(_0x43bdf2&&(_0x3cad7c['schema']['isObject'](_0x43bdf2)||_0x3cad7c['schema']['isLimit'](_0x43bdf2)))continue;}const _0x4a7bdb=_0x30d007['get'](_0x1c8016),_0x331b29=_0x20dea3['get'](_0x1c8016),_0x23f3c8=_0x20dea3['get'](_0x60da79),_0x494751=_0x1c8016['commentThread']&&_0x1c8016['commentThread']['length'],_0x28be8e=_0x60da79['commentThread']&&_0x60da79['commentThread']['length'];if(!_0x494751&&_0x4a7bdb(_0x23f3c8,_0x331b29))return _0x590b85['_joinSuggestions'](_0x60da79,_0x1c8016),_0x20dea3['delete'](_0x1c8016),!0x0;if(!_0x28be8e&&_0x4a7bdb(_0x331b29,_0x23f3c8))return _0x590b85['_joinSuggestions'](_0x1c8016,_0x60da79),_0x20dea3['delete'](_0x60da79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32411c,_0x4d0cd9){if(_0x32411c['isMultiRange']){for(const _0x329bdd of _0x4d0cd9['getRanges']())_0x32411c['addRange'](_0x329bdd);}else{const _0x5ac1c5=_0x4d0cd9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32411c,this['_model']['createRange'](_0x32411c['getFirstRange']()['start'],_0x5ac1c5));}_0x4d0cd9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2969c6,_0x5d148d,_0x316330){const _0x49ab0f=_0x2969c6['startsWith']('format')||_0x2969c6['startsWith']('attribute')?'FORMATTING':_0x2969c6['toUpperCase']();return St(this['editor']['locale'],_0x5d148d+'_'+_0x49ab0f+'_SUGGESTION_ANNOUNCEMENT',_0x316330);}['_initAriaMarkerChangeAnnouncements'](){const _0x30a84f=this['editor'];if(!_0x30a84f['ui'])return;const {ariaLiveAnnouncer:_0x3f7f6e}=_0x30a84f['ui'];et(this['_model'],({left:_0x516974,entered:_0x12a89f})=>{for(const _0x5a733e of _0x516974){const {group:_0x910f97,type:_0x5e43bd}=tt(_0x5a733e['name']);if('suggestion'===_0x910f97){_0x3f7f6e['announce'](this['_getMarkerAnnouncementText'](_0x5e43bd,'LEAVE'));break;}}for(const _0x2362a2 of _0x12a89f){const {group:_0x4daa0f,type:_0x2b6535}=tt(_0x2362a2['name']);if('suggestion'===_0x4daa0f){_0x3f7f6e['announce'](this['_getMarkerAnnouncementText'](_0x2b6535,'ENTER',_0xd49997(_0x3b6ffc)));break;}}});}['_processAttributeChanges'](_0x1278ee){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4a5ecc=this['editor'],_0x2eef2=_0x4a5ecc['model']['document']['differ']['getChanges']();if(0x0==_0x2eef2['length'])return!0x1;const _0x3a17d4=[],_0x1bd5db=_0x2eef2['filter'](_0x18898f=>'attribute'==_0x18898f['type']),_0x377afb=_0x2eef2['filter'](_0x5887b1=>'insert'==_0x5887b1['type']&&'$text'!=_0x5887b1['name']),_0x4e6d38=_0x2eef2['filter'](_0x381cd2=>'remove'==_0x381cd2['type']&&'$text'!=_0x381cd2['name']);for(const _0x1c2cc1 of _0x1bd5db)_0x3a17d4['push']({'key':_0x1c2cc1['attributeKey'],'newValue':_0x1c2cc1['attributeNewValue'],'oldValue':_0x1c2cc1['attributeOldValue'],'range':hn(_0x1c2cc1['range'],_0x4a5ecc['model'])});for(const _0x436840 of _0x377afb){const _0x2679aa=_0x4e6d38['find'](_0x2f5958=>_0x2f5958['position']['isEqual'](_0x436840['position']));_0x2679aa&&_0x3a17d4['push']({'key':en,'newValue':_0x436840['name'],'oldValue':_0x2679aa['name'],'range':_0x4a5ecc['model']['createRangeOn'](_0x436840['position']['nodeAfter'])});}return 0x0!=_0x3a17d4['length']&&this['_reduceExistingSuggestions'](_0x1278ee,_0x3a17d4);}['_processAttributeSuggestions'](_0x35f86c){let _0x57a1d1=!0x1;const _0x3e3cb7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x405384=>_0x405384['data']['newRange']&&_0x405384['name']['startsWith']('suggestion:attribute:'));for(const _0x47fdc2 of _0x3e3cb7){const {subType:_0x566d0f,id:_0x58b1bd}=tt(_0x47fdc2['name']),_0x46ffed=_0x566d0f['split']('|')[0x0];for(const _0x418c7d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x418c7d['id']!=_0x58b1bd&&'attribute'==_0x418c7d['type']&&_0x418c7d['data']&&_0x418c7d['data']['key']==_0x46ffed&&_0x418c7d['getFirstRange']()['isIntersecting'](_0x47fdc2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x418c7d,_0x47fdc2['data']['newRange'],_0x35f86c),_0x57a1d1=!0x0);}return _0x57a1d1;}['recordAttributeChanges'](_0x2efe25){this['_recordAttributeSuggestions']=!0x0,_0x2efe25();}['_reduceExistingSuggestions'](_0x4e2f12,_0x3d653c){if(0x0==_0x3d653c['length'])return!0x1;let _0x40b8f9=!0x1;for(const _0x4be044 of _0x3d653c){const _0x58a128=this['_findSuggestions'](_0x4be044['range'],'attribute')['filter'](_0x1a4cb6=>!_0x1a4cb6['meta']['isNextTo'])['map'](_0x10d884=>_0x10d884['suggestion']),_0x29dfb5=_0x308b95({'newValue':_0x4be044['newValue']});_0x58a128['filter'](_0x347890=>{const [_0xe748d,_0x3deddd]=_0x347890['subType']['split']('|');return _0xe748d==_0x4be044['key']&&_0x3deddd!=_0x29dfb5;})['forEach'](_0xbf7b77=>{this['_reduceSuggestionAttributeRange'](_0xbf7b77,_0x4be044['range'],_0x4e2f12),_0x40b8f9=!0x0;});}return _0x40b8f9;}['_reduceSuggestionAttributeRange'](_0x140314,_0x3ff7bf,_0x403df2){const _0x4e475a=_0x140314['getFirstRange']()['getDifference'](_0x3ff7bf);0x0!==_0x4e475a['length']?0x1!==_0x4e475a['length']?this['_breakSuggestionMarker'](_0x140314,_0x3ff7bf['start'],_0x3ff7bf['end']):this['_setSuggestionRange'](_0x140314,_0x4e475a[0x0]):_0x403df2['removeMarker'](_0x140314['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e43e0){this['_editor']=_0x5e43e0,this['_model']=_0x5e43e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x27f25f,_0x1ea495,_0x1c89ba,_0x232718,_0x3002f8,_0x17eff0,_0xf3e965){return new yt(this['_model'],{'type':_0x27f25f,'subType':_0x1ea495,'id':_0x1c89ba,'originalSuggestionId':_0xf3e965,'author':_0x232718,'creator':_0x232718,'attributes':_0x3002f8,'onAttributesChange':_0x17eff0,'onAccept':(..._0x315f25)=>this['getSuggestionCallback'](_0x27f25f,_0x1ea495,'accept')(..._0x315f25),'onDiscard':(..._0x14090a)=>this['getSuggestionCallback'](_0x27f25f,_0x1ea495,'discard')(..._0x14090a)});}['registerCustomCallback'](_0x20d612,_0x25f78c,_0xbe984e,_0x3ec59e){const _0x29b17c=_0x20d612+':'+_0x25f78c+':'+_0xbe984e;this['_customCallbacks']['set'](_0x29b17c,_0x3ec59e);}['getSuggestionCallback'](_0x53426f,_0x28dd94,_0xc26d21){const _0xf97946=_0x53426f+':'+_0x28dd94+':'+_0xc26d21;return this['_customCallbacks']['get'](_0xf97946)||this['_defaultCallbacks']['get'](_0x53426f+':'+_0xc26d21);}['_registerDefaultCallbacks'](){const _0x3be28e=()=>!0x1,_0x4b1e3e=_0x3fbb24=>{_0x3fbb24['sort']((_0x300fc5,_0x101172)=>_0x300fc5['start']['isBefore'](_0x101172['start'])?0x1:-0x1),this['_model']['change'](_0x4afd48=>{for(const _0x2b646c of _0x3fbb24){let _0x29f1e2;_0x29f1e2=_0x2b646c['end']['isAtEnd']&&_0x2b646c['end']['parent']==_0x2b646c['start']['nodeAfter']?_0x4afd48['createSelection'](_0x2b646c['start']['nodeAfter'],'on'):_0x4afd48['createSelection'](_0x2b646c),this['_model']['deleteContent'](_0x29f1e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x11aa32=(_0x351b07,_0x1aa0db)=>{_0x1aa0db&&this['_model']['change'](_0x2b0036=>{const {commandName:_0x17dfa6,commandParams:_0x363c8c=[]}=_0x1aa0db,_0x473bd3=_0x351b07['map'](_0x32c232=>(on(_0x32c232)&&(_0x32c232=this['_model']['createRange'](_0x32c232['end'])),_0x32c232))['filter'](_0x1ab992=>'$graveyard'!==_0x1ab992['root']['rootName']);if(_0x473bd3['length']<0x1)return;const _0x4e2d64=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11acc6=>rt['fromRange'](_0x11acc6));_0x2b0036['setSelection'](_0x473bd3);for(const _0x47d6bd of this['_editor']['commands']['commands']())_0x47d6bd['refresh']();_0x363c8c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x17dfa6,..._0x363c8c);const _0x26263d=_0x4e2d64['filter'](_0x2a9fa3=>'$graveyard'!=_0x2a9fa3['root']['rootName']);_0x26263d['length']>0x0&&_0x2b0036['setSelection'](_0x26263d);for(const _0x24286e of _0x4e2d64)_0x24286e['detach']();});},_0x49e14d=(_0x1799c5,_0x5e6295)=>0x1==_0x1799c5['length']&&0x1==_0x5e6295['length']&&_0x1799c5[0x0]['end']['isEqual'](_0x5e6295[0x0]['start']),_0x1eb017=(_0x2ddf8d,_0x3af788,_0xb1a3bd,_0x58c8cb)=>fn(_0x2ddf8d,_0x3af788,_0xb1a3bd,_0x58c8cb)?[_0x2ddf8d,_0x3af788]:fn(_0x3af788,_0x2ddf8d,_0x58c8cb,_0xb1a3bd)?[_0x3af788,_0x2ddf8d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3be28e),this['_defaultCallbacks']['set']('insertion:discard',_0x4b1e3e),this['_defaultCallbacks']['set']('insertion:join',_0x49e14d),this['_defaultCallbacks']['set']('insertion:chain',_0x1eb017),this['_defaultCallbacks']['set']('deletion:accept',_0x4b1e3e),this['_defaultCallbacks']['set']('deletion:discard',_0x3be28e),this['_defaultCallbacks']['set']('deletion:join',_0x49e14d),this['_defaultCallbacks']['set']('deletion:chain',_0x1eb017),this['_defaultCallbacks']['set']('formatInline:accept',_0x11aa32),this['_defaultCallbacks']['set']('formatInline:discard',_0x3be28e),this['_defaultCallbacks']['set']('formatInline:join',_0x49e14d),this['_defaultCallbacks']['set']('formatInline:chain',_0x3be28e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x11aa32),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3be28e),this['_defaultCallbacks']['set']('formatBlock:join',_0x49e14d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3be28e),this['_defaultCallbacks']['set']('attribute:accept',_0x3be28e),this['_defaultCallbacks']['set']('attribute:discard',(_0x4abcb0,_0x431816)=>{if(!_0x431816)return;const _0xc6375a=this['_editor']['plugins']['get'](_0x473fe4);this['_model']['change'](_0x3272f6=>{if('$elementName'==_0x431816['key'])for(const _0x391b52 of _0x4abcb0){const _0x52f240=_0x391b52['start']['nodeAfter'],_0x28148a=_0x431816['oldValue'];_0x3272f6['rename'](_0x52f240,_0x28148a);}else{if(_0xc6375a['isBlockAttribute'](_0x431816['key'])){for(const _0x32e74c of _0x4abcb0)void 0x0!==_0x431816['oldValue']?_0x3272f6['setAttribute'](_0x431816['key'],_0x431816['oldValue'],_0x32e74c['start']['nodeAfter']):_0x3272f6['removeAttribute'](_0x431816['key'],_0x32e74c['start']['nodeAfter']);}else{for(const _0x3fdf19 of _0x4abcb0)_0x431816['oldValue']?_0x3272f6['setAttribute'](_0x431816['key'],_0x431816['oldValue'],_0x3fdf19):_0x3272f6['removeAttribute'](_0x431816['key'],_0x3fdf19);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x49e14d);}};function rn(_0xc64ddb,_0x1a28da,_0x4fe3c5){for(const _0x5a29da of _0x1a28da['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a29da['root']==_0x5a29da)return!0x1;if(!_0x4fe3c5['containsItem'](_0x5a29da))return!0x1;if(_0xc64ddb['isObject'](_0x5a29da)||_0xc64ddb['isLimit'](_0x5a29da))return!0x0;}return!0x1;}function on(_0x550c6b){return _0x550c6b['end']['parent']==_0x550c6b['start']['nodeAfter']&&_0x550c6b['end']['isAtStart'];}function an(_0x5371e9,_0x1e081b,_0x33d6d7,_0x267ab3){const _0x46374e=_0xbd02c5=>!_0xbd02c5['item']['is']('$textProxy')&&!_0x267ab3['isObject'](_0xbd02c5['item']),_0x4ab8f6=_0x5371e9['start']['getLastMatchingPosition'](_0x46374e),_0x18488b=_0x5371e9['end']['getLastMatchingPosition'](_0x46374e,{'direction':'backward'});return(!_0x5371e9['start']['isEqual'](_0x4ab8f6)||!_0x5371e9['end']['isEqual'](_0x18488b))&&(_0x4ab8f6['isBefore'](_0x18488b)?_0x33d6d7['updateMarker'](_0x1e081b,{'range':_0x33d6d7['createRange'](_0x4ab8f6,_0x18488b)}):_0x33d6d7['removeMarker'](_0x1e081b),!0x0);}function cn(_0x1da7ac){return _0x308b95(_0x1da7ac);}function ln(_0xe62282){const _0x5b2e93=_0xe62282['start']['nodeAfter'];return _0x5b2e93&&_0x5b2e93['is']('element');}function un(_0x4f2f83){return on(_0x4f2f83)||function(_0x4a69ac){return _0x4a69ac['start']['parent']==_0x4a69ac['end']['nodeBefore']&&_0x4a69ac['start']['isAtEnd'];}(_0x4f2f83);}function dn(_0x26095f,_0x38c17b){try{const _0x1fb517=_0x26095f['getRange']();for(const _0x1f6215 of _0x38c17b)if(_0x26095f!==_0x1f6215&&_0x1fb517&&_0x1fb517['isIntersecting'](_0x1f6215['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0xe5ee20,_0x4d43cf){return null==_0xe5ee20['end']['nodeBefore']&&_0xe5ee20['end']['parent']==_0xe5ee20['start']['nodeAfter']?gn(_0xe5ee20['start']['nodeAfter'],_0x4d43cf):_0xe5ee20;}function gn(_0x48ecab,_0x5b6112){const _0x23d5f9=_0x5b6112['schema']['isObject'](_0x48ecab)||_0x5b6112['schema']['isSelectable'](_0x48ecab);return _0x5b6112['createRange'](_0x5b6112['createPositionAt'](_0x48ecab,'before'),_0x23d5f9?_0x5b6112['createPositionAfter'](_0x48ecab):_0x5b6112['createPositionAt'](_0x48ecab,'end'));}function fn(_0x125728,_0x8d4b5c,_0x2b4522,_0x249cc1){return!!mn(_0x125728,_0x8d4b5c)&&_0x2b4522['end']['isEqual'](_0x249cc1['start']);}function mn(_0x3ae7a3,_0x30b286){if(!_0x3ae7a3['_isDataLoaded']||!_0x30b286['_isDataLoaded'])return!0x1;const _0x1f9952=new Set(Object['keys'](_0x3ae7a3['attributes'])),_0xd4ea0e=new Set(Object['keys'](_0x30b286['attributes']));if(_0x1f9952['delete']('groupId'),_0xd4ea0e['delete']('groupId'),0x0==_0x1f9952['size']&&0x0==_0xd4ea0e['size'])return!0x0;if(_0x1f9952['size']!=_0xd4ea0e['size'])return!0x1;const _0x687c68={..._0x3ae7a3['attributes']},_0xaaaef4={..._0x30b286['attributes']};return delete _0x687c68['groupId'],delete _0xaaaef4['groupId'],JSON['stringify'](_0x687c68)==JSON['stringify'](_0xaaaef4);}function En(_0x2f506b,_0x598190){const _0x2ed916=Tn(_0x2f506b['attributes']),_0x5d8e8d=Tn(_0x598190);if(!_0x2f506b['_isDataLoaded'])return!0x1;if(!ct(_0x2ed916['@ai'],_0x5d8e8d['@ai']))return!0x1;for(const _0x4a6347 of Object['keys'](_0x5d8e8d))if(!ct(_0x2ed916[_0x4a6347],_0x5d8e8d[_0x4a6347]))return!0x1;return!0x0;}function Tn(_0x2a1eee){const _0x185803=Object['assign']({},_0x2a1eee);return delete _0x185803['skipNestingCheck'],delete _0x185803['tablePasteChainId'],_0x185803;}function _n(_0x5643ce){return _0x5643ce['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
+ _0x511d46();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x28777c,_0xfc38d5,_0x15aa84,_0x26a639){super(),this['model']=_0xfc38d5,this['view']=_0x15aa84,this['commentThreadController']=_0x26a639,this['_editor']=_0x28777c,this['_acceptCommand']=_0x28777c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x28777c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x551865,_0x1f9f54)=>_0x551865||_0x1f9f54),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x140209=>_0x140209&&this['_editor']['model']['canEditAt'](_0xfc38d5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d1d3b=>_0x3d1d3b&&this['_editor']['model']['canEditAt'](_0xfc38d5['getRanges']())),this['_pendingAction']=null,_0x15aa84['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x15aa84,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x15aa84,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x15aa84,'change:isDirty',()=>{_0x15aa84['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 _0x58ad9a=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58ad9a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x491fa1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b28a5,_0x26a9a4,_0x4c624c,_0x54073b){super(_0x5b28a5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x56223e(_0x5b28a5,St(_0x5b28a5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26a9a4['authoredAt']),this['bind']('authoredAt')['to'](_0x26a9a4),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',_0x26a9a4,'authoredAt',this,'descriptionParts',(_0x43c943,_0x2564d7,_0x45a3da)=>{const _0x42ee0b=_0x45a3da['map'](_0x14c0d2=>pt(_0x14c0d2['content']))['join']('.\x20')+'.',_0x56fc1f=_0x26a9a4['aiSource']&&'author'===_0x54073b['showAISource']?_0x54073b['aiAuthor']['name']:_0x26a9a4['author']['name'],_0x327fcd=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x43c943-0x1,_0x56fc1f,_0x2564d7?_0x54073b['formatDateTime'](_0x2564d7):'',new DOMParser()['parseFromString'](_0x42ee0b,'text/html')['body']['textContent']]);return _0x26a9a4['aiSource']&&'pill'===_0x54073b['showAISource']?_0x327fcd+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x327fcd;}),this['focusables']=new _0x64c26e(),this['focusTracker']=new _0x573918(),this['keystrokes']=new _0x2a1e14(),this['focusCycler']=new _0x2c0173({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a9cb2=>_0x3a9cb2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26a9a4,this['_localUser']=_0x4c624c,this['_config']=_0x54073b,_0x54073b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x31015e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x36f49d}=this['_config'];this['commentsListView']=new _0x36f49d(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',_0x5233bf=>_0x5233bf+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4eb67f,_0x3b9a32)=>_0x4eb67f||!!_0x3b9a32);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2e35e4}=this['_config'],_0x13f886=new _0x2e35e4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ce20e=_0x13f886['commentInputView'];return _0x13f886['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ce20e,'value',(_0x480514,_0x422924,_0x5cf090)=>!!_0x5cf090||_0x480514&&!_0x422924),_0x4ce20e['on']('submit',(_0x5075c5,_0x265de7)=>{this['fire']('addComment',_0x265de7),_0x4ce20e['editor']['setData']('');}),_0x4ce20e['on']('cancel',()=>this['focus']()),_0x4ce20e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13f886;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0xc69c24,_0x3141d8,_0x46b0c9,_0x3528a1){super(_0xc69c24,_0x3141d8,_0x46b0c9,_0x3528a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5e5001=>_0x5e5001&&_0x5e5001[0x0]?_0x5e5001[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x50a092,_0xd9084)=>{let _0x12b277='';for(const _0x3af16a of _0x50a092)_0x12b277+='<p>'+pt(_0x3af16a['content'],_0x3af16a['color'])+'</p>';return _0xd9084?_0x12b277:nt(_0x12b277,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3528a1['SuggestionView'](_0xc69c24,_0x3141d8,{'formatDateTime':_0x3528a1['formatDateTime'],'showAISource':_0x3528a1['showAISource'],'aiAuthor':_0x3528a1['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 _0xce28cf=this['bindTemplate'],_0x30722e=[this['suggestionView']];return this['commentsListView']&&_0x30722e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x30722e['push'](this['commentThreadInputView']),_0x30722e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xce28cf['if']('isActive','ck-suggestion-wrapper--active'),_0xce28cf['to']('type',_0x2d5c33=>'ck-suggestion-'+_0x2d5c33),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':_0xce28cf['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x30722e};}['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 _0x491fa1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2b1300,_0x335b31,_0x9295e1){super(_0x2b1300),this['_model']=_0x335b31,this['_config']=_0x9295e1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x335b31),this['acceptButton']=this['_createButton'](St(_0x2b1300,'Accept\x20suggestion'),_0x3ddd3b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x2b1300,'Discard\x20suggestion'),_0x3f178c,'ck-suggestion--discard','discardSuggestion','sw');const _0x2bdc89=!!_0x335b31['aiSource']&&'author'===_0x9295e1['showAISource'],_0xb17224=_0x2bdc89?this['_createAIUser'](_0x9295e1['aiAuthor']):_0x335b31['author'],_0x386f9c=_0x2bdc89&&!_0x9295e1['aiAuthor']['avatar']?_0x4a0d2e:void 0x0;this['userView']=new _0x307be0(_0x2b1300,_0xb17224,this['getUserViewNotificationText'](),_0x386f9c),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x64c26e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x573918(),this['keystrokes']=new _0x2a1e14(),this['focusCycler']=new _0x2c0173({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6f25e7=>_0x6f25e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3881c5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3881c5['innerHTML']=this['description'],this['on']('change:description',(_0x59cc92,_0x41a0ed,_0x3df1e0)=>{_0x3881c5['innerHTML']=_0x3df1e0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x118f12=this['bindTemplate'],_0x1dcda4=[{'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':_0x118f12['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x118f12['to']('authoredAt',_0x39191b=>this['_config']['formatDateTime'](_0x39191b))}]}]},{'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']&&_0x1dcda4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3084a5=new _0x17faaf(this['locale']);_0x3084a5['set']({'icon':_0x2a8d5f,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x1dcda4['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3084a5]});}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':_0x1dcda4}]};}['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'](_0x3ab192){return new _0x3bb289({'id':'ck-ai-author','name':_0x3ab192['name'],'avatar':_0x3ab192['avatar'],'color':new _0x2119fb(0x0)});}['_createButton'](_0x3bbfe4,_0x4664d2,_0x2aa07a,_0x3086bc,_0x5c23f3){const _0x95ff29=new _0x7d9c52(this['locale']);return _0x95ff29['set']({'label':_0x3bbfe4,'icon':_0x4664d2,'tooltip':!0x0,'tooltipPosition':_0x5c23f3}),_0x95ff29['extendTemplate']({'attributes':{'class':_0x2aa07a}}),_0x95ff29['on']('execute',()=>{this['fire'](_0x3086bc,this['_model']['id']);}),_0x95ff29;}['_setupKeyboardNavigation'](){const _0x5b4072=this['element'];this['keystrokes']['listenTo'](_0x5b4072);for(const _0x24a25e of this['focusables'])this['focusTracker']['add'](_0x24a25e['element']),this['keystrokes']['listenTo'](_0x24a25e['element']);this['keystrokes']['set']('enter',(_0x50f63d,_0xcba2dc)=>{_0x5b4072===_0x50f63d['target']&&(this['focusCycler']['focusFirst'](),_0xcba2dc());}),this['keystrokes']['set']('esc',(_0x43993c,_0x2a2bf6)=>{_0x5b4072!==_0x43993c['target']&&(this['focus'](),_0x2a2bf6());});}},kn=class extends _0x7848c6{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x27edda,_0x4a356a,_0x545491,_0x139dc1];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x599159){super(_0x599159),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16e66a=this['editor']['config'];_0x16e66a['define']('trackChanges.SuggestionThreadView',An),_0x16e66a['define']('trackChanges.SuggestionView',bn),_0x16e66a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16e66a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4072d4,_0x3cee59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x171333,_0x1adcfc]of this['_handleControllerBuffer']){const _0x46f2a5=this['_suggestionToController']['has'](_0x171333);_0x46f2a5||_0x1adcfc?_0x46f2a5&&_0x1adcfc&&this['_destroyController'](_0x171333):this['_initializeController'](_0x171333);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x139dc1)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4072d4,_0x3cee59);}['init'](){const _0x32c1f8=this['editor'],_0x25fe08=_0x32c1f8['plugins']['get'](nn),_0xdf605b=_0x32c1f8['plugins']['get'](_0x545491),_0x161297=_0x32c1f8['plugins']['get'](_0x139dc1),_0x4be9bd=_0x32c1f8['plugins']['get'](_0x4a356a);this['_addUIComponentsToFactory'](),_0x161297['addSourceCollector'](()=>{const _0x54cfdd=[];for(const [_0x4a6ae7,_0x531135]of Array['from'](this['_suggestionToController'])){const _0x5608d9=_0x4a6ae7['getAllAdjacentSuggestions'](),_0x4cfe5c=[];for(const _0x3742ef of _0x5608d9){if(!_0x3742ef['isInContent'])continue;if(_0x3742ef['isMultiRange']){_0x4cfe5c['push'](..._0x3742ef['getRanges']());continue;}const _0x40dd19=_0x3742ef['getFirstRange']();if(_0x4cfe5c['length']>0x0){const _0x4e2f33=_0x4cfe5c[0x0]['getJoined'](_0x40dd19);if(_0x4e2f33){_0x4cfe5c[0x0]=_0x4e2f33;continue;}}_0x4cfe5c['push'](_0x40dd19);}_0x54cfdd['push']([_0x531135['view'],_0x4cfe5c]);}return _0x54cfdd;}),this['listenTo'](_0x25fe08,'suggestionLoaded',(_0x4935b1,_0x116879)=>{this['listenTo'](_0x116879,'change:previous',(_0x3f9c63,_0x51b421,_0x598b0f,_0x11988a)=>{_0x116879['isInContent']&&(null==_0x598b0f?(this['_updateController'](_0x11988a['head']),this['_handleSuggestionControllerDelayed'](_0x116879,!0x1)):(this['_updateController'](_0x598b0f['head']),null==_0x11988a&&this['_handleSuggestionControllerDelayed'](_0x116879,!0x0)));}),null!==_0x116879['previous']?this['_updateController'](_0x116879['head']):this['_handleSuggestionControllerDelayed'](_0x116879,!0x1);}),this['listenTo'](_0x25fe08,'suggestionUnloaded',(_0x5a836c,_0x3d1ed0,_0x5b422e)=>{this['stopListening'](_0x3d1ed0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d1ed0),this['_suggestionToController']['has'](_0x3d1ed0)&&this['_destroyController'](_0x3d1ed0),_0x5b422e&&this['_updateController'](_0x5b422e['head']);}),this['listenTo'](_0x25fe08,'suggestionChanged',(_0xc19fff,_0x2369ed)=>{this['_updateController'](_0x2369ed);}),this['listenTo'](_0xdf605b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4be9bd,'addComment',(_0x2e3917,{threadId:_0x52e817,isFromAdapter:_0x4d104e})=>{if(_0x4d104e||!_0x25fe08['hasSuggestion'](_0x52e817))return;const _0x390bf3=_0x25fe08['getSuggestion'](_0x52e817);this['_suggestionToController']['get'](_0x390bf3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd9ddc7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14ae53;for(const _0xee3625 in _0xd9ddc7){const _0xe3e446=_0xee3625,_0x1d9c9b=_0xd9ddc7[_0xe3e446];if('trackChangesLicenseKeyValid'==_0x1d9c9b||'trackChangesLicenseKeyInvalid'==_0x1d9c9b||'trackChangesLicenseKeyExpired'==_0x1d9c9b||'trackChangesLicenseKeyDomainLimit'==_0x1d9c9b||'trackChangesLicenseKeyNotAllowed'==_0x1d9c9b||'trackChangesLicenseKeyEvaluationLimit'==_0x1d9c9b||'trackChangesLicenseKeyUsageLimit'==_0x1d9c9b){delete _0xd9ddc7[_0xe3e446],_0x14ae53=_0x1d9c9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x14ae53&&_0xd9ddc7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1c543a){const _0x407c1a=this['_suggestionToController']['get'](_0x1c543a);return _0x407c1a&&this['editor']['plugins']['get'](_0x545491)['getByInnerView'](_0x407c1a['view'])||null;}['getSuggestionForAnnotation'](_0x301339){const _0x56d371=this['_viewToController']['get'](_0x301339['innerView']);return _0x56d371?_0x56d371['model']:null;}['_refreshActiveMarkers'](){const _0x1f0e61=this['editor']['plugins']['get'](_0x545491),_0x105aaf=this['editor']['plugins']['get'](nn),_0x4c8aca=Array['from'](_0x1f0e61['activeAnnotations'],_0x566193=>_0x566193['innerView'])['filter'](_0x47dfcd=>this['_viewToController']['has'](_0x47dfcd)),_0x459791=[];for(const _0x4cb5dc of _0x4c8aca){const _0x18ad3e=this['_viewToController']['get'](_0x4cb5dc)['model']['getAllAdjacentSuggestions']();_0x459791['push'](..._0x18ad3e['reduce']((_0x3a9f5d,_0x315a04)=>[..._0x3a9f5d,..._0x315a04['getMarkerNames']()],[]));}_0x105aaf['activeMarkers']=_0x459791;}['_addUIComponentsToFactory'](){const _0x51fe3e=this['editor'],_0x66f902=_0x51fe3e['locale'],_0x4a2c73=St(_0x66f902,'Track\x20changes'),_0x4266d7=new _0x1b20e0([{'type':'switchbutton','model':new _0x2fd6d8({'withText':!0x0,'isToggleable':!0x0,'label':_0x4a2c73,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2fd6d8({'withText':!0x0,'label':St(_0x66f902,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fd6d8({'withText':!0x0,'label':St(_0x66f902,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fd6d8({'withText':!0x0,'label':St(_0x66f902,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fd6d8({'withText':!0x0,'label':St(_0x66f902,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51fe3e['plugins']['has']('TrackChangesPreview')&&_0x4266d7['addMany']([{'type':'separator'},{'type':'button','model':new _0x2fd6d8({'withText':!0x0,'label':St(_0x66f902,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x227635 of _0x4266d7)if(Cn(_0x227635)){const _0x2b66e6=_0x51fe3e['commands']['get'](_0x227635['model']['commandName']);_0x227635['model']['bind']('isOn','isEnabled')['to'](_0x2b66e6,'value','isEnabled');}_0x51fe3e['ui']['componentFactory']['add']('trackChanges',_0x24ae9=>this['_createToolbarButton'](_0x24ae9,_0x4266d7,_0x4a2c73)),_0x51fe3e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ffcaa=>this['_createMenuBarMenu'](_0x2ffcaa,_0x4266d7,_0x4a2c73));}['_createToolbarButton'](_0x88ea76,_0x4b6634,_0x38dd5e){const _0xe0aa88=_0x3d2789(_0x88ea76,_0x5051e9),_0x2a13b1=this['editor']['commands']['get']('trackChanges');_0xe0aa88['buttonView']['set']({'tooltip':_0x38dd5e,'label':_0x38dd5e,'icon':_0x1db323}),_0xe0aa88['buttonView']['bind']('isOn')['to'](_0x2a13b1,'value'),_0xe0aa88['buttonView']['on']('execute',()=>{_0x2a13b1['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ecd00(_0xe0aa88,_0x4b6634,{'role':'menu'});const _0x5cca2a=[];for(const _0x47a001 of _0x4b6634)Cn(_0x47a001)&&_0x5cca2a['push'](this['editor']['commands']['get'](_0x47a001['model']['commandName']));const _0x522b34=_0xe0aa88['buttonView'];return _0x522b34['actionView']['unbind']('isEnabled'),_0x522b34['arrowView']['unbind']('isEnabled'),_0x522b34['actionView']['bind']('isEnabled')['to'](_0x2a13b1,'isEnabled'),_0x522b34['arrowView']['bind']('isEnabled')['toMany'](_0x5cca2a,'isEnabled',(..._0x54e9d7)=>_0x54e9d7['some'](_0x5ce7de=>_0x5ce7de)),_0xe0aa88['on']('execute',_0x37f05a=>{this['editor']['execute'](_0x37f05a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe0aa88;}['_createMenuBarMenu'](_0x513ba4,_0x3ff34f,_0x454ad9){const _0x29b84b=new _0x18b2d7(_0x513ba4),_0x1ed08d=this['editor']['commands']['get']('trackChanges');_0x29b84b['buttonView']['set']({'label':_0x454ad9,'icon':_0x1db323});const _0x22eb2a=new _0x3ba9f2(_0x513ba4);for(const _0x4020c3 of _0x3ff34f){if('separator'==_0x4020c3['type']){_0x22eb2a['items']['add'](new _0x256cc8(_0x513ba4));continue;}const _0xfddaa6=new _0x40485b(_0x513ba4,_0x29b84b),_0x3e2860=new _0x487b64(_0x513ba4),_0x5f59a1=_0x4020c3['model'];_0x3e2860['bind'](...Object['keys'](_0x5f59a1))['to'](_0x5f59a1),_0x3e2860['delegate']('execute')['to'](_0x29b84b),_0x3e2860['on']('execute',()=>{this['editor']['execute'](_0x5f59a1['commandName']),this['editor']['editing']['view']['focus']();}),_0xfddaa6['children']['add'](_0x3e2860),_0x22eb2a['items']['add'](_0xfddaa6);}return _0x29b84b['bind']('isEnabled')['to'](_0x1ed08d,'isEnabled'),_0x29b84b['panelView']['children']['add'](_0x22eb2a),_0x29b84b;}['_initializeController'](_0x3813ed){const _0xf0805d=this['editor'],_0x2f41c0=_0xf0805d['config'],_0x593879=_0xf0805d['plugins']['get'](_0x545491),_0x429d29=_0xf0805d['plugins']['get'](_0x4a356a),_0x2d16ad=_0xf0805d['plugins']['get'](_0x139dc1),_0x17f7b6=_0xf0805d['plugins']['get'](_0x27edda)['me'],_0x482237=_0x2f41c0['get']('trackChanges')['SuggestionThreadView'],_0x1b35f6=_0x2f41c0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x19ccac,CommentThreadInputView:_0xb6a46e}=_0xf0805d['plugins']['get']('CommentsUI');let _0x3187b2,_0x15ef64,_0xdfdae2;this['_annotationViews']['has'](_0x3813ed['id'])?(_0x15ef64=this['_annotationViews']['get'](_0x3813ed['id']),_0x3187b2=_0x15ef64['mainView']):(_0x3187b2=new _0x482237(_0xf0805d['locale'],_0x3813ed,_0x17f7b6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2f41c0['get']('comments.editorConfig'),'licenseKey':_0x2f41c0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2f41c0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2f41c0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2f41c0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x226177(_0x2f41c0['get']('locale'),_0xf0805d['locale']),'CommentView':_0x2f41c0['get']('comments')['CommentView'],'CommentsListView':_0x19ccac,'CommentThreadInputView':_0xb6a46e,'SuggestionView':_0x1b35f6,'showAISource':_0x2f41c0['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2f41c0['get']('trackChanges.aiAuthor'),'name':_0x2f41c0['get']('trackChanges.aiAuthor')?.['name']||St(_0xf0805d['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x3187b2['suggestionView']['acceptButton']['on']('execute',()=>{_0xf0805d['editing']['view']['focus']();}),_0x3187b2['suggestionView']['discardButton']['on']('execute',()=>{_0xf0805d['editing']['view']['focus']();}),_0x15ef64=_0x593879['createAnnotationView'](this['editor']['locale'],_0x3187b2),_0x15ef64['bind']('isDirty')['to'](_0x3187b2,'isDirty'),_0x15ef64['bind']('length')['to'](_0x3187b2),_0x15ef64['bind']('type')['to'](_0x3187b2,'type',_0x2d0e14=>'suggestion-'+_0x2d0e14),_0x3187b2['on']('escape',()=>{_0xdfdae2['fire']('escape');}),this['_annotationViews']['set'](_0x3813ed['id'],_0x15ef64));const _0x21868b=_0x429d29['createCommentThreadController'](_0x3813ed['commentThread'],_0x3187b2),_0x203225=new Ln(_0xf0805d,_0x3813ed,_0x3187b2,_0x21868b),_0x4df262=_0x3813ed['getAllAdjacentSuggestions']()['filter'](_0x471284=>_0x471284['isInContent']);_0x3187b2['descriptionParts']=_0xf0805d['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x4df262),this['_suggestionToController']['set'](_0x3813ed,_0x203225),this['_viewToController']['set'](_0x3187b2,_0x203225);const _0x25bed0=()=>{const _0x350898=[],_0x24fe5f=_0x3813ed['getAllAdjacentSuggestions']()['filter'](_0x3973f0=>_0x3973f0['isInContent']);for(const _0x1781b7 of _0x24fe5f)_0x350898['push'](..._0x1781b7['getMarkers']());return _0xc4398b(_0xf0805d['editing'],_0x350898);};_0xdfdae2=_0x593879['createAnnotation']({'view':_0x15ef64,'target':_0x25bed0,'type':()=>'suggestion-'+_0x203225['view']['type'],'isVisible':!!_0x25bed0()}),_0x429d29['_bindAnnotationToEditors'](_0x3187b2,_0xdfdae2),_0x593879['add'](_0xdfdae2),_0x2d16ad['registerAnnotation'](_0xdfdae2);}['_destroyController'](_0x3019f5){const _0x3cb660=this['editor']['plugins']['get'](_0x4a356a),_0x45d420=this['editor']['plugins']['get'](_0x545491),_0x31e7aa=this['_suggestionToController']['get'](_0x3019f5),_0x2afc44=_0x31e7aa['view'],_0xfacad7=_0x45d420['getByInnerView'](_0x2afc44);_0x3cb660['_unbindEditors'](_0x2afc44),_0xfacad7&&_0x45d420['remove'](_0xfacad7),this['_suggestionToController']['delete'](_0x3019f5),this['_viewToController']['delete'](_0x2afc44),_0x31e7aa['destroy']();}['_updateController'](_0x309cc1){if(!_0x309cc1['isInContent']||!this['_suggestionToController']['has'](_0x309cc1))return;const _0x30807e=this['editor']['plugins']['get'](nn),_0x31cc7f=this['_suggestionToController']['get'](_0x309cc1),_0x6c9233=_0x309cc1['getAllAdjacentSuggestions']();_0x31cc7f['view']['descriptionParts']=_0x30807e['descriptionFactory']['getDescriptions'](_0x6c9233);}['destroy'](){for(const _0x38e59b of this['_suggestionToController']['keys']())this['_destroyController'](_0x38e59b);for(const _0x173c29 of this['_annotationViews']['values']())_0x173c29['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x2da9ad){return'model'in _0x2da9ad;}var Rn=class extends _0x7848c6{static get['requires'](){return[nn,kn,_0x4f2626];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x491ef7){this['editor']['plugins']['get'](nn)['adapter']=_0x491ef7;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x7a152f){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x7a152f);}['getSuggestions']({skipNotAttached:_0x4cbc3c=!0x1,toJSON:_0x12b7a9=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x4cbc3c,'toJSON':_0x12b7a9});}['getSuggestion'](_0x2101d1){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x2101d1);}};const Nn=['Pagination'];var yn=class extends _0x7848c6{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x41e305=this['editor'];if(_0x41e305['config']['define']('trackChangesData.editorCreator',_0x5745fb=>{const _0x29df84=_0x41e305['model']['document']['getRootNames']()['reduce']((_0x5a260f,_0x3fd916)=>(_0x5a260f[_0x3fd916]='',_0x5a260f),{});return _0x41e305['constructor']['create'](_0x29df84,_0x5745fb);}),'function'!=typeof _0x41e305['config']['get']('trackChangesData')['editorCreator'])throw new _0x4bb6d3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x180d29){return On(this['editor'],!0x0,_0x180d29);}['getDataWithDiscardedSuggestions'](_0x14145b){return On(this['editor'],!0x1,_0x14145b);}},Sn=class extends _0x7848c6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bf4be){super(_0x4bf4be),this['result']='end',_0x4bf4be['editing']['view']['_overlayModeHint']='auto',_0x4bf4be['_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(_0x209cce){return void 0x0!==_0x209cce['getRootsAttributes'];}async function On(_0x35cae0,_0x169b57,_0xc3eab){const _0x4f7f04=_0x5d3ab2(_0x35cae0,Nn);if(_0x4f7f04['plugins']['push'](nn,Sn),Mn(_0x35cae0)){_0x4f7f04['roots']=Object['create'](null);for(const _0x282877 of _0x35cae0['model']['document']['getRootNames']())_0x4f7f04['roots'][_0x282877]={'modelAttributes':_0x35cae0['getRootAttributes'](_0x282877)};}const _0x37ba95=document['createDocumentFragment'](),_0x44f10f=_0x35cae0['config']['get']('trackChangesData')['editorCreator'],_0x2e7169=await _0x44f10f(_0x4f7f04,()=>function(_0x5c1283){const _0x3c6448=document['createElement']('div');return _0x5c1283['appendChild'](_0x3c6448),_0x3c6448;}(_0x37ba95));!function(_0x519ddf,_0x350ecc){const _0x23d420=_0x519ddf['model']['document']['getRootNames']()['reduce']((_0x17e6d6,_0x36a85b)=>(_0x17e6d6[_0x36a85b]=_0x519ddf['data']['get']({'rootName':_0x36a85b}),_0x17e6d6),{}),_0xd20c18=_0x519ddf['plugins']['get']('Users')['users']['map'](_0x40a39b=>({'id':_0x40a39b['id'],'name':_0x40a39b['name']})),_0x467b6c=_0x519ddf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2184ab=_0x519ddf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x262dbd=_0x350ecc['plugins']['get']('Users'),_0x44c3a4=_0x350ecc['plugins']['get']('TrackChangesEditing'),_0x39314b=_0x350ecc['plugins']['get']('CommentsRepository');for(const _0x5cb229 of _0x39314b['getCommentThreads']())_0x5cb229['remove']();for(const _0x1ffafc of _0xd20c18)_0x262dbd['getUser'](_0x1ffafc['id'])||_0x262dbd['addUser'](_0x1ffafc);_0x262dbd['me']||_0x262dbd['useAnonymousUser']();for(const _0x5cde6d of _0x2184ab)_0x39314b['addCommentThread'](_0x5cde6d);for(const _0x443df4 of _0x467b6c)_0x44c3a4['addSuggestionData'](_0x443df4);_0x350ecc['data']['set'](_0x23d420);}(_0x35cae0,_0x2e7169),_0x2e7169['execute'](_0x169b57?'acceptAllSuggestions':'discardAllSuggestions');const _0x548436=Mn(_0x2e7169)?_0x2e7169['getFullData'](_0xc3eab):_0x2e7169['data']['get'](_0xc3eab);return await _0x2e7169['destroy'](),_0x548436;}var wn=class extends _0x491fa1{['options'];constructor(_0xe64ec3,_0x5cfdc5){super(_0xe64ec3),this['options']=_0x5cfdc5,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'](_0x37dfb8,_0x132cab){if(!this['element'])return;const _0x3801be=[];for(const [_0x528645,_0x12f5ca]of _0x37dfb8){const _0x14a5e6=document['createElement']('div');_0x14a5e6['setAttribute']('data-ck-root-name',_0x528645),_0x14a5e6['className']=_0x12f5ca['classes']+'\x20ck-track-changes-preview__root-container',_0x14a5e6['innerHTML']=_0x12f5ca['content'],_0x3801be['push'](_0x14a5e6);}_0x132cab(this['element'],_0x3801be),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x562259{constructor(_0x28bf9e){super(_0x28bf9e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x10a45c=this['editor'],_0xac56d8=_0x10a45c['locale'],_0x4e8aaf=_0x10a45c['plugins']['get']('Dialog');let _0x4f10cd;const _0x182c72=function(_0x53a2ac){const _0x41c500={};if('editables'in _0x53a2ac['ui']['view']){for(const [_0x2024e9,_0x589b9e]of Object['entries'](_0x53a2ac['ui']['view']['editables']))_0x41c500[_0x2024e9]=_0x589b9e['element'];}else _0x41c500[_0x53a2ac['model']['document']['getRootNames']()[0x0]]=_0x53a2ac['ui']['view']['editable']['element'];return _0x41c500;}(_0x10a45c),_0x24d74d=function(_0x2690fb){let _0x6fc437=0x0;for(const _0x33a55a of Object['values'](_0x2690fb))_0x6fc437=Math['max'](_0x6fc437,_0x33a55a['getBoundingClientRect']()['width']);let _0x1cda05=0x0;for(const _0x1e9011 of Object['values'](_0x2690fb))_0x1cda05+=_0x1e9011['getBoundingClientRect']()['height'];const _0x1f5758=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x6fc437,'height':Math['min'](_0x1cda05,_0x1f5758)};}(_0x182c72);_0x4e8aaf['show']({'id':'finalContentPreview','title':St(_0xac56d8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0xac56d8,{'dialogRects':_0x24d74d}),'onHide':()=>{_0x4f10cd['detachFromDom']();},'onShow':()=>{_0x10a45c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x156aa8=>{const _0x23c522=this['_standarizeRootsData'](_0x156aa8,_0x10a45c,_0x182c72);_0x4e8aaf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x23c522,_0x10a45c['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f10cd=new _0x51b0ed(_0xac56d8,[_0x4e8aaf['view']]),_0x4f10cd['attachToDom'](),_0x4f10cd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x10a45c['once']('destroy',()=>{_0x4f10cd['detachFromDom']();});const _0x2d637e=_0x4e8aaf['view']['headerView']['class'];_0x4e8aaf['view']['headerView']['class']=_0x2d637e?_0x2d637e+'\x20ck-reset_all':'ck-reset_all',_0x4e8aaf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4e8aaf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1bdfb4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2422ff=_0x1bdfb4['previewMode'],_0x17bd33={};if('$labels'===_0x2422ff){for(const _0xcf7ece of _0x1bdfb4['getMergeFieldsIds']())_0x17bd33[_0xcf7ece]=_0x1bdfb4['getLabel'](_0xcf7ece)||_0xcf7ece;}else{const _0x1e0a61='$defaultValues'===_0x2422ff?_0x1bdfb4['getDefaultValues']():_0x1bdfb4['getDataSetValues'](_0x2422ff,!0x0);for(const _0x499232 of Object['entries'](_0x1e0a61)){const [_0xa05cdf,_0x386388]=_0x499232;_0x17bd33[_0xa05cdf]=null!==_0x386388?_0x386388:_0x1bdfb4['getLabel'](_0xa05cdf)||_0xa05cdf;}}return{'mergeFieldsData':_0x17bd33};}['_standarizeRootsData'](_0x40e81c,_0x7ae3ec,_0x1df314){let _0x16358e;_0x16358e='string'==typeof _0x40e81c?{[_0x7ae3ec['model']['document']['getRootNames']()[0x0]]:_0x40e81c}:_0x40e81c;const _0x2b2edc=this['_fixMediaEmbeds'](_0x16358e,_0x7ae3ec);return function(_0x30e2fa,_0x13d939){for(const [_0xcc943,_0x434f72]of _0x30e2fa)_0x434f72['classes']=_0x13d939[_0xcc943]['classList']['value']['replace']('ck-focused','');return _0x30e2fa;}(this['_sortRoots'](_0x7ae3ec)['reduce']((_0x3665b2,_0x436b59)=>(_0x3665b2['push']([_0x436b59,{'content':_0x2b2edc[_0x436b59],'classes':''}]),_0x3665b2),[]),_0x1df314);}['_fixMediaEmbeds'](_0x370bda,_0x17df68){if(!_0x17df68['plugins']['has']('MediaEmbedEditing'))return _0x370bda;const _0x3dd7a6=_0x17df68['plugins']['get']('MediaEmbedEditing');for(const [_0x132763,_0x54db83]of Object['entries'](_0x370bda)){const _0x43f3b4=document['createElement']('div');_0x43f3b4['innerHTML']=_0x54db83,_0x43f3b4['querySelectorAll']('figure.media')['forEach'](_0x37f16f=>{const _0x16d07b=_0x37f16f['querySelector']('oembed');if(_0x16d07b){const _0x4ecc2d=_0x16d07b['getAttribute']('url');if(_0x4ecc2d){const _0x566e5b=_0x3dd7a6['registry']['getMediaViewElement'](new ot(_0x17df68['editing']['view']['document']),_0x4ecc2d,{'elementName':'','renderForEditingView':!0x0}),_0x972827=document['createElement']('div');_0x972827['classList']['add']('ck-media__wrapper'),_0x566e5b['render'](_0x972827,_0x17df68['editing']['view']['domConverter']),_0x16d07b['replaceWith'](_0x972827);}}}),_0x370bda[_0x132763]=_0x43f3b4['innerHTML'];}return _0x370bda;}['_sortRoots'](_0x5c4401){if(!function(_0x37f0fd){return void 0x0!==_0x37f0fd['getRootsAttributes'];}(_0x5c4401))return _0x5c4401['model']['document']['getRootNames']();const _0x1cb208=[],_0xfcc230=new Map();for(const _0x3d7778 of _0x5c4401['model']['document']['getRootNames']()){const _0x342a1c=_0x5c4401['editing']['view']['getDomRoot'](_0x3d7778)['getClientRects']()['item'](0x0);_0x1cb208['push'](_0x3d7778),_0xfcc230['set'](_0x3d7778,_0x342a1c);}return _0x1cb208['sort']((_0x159193,_0x4ff371)=>{const _0x41d834=_0xfcc230['get'](_0x159193),_0x28daa8=_0xfcc230['get'](_0x4ff371);return _0x41d834['y']-_0x28daa8['y']||_0x41d834['x']-_0x28daa8['x'];}),_0x1cb208;}},Bn=class extends _0x7848c6{static get['requires'](){return[yn,_0xdf4572];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x394629){super(_0x394629),_0x394629['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x394629['config']['define']('trackChanges.preview.renderFunction',(_0x215a2b,_0x4023bc)=>{for(const _0xe4cb33 of _0x4023bc)_0x215a2b['appendChild'](_0xe4cb33);});}};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};