@ckeditor/ckeditor5-track-changes 48.5.1 → 48.5.2

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 (75) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.umd.js +1 -1
  3. package/dist/translations/ar.umd.js +1 -1
  4. package/dist/translations/ast.umd.js +1 -1
  5. package/dist/translations/az.umd.js +1 -1
  6. package/dist/translations/be.umd.js +1 -1
  7. package/dist/translations/bg.umd.js +1 -1
  8. package/dist/translations/bn.umd.js +1 -1
  9. package/dist/translations/bs.umd.js +1 -1
  10. package/dist/translations/ca.umd.js +1 -1
  11. package/dist/translations/cs.umd.js +1 -1
  12. package/dist/translations/da.umd.js +1 -1
  13. package/dist/translations/de-ch.umd.js +1 -1
  14. package/dist/translations/de.umd.js +1 -1
  15. package/dist/translations/el.umd.js +1 -1
  16. package/dist/translations/en-au.umd.js +1 -1
  17. package/dist/translations/en-gb.umd.js +1 -1
  18. package/dist/translations/en.umd.js +1 -1
  19. package/dist/translations/eo.umd.js +1 -1
  20. package/dist/translations/es-co.umd.js +1 -1
  21. package/dist/translations/es.umd.js +1 -1
  22. package/dist/translations/et.umd.js +1 -1
  23. package/dist/translations/eu.umd.js +1 -1
  24. package/dist/translations/fa.umd.js +1 -1
  25. package/dist/translations/fi.umd.js +1 -1
  26. package/dist/translations/fr.umd.js +1 -1
  27. package/dist/translations/gl.umd.js +1 -1
  28. package/dist/translations/gu.umd.js +1 -1
  29. package/dist/translations/he.umd.js +1 -1
  30. package/dist/translations/hi.umd.js +1 -1
  31. package/dist/translations/hr.umd.js +1 -1
  32. package/dist/translations/hu.umd.js +1 -1
  33. package/dist/translations/hy.umd.js +1 -1
  34. package/dist/translations/id.umd.js +1 -1
  35. package/dist/translations/it.umd.js +1 -1
  36. package/dist/translations/ja.umd.js +1 -1
  37. package/dist/translations/jv.umd.js +1 -1
  38. package/dist/translations/kk.umd.js +1 -1
  39. package/dist/translations/km.umd.js +1 -1
  40. package/dist/translations/kn.umd.js +1 -1
  41. package/dist/translations/ko.umd.js +1 -1
  42. package/dist/translations/ku.umd.js +1 -1
  43. package/dist/translations/lt.umd.js +1 -1
  44. package/dist/translations/lv.umd.js +1 -1
  45. package/dist/translations/ms.umd.js +1 -1
  46. package/dist/translations/nb.umd.js +1 -1
  47. package/dist/translations/ne.umd.js +1 -1
  48. package/dist/translations/nl.umd.js +1 -1
  49. package/dist/translations/no.umd.js +1 -1
  50. package/dist/translations/oc.umd.js +1 -1
  51. package/dist/translations/pl.umd.js +1 -1
  52. package/dist/translations/pt-br.umd.js +1 -1
  53. package/dist/translations/pt.umd.js +1 -1
  54. package/dist/translations/ro.umd.js +1 -1
  55. package/dist/translations/ru.umd.js +1 -1
  56. package/dist/translations/si.umd.js +1 -1
  57. package/dist/translations/sk.umd.js +1 -1
  58. package/dist/translations/sl.umd.js +1 -1
  59. package/dist/translations/sq.umd.js +1 -1
  60. package/dist/translations/sr-latn.umd.js +1 -1
  61. package/dist/translations/sr.umd.js +1 -1
  62. package/dist/translations/sv.umd.js +1 -1
  63. package/dist/translations/th.umd.js +1 -1
  64. package/dist/translations/ti.umd.js +1 -1
  65. package/dist/translations/tk.umd.js +1 -1
  66. package/dist/translations/tr.umd.js +1 -1
  67. package/dist/translations/tt.umd.js +1 -1
  68. package/dist/translations/ug.umd.js +1 -1
  69. package/dist/translations/uk.umd.js +1 -1
  70. package/dist/translations/ur.umd.js +1 -1
  71. package/dist/translations/uz.umd.js +1 -1
  72. package/dist/translations/vi.umd.js +1 -1
  73. package/dist/translations/zh-cn.umd.js +1 -1
  74. package/dist/translations/zh.umd.js +1 -1
  75. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1111ef,PendingActions as _0x3b38a1,Plugin as _0x42a28f}from'@ckeditor/ckeditor5-core';import{Annotations as _0x320e85,Comments as _0x21a992,CommentsRepository as _0x51a4b7,EditorAnnotations as _0x42e5e7}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x5f6c00,Collection as _0xcf0f12,FocusTracker as _0xc35427,KeystrokeHandler as _0x4aa419,ObservableMixin as _0x3d7812,getEnvKeystrokeText as _0x166bf7,insertToPriorityArray as _0x55b07f,logWarning as _0x26182a,priorities as _0x5ee963,uid as _0x5b5c0d}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x136f6e,IconCancel as _0x488d59,IconCheck as _0xcaba04,IconSparkle as _0x55a3ec,IconTrackChanges as _0x37c353}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x25c7c9,Dialog as _0x4820ab,FocusCycler as _0x3ae1a7,ListSeparatorView as _0x3d3b0b,MenuBarMenuListItemButtonView as _0x1b87e4,MenuBarMenuListItemView as _0x1d4268,MenuBarMenuListView as _0x3867d5,MenuBarMenuView as _0x490808,SplitButtonView as _0x1fbe25,UIModel as _0xc62c18,View as _0x38a93a,ViewCollection as _0x404e76,addListToDropdown as _0x4c17c9,createDropdown as _0x4a118d,normalizeColorOptions as _0x2e67d6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x11216e,CollaborationUserColor as _0x20d727,FOCUS_ANNOTATION_KEYSTROKE as _0x2e1548,LateFocusButtonView as _0x273023,PillView as _0xda9ac1,SuggestionsConversion as _0x407cac,User as _0x359f87,UserView as _0x57848d,Users as _0x3f25ff,fixElementSuggestionRange as _0x533f9b,getAllMarkersDomElementsSorted as _0x2dde48,getDateTimeFormatter as _0x4ba4af,hashObject as _0x5a9283,isInvalidAttributeOperation as _0x425365,sanitizeEditorConfig as _0x1d3fee,setupThreadKeyboardNavigation as _0x26f898,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x1111ef{['_enabledCommands'];constructor(_0x3cf3cc,_0x12af38){super(_0x3cf3cc),this['_enabledCommands']=_0x12af38,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 _0x79208c of this['editor']['commands']['commands']())_0x79208c['affectsData']&&!this['_enabledCommands']['has'](_0x79208c)&&_0x79208c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34c5ae of this['editor']['commands']['commands']())_0x34c5ae['affectsData']&&!this['_enabledCommands']['has'](_0x34c5ae)&&_0x34c5ae['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x1111ef{_suggestions;constructor(_0x20b4d3,_0x361f91){super(_0x20b4d3),this['_suggestions']=_0x361f91,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x551113){const _0x1377f6=this['_suggestions']['get'](_0x551113);if(!_0x1377f6)throw new _0x5f6c00('track-changes-accept-suggestion-not-found',this);const _0x3b74f4=_0x1377f6['getRanges']();this['editor']['model']['canEditAt'](_0x3b74f4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1377f6);}},pt=class extends _0x1111ef{_suggestions;constructor(_0x21d948,_0x2ddee9){super(_0x21d948),this['_suggestions']=_0x2ddee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x43a8f1){const _0x17019e=this['_suggestions']['get'](_0x43a8f1);if(!_0x17019e)throw new _0x5f6c00('track-changes-discard-suggestion-not-found',this);const _0xb8a229=_0x17019e['getRanges']();this['editor']['model']['canEditAt'](_0xb8a229)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x17019e);}};function Lt(_0x2e13ba,_0x25498e){let _0xdf862a='';return _0xdf862a+=_0x2e13ba['split']('*')['map']((_0xc104ee,_0x21f6a2)=>_0x21f6a2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0xc104ee)+'</span>':It(_0xc104ee))['join'](''),_0x25498e&&(_0xdf862a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25498e['value']+'\x22\x20title=\x22'+_0x25498e['title']+'\x22></span>'),_0xdf862a;}function It(_0x4abdb7){const _0x505876=document['createElement']('span');return _0x505876['innerText']=_0x4abdb7,_0x505876['innerHTML'];}function At(_0x239a15){return _0x239a15['sort']((_0x5a4274,_0x2db447)=>'attribute'===_0x5a4274['type']&&'attribute'!==_0x2db447['type']?-0x1:'attribute'!==_0x5a4274['type']&&'attribute'===_0x2db447['type']?0x1:'deletion'==_0x5a4274['type']&&'deletion'!=_0x2db447['type']?-0x1:'deletion'!=_0x5a4274['type']&&'deletion'==_0x2db447['type']?0x1:0x0);}function bt(_0x5bcd7c,_0x56daae){let _0x455f98,_0xf3900d=0x0;const _0x173e90=[],_0x171aed=_0x56daae['schema'];for(;_0xf3900d<_0x5bcd7c['length'];){const _0x1e9084=_0x5bcd7c[_0xf3900d],_0xe8de0f=_0x5bcd7c[_0xf3900d+0x1];_0x455f98||(_0x455f98=_0x56daae['createPositionBefore'](_0x1e9084)),kt(_0x56daae,_0x1e9084,_0xe8de0f)||(_0x173e90['push'](_0x56daae['createRange'](_0x455f98,_0x171aed['isObject'](_0x1e9084)?_0x56daae['createPositionAfter'](_0x1e9084):_0x56daae['createPositionAt'](_0x1e9084,'end'))),_0x455f98=null),_0xf3900d++;}return _0x173e90;}function kt(_0x495a20,_0x13198e,_0x657701){if(!_0x657701)return!0x1;const _0x323c42=_0x495a20['createPositionAfter'](_0x13198e),_0x518539=_0x495a20['createPositionBefore'](_0x657701);return _0x323c42['isTouching'](_0x518539);}function Ct(_0x22e8a5,_0x31ecd0,_0x2e308e){for(;_0x2e308e['length'];){const _0x2a5d88=_0x2e308e['splice'](0x0,0x64);_0x22e8a5['change'](()=>{for(const _0x2ea00a of _0x2a5d88)_0x2ea00a['isInContent']&&_0x31ecd0['execute'](_0x2ea00a['id']);});}}var Rt=class extends _0x1111ef{['_command'];_suggestions;constructor(_0x4f3969,_0x7165aa,_0x24cd20){super(_0x4f3969),this['_command']=_0x7165aa,this['_suggestions']=_0x24cd20,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a68ca=Array['from'](this['_suggestions']['values']())['some'](_0x598a99=>_0x598a99['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3a68ca;}execute(){const _0x5589bb=At(Array['from'](this['_suggestions']['values']()));for(const _0x527fc1 of _0x5589bb){const _0x1f95bd=_0x527fc1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f95bd))return;}Ct(this['editor']['model'],this['_command'],_0x5589bb);}},yt=class extends _0x1111ef{['_command'];_suggestions;_selectedSuggestions;constructor(_0x46702c,_0x174163,_0xb2b685){super(_0x46702c),this['_command']=_0x174163,this['_suggestions']=_0xb2b685,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5261c7=this['editor']['model']['document']['selection'],_0x539c5b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x22d760,_0x490d36){const _0x43b322=Array['from'](_0x22d760['getRanges']()),_0x11fa2c=new Set();for(const _0x36a552 of _0x490d36)if(_0x36a552['isInContent']){for(const _0x31fa21 of _0x43b322)for(const _0x15cfaa of _0x36a552['getRanges']())(_0x31fa21['isIntersecting'](_0x15cfaa)||_0x22d760['isCollapsed']&&!_0x36a552['isMultiRange']&&_0x36a552['next']&&_0x15cfaa['end']['isTouching'](_0x31fa21['start']))&&_0x11fa2c['add'](_0x36a552);}return _0x11fa2c;}(_0x5261c7,_0x539c5b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x143a95=At(Array['from'](this['_selectedSuggestions']));for(const _0x6f64b1 of _0x143a95){const _0x40f0b8=_0x6f64b1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40f0b8))return;}Ct(this['editor']['model'],this['_command'],_0x143a95);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x3d7812();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x139ece,_0xc2e548){super(),this['id']=_0xc2e548['id'],this['type']=_0xc2e548['type'],this['subType']=_0xc2e548['subType']||null,this['author']=_0xc2e548['author'],this['creator']=_0xc2e548['creator']||_0xc2e548['author'],this['data']=null,this['_originalSuggestionId']=_0xc2e548['originalSuggestionId']||null,this['_model']=_0x139ece,this['_onAccept']=_0xc2e548['onAccept'],this['_onDiscard']=_0xc2e548['onDiscard'],this['_onAttributesChange']=_0xc2e548['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc2e548['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 _0x3efdf4=this;for(;_0x3efdf4['previous'];)_0x3efdf4=_0x3efdf4['previous'];return _0x3efdf4;}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'](_0x4eafed){this['_markerNames']['add'](_0x4eafed);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x664276=>this['_model']['markers']['get'](_0x664276))['filter'](_0x225524=>_0x225524);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cff31=>{for(const _0x5d75d7 of this['getMarkers']())_0x4cff31['removeMarker'](_0x5d75d7);}),this['_markerNames']['clear']();}['removeMarker'](_0x2df458){this['_model']['change'](_0x518854=>{_0x518854['removeMarker'](_0x2df458);}),this['_markerNames']['delete'](_0x2df458);}['addRange'](_0x62cf4b){const _0x4abe38='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4abe38),this['_model']['change'](_0x207fcf=>{_0x207fcf['addMarker'](_0x4abe38,{'range':_0x62cf4b,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xf449f2){for(const _0x17e6a1 of this['getRanges']())if(_0x17e6a1['isIntersecting'](_0xf449f2))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x20f87d=>_0x20f87d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x53f241,_0x5a4a73)=>[..._0x53f241,..._0x5a4a73['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3b1f3f=this['getRanges']();if(0x1!=_0x3b1f3f['length'])return null;const _0x11128b=_0x3b1f3f[0x0],_0x28e951=_0x11128b['start']['nodeAfter'],_0x29c2a9=_0x11128b['end']['nodeBefore'];return _0x28e951 instanceof it?_0x28e951!=_0x29c2a9?null:_0x28e951: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 _0x59163f=[];let _0x313f02=this['head'];for(;_0x313f02;)_0x59163f['push'](_0x313f02),_0x313f02=_0x313f02['next'];return _0x59163f;}setAttribute(_0x58bed6,_0x5479e7){const _0x28d1e0=at(this['attributes']);ut(_0x28d1e0,_0x58bed6,_0x5479e7),ct(_0x28d1e0,this['attributes'])||(this['attributes']=_0x28d1e0,this['_onAttributesChange'](_0x28d1e0));}removeAttribute(_0x259446){const _0x5b1710=at(this['attributes']);dt(_0x5b1710,_0x259446),ct(_0x5b1710,this['attributes'])||(this['attributes']=_0x5b1710,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 _0x5b5c0d()['substr'](0x1,0x5);}};function Mt(_0x4874eb,_0x567a4b,_0x16af99){const _0x436827=_0x4874eb['t'],t=_0x4874eb['t'];switch(_0x567a4b){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',_0x16af99);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16af99);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16af99);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16af99);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16af99);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',_0x16af99);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16af99);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',_0x16af99);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16af99);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16af99);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16af99);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16af99);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16af99);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x16af99);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16af99);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16af99);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16af99);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16af99);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16af99);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16af99);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16af99);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16af99);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16af99);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16af99);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x16af99);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'},_0x16af99);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x16af99);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x16af99);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16af99);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16af99);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16af99);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16af99);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16af99);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'},_0x16af99);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'},_0x16af99);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16af99);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16af99);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16af99);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16af99);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'},_0x16af99);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16af99);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'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16af99);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'},_0x16af99);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16af99);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x16af99);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x16af99);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x16af99);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16af99);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'},_0x16af99);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x16af99);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 _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16af99);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x436827({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16af99);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x16af99);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'},_0x16af99);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'},_0x16af99);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'},_0x16af99);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x567a4b;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x55110a,_0x4503fa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55110a,this['_locale']=_0x4503fa;}getDescriptions(_0x1db83d){const _0x15f779=[],_0x497dfc=new Set(),_0x584135=new Set();for(let _0xc4c575=0x0;_0xc4c575<_0x1db83d['length'];_0xc4c575++){const _0xe3f640=_0x1db83d[_0xc4c575];if(!_0xe3f640['isInContent'])continue;const _0x43e8fe=this['_handleCustomCallbackDescription'](_0xe3f640);if(_0x43e8fe){if(null!=_0xe3f640['subType']){if(_0x497dfc['has'](_0xe3f640['subType']))continue;_0x497dfc['add'](_0xe3f640['subType']);}_0x15f779['push'](_0x43e8fe);}else{if('attribute'==_0xe3f640['type']){const _0x147b0d=_0xe3f640['data']['key'];if(_0x584135['has'](_0x147b0d))continue;_0x584135['add'](_0xe3f640['data']['key']),'$elementName'==_0x147b0d?this['_handleRenameSuggestionDescription'](_0x15f779,_0xe3f640):this['_handleAttributeSuggestionDescription'](_0x15f779,_0xe3f640);continue;}'insertion'!=_0xe3f640['type']&&'deletion'!=_0xe3f640['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15f779,_0xe3f640,_0x1db83d[_0xc4c575+0x1]);}}return this['_resolveDescriptionItems'](_0x15f779);}registerDescriptionCallback(_0x3efdd2){this['_customCallbacks']['push'](_0x3efdd2);}registerElementLabel(_0x54995a,_0xe60640,_0x1d3e97=_0x5ee963['normal']){'function'==typeof _0x54995a?_0x55b07f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54995a,'label':_0xe60640,'priority':_0x1d3e97}):this['_itemLabels']['set'](_0x54995a,_0xe60640);}registerAttributeLabel(_0x3f7074,_0x461b4d){this['_attributeLabels']['set'](_0x3f7074,_0x461b4d);}getItemLabel(_0x5dc70c,_0x116314=0x1){let _0x3bd302;for(const _0x56baf8 of this['_itemLabelsCallbacks'])if(_0x56baf8['matchingCallback'](_0x5dc70c)){_0x3bd302=_0x56baf8['label'];break;}return _0x3bd302||(_0x3bd302=this['_itemLabels']['get'](_0x5dc70c['name'])),_0x3bd302?_0x3bd302(_0x116314):0x1!==_0x116314?_0x116314+'\x20'+_0x5dc70c['name']+'s':''+_0x5dc70c['name'];}_addDescriptionItems(_0x34a3b0,_0x35ee0c){const _0x5e6b2f=_0x35ee0c['getFirstRange']()['getWalker'](),_0x28828d='insertion'==_0x35ee0c['type']?'add':'remove';for(const _0x12b306 of _0x5e6b2f){const _0x11d5c2=_0x12b306['item'],_0x4a7037=_0x34a3b0[_0x34a3b0['length']-0x1];if(_0x11d5c2['is']('$textProxy'))_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),_0x4a7037&&'text'==_0x4a7037['type']?_0x4a7037[_0x28828d]+=_0x11d5c2['data']:_0x34a3b0['push']({'type':'text','add':'add'==_0x28828d?_0x11d5c2['data']:'','remove':'remove'==_0x28828d?_0x11d5c2['data']:''});else{if(this['_schema']['isObject'](_0x11d5c2)){const _0x3ca89f=_0x11d5c2;if(_0x4a7037&&_0x4a7037['type']['indexOf']('Container')>-0x1&&_0x34a3b0['pop'](),'elementEnd'==_0x12b306['type'])continue;_0x4a7037&&_0x4a7037['type']==_0x28828d+'Object'&&_0x4a7037['element']['name']==_0x3ca89f['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'Object','element':_0x3ca89f,'quantity':0x1}),_0x5e6b2f['skip'](_0x5e347e=>!('elementEnd'==_0x5e347e['type']&&_0x5e347e['item']==_0x11d5c2));}else{if(this['_schema']['checkChild'](_0x11d5c2,'$text')||_0x11d5c2['is']('element','softBreak')){const _0x4f4238=_0x11d5c2;if('add'==_0x28828d&&'elementStart'==_0x12b306['type']||'remove'==_0x28828d&&'elementEnd'==_0x12b306['type'])continue;if(_0x4a7037&&-0x1==_0x4a7037['type']['indexOf']('Container')){'text'==_0x4a7037['type']&&(_0x4a7037[_0x28828d]+='\x0a');continue;}let _0x4ca5bc;if(_0x4ca5bc='add'==_0x28828d?_0x4f4238['nextSibling']&&!this['_schema']['isObject'](_0x4f4238['nextSibling'])?_0x4f4238['nextSibling']:null:_0x4f4238['previousSibling']&&!this['_schema']['isObject'](_0x4f4238['previousSibling'])?_0x4f4238['previousSibling']:null,_0x4f4238['isEmpty']||_0x4ca5bc&&_0x4ca5bc['isEmpty']){const _0x38fdf6=_0x4ca5bc&&_0x4ca5bc['isEmpty']?_0x4ca5bc:_0x4f4238;_0x4a7037&&_0x4a7037['type']==_0x28828d+'EmptyContainer'&&_0x4a7037['element']['name']==_0x38fdf6['name']?_0x4a7037['quantity']++:_0x34a3b0['push']({'type':_0x28828d+'EmptyContainer','element':_0x38fdf6,'quantity':0x1});}else _0x34a3b0['push']({'type':_0x28828d+'Container','element':_0x4f4238});}}}}}_resolveDescriptionItems(_0x3f4209){const _0x4bd72f=this['_locale'],_0x2c4b0f=[],_0x5a1dcc=[],_0x5eee8a=[];for(const _0x1dd3a0 of _0x3f4209)switch(_0x1dd3a0['type']){case'text':if(_0x1dd3a0['add']=_0x1dd3a0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1dd3a0['remove']=_0x1dd3a0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1dd3a0['add']&&''!=_0x1dd3a0['remove']){_0x2c4b0f['push']({'type':'replace','content':Mt(_0x4bd72f,'REPLACE_TEXT',['\x22'+_0x1dd3a0['remove']+'\x22','\x22'+_0x1dd3a0['add']+'\x22'])});continue;}if(null!=_0x1dd3a0['add']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['add']['length']))});continue;}if(null!=_0x1dd3a0['remove']['match'](/^ +$/)){_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',Mt(_0x4bd72f,'ELEMENT_SPACE',_0x1dd3a0['remove']['length']))});continue;}if(''!=_0x1dd3a0['add']){_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0','\x22'+_0x1dd3a0['add']+'\x22')});continue;}_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0','\x22'+_0x1dd3a0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Insert:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Remove:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addContainer':_0x2c4b0f['push']({'type':'insertion','content':Mt(_0x4bd72f,'*Split:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'removeContainer':_0x2c4b0f['push']({'type':'deletion','content':Mt(_0x4bd72f,'*Merge:*\x20%0',this['getItemLabel'](_0x1dd3a0['element'],_0x1dd3a0['quantity']))});continue;case'addFormat':_0x5a1dcc['push'](_0x1dd3a0['key']);continue;case'removeFormat':_0x5eee8a['push'](_0x1dd3a0['key']);continue;default:_0x2c4b0f['push'](_0x1dd3a0);}if(_0x5a1dcc['length']){const _0x4f03b1=_0x5a1dcc['map'](_0x122bd6=>this['_attributeLabels']['has'](_0x122bd6)?this['_attributeLabels']['get'](_0x122bd6):_0x122bd6)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x4f03b1)});}if(_0x5eee8a['length']){const _0xfe2083=_0x5eee8a['map'](_0x54d153=>this['_attributeLabels']['has'](_0x54d153)?this['_attributeLabels']['get'](_0x54d153):_0x54d153)['join'](',\x20');_0x2c4b0f['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0xfe2083)});}return _0x2c4b0f;}_handleCustomCallbackDescription(_0x55a7e4){for(const _0x25d960 of this['_customCallbacks']){const _0xd6b975=_0x25d960(_0x55a7e4);if(_0xd6b975&&'type'in _0xd6b975)return _0xd6b975;}}_handleAttributeSuggestionDescription(_0x59bf9b,_0x9466f5){const _0x1e7423=_0x9466f5['data'],_0x393c7e=void 0x0===_0x1e7423['newValue']?'removeFormat':'addFormat';_0x59bf9b['push']({'type':_0x393c7e,'key':_0x1e7423['key']});}_handleRenameSuggestionDescription(_0x43a388,_0x5a68c0){_0x43a388['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a68c0['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x132348,_0x29c8e1,_0x306372){if(this['_addDescriptionItems'](_0x132348,_0x29c8e1),_0x306372&&_0x306372['getFirstRange']()&&!_0x29c8e1['getFirstRange']()['end']['isEqual'](_0x306372['getFirstRange']()['start'])){const _0x1bb053=_0x132348[_0x132348['length']-0x1],_0x23d3f9='insertion'==_0x29c8e1['type']?'add':'remove';_0x1bb053&&'text'==_0x1bb053['type']&&(_0x1bb053[_0x23d3f9]+='\x0a');}}},wt=class extends _0x42a28f{afterInit(){const _0x8d3375=this['editor'],_0x1c59d0=_0x8d3375['plugins']['get']('TrackChangesEditing');_0x8d3375['commands']['get']('showAIAssistant')&&_0x1c59d0['enableCommand']('showAIAssistant');}},Ft=class extends _0x42a28f{afterInit(){const _0x2478c0=this['editor'],_0x4e13de=_0x2478c0['plugins']['get']('TrackChangesEditing');_0x2478c0['commands']['get']('toggleAi')&&_0x4e13de['enableCommand']('toggleAi');}},Bt=class extends _0x42a28f{afterInit(){const _0x84390f=this['editor'],_0x44c8c3=_0x84390f['plugins']['get']('TrackChangesEditing');_0x84390f['commands']['get']('aiQuickAction')&&_0x44c8c3['enableCommand']('aiQuickAction');}},vt=class extends _0x42a28f{afterInit(){const _0x4d4521=this['editor'],_0x45e136=_0x4d4521['locale'];if(!_0x4d4521['plugins']['has']('AlignmentEditing'))return;const _0xfa7152=_0x4d4521['plugins']['get']('TrackChangesEditing');_0xfa7152['enableDefaultAttributesIntegration']('alignment'),_0xfa7152['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x45e136,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x372fb3=this['editor'],_0x423249=_0x372fb3['locale'];_0x372fb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29e3a6=>{if('formatBlock'!=_0x29e3a6['type'])return;const {data:_0x71817c}=_0x29e3a6;if(_0x71817c&&'alignment'==_0x71817c['commandName']){const _0x46142c=_0x71817c['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x423249,'*Format:*\x20%0',function(_0x1a4f0e){switch(_0x1a4f0e){case'left':return Mt(_0x423249,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x423249,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x423249,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x423249,'FORMAT_JUSTIFY_TEXT');}}(_0x46142c))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x42a28f{afterInit(){const _0x18f2ce=this['editor'],_0x3fbbbf=_0x18f2ce['plugins']['get']('TrackChangesEditing'),_0x429df1=_0x18f2ce['locale'];for(const _0x46abfa of Dt){if(!_0x18f2ce['plugins']['has'](_0x46abfa))continue;const _0x3d304b=_0x46abfa['slice'](0x0,-0x7)['toLowerCase'](),_0x57ec03='FORMAT_'+_0x3d304b['toUpperCase']();_0x3fbbbf['enableDefaultAttributesIntegration'](_0x3d304b),_0x3fbbbf['descriptionFactory']['registerAttributeLabel'](_0x3d304b,Mt(_0x429df1,_0x57ec03));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x382f7f=this['editor'],_0x1e3c26=_0x382f7f['locale'],_0x3182bb=_0x382f7f['plugins']['get']('TrackChangesEditing');function _0x32eaa6(_0x2964e6,_0x5d42e7){_0x3182bb['descriptionFactory']['registerDescriptionCallback'](_0x1ba767=>{if('formatInline'!=_0x1ba767['type'])return;const {data:_0x58fdd9}=_0x1ba767;return _0x58fdd9&&_0x58fdd9['commandName']===_0x2964e6?_0x58fdd9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1e3c26,'*Format:*\x20%0',_0x5d42e7)}:{'type':'format','content':Mt(_0x1e3c26,'*Remove\x20format:*\x20%0',_0x5d42e7)}:void 0x0;});}_0x32eaa6('bold',Mt(_0x1e3c26,'FORMAT_BOLD')),_0x32eaa6('italic',Mt(_0x1e3c26,'FORMAT_ITALIC')),_0x32eaa6('underline',Mt(_0x1e3c26,'FORMAT_UNDERLINE')),_0x32eaa6('code',Mt(_0x1e3c26,'FORMAT_CODE')),_0x32eaa6('strikethrough',Mt(_0x1e3c26,'FORMAT_STRIKETHROUGH')),_0x32eaa6('subscript',Mt(_0x1e3c26,'FORMAT_SUBSCRIPT')),_0x32eaa6('superscript',Mt(_0x1e3c26,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x42a28f{afterInit(){const _0x32bd3a=this['editor'],_0x4df617=_0x32bd3a['locale'];if(!_0x32bd3a['plugins']['has']('BlockQuoteEditing'))return;const _0x4420b1=_0x32bd3a['plugins']['get']('TrackChangesEditing'),_0x4ac9bb=this['editor']['commands']['get']('blockQuote');_0x4420b1['enableCommand']('blockQuote',(_0x32cb17,_0x534dd3={})=>{const _0x24bc8d=this['editor']['model']['document']['selection'],_0x25e6cf=_0x534dd3&&void 0x0!==_0x534dd3['forceValue']?_0x534dd3['forceValue']:!_0x4ac9bb['value'];let _0x567b53=[];if(_0x25e6cf){const _0x1501a8=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0xe4d525=>xt(_0xe4d525)||function(_0x2e0365,_0x1e502d){const _0x57f0d9=_0x1e502d['createContext'](_0x2e0365['parent']);return!!_0x1e502d['checkChild'](_0x57f0d9,'blockQuote')&&!!_0x1e502d['checkChild'](_0x57f0d9['push']('blockQuote'),_0x2e0365);}(_0xe4d525,this['editor']['model']['schema']));_0x567b53=bt(_0x1501a8,_0x32bd3a['model']);}else{const _0x22880f=Array['from'](_0x24bc8d['getSelectedBlocks']())['filter'](_0x5738d1=>xt(_0x5738d1));_0x567b53=bt(_0x22880f,_0x32bd3a['model']);}_0x32bd3a['model']['change'](()=>{for(const _0x5a3500 of _0x567b53)_0x4420b1['markBlockFormat'](_0x5a3500,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25e6cf}]});});}),_0x4420b1['descriptionFactory']['registerDescriptionCallback'](_0x7406a7=>{const {data:_0x4132e4}=_0x7406a7;if(_0x4132e4&&'blockQuote'==_0x4132e4['commandName']){const _0x138d4f=Mt(_0x4df617,'ELEMENT_BLOCK_QUOTE');return _0x4132e4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4df617,'*Set\x20format:*\x20%0',_0x138d4f)}:{'type':'format','content':Mt(_0x4df617,'*Remove\x20format:*\x20%0',_0x138d4f)};}});}};function xt(_0x183b70){return'blockQuote'==_0x183b70['parent']['name'];}var Gt=class extends _0x42a28f{afterInit(){const _0x5a78f6=this['editor'],_0x554ba3=_0x5a78f6['locale'],_0x3a92a2=_0x5a78f6['plugins']['get']('TrackChangesEditing');_0x5a78f6['plugins']['has']('BookmarkEditing')&&(_0x3a92a2['enableCommand']('insertBookmark'),_0x3a92a2['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a92a2['descriptionFactory']['registerDescriptionCallback'](_0x2b5baa=>{if('insertion'!=_0x2b5baa['type']&&'deletion'!=_0x2b5baa['type']&&'attribute'!=_0x2b5baa['type'])return;const _0x4d2140=_0x2b5baa['getContainedElement']();if(null==_0x4d2140)return;if(!_0x4d2140['is']('element','bookmark'))return;const _0x105288=_0x4d2140['getAttribute']('bookmarkId');if('insertion'==_0x2b5baa['type'])return{'type':'insertion','content':Mt(_0x554ba3,'*Insert:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b5baa['type'])return{'type':'deletion','content':Mt(_0x554ba3,'*Remove:*\x20%0','\x22'+_0x105288+'\x22\x20'+Mt(_0x554ba3,'ELEMENT_BOOKMARK'))};const {data:_0x2f43f5}=_0x2b5baa;return _0x2f43f5&&'bookmarkId'==_0x2f43f5['key']?{'type':'format','content':Mt(_0x554ba3,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f43f5['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x42a28f{afterInit(){const _0x412cc6=this['editor'];_0x412cc6['plugins']['has']('CaseChange')&&(_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x412cc6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x42a28f{afterInit(){const _0x2820c9=this['editor'];_0x2820c9['commands']['get']('ckbox')&&_0x2820c9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x42a28f{static get requires(){return[ht,gt];}constructor(_0x35ba61){super(_0x35ba61),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1b90c8=this['editor'],_0x447600=_0x1b90c8['plugins']['get']('ClipboardMarkersUtils'),_0x355ff1=_0x1b90c8['plugins']['get'](gt);_0x447600['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x355ff1['on']('outputTransformation',(_0x5f0abc,_0x443642)=>{const _0xa43715=this['_getSuggestionEntries'](_0x443642);for(const [_0x23bbae,_0x266ced]of _0x443642['content']['markers']){const _0x2c511f=rt['_fromRangeInDocumentFragment'](_0x266ced,_0x1b90c8['model']);function _0x3480aa(){_0x2c511f['detach'](),_0x443642['content']['markers']['delete'](_0x23bbae);}_0x2c511f['on']('change:drop',_0x3480aa),(_0x23bbae['startsWith']('suggestion:')||_0x23bbae['startsWith']('comment:'))&&_0x2c511f['on']('change:range',()=>{_0x2c511f['isCollapsed']&&_0x3480aa();}),_0x443642['content']['markers']['set'](_0x23bbae,_0x2c511f);}const _0x59f0a4=_0xa43715['filter'](_0x3d875d=>'deletion'===_0x3d875d['meta']['type'])['map'](_0x5a28c5=>_0x5a28c5['modelRange']);if(this['_shouldSkipDeletions'](_0x59f0a4,_0x443642['content']))return[..._0xa43715]['forEach'](_0x391424=>{_0x443642['content']['markers']['get'](_0x391424['markerName'])['detach'](),_0x443642['content']['markers']['delete'](_0x391424['markerName']);}),void this['_restoreRegularRanges'](_0x443642['content']['markers']);[..._0xa43715]['forEach'](_0x1ea5a8=>{const _0x54c0a2=_0x1b90c8['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1ea5a8['meta']['type'],_0x1ea5a8['meta']['subType'],'accept'),{markerName:_0x1a5f2d,meta:_0x49c344}=_0x1ea5a8;if(_0x443642['content']['markers']['has'](_0x1a5f2d)){switch(_0x49c344['type']){case'deletion':if('tableRow'===_0x49c344['subType']||'tableColumn'===_0x49c344['subType']){if(!_0x1b90c8['plugins']['has']('TableUtils'))break;const _0x463037=_0x1b90c8['plugins']['get']('TableUtils'),_0x3df4ba=_0x463037['getSelectionAffectedTableCells'](_0x1b90c8['model']['createSelection'](_0x443642['content']['markers']['get'](_0x1a5f2d))),_0x927435=_0x3df4ba[0x0]['findAncestor']('table');if('tableRow'===_0x49c344['subType']){const {first:_0x24cd6f,last:_0x291beb}=_0x463037['getRowIndexes'](_0x3df4ba);_0x463037['removeRows'](_0x927435,{'at':_0x24cd6f,'rows':_0x291beb-_0x24cd6f+0x1});}else{const {first:_0x176825,last:_0x300788}=_0x463037['getColumnIndexes'](_0x3df4ba);_0x463037['removeColumns'](_0x927435,{'at':_0x176825,'columns':_0x300788-_0x176825+0x1});}break;}_0x54c0a2([_0x443642['content']['markers']['get'](_0x1a5f2d)]);}_0x443642['content']['markers']['has'](_0x1a5f2d)&&(_0x443642['content']['markers']['get'](_0x1a5f2d)['detach'](),_0x443642['content']['markers']['delete'](_0x1a5f2d));}}),this['_restoreRegularRanges'](_0x443642['content']['markers']);});}_getSuggestionEntries(_0xabfbf6){const _0x2e9045=_0x17a357=>'dragstart'===_0xabfbf6['method']?_0x17a357['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x17a357;return Array['from'](_0xabfbf6['content']['markers'])['map'](([_0x3bf205,_0x4ad5cc])=>({'markerName':_0x3bf205,'modelRange':_0x4ad5cc,'meta':tt(_0x2e9045(_0x3bf205))}))['filter'](({meta:_0x3c7e58})=>'suggestion'===_0x3c7e58['group']);}_shouldSkipDeletions(_0x4177af,_0x2e9b1a){if(!_0x4177af['length'])return!0x1;let _0x37db06=[this['editor']['model']['createRangeIn'](_0x2e9b1a)];for(const _0x312ecf of _0x4177af)_0x37db06=_0x37db06['flatMap'](_0x4c5781=>_0x4c5781['getDifference'](_0x312ecf));return!_0x37db06['some'](_0x7675e6=>this['editor']['model']['hasContent'](_0x7675e6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x6203e4){[..._0x6203e4['keys']()]['forEach'](_0x3521a2=>{const _0x1e5a29=_0x6203e4['get'](_0x3521a2);_0x1e5a29['detach'](),_0x6203e4['set'](_0x3521a2,_0x1e5a29['toRange']());});}},Vt=class extends _0x42a28f{afterInit(){const _0x4b3bda=this['editor'];if(!_0x4b3bda['plugins']['has']('CodeBlock'))return;const _0x29f63a=_0x4b3bda['plugins']['get']('TrackChangesEditing'),_0x403f30=_0x4b3bda['locale'],_0x578e50=_0x4b3bda['config']['get']('codeBlock')['languages'],_0x4142fa=_0x4b3bda['commands']['get']('codeBlock');_0x29f63a['enableCommand']('indentCodeBlock'),_0x29f63a['enableCommand']('outdentCodeBlock'),_0x29f63a['enableCommand']('codeBlock',(_0x373110,_0x2d5e04={})=>{const _0x4ff637=_0x4b3bda['model'],_0x56fc46=_0x4b3bda['model']['document']['selection'],_0x1e8c05=_0x2d5e04&&void 0x0!==_0x2d5e04['forceValue']?_0x2d5e04['forceValue']:!_0x4142fa['value'];let _0x5d357f;_0x2d5e04['language']||(_0x2d5e04['language']=_0x578e50[0x0]['language']),_0x5d357f=_0x1e8c05?Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x2b6418=>{return jt(_0x2b6418)||(_0x47d813=_0x2b6418,_0xc218f=_0x4ff637['schema'],!_0x47d813['is']('rootElement')&&!_0xc218f['isLimit'](_0x47d813)&&_0xc218f['checkChild'](_0x47d813['parent'],'codeBlock'));var _0x47d813,_0xc218f;}):Array['from'](_0x56fc46['getSelectedBlocks']())['filter'](_0x177a25=>jt(_0x177a25));const _0x4a220a=bt(_0x5d357f,_0x4ff637);_0x4ff637['change'](()=>{for(const _0x9a65c7 of _0x4a220a)_0x29f63a['markBlockFormat'](_0x9a65c7,{'commandName':'codeBlock','commandParams':[{..._0x2d5e04,'forceValue':_0x1e8c05}],'formatGroupId':'blockName'});});}),(_0x29f63a['descriptionFactory']['registerElementLabel']('codeBlock',_0x7a629b=>Mt(_0x403f30,'ELEMENT_CODE_BLOCK',_0x7a629b)),_0x29f63a['descriptionFactory']['registerDescriptionCallback'](_0x199dd3=>{if('formatBlock'!=_0x199dd3['type'])return;const _0xc34f09=_0x403f30['t'],{data:_0x1de673}=_0x199dd3;if(!_0x1de673||'codeBlock'!=_0x1de673['commandName'])return;const _0x3cc435=_0x1de673['commandParams'][0x0]['language'],_0x2d2e88=_0xc34f09(_0x578e50['find'](_0x35420d=>_0x35420d['language']===_0x3cc435)['label'])['toLowerCase']();return _0x1de673['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x403f30,'*Set\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d2e88+')')}:{'type':'format','content':Mt(_0x403f30,'*Remove\x20format:*\x20%0',Mt(_0x403f30,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x12bd54){return'codeBlock'==_0x12bd54['name'];}var zt=class extends _0x42a28f{afterInit(){const _0x443dd0=this['editor'];_0x443dd0['plugins']['has']('CommentsEditing')&&_0x443dd0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x42a28f{static get requires(){return[ft];}init(){const _0x463121=this['editor'],_0x27fd35=_0x463121['plugins']['get']('TrackChangesEditing');_0x27fd35['enableCommand']('delete');const _0x54efc2=_0x463121['commands']['get']('deleteForward');_0x27fd35['enableCommand']('deleteForward',(_0xf5492c,_0x528687={})=>{const _0x3e8878=_0x463121['model']['createSelection'](_0x463121['model']['document']['selection']);_0x3e8878['isCollapsed']&&_0x463121['model']['modifySelection'](_0x3e8878,{'direction':'forward','unit':_0x528687['unit']});const _0x2e44a3=_0x3e8878['getFirstRange'](),_0x122858=rt['fromRange'](_0x2e44a3);let _0x840e76;_0xf5492c(_0x528687),_0x840e76='$graveyard'==_0x122858['root']['rootName']?_0x463121['model']['createRange'](_0x2e44a3['start']):_0x463121['model']['createRange'](_0x122858['start'],_0x122858['end']),_0x122858['detach'](),_0x463121['model']['enqueueChange'](_0x54efc2['buffer']['batch'],_0x4da335=>{_0x54efc2['buffer']['lock'](),_0x4da335['setSelection'](_0x4da335['createRange'](_0x840e76['end'])),_0x54efc2['buffer']['unlock']();});});}},Xt=class extends _0x42a28f{afterInit(){const _0x28ea0f=this['editor'];if(!_0x28ea0f['plugins']['has']('ListEditing'))return;const _0x2f8479=_0x28ea0f['locale'],_0x34055a=_0x28ea0f['plugins']['get']('TrackChangesEditing'),_0x355346=_0x28ea0f['plugins']['has']('TodoListEditing'),_0x57b79e=!!_0x28ea0f['config']['get']('list.multiBlock');function _0x34ada2(_0x2cf586){return{'type':'format','content':''+Mt(_0x2f8479,'*Set\x20format:*\x20%0',_0x2cf586)};}function _0xc6e292(_0xb5d7cd){return{'type':'format','content':''+Mt(_0x2f8479,'*Remove\x20format:*\x20%0',_0xb5d7cd)};}_0x34055a['enableDefaultAttributesIntegration']('numberedList'),_0x34055a['enableDefaultAttributesIntegration']('bulletedList'),_0x34055a['enableDefaultAttributesIntegration']('customNumberedList'),_0x34055a['enableDefaultAttributesIntegration']('customBulletedList'),_0x34055a['enableDefaultAttributesIntegration']('indentList'),_0x34055a['enableDefaultAttributesIntegration']('outdentList'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x34055a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57b79e&&(_0x34055a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x34055a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355346&&(_0x34055a['enableDefaultAttributesIntegration']('todoList'),_0x34055a['enableDefaultAttributesIntegration']('checkTodoList'),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x1c803f=>{const {data:_0x387984}=_0x1c803f;if(_0x387984&&'todoListChecked'==_0x387984['key'])return{'type':'format','content':_0x387984['newValue']?Mt(_0x2f8479,'*Check\x20item*'):Mt(_0x2f8479,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47a3c7=>{if(_0x47a3c7['batch']['isUndo'])return!0x1;let _0x54713b=!0x1;const _0x181300=_0x34055a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0f222=>'todoListChecked'===_0x34055a['_getAttributeKey'](_0xe0f222));for(const _0x72dcf5 of _0x181300)'todo'!=_0x72dcf5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x34055a['_findSuggestions'](_0x72dcf5['getFirstRange'](),'attribute')['find'](_0x6fb66c=>'listType'===_0x34055a['_getAttributeKey'](_0x6fb66c['suggestion']))||(_0x47a3c7['removeMarker'](_0x72dcf5['getFirstMarker']()),_0x54713b=!0x0));return _0x54713b;})),_0x34055a['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x2f8479,'FORMAT_INDENT'));const _0x5b9c9e={'type':'format','content':''};_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x167d82=>{const {data:_0x8eb531}=_0x167d82;if(!_0x8eb531||'listType'!=_0x8eb531['key'])return;let _0x57d99d=_0x167d82['head'];for(;_0x57d99d;){if(_0x57d99d['data']&&(('listStyle'==_0x57d99d['data']['key']||'listMarkerStyle'==_0x57d99d['data']['key'])&&(_0x57d99d['data']['newValue']&&'default'!=_0x57d99d['data']['newValue']||'default'!=_0x57d99d['data']['oldValue']&&!_0x8eb531['newValue'])||!_0x57b79e&&'$elementName'==_0x57d99d['data']['key']))return _0x5b9c9e;_0x57d99d=_0x57d99d['next'];}if(null==_0x8eb531['newValue'])switch(_0x8eb531['oldValue']){case'bulleted':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc6e292(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}switch(_0x8eb531['newValue']){case'bulleted':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34ada2(Mt(_0x2f8479,'ELEMENT_TODO_LIST'));}}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x48f7e6=>{const {data:_0x49538c}=_0x48f7e6;if(_0x49538c&&'listIndent'==_0x49538c['key'])return null==_0x49538c['newValue']||null==_0x49538c['oldValue']&&0x0==_0x49538c['newValue']?_0x5b9c9e:void 0x0;}),_0x34055a['descriptionFactory']['registerDescriptionCallback'](_0x34af9b=>{if('attribute'!=_0x34af9b['type'])return;const {data:_0x472117}=_0x34af9b;if(!_0x472117||'listItemId'!=_0x472117['key'])return;const _0x497bc2=qt(_0x34af9b);return'newValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Merge:*\x20list\x20item')}:'oldValue'==_0x497bc2?{'type':'format','content':Mt(_0x2f8479,'*Split:*\x20list\x20item')}:_0x5b9c9e;}),_0x28ea0f['model']['document']['registerPostFixer'](_0x2e5509=>this['listItemIdFixer'](_0x2e5509)),_0x28ea0f['model']['document']['registerPostFixer'](_0x15894e=>this['noTrackChangesFixer'](_0x15894e)),_0x28ea0f['model']['document']['on']('change:data',(_0x43fe99,_0x44db38)=>{if(_0x44db38['isUndo']||!_0x44db38['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x7deb7a){if(_0x7deb7a['batch']['isUndo']||!_0x7deb7a['batch']['isLocal'])return!0x1;let _0x13b183=!0x1;const _0xef08d8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x493c22=>_0x493c22['data']&&'listItemId'==_0x493c22['data']['key'])['filter'](_0x4cfef0=>_0x4cfef0['data']['newValue']&&_0x4cfef0['data']['oldValue']);for(const _0x4e34a2 of _0xef08d8)qt(_0x4e34a2)||(_0x7deb7a['removeMarker'](_0x4e34a2['getFirstMarker']()),_0x13b183=!0x0);return _0x13b183;}['noTrackChangesFixer'](_0x28b673){if(_0x28b673['batch']['isUndo']||!_0x28b673['batch']['isLocal'])return!0x1;const _0x20bd15=this['editor']['model']['document']['differ'],_0xe6a36c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xe6a36c['trackChangesCommand']['value'])return!0x1;let _0x287d99=!0x1;const _0x487c51=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x14ff15=_0x20bd15['getChanges']()['filter'](_0x5c7c1b=>'attribute'==_0x5c7c1b['type'])['filter'](_0x24ec3f=>_0x487c51['has'](_0x24ec3f['attributeKey']));if(0x0==_0x14ff15['length'])return _0x287d99;const _0x29c666=new Set(_0x20bd15['getMarkersToAdd']()['filter'](_0x326234=>{if(!_0x326234['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x306901=tt(_0x326234['name'])['subType']['split']('|')[0x0];return _0x487c51['has'](_0x306901);})['map'](_0x18066e=>tt(_0x18066e['name'])['id']));for(const _0x3f2723 of _0x14ff15){const _0x2823a5=_0xe6a36c['_findSuggestions'](_0x3f2723['range'],'attribute')['filter'](_0x4b59e1=>{if(_0x4b59e1['meta']['isNextTo'])return!0x1;if(_0x29c666['has'](_0x4b59e1['suggestion']['id']))return!0x1;const _0x2aed5f=_0xe6a36c['_getAttributeKey'](_0x4b59e1['suggestion']);return _0x487c51['has'](_0x2aed5f);})['map'](_0x4d7dc3=>_0x4d7dc3['suggestion']);if(_0x2823a5['length']){for(const _0x27c016 of _0x2823a5)_0x28b673['removeMarker'](_0x27c016['getFirstMarker']());_0x287d99=!0x0;}}return _0x287d99;}['assureChains'](){const _0x56de04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11d16d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4a2804;const _0x3ebea6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x365c4b=>{if(_0x365c4b['data']['oldRange']||!_0x365c4b['data']['newRange'])return null;if(!_0x365c4b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d68c4}=tt(_0x365c4b['name']);if(!_0x56de04['hasSuggestion'](_0x1d68c4))return null;const _0x347073=_0x56de04['getSuggestion'](_0x1d68c4);return _0x11d16d['includes'](_0x347073['data']['key']);})['map'](_0x38634b=>{const {id:_0x4e63a9}=tt(_0x38634b['name']),_0x4b0a2d=_0x56de04['getSuggestion'](_0x4e63a9);return _0x4a2804=_0x4b0a2d['attributes']['groupId'],_0x4b0a2d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ebea6['size'])return;const _0x23794e=_0x56de04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dbc03=>'attribute'==_0x5dbc03['type']&&_0x5dbc03['data']&&_0x11d16d['includes'](_0x5dbc03['data']['key'])&&_0x5dbc03['attributes']['groupId']!=_0x4a2804)['map'](_0x38dd9c=>({'listItem':_0x38dd9c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38dd9c['attributes']['groupId']})),_0x3a7691=new Set();for(const {groupId:_0x58d839,listItem:_0x56f69d}of _0x23794e)_0x3ebea6['has'](_0x56f69d)&&_0x3a7691['add'](_0x58d839);for(const _0x53d342 of _0x56de04['getSuggestions']())_0x3a7691['has'](_0x53d342['attributes']['groupId'])&&_0x53d342['setAttribute']('groupId',_0x4a2804);}_supportLegacySuggestions(){const _0xa6cea8=this['editor'],_0x171196=_0xa6cea8['locale'],_0x1e2108=_0xa6cea8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e2108['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a58d1,_0x3cfb35){const _0x5f3f39=[];for(let _0x3154b0 of _0x5a58d1)_0x3154b0['start']['nodeAfter']===_0x3154b0['end']['parent']&&(_0x3154b0=_0xa6cea8['model']['createRange'](_0xa6cea8['model']['createPositionAt'](_0x3154b0['start']['nodeAfter'],0x0))),_0x5f3f39['push'](_0x3154b0);_0xa6cea8['model']['change'](_0x2b55dc=>{const _0x55f7cf=_0xa6cea8['model']['document']['selection'],_0x59be67=Array['from'](_0x55f7cf['getRanges']())['map'](_0x5df1d2=>rt['fromRange'](_0x5df1d2));_0x2b55dc['setSelection'](_0x5f3f39),_0xa6cea8['commands']['get'](_0x3cfb35['commandName'])['refresh'](),_0x3cfb35['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa6cea8['execute'](_0x3cfb35['commandName'],..._0x3cfb35['commandParams']),_0x2b55dc['setSelection'](_0x59be67);for(const _0x1d7f89 of _0x59be67)_0x1d7f89['detach']();});}),_0x1e2108['descriptionFactory']['registerElementLabel'](function(_0x370f4){const _0x1ebc9a=!_0xa6cea8['model']['schema']['isObject'](_0x370f4),_0x3942f7=_0x370f4['previousSibling'],_0x3c37d2=_0x370f4['nextSibling'],_0xda2e4f=_0x370f4['getAttribute']('listItemId'),_0x88e441=!_0x3942f7||_0x3942f7['getAttribute']('listItemId')!==_0xda2e4f,_0x25d602=!_0x3c37d2||_0x3c37d2['getAttribute']('listItemId')!==_0xda2e4f;return _0x1ebc9a&&Boolean(_0xda2e4f)&&_0x88e441&&_0x25d602;},_0x2139b5=>Mt(_0x171196,'ELEMENT_LIST_ITEM',_0x2139b5));}_registerLegacyDescription(){const _0x3cbd16=this['editor'],_0x3ec97f=_0x3cbd16['locale'];function _0x720cca(_0x28ee96){const _0x4b7156=_0x3cbd16['commands']['get']('bulletedList')['value'],_0x46d5b6=_0x3cbd16['commands']['get']('numberedList')['value'];return'numberedList'===_0x28ee96?_0x4b7156:_0x46d5b6;}_0x3cbd16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x108d4f){if('formatBlock'!=_0x108d4f['type'])return;const {data:_0x5600c8}=_0x108d4f;if(!_0x5600c8)return;let _0x284d24,_0x5b4020,_0x2897a9,_0x272819;switch(_0x5600c8['commandName']){case'bulletedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2897a9=_0x5600c8['commandParams'][0x0]['forceValue'],_0x272819=_0x720cca(_0x5600c8['commandName']),_0x284d24=_0x2897a9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x272819&&_0x3cbd16['config']['get']('list.multiBlock')||(_0x284d24='*Change\x20to:*\x20%0'),_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x284d24='*Indent:*\x20%0',_0x5b4020={'type':'format','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x284d24=function(_0x5beb07){const _0x4254b7=_0x5beb07['getFirstRange']();let _0x359f3b=_0x4254b7['start']['nodeAfter'];for(;_0x359f3b&&_0x4254b7['containsItem'](_0x359f3b);){if(_0x359f3b['getAttribute']('listIndent')>0x0)return!0x1;_0x359f3b=_0x359f3b['nextSibling'];}return!0x0;}(_0x108d4f)?Mt(_0x3ec97f,'*Format:*\x20remove\x20from\x20%0',Mt(_0x3ec97f,function(_0x51d41d){return'ELEMENT_'+_0x51d41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x108d4f))):Mt(_0x3ec97f,'*Outdent:*\x20%0',Mt(_0x3ec97f,'ELEMENT_LIST_ITEM')),_0x5b4020={'type':'format','content':_0x284d24};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5600c8['multipleBlocks']&&(_0x284d24='*Merge:*\x20%0',_0x5b4020={'type':'deletion','content':Mt(_0x3ec97f,_0x284d24,Mt(_0x3ec97f,'ELEMENT_LIST_ITEM'))});}return _0x5b4020;});}};function qt(_0x2a5829){let _0x34f4f9=_0x2a5829['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f4f9;){const _0x22120b=_0x34f4f9['getAttribute']('listItemId');if(!_0x22120b)return!0x1;if(_0x22120b==_0x2a5829['data']['newValue'])return'newValue';if(_0x22120b==_0x2a5829['data']['oldValue'])return'oldValue';_0x34f4f9=_0x34f4f9['previousSibling'];}return!0x1;}var Yt=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ef3ce=this['editor']['config']['get']('list.properties'),_0x12a909=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ef3ce['styles']&&_0x12a909['enableDefaultAttributesIntegration']('listStyle'),_0x2ef3ce['reversed']&&_0x12a909['enableDefaultAttributesIntegration']('listReversed'),_0x2ef3ce['startIndex']&&_0x12a909['enableDefaultAttributesIntegration']('listStart');const _0x57662c={'type':'format','content':''};_0x12a909['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1627bc=this['editor']['locale'];_0x12a909['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x1627bc,'FORMAT_LIST_REVERSED')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0xdf7b46=>{const {data:_0x3bfab4}=_0xdf7b46;if(_0x3bfab4&&'listReversed'==_0x3bfab4['key'])return null==_0x3bfab4['newValue']||0x0==_0x3bfab4['newValue']&&null==_0x3bfab4['oldValue']?_0x57662c:void 0x0;}),_0x12a909['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x1627bc,'FORMAT_LIST_START')),_0x12a909['descriptionFactory']['registerDescriptionCallback'](_0x18abcc=>{const {data:_0x2880ac}=_0x18abcc;if(_0x2880ac&&'listStart'==_0x2880ac['key'])return null==_0x2880ac['newValue']||0x1==_0x2880ac['newValue']&&null==_0x2880ac['oldValue']?_0x57662c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fdab4=>{if(_0x3fdab4['batch']['isUndo'])return!0x1;let _0x3e2e57=!0x1;const _0xb0974=_0x12a909['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f19f6=>{const _0x2756e6=_0x12a909['_getAttributeKey'](_0x2f19f6);return'listStart'==_0x2756e6||'listReversed'==_0x2756e6;});for(const _0x32653f of _0xb0974){const _0x42d27d=_0x32653f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x42d27d&&'customNumbered'!=_0x42d27d&&(_0x12a909['_findSuggestions'](_0x32653f['getFirstRange'](),'attribute')['find'](_0x1d38c1=>'listType'==_0x12a909['_getAttributeKey'](_0x1d38c1['suggestion']))||(_0x3fdab4['removeMarker'](_0x32653f['getFirstMarker']()),_0x3e2e57=!0x0));}return _0x3e2e57;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3da531){const _0x228152=this['editor']['locale'],{data:_0x23db2f}=_0x3da531,_0x77076a={'type':'format','content':''};if(!_0x23db2f||'listStyle'!=_0x23db2f['key'])return;if(!_0x23db2f['oldValue'])return'default'==_0x23db2f['newValue']?_0x77076a:{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};if(!_0x23db2f['newValue']){if('default'==_0x23db2f['oldValue'])return _0x77076a;let _0x2becf2=_0x3da531['head'];for(;_0x2becf2;){if(_0x2becf2['data']&&'listType'==_0x2becf2['data']['key']&&_0x2becf2['data']['newValue'])return _0x77076a;_0x2becf2=_0x2becf2['next'];}return{'type':'format','content':''+Mt(_0x228152,'*Remove\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['oldValue'])))};}if('default'!=_0x23db2f['newValue'])return{'type':'format','content':''+Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,this['_getTranslationKeyForListStyle'](_0x23db2f['newValue'])))};let _0x5d030e=_0x3da531['head'];for(;_0x5d030e;){if(_0x5d030e['data']&&'listType'==_0x5d030e['data']['key']&&_0x5d030e['data']['newValue']&&_0x5d030e['data']['oldValue'])return _0x77076a;_0x5d030e=_0x5d030e['next'];}return{'type':'format','content':Mt(_0x228152,'*Set\x20format:*\x20%0',Mt(_0x228152,'ELEMENT_'+_0x3da531['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x2787a7=this['editor'],_0x183202=_0x2787a7['locale'];_0x2787a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de101=>{if('formatBlock'!=_0x3de101['type'])return;const {data:_0x5f5191}=_0x3de101;if(!_0x5f5191)return;let _0x5aa980,_0x46fb91;switch(_0x5f5191['commandName']){case'listStyle':_0x5aa980='*Change\x20to:*\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,Mt(_0x183202,this['_getTranslationKeyForListStyle'](_0x5f5191['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5aa980=_0x5f5191['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980)};break;case'listStart':_0x5aa980='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46fb91={'type':'format','content':Mt(_0x183202,_0x5aa980,_0x5f5191['commandParams'][0x0]['startIndex'])};}return _0x46fb91;});}_getTranslationKeyForListStyle(_0x42d6a4){return'ELEMENT_'+(_0x3b7882=_0x42d6a4,Qt['includes'](_0x3b7882)?'bulleted':Zt['includes'](_0x3b7882)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x42d6a4['toUpperCase']()['replace'](/-/g,'_');var _0x3b7882;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x42a28f{afterInit(){const _0x2abf15=this['editor'];_0x2abf15['commands']['get']('emoji')&&_0x2abf15['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x42a28f{static get requires(){return[Et];}init(){const _0x298814=this['editor'],_0x2f0d48=_0x298814['plugins']['get']('TrackChangesEditing'),_0x2a728e=_0x298814['commands']['get']('enter');_0x2f0d48['enableCommand']('enter',()=>{_0x298814['model']['change'](_0xcdd102=>{const _0x5d3a61=_0x298814['model']['document']['selection'],_0x107643=_0x5d3a61['getFirstPosition'](),_0x194e1d=rt['fromRange'](_0x5d3a61['getFirstRange']());if(_0x2a728e['enterBlock'](_0xcdd102)){const _0x594993=_0x298814['model']['createPositionAt'](_0x107643['parent']['nextSibling'],0x0),_0xbd0fed=_0xcdd102['createRange'](_0x107643,_0x594993);_0x2f0d48['markInsertion'](_0xbd0fed);}else _0xcdd102['setSelection'](_0xcdd102['createRange'](_0x194e1d['end']));_0x194e1d['detach'](),_0x2a728e['fire']('afterExecute',{'writer':_0xcdd102});});});}},ee=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e826c=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e826c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e826c['enableCommand']('findNext'),_0x3e826c['enableCommand']('findPrevious'),_0x3e826c['enableCommand']('replace'),_0x3e826c['enableCommand']('replaceAll');}['handleFindCommand'](_0x277d68,_0x18ab70,_0x1279a1={}){const _0x5e355d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x277d68(_0x591346=>{let _0x3b8ea7=('string'==typeof _0x18ab70?_0x5e355d['findByTextCallback'](_0x18ab70,_0x1279a1):_0x18ab70)(_0x591346);Array['isArray'](_0x3b8ea7)&&(_0x3b8ea7={'results':_0x3b8ea7,'searchText':'string'==typeof _0x18ab70?_0x18ab70:''});const _0x3b8086=_0x3b8ea7['results']['filter'](_0x5772bc=>!0x1===this['_isInDeletionRange'](_0x5772bc,_0x591346['item']));return{..._0x3b8ea7,'results':_0x3b8086};},_0x1279a1);}_isInDeletionRange(_0xf4f8df,_0x52d72f){const _0x423f55=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['start']),this['editor']['model']['createPositionAt'](_0x52d72f,_0xf4f8df['end']));for(const _0x5369b5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x423f55['getIntersection'](_0x5369b5['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x42a28f{afterInit(){const _0x45027e=this['editor']['locale'],_0x36cb32=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a6e7a,commandName:_0x1db2f9}of ne)this['editor']['plugins']['has'](_0x5a6e7a)&&_0x36cb32['enableDefaultAttributesIntegration'](_0x1db2f9);_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x45027e,'FORMAT_FONT_SIZE')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x45027e,'FORMAT_FONT_FAMILY')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x45027e,'FORMAT_FONT_COLOR')),_0x36cb32['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x45027e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x320d6b=this['editor'],_0x55256e=_0x320d6b['locale'];_0x320d6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x210086=>{const _0xb2e909=_0x55256e['t'];if('formatInline'!=_0x210086['type'])return;const {data:_0x4b5211}=_0x210086;if(null!=_0x4b5211){if('fontSize'==_0x4b5211['commandName']){const _0x56dae3=_0x4b5211['commandParams'][0x0]['value'];if(_0x56dae3){const _0x4429db=_0xb2e909(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x185feb=>_0x185feb['model']==_0x56dae3)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20size:*\x20%0',_0x4429db)};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4b5211['commandName']){const _0x10a748=_0x4b5211['commandParams'][0x0]['value'];return _0x10a748?{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20family:*\x20%0',_0x10a748)}:{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4b5211['commandName']){const _0x479f1f=_0x4b5211['commandParams'][0x0]['value'];if(_0x479f1f){const _0x1bca87=_0x2e67d6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x48d0b2=>_0x48d0b2['model']==_0x479f1f);let _0x81a2fb=_0x479f1f,_0x53a57b='';return _0x1bca87&&(_0x81a2fb=_0x1bca87['label'],_0x53a57b=_0xb2e909(_0x81a2fb)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20color:*\x20%0',_0x53a57b)['trim'](),'color':{'value':_0x479f1f,'title':_0x53a57b||_0x81a2fb}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4b5211['commandName']){const _0x5d2fcd=_0x4b5211['commandParams'][0x0]['value'];if(_0x5d2fcd){const _0x1ed10f=_0x2e67d6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5f5e00=>_0x5f5e00['model']==_0x5d2fcd);let _0x54b1ab=_0x5d2fcd,_0x485c2c='';return _0x1ed10f&&(_0x54b1ab=_0x1ed10f['label'],_0x485c2c=_0xb2e909(_0x54b1ab)['toLowerCase']()),{'type':'format','content':Mt(_0x55256e,'*Set\x20font\x20background\x20color:*\x20%0',_0x485c2c)['trim'](),'color':{'value':_0x5d2fcd,'title':_0x485c2c||_0x54b1ab}};}return{'type':'format','content':Mt(_0x55256e,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x42a28f{afterInit(){const {plugins:_0x289b05}=this['editor'];_0x289b05['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x289b05['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53cd41,plugins:_0xc68044,commands:_0x1d1a69}=this['editor'],_0x4ffda0=_0xc68044['get']('TrackChangesEditing');_0x1d1a69['get']('footnotesStyle')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1d1a69['get']('footnotesStart')&&_0x4ffda0['enableDefaultAttributesIntegration']('footnotesStart'),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4ffda0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x53cd41,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2842f3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x149ef7,commands:_0x334b1a}=this['editor'];_0x334b1a['get']('insertFootnote')&&_0x2842f3['enableCommand']('insertFootnote'),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4dc8bd=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_REF',_0x4dc8bd)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x441f83=>Mt(_0x149ef7,'ELEMENT_FOOTNOTE_DEFINITION',_0x441f83)),_0x2842f3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2efbd3=>Mt(_0x149ef7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2efbd3));}},re=class extends _0x42a28f{afterInit(){const _0x38e9a0=this['editor'],_0x53948=_0x38e9a0['plugins']['get']('TrackChangesEditing'),_0xdea673=_0x38e9a0['commands']['get']('copyFormat'),_0x5f0241=_0x38e9a0['commands']['get']('pasteFormat');_0xdea673&&_0x5f0241&&(_0x53948['enableDefaultAttributesIntegration']('pasteFormat'),_0x53948['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x21bf5e=this['editor'],_0x20279d=_0x21bf5e['locale'];_0x21bf5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f287=>{if('formatBlock'!=_0x59f287['type']&&'formatInline'!=_0x59f287['type'])return;const {data:_0x4c86ac}=_0x59f287;if(_0x4c86ac&&'pasteFormat'===_0x4c86ac['commandName']){const _0x4315c1=[],_0xc73e00=_0x4c86ac['commandParams'][0x0];for(const [_0x1e55ef,_0x4fc7c8]of Object['entries'](_0xc73e00))_0x4315c1['push'](oe(_0x21bf5e,_0x1e55ef,_0x4fc7c8));return _0x4315c1['length']?{'type':'format','content':Mt(_0x20279d,'*Set\x20format\x20to:*\x20%0',_0x4315c1['join'](',\x20'))}:{'type':'format','content':Mt(_0x20279d,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x327e1a,_0x4dbba8,_0x443c38){const _0x552624=_0x327e1a['locale']['t'],_0x565839=_0x4dbba8['split'](/(?=[A-Z])/)['join']('\x20'),_0x1faba4=_0x552624(_0x565839['charAt'](0x0)['toUpperCase']()+_0x565839['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x443c38)return _0x1faba4;if('fontColor'===_0x4dbba8||'fontBackgroundColor'===_0x4dbba8){const _0x4b9c4d=_0x2e67d6(_0x327e1a['config']['get']('fontColor.colors'))['find'](_0x1984f1=>_0x1984f1['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x4b9c4d?_0x552624(_0x4b9c4d['label'])['toLowerCase']():_0x443c38)+')';}if('fontSize'===_0x4dbba8&&isNaN(parseFloat(_0x443c38))){const _0x2d7dce=_0x327e1a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x327e1a['config']['get']('fontSize.options'))['find'](_0x49bd46=>_0x49bd46['model']==_0x443c38);return _0x1faba4+'\x20('+(_0x2d7dce?_0x552624(_0x2d7dce['title'])['toLowerCase']():_0x443c38)+')';}return _0x1faba4+'\x20('+_0x443c38+')';}var ae=class extends _0x42a28f{afterInit(){const _0x381a84=this['editor'];if(!_0x381a84['plugins']['has']('GeneralHtmlSupport')||!_0x381a84['plugins']['has']('DataSchema'))return;const _0xf8da02=_0x381a84['plugins']['get']('TrackChangesEditing'),_0x2c7611=_0x381a84['plugins']['get']('GeneralHtmlSupport'),_0x18e79d=_0x381a84['plugins']['get']('DataSchema'),_0x461b7b=_0x381a84['locale'],_0x16047f=new Set(['htmlContent']);for(const _0x2f78a2 of _0x18e79d['getDefinitionsForView'](/.*/,!0x1)){const _0x21a78d=_0x2f78a2['view'],_0x7d8af9=_0x2c7611['getGhsAttributeNameForElement'](_0x21a78d);_0x16047f['add'](_0x7d8af9),!_0x2f78a2['isInline']||_0x2f78a2['isObject']||'appliesToBlock'in _0x2f78a2&&_0x2f78a2['appliesToBlock']||_0xf8da02['descriptionFactory']['registerAttributeLabel'](_0x7d8af9,_0x21a78d),_0x2f78a2['model']['startsWith']('html')&&_0xf8da02['descriptionFactory']['registerElementLabel'](_0x2f78a2['model'],_0x332c65=>Mt(_0x461b7b,'ELEMENT_HTML_TAG',[_0x332c65,_0x21a78d]));}_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x461b7b,'FORMAT_RAW_HTML_CONTENT')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x461b7b,'FORMAT_HTML_LIST_ITEM')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x461b7b,'FORMAT_HTML_BULLETED_LIST')),_0xf8da02['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x461b7b,'FORMAT_HTML_NUMBERED_LIST')),_0xf8da02['descriptionFactory']['registerDescriptionCallback'](_0x2cc57a=>{if('attribute'!==_0x2cc57a['type'])return;const _0x4769f8=_0x2cc57a['data'];if(!_0x4769f8||!_0x16047f['has'](_0x4769f8['key']))return;if('htmlContent'===_0x4769f8['key'])return{'type':'format','content':Mt(_0x461b7b,'*Change\x20%0\x20content*',Mt(_0x461b7b,'ELEMENT_RAW_HTML'))};const {setItems:_0x4a82ad,removeItems:_0x592abd}=function(_0x4cfb8d,_0x55a4a6,_0x15085c){const _0x4b7ab5=[],_0x79cb8=[],_0x260323=_0x4cfb8d['styles']??{},_0x5b69cd=_0x55a4a6['styles']??{};for(const _0xb223f2 of new Set([...Object['keys'](_0x260323),...Object['keys'](_0x5b69cd)]))_0x260323[_0xb223f2]!==_0x5b69cd[_0xb223f2]&&(void 0x0===_0x5b69cd[_0xb223f2]?_0x79cb8['push'](_0xb223f2):_0x4b7ab5['push'](_0xb223f2+'\x20('+_0x5b69cd[_0xb223f2]+')'));const _0x37b942=Mt(_0x15085c,'FORMAT_HTML_CLASS'),_0xf1caf1=new Set(_0x4cfb8d['classes']??[]),_0x1bd692=new Set(_0x55a4a6['classes']??[]),_0x503a39=[..._0x1bd692]['some'](_0x44f8a9=>!_0xf1caf1['has'](_0x44f8a9)),_0xbd07ba=[..._0xf1caf1]['some'](_0x1a9b60=>!_0x1bd692['has'](_0x1a9b60));_0x503a39&&_0x4b7ab5['push'](_0x37b942),_0xbd07ba&&_0x79cb8['push'](_0x37b942);const _0x51525d=Mt(_0x15085c,'FORMAT_HTML_ATTRIBUTE'),_0x480b42=_0x4cfb8d['attributes']??{},_0x8bcfe8=_0x55a4a6['attributes']??{};let _0x63061b=!0x1,_0x2ed863=!0x1;for(const _0x140891 of new Set([...Object['keys'](_0x480b42),...Object['keys'](_0x8bcfe8)]))_0x480b42[_0x140891]!==_0x8bcfe8[_0x140891]&&(void 0x0===_0x8bcfe8[_0x140891]?_0x2ed863=!0x0:_0x63061b=!0x0);return _0x63061b&&_0x4b7ab5['push'](_0x51525d),_0x2ed863&&_0x79cb8['push'](_0x51525d),{'setItems':_0x4b7ab5,'removeItems':_0x79cb8};}(_0x4769f8['oldValue']??{},_0x4769f8['newValue']??{},_0x461b7b);if(!_0x4a82ad['length']&&!_0x592abd['length'])return;const _0x149f18=[];return _0x4a82ad['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Set\x20format:*\x20%0',_0x4a82ad['join'](',\x20'))),_0x592abd['length']&&_0x149f18['push'](Mt(_0x461b7b,'*Remove\x20format:*\x20%0',_0x592abd['join'](',\x20'))),{'type':'format','content':_0x149f18['join']('\x0a')};});}},ce=class extends _0x42a28f{_headingOptions;afterInit(){const _0x445873=this['editor'];if(!_0x445873['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x445873['config']['get']('heading.options');const _0x5add1d=_0x445873['locale'],_0x4a2676=_0x445873['plugins']['get']('TrackChangesEditing');_0x4a2676['enableDefaultAttributesIntegration']('heading');for(const _0x509f11 of this['_headingOptions'])'paragraph'!=_0x509f11['model']&&_0x4a2676['descriptionFactory']['registerElementLabel'](_0x509f11['model'],_0x24d7d8=>{const _0x2411fc=this['_getHeadingLevel'](_0x509f11['model']);return null!==_0x2411fc?_0x83a635(_0x24d7d8,_0x2411fc):_0xa067f7(_0x24d7d8,_0x509f11['title']);});function _0x83a635(_0x446e13,_0x396535){return Mt(_0x5add1d,'ELEMENT_HEADING',[_0x446e13,_0x396535]);}function _0xa067f7(_0x410a61,_0x845500){return Mt(_0x5add1d,'ELEMENT_HEADING_CUSTOM',[_0x410a61,_0x845500]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x27a779=this['editor'],_0x3b76b2=_0x27a779['locale'];function _0x27b121(_0x58d6d3,_0x5db92b){return Mt(_0x3b76b2,'ELEMENT_HEADING_CUSTOM',[_0x58d6d3,_0x5db92b]);}_0x27a779['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x496d3a=>{if('formatBlock'!=_0x496d3a['type'])return;const {data:_0x452265}=_0x496d3a;if(_0x452265&&'heading'==_0x452265['commandName']){const _0x21c5b0=_0x452265['commandParams'][0x0]['value'],_0x53de80=this['_getHeadingLevel'](_0x21c5b0);if(null!==_0x53de80)return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',(_0x43f2c2=0x1,_0x2f0124=_0x53de80,Mt(_0x3b76b2,'ELEMENT_HEADING',[_0x43f2c2,_0x2f0124])))};const _0x1f16c0=this['_headingOptions']['find'](_0x9fdbc4=>_0x9fdbc4['model']===_0x21c5b0)['title'];return{'type':'format','content':Mt(_0x3b76b2,'*Change\x20to:*\x20%0',_0x27b121(0x1,_0x1f16c0))};}var _0x43f2c2,_0x2f0124;});}_getHeadingLevel(_0x588bb2){const _0x291ac8=_0x588bb2['match'](/^heading(\d+)/);if(_0x291ac8)return _0x291ac8[0x1];const _0x4378a8=this['_headingOptions']?.['find'](_0x3008bd=>_0x3008bd['model']==_0x588bb2);if(_0x4378a8&&_0x4378a8['view']){const _0x4b21e6=_0x4378a8['view'],_0x2479e9=(_0x4b21e6['name']??_0x4b21e6)['match'](/^h(\d+)/);if(_0x2479e9)return _0x2479e9[0x1];}return null;}},le=class extends _0x42a28f{afterInit(){const _0x1f5ae2=this['editor'];if(!_0x1f5ae2['plugins']['has']('HighlightEditing'))return;const _0x4a3fd4=_0x1f5ae2['plugins']['get']('TrackChangesEditing'),_0x3f312b=_0x1f5ae2['locale'];_0x4a3fd4['enableDefaultAttributesIntegration']('highlight'),_0x4a3fd4['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x3f312b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e1f2a=this['editor'],_0x20caef=_0x2e1f2a['locale'];_0x2e1f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb63=>{if('formatInline'!=_0x2ccb63['type'])return;const {data:_0x50cf5d}=_0x2ccb63;if(_0x50cf5d&&'highlight'==_0x50cf5d['commandName']){const _0x3d190a=_0x20caef['t'],_0x45235b=_0x50cf5d['commandParams'][0x0]['value'];if(_0x45235b){const _0x304eec=_0x2e1f2a['config']['get']('highlight.options')['find'](_0x2fde01=>_0x2fde01['model']==_0x45235b),_0x16edc4=_0x3d190a(_0x304eec['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x20caef,'*Set\x20highlight:*\x20%0',_0x16edc4),'color':{'value':_0x304eec['color'],'title':_0x304eec['title']}};}return{'type':'format','content':Mt(_0x20caef,'*Remove\x20highlight*',Mt(_0x20caef,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x42a28f{afterInit(){const _0x2a53b1=this['editor'];if(!_0x2a53b1['plugins']['has']('HorizontalLineEditing'))return;_0x2a53b1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5166a2=_0x2a53b1['plugins']['get']('TrackChangesEditing'),_0x2e9f65=_0x2a53b1['locale'];_0x5166a2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5374e7=>Mt(_0x2e9f65,'ELEMENT_HORIZONTAL_LINE',_0x5374e7));}},de=class extends _0x42a28f{afterInit(){const _0x255e34=this['editor'];if(!_0x255e34['plugins']['has']('HtmlEmbed'))return;const _0x5d63a4=_0x255e34['plugins']['get']('TrackChangesEditing'),_0x1e761d=_0x255e34['locale'];_0x5d63a4['descriptionFactory']['registerElementLabel']('rawHtml',_0x424fc5=>Mt(_0x1e761d,'ELEMENT_HTML_EMBED',_0x424fc5)),_0x5d63a4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d63a4['descriptionFactory']['registerDescriptionCallback'](_0x3e8038=>{if('attribute'!=_0x3e8038['type'])return;const {data:_0x134091}=_0x3e8038;if(_0x134091&&'value'==_0x134091['key']&&_0x3e8038['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56b076=Mt(_0x1e761d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1e761d,'*Change\x20%0\x20content*',_0x56b076)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3021c3=this['editor'],_0x4d037d=_0x3021c3['locale'];_0x3021c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b945c=>{if('formatBlock'!=_0x3b945c['type'])return;const {data:_0x10f420}=_0x3b945c;if(_0x10f420&&'htmlEmbed'==_0x10f420['commandName']){const _0x3e5d2e=Mt(_0x4d037d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x4d037d,'*Change\x20%0\x20content*',_0x3e5d2e)};}});}},he=class extends _0x42a28f{afterInit(){const _0x42c5a0=this['editor'];if(!_0x42c5a0['plugins']['has']('ImageEditing'))return;const _0x4ad6ce=_0x42c5a0['plugins']['get']('TrackChangesEditing'),_0xf29aa3=_0x42c5a0['plugins']['get']('ImageUtils'),_0x5df051=_0x42c5a0['locale'];_0x4ad6ce['enableCommand']('insertImage'),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageBlock',_0x105e43=>Mt(_0x5df051,'ELEMENT_IMAGE',_0x105e43)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('imageInline',_0x4954d2=>Mt(_0x5df051,'ELEMENT_INLINE_IMAGE',_0x4954d2)),_0x4ad6ce['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x5df051,'ELEMENT_CAPTION')),_0x42c5a0['plugins']['has']('ImageUploadEditing')&&_0x4ad6ce['enableCommand']('uploadImage'),_0x42c5a0['plugins']['has']('ImageBlockEditing')&&_0x42c5a0['plugins']['has']('ImageInlineEditing')&&(_0x4ad6ce['enableCommand']('imageTypeInline',(_0x5db709,_0x1dafce)=>{const _0x24aef1=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']);_0x42c5a0['model']['change'](()=>{_0x4ad6ce['markBlockFormat'](_0x24aef1,{'commandName':'imageTypeInline','commandParams':[_0x1dafce]},[],'convertBlockImageToInline');});}),_0x4ad6ce['enableCommand']('imageTypeBlock',(_0x8114e7,_0x4689f7)=>{_0x42c5a0['model']['change'](_0x5146ea=>{let _0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x585ee5=st['fromPosition'](_0x493ac8['start'],'toPrevious'),_0xaabfa=st['fromPosition'](_0x493ac8['end'],'toNext');_0x4ad6ce['forceDefaultExecution'](()=>_0x8114e7(_0x4689f7)),_0x5b8b2f=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x493ac8=_0x5146ea['createRangeOn'](_0x5b8b2f);const _0x562890=_0x5146ea['createRange'](_0x585ee5,_0xaabfa);_0x585ee5['detach'](),_0xaabfa['detach'](),_0x4ad6ce['markBlockFormat'](_0x5b8b2f,{'commandName':'imageTypeInline','commandParams':[_0x4689f7]},[],'convertInlineImageToBlock'),_0x562890['start']['isBefore'](_0x493ac8['start'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x562890['start'],_0x493ac8['start']),'convertInlineImageToBlock'),_0x493ac8['end']['isBefore'](_0x562890['end'])&&_0x4ad6ce['markInsertion'](_0x5146ea['createRange'](_0x493ac8['end'],_0x562890['end']),'convertInlineImageToBlock');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a25e8])=>{const _0x3f7287=_0x4ad6ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x593ab0=_0x2a25e8['start'],_0x20fc4a=_0x2a25e8['end'];const _0x2f26f3=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x593ab0,'backward'),_0x532fb5=_0x42c5a0['model']['schema']['getNearestSelectionRange'](_0x20fc4a,'forward');_0x2f26f3['isCollapsed']&&(_0x593ab0=_0x2f26f3['start']),_0x532fb5['isCollapsed']&&(_0x20fc4a=_0x532fb5['end']),_0x3f7287([_0x42c5a0['model']['createRange'](_0x593ab0,_0x20fc4a)]);}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x149ca0),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x149ca0)),_0x42c5a0['plugins']['has']('ImageCaptionEditing')&&(_0x4ad6ce['enableCommand']('toggleImageCaption',(_0x41908b,_0x5cc27c)=>{const _0x8b68a5=_0x42c5a0['plugins']['get']('ImageCaptionUtils');let _0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575);_0x42c5a0['model']['change'](()=>{if(_0x160f09)return void _0x4ad6ce['markDeletion'](_0x42c5a0['model']['createRangeOn'](_0x160f09));const _0x7ca9c3=_0xf29aa3['isBlockImage'](_0x2c7575);_0x41908b(_0x5cc27c),_0x2c7575=_0xf29aa3['getClosestSelectedImageElement'](_0x42c5a0['model']['document']['selection']),_0x160f09=_0x8b68a5['getCaptionFromImageModelElement'](_0x2c7575),_0x4ad6ce['markInsertion'](_0x42c5a0['model']['createRangeOn'](_0x160f09),_0x7ca9c3?null:'imageCaption');});}),_0x4ad6ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x149ca0));const _0x2ab2fa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x416f98(_0x293edc,_0x4f4296){const _0x177709=_0x2ab2fa['findIndex'](({type:_0x142d4f,subType:_0x46ed58})=>_0x293edc['type']==_0x142d4f&&_0x293edc['subType']==_0x46ed58),_0x4d9610=_0x2ab2fa['findIndex'](({type:_0x52a19a,subType:_0x589b20})=>_0x4f4296['type']==_0x52a19a&&_0x4f4296['subType']==_0x589b20);if(_0x177709<0x0||_0x4d9610<0x0)return!0x1;const _0x387cad=_0x293edc['getFirstRange'](),_0x388fb2=_0x4f4296['getFirstRange']();if((0x0==_0x177709||0x1==_0x177709)&&0x2==_0x4d9610&&_0x387cad['isIntersecting'](_0x388fb2))return!0x0;if(0x2==_0x177709&&0x3==_0x4d9610){const _0xcda4e4=_0x4ad6ce['_findSuggestions'](_0x387cad,'insertion')['filter'](({suggestion:_0x2cd7c7,meta:_0x1f5655})=>_0x1f5655['isOwn']&&'convertInlineImageToBlock'==_0x2cd7c7['subType']);if(_0xcda4e4['length']>0x1&&_0x388fb2['end']['isEqual'](_0x387cad['start']))return!0x0;if(0x1==_0xcda4e4['length']&&(_0x387cad['start']['isEqual'](_0x388fb2['end'])||_0x387cad['end']['isEqual'](_0x388fb2['start'])))return!0x0;}if(0x3==_0x177709&&0x3==_0x4d9610&&_0x387cad['start']['isBefore'](_0x388fb2['start'])){const _0x3642d5=_0x387cad['end']['nodeAfter'],_0xc3b2e8=_0x388fb2['start']['nodeBefore'];return _0xf29aa3['isBlockImage'](_0x3642d5)&&_0x3642d5===_0xc3b2e8;}return!0x1;}function _0x149ca0(_0x3ace97,_0x217d9e){return _0x416f98(_0x3ace97,_0x217d9e)?[_0x3ace97,_0x217d9e]:_0x416f98(_0x217d9e,_0x3ace97)?[_0x217d9e,_0x3ace97]:null;}_0x42c5a0['plugins']['has']('ImageResize')&&(_0x4ad6ce['enableDefaultAttributesIntegration']('resizeImage'),_0x4ad6ce['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x5df051,'FORMAT_IMAGE_SIZE'))),_0x42c5a0['plugins']['has']('ImageTextAlternativeEditing')&&_0x4ad6ce['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x42c5a0['plugins']['has']('PictureEditing')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x3c6a3f=>{if('attribute'!=_0x3c6a3f['type'])return;const {data:_0x484dc1}=_0x3c6a3f;return _0x484dc1&&'sources'==_0x484dc1['key']?{'type':'format','content':''}:void 0x0;}),_0x42c5a0['plugins']['has']('ImageSizeAttributes')&&_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x56333e=>{if('attribute'!=_0x56333e['type'])return;const {data:_0x3060d4}=_0x56333e;return!_0x3060d4||'width'!=_0x3060d4['key']&&'height'!=_0x3060d4['key']?void 0x0:{'type':'format','content':''};}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x338220=>{if(_0x2ab2fa['find'](({type:_0x2305a4,subType:_0x2f8ef6})=>_0x338220['type']==_0x2305a4&&_0x338220['subType']==_0x2f8ef6))return _0x338220['previous']?{}:void 0x0;}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x4adf6c=>{if('insertion'==_0x4adf6c['type']||'deletion'==_0x4adf6c['type']){const _0x3c35c6=_0x4adf6c['getContainedElement']();if(_0x3c35c6&&_0x3c35c6['is']('element','caption'))return{'type':'insertion'==_0x4adf6c['type']?'addObject':'removeObject','element':_0x3c35c6,'quantity':0x1};}}),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x120748=>'formatBlock'==_0x120748['type']&&'convertInlineImageToBlock'==_0x120748['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x120748['type']&&'convertBlockImageToInline'==_0x120748['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ad6ce['descriptionFactory']['registerDescriptionCallback'](_0x45d666=>{if('attribute'!=_0x45d666['type'])return;const {data:_0x5b3018}=_0x45d666;if(!_0x5b3018||'alt'!=_0x5b3018['key'])return;const _0x3c47a6=_0x5b3018['newValue'];return _0x3c47a6?{'type':'format','content':Mt(_0x5df051,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c47a6+'\x22')}:{'type':'format','content':Mt(_0x5df051,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x11ea04=this['editor'],_0x2300ed=_0x11ea04['locale'];_0x11ea04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17dfe1=>{if('formatBlock'!=_0x17dfe1['type']&&'formatInline'!=_0x17dfe1['type'])return;const {data:_0x41b015}=_0x17dfe1;if(_0x41b015){if('imageTextAlternative'==_0x41b015['commandName']){const _0x4a716b=_0x41b015['commandParams'][0x0]['newValue'];return _0x4a716b?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a716b+'\x22')}:{'type':'format','content':Mt(_0x2300ed,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41b015['commandName']){const _0x87e5e5=_0x41b015['commandParams'][0x0]['width'];return _0x87e5e5?{'type':'format','content':Mt(_0x2300ed,'*Set\x20image\x20width:*\x20%0',_0x87e5e5)}:{'type':'format','content':Mt(_0x2300ed,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x202a6c=this['editor']['locale'],_0x550426=this['editor']['plugins']['get']('TrackChangesEditing');_0x550426['enableDefaultAttributesIntegration']('replaceImageSource'),_0x550426['descriptionFactory']['registerDescriptionCallback'](_0x523079=>{if('attribute'!=_0x523079['type'])return;const {data:_0x3418df}=_0x523079;return _0x3418df&&'src'==_0x3418df['key']?_0x3418df['newValue']&&_0x3418df['oldValue']?{'type':'format','content':Mt(_0x202a6c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3ec819=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ec819['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ec819['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d3897=this['editor'],_0x58145c=_0x4d3897['locale'];_0x4d3897['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17da70=>{if('formatBlock'!=_0x17da70['type']&&'formatInline'!=_0x17da70['type'])return;const {data:_0x1a9312}=_0x17da70;return _0x1a9312&&'replaceImageSource'==_0x1a9312['commandName']?{'type':'format','content':Mt(_0x58145c,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x42a28f{afterInit(){const _0x6aab46=this['editor'];if(!_0x6aab46['plugins']['has']('ImageStyleEditing'))return;const _0x4dc94e=_0x6aab46['plugins']['get']('TrackChangesEditing'),_0x962319=_0x6aab46['plugins']['get']('ImageUtils'),_0x1c24a7={};_0x4dc94e['enableCommand']('imageStyle',(_0x4dd477,_0x158d81)=>{const _0x1dc809=_0x6aab46['plugins']['get']('Users')['me'],_0x34a8bc=_0x6aab46['commands']['get']('imageStyle');let _0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x52df9b=_0x34a8bc['value'];if(_0x52df9b==_0x158d81['value'])return;if(_0x158d81['value']&&_0x962319['isInlineImage'](_0x192fb6)&&!_0x34a8bc['isStyleEnabled'](_0x158d81['value']))return;const _0x5e96f8={'commandName':'imageStyle','commandParams':[_0x158d81],'formatGroupId':_0x5b5c0d()};_0x6aab46['model']['change'](()=>{if(_0x4dc94e['getSuggestions']()['filter'](_0x4fba5c=>_0x4fba5c['isInContent']&&_0x1dc809==_0x4fba5c['author']&&('formatBlock'==_0x4fba5c['type']||'formatInline'==_0x4fba5c['type'])&&('imageStylePreApply'==_0x4fba5c['subType']||'imageStylePostApply'==_0x4fba5c['subType'])&&_0x4fba5c['getFirstRange']()['isEqual'](_0x1ece1a))['forEach'](_0x1628ca=>_0x4dc94e['discardSuggestion'](_0x1628ca['head'])),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),_0x1ece1a=_0x6aab46['model']['createRangeOn'](_0x192fb6),_0x34a8bc['refresh'](),_0x6aab46['commands']['get']('imageTypeInline')['refresh'](),_0x6aab46['commands']['get']('imageTypeBlock')['refresh'](),_0x52df9b=_0x34a8bc['value'],_0x52df9b!=_0x158d81['value'])return _0x962319['isInlineImage'](_0x192fb6)&&_0x34a8bc['shouldConvertImageType'](_0x158d81['value'],_0x192fb6)?(_0x4dd477({..._0x158d81,'setImageSizes':!0x1}),_0x192fb6=_0x962319['getClosestSelectedImageElement'](_0x6aab46['model']['document']['selection']),void _0x4dc94e['markBlockFormat'](_0x192fb6,{..._0x5e96f8,'commandReversedParams':[{'value':_0x52df9b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x962319['isBlockImage'](_0x192fb6)?_0x4dc94e['markBlockFormat'](_0x192fb6,_0x5e96f8,[],'imageStylePostApply'):_0x4dc94e['markInlineFormat'](_0x1ece1a,_0x5e96f8,'imageStylePostApply'));});});for(const _0xc4f6c1 of _0x6aab46['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1c24a7[_0xc4f6c1['name']]=_0xc4f6c1['title']['toLowerCase']();_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2087f8])=>{_0x962319['setImageNaturalSizeAttributes'](_0x2087f8['getContainedElement']());}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x178f8a,_0x3e5c0b)=>{_0x4dc94e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x178f8a,{'commandName':_0x3e5c0b['commandName'],'commandParams':_0x3e5c0b['commandReversedParams']});}),_0x4dc94e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52caff,_0x193287){return _0x4fa0de(_0x52caff,_0x193287)?[_0x52caff,_0x193287]:_0x4fa0de(_0x193287,_0x52caff)?[_0x193287,_0x52caff]:null;});const _0x4c93e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4fa0de(_0x197a7d,_0x520683){const _0x213e10=_0x4c93e0['findIndex'](({type:_0x2bd2aa,subType:_0x54aa4f})=>_0x197a7d['type']==_0x2bd2aa&&_0x197a7d['subType']==_0x54aa4f),_0x274224=_0x4c93e0['findIndex'](({type:_0x4b0163,subType:_0x405f36})=>_0x520683['type']==_0x4b0163&&_0x520683['subType']==_0x405f36);if(_0x213e10<0x0||_0x274224<0x0)return!0x1;const _0x30e49e=_0x197a7d['getFirstRange'](),_0x49a3b0=_0x520683['getFirstRange']();if((0x0==_0x213e10||0x1==_0x213e10)&&0x2==_0x274224&&_0x30e49e['isIntersecting'](_0x49a3b0))return!0x0;if(0x2==_0x213e10&&0x3==_0x274224){const _0x501c40=_0x4dc94e['_findSuggestions'](_0x30e49e,'insertion')['filter'](({suggestion:_0x4f31a2,meta:_0xd1d99e})=>_0xd1d99e['isOwn']&&'convertInlineImageToBlock'==_0x4f31a2['subType']);if(_0x501c40['length']>0x1&&_0x49a3b0['end']['isEqual'](_0x30e49e['start']))return!0x0;if(0x1==_0x501c40['length']&&(_0x30e49e['start']['isEqual'](_0x49a3b0['end'])||_0x30e49e['end']['isEqual'](_0x49a3b0['start'])))return!0x0;}if(0x3==_0x213e10&&0x3==_0x274224&&_0x30e49e['start']['isBefore'](_0x49a3b0['start'])){const _0x234f5c=_0x30e49e['end']['nodeAfter'],_0x1dd2e1=_0x49a3b0['start']['nodeBefore'];return _0x962319['isBlockImage'](_0x234f5c)&&_0x234f5c===_0x1dd2e1;}return!0x1;}_0x6aab46['model']['document']['registerPostFixer'](()=>{let _0x40434d=!0x1;const _0x169bde=Array['from'](_0x6aab46['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5539db,data:_0x32300f}of _0x169bde){const {group:_0x38cc14,type:_0x52eca1,subType:_0x53724b,id:_0x431877}=tt(_0x5539db);if('suggestion'==_0x38cc14&&_0x4dc94e['hasSuggestion'](_0x431877)){if('formatBlock'==_0x52eca1&&('imageStylePreApply'==_0x53724b||'imageStylePostApply'==_0x53724b)){const _0x387783=_0x4dc94e['getSuggestion'](_0x431877);if(_0x32300f['newRange']){const _0x888a18=_0x387783['getFirstRange']()['getContainedElement']();if(_0x962319['isBlockImage'](_0x888a18))continue;_0x4dc94e['discardSuggestion'](_0x387783),_0x40434d=!0x0;}}if('insertion'==_0x52eca1&&'imageCaption'==_0x53724b&&!_0x32300f['newRange']){const _0x111f5c=_0x4dc94e['getSuggestion'](_0x431877);_0x111f5c['next']&&_0x111f5c['next']['isInContent']&&(_0x4dc94e['discardSuggestion'](_0x111f5c['next']),_0x40434d=!0x0);}}}return _0x40434d;}),this['_registerLegacyDescription'](_0x1c24a7);}_registerLegacyDescription(_0x49d1e6){const _0x1beef7=this['editor'],_0x5a1e20=_0x1beef7['locale'];_0x1beef7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x271ab8=>{if('formatBlock'!=_0x271ab8['type']&&'formatInline'!=_0x271ab8['type'])return;const {data:_0x5c1400}=_0x271ab8;if(!_0x5c1400||'imageStyle'!=_0x5c1400['commandName'])return;const _0x1c440f=_0x5c1400['commandParams'][0x0]['value'];return _0x24f786('side'===_0x1c440f?Mt(_0x5a1e20,'FORMAT_SIDE_IMAGE'):_0x49d1e6[_0x1c440f]||_0x1c440f);function _0x24f786(_0x2573c1){return{'type':'format','content':Mt(_0x5a1e20,'*Format:*\x20%0',_0x2573c1)};}});}},me=class extends _0x42a28f{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x3dcf76){super(_0x3dcf76),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x4c8988=this['editor'],_0x198ad1=_0x4c8988['commands']['get']('importWord'),_0x44cb32=_0x4c8988['commands']['get']('trackChanges');_0x198ad1&&(_0x198ad1['on']('execute',(_0x519807,[,_0x34b34c])=>{this['_trackChangesValueDuringImport']=_0x44cb32['value'],_0x34b34c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x198ad1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x198ad1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x44cb32['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4c8988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0xd48205,_0x197366){const {suggestions:_0x5f45b5}=_0x197366,_0x5cc3cf=this['editor']['commands']['get']('trackChanges'),_0xc34bd=_0x5cc3cf['value'];this['_trackChangesValueDuringImport']!==_0xc34bd&&(_0x5cc3cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f45b5&&_0x5f45b5['forEach'](({id:_0x45915a,type:_0x44e245,author:_0x2509df,created_at:_0x4006e8})=>{const _0x26ff62={'id':_0x45915a,'type':_0x44e245,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2509df,'createdAt':_0x4006e8?new Date(_0x4006e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x26ff62);});}},Ee=class extends _0x42a28f{afterInit(){const _0x44ed11=this['editor'],_0x304366=_0x44ed11['plugins']['get']('TrackChangesEditing');if(_0x44ed11['plugins']['has']('IndentEditing')&&(_0x304366['enableCommand']('indent'),_0x304366['enableCommand']('outdent')),_0x44ed11['plugins']['has']('IndentBlock')){for(const _0x3415dd of['indentBlock','outdentBlock'])_0x304366['enableDefaultAttributesIntegration'](_0x3415dd);if(_0x44ed11['plugins']['has']('ListEditing')){for(const _0x4fe5c0 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x304366['enableDefaultAttributesIntegration'](_0x4fe5c0);}}const _0x264877=_0x44ed11['locale'];_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x264877,'FORMAT_INDENT')),_0x304366['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x264877,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29b3ef=this['editor'],_0x23d95b=_0x29b3ef['locale'],_0x4fd642=_0x29b3ef['plugins']['get']('TrackChangesEditing');_0x4fd642['descriptionFactory']['registerDescriptionCallback'](_0x1dc857=>{if('formatBlock'!=_0x1dc857['type'])return;const {data:_0x2ae70b}=_0x1dc857;if(!_0x2ae70b)return;if('indentBlock'!=_0x2ae70b['commandName']&&'outdentBlock'!=_0x2ae70b['commandName'])return;const _0x295acc=_0x1dc857['getItems']()[0x0],_0x2b9a9f=_0x4fd642['descriptionFactory']['getItemLabel'](_0x295acc);return'indentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Indent:*\x20%0',_0x2b9a9f)}:'outdentBlock'==_0x2ae70b['commandName']?{'type':'format','content':Mt(_0x23d95b,'*Outdent:*\x20%0',_0x2b9a9f)}:void 0x0;});}},Te=class extends _0x42a28f{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x42a28f{afterInit(){const _0x19fbdc=this['editor'];if(!_0x19fbdc['plugins']['has']('LinkEditing'))return;const _0x2bfb1a=_0x19fbdc['plugins']['get']('TrackChangesEditing'),_0x8ddf4c=_0x19fbdc['commands']['get']('link');_0x2bfb1a['enableDefaultAttributesIntegration']('link'),_0x2bfb1a['enableDefaultAttributesIntegration']('unlink');for(const _0x2641b5 of _0x8ddf4c['manualDecorators'])_0x2bfb1a['descriptionFactory']['registerAttributeLabel'](_0x2641b5['id'],'link\x20('+_0x2641b5['label']['toLowerCase']()+')');_0x2bfb1a['descriptionFactory']['registerDescriptionCallback'](_0x2184ab=>{if('attribute'!=_0x2184ab['type'])return;const {data:_0x3b8645}=_0x2184ab;if(!_0x3b8645||'linkHref'!=_0x3b8645['key'])return;const _0x59f198=_0x3b8645['newValue'],_0x3d0400=_0x19fbdc['locale'];return{'type':'format','content':null==_0x59f198?Mt(_0x3d0400,'*Remove\x20link*'):Mt(_0x3d0400,'*Set\x20link:*\x20%0','\x22'+_0x59f198+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x548e3e=this['editor'],_0x501067=_0x548e3e['locale'];_0x548e3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c633c=>{if('formatInline'!=_0x4c633c['type'])return;const {data:_0xd5d7e8}=_0x4c633c;if(_0xd5d7e8){if('link'==_0xd5d7e8['commandName']){const _0x35997f=_0xd5d7e8['commandParams'][0x0];return{'type':'format','content':Mt(_0x501067,'*Set\x20link:*\x20%0','\x22'+_0x35997f+'\x22')};}return'unlink'==_0xd5d7e8['commandName']?{'type':'format','content':Mt(_0x501067,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x42a28f{afterInit(){const _0x43453a=this['editor'],_0x1161ec=_0x43453a['locale'];if(!_0x43453a['plugins']['has']('LegacyListEditing'))return;const _0x94bc2d=_0x43453a['plugins']['get']('TrackChangesEditing'),_0x29f7d3=_0x43453a['plugins']['has']('LegacyTodoListEditing');function _0x431d90(_0x47dd9d){return()=>{const _0x38a953=_0x43453a['model']['document']['selection'],_0x2251ff=_0x43453a['commands']['get'](_0x47dd9d);if(_0x2251ff['value'])return void _0x43453a['execute']('paragraph',{});const _0x51430b=_0x47dd9d['slice'](0x0,-0x4),_0x13e0ed=function(_0x466fe9,_0x3be9e8,_0x5c362f){let _0x4d9200=Array['from'](_0x466fe9)['filter'](_0x356214=>function(_0x1726f0,_0x527f74){return _0x527f74['checkChild'](_0x1726f0['parent'],'listItem')&&!_0x527f74['isObject'](_0x1726f0);}(_0x356214,_0x5c362f));_0x4d9200=_0x4d9200['filter'](_0x571348=>!_0x571348['is']('element','listItem')||_0x571348['getAttribute']('listType')!=_0x3be9e8);const _0x4e294b=new Set();for(const _0x15c765 of _0x4d9200)_0x15c765['is']('element','listItem')?_0x4e294b['add'](Le(_0x15c765)):_0x4e294b['add'](_0x15c765);return Array['from'](_0x4e294b);}(_0x38a953['getSelectedBlocks'](),_0x51430b,_0x43453a['model']['schema']);_0x43453a['model']['change'](()=>{for(const _0xeac4f4 of _0x13e0ed)_0x94bc2d['markBlockFormat'](_0xeac4f4,{'commandName':_0x47dd9d,'commandParams':[{'forceValue':!_0x2251ff['value']}],'formatGroupId':'blockName'},Ie(_0xeac4f4));});};}function _0x58c471(_0x345434){return()=>{const _0x375226=function(_0x177c30){let _0x5c69ca=Array['from'](_0x177c30);const _0x23c392=_0x5c69ca['findIndex'](_0x2e3868=>'listItem'!=_0x2e3868['name']);return _0x23c392>-0x1&&(_0x5c69ca=_0x5c69ca['slice'](0x0,_0x23c392)),_0x5c69ca;}(_0x43453a['model']['document']['selection']['getSelectedBlocks']()),_0x1782e8=_0x43453a['model']['createRange'](_0x43453a['model']['createPositionAt'](_0x375226[0x0],'before'),_0x43453a['model']['createPositionAt'](_0x375226[_0x375226['length']-0x1],'end'));_0x43453a['model']['change'](()=>{_0x94bc2d['markBlockFormat'](_0x1782e8,{'commandName':_0x345434,'commandParams':[],'formatGroupId':'listIndent'},function(_0x257671){const _0x2729df=new Set();for(const _0x35c56e of _0x257671){let _0x1e7f44=_0x35c56e['nextSibling'];for(;_0x1e7f44&&_0x1e7f44['getAttribute']('listIndent')>_0x35c56e['getAttribute']('listIndent');)_0x2729df['add'](_0x1e7f44),_0x1e7f44=_0x1e7f44['nextSibling'];}return Array['from'](_0x2729df);}(_0x375226));});};}_0x94bc2d['enableCommand']('numberedList',_0x431d90('numberedList')),_0x94bc2d['enableCommand']('bulletedList',_0x431d90('bulletedList')),_0x29f7d3&&_0x94bc2d['enableCommand']('todoList',_0x431d90('todoList')),_0x94bc2d['enableCommand']('indentList',_0x58c471('indentList')),_0x94bc2d['enableCommand']('outdentList',_0x58c471('outdentList')),_0x29f7d3&&_0x94bc2d['enableCommand']('checkTodoList',()=>{const _0x3ec8cb=_0x43453a['commands']['get']('checkTodoList'),_0x3d099d=Array['from'](_0x3ec8cb['_selectedElements']);_0x3d099d['filter'](_0x5c91d6=>_0x5c91d6['getAttribute']('todoListChecked')!=_0x3ec8cb['value']),_0x43453a['model']['change'](()=>{for(const _0xe6dd4e of _0x3d099d)_0x94bc2d['markBlockFormat'](_0xe6dd4e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ec8cb['value']}]});});}),_0x94bc2d['descriptionFactory']['registerElementLabel']('listItem',_0x1dc199=>Mt(_0x1161ec,'ELEMENT_LIST_ITEM',_0x1dc199)),_0x94bc2d['descriptionFactory']['registerDescriptionCallback'](_0x19415e=>{if('formatBlock'!=_0x19415e['type']&&'formatInline'!=_0x19415e['type'])return;const {data:_0x225826}=_0x19415e;if(_0x225826){if('numberedList'==_0x225826['commandName']||'bulletedList'==_0x225826['commandName']||'todoList'==_0x225826['commandName'])switch(_0x225826['commandName']['replace']('List','')){case'bulleted':return _0x3be608(Mt(_0x1161ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3be608(Mt(_0x1161ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3be608(Mt(_0x1161ec,'ELEMENT_TODO_LIST'));}if('indentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Indent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x225826['commandName'])return{'type':'format','content':Mt(_0x1161ec,'*Outdent:*\x20%0',Mt(_0x1161ec,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x225826['commandName'])return _0x225826['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1161ec,'*Check\x20item*')}:{'type':'format','content':Mt(_0x1161ec,'*Uncheck\x20item*')};}function _0x3be608(_0x408b98){return{'type':'format','content':Mt(_0x1161ec,'*Change\x20to:*\x20%0',_0x408b98)};}});}};function Le(_0x2cccf5){const _0x498e34=_0x2cccf5['getAttribute']('listIndent');if(0x0==_0x498e34)return _0x2cccf5;let _0x44a7b3=_0x2cccf5;for(;_0x2cccf5['previousSibling']&&_0x2cccf5['previousSibling']['is']('element','listItem');){const _0x4d2489=_0x2cccf5['previousSibling']['getAttribute']('listIndent');if(_0x4d2489==_0x498e34)_0x44a7b3=_0x2cccf5['previousSibling'];else{if(_0x4d2489<_0x498e34)break;}_0x2cccf5=_0x2cccf5['previousSibling'];}return _0x44a7b3;}function Ie(_0x254bac){const _0x22ba02=[];if(_0x254bac['is']('element','listItem')&&_0x254bac['getAttribute']('listIndent')>0x0){let _0x31a91b=_0x254bac['nextSibling'];for(;_0x31a91b&&'listItem'==_0x31a91b['name']&&_0x31a91b['getAttribute']('listIndent')==_0x254bac['getAttribute']('listIndent');)_0x22ba02['push'](_0x31a91b),_0x31a91b=_0x31a91b['nextSibling'];}return _0x22ba02;}var Ae=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1e1769=this['editor']['config']['get']('list.properties'),_0x1b131a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e1769['styles']&&_0x1b131a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1e1769['reversed']&&_0x1b131a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1e1769['startIndex']&&_0x1b131a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b131a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x43162f,_0x59158e={}){const _0x2c4646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d8a88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2c4646['markMultiRangeBlockFormat'](_0x5d8a88,{'commandName':'listStyle','commandParams':[{'type':_0x59158e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3f779f,_0x34cd3={}){const _0x5d350a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ea537=this['_getSuggestionBlocks'](_0x51bf1b=>_0x51bf1b['is']('element','listItem')&&'numbered'===_0x51bf1b['getAttribute']('listType'));if(_0x3ea537['length']<0x1)return;const _0x390806=_0x3ea537['map'](_0x5778dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5778dd,'before'),this['editor']['model']['createPositionAt'](_0x5778dd,0x0)));this['editor']['model']['change'](()=>{_0x5d350a['markMultiRangeBlockFormat'](_0x390806,{'commandName':'listReversed','commandParams':[{'reversed':_0x34cd3['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x6fc801,_0x16c781={}){const _0x43b05e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196a5a=this['_getSuggestionBlocks'](_0x3446be=>_0x3446be['is']('element','listItem')&&'numbered'===_0x3446be['getAttribute']('listType'));if(_0x196a5a['length']<0x1)return;const _0x479889=_0x196a5a['map'](_0x5d7d03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d7d03,'before'),this['editor']['model']['createPositionAt'](_0x5d7d03,0x0)));this['editor']['model']['change'](()=>{_0x43b05e['markMultiRangeBlockFormat'](_0x479889,{'commandName':'listStart','commandParams':[{'startIndex':_0x16c781['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2e4031){if('formatBlock'!=_0x2e4031['type']&&'formatInline'!=_0x2e4031['type'])return;const _0x53b977=this['editor']['locale'],{data:_0x31fe01}=_0x2e4031;if(!_0x31fe01)return;let _0x3aea6f,_0x4e2182;switch(_0x31fe01['commandName']){case'listStyle':_0x3aea6f='*Change\x20to:*\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,Mt(_0x53b977,this['_getTranslationKeyForListStyle'](_0x31fe01['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3aea6f=_0x31fe01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f)};break;case'listStart':_0x3aea6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e2182={'type':'format','content':Mt(_0x53b977,_0x3aea6f,_0x31fe01['commandParams'][0x0]['startIndex'])};}return _0x4e2182;}_getSuggestionBlocksForListStyle(){const _0x481916=this['editor']['plugins']['get']('LegacyListUtils');let _0x890f65=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x890f65[0x0]?.['is']('element','listItem')&&_0x890f65['unshift'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x890f65[_0x890f65['length']-0x1]?.['is']('element','listItem')&&_0x890f65['push'](..._0x481916['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x890f65=[...new Set(_0x890f65)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x890f65=_0x890f65['filter'](_0x373679=>_0x373679['is']('element','listItem'))),_0x890f65;}_getSuggestionBlocks(_0x276a11){const _0x390882=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c03c4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x276a11)['map'](_0x205c74=>{const _0x4e7f5b=this['editor']['model']['createPositionAt'](_0x205c74,0x0);return[..._0x390882['getSiblingNodes'](_0x4e7f5b,'backward'),..._0x390882['getSiblingNodes'](_0x4e7f5b,'forward')];})['flat']();return _0x2c03c4=[...new Set(_0x2c03c4)],_0x2c03c4;}_getTranslationKeyForListStyle(_0x226b36){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x226b36)||'default')['toUpperCase']()+'_LIST_'+_0x226b36['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x42a28f{afterInit(){const _0x56c2a8=this['editor'];if(!_0x56c2a8['plugins']['has']('MediaEmbedEditing'))return;const _0x29104a=_0x56c2a8['plugins']['get']('TrackChangesEditing'),_0x5f459b=_0x56c2a8['locale'];_0x29104a['enableCommand']('mediaEmbed'),_0x29104a['descriptionFactory']['registerElementLabel']('media',_0x5ec1c1=>Mt(_0x5f459b,'ELEMENT_MEDIA',_0x5ec1c1)),_0x56c2a8['plugins']['has']('MediaEmbedResizeEditing')&&(_0x29104a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x29104a['descriptionFactory']['registerDescriptionCallback'](_0x3d9930=>{if('attribute'!=_0x3d9930['type'])return;const {data:_0x15d9ba}=_0x3d9930;if(!_0x15d9ba||'resizedWidth'!=_0x15d9ba['key'])return;const _0x1c59ee=_0x3d9930['getContainedElement']();if(!_0x1c59ee||!_0x1c59ee['is']('element','media'))return;const _0x325f41=Mt(_0x5f459b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x5f459b,'*Set\x20format:*\x20%0',_0x325f41)};}));}},ke=class extends _0x42a28f{afterInit(){const _0x47bc73=this['editor'];if(!_0x47bc73['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2cbfc1=_0x47bc73['plugins']['get']('TrackChangesEditing'),_0x44e4ca=_0x47bc73['locale'],_0x59961a=_0x47bc73['plugins']['get']('MediaEmbedStyleEditing'),_0x359d76={};for(const _0x3f1432 of _0x59961a['normalizedStyles'])_0x359d76[_0x3f1432['name']]=_0x3f1432['title']['toLowerCase']();const _0x1f54d5=_0x59961a['normalizedStyles']['find'](_0x487ae2=>_0x487ae2['isDefault'])?.['name'];_0x2cbfc1['enableCommand']('mediaStyle',(_0x45a9b8,_0x33e96d)=>{const _0x3f0291=_0x47bc73['plugins']['get']('Users')['me'],_0xb95333=_0x47bc73['commands']['get']('mediaStyle'),_0x5c1e07=function(_0x3bc203){const _0x6a92fd=_0x3bc203['model']['document']['selection']['getSelectedElement']();return _0x6a92fd&&_0x6a92fd['is']('element','media')?_0x6a92fd:null;}(_0x47bc73);if(!_0x5c1e07)return;const _0x27891a=_0x47bc73['model']['createRangeOn'](_0x5c1e07);let _0xd50d40=_0xb95333['value'];if(_0xd50d40==_0x33e96d['value'])return;const _0x48d59c={'commandName':'mediaStyle','commandParams':[_0x33e96d],'formatGroupId':_0x5b5c0d()};_0x47bc73['model']['change'](()=>{_0x2cbfc1['getSuggestions']()['filter'](_0xded657=>_0xded657['isInContent']&&_0x3f0291==_0xded657['author']&&'formatBlock'==_0xded657['type']&&'mediaStylePostApply'==_0xded657['subType']&&_0xded657['getFirstRange']()['isEqual'](_0x27891a))['forEach'](_0x488f4d=>_0x2cbfc1['discardSuggestion'](_0x488f4d['head'])),_0xb95333['refresh'](),_0xd50d40=_0xb95333['value'],_0xd50d40!=_0x33e96d['value']&&_0x2cbfc1['markBlockFormat'](_0x5c1e07,{..._0x48d59c,'commandReversedParams':[{'value':'string'==typeof _0xd50d40?_0xd50d40:null}]},[],'mediaStylePostApply');});}),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2cbfc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x3eb3c9,_0x37b9dc)=>{_0x2cbfc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3eb3c9,{'commandName':_0x37b9dc['commandName'],'commandParams':_0x37b9dc['commandReversedParams']});}),_0x2cbfc1['descriptionFactory']['registerDescriptionCallback'](_0x23ddb5=>{if('formatBlock'!=_0x23ddb5['type'])return;const {data:_0x5787d7}=_0x23ddb5;if(!_0x5787d7||'mediaStyle'!=_0x5787d7['commandName'])return;const _0xe3ddda=_0x5787d7['commandParams'][0x0]['value']||_0x1f54d5;if(!_0xe3ddda)return;const _0xf70163=_0x359d76[_0xe3ddda]||_0xe3ddda;return{'type':'format','content':Mt(_0x44e4ca,'*Format:*\x20%0',_0xf70163)};});}},Ce=class extends _0x42a28f{afterInit(){const _0x49ca71=this['editor'];_0x49ca71['plugins']['has']('MentionEditing')&&_0x49ca71['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x42a28f{afterInit(){const _0x13879b=this['editor'];if(!_0x13879b['plugins']['has']('MergeFieldsEditing'))return;const _0x1a5999=_0x13879b['plugins']['get']('TrackChangesEditing'),_0x43f203=_0x13879b['locale'];_0x1a5999['enableCommand']('insertMergeField'),_0x1a5999['enableCommand']('insertMergeFieldBlock'),_0x1a5999['enableCommand']('insertMergeFieldImage'),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeField',_0x443260=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x443260)),_0x1a5999['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x43e77a=>Mt(_0x43f203,'ELEMENT_MERGE_FIELD',_0x43e77a)),_0x1a5999['descriptionFactory']['registerDescriptionCallback'](_0x59999a=>{if('insertion'!=_0x59999a['type']&&'deletion'!=_0x59999a['type'])return;const _0x1a390d=_0x59999a['getContainedElement']();if(null==_0x1a390d)return;const _0x31946b=_0x13879b['plugins']['get']('MergeFieldsEditing');let _0x47f2d2;switch(_0x31946b['getMergeFieldType'](_0x1a390d)){case null:return;case'image':{const _0x588115=_0x31946b['unwrapAffixes'](_0x1a390d['getAttribute']('src'));_0x47f2d2=_0x31946b['getLabel'](_0x588115)||_0x588115;break;}default:{const _0xfb738=_0x1a390d['getAttribute']('id');_0x47f2d2=_0x31946b['getLabel'](_0xfb738)||_0xfb738;break;}}return'insertion'==_0x59999a['type']?{'type':'insertion','content':Mt(_0x43f203,'*Insert:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x43f203,'*Remove:*\x20%0','\x22'+_0x47f2d2+'\x22\x20'+Mt(_0x43f203,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x42a28f{afterInit(){const _0x2e60b3=this['editor'],_0x13e40c=_0x2e60b3['plugins']['get']('TrackChangesEditing');_0x2e60b3['plugins']['has']('MultiLevelList')&&(_0x13e40c['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e40c['descriptionFactory']['registerDescriptionCallback'](_0x5bc3d2=>this['handleDescriptions'](_0x5bc3d2)));}handleDescriptions(_0x2f9b58){const _0x538551=this['editor']['locale'],{data:_0x5e6b42}=_0x2f9b58,_0x193dc8={'type':'format','content':''};if(_0x5e6b42&&'listMarkerStyle'==_0x5e6b42['key']){if(!_0x5e6b42['oldValue'])return{'type':'format','content':Mt(_0x538551,'*Set\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['newValue']+')'};if(!_0x5e6b42['newValue']){let _0x16073d=_0x2f9b58['head'];for(;_0x16073d;){if(_0x16073d['data']&&'listType'==_0x16073d['data']['key']&&_0x16073d['data']['newValue'])return _0x193dc8;_0x16073d=_0x16073d['next'];}return{'type':'format','content':Mt(_0x538551,'*Remove\x20format:*\x20%0',Mt(_0x538551,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e6b42['oldValue']+')'};}}}},Ne=class extends _0x42a28f{afterInit(){const _0x5b8f1c=this['editor'];if(!_0x5b8f1c['plugins']['has']('PageBreakEditing'))return;_0x5b8f1c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x161b4c=_0x5b8f1c['plugins']['get']('TrackChangesEditing'),_0x3dbe6d=_0x5b8f1c['locale'];_0x161b4c['descriptionFactory']['registerElementLabel']('pageBreak',_0x40b632=>Mt(_0x3dbe6d,'ELEMENT_PAGE_BREAK',_0x40b632));}},Se=class extends _0x42a28f{afterInit(){const _0x365284=this['editor'];if(!_0x365284['plugins']['has']('Paragraph'))return;const _0x13e3cc=_0x365284['locale'],_0x2ca794=_0x365284['plugins']['get']('TrackChangesEditing');_0x2ca794['descriptionFactory']['registerElementLabel']('paragraph',_0x5a586b=>Mt(_0x13e3cc,'ELEMENT_PARAGRAPH',_0x5a586b)),_0x2ca794['enableDefaultAttributesIntegration']('paragraph'),_0x2ca794['enableCommand']('insertParagraph');const _0x48440f=_0x2ca794['descriptionFactory'];_0x48440f['registerDescriptionCallback'](_0xf0e542=>{if('insertion'!==_0xf0e542['type'])return;const {start:_0x4c3187,end:_0xda35a6}=_0xf0e542['getFirstRange']();if(!_0x4c3187['isTouching'](_0xda35a6)||!_0x4c3187['nodeAfter'])return;const _0x5a169b=_0x365284['model']['schema'],_0x36dfe6=_0x4c3187['nodeAfter'];return _0x5a169b['isBlock'](_0x36dfe6)&&!_0x5a169b['isLimit'](_0x36dfe6)&&_0x5a169b['checkChild'](_0x36dfe6,'$text')?{'type':'insertion','content':Mt(_0x13e3cc,'*Insert:*\x20%0',_0x48440f['getItemLabel'](_0x36dfe6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dc38b=this['editor'],_0x31bc2a=_0x2dc38b['locale'];_0x2dc38b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f5ff=>{if('formatBlock'!=_0x59f5ff['type'])return;const {data:_0x404f77}=_0x59f5ff;return _0x404f77&&'paragraph'==_0x404f77['commandName']?{'type':'format','content':Mt(_0x31bc2a,'*Change\x20to:*\x20%0',Mt(_0x31bc2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x42a28f{afterInit(){const _0x322428=this['editor'];_0x322428['commands']['get']('replaceSource')&&_0x322428['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x42a28f{afterInit(){const _0x5280dc=this['editor'];_0x5280dc['plugins']['has']('RemoveFormatEditing')&&(_0x5280dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x57b76f=this['editor'];_0x57b76f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x89019b=>{if('formatBlock'!=_0x89019b['type']&&'formatInline'!=_0x89019b['type'])return;const {data:_0x54a82d}=_0x89019b;return _0x54a82d&&'removeFormat'==_0x54a82d['commandName']?{'type':'format','content':Mt(_0x57b76f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x42a28f{afterInit(){const _0x3130d5=this['editor'];if(!_0x3130d5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64cf97=_0x3130d5['plugins']['get']('TrackChangesEditing');_0x64cf97['enableCommand']('goToPreviousRestrictedEditingException'),_0x64cf97['enableCommand']('goToNextRestrictedEditingException');const _0x42f4b9=_0x3130d5['plugins']['get']('RestrictedEditingModeEditing');_0x42f4b9['enableCommand']('trackChanges'),_0x42f4b9['enableCommand']('acceptSuggestion'),_0x42f4b9['enableCommand']('discardSuggestion'),_0x42f4b9['enableCommand']('acceptAllSuggestions'),_0x42f4b9['enableCommand']('discardAllSuggestions'),_0x42f4b9['enableCommand']('acceptSelectedSuggestions'),_0x42f4b9['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x42a28f{afterInit(){const _0x113a36=this['editor'];if(!_0x113a36['plugins']['has']('ShiftEnter'))return;const _0x1931e4=_0x113a36['plugins']['get']('TrackChangesEditing');_0x1931e4['enableCommand']('shiftEnter'),_0x1931e4['descriptionFactory']['registerElementLabel']('softBreak',_0x29e3ff=>Mt(_0x113a36['locale'],'ELEMENT_LINE_BREAK',_0x29e3ff));}};function Be(_0x5d4a47,_0x4d897f,_0x366e38){const _0x446c19=[];for(const _0x9a97a6 of _0x4d897f['getItems']())_0x9a97a6['hasAttribute'](_0x5d4a47)&&_0x446c19['push'](_0x366e38['createRangeOn'](_0x9a97a6));return _0x446c19;}var ve=class extends _0x42a28f{afterInit(){const _0xca7bc8=this['editor'],_0x2cd971=_0xca7bc8['plugins']['get']('TrackChangesEditing');_0xca7bc8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2cd971['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x167598=this['editor'],_0x30d0ac=_0x167598['model'],_0x492c3e=_0x167598['locale'],_0x578018=_0x167598['plugins']['get']('TrackChangesEditing'),_0x2d8463='restrictedEditingException',_0x481a60=_0x167598['commands']['get'](_0x2d8463);_0x578018['enableCommand'](_0x2d8463,(_0x512513,_0x1299a9={})=>{const _0x706875=_0x30d0ac['document']['selection'];if(_0x706875['isCollapsed'])return void _0x512513(_0x1299a9);const _0x4be460=void 0x0!==_0x1299a9['forceValue']?_0x1299a9['forceValue']:!_0x481a60['value'];_0x30d0ac['change'](()=>{const _0x2ec3b8=Array['from'](_0x706875['getRanges']());for(const _0x143912 of _0x2ec3b8){const _0x3f7f2b=_0x4be460?[_0x143912]:Be(_0x2d8463,_0x143912,_0x30d0ac);for(const _0x7bab34 of _0x3f7f2b)_0x578018['markInlineFormat'](_0x7bab34,{'commandName':_0x2d8463,'commandParams':[{'forceValue':_0x4be460}]});}});}),_0x578018['descriptionFactory']['registerDescriptionCallback'](_0x5bfe23=>{if('formatBlock'!=_0x5bfe23['type']&&'formatInline'!=_0x5bfe23['type'])return;const {data:_0x210ae0}=_0x5bfe23;return _0x210ae0&&_0x210ae0['commandName']==_0x2d8463?_0x210ae0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x492c3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x55ec1e=this['editor'],_0x15b046=_0x55ec1e['locale'],_0x5ecdad=_0x55ec1e['plugins']['get']('TrackChangesEditing'),_0x58dbe0='restrictedEditingExceptionBlock',_0x491caa=this['editor']['commands']['get'](_0x58dbe0);_0x5ecdad['enableCommand'](_0x58dbe0,(_0xb242f0,_0xa0c88a={})=>{const _0x32f8fe=this['editor']['model']['document']['selection'],_0x4d53ea=_0xa0c88a&&void 0x0!==_0xa0c88a['forceValue']?_0xa0c88a['forceValue']:!_0x491caa['value'];let _0x2cb6e2=[];if(_0x4d53ea){const _0x75c150=Array['from'](_0x32f8fe['getSelectedBlocks']())['filter'](_0x6d0a39=>function(_0x587966){return!!_0x587966['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6d0a39)||function(_0x108748,_0x3874da){const _0x1b8088=_0x3874da['createContext'](_0x108748['parent']);return!!_0x3874da['checkChild'](_0x1b8088,'restrictedEditingException')&&!!_0x3874da['checkChild'](_0x1b8088['push']('restrictedEditingException'),_0x108748);}(_0x6d0a39,this['editor']['model']['schema']));_0x2cb6e2=bt(_0x75c150,_0x55ec1e['model']);}else{const _0x5396b9=Array['from'](_0x32f8fe['getSelectedBlocks']())['map'](_0xd5c64d=>function(_0x516b35){let _0x3922e9=_0x516b35;for(;_0x3922e9['parent'];){if('restrictedEditingException'==_0x3922e9['parent']['name'])return _0x3922e9;_0x3922e9=_0x3922e9['parent'];}return null;}(_0xd5c64d))['filter'](_0x378797=>!!_0x378797);_0x2cb6e2=bt(_0x5396b9,_0x55ec1e['model']);}_0x55ec1e['model']['change'](()=>{for(const _0x3a2b2a of _0x2cb6e2)_0x5ecdad['markBlockFormat'](_0x3a2b2a,{'commandName':_0x58dbe0,'commandParams':[{'forceValue':_0x4d53ea}]});});}),_0x5ecdad['descriptionFactory']['registerDescriptionCallback'](_0x1efe39=>{const {data:_0x57b4d0}=_0x1efe39;if(_0x57b4d0&&_0x57b4d0['commandName']==_0x58dbe0)return _0x57b4d0['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x15b046,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x42a28f{afterInit(){const _0x1ecd9e=this['editor'];_0x1ecd9e['plugins']['has']('Style')&&_0x1ecd9e['plugins']['has']('DataSchema')&&(_0x1ecd9e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x481ad6=this['editor'],_0x4d1156=_0x481ad6['locale'];_0x481ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10823d=>{if('formatBlock'!=_0x10823d['type']&&'formatInline'!=_0x10823d['type'])return;const {data:_0x9b76c}=_0x10823d;return _0x9b76c&&'style'===_0x9b76c['commandName']?_0x9b76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x4d1156,'*Set\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x4d1156,'*Remove\x20format:*\x20%0',_0x9b76c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x42a28f{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x54f19c){super(_0x54f19c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x26aeb8=this['editor'],_0x2ceb87=_0x26aeb8['model']['document']['selection'];if(!_0x26aeb8['plugins']['has']('TableEditing'))return;const _0x3b1396=_0x26aeb8['locale'],_0x57a083=_0x26aeb8['plugins']['get']('TrackChangesEditing'),_0x24ff23=_0x26aeb8['plugins']['get']('TableUtils');_0x57a083['descriptionFactory']['registerElementLabel']('table',_0x40776c=>Mt(_0x3b1396,'ELEMENT_TABLE',_0x40776c)),this['_setupColumnsRowsFixing'](),_0x57a083['enableCommand']('insertTable'),_0x57a083['enableCommand']('selectTableRow'),_0x57a083['enableCommand']('selectTableColumn');for(const _0x53b1ee of['insertTableRowAbove','insertTableRowBelow']){const _0x44a9b5=_0x26aeb8['commands']['get'](_0x53b1ee);_0x57a083['enableCommand'](_0x53b1ee,_0xb4adef=>{_0x26aeb8['model']['change'](_0x207f92=>{_0xb4adef();const _0x50dca9='above'===_0x44a9b5['order'],_0x1ecf95=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x47e984=_0x24ff23['getRowIndexes'](_0x1ecf95),_0x5414c7=_0x50dca9?_0x47e984['first']-0x1:_0x47e984['last']+0x1,_0x241dac=_0x1ecf95[0x0]['findAncestor']('table'),_0x125c34=_0x24ff23['createTableWalker'](_0x241dac,{'startRow':_0x5414c7,'endRow':_0x5414c7}),_0x364a20=Array['from'](_0x125c34)['map'](_0x25331e=>_0x207f92['createRangeOn'](_0x25331e['cell']));_0x57a083['markMultiRangeInsertion'](_0x364a20,'tableRow');});});}for(const _0x28defb of['insertTableColumnLeft','insertTableColumnRight']){const _0xa3490f=_0x26aeb8['commands']['get'](_0x28defb);_0x57a083['enableCommand'](_0x28defb,_0x2a2a2b=>{_0x26aeb8['model']['change'](_0x1712e2=>{_0x2a2a2b();const _0x3a2c0b='left'===_0xa3490f['order'],_0x20e768=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x1fef19=_0x24ff23['getColumnIndexes'](_0x20e768),_0x4bea75=_0x3a2c0b?_0x1fef19['first']-0x1:_0x1fef19['last']+0x1,_0x537f80=_0x20e768[0x0]['findAncestor']('table'),_0x35a46a=_0x24ff23['createTableWalker'](_0x537f80,{'startRow':0x0,'column':_0x4bea75,'includeAllSlots':!0x1}),_0x13fdfb=Array['from'](_0x35a46a)['map'](_0x37b8ae=>_0x1712e2['createRangeOn'](_0x37b8ae['cell']));_0x57a083['markMultiRangeInsertion'](_0x13fdfb,'tableColumn');});});}for(const _0x5db1bd of['removeTableRow','removeTableColumn']){const _0x18fc48=_0x5db1bd['substr'](0xb),_0x2c0e26=_0x18fc48['toLowerCase'](),_0x444d37=_0x2c0e26['substr'](0x0,0x3)+'span',_0x177bfc='table'+_0x18fc48,_0x1f75dd='min'+_0x18fc48,_0x52df12='max'+_0x18fc48;_0x57a083['enableCommand'](_0x5db1bd,()=>{_0x26aeb8['model']['change'](_0x45d4ea=>{const _0x595e82=_0x24ff23['getSelectionAffectedTableCells'](_0x2ceb87),_0x3ddef2=_0x595e82[0x0]['findAncestor']('table');let _0x534fea;if('removeTableRow'==_0x5db1bd){const _0x49676b=_0x24ff23['getRowIndexes'](_0x595e82);_0x534fea={'startRow':_0x49676b['first'],'endRow':_0x49676b['last'],'includeAllSlots':!0x0};}else{const _0x513979=_0x24ff23['getColumnIndexes'](_0x595e82);_0x534fea={'startColumn':_0x513979['first'],'endColumn':_0x513979['last'],'includeAllSlots':!0x0};}const _0x13e2b1=_0x24ff23['createTableWalker'](_0x3ddef2,_0x534fea),_0x13c9bc=Array['from'](_0x13e2b1)['map'](({cell:_0x5e886c})=>_0x5e886c),_0x35cdec=Pe(_0x13c9bc['filter'](_0x5ac00a=>_0x5ac00a['hasAttribute'](_0x444d37))),_0xe0685f=Pe(_0x13c9bc['filter'](_0x1bfc79=>!_0x1bfc79['hasAttribute'](_0x444d37)))['map'](_0x3325dd=>_0x45d4ea['createRangeOn'](_0x3325dd)),_0x3c8c79=_0x57a083['markMultiRangeDeletion'](_0xe0685f,_0x177bfc);if(_0x3c8c79&&('tableRow'==_0x3c8c79['subType']||'tableColumn'==_0x3c8c79['subType'])){const _0x1caaac=this['_getSuggestionCoords'](_0x3c8c79);for(const _0x56219a of _0x35cdec){const _0x38a11e=_0x45d4ea['createRangeOn'](_0x56219a),_0xcef07d=_0x24ff23['getCellLocation'](_0x56219a),_0x3f47de=_0x56219a['getAttribute'](_0x444d37)-0x1,_0x3005b7=_0x1caaac[_0x1f75dd],_0xa105cd=_0x1caaac[_0x52df12];_0x3005b7<=_0xcef07d[_0x2c0e26]&&_0xcef07d[_0x2c0e26]+_0x3f47de<=_0xa105cd&&_0x3c8c79['addRange'](_0x38a11e);}}});});}function _0x2ab80b(_0x188d65){const _0xbf2957=Array['from'](_0x2ceb87['getRanges']())['map'](_0x391c48=>rt['fromRange'](_0x391c48));_0x26aeb8['model']['change'](_0x2a911f=>{const _0x490ce2=_0x2a911f['batch'];_0x188d65=_0x188d65['filter'](_0x4ac466=>'$graveyard'!=_0x4ac466['root']['rootName']),_0x2a911f['setSelection'](_0x188d65),_0x26aeb8['commands']['get']('removeTableRow')['refresh'](),_0x26aeb8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x26aeb8['model']['enqueueChange'](()=>{_0x26aeb8['model']['enqueueChange'](_0x490ce2,_0x34d85b=>{const _0x538b4e=_0xbf2957['filter'](_0x100db3=>'$graveyard'!=_0x100db3['root']['rootName']);_0x538b4e['length']>0x0&&_0x34d85b['setSelection'](_0x538b4e);for(const _0x665e59 of _0xbf2957)_0x665e59['detach']();});});});}function _0x2663e1(_0x1ab20f){_0x26aeb8['model']['change'](_0x53ced0=>{const _0x105225=Array['from'](_0x2ceb87['getRanges']())['map'](_0x23a6e4=>rt['fromRange'](_0x23a6e4)),_0x26f60f=[];for(const _0xafe7f7 of _0x1ab20f)for(const _0x9420dc of _0xafe7f7['getItems']({'shallow':!0x0}))_0x26f60f['push'](_0x9420dc);for(const _0x6365cc of _0x26f60f)'$graveyard'!=_0x6365cc['root']['rootName']&&(_0x53ced0['setSelection'](_0x53ced0['createPositionAt'](_0x6365cc,0x0)),_0x26aeb8['commands']['get']('removeTableColumn')['refresh'](),_0x26aeb8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2984c8=_0x105225['filter'](_0x5aed68=>'$graveyard'!=_0x5aed68['root']['rootName']);_0x2984c8['length']>0x0&&_0x53ced0['setSelection'](_0x2984c8);for(const _0x3eb403 of _0x105225)_0x3eb403['detach']();});}function _0x5400b7(_0xa1917f,_0x2abb85){return _0x2abb85['every'](_0x564c7a=>_0xa1917f['some'](_0x5d90c3=>_0x5d90c3['end']['isEqual'](_0x564c7a['start'])||_0x564c7a['end']['isEqual'](_0x5d90c3['start'])));}function _0x20bb53(_0x2a7ceb,_0x508dbd){return!_0x2a7ceb['some'](_0x301318=>_0x508dbd['some'](_0x3720d1=>_0x301318['isIntersecting'](_0x3720d1)))&&_0x2a7ceb['some'](_0x31104f=>_0x508dbd['some'](_0x8f6933=>_0x31104f['end']['isTouching'](_0x8f6933['start'])));}_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x3b86cd=>{if('insertion'!=_0x3b86cd['type']&&'deletion'!=_0x3b86cd['type'])return;const _0x37ab9e=_0x3b86cd['getContainedElement']();if(null!=_0x37ab9e&&_0x37ab9e['is']('element','table')){if('insertion'==_0x3b86cd['type']){const _0x2dcd75=_0x3b86cd['getItems']()['filter'](_0x3001b4=>_0x3001b4['is']('$textProxy'))['map'](_0x341f17=>_0x341f17['data']);if(_0x2dcd75['length'])return{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2dcd75['join']('\x20')+'\x22'))};}if('deletion'==_0x3b86cd['type']){const _0x253e1e=_0x3b86cd['getItems']()['filter'](_0x55afcb=>_0x55afcb['is']('$textProxy'))['map'](_0x116974=>_0x116974['data']);if(_0x253e1e['length'])return{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x253e1e['join']('\x20')+'\x22'))};}}}),_0x57a083['descriptionFactory']['registerDescriptionCallback'](_0x9cf847=>{if('tableRow'==_0x9cf847['subType']){const _0x103535=_0x9cf847['getItems']()['filter'](_0x4b3479=>_0x4b3479['is']('$textProxy'))['map'](_0x11a2c5=>_0x11a2c5['data']),_0x185837=this['_getSuggestionCoords'](_0x9cf847),_0x42124d=_0x185837['maxRow']-_0x185837['minRow']+0x1;if('insertion'==_0x9cf847['type'])return _0x103535['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};if('deletion'==_0x9cf847['type'])return _0x103535['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42124d,'\x22'+_0x103535['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_ROW',_0x42124d))};}if('tableColumn'==_0x9cf847['subType']){const _0x1b8ebb=_0x9cf847['getItems']()['filter'](_0x2182a5=>_0x2182a5['is']('$textProxy'))['map'](_0x5dd8f0=>_0x5dd8f0['data']),_0x3a2962=this['_getSuggestionCoords'](_0x9cf847),_0x25176c=_0x3a2962['maxColumn']-_0x3a2962['minColumn']+0x1;if('insertion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x3b1396,'*Insert:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};if('deletion'==_0x9cf847['type'])return _0x1b8ebb['length']?{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25176c,'\x22'+_0x1b8ebb['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x3b1396,'*Remove:*\x20%0',Mt(_0x3b1396,'ELEMENT_TABLE_COLUMN',_0x25176c))};}}),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ab80b),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2663e1),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5400b7),_0x57a083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20bb53),_0x57a083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20bb53);}_acceptFormatSuggestionCallbackFactory(){const _0x253edb=this['editor'],_0x14d42d=_0x253edb['model']['document']['selection'];return(_0x18c07d,_0x46c3fb)=>{_0x253edb['model']['change'](_0x4c477e=>{const {commandName:_0x251593,commandParams:_0x52b120}=_0x46c3fb;let _0x19bf4e=_0x18c07d[0x0]['end']['nodeBefore'];_0x52b120&&_0x52b120[0x0]&&!0x1===_0x52b120[0x0]['forceValue']&&(_0x19bf4e=_0x18c07d[0x0]['start']['nodeAfter']);const _0x23357b=_0x4c477e['createRangeIn'](_0x19bf4e);if('$graveyard'==_0x23357b['root']['rootName'])return;const _0xa35467=Array['from'](_0x14d42d['getRanges']())['map'](_0x321e85=>rt['fromRange'](_0x321e85));_0x4c477e['setSelection'](_0x23357b),_0x253edb['commands']['get'](_0x251593)['refresh'](),_0x52b120['push']({'forceDefaultExecution':!0x0}),_0x253edb['execute'](_0x251593,..._0x52b120);const _0x47d1eb=_0xa35467['filter'](_0x295e20=>'$graveyard'!=_0x295e20['root']['rootName']);_0x47d1eb['length']>0x0&&_0x4c477e['setSelection'](_0x47d1eb);for(const _0x35eaa3 of _0xa35467)_0x35eaa3['detach']();});};}_getCoordsForCells(_0x58634c){const _0x1806de=this['editor']['plugins']['get']('TableUtils');let _0x19d96e=Number['MAX_SAFE_INTEGER'],_0x1036fd=Number['MIN_SAFE_INTEGER'],_0x473d2c=Number['MAX_SAFE_INTEGER'],_0x14c0e4=Number['MIN_SAFE_INTEGER'];for(const _0x540b1e of _0x58634c){if('$graveyard'==_0x540b1e['root']['rootName'])continue;const {row:_0x1fa247,column:_0x53bf14}=_0x1806de['getCellLocation'](_0x540b1e),_0x2b43aa=_0x540b1e['hasAttribute']('rowspan')?_0x540b1e['getAttribute']('rowspan')-0x1:0x0,_0x1021b2=_0x540b1e['hasAttribute']('colspan')?_0x540b1e['getAttribute']('colspan')-0x1:0x0;_0x19d96e=_0x1fa247<_0x19d96e?_0x1fa247:_0x19d96e,_0x1036fd=_0x1fa247+_0x2b43aa>_0x1036fd?_0x1fa247+_0x2b43aa:_0x1036fd,_0x473d2c=_0x53bf14<_0x473d2c?_0x53bf14:_0x473d2c,_0x14c0e4=_0x53bf14+_0x1021b2>_0x14c0e4?_0x53bf14+_0x1021b2:_0x14c0e4;}return{'minRow':_0x19d96e,'maxRow':_0x1036fd,'minColumn':_0x473d2c,'maxColumn':_0x14c0e4};}_setupColumnsRowsFixing(){const _0x4be568=this['editor'],_0x4508d2=_0x4be568['plugins']['get']('TrackChangesEditing'),_0x53f8c1=_0x4be568['plugins']['get']('TableUtils');_0x4be568['model']['document']['on']('change:data',()=>{const _0x3c7b32=Array['from'](_0x4be568['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ef1b6,data:_0x4f8f21}of _0x3c7b32){const {group:_0x13f003,id:_0x4d5b7a,subType:_0x3cac28}=tt(_0x1ef1b6);if('suggestion'!=_0x13f003)continue;if(null!=_0x4f8f21['oldRange'])continue;const _0x107125=_0x4508d2['getSuggestion'](_0x4d5b7a);this['_tablePostFixingSubtypes']['includes'](_0x3cac28)&&this['_tableSuggestions']['add'](_0x107125);}},{'priority':'low'});const _0x54c680=(_0x4bad47,_0x13e4e9)=>{let _0x4d1f95=!0x1;const _0x3b9d97=_0x13e4e9['createRangeOn'](_0x4bad47),_0x46280f=_0x4bad47['findAncestor']('table'),_0x30c3e3=_0x53f8c1['getCellLocation'](_0x4bad47);for(const _0x1382d9 of this['_tableSuggestions']){const _0x54cb14=_0x1382d9['subType'],_0x1272b6=_0x54cb14['startsWith']('tablePaste'),_0x15663e=_0x54cb14['substr'](_0x1272b6?0xa:0x5),_0x1f566e=_0x15663e['toLowerCase'](),_0x236247=_0x1f566e['substr'](0x0,0x3)+'span',_0x2b0119='min'+_0x15663e,_0x1746b3='max'+_0x15663e;if(!_0x1382d9['isInContent'])continue;if(_0x46280f!=_0x1382d9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1382d9['isIntersectingWithRange'](_0x3b9d97))continue;const _0x12ce9f=_0x4bad47['hasAttribute'](_0x236247)?_0x4bad47['getAttribute'](_0x236247)-0x1:0x0,_0x457590=this['_getSuggestionCoords'](_0x1382d9),_0xef04db=_0x457590[_0x2b0119],_0x284979=_0x457590[_0x1746b3];_0xef04db<=_0x30c3e3[_0x1f566e]&&_0x30c3e3[_0x1f566e]+_0x12ce9f<=_0x284979&&(_0x1382d9['addRange'](_0x3b9d97),_0x4d1f95=!0x0);}return _0x4d1f95;};_0x4be568['model']['document']['registerPostFixer'](_0x32d1e3=>{let _0x2d0104=!0x1;for(const _0x43a057 of _0x4be568['model']['document']['differ']['getChanges']())if('insert'==_0x43a057['type']){if('tableRow'==_0x43a057['name']){for(const _0xa6ae2f of _0x43a057['position']['nodeAfter']['getChildren']())_0x2d0104=_0x2d0104||_0x54c680(_0xa6ae2f,_0x32d1e3);}else'tableCell'==_0x43a057['name']&&(_0x2d0104=_0x2d0104||_0x54c680(_0x43a057['position']['nodeAfter'],_0x32d1e3));}return _0x2d0104;});}_getSuggestionCoords(_0x56a324){return this['_getCoordsForCells'](_0x56a324['getRanges']()['map'](_0x1f7fe7=>_0x1f7fe7['start']['nodeAfter']));}};function Pe(_0x22254c){return Array['from'](new Set(_0x22254c)['values']());}var xe=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x112ad3=this['editor'],_0x196020=_0x112ad3['model']['document']['selection'],_0x11d7d7=_0x112ad3['locale'];if(!_0x112ad3['plugins']['has']('TableEditing'))return;const _0x2d0ce8=_0x112ad3['plugins']['get']('TrackChangesEditing'),_0x9ba9f8=_0x112ad3['plugins']['get']('TableUtils'),_0x59c354=_0x112ad3['plugins']['get'](Ue);_0x59c354['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2d0ce8['enableCommand']('mergeTableCells',()=>{const _0x3338dd=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']);_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x3338dd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x112ad3['commands']['get']('mergeTableCells')['on']('execute',(_0x168ce3,_0xf85c6a)=>{_0x112ad3['commands']['get']('trackChanges')['value']&&(_0xf85c6a['length']>0x0&&_0xf85c6a[_0xf85c6a['length']-0x1]&&_0xf85c6a[_0xf85c6a['length']-0x1]['forceDefaultExecution']||_0x2d0ce8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x168ce3['stop']());},{'priority':'highest'});for(const _0x1ee19d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2a16c0=_0x112ad3['commands']['get'](_0x1ee19d);_0x2d0ce8['enableCommand'](_0x1ee19d,()=>{const _0x4fb20a=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d9d5b=>_0x5d9d5b['is']('element','tableCell')),_0xc8bddc=_0x2a16c0['value'];_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat']([_0x4fb20a,_0xc8bddc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3fd32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c6aa2=_0x112ad3['commands']['get'](_0x3fd32d);_0x2d0ce8['enableCommand'](_0x3fd32d,()=>{const _0x39d520=_0x9ba9f8['getSelectionAffectedTableCells'](_0x112ad3['model']['document']['selection']),_0x164e1c=_0x39d520[0x0]['findAncestor']('table'),_0x41bb85=new Set();for(const _0x54a508 of _0x39d520){const {column:_0x23db69,row:_0x287ddf}=_0x9ba9f8['getCellLocation'](_0x54a508),_0x2b8394='horizontally'==_0x1c6aa2['direction']?_0x9ba9f8['createTableWalker'](_0x164e1c,{'startRow':_0x287ddf,'endRow':_0x287ddf,'includeAllSlots':!0x0}):_0x9ba9f8['createTableWalker'](_0x164e1c,{'column':_0x23db69,'includeAllSlots':!0x0});for(const {cell:_0x540746}of _0x2b8394)_0x41bb85['add'](_0x540746);}_0x112ad3['model']['change'](()=>{_0x2d0ce8['markMultiRangeBlockFormat'](_0x39d520,{'commandName':_0x3fd32d,'commandParams':[]},Array['from'](_0x41bb85),_0x3fd32d);});});}_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x3cf59e=>{if('formatBlock'!=_0x3cf59e['type']&&'formatInline'!=_0x3cf59e['type'])return;const {data:_0x2f4ebb}=_0x3cf59e;return _0x2f4ebb&&'mergeTableCells'==_0x2f4ebb['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Merge\x20cells*')}:void 0x0;}),_0x2d0ce8['descriptionFactory']['registerDescriptionCallback'](_0x5caaf1=>{if('formatBlock'!=_0x5caaf1['type']&&'formatInline'!=_0x5caaf1['type'])return;const {data:_0x17287d}=_0x5caaf1;return _0x17287d?'splitTableCellVertically'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x17287d['commandName']?{'type':'format','content':Mt(_0x11d7d7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a075e=_0x59c354['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bd20f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bd20f,'accept',_0x5a075e);for(const _0x22da73 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22da73,'accept',_0x3721ad=>{_0x112ad3['model']['change'](_0x3c29f5=>{const _0x47e4f0=Array['from'](_0x3721ad)['filter'](_0x3f4714=>'$graveyard'!=_0x3f4714['root']['rootName']&&!!_0x3f4714['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x47e4f0['length'])return;const _0x11bfd7=Array['from'](_0x196020['getRanges']())['map'](_0x2d2f11=>rt['fromRange'](_0x2d2f11));_0x3c29f5['setSelection'](_0x47e4f0),_0x112ad3['commands']['get'](_0x22da73)['refresh'](),_0x112ad3['execute'](_0x22da73,{'forceDefaultExecution':!0x0});const _0x455425=_0x11bfd7['filter'](_0xf2c07e=>'$graveyard'!=_0xf2c07e['root']['rootName']);_0x455425['length']>0x0&&_0x3c29f5['setSelection'](_0x455425);for(const _0x411337 of _0x11bfd7)_0x411337['detach']();});});_0x2d0ce8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17776d=>{_0x112ad3['model']['change'](_0x5dad36=>{const _0x3e207a=Array['from'](_0x196020['getRanges']())['map'](_0x23b77b=>rt['fromRange'](_0x23b77b));_0x5dad36['setSelection'](_0x17776d),_0x112ad3['commands']['get']('mergeTableCells')['refresh'](),_0x112ad3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45221e=_0x3e207a['filter'](_0x5bf93a=>'$graveyard'!=_0x5bf93a['root']['rootName']);_0x45221e['length']>0x0&&_0x5dad36['setSelection'](_0x45221e);for(const _0x8490fc of _0x3e207a)_0x8490fc['detach']();});});for(const _0x333e8f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4b9344=_0x112ad3['commands']['get'](_0x333e8f);_0x4b9344['on']('set:isEnabled',(_0x3b8beb,_0x228b29,_0x3272bc)=>{if(_0x3272bc){const _0x403f0d=_0x112ad3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3df891=>_0x3df891['is']('element','tableCell'));this['_areMergableCells'](_0x4b9344['value'],_0x403f0d)||(_0x3b8beb['return']=!0x1,_0x3b8beb['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x12ce4d=this['editor']['commands']['get']('mergeTableCells'),_0x38f4b8=this['editor']['plugins']['get']('TableUtils');if(!_0x12ce4d['isEnabled'])return!0x1;const _0x57e6f0=_0x38f4b8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x413a27 of _0x57e6f0)for(const _0x349318 of _0x57e6f0)if(_0x413a27!=_0x349318&&!this['_areMergableCells'](_0x413a27,_0x349318))return!0x1;return!0x0;}['_areMergableCells'](_0x1301bc,_0x749a4d){const _0x19293d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2ff7=this['editor']['model']['createRangeOn'](_0x1301bc),_0x56ffea=this['editor']['model']['createRangeOn'](_0x749a4d),_0x7c85d=new Set(),_0x4cf1a1=new Set();for(const _0x36a7d8 of _0x19293d['getSuggestions']())if(('insertion'==_0x36a7d8['type']||'deletion'==_0x36a7d8['type']||'mergeTableCells'==_0x36a7d8['subType'])&&_0x36a7d8['isInContent']){for(const _0x143a53 of _0x36a7d8['getRanges']())_0x143a53['containsRange'](_0x3e2ff7,!0x0)&&_0x7c85d['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']),_0x143a53['containsRange'](_0x56ffea,!0x0)&&_0x4cf1a1['add'](_0x36a7d8['type']+':'+_0x36a7d8['author']['id']);}if(_0x7c85d['size']!=_0x4cf1a1['size'])return!0x1;for(const _0x194610 of _0x7c85d)if(!_0x4cf1a1['has'](_0x194610))return!0x1;return!0x0;}},Ge=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x2a8bba=this['editor'];if(!_0x2a8bba['plugins']['has']('TableEditing'))return;const _0x11f365=_0x2a8bba['locale'],_0x1dadc7=_0x2a8bba['plugins']['get']('TrackChangesEditing');_0x1dadc7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dadc7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x11f365,'FORMAT_HEADER_ROW')),_0x1dadc7['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x11f365,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x9b6358=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19f155=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19f155),_0x9b6358['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19f155),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5f1fcd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b634=this['editor']['plugins']['get']('TableUtils');function _0x4c859a({showActiveMarker:_0x1ada0b=!0x0,setDataAttribute:_0x32855c=!0x0}={}){return(_0x4a1837,_0x4edfa0,_0x25999b)=>{const {type:_0x4fb83d,id:_0x447c9c}=tt(_0x4edfa0['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x447c9c))return;const _0x7fb164=_0x5f1fcd['getSuggestion'](_0x447c9c),_0x165f4c=_0x7fb164['data'];if('formatBlock'!=_0x7fb164['type']||!_0x165f4c||'setTableColumnHeader'!=_0x165f4c['commandName'])return;if(_0x4edfa0['item'])return void _0x4a1837['stop']();if(!_0x25999b['consumable']['consume'](_0x4edfa0['markerRange'],_0x4a1837['name']))return;const _0x36b660=_0x4edfa0['markerRange']['start']['nodeAfter'],_0x671091=_0x4edfa0['markerRange']['end']['nodeBefore'],_0x5b46f9=_0x36b660['parent']['parent'],{column:_0x3cf983}=_0x18b634['getCellLocation'](_0x36b660),{column:_0x47057b}=_0x18b634['getCellLocation'](_0x671091);for(let _0x52fc0b=_0x3cf983;_0x52fc0b<=_0x47057b;_0x52fc0b++){const _0x1c6182=_0x18b634['createTableWalker'](_0x5b46f9,{'column':_0x52fc0b,'includeAllSlots':!0x1});for(const _0x137362 of _0x1c6182){const _0x307a9f=_0x137362['cell'],_0x223808=_0x25999b['mapper']['toViewElement'](_0x307a9f);_0x25999b['writer']['addClass']('ck-suggestion-marker-'+_0x4fb83d,_0x223808),_0x32855c&&_0x25999b['writer']['setAttribute']('data-suggestion',_0x447c9c,_0x223808),_0x25999b['mapper']['bindElementToMarker'](_0x223808,_0x4edfa0['markerName']),_0x1ada0b&&(_0x5f1fcd['activeMarkers']['includes'](_0x4edfa0['markerName'])?_0x25999b['writer']['addClass']('ck-suggestion-marker--active',_0x223808):_0x25999b['writer']['removeClass']('ck-suggestion-marker--active',_0x223808));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c859a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f5395,_0x138ec7,_0x393ea9)=>{_0x393ea9['options']['showSuggestionHighlights']&&_0x4c859a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f5395,_0x138ec7,_0x393ea9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x118a70,_0x416729,_0x3e7584)=>{const {type:_0x5069ec,id:_0x11a520}=tt(_0x416729['markerName']);if(!_0x5f1fcd['hasSuggestion'](_0x11a520))return;const _0x2def94=_0x5f1fcd['getSuggestion'](_0x11a520),_0x28946a=_0x2def94['data'];if('formatBlock'!=_0x2def94['type']||!_0x28946a||'setTableColumnHeader'!=_0x28946a['commandName'])return;const _0x28dad7=_0x3e7584['mapper']['markerNameToElements'](_0x416729['markerName']);if(_0x28dad7){for(const _0x334681 of _0x28dad7)_0x3e7584['writer']['removeClass']('ck-suggestion-marker-'+_0x5069ec,_0x334681),_0x3e7584['writer']['removeClass']('ck-suggestion-marker--active',_0x334681),_0x3e7584['writer']['removeAttribute']('data-suggestion',_0x334681),_0x3e7584['mapper']['unbindElementFromMarkerName'](_0x334681,_0x416729['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x2c4fbb=this['editor'],_0x5a419a=_0x2c4fbb['locale'];function _0x103c34(_0x3a7541){return{'type':'format','content':Mt(_0x5a419a,'*Format:*\x20%0',_0x3a7541)};}_0x2c4fbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x424232=>{if('formatBlock'!=_0x424232['type'])return;const {data:_0x9379d3}=_0x424232;return _0x9379d3?'setTableRowHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_ROW')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x9379d3['commandName']?_0x9379d3['commandParams'][0x0]['forceValue']?_0x103c34(Mt(_0x5a419a,'FORMAT_HEADER_COLUMN')):_0x103c34(Mt(_0x5a419a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x4ac2e5=this['editor'];if(!_0x4ac2e5['plugins']['has']('TableEditing')||!_0x4ac2e5['config']['get']('table.enableFooters'))return;const _0x5a8499=_0x4ac2e5['locale'],_0x2cf83e=_0x4ac2e5['plugins']['get']('TrackChangesEditing');_0x2cf83e['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2cf83e['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x5a8499,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x42a28f{afterInit(){const _0x31ee7c=this['editor'],_0x114fd7=_0x31ee7c['locale'],_0xcdd7f9=_0x31ee7c['plugins']['get']('TrackChangesEditing');function _0x238400(_0x38073c){return{'type':'format','content':''+Mt(_0x114fd7,'*Set\x20table\x20type:*\x20%0',_0x38073c)};}_0x31ee7c['plugins']['has']('TableLayout')&&(_0xcdd7f9['enableCommand']('insertTableLayout'),_0xcdd7f9['enableDefaultAttributesIntegration']('tableType'),_0xcdd7f9['descriptionFactory']['registerElementLabel'](_0x23db6b=>_0x23db6b['is']('element','table')&&'layout'===_0x23db6b['getAttribute']('tableType'),_0x1990c3=>Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE',_0x1990c3)),_0xcdd7f9['descriptionFactory']['registerDescriptionCallback'](_0x24a76c=>{const {data:_0xe65dbb}=_0x24a76c;if(_0xe65dbb&&'tableType'==_0xe65dbb['key'])switch(_0xe65dbb['newValue']){case'layout':return _0x238400(Mt(_0x114fd7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x238400(Mt(_0x114fd7,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](We['map'](_0x5a1b6b=>[_0x5a1b6b,null]));var je=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x162bda=this['editor'];if(!_0x162bda['plugins']['has']('TableClipboard'))return;const _0x1c9d9a=_0x162bda['plugins']['get']('TrackChangesEditing'),_0x41a765=_0x162bda['plugins']['get']('TableUtils'),_0x41706f=_0x162bda['plugins']['get'](Ue),_0x4be834=_0x162bda['plugins']['get']('TableClipboard'),_0x399d4a=_0x162bda['plugins']['get']('TableSelection'),_0xe381fc=_0x162bda['plugins']['get'](gt);_0x41706f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x162bda['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x162bda['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36f858=null,_0x3f3914=!0x1;_0xe381fc['on']('contentInsertion',(_0x319e02,_0x5bde56)=>{_0x3f3914='paste'===_0x5bde56['method'];}),_0x162bda['model']['on']('insertContent',(_0x597e9b,_0x41d692)=>{if(!_0x3f3914&&null===_0x399d4a['getSelectedTableCells']())return;const [_0x31fd4a,_0x38c8e1]=_0x41d692,_0x497500=_0x41d692[_0x41d692['length']-0x1];_0x497500&&_0x497500['forceDefaultExecution']||_0x1c9d9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5dd4f5,_0x2158d9,_0x390d01,_0x15be6c,_0x372294){if(_0x2158d9&&!_0x2158d9['is']('documentSelection'))return!0x1;const _0x201710=_0x372294['getTableIfOnlyTableInContent'](_0x5dd4f5,_0x390d01);if(!_0x201710||!Ke(_0x201710,void 0x0,_0x15be6c))return!0x1;const _0x39a72f=_0x15be6c['getSelectionAffectedTableCells'](_0x390d01['document']['selection']);if(!_0x39a72f['length'])return!0x1;const _0x44e767=_0x39a72f[0x0]['findAncestor']('table'),_0x28e327=_0x15be6c['getRowIndexes'](_0x39a72f),_0x5c391a=_0x15be6c['getColumnIndexes'](_0x39a72f),_0x1ba30f={'startRow':_0x28e327['first'],'endRow':_0x28e327['last'],'startColumn':_0x5c391a['first'],'endColumn':_0x5c391a['last']};return 0x1==_0x39a72f['length']&&(_0x1ba30f['endRow']+=_0x15be6c['getRows'](_0x201710)-0x1,_0x1ba30f['endColumn']+=_0x15be6c['getColumns'](_0x201710)-0x1),Ke(_0x44e767,_0x1ba30f,_0x15be6c);}(_0x31fd4a,_0x38c8e1,_0x162bda['model'],_0x41a765,_0x4be834)&&(_0x597e9b['stop'](),_0x36f858={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x162bda['model']['change'](()=>{_0x162bda['model']['insertContent'](_0x41d692[0x0],_0x41d692[0x1],_0x41d692[0x2],{'forceDefaultExecution':!0x0});const _0x584bcc=_0x5b5c0d(),{rowInsertionRanges:_0x444e8c,columnInsertionRanges:_0x1b0c6a,insertionRanges:_0x49c5e8,deletionRanges:_0x97957a,cells:_0x591e5b}=_0x36f858;_0x444e8c['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x444e8c,'tablePasteRow',{'tablePasteChainId':_0x584bcc}),_0x1b0c6a['length']&&_0x1c9d9a['markMultiRangeInsertion'](_0x1b0c6a,'tablePasteColumn',{'tablePasteChainId':_0x584bcc}),_0x49c5e8['length']&&(_0x1c9d9a['markMultiRangeInsertion'](_0x49c5e8,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x49c5e8['forEach'](_0x59aa98=>_0x59aa98['detach']?.())),_0x97957a['length']&&(_0x1c9d9a['markMultiRangeDeletion'](_0x97957a,'tablePaste',{'tablePasteChainId':_0x584bcc,'skipNestingCheck':!0x0}),_0x97957a['forEach'](_0x16f05a=>_0x16f05a['detach']?.()));const _0x8fb3fb=_0x1c9d9a['markMultiRangeBlockFormat'](_0x591e5b['map'](({element:_0x57f085})=>_0x57f085),{'formatGroupId':_0x5b5c0d()},[],'tablePasteCell',{'tablePasteChainId':_0x584bcc});if(_0x8fb3fb){const _0x4064c2=_0x8fb3fb['getMarkers'](),_0x4ff442=[];for(const {element:_0x541cd9,attributes:_0x2e45f6}of _0x591e5b){if(!_0x2e45f6)continue;const _0x49beb1=_0x162bda['model']['createRangeOn'](_0x541cd9),_0x2712f4=_0x4064c2['find'](_0x47468a=>_0x47468a['getRange']()['isEqual'](_0x49beb1));_0x2712f4&&_0x4ff442['push']([_0x2712f4['name'],_0x2e45f6]);}_0x4ff442['length']&&_0x8fb3fb['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ff442));}_0x36f858=null;}));},{'priority':_0x5ee963['high']+0xa}),_0xe381fc['on']('contentInsertion',()=>{_0x3f3914=!0x1;},{'priority':'lowest'}),_0x162bda['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x56179f,_0x58be68)=>{const [_0x2b341e,_0xcafff4,,_0x50097b]=_0x58be68;if(!_0x36f858)return;_0x56179f['stop']();const _0x7d38ba=_0x2b341e['cell'],_0x532d11=_0xcafff4,_0x4323c4=ze(_0x7d38ba),_0x4e3553=ze(_0x532d11);_0x56179f['return']=_0x7d38ba;let _0x483701=null,_0x56a067=null;if(_0x4e3553||_0x4323c4){if(_0x4323c4&&!_0x4e3553){_0x50097b['remove'](_0x7d38ba['getChild'](0x0));for(const _0x433363 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x433363,_0x7d38ba,'end');const _0x473ed0=_0x36f858['rowInsertionIndexes']['includes'](_0x2b341e['row']),_0x2aa5ae=_0x36f858['columnInsertionIndexes']['includes'](_0x2b341e['column']);_0x473ed0||_0x2aa5ae||(_0x483701=rt['fromRange'](_0x50097b['createRangeIn'](_0x7d38ba)));}else _0x4e3553&&!_0x4323c4&&(_0x56a067=_0x50097b['createRangeIn'](_0x7d38ba));}else{const _0x2242a0=_0x50097b['createElement']('tableCellSuggestion'),_0x3f6dac=_0x50097b['createElement']('tableCellSuggestion');_0x50097b['wrap'](_0x50097b['createRangeIn'](_0x7d38ba),_0x3f6dac),_0x50097b['insert'](_0x2242a0,_0x7d38ba,0x0);for(const _0x531932 of Array['from'](_0x532d11['getChildren']()))_0x50097b['insert'](_0x531932,_0x2242a0,'end');_0x483701=rt['fromRange'](_0x50097b['createRangeOn'](_0x2242a0)),_0x56a067=rt['fromRange'](_0x50097b['createRangeOn'](_0x3f6dac));}const _0x23c6e7=Array['from'](_0x532d11['getAttributes']())['filter'](([_0x3bbd8a])=>We['includes'](_0x3bbd8a));_0x36f858['cells']['push']({'element':_0x7d38ba,'attributes':_0x23c6e7['length']?Object['fromEntries'](_0x23c6e7):null}),_0x483701&&_0x36f858['insertionRanges']['push'](_0x483701),_0x56a067&&_0x36f858['deletionRanges']['push'](_0x56a067);},{'priority':'high'}),_0x41a765['on']('insertColumns',(_0xfee852,_0x3ce8c2)=>{const [_0x4a687c,_0x364148={}]=_0x3ce8c2;if(!_0x36f858)return;const _0x41aec4=_0x364148['at']||0x0,_0x4aa655=_0x364148['columns']||0x1;_0x36f858['columnInsertionIndexes']=new Array(_0x4aa655)['fill'](_0x41aec4)['map']((_0x378369,_0x3ab951)=>_0x378369+_0x3ab951);for(const {cell:_0xa437c8}of _0x41a765['createTableWalker'](_0x4a687c,{'startColumn':_0x41aec4,'endColumn':_0x41aec4+_0x4aa655-0x1}))_0x36f858['columnInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0xa437c8));},{'priority':'low'}),_0x41a765['on']('insertRows',(_0x20ead7,_0x1749c5)=>{const [_0x3ace66,_0x117604={}]=_0x1749c5;if(!_0x36f858)return;const _0x5a0730=_0x117604['at']||0x0,_0x8b2672=_0x117604['rows']||0x1;_0x36f858['rowInsertionIndexes']=new Array(_0x8b2672)['fill'](_0x5a0730)['map']((_0x1eda9d,_0x18a215)=>_0x1eda9d+_0x18a215);for(const {cell:_0x5d93d9}of _0x41a765['createTableWalker'](_0x3ace66,{'startRow':_0x5a0730,'endRow':_0x5a0730+_0x8b2672-0x1}))_0x36f858['rowInsertionRanges']['push'](_0x162bda['model']['createRangeOn'](_0x5d93d9));},{'priority':'low'}),_0x1c9d9a['descriptionFactory']['registerDescriptionCallback'](_0x475563=>{if(_0x475563['subType']&&_0x475563['subType']['startsWith']('tablePaste'))return _0x475563['previous']?{}:{'type':'insertion','content':Mt(_0x162bda['locale'],'*Replace\x20table\x20cells*')};});const _0x1a09da=()=>!0x1;for(const _0x1e6601 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e6601,'join',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e6601,'join',_0x1a09da);_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a09da),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x409232,_0x5e5180,_0x2668f0)=>{const _0x3f2684=_0x409232['map'](_0x7081f=>_0x7081f['getContainedElement']())['filter'](_0x40f945=>_0x40f945),_0x10be29=new Map(_0x3f2684['map'](_0x4d4b30=>[_0x4d4b30,null]));if(_0x36f858){for(const {element:_0x4527e8,attributes:_0x3adcdc}of _0x36f858['cells'])_0x3adcdc&&_0x10be29['set'](_0x4527e8,_0x3adcdc);}else{if(_0x2668f0&&_0x2668f0['markerAttributes'])for(const [_0x2c07a5,_0x378d0f]of Object['entries'](_0x2668f0['markerAttributes'])){const _0x512c33=_0x162bda['model']['markers']['get'](_0x2c07a5),_0x157c59=_0x512c33?_0x512c33['getRange']()['getContainedElement']():null;_0x157c59&&_0x10be29['set'](_0x157c59,_0x378d0f);}}_0x162bda['model']['change'](_0xe4e30e=>{for(const [_0xf21320,_0x74c9fa]of _0x10be29)_0xe4e30e['setAttributes']({...Ve,..._0x74c9fa},_0xf21320);});});const _0x45ea15=(_0x4fc4ca,_0x433320)=>{_0x1c9d9a['_suggestionFactory']['registerCustomCallback'](_0x4fc4ca,'tablePaste',_0x433320,(_0x3ccb66,_0x24ea2b,_0x34768d)=>{_0x162bda['model']['change'](_0xcb08d=>{const _0x436c65=[];for(const _0x58ba22 of _0x3ccb66){const _0x2c8b54=_0x58ba22['start']['nodeAfter'];_0x2c8b54['is']('element','tableCellSuggestion')&&_0x436c65['push'](_0x2c8b54);}_0x1c9d9a['_suggestionFactory']['getSuggestionCallback'](_0x4fc4ca,null,_0x433320)(_0x3ccb66,_0x24ea2b,_0x34768d);for(const _0x175405 of _0x436c65)'$graveyard'!=_0x175405['root']['rootName']&&_0xcb08d['unwrap'](_0x175405);});});};_0x45ea15('insertion','accept'),_0x45ea15('insertion','discard'),_0x45ea15('deletion','accept'),_0x45ea15('deletion','discard'),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x213514=>{const _0x42b9b6=_0x213514['map'](_0x1c0994=>_0x1c0994['getContainedElement']()),_0x2fbfcd=_0x42b9b6[0x0]['findAncestor']('table'),{minRow:_0x412ca8,maxRow:_0x317626}=_0x41706f['_getCoordsForCells'](_0x42b9b6);_0x41a765['removeRows'](_0x2fbfcd,{'at':_0x412ca8,'rows':_0x317626-_0x412ca8+0x1});}),_0x1c9d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31ff98=>{const _0x1b1936=_0x31ff98['map'](_0x623616=>_0x623616['getContainedElement']()),_0x5821d8=_0x1b1936[0x0]['findAncestor']('table'),{minColumn:_0x541e38,maxColumn:_0x2e10a0}=_0x41706f['_getCoordsForCells'](_0x1b1936);_0x41a765['removeColumns'](_0x5821d8,{'at':_0x541e38,'columns':_0x2e10a0-_0x541e38+0x1});});const _0x450a17=(_0x50f9eb,_0x5e5340)=>{if(!_0x5e5340['subType']||!_0x5e5340['subType']['startsWith']('tablePaste'))return;const _0x1a0a4f=_0x5e5340['attributes']['tablePasteChainId'],_0x38ef99=_0x1c9d9a['getSuggestions']()['filter'](_0x2c859e=>_0x2c859e['isInContent']&&_0x2c859e['attributes']&&_0x2c859e['attributes']['tablePasteChainId']==_0x1a0a4f);_0x38ef99['length']&&_0x5e5340['getAllAdjacentSuggestions']()['length']!=_0x38ef99['length']&&_0x38ef99['reduce']((_0x139fb2,_0x50f9ec)=>(_0x139fb2['next']=_0x50f9ec,_0x50f9ec['previous']=_0x139fb2,_0x50f9ec));};function _0x2b6891(_0x144923,_0x4ab169=!0x0){const {id:_0x4be9b6,authorId:_0xae2833}=tt(_0x144923['markerName']),_0x1fb504=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x120d0c=_0x1c9d9a['activeMarkers']['includes'](_0x144923['markerName']);return _0x120d0c&&_0x1fb504['push']('ck-suggestion-marker--active'),{'classes':_0x1fb504,'attributes':{'data-suggestion':_0x4be9b6,'data-author-id':_0xae2833},'priority':_0x120d0c&&_0x4ab169?0xbc2:0xbb8};}_0x1c9d9a['on']('suggestionLoaded',_0x450a17,{'priority':'high'}),_0x1c9d9a['on']('suggestionUnloaded',_0x450a17,{'priority':'high'}),_0x162bda['model']['document']['registerPostFixer'](()=>{let _0x2b7f2d=!0x1;const _0x2d4b55=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8ae5,data:_0x5d3706}of _0x2d4b55){const {group:_0x4c5004,type:_0x45f11b,id:_0x54ef93}=tt(_0x2d8ae5);if('suggestion'!=_0x4c5004||'deletion'!=_0x45f11b||_0x5d3706['oldRange'])continue;if(!_0x1c9d9a['hasSuggestion'](_0x54ef93))continue;const _0x4ad391=_0x1c9d9a['getSuggestion'](_0x54ef93)['getRanges'](),_0x16d714=_0x162bda['plugins']['get']('Users')['me'];for(const _0x29b7b3 of _0x1c9d9a['getSuggestions']())if(_0x29b7b3['isInContent']&&_0x29b7b3['author']==_0x16d714&&'formatBlock'==_0x29b7b3['type']&&'tablePasteCell'==_0x29b7b3['subType']&&_0x29b7b3['getRanges']()['every'](_0x272455=>_0x4ad391['some'](_0x31d0c5=>_0x31d0c5['containsRange'](_0x272455,!0x0)))){for(const _0x536e3f of _0x29b7b3['getAllAdjacentSuggestions']())_0x536e3f['isInContent']&&(_0x536e3f['discard'](),_0x2b7f2d=!0x0);}}return _0x2b7f2d;}),_0x162bda['model']['document']['registerPostFixer'](_0x39e010=>{const _0x22da0d=_0x162bda['commands']['get']('redo');if(!_0x22da0d||!_0x22da0d['_createdBatches']['has'](_0x39e010['batch']))return!0x1;let _0x6112c1=!0x1;const _0x58e474=_0x162bda['plugins']['get']('Users')['me'],_0x366c7d=_0x162bda['model']['document']['differ']['getChanges'](),_0x3661ec=Array['from'](_0x162bda['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2823b1,data:_0x42cd54})=>{const {group:_0x350f19,subType:_0x36936d,authorId:_0x4c61e5}=tt(_0x2823b1);return'suggestion'==_0x350f19&&'tablePaste'==_0x36936d&&_0x4c61e5==_0x58e474['id']&&!_0x42cd54['oldRange'];});for(const _0x251383 of _0x366c7d){if('insert'!=_0x251383['type']||'tableCellSuggestion'!=_0x251383['name']||0x1!=_0x251383['length'])continue;const _0xf12dda=_0x39e010['createRange'](_0x251383['position'],_0x251383['position']['getShiftedBy'](0x1));if(!_0x3661ec['find'](({data:_0x490e85})=>_0x490e85['newRange']['isEqual'](_0xf12dda))){for(const {name:_0x30c303,data:_0x515681}of _0x3661ec)if(_0xf12dda['containsRange'](_0x515681['newRange'])){_0x39e010['updateMarker'](_0x30c303,{'range':_0xf12dda}),_0x6112c1=!0x0;break;}}}return _0x6112c1;}),_0x162bda['model']['document']['registerPostFixer'](_0x4438f0=>{let _0x5b7fe9=!0x1;const _0x5acfc8=_0x162bda['plugins']['get']('Users')['me'],_0x27b934=_0x1c9d9a['getSuggestions']()['filter'](_0x5e182c=>_0x5e182c['isInContent']&&_0x5e182c['author']==_0x5acfc8),_0x35141c=new Set(),_0x5d04f8=new Set();for(const _0x3048a7 of _0x27b934)if('tablePaste'==_0x3048a7['subType'])for(const _0x42f65b of _0x3048a7['getMarkers']()){const _0x5a19c6=_0x42f65b['getRange']()['getContainedElement']();if(_0x5a19c6){if(_0x5a19c6['is']('element','tableCellSuggestion')&&ze(_0x5a19c6)){_0x3048a7['removeMarker'](_0x42f65b['name']),_0x35141c['add'](_0x5a19c6),_0x5b7fe9=!0x0;const _0x3e0158=_0x5a19c6['nextSibling'],_0x1f677c=_0x5a19c6['previousSibling'],_0x531d27=_0x3e0158&&_0x3e0158['is']('element','tableCellSuggestion'),_0x56955f=_0x1f677c&&_0x1f677c['is']('element','tableCellSuggestion');_0x531d27&&!_0x35141c['has'](_0x3e0158)&&_0x5d04f8['add'](_0x3e0158),_0x56955f&&!_0x35141c['has'](_0x1f677c)&&_0x5d04f8['add'](_0x1f677c);}else _0x5a19c6['is']('element','paragraph')&&_0x5a19c6['isEmpty']&&(_0x3048a7['removeMarker'](_0x42f65b['name']),_0x5b7fe9=!0x0);}}else{if('tablePasteCell'==_0x3048a7['subType']){if(!_0x3048a7['attributes']||!_0x3048a7['attributes']['tablePasteChainId'])continue;const _0x41e147=_0x3048a7['attributes']['markerAttributes'];if(_0x41e147&&Object['keys'](_0x41e147)['length'])continue;const _0x66b45c=_0x3048a7['attributes']['tablePasteChainId'];let _0xbe5442=!0x0,_0x471ce5=!0x0;for(const _0xd6852e of _0x27b934)if(_0xd6852e['subType']&&_0xd6852e['subType']['startsWith']('tablePaste')){if(!_0xd6852e['attributes']['tablePasteChainId']){_0x471ce5=!0x1;break;}if(_0xd6852e['id']!=_0x3048a7['id']&&_0xd6852e['attributes']['tablePasteChainId']==_0x66b45c){_0xbe5442=!0x1;break;}}_0x471ce5&&_0xbe5442&&(_0x3048a7['removeMarkers'](),_0x5b7fe9=!0x0);}}for(const _0xb2ee89 of _0x35141c)_0x4438f0['remove'](_0xb2ee89);for(const _0x9b99fa of _0x5d04f8)_0x4438f0['unwrap'](_0x9b99fa);return _0x5b7fe9;}),_0x162bda['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x527db6=>_0x2b6891(_0x527db6),'converterPriority':'high'}),_0x162bda['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c264b,_0x52566d)=>_0x52566d['options']['showSuggestionHighlights']?_0x2b6891(_0x2c264b,!0x1):null,'converterPriority':'high'});const _0x10e45c=_0x162bda['editing']['view'];this['listenTo'](_0x10e45c['document'],'clipboardOutput',(_0x291eaf,_0x53d919)=>{const _0x356383=[];for(const _0x5c0b4e of _0x10e45c['createRangeIn'](_0x53d919['content'])['getItems']())_0x5c0b4e['is']('element','suggestion-td')&&_0x356383['push'](_0x5c0b4e);_0x10e45c['change'](_0x4dd76d=>{for(const _0xf1882f of _0x356383)_0x4dd76d['move'](_0x4dd76d['createRangeIn'](_0xf1882f),_0x4dd76d['createPositionBefore'](_0xf1882f)),_0x4dd76d['remove'](_0xf1882f);});});}};function ze(_0x4e7814){if(_0x4e7814['isEmpty'])return!0x0;const _0x2f97d6=_0x4e7814['getChild'](0x0);return _0x2f97d6['is']('element','paragraph')&&_0x2f97d6['isEmpty'];}function Ke(_0xe5b90d,_0x4fd8b6={},_0x302c57){for(const {isAnchor:_0x418c7a,cellHeight:_0x4a23be,cellWidth:_0x575a53}of _0x302c57['createTableWalker'](_0xe5b90d,{'includeAllSlots':!0x0,..._0x4fd8b6}))if(!_0x418c7a||0x1!=_0x4a23be||0x1!=_0x575a53)return!0x1;return!0x0;}var Xe=class extends _0x42a28f{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161a4d=this['editor']['plugins']['get']('TrackChangesEditing');_0x161a4d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x161a4d['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x17cbf7=_0x161a4d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x11726f,_0x581cc6)=>{_0x17cbf7(_0x11726f,_0x581cc6),this['_restoreCellWidths'](_0x11726f[0x0]['start']['nodeAfter'],_0x581cc6['commandParams'][0x0]['cellWidths']);}),_0x161a4d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xdf197d,_0x3dcf70){const _0x17aabc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f054f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49cfb4=_0x3dcf70['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ef691=_0x2f054f['getColumnGroupElement'](_0x49cfb4);let _0x1a6801=_0x1ef691?_0x2f054f['getTableColumnsWidths'](_0x1ef691):null,_0x206e82=_0x49cfb4['getAttribute']('tableWidth')||null;const _0x18906a=_0x3dcf70['tableWidth']||_0x206e82,_0x3441f9=_0x3dcf70['columnWidths']||_0x1a6801;let _0x2a55d8=this['_getCellWidths'](_0x49cfb4);const _0x4bed06=this['_foldResizeTableSuggestion'](_0x49cfb4);_0x4bed06&&(_0x206e82=_0x4bed06['tableWidth'],_0x1a6801=_0x4bed06['columnWidths'],_0x2a55d8=_0x4bed06['cellWidths']||_0x2a55d8),_0xdf197d({'table':_0x49cfb4,'tableWidth':_0x18906a,'columnWidths':_0x3441f9}),_0x17aabc['markBlockFormat'](_0x49cfb4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x206e82,'columnWidths':_0x1a6801,'cellWidths':_0x2a55d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x58e0f3,_0x52fa68={}){if(void 0x0===_0x52fa68['value']||''===_0x52fa68['value'])return void _0x58e0f3(_0x52fa68);const _0x266431=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37e5fb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31ef2b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x52fa68['batch']||(_0x52fa68['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x52fa68['batch'],()=>{const _0xb9f56a=_0x37e5fb['getColumnGroupElement'](_0x31ef2b);let _0x35c68f=_0xb9f56a?_0x37e5fb['getTableColumnsWidths'](_0xb9f56a):null,_0x432bd9=_0x31ef2b['getAttribute']('tableWidth')||null,_0x6b9f9a=this['_getCellWidths'](_0x31ef2b);const _0xf7b81=this['_foldResizeTableSuggestion'](_0x31ef2b,!0x0);_0xf7b81&&(_0x432bd9=_0xf7b81['tableWidth'],_0x35c68f=_0xf7b81['columnWidths'],_0x6b9f9a=_0xf7b81['cellWidths']||_0x6b9f9a),_0x58e0f3(_0x52fa68),_0x266431['markBlockFormat'](_0x31ef2b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432bd9,'columnWidths':_0x35c68f,'cellWidths':_0x6b9f9a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4d8924,_0x15bf1c=!0x1){const _0x44bfee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318e24=this['editor']['plugins']['get']('Users')['me'];for(const _0x49a26f of _0x44bfee['getSuggestions']({'skipNotAttached':!0x0})){const _0x4db67d=_0x49a26f['getContainedElement']();if('resizeTable'===_0x49a26f['subType']&&_0x4db67d===_0x4d8924){_0x49a26f['author']!==_0x318e24&&(_0x15bf1c?_0x49a26f['removeMarkers']():_0x49a26f['discard']());const _0x482b7d=_0x49a26f['data']['commandParams'];return{'tableWidth':_0x482b7d[0x0]['tableWidth'],'columnWidths':_0x482b7d[0x0]['columnWidths'],'cellWidths':_0x482b7d[0x0]['cellWidths']};}}return null;}_getCellWidths(_0xfb29d1){const _0x485960=[];for(const _0x2aa2bb of _0xfb29d1['getChildren']())if(_0x2aa2bb['is']('element','tableRow')){for(const _0x31826d of _0x2aa2bb['getChildren']())_0x485960['push'](_0x31826d['getAttribute']('tableCellWidth')||null);}return _0x485960;}_restoreCellWidths(_0x51e367,_0x282c72){_0x282c72&&this['editor']['model']['change'](_0x5e8b00=>{let _0x8ebaf5=0x0;for(const _0x53f044 of _0x51e367['getChildren']())if(_0x53f044['is']('element','tableRow'))for(const _0x51a296 of _0x53f044['getChildren']()){const _0x2e9af9=_0x282c72[_0x8ebaf5++];_0x2e9af9&&_0x5e8b00['setAttribute']('tableCellWidth',_0x2e9af9,_0x51a296);}});}handleSuggestionDescription(_0xc31b6d){if('formatBlock'!=_0xc31b6d['type']&&'formatInline'!=_0xc31b6d['type'])return;const {data:_0x427356}=_0xc31b6d;return _0x427356&&'resizeTable'===_0x427356['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x42a28f{afterInit(){const _0x4fb0bd=this['editor'];_0x4fb0bd['plugins']['has']('Template')&&_0x4fb0bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x42a28f{afterInit(){const _0x569e10=this['editor'];if(!_0x569e10['commands']['get']('insertTableOfContents'))return;_0x569e10['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x158752=_0x569e10['plugins']['get']('TrackChangesEditing'),_0x452a1c=_0x569e10['locale'];_0x158752['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30289c=>Mt(_0x452a1c,'ELEMENT_TABLE_OF_CONTENTS',_0x30289c));}},Qe=class extends _0x42a28f{afterInit(){const _0x76d536=this['editor'];_0x76d536['plugins']['has']('Title')&&(_0x76d536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x76d536['locale'],'ELEMENT_TITLE')),_0x76d536['model']['document']['registerPostFixer'](_0x5a12cc=>{let _0x544376=!0x1;const _0x4e89e4=Array['from'](_0x76d536['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8fb97d,data:_0x3a10a7}of _0x4e89e4){const {group:_0x5933e3}=tt(_0x8fb97d);if('suggestion'!==_0x5933e3||!_0x3a10a7['newRange'])continue;const _0x5f389d=_0x3a10a7['newRange'],_0x13f755=_0x5f389d['end']['nodeBefore'];if(!_0x13f755||!_0x13f755['is']('element','title-content'))continue;if(!_0x5f389d['start']['isTouching'](_0x5f389d['end']))continue;const _0x202710=_0x76d536['model']['schema']['getNearestSelectionRange'](_0x5f389d['end'],'forward');if(_0x202710&&_0x202710['isCollapsed']){const _0x383099=_0x5a12cc['createRange'](_0x5f389d['start'],_0x202710['start']);_0x383099['isEqual'](_0x5f389d)||(_0x5a12cc['updateMarker'](_0x8fb97d,{'range':_0x383099}),_0x544376=!0x0);}_0x544376||(_0x5a12cc['removeMarker'](_0x8fb97d),_0x544376=!0x0);}return _0x544376;}));}},Ze=class extends _0x42a28f{afterInit(){const _0x50563e=this['editor'],_0x51fea2=_0x50563e['plugins']['get']('TrackChangesEditing');_0x50563e['plugins']['has']('Uploadcare')&&(_0x51fea2['enableCommand']('uploadcare'),_0x50563e['plugins']['has']('UploadcareImageEdit')&&(_0x51fea2['enableCommand']('uploadcareImageEdit'),_0x51fea2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x51fea2['descriptionFactory']['registerDescriptionCallback'](_0x3d1d93=>{if('attribute'!=_0x3d1d93['type'])return;const {data:_0x200768}=_0x3d1d93;return _0x200768&&'uploadcareImageId'==_0x200768['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x42a28f{afterInit(){const _0x2e35cd=this['editor'],_0x5945f1=_0x2e35cd['plugins']['get']('TrackChangesEditing');_0x2e35cd['plugins']['has']('UndoEditing')&&(_0x5945f1['enableCommand']('undo'),_0x5945f1['enableCommand']('redo'));}},tn=class extends _0x42a28f{static get requires(){return[Ue];}afterInit(){const _0x1d114d=this['editor'];_0x1d114d['plugins']['has']('TableCaptionEditing')&&_0x1d114d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x42a28f{tableProperties;tableCellProperties;constructor(_0x2af823){super(_0x2af823),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 _0x4bea23=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x15fbf0 of this['tableProperties'])_0x4bea23['enableCommand'](_0x15fbf0,(_0x53bfed,_0xde687b)=>{const _0x34c2ec=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x15fbf0,[_0x34c2ec],this['tableProperties'],'tableProperties',_0x53bfed,_0xde687b);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bbf68,_0x3c6597)=>this['handleDiscardAction'](this['tableProperties'],_0x2bbf68,_0x3c6597)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4ba3ff of this['tableCellProperties'])this['editor']['commands']['get'](_0x4ba3ff)&&_0x4bea23['enableCommand'](_0x4ba3ff,(_0x2e30be,_0x20c380)=>{const _0x54e480=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4ba3ff,_0x54e480,this['tableCellProperties'],'tableCellProperties',_0x2e30be,_0x20c380);});_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4bea23['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44ca67,_0x15d2d1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44ca67,_0x15d2d1)),_0x4bea23['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4bea23['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4bea23['descriptionFactory']['registerDescriptionCallback'](_0x56228b=>this['handleSuggestionDescription'](_0x56228b)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1794b5,_0x2404d4,_0x1febf5,_0x3b2997,_0x1cce52,_0x4b86c1){const _0x3e2c8a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b86c1['batch'],()=>{for(const _0x35ce49 of _0x2404d4)if(this['_getSuggestion'](_0x35ce49,_0x3b2997))_0x1cce52(_0x4b86c1);else{const _0x519b54={};for(const _0x2f804d of _0x1febf5){const _0x1b982a=_0x35ce49['getAttribute'](_0x2f804d);void 0x0!==_0x1b982a&&(_0x519b54[_0x2f804d]=_0x1b982a);}const _0xd4c4=this['_getResizedColumnWidths'](_0x35ce49);_0xd4c4&&(_0x519b54['columnWidths']=_0xd4c4),_0x1cce52(_0x4b86c1),_0x3e2c8a['markBlockFormat'](_0x35ce49,{'commandParams':[_0x519b54]},[],_0x3b2997);}});}handleDiscardAction(_0x119d0e,_0x20bd86,_0x43d4f3){const _0x437858=_0x20bd86[0x0]['start']['nodeAfter'],_0x2c09da=_0x43d4f3['commandParams'][0x0];this['editor']['model']['change'](_0x332806=>{for(const _0x5e10b4 of _0x119d0e)void 0x0!==_0x2c09da[_0x5e10b4]?_0x332806['setAttribute'](_0x5e10b4,_0x2c09da[_0x5e10b4],_0x437858):_0x332806['removeAttribute'](_0x5e10b4,_0x437858);if(_0x2c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x574112=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a16a=_0x574112['getColumnGroupElement'](_0x437858);if(_0x16a16a){const _0x2daaae=_0x574112['getTableColumnsWidths'](_0x16a16a),_0x39b404=_0x437858['getAttribute']('tableWidth');if(('string'==typeof _0x39b404&&_0x39b404['trim']()['endsWith']('px'))!==_0x2daaae['some'](_0x3c0aab=>'string'==typeof _0x3c0aab&&_0x3c0aab['endsWith']('px'))){const _0x3a8da1=_0x574112['getTableColumnElements'](_0x16a16a);_0x2c09da['columnWidths']['forEach']((_0x520af8,_0x36f313)=>{_0x3a8da1[_0x36f313]&&_0x332806['setAttribute']('columnWidth',_0x520af8,_0x3a8da1[_0x36f313]);});}}}});}_getResizedColumnWidths(_0x272483){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x272483['is']('element','table'))return;const _0x5889b5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e674c=_0x5889b5['getColumnGroupElement'](_0x272483);return _0x1e674c?_0x5889b5['getTableColumnsWidths'](_0x1e674c):void 0x0;}handleSuggestionDescription(_0x4aaaf2){if(_0x4aaaf2['data'])switch(_0x4aaaf2['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x328092,_0x583514){const _0x3e5775=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c1fe8 of _0x3e5775['getSuggestions']({'skipNotAttached':!0x0})){const _0x48d9c2=_0x1c1fe8['getContainedElement']();if(_0x1c1fe8['subType']===_0x583514&&_0x48d9c2===_0x328092)return _0x1c1fe8;}return null;}_registerTablePropertiesAttributes(){const _0x4b1fb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5213bb=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xfce2a of _0x5213bb){const _0x2776e8=_0xfce2a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b1fb8['descriptionFactory']['registerAttributeLabel'](_0xfce2a,Mt(this['editor']['locale'],'FORMAT_'+_0x2776e8));}}},nn=class extends _0x42a28f{afterInit(){const _0x3d8d30=this['editor'];if(!_0x3d8d30['plugins']['has']('LineHeight'))return;const _0x350e7b=_0x3d8d30['plugins']['get']('TrackChangesEditing'),_0x59f399=_0x3d8d30['locale'];_0x350e7b['enableDefaultAttributesIntegration']('lineHeight'),_0x350e7b['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x59f399,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0xc3eca2){return'marker'==_0xc3eca2['type']&&_0xc3eca2['name']['startsWith']('$markedRemove');}function on(_0x2e0c27){return _0x2e0c27?[_0x2e0c27]:[];}var an=class extends _0x42a28f{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x51a4b7,_0x407cac,_0x3f25ff,_0x3b38a1,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xedcda9){super(_0xedcda9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x472090,_0x395a94,_0x48d390,_0x19d867)=>{this['_model']['change'](()=>{for(const _0x33b136 of[..._0x19d867,..._0x48d390])this['_model']['markers']['has'](_0x33b136)&&_0xedcda9['editing']['reconvertMarker'](_0x33b136);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xedcda9['plugins']['get'](_0x51a4b7),this['_suggestionsConversion']=_0xedcda9['plugins']['get'](_0x407cac),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xedcda9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xedcda9['config']['get']('trackChanges.trackFormatChanges'),_0xedcda9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xedcda9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0xedcda9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1248ec=this['editor'];_0x1248ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ab3e0,{writer:_0x5985a0})=>{let _0x46daef='suggestion:'+_0x2ab3e0['getAttribute']('suggestion-type')+':'+_0x2ab3e0['getAttribute']('id');return _0x2ab3e0['getAttribute']('marker-count')&&(_0x46daef+=':'+_0x2ab3e0['getAttribute']('marker-count')),_0x5985a0['createElement']('$marker',{'data-name':_0x46daef});}}),_0x1248ec['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1248ec['model']['document']['registerPostFixer'](_0xe7f440=>{let _0x457af8=!0x1;const _0x2c0bbf=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']()),_0x5cffa3=new Set();for(const {name:_0x2cd4cb,data:_0x3eca77}of _0x2c0bbf){const {group:_0x15e24b,type:_0x294dba,subType:_0x1e6965,id:_0x43b68c}=tt(_0x2cd4cb);if('suggestion'!==_0x15e24b)continue;const _0x5e533f=_0x1e6965?'suggestion:'+_0x294dba+':'+_0x1e6965+':'+_0x43b68c:'suggestion:'+_0x294dba+':'+_0x43b68c,_0x178a30=_0x1248ec['model']['markers']['getMarkersGroup'](_0x5e533f),_0x4ce5cf=_0x1248ec['model']['markers']['get'](_0x2cd4cb),_0x2de63a=this['_suggestions']['get'](_0x43b68c);if(null!=_0x3eca77['newRange']){'formatInline'==_0x294dba&&(_0x457af8=_0x457af8||dn(_0x3eca77['newRange'],_0x2cd4cb,_0xe7f440,_0x1248ec['model']['schema']));const _0x1b2c50='attribute'==_0x294dba&&this['_suggestionsConversion']['isBlockAttribute'](An(_0x1e6965)),_0x427a09='attribute'==_0x294dba&&this['_suggestionsConversion']['isInlineAttribute'](An(_0x1e6965));if(_0x3eca77['newRange']['isCollapsed']||'$graveyard'==_0x3eca77['newRange']['root']['rootName']||'formatBlock'==_0x294dba&&!gn(_0x3eca77['newRange'])||_0x1b2c50&&!gn(_0x3eca77['newRange'])||_0x427a09&&fn(_0x3eca77['newRange'])||'deletion'==_0x294dba&&fn(_0x3eca77['newRange'])||_0x4ce5cf&&mn(_0x4ce5cf,_0x178a30))_0xe7f440['removeMarker'](_0x2cd4cb),_0x457af8=!0x0;else{if(!_0x2de63a||!_0x2de63a['isInContent'])continue;if(_0x3eca77['newRange']&&_0x3eca77['oldRange']&&_0x3eca77['newRange']['isEqual'](_0x3eca77['oldRange']))continue;_0x5cffa3['add'](_0x2de63a);}}}return _0x5cffa3['size']>0x0&&(_0x457af8=!!this['_joinWithAdjacentSuggestions'](_0x5cffa3)||_0x457af8),_0x457af8;}),_0x1248ec['model']['document']['registerPostFixer'](_0x26e5fb=>{let _0x163a98=!0x1;for(const _0x27d653 of _0x1248ec['model']['document']['differ']['getChanges']())if('insert'==_0x27d653['type'])for(const _0x281167 of this['_suggestions']['values']()){if(_0x281167['isMultiRange']||!_0x281167['isInContent'])continue;const _0x479e14='formatBlock'==_0x281167['type'],_0x4b3406=this['_getAttributeKey'](_0x281167),_0x56243e=_0x4b3406&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b3406);if(!_0x479e14&&!_0x56243e)continue;const _0xeda45=_0x281167['getFirstRange']();if(_0xeda45['start']['parent']!=_0xeda45['end']['parent']&&!_0xeda45['end']['isAtEnd']){const _0x8c57e4=_0x1248ec['model']['createPositionAt'](_0xeda45['start']['nodeAfter'],'end'),_0x5c4004=_0x1248ec['model']['createRange'](_0xeda45['start'],_0x8c57e4);_0x26e5fb['updateMarker'](_0x281167['getFirstMarker'](),{'range':_0x5c4004}),_0x163a98=!0x0;}}return _0x163a98;}),_0x1248ec['model']['document']['registerPostFixer'](_0x4821c1=>this['_processAttributeChanges'](_0x4821c1)),_0x1248ec['model']['document']['registerPostFixer'](_0x343467=>!_0x343467['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x343467)),_0x1248ec['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1248ec['model']['document']['on']('change:data',(_0x3c1abe,_0x34f4dc)=>{if(!_0x34f4dc['isLocal']||_0x34f4dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34ff4c=_0x1248ec['model']['document']['differ']['getChanges']();if(0x0==_0x34ff4c['length'])return;const _0x24ff44=[],_0x55f9ce=_0x34ff4c['filter'](_0x5e3968=>'attribute'==_0x5e3968['type']),_0x1af41e=_0x34ff4c['filter'](_0x51abce=>'insert'==_0x51abce['type']&&'$text'!=_0x51abce['name']);for(const _0x954c87 of _0x55f9ce)this['_suggestionsConversion']['isRegisteredAttribute'](_0x954c87['attributeKey'])&&_0x24ff44['push']({'key':_0x954c87['attributeKey'],'newValue':_0x954c87['attributeNewValue'],'oldValue':_0x954c87['attributeOldValue'],'range':En(_0x954c87['range'],_0x1248ec['model'])});for(const _0x1c2b8f of _0x1af41e){if('rename'!=_0x1c2b8f['action']&&'refresh'!=_0x1c2b8f['action'])continue;const _0x34e932=Tn(_0x1c2b8f['position']['nodeAfter'],_0x1248ec['model']),_0x3737d7=_0x1c2b8f['before'];'rename'==_0x1c2b8f['action']&&_0x24ff44['push']({'key':sn,'newValue':_0x1c2b8f['name'],'oldValue':_0x3737d7['name'],'range':_0x34e932});for(const [_0x2a37a5,_0xbde540]of _0x3737d7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2a37a5))continue;const _0x2115fd=_0x1c2b8f['attributes']['get'](_0x2a37a5);_0xbde540!==_0x2115fd&&_0x24ff44['push']({'key':_0x2a37a5,'newValue':_0x2115fd,'oldValue':_0xbde540,'range':_0x34e932});}for(const [_0xf39781,_0x236914]of _0x1c2b8f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0xf39781)&&(_0x3737d7['attributes']['has'](_0xf39781)||_0x24ff44['push']({'key':_0xf39781,'newValue':_0x236914,'oldValue':null,'range':_0x34e932}));}0x0!=_0x24ff44['length']&&_0x1248ec['model']['enqueueChange'](_0x34f4dc,_0x18f775=>{const _0x5a3cc6=_0x5b5c0d();for(const {range:_0x485788,key:_0x41389d,oldValue:_0x2c4218,newValue:_0x26fc2d}of _0x24ff44)this['markAttributeChange'](_0x485788,_0x41389d,_0x2c4218,_0x26fc2d,{'groupId':_0x5a3cc6});this['_reduceExistingSuggestions'](_0x18f775,_0x24ff44);});},{'priority':'lowest'}),_0x1248ec['model']['markers']['on']('update:suggestion',(_0x38ff08,_0x3d86f5,_0x8d2142)=>{if(null==_0x8d2142){const {id:_0x27c671}=tt(_0x3d86f5['name']),_0x3a1699=this['_suggestions']['get'](_0x27c671);_0x3a1699&&_0x3a1699['addMarkerName'](_0x3d86f5['name']);}}),_0x1248ec['model']['document']['on']('change:data',()=>{const _0x273cc5=Array['from'](_0x1248ec['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7ee5ab=>'suggestion'===tt(_0x7ee5ab['name'])['group']);if(0x0===_0x273cc5['length'])return;_0x273cc5['sort']((_0x5b7451,_0x4d70b2)=>{const _0x1cb073=_0x5b7451['data']['oldRange'],_0x3b8ef5=_0x4d70b2['data']['oldRange'];return null===_0x1cb073&&null===_0x3b8ef5?0x0:null===_0x1cb073&&null!==_0x3b8ef5?-0x1:null!==_0x1cb073&&null===_0x3b8ef5?0x1:_0x1cb073['start']['isBefore'](_0x3b8ef5['start'])?-0x1:0x1;});const _0x1b316b=new Set(),_0x39b782=new Set();for(const {name:_0x23ad26,data:_0x38fcf6}of _0x273cc5){const {id:_0x1d82c7}=tt(_0x23ad26);if(null===_0x38fcf6['oldRange']){const _0x3ae2c2=this['_handleNewSuggestionMarker'](_0x23ad26);_0x39b782['add'](_0x3ae2c2);}else{const _0x33cdd9=this['_suggestions']['get'](_0x1d82c7);null!==_0x38fcf6['newRange']||_0x33cdd9['isInContent']?(_0x1b316b['add'](_0x33cdd9['head']),_0x39b782['add'](_0x33cdd9)):this['_removeSuggestion'](_0x33cdd9);}}_0x39b782['size']>0x0&&this['_refreshSuggestionsChain'](_0x39b782);for(const _0x5e54a9 of _0x1b316b)this['fire']('suggestionChanged',_0x5e54a9);}),_0x1248ec['model']['on']('applyOperation',(_0x368ee8,_0x355df2)=>{const _0xf64fca=_0x355df2[0x0];if(!this['_suggestions']['size'])return;if(!_0xf64fca['isDocumentOperation'])return;if(_0xf64fca['batch']['isUndo']||!_0xf64fca['batch']['isLocal'])return;let _0x5c9e00,_0x27743c;switch(_0xf64fca['type']){case'insert':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['position']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;case'split':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['splitPosition']),_0x27743c=_0x1248ec['model']['createPositionAt'](_0xf64fca['moveTargetPosition']);break;case'move':_0x5c9e00=_0x1248ec['model']['createPositionAt'](_0xf64fca['targetPosition']),_0x27743c=_0x5c9e00['getShiftedBy'](_0xf64fca['howMany']);break;default:return;}const _0x21b7b4=_0x1248ec['model']['createRange'](_0x5c9e00,_0x27743c);_0x1248ec['model']['change'](()=>{for(const {suggestion:_0x5c1d93,meta:_0xd18fcd}of this['_findSuggestions'](_0x21b7b4)){if(_0x5c1d93['isMultiRange'])continue;if('formatInline'==_0x5c1d93['type'])continue;const _0x4684a8=this['_getAttributeKey'](_0x5c1d93);if(_0x4684a8&&this['_suggestionsConversion']['isBlockAttribute'](_0x4684a8)&&'split'!=_0xf64fca['type'])continue;const _0x3e0443=_0x5c1d93['data']&&_0x5c1d93['data']['multipleBlocks'];('formatBlock'!=_0x5c1d93['type']||'split'==_0xf64fca['type']&&!_0x3e0443)&&(_0xd18fcd['containsRangeInObject']||'insertion'==_0x5c1d93['type']&&_0xd18fcd['isOwn']||_0x5c1d93['getFirstRange']()['containsRange'](_0x21b7b4)&&this['_breakSuggestionMarker'](_0x5c1d93,_0x5c9e00,_0x27743c));}});},{'priority':'lowest'}),_0x1248ec['model']['on']('deleteContent',(_0x3adc4d,_0xf89b0e)=>{const _0x5e87d9=_0xf89b0e[0x0],_0x1c5c2c=_0xf89b0e[0x1];if(_0x1c5c2c&&_0x1c5c2c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5e87d9['isCollapsed'])return;const _0x377790=_0x1248ec['model']['schema'],{start:_0x40deb2,end:_0x46ce68}=_0x5e87d9['getFirstRange'](),_0x30d674=_0x40deb2['nodeAfter']&&_0x377790['isLimit'](_0x40deb2['nodeAfter'])?null:_0x377790['getNearestSelectionRange'](_0x40deb2,'forward'),_0x42f8cf=_0x46ce68['nodeBefore']&&_0x377790['isLimit'](_0x46ce68['nodeBefore'])?null:_0x377790['getNearestSelectionRange'](_0x46ce68,'backward'),_0x47701c=_0x1248ec['model']['createRange'](_0x30d674?_0x30d674['start']:_0x40deb2,_0x42f8cf?_0x42f8cf['end']:_0x46ce68);_0x1248ec['model']['change'](_0x3b1114=>{this['markDeletion'](_0x47701c);const _0x2d39fc=_0x1248ec['model']['schema']['getNearestSelectionRange'](_0x47701c['start']);_0x5e87d9['is']('documentSelection')?_0x3b1114['setSelection'](_0x2d39fc):_0x5e87d9['setTo'](_0x2d39fc);}),_0x3adc4d['stop']();},{'priority':_0x5ee963['normal']+0xa}),_0x1248ec['model']['on']('insertContent',(_0x5d3172,_0x626018)=>{const _0x51a18a=_0x626018[_0x626018['length']-0x1];_0x51a18a&&_0x51a18a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1248ec['model']['change'](()=>{let _0x4dad20=_0x1248ec['model']['insertContent'](_0x626018[0x0],_0x626018[0x1],_0x626018[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dad20)return;_0x5d3172['return']=_0x4dad20['clone']();const _0x3f8c3f=_0x4dad20['end']['nodeBefore'],_0x5e3c96=_0x1248ec['model']['schema'];_0x3f8c3f&&_0x5e3c96['isBlock'](_0x3f8c3f)&&!_0x5e3c96['isObject'](_0x3f8c3f)&&(_0x4dad20=_0x1248ec['model']['createRange'](_0x4dad20['start'],_0x1248ec['model']['createPositionAt'](_0x3f8c3f,'end'))),this['markInsertion'](_0x4dad20);}),_0x5d3172['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xb31725=new _t(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('acceptSuggestion',_0xb31725),this['enableCommand']('acceptSuggestion');const _0x2d49d5=new pt(_0x1248ec,this['_suggestions']);_0x1248ec['commands']['add']('discardSuggestion',_0x2d49d5),this['enableCommand']('discardSuggestion'),_0x1248ec['commands']['add']('acceptAllSuggestions',new Rt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1248ec['commands']['add']('discardAllSuggestions',new Rt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1248ec['commands']['add']('acceptSelectedSuggestions',new yt(_0x1248ec,_0xb31725,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1248ec['commands']['add']('discardSelectedSuggestions',new yt(_0x1248ec,_0x2d49d5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x168872=_0x1248ec['plugins']['get'](_0x51a4b7);this['listenTo'](_0x168872,'addComment',(_0x446e50,{threadId:_0x5278a4})=>{const _0x429b09=this['_suggestions']['get'](_0x5278a4);_0x429b09&&_0x429b09['commentThread']&&0x1===_0x429b09['commentThread']['length']&&this['_updateSuggestionData'](_0x5278a4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x168872,'removeComment',(_0x44a144,{threadId:_0x1e7bb5})=>{const _0x52acc8=this['_suggestions']['get'](_0x1e7bb5);_0x52acc8&&_0x52acc8['commentThread']&&!_0x52acc8['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7bb5,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x48265a){const _0x50cfc6='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x37eada=0x795c0,_0x33b1cb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x254ef6(_0x28e09c){const _0x358ecf=new window['Promise'](_0x585a0f=>{_0x28e09c['once']('ready',_0x585a0f);}),_0x56cc38=window['Date']['now'](),_0x30261a=_0x28e09c['config']['get']('licenseKey');async function _0x19d77e(){let _0xd29bad,_0x1971f6=null,_0x88c58=null;try{return'GPL'==_0x30261a?'NotAllowed':(_0xd29bad=_0x488042(),_0xd29bad?(_0xd29bad['usageEndpoint']&&(_0x88c58=_0xe6719(_0xd29bad['usageEndpoint'],_0xd29bad['jti'])),await _0x161737()?_0x2715b9()?_0x20e683()?'Expired':_0x10dc7b()?('evaluation'==_0xd29bad['licenseType']&&(_0x1971f6=_0x526155('EvaluationLimit')),await _0x36dc5f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x20e683(){const _0x18e616=['evaluation','trial']['includes'](_0xd29bad['licenseType'])?_0x56cc38/0x3e8:0xe10*_0x37eada;return _0xd29bad['exp']<_0x18e616;}function _0x2715b9(){const _0x5d51bc=_0xd29bad['features'];if(!_0x5d51bc)return!0x1;if(_0x5d51bc['includes']('*'))return!0x0;if(_0x5d51bc['includes']('TC'))return!0x0;if(_0x5d51bc['includes']('RTC')){if(_0x24510a())return!0x0;if(_0x1c3bf6()||_0x40f34c())return!0x0;}return!0x1;}function _0x10dc7b(){const _0x35c68d=_0xd29bad['licensedHosts'];if(!_0x35c68d||0x0==_0x35c68d['length'])return!0x0;const {hostname:_0x8e5cf}=new URL(window['location']['href']);if(_0x35c68d['includes'](_0x8e5cf))return!0x0;const _0x29d654=_0x8e5cf['split']('.');return _0x35c68d['filter'](_0x411b92=>_0x411b92['includes']('*'))['map'](_0x1e41aa=>_0x1e41aa['split']('.'))['filter'](_0x6ae6f5=>_0x6ae6f5['length']<=_0x29d654['length'])['map'](_0x333d98=>Array(_0x29d654['length']-_0x333d98['length'])['fill']('*'===_0x333d98[0x0]?'*':'')['concat'](_0x333d98))['some'](_0x50a6b3=>_0x29d654['every']((_0x25cfab,_0x17f78a)=>_0x50a6b3[_0x17f78a]===_0x25cfab||'*'===_0x50a6b3[_0x17f78a]));}function _0x36dc5f(){return _0x1971f6&&_0x88c58?new window['Promise']((_0x35cea8,_0x5421c8)=>{_0x1971f6['then'](_0x35cea8,_0x5421c8),_0x88c58['then'](_0x4c6ee6=>{'Valid'!=_0x4c6ee6&&_0x35cea8(_0x4c6ee6);},_0x5421c8);}):_0x1971f6||_0x88c58||'Valid';}}function _0xe6719(_0x4903c0,_0x1d10a5){return new window['Promise'](_0x31cd84=>{if(_0x2b0cb6())return _0x31cd84('Valid');_0x2d7083(),_0x28e09c['decorate']('_sendUsageRequest');let _0x340565=!0x1;const _0x1fd137=_0x5b5c0d();function _0x16e22c(_0x1f8606){return!!_0x1f8606&&('object'==typeof _0x1f8606||'function'==typeof _0x1f8606)&&'function'==typeof _0x1f8606['then']&&'function'==typeof _0x1f8606['catch'];}function _0x22dd34(_0x548017){_0x461a35(_0x548017)['then'](_0x4283c9=>_0x4283c9&&'ok'==_0x4283c9['status']?_0x3b7894(_0x509c84(_0x1fd137+_0x1d10a5))!=_0x4283c9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3d465e=>(_0x47072f(),_0x3d465e),()=>{const _0x290d38=_0x3140ed();return null==_0x290d38?(_0x47072f(),'Valid'):_0x56cc38-_0x290d38>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31cd84)['catch'](()=>{_0x31cd84('UsageLimit');});const _0x38d8f5=0x36ee80;function _0x47072f(){const _0x1d1261='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x2e96d3=_0x1fbeee(_0x3b7894(window['Math']['ceil'](_0x56cc38/_0x38d8f5)));window['localStorage']['setItem'](_0x1d1261,_0x2e96d3);}function _0x3140ed(){const _0x5cb7b8='llct-'+_0x3b7894(_0x509c84(_0x4903c0)),_0x78fd7=window['localStorage']['getItem'](_0x5cb7b8);return _0x78fd7?window['parseInt'](_0x1fbeee(_0x78fd7),0x10)*_0x38d8f5:null;}function _0x461a35(_0x1017d8){return new window['Promise']((_0x1fef55,_0x2c6c69)=>{_0x1017d8['then'](_0x1fef55,_0x2c6c69),window['setTimeout'](_0x2c6c69,0x1d4c0);});}}_0x28e09c['on']('_sendUsageRequest',(_0x22d9fb,_0x180e1c)=>{if(_0x180e1c[0x0]!=_0x4903c0)return _0x31cd84('UsageLimit');_0x180e1c[0x1]={..._0x180e1c[0x1],'requestId':_0x1fd137};},{'priority':'high'}),_0x28e09c['on']('_sendUsageRequest',_0x47d828=>{_0x16e22c(_0x47d828['return'])&&(_0x340565=!0x0,_0x22dd34(_0x47d828['return']));},{'priority':'low'}),_0x358ecf['then'](()=>{_0x340565||_0x31cd84('UsageLimit');});});function _0x2b0cb6(){return'auto'==_0x28e09c['editing']['view']['_overlayModeHint'];}function _0x2d7083(){_0x28e09c['editing']['view']['_overlayModeHint']='auto';}}function _0x526155(_0x34c166){const _0x2f2e77=[new window['Promise'](_0x2b8313=>setTimeout(_0x2b8313,0x93ecc)),_0x358ecf['then'](()=>new window['Promise'](_0x18eb3f=>{let _0xa8b0f2=0x0;_0x28e09c['model']['on']('applyOperation',(_0x514224,_0x214453)=>{_0x214453[0x0]['isDocumentOperation']&&_0xa8b0f2++,0x5e8==_0xa8b0f2&&(_0x18eb3f(),_0x514224['off']());});}))];return window['Promise']['race'](_0x2f2e77)['then'](()=>_0x34c166);}async function _0x440107(){await _0x358ecf,_0x28e09c['model']['change']=_0x3a091a,_0x28e09c['model']['enqueueChange']=_0x3a091a,_0x28e09c['enableReadOnlyMode']('model');}function _0x24510a(){return _0x406dfa('WebSocketGateway')&&'connected'==_0x48906a('WebSocketGateway')['state'];}function _0x1c3bf6(){return _0x406dfa('RevisionViewerIntegration');}function _0x40f34c(){return _0x406dfa('TrackChangesDataGetter');}function _0x503341(_0x13c6d3){const _0x2de05b=_0x1fd814();_0x28e09c[_0x2de05b]='trackChangesLicenseKey'+_0x13c6d3,'Valid'!=_0x13c6d3&&_0x440107();}function _0x1fd814(){const _0x254cfe=window['String'](window['performance']['now']())['replace']('.','');let _0x559414='U';for(let _0x4f8b87=0x0;_0x4f8b87<_0x254cfe['length'];_0x4f8b87+=0x2){let _0x383841=window['parseInt'](_0x254cfe['substring'](_0x4f8b87,_0x4f8b87+0x2));_0x383841>=0x3e&&(_0x383841-=0x3e),_0x559414+=_0x50cfc6[_0x383841];}return _0x559414;}function _0x488042(){const _0x50af5f=_0x30261a['split']('.');if(0x3!=_0x50af5f['length'])return null;return _0x4e20c5(_0x50af5f[0x1]);function _0x4e20c5(_0x5c9b18){const _0x648557=_0x503d88(_0x5c9b18);return _0x648557&&_0x1a4da1()?_0x648557:null;function _0x1a4da1(){const _0x129bd8=_0x648557['jti'],_0x4cf9df=window['parseInt'](_0x129bd8['substring'](_0x129bd8['length']-0x8),0x10),_0x13f54a={..._0x648557,'jti':_0x129bd8['substring'](0x0,_0x129bd8['length']-0x8)};return delete _0x13f54a['vc'],_0x509c84(_0x13f54a)==_0x4cf9df;}}}async function _0x161737(){let _0x1569a1=!0x0;try{const [_0xf6ecb6,_0xdd4ddf,_0x4d3009]=_0x30261a['split']('.');return _0x1c9889(_0xf6ecb6),await _0xa6387a(_0xf6ecb6,_0xdd4ddf,_0x4d3009),_0x1569a1;}catch{return!0x1;}function _0x1c9889(_0x3d45f7){const _0xd361f3=_0x503d88(_0x3d45f7);_0xd361f3&&'ES256'==_0xd361f3['alg']||(_0x1569a1=!0x1);}async function _0xa6387a(_0x22d3dc,_0x56e1e6,_0x373c5a){const _0x1dcfac=window['Uint8Array']['from'](_0x26dfb4(_0x373c5a),_0x4f6326=>_0x4f6326['charCodeAt'](0x0)),_0x311bd2=new window['TextEncoder']()['encode'](_0x22d3dc+'.'+_0x56e1e6),_0x44dea4=window['crypto']['subtle'];if(!_0x44dea4)return;const _0x276d8e=await _0x44dea4['importKey']('jwk',_0x33b1cb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x44dea4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x276d8e,_0x1dcfac,_0x311bd2)||(_0x1569a1=!0x1);}}function _0x503d88(_0x1a81c1){return _0x1a81c1['startsWith']('ey')?JSON['parse'](_0x26dfb4(_0x1a81c1)):null;}function _0x26dfb4(_0x323817){return window['atob'](_0x323817['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x509c84(_0x3b2dc5){let _0x1543ea=0x1505;function _0x169152(_0x2a1f58){for(let _0x5f5112=0x0;_0x5f5112<_0x2a1f58['length'];_0x5f5112++){const _0x497840=_0x2a1f58['charCodeAt'](_0x5f5112);_0x1543ea=(_0x1543ea<<0x5)+_0x1543ea+_0x497840,_0x1543ea&=_0x1543ea;}}function _0x2c11c7(_0x97ddba){Array['isArray'](_0x97ddba)?_0x97ddba['forEach'](_0x2c11c7):_0x97ddba&&'object'==typeof _0x97ddba?Object['entries'](_0x97ddba)['sort']()['forEach'](([_0x2c53a6,_0x3426f2])=>{_0x169152(_0x2c53a6),_0x2c11c7(_0x3426f2);}):_0x169152(window['String'](_0x97ddba));}return _0x2c11c7(_0x3b2dc5),_0x1543ea>>>0x0;}function _0x3b7894(_0x191608){return _0x191608['toString'](0x10)['padStart'](0x8,'0');}function _0x1fbeee(_0x18c01b){return _0x18c01b['split']('')['reverse']()['join']('');}function _0x406dfa(_0x3a5cde){return _0x28e09c['plugins']['has'](_0x3a5cde);}function _0x48906a(_0x4139b4){return _0x28e09c['plugins']['get'](_0x4139b4);}function _0x3a091a(){}_0x503341(await _0x19d77e());}_0x254ef6(_0x48265a['editor']);}(this);}set adapter(_0x336fad){if(this['_adapter'])throw new _0x5f6c00('track-changes-adapter-already-set',this);this['_adapter']=_0x336fad;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x48240f=!0x1,toJSON:_0x39456b=!0x1}={}){const _0x4eee84=[];for(const _0x476804 of this['_suggestions']['values']())_0x48240f&&!_0x476804['isInContent']||_0x4eee84['push'](_0x476804);return _0x39456b?_0x4eee84['map'](_0x3df44e=>_0x3df44e['toJSON']()):_0x4eee84;}getSuggestion(_0x342fb3){const _0x307dba=this['_suggestions']['get'](_0x342fb3);if(!_0x307dba)throw new _0x5f6c00('track-changes-suggestion-not-found',this);return _0x307dba;}hasSuggestion(_0xdc9e1f){return this['_suggestions']['has'](_0xdc9e1f);}addSuggestionData(_0x4507c6){const {authorId:_0x332d5b,id:_0x14d7db,originalSuggestionId:_0x2e2868,attributes:_0x3e209e}=_0x4507c6,[_0x565852,_0x5af431]=_0x4507c6['type']['split'](':'),_0x16af14=this['_suggestions']['get'](_0x14d7db)||this['_createSuggestion'](_0x565852,_0x5af431,_0x14d7db,_0x332d5b,_0x3e209e,_0x2e2868);if(this['_addThreadToSuggestion'](_0x16af14),this['_checkSuggestionCorrectness'](_0x16af14,_0x565852,_0x5af431||null,_0x332d5b),_0x16af14['createdAt']=_0x4507c6['createdAt'],_0x16af14['_isDataLoaded']=!0x0,_0x3e209e&&_0x3e209e['@external']){const _0x46aae1=_0x3e209e['@external'],_0xb3936f=this['_getExternalAuthor'](_0x46aae1['authorName']);_0x16af14['authoredAt']=_0x46aae1['createdAt'],_0x16af14['author']=_0xb3936f;}else _0x16af14['authoredAt']=_0x4507c6['createdAt'];switch(_0x4507c6['data']&&(_0x16af14['data']=_0x4507c6['data']),_0x4507c6['attributes']&&(_0x16af14['attributes']=_0x4507c6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16af14['_saved']=!0x0),this['_suggestionState']['get'](_0x16af14)){case'notReady':this['_suggestionState']['set'](_0x16af14,'dataReady');break;case'markerReady':_0x16af14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16af14])),this['_refreshSuggestionsChain'](new Set([_0x16af14])),this['_suggestionState']['set'](_0x16af14,'ready'),this['fire']('suggestionLoaded',_0x16af14)):this['_suggestionState']['set'](_0x16af14,'removed');}return _0x16af14;}acceptSuggestion(_0x3eb0ca){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xb9f9b9 of _0x3eb0ca['getAllAdjacentSuggestions']())_0xb9f9b9['accept']();});});}discardSuggestion(_0x2505fd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12e3b0 of _0x2505fd['getAllAdjacentSuggestions']())_0x12e3b0['discard']();});});}['enableCommand'](_0x1d47a9,_0x37f97b){const _0x49ff34=this['editor']['commands']['get'](_0x1d47a9);if(!_0x49ff34)throw new _0x5f6c00('track-changes-command-not-found',this,{'commandName':_0x1d47a9});if(this['_enabledCommands']['has'](_0x49ff34))throw new _0x5f6c00('track-changes-enable-command-twice',this,{'commandName':_0x1d47a9});this['_enabledCommands']['add'](_0x49ff34),_0x37f97b&&_0x49ff34['on']('execute',(_0x747c62,_0x26b52b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26b52b['length']>0x0&&_0x26b52b[_0x26b52b['length']-0x1]&&_0x26b52b[_0x26b52b['length']-0x1]['forceDefaultExecution']?_0x26b52b['pop']():(_0x747c62['return']=_0x37f97b((..._0x297884)=>_0x49ff34['execute'](..._0x297884,{'forceDefaultExecution':!0x0}),..._0x26b52b),_0x747c62['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x116d88){let _0x2b10e8,_0x4f4eae;const _0x4a7f84=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b10e8=_0x116d88();}catch(_0x4ca477){_0x4f4eae=_0x4ca477;}return _0x4a7f84||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4eae&&_0x5f6c00['rethrowUnexpectedError'](_0x4f4eae,this),_0x2b10e8;}markInsertion(_0x3101aa,_0x1a244a=null,_0x3e8b45={}){if(_0x3101aa['isCollapsed'])return null;const _0x52a396=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e8b45['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1964b1,meta:_0x27c01f}of this['_findSuggestions'](_0x3101aa,'insertion'))if(_0x27c01f['isOwn']){if(!_0x27c01f['isNextTo']){if(_0x27c01f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x1964b1,_0x3e8b45))continue;return _0x1964b1;}if(Ln(_0x1964b1,_0x3e8b45))return _0x1964b1;this['_breakSuggestionMarker'](_0x1964b1,_0x3101aa['start'],_0x3101aa['end']);break;}if(_0x1a244a==_0x1964b1['subType']&&Ln(_0x1964b1,_0x3e8b45)){const _0x2c9e00=_0x1964b1['getFirstRange']();return _0x2c9e00['start']['isEqual'](_0x3101aa['end'])?this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x3101aa['start'],_0x2c9e00['end'])):this['_setSuggestionRange'](_0x1964b1,this['_model']['createRange'](_0x2c9e00['start'],_0x3101aa['end'])),_0x1964b1;}}const _0x145af3=_0x5b5c0d(),_0x15594c=_0x52a396['id'],_0x44049b=_0x1a244a?'insertion:'+_0x1a244a:'insertion',_0x6e8457=this['_setSuggestionData']({'id':_0x145af3,'type':_0x44049b,'createdAt':new Date(),'authorId':_0x15594c,'attributes':_0x3e8b45});return this['_addSuggestionMarker'](_0x44049b,_0x145af3,_0x15594c,_0x3101aa),_0x6e8457;}markMultiRangeInsertion(_0x1a4357,_0x451cb1='multi',_0xc0e188={}){const _0x4efd62=this['editor']['plugins']['get']('Users')['me'],_0x289750=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x451cb1,'join');this['_trackingSessionId']&&(_0xc0e188['trackingSessionId']=this['_trackingSessionId']);for(const _0x2acb15 of this['getSuggestions']())if(_0x2acb15['author']['id']==_0x4efd62['id']&&'insertion'==_0x2acb15['type']&&_0x2acb15['subType']==_0x451cb1&&Ln(_0x2acb15,_0xc0e188)&&(_0x289750(_0x2acb15['getRanges'](),_0x1a4357)||_0x289750(_0x1a4357,_0x2acb15['getRanges']()))){for(const _0x57a5f9 of _0x1a4357)_0x2acb15['addRange'](_0x57a5f9);return _0x2acb15;}for(const {suggestion:_0x1e199c,meta:_0x1b5ff9}of this['_findSuggestions'](_0x1a4357,'insertion')){if(!_0x1b5ff9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1b5ff9['containsRangeInObject'])continue;if(!Ln(_0x1e199c,_0xc0e188))continue;let _0x4dcecf=!0x0;for(const _0x24d032 of _0x1e199c['getRanges']())for(const _0x51f78b of _0x1a4357)if(!_0x24d032['containsRange'](_0x51f78b)){_0x4dcecf=!0x1;break;}if(_0x4dcecf)return _0x1e199c;}const _0x3b6a71=_0x5b5c0d(),_0x3f6fab=_0x4efd62['id'],_0x499e17='insertion:'+_0x451cb1,_0x9aaf87=this['_setSuggestionData']({'id':_0x3b6a71,'type':_0x499e17,'createdAt':new Date(),'authorId':_0x3f6fab,'attributes':_0xc0e188});for(const _0x4ab05b of _0x1a4357)this['_addSuggestionMarker'](_0x499e17,_0x3b6a71,_0x3f6fab,_0x4ab05b,St['getMultiRangeId']());return _0x9aaf87;}markInlineFormat(_0x4cdc09,_0xcfc6f9,_0x44c127=null,_0x6d8134={}){if(_0x44c127=_0x44c127||hn(_0xcfc6f9),_0x4cdc09['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x6d8134['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28afcf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');return this['forceDefaultExecution'](()=>_0x28afcf([_0x4cdc09],_0xcfc6f9,_0x6d8134)),null;}const _0x13b3ae=this['editor']['plugins']['get']('Users')['me'],_0xd8587=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x500151,meta:_0x592de1}of this['_findSuggestions'](_0x4cdc09,'insertion'))_0x592de1['isOwn']&&!_0x592de1['isInsideObject']&&_0xd8587['push'](..._0x500151['getRanges']());}const _0x157d97=function(_0x26aa9a,_0x13af11){const _0x178c80=[];for(const _0x2340b9 of _0x13af11){const _0x4cb73e=_0x26aa9a['getIntersection'](_0x2340b9);_0x4cb73e&&_0x178c80['push'](_0x4cb73e);}return _0x178c80;}(_0x4cdc09,_0xd8587),_0xed374f=function(_0x2afece,_0x49ccc9){const _0x2ba02f=[_0x2afece];for(const _0x224be9 of _0x49ccc9){let _0x1f75c6=0x0;for(;_0x1f75c6<_0x2ba02f['length'];){const _0xa0c4b9=_0x2ba02f[_0x1f75c6]['getDifference'](_0x224be9);_0x2ba02f['splice'](_0x1f75c6,0x1,..._0xa0c4b9),_0x1f75c6+=_0xa0c4b9['length'];}}return _0x2ba02f;}(_0x4cdc09,_0xd8587);_0x157d97['length']&&this['_model']['change'](()=>{for(const _0x50581f of _0x157d97){const _0x59acc4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44c127,'accept');this['forceDefaultExecution'](()=>_0x59acc4([_0x50581f],_0xcfc6f9,_0x6d8134));}});for(const _0x145a10 of _0xed374f){let _0x471144=null,_0x438c31=_0x145a10['start'],_0x248bc3=_0x145a10['end'];for(const {suggestion:_0x5647dc,meta:_0x3136e9}of this['_findSuggestions'](_0x145a10,'formatInline')){if(!_0x3136e9['isOwn'])continue;if(_0x5647dc['subType']!=_0x44c127)continue;if(!Ln(_0x5647dc,_0x6d8134))continue;const _0x5bf3ee=_0x5647dc['getFirstRange']();if(_0x5bf3ee['containsRange'](_0x145a10,!0x0))return null;_0x438c31=_0x438c31['isBefore'](_0x5bf3ee['start'])?_0x438c31:_0x5bf3ee['start'],_0x248bc3=_0x248bc3['isAfter'](_0x5bf3ee['end'])?_0x248bc3:_0x5bf3ee['end'],_0x471144?_0x5bf3ee['start']['isBefore'](_0x471144['getFirstRange']()['start'])?(_0x471144['removeMarkers'](),_0x471144=_0x5647dc):_0x5647dc['removeMarkers']():_0x471144=_0x5647dc;}const _0x24afec=this['_model']['createRange'](_0x438c31,_0x248bc3);if(_0x471144)this['_setSuggestionRange'](_0x471144,_0x24afec);else{const _0x45f411=_0x5b5c0d(),_0x1c30da=_0x13b3ae['id'];this['_setSuggestionData']({'id':_0x45f411,'type':'formatInline:'+_0x44c127,'data':_0xcfc6f9,'createdAt':new Date(),'authorId':_0x1c30da,'attributes':_0x6d8134}),this['_addSuggestionMarker']('formatInline:'+_0x44c127,_0x45f411,_0x1c30da,_0x24afec);}}return null;}markBlockFormat(_0x239d97,_0x1196ec,_0x5e81d3=[],_0x3ae29c=null,_0x3cdf07={}){_0x1196ec['formatGroupId']||(_0x1196ec['formatGroupId']=_0x1196ec['commandName']),_0x1196ec['multipleBlocks']=_0x239d97['is']('range'),_0x3ae29c=_0x3ae29c||hn(_0x1196ec);const _0x4a8ea9=_0x5e81d3['map'](_0x59d557=>Tn(_0x59d557,this['_model'])),_0x3354e8=_0x239d97['is']('range')?_0x239d97:Tn(_0x239d97,this['_model']);if(this['_trackingSessionId']&&(_0x3cdf07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x406c58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x406c58([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}_0x4a8ea9['push'](_0x3354e8);let _0x4007bd=!0x0;for(const _0x1d50ec of _0x4a8ea9)if(!this['_rangeIsInLocalUserInsertion'](_0x1d50ec)){_0x4007bd=!0x1;break;}if(_0x4007bd&&'always'!==this['_trackFormatChanges']){const _0x3d772b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ae29c,'accept');return this['forceDefaultExecution'](()=>_0x3d772b([_0x3354e8],_0x1196ec,_0x3cdf07)),null;}let _0x27bebe=null,_0x14db35=_0x3354e8['start'],_0x11b3da=_0x3354e8['end'];for(const {suggestion:_0x447fe3,meta:_0x59bf24}of this['_findSuggestions'](_0x3354e8,'formatBlock')){if(!_0x59bf24['isOwn'])continue;if(_0x59bf24['isNextTo']||_0x59bf24['containsRangeInObject']||_0x59bf24['isInsideObject'])continue;if(_0x447fe3['data']['formatGroupId']!=_0x1196ec['formatGroupId'])continue;if(!Ln(_0x447fe3,_0x3cdf07))continue;const _0x575b79=_0x447fe3['getFirstRange']();if(_0x447fe3['subType']==_0x3ae29c){if(_0x575b79['containsRange'](_0x3354e8,!0x0))return null;_0x14db35=_0x14db35['isBefore'](_0x575b79['start'])?_0x14db35:_0x575b79['start'],_0x11b3da=_0x11b3da['isAfter'](_0x575b79['end'])?_0x11b3da:_0x575b79['end'],_0x27bebe?_0x575b79['start']['isBefore'](_0x27bebe['getFirstRange']()['start'])?(_0x27bebe['removeMarkers'](),_0x27bebe=_0x447fe3):_0x447fe3['removeMarkers']():_0x27bebe=_0x447fe3;}else{const _0x260d54=_0x3354e8['getIntersection'](_0x575b79);this['_cutOutSuggestionMarker'](_0x447fe3,_0x260d54);}}const _0x4042c6=this['editor']['plugins']['get']('Users')['me'],_0x168a54=_0x5b5c0d(),_0x332db8=_0x4042c6['id'];if(_0x27bebe)return this['_setSuggestionRange'](_0x27bebe,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x27bebe;{const _0x2623cf=this['_setSuggestionData']({'id':_0x168a54,'type':'formatBlock:'+_0x3ae29c,'data':_0x1196ec,'createdAt':new Date(),'authorId':_0x332db8,'attributes':_0x3cdf07});return this['_addSuggestionMarker']('formatBlock:'+_0x3ae29c,_0x168a54,_0x332db8,this['_model']['createRange'](_0x14db35,_0x11b3da)),_0x2623cf;}}markMultiRangeBlockFormat(_0x2ea537,_0xc97950,_0x32a522=[],_0xacb8af=null,_0x4b71c1={}){_0xc97950['formatGroupId']||(_0xc97950['formatGroupId']=_0xc97950['commandName']);const _0x5beeb8=_0x2ea537[0x0];_0xc97950['multipleBlocks']=_0x5beeb8['is']('range'),_0xacb8af=_0xacb8af||hn(_0xc97950);const _0x25074b=_0x32a522['map'](_0x34b01a=>Tn(_0x34b01a,this['_model'])),_0x32e802=_0x5beeb8['is']('range')?_0x2ea537:_0x2ea537['map'](_0x50643a=>Tn(_0x50643a,this['_model']));if(this['_trackingSessionId']&&(_0x4b71c1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3959b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3959b5(_0x32e802,_0xc97950,_0x4b71c1)),null;}_0x25074b['push'](..._0x32e802);let _0x3c1770=!0x0;for(const _0x4f7a34 of _0x25074b)if(!this['_rangeIsInLocalUserInsertion'](_0x4f7a34)){_0x3c1770=!0x1;break;}if(_0x3c1770&&'always'!==this['_trackFormatChanges']){const _0x3def19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'accept');return this['forceDefaultExecution'](()=>_0x3def19(_0x32e802,_0xc97950,_0x4b71c1)),null;}const _0x4491a1=this['editor']['plugins']['get']('Users')['me'];for(const _0x23b519 of this['getSuggestions']()){const _0x4afba8=_0x23b519['data'];if(_0x23b519['author']['id']!=_0x4491a1['id'])continue;if('formatBlock'!=_0x23b519['type']||_0x4afba8['formatGroupId']!=_0xc97950['formatGroupId'])continue;if(!Ln(_0x23b519,_0x4b71c1))continue;const _0x437a6d=_0x23b519['subType']==_0xacb8af;for(let _0x1f9396=0x0;_0x1f9396<_0x32e802['length'];_0x1f9396++){const _0x13b65b=_0x32e802[_0x1f9396];for(const _0x5633e8 of _0x23b519['getMarkers']()){const _0x3cef89=_0x5633e8['getRange']();if(_0x13b65b['isEqual'](_0x3cef89)){_0x437a6d?(_0x32e802['splice'](_0x1f9396,0x1),_0x1f9396--):_0x23b519['removeMarker'](_0x5633e8['name']);break;}}}}if(0x0==_0x32e802['length'])return null;const _0x26cb28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xacb8af,'join');for(const _0x3d432f of this['getSuggestions']()){const _0x1524b9=_0x3d432f['data'];if(_0x3d432f['author']['id']==_0x4491a1['id']&&('formatBlock'==_0x3d432f['type']&&_0x1524b9['formatGroupId']==_0xc97950['formatGroupId']&&_0x3d432f['subType']==_0xacb8af&&Ln(_0x3d432f,_0x4b71c1)&&(_0x26cb28(_0x3d432f['getRanges'](),_0x32e802)||_0x26cb28(_0x32e802,_0x3d432f['getRanges']())))){for(const _0x517df6 of _0x32e802)_0x3d432f['addRange'](_0x517df6);return _0x3d432f;}}const _0x564b6b=_0x5b5c0d(),_0x4a606e=_0x4491a1['id'],_0x11965d='formatBlock:'+_0xacb8af,_0x3ccbe5=this['_setSuggestionData']({'id':_0x564b6b,'type':_0x11965d,'data':_0xc97950,'createdAt':new Date(),'authorId':_0x4a606e,'attributes':_0x4b71c1});for(const _0x21ac46 of _0x32e802)this['_addSuggestionMarker'](_0x11965d,_0x564b6b,_0x4a606e,_0x21ac46,St['getMultiRangeId']());return _0x3ccbe5;}markDeletion(_0x248ee1,_0x22ca68=null,_0xe4b058={}){if(_0x248ee1['isCollapsed'])return null;const _0x285cfa=this['editor']['plugins']['get']('Users')['me'],_0x35cd42=new rt(_0x248ee1['start'],_0x248ee1['end']);this['_trackingSessionId']&&(_0xe4b058['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17c07b,meta:_0x1a2e58}of this['_findSuggestions'](_0x35cd42,'insertion'))if(_0x1a2e58['isOwn']&&!_0x1a2e58['isNextTo']){if(_0x17c07b['isMultiRange']){const _0x56016e=_0x17c07b['getRanges']()['filter'](_0x1dec6e=>'$graveyard'!=_0x1dec6e['root']['rootName']);if(_0x56016e['every'](_0x9a7277=>_0x35cd42['containsRange'](_0x9a7277,!0x0))&&_0x17c07b['discard'](),_0x56016e['some'](_0x4318d8=>_0x4318d8['containsRange'](_0x35cd42,!0x0))){const _0x46e056=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ca68,'accept');return this['forceDefaultExecution'](()=>_0x46e056([_0x35cd42],null,_0xe4b058)),null;}}else{const _0x38633b=_0x35cd42['getIntersection'](_0x17c07b['getFirstRange']());null!==_0x38633b&&_0x17c07b['_onDiscard']([_0x38633b],null,_0xe4b058);}}if(_0x35cd42['detach'](),_0x35cd42['isCollapsed']||'$graveyard'==_0x35cd42['root']['rootName'])return null;let _0x189026=null,_0x43ad9b=_0x35cd42['start'],_0x5d936a=_0x35cd42['end'];const _0x162f61=this['_findSuggestions'](_0x35cd42,'deletion');for(const {suggestion:_0x3657f3,meta:_0x30f38a}of _0x162f61){const _0x5cd54c=this['_model']['createRange'](_0x43ad9b,_0x5d936a);if(_0x30f38a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30f38a['containsRangeInObject']&&!_0x30f38a['isInsideObject'])){if(_0x3657f3['isMultiRange']){if(!Ln(_0x3657f3,_0xe4b058))continue;let _0x3f1a1d=!0x0;for(const _0x1a1ba0 of _0x3657f3['getRanges']()){if(_0x1a1ba0['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;_0x5cd54c['containsRange'](_0x1a1ba0)||(_0x3f1a1d=!0x1);}_0x3f1a1d&&_0x3657f3['discard']();}else{const _0x122816=_0x3657f3['getFirstRange']();if(_0x122816['containsRange'](_0x5cd54c,!0x0))return _0x3657f3;if(!Ln(_0x3657f3,_0xe4b058)){_0x5cd54c['containsRange'](_0x122816)?_0x3657f3['removeMarkers']():_0x122816['containsPosition'](_0x43ad9b)?_0x43ad9b=_0x122816['end']:_0x122816['containsPosition'](_0x5d936a)&&(_0x5d936a=_0x122816['start']);continue;}_0x43ad9b=_0x43ad9b['isBefore'](_0x122816['start'])?_0x43ad9b:_0x122816['start'],_0x5d936a=_0x5d936a['isAfter'](_0x122816['end'])?_0x5d936a:_0x122816['end'],_0xe4b058=Object['assign']({},_0x3657f3['attributes']),_0x189026?_0x122816['start']['isBefore'](_0x189026['getFirstRange']()['start'])?(_0x189026['removeMarkers'](),_0x189026=_0x3657f3):_0x3657f3['removeMarkers']():_0x189026=_0x3657f3;}}}if(_0x189026)return this['_setSuggestionRange'](_0x189026,this['_model']['createRange'](_0x43ad9b,_0x5d936a)),_0x189026;{const _0x14e7ea=_0x5b5c0d(),_0x16dc87=this['_model']['createRange'](_0x43ad9b,_0x5d936a),_0xc5bcb5=_0x285cfa['id'],_0x503cd4=_0x22ca68?'deletion:'+_0x22ca68:'deletion',_0x5b8957=this['_setSuggestionData']({'id':_0x14e7ea,'type':_0x503cd4,'createdAt':new Date(),'authorId':_0xc5bcb5,'attributes':_0xe4b058});return this['_addSuggestionMarker'](_0x503cd4,_0x14e7ea,_0xc5bcb5,_0x16dc87),_0x5b8957;}}markMultiRangeDeletion(_0x26be15,_0x3575b0='multi',_0x336eb1={}){const _0x5e94cb=this['editor']['plugins']['get']('Users')['me'],_0x5cc0e1=_0x26be15['map'](_0xc9d35=>new rt(_0xc9d35['start'],_0xc9d35['end'])),_0x2c7f99=new Set();this['_trackingSessionId']&&(_0x336eb1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57a527,meta:_0x2655c7}of this['_findSuggestions'](_0x5cc0e1,'insertion'))_0x2655c7['isOwn']&&!_0x2655c7['isNextTo']&&_0x2c7f99['add'](_0x57a527);for(const _0x16b580 of _0x2c7f99)if(_0x16b580['isMultiRange']){const _0x2465e7=_0x16b580['getRanges']();if(_0x16b580['attributes']&&_0x16b580['attributes']['skipNestingCheck']||_0x2465e7['every'](_0xc49af4=>_0x5cc0e1['some'](_0x1f6111=>_0x1f6111['containsRange'](_0xc49af4,!0x0)))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x371f3f=>_0x2465e7['some'](_0x524bda=>_0x524bda['containsRange'](_0x371f3f,!0x0)))){const _0x4d0b39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x4d0b39(_0x26be15,null,_0x336eb1)),null;}}else{const _0x15abd9=_0x16b580['getFirstRange']();if(_0x5cc0e1['some'](_0x4eca32=>_0x4eca32['containsRange'](_0x15abd9,!0x0))&&_0x16b580['discard'](),_0x5cc0e1['every'](_0x4d2bd6=>_0x15abd9['containsRange'](_0x4d2bd6,!0x0))){const _0x29858c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'accept');return this['forceDefaultExecution'](()=>_0x29858c(_0x5cc0e1,null,_0x336eb1)),null;}}const _0x3faf8a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3575b0,'join');let _0xa18812=null;for(const _0x11cd21 of this['getSuggestions']())if(_0x11cd21['author']['id']==_0x5e94cb['id']&&_0x11cd21['isInContent']&&'deletion'==_0x11cd21['type']&&_0x11cd21['subType']==_0x3575b0&&Ln(_0x11cd21,_0x336eb1)&&(_0x3faf8a(_0x11cd21['getRanges'](),_0x5cc0e1)||_0x3faf8a(_0x5cc0e1,_0x11cd21['getRanges']()))){if(_0xa18812){if(_0x11cd21['commentThread']&&_0x11cd21['commentThread']['length'])continue;for(const _0x37ac27 of _0x11cd21['getRanges']())_0xa18812['isIntersectingWithRange'](_0x37ac27)||_0xa18812['addRange'](_0x37ac27);_0x11cd21['removeMarkers']();}else{_0xa18812=_0x11cd21;for(const _0x3c654c of _0x5cc0e1)_0x11cd21['isIntersectingWithRange'](_0x3c654c)||_0x11cd21['addRange'](_0x3c654c);}}if(_0xa18812)return _0xa18812;_0x2c7f99['clear']();for(const {suggestion:_0x30a128,meta:_0x15afb3}of this['_findSuggestions'](_0x5cc0e1,'deletion'))_0x15afb3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15afb3['containsRangeInObject']&&!_0x15afb3['isInsideObject'])&&Ln(_0x30a128,_0x336eb1)&&_0x2c7f99['add'](_0x30a128);for(const _0x39be91 of _0x2c7f99){const _0x9e6037=_0x39be91['getRanges']();if((!_0x336eb1||!_0x336eb1['skipNestingCheck'])&&_0x5cc0e1['every'](_0x3a3176=>_0x9e6037['some'](_0x519981=>_0x519981['containsRange'](_0x3a3176,!0x0))))return _0x39be91;_0x39be91['attributes']&&_0x39be91['attributes']['skipNestingCheck']||_0x9e6037['every'](_0x1485c7=>_0x5cc0e1['some'](_0x568c26=>_0x568c26['containsRange'](_0x1485c7,!0x0)))&&_0x39be91['discard']();}const _0x322112=_0x5b5c0d(),_0x56dd58=_0x5e94cb['id'],_0x4814be='deletion:'+_0x3575b0,_0x25921a=this['_setSuggestionData']({'id':_0x322112,'type':_0x4814be,'createdAt':new Date(),'authorId':_0x56dd58,'attributes':_0x336eb1});for(const _0x33b703 of _0x5cc0e1)_0x33b703['detach'](),_0x33b703['isCollapsed']||'$graveyard'==_0x33b703['root']['rootName']||this['_addSuggestionMarker'](_0x4814be,_0x322112,_0x56dd58,_0x33b703,St['getMultiRangeId']());return _0x25921a;}markAttributeChange(_0x3758a6,_0x295187,_0x331eda,_0x1b8ed2,_0x4e7167){if(_0x3758a6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b2683=this['editor']['plugins']['get']('Users')['me']['id'],_0x25b274=Array['from'](this['_suggestions']['values']())['filter'](_0x483c26=>'attribute'==_0x483c26['type']&&_0x483c26['data']['key']==_0x295187&&_0x483c26['isIntersectingWithRange'](_0x3758a6));if(this['_trackingSessionId']&&(_0x4e7167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x246db1=this['_findSuggestions'](_0x3758a6,'insertion')['filter'](({meta:_0x661eef})=>_0x661eef['isOwn']&&!_0x661eef['isInsideObject']&&!_0x661eef['isNextTo'])['map'](({suggestion:_0x4e956b})=>_0x4e956b);_0x25b274['unshift'](..._0x246db1);}const _0x18bc80=new Map([[_0x3758a6,_0x331eda]]);for(const _0x5493ef of _0x25b274){const _0x5ed0b2='attribute'==_0x5493ef['type']?_0x5493ef['data']['oldValue']:void 0x0,_0x36ffd1=_0x5493ef['getFirstRange'](),_0x2e5494=Array['from'](_0x18bc80['keys']())['find'](_0x2982bd=>_0x2982bd['isIntersecting'](_0x36ffd1));if(!_0x2e5494)continue;const _0x21b8bf=_0x2e5494['getDifference'](_0x36ffd1);this['_suggestionsConversion']['isBlockAttribute'](_0x295187)&&'insertion'==_0x5493ef['type']&&0x0!=_0x21b8bf['length']||(_0x18bc80['delete'](_0x2e5494),_0x21b8bf['forEach'](_0x245f9b=>{_0x18bc80['set'](_0x245f9b,_0x331eda);}),'insertion'!=_0x5493ef['type']&&_0x5ed0b2!=_0x1b8ed2&&_0x18bc80['set'](_0x2e5494['getIntersection'](_0x36ffd1),_0x5ed0b2));}const _0x435755=[];for(const [_0xdb2619,_0x497d65]of _0x18bc80){const _0x37095a=_0x5b5c0d(),_0x1c91b5={'key':_0x295187,'oldValue':_0x497d65,'newValue':_0x1b8ed2};_0x295187['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':_0x295187});const _0x2d698c=('attribute:'+_0x295187+'|'+hn({'newValue':_0x1b8ed2}))['substring'](0x0,0x3c),_0x57e79e=this['_setSuggestionData']({'id':_0x37095a,'type':_0x2d698c,'data':_0x1c91b5,'createdAt':new Date(),'authorId':_0x2b2683,'attributes':_0x4e7167});_0x435755['push'](_0x57e79e),this['_addSuggestionMarker'](_0x2d698c,_0x37095a,_0x2b2683,_0xdb2619);}return _0x435755;}enableDefaultAttributesIntegration(_0x2e4857){this['enableCommand'](_0x2e4857,(_0xf3ef61,..._0x319a9f)=>{this['recordAttributeChanges'](()=>{_0xf3ef61(..._0x319a9f);});});}startTrackingSession(_0x15ddc3){return this['_trackingSessionId']=void 0x0!==_0x15ddc3?_0x15ddc3:_0x5b5c0d(),this['_trackingSessionId'];}_getAttributeKey(_0x4bf92f){return'attribute'==_0x4bf92f['type']?An(_0x4bf92f['subType']):null;}_applyOperationsAsSuggestions(_0x480bc1){if(0x0==_0x480bc1['length'])return;const _0x192d20=this['editor'],_0x3acaef=[],_0x53b25e=_0xf9141e=>{const _0x497790=_0xf9141e['_aiSource'];return _0x497790?{'@ai':{'type':_0x497790}}:{};},_0x57b0a1=(_0x1938ef,_0x2b7c70,_0x4521a3,_0x1ac4ff)=>{const _0x105bcd=new Set(_0x1ac4ff['flatMap'](_0x42b8c7=>_0x42b8c7['getMarkerNames']()));let _0x2f03ce=!0x1;for(let _0x4ffd32=_0x2b7c70;_0x4ffd32<_0x1938ef['operations']['length'];_0x4ffd32++){const _0x415579=_0x1938ef['operations'][_0x4ffd32];if('marker'==_0x415579['type']){if(!_0x105bcd['has'](_0x415579['name']))continue;_0x2f03ce=!0x0;}_0x415579['_aiSource']=_0x4521a3;}return _0x2f03ce;};_0x192d20['model']['change'](_0x215ec4=>{for(let _0x20417e=0x0;_0x20417e<_0x480bc1['length'];_0x20417e++){const _0x5d98da=_0x480bc1[_0x20417e],_0x308c56=_0x5d98da['_aiSource'];if(_0x5d98da['baseVersion']=_0x192d20['model']['document']['version'],_0x5d98da['isDocumentOperation']=!0x0,_0x425365(_0x5d98da))continue;if(rn(_0x5d98da)){const _0x27beb7=_0x533f9b(_0x5d98da['newRange'],_0x192d20['model']);_0x3acaef['unshift']({'range':rt['fromRange'](_0x27beb7),'operation':_0x5d98da});continue;}const _0x26dd28=_0x215ec4['batch']['operations']['length']+0x1;let _0x1aac87=[];switch(_0x5d98da['type']){case'rename':{const _0x5ed093=_0x5d98da['oldName'],_0x445748=_0x5d98da['newName'];if(_0x5ed093==_0x445748)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x2c0f00='$elementName',_0x1ca33a=_0x5d98da['position'],_0x5bb430=_0x192d20['model']['createRange'](_0x1ca33a,_0x192d20['model']['createPositionAt'](_0x1ca33a['nodeAfter'],'end'));_0x1aac87=this['markAttributeChange'](_0x5bb430,_0x2c0f00,_0x5ed093,_0x445748,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49f312=_0x5d98da['oldValue'],_0xbdc533=_0x5d98da['newValue'];if(_0x49f312==_0xbdc533)break;_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x7104ef=_0x5d98da['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x7104ef))break;const _0x53132d=_0x533f9b(_0x5d98da['range'],_0x192d20['model']);_0x1aac87=this['markAttributeChange'](_0x53132d,_0x7104ef,_0x49f312,_0xbdc533,{..._0x53b25e(_0x5d98da),'groupId':_0x5b5c0d()});break;}case'insert':{if(_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da),_0x480bc1[_0x20417e+0x1]&&'move'==_0x480bc1[_0x20417e+0x1]['type'])break;const _0x10dfd7=_0x5d98da['position'],_0x55a868=_0x5d98da['howMany'],_0x4d0168=_0x533f9b(_0x192d20['model']['createRange'](_0x10dfd7,_0x10dfd7['getShiftedBy'](_0x55a868)),_0x192d20['model']);_0x1aac87=on(this['markInsertion'](_0x4d0168,null,{..._0x53b25e(_0x5d98da)}));break;}case'split':{_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);const _0x8ba900=_0x5d98da['splitPosition'],_0x1fefea=_0x5d98da['moveTargetPosition'],_0x35cc72=_0x192d20['model']['createRange'](_0x8ba900,_0x1fefea);_0x1aac87=on(this['markInsertion'](_0x35cc72,null,{..._0x53b25e(_0x5d98da)}));break;}case'move':case'remove':_0x215ec4['batch']['addOperation'](_0x5d98da),_0x192d20['model']['applyOperation'](_0x5d98da);}_0x308c56&&_0x57b0a1(_0x215ec4['batch'],_0x26dd28,_0x308c56,_0x1aac87)&&delete _0x5d98da['_aiSource'];}for(const {range:_0x5b2e09,operation:_0x2e241e}of _0x3acaef){const _0x3dcf93=_0x2e241e['_aiSource'],_0x234ca6=_0x53b25e(_0x2e241e),_0x62e3b9=_0x215ec4['batch']['operations']['length'];_0x5b2e09['detach']();const _0x48a099=this['markDeletion'](_0x5b2e09,null,{..._0x234ca6});_0x3dcf93&&_0x57b0a1(_0x215ec4['batch'],_0x62e3b9,_0x3dcf93,on(_0x48a099));}});}_setSuggestionRange(_0x29422e,_0x128522){const _0xf1c79d=_0x29422e['getFirstMarker']();this['_model']['change'](_0x526ffd=>{_0x526ffd['updateMarker'](_0xf1c79d,{'range':_0x128522});});}_addThreadToSuggestion(_0x3d4112){const _0x4cfb37=_0x3d4112['id'],_0x5726b3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4cfb37)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5726b3,'threadId':_0x4cfb37,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x382b91=this['_commentsRepository']['getCommentThread'](_0x4cfb37);_0x382b91['unbind']('isRemovable'),_0x382b91['isRemovable']=!0x1,_0x3d4112['commentThread']=_0x382b91;}_checkSuggestionCorrectness(_0x48ffd4,_0x529de6,_0x5a40e1,_0x508780){if(_0x48ffd4['type']!=_0x529de6||_0x48ffd4['subType']!=_0x5a40e1||_0x48ffd4['creator']['id']!=_0x508780)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5f6c00('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2f3778,_0x42fc7f){const _0x319975=_0x2f3778['getFirstRange']();if(_0x42fc7f['isEqual'](_0x319975))_0x2f3778['removeMarkers']();else{if(_0x319975['containsRange'](_0x42fc7f)){const _0x3e4255=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x3e4255));const _0xd9609c=_0x5b5c0d(),_0x1377f8=_0x2f3778['creator']['id'],_0xae2471=_0x2f3778['type']+':'+_0x2f3778['subType'];this['_setSuggestionData']({'id':_0xd9609c,'type':_0xae2471,'createdAt':new Date(),'authorId':_0x1377f8,'data':_0x2f3778['data'],'attributes':_0x2f3778['attributes']});const _0x15e5fc=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after'),_0x2f1e20=this['_model']['createRange'](_0x15e5fc,_0x319975['end']);this['_addSuggestionMarker'](_0xae2471,_0xd9609c,_0x1377f8,_0x2f1e20);}else{if(_0x319975['containsPosition'](_0x42fc7f['start'])){const _0x5ba7b0=this['_model']['createPositionAt'](_0x42fc7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x319975['start'],_0x5ba7b0));}else{const _0x517aee=this['_model']['createPositionAt'](_0x42fc7f['end']['parent'],'after');this['_setSuggestionRange'](_0x2f3778,this['_model']['createRange'](_0x517aee,_0x319975['end']));}}}}_rangeIsInLocalUserInsertion(_0x1da643){for(const {suggestion:_0x3d288a,meta:_0x444af1}of this['_findSuggestions'](_0x1da643,'insertion')){if(!_0x444af1['isOwn'])continue;const _0x1dcd89=_0x3d288a['getRanges']();for(const _0x544f09 of _0x1dcd89)if(!_0x1da643['getDifference'](_0x544f09)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x1a76d3){return this['editor']['plugins']['get']('Users')['getUser'](_0x1a76d3);}_getExternalAuthor(_0x45d18c){const _0x178d02=this['editor']['plugins']['get']('Users'),_0x243565=_0x5a9283('external:'+_0x45d18c),_0x5886cb=_0x178d02['getUser'](_0x243565);return _0x5886cb||_0x178d02['addUser']({'id':_0x243565,'name':_0x45d18c});}_createSuggestion(_0x599a11,_0xc9554c,_0x2f1db3,_0x26ccd3,_0x5a9d67,_0x1d1dcb){const _0x19ea0b=this['_getAuthorFromId'](_0x26ccd3);if(!_0x19ea0b)throw new _0x5f6c00('track-changes-user-not-found',this,{'authorId':_0x26ccd3,'suggestionId':_0x2f1db3});const _0x296e05=this['_suggestionFactory']['buildSuggestion'](_0x599a11,_0xc9554c,_0x2f1db3,_0x19ea0b,_0x5a9d67,_0x27823e=>{this['_updateSuggestionData'](_0x2f1db3,{'attributes':_0x27823e});const _0x30b144=this['getSuggestion'](_0x2f1db3);this['_joinWithAdjacentSuggestions'](new Set([_0x30b144])),this['_refreshSuggestionsChain'](new Set([_0x30b144]));},_0x1d1dcb);return this['listenTo'](_0x296e05,'accept',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x296e05,'discard',()=>{this['_updateSuggestionData'](_0x2f1db3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f1db3,_0x296e05),this['_suggestionState']['set'](_0x296e05,'notReady'),_0x296e05;}_breakSuggestionMarker(_0x490671,_0x111074,_0x33630a){const _0x5b52cd=_0x490671['getFirstRange'](),_0x591473=_0x5b52cd['start'],_0x5f3381=_0x5b52cd['end'];this['_setSuggestionRange'](_0x490671,this['_model']['createRange'](_0x591473,_0x111074));const _0x4b7fab=_0x5b5c0d(),_0x123114=_0x490671['creator']['id'],_0x4c5776=_0x490671['type']+(_0x490671['subType']?':'+_0x490671['subType']:'');this['_setSuggestionData']({'id':_0x4b7fab,'type':_0x4c5776,'createdAt':new Date(),'authorId':_0x123114,'originalSuggestionId':_0x490671['_originalSuggestionId']||_0x490671['id'],'attributes':_0x490671['attributes'],'data':_0x490671['data']});const _0xed690e=this['_getAttributeKey'](_0x490671);('formatBlock'==_0x490671['type']||_0xed690e&&this['_suggestionsConversion']['isBlockAttribute'](_0xed690e))&&(_0x33630a=this['_model']['createPositionBefore'](_0x33630a['parent'])),this['_addSuggestionMarker'](_0x4c5776,_0x4b7fab,_0x123114,this['_model']['createRange'](_0x33630a,_0x5f3381));}_findSuggestions(_0x3f126e,_0x7b219c=null){const _0x2a1636=[],_0x3cfac6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3f126e)||(_0x3f126e=[_0x3f126e]);for(const _0x23489d of this['getSuggestions']()){if(!_0x23489d['isInContent'])continue;if(_0x7b219c&&_0x23489d['type']!=_0x7b219c)continue;let _0x52113f=!0x1;for(const _0x242098 of _0x23489d['getRanges']()){for(const _0x1167cb of _0x3f126e){const _0x31649e=_0x1167cb['start']['isEqual'](_0x242098['end'])||_0x1167cb['end']['isEqual'](_0x242098['start']);if(_0x31649e||_0x1167cb['getIntersection'](_0x242098)){const _0x3e2f83=_0x1167cb['containsRange'](_0x242098)&&ln(this['_model']['schema'],_0x242098['start'],_0x1167cb),_0x427cb4=_0x242098['containsRange'](_0x1167cb)&&ln(this['_model']['schema'],_0x1167cb['start'],_0x242098);_0x2a1636['push']({'suggestion':_0x23489d,'meta':{'isOwn':_0x3cfac6==_0x23489d['author'],'isNextTo':_0x31649e,'isInsideObject':_0x3e2f83,'containsRangeInObject':_0x427cb4}}),_0x52113f=!0x0;break;}}if(_0x52113f)break;}}return _0x2a1636;}_addSuggestionMarker(_0x4dc207,_0x248acd,_0x44ff30,_0x287f1d,_0x10f2b0){this['_model']['change'](_0x36fe98=>{let _0x4001e7='suggestion:'+_0x4dc207+':'+_0x248acd+':'+_0x44ff30;_0x10f2b0&&(_0x4001e7=_0x4001e7+':'+_0x10f2b0),_0x36fe98['addMarker'](_0x4001e7,{'range':_0x287f1d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x17c581){const _0x1bed77=_0x17c581['previous'],_0x1613c5=_0x17c581['next'];_0x17c581['previous']=null,_0x17c581['next']=null,null!=_0x1bed77&&_0x1bed77['next']==_0x17c581&&(_0x1bed77['next']=_0x1613c5),null!=_0x1613c5&&_0x1613c5['previous']==_0x17c581&&(_0x1613c5['previous']=_0x1bed77),'ready'==this['_suggestionState']['get'](_0x17c581)&&(this['_suggestionState']['set'](_0x17c581,'removed'),this['fire']('suggestionUnloaded',_0x17c581,_0x1bed77,_0x1613c5));}_setSuggestionData(_0x1c45e0){const _0x322cbc=_0x1c45e0['id'],_0x8d8f8e=this['addSuggestionData'](_0x1c45e0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12787=this['editor']['plugins']['get']('PendingActions'),_0x271106=_0x8d8f8e['hasComments'],_0x518b67=_0x8d8f8e['subType']?_0x8d8f8e['type']+':'+_0x8d8f8e['subType']:_0x8d8f8e['type'],_0x3685e0=this['editor']['locale'],_0x2d0034=_0x12787['add'](Mt(_0x3685e0,'PENDING_ACTION_SUGGESTION')),_0x5a78fb={'id':_0x322cbc,'type':_0x518b67,'hasComments':_0x271106,'data':_0x1c45e0['data']||null,'originalSuggestionId':_0x1c45e0['originalSuggestionId']||null,'attributes':_0x8d8f8e['attributes']};this['_adapter']['addSuggestion'](_0x5a78fb)['then'](_0xe55dd0=>{_0x8d8f8e['_saved']=!0x0,_0x12787['remove'](_0x2d0034),_0xe55dd0&&_0xe55dd0['createdAt']&&(this['_suggestions']['get'](_0x322cbc)['createdAt']=_0xe55dd0['createdAt']);})['catch'](_0x45fee9=>{throw _0x26182a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x8d8f8e['discard']();}),_0x8d8f8e['stopListening'](),this['_suggestions']['delete'](_0x8d8f8e['id']),this['_suggestionState']['delete'](_0x8d8f8e),_0x45fee9;});}return _0x8d8f8e;}_updateSuggestionData(_0x445b04,_0x5abae3){const _0x21cecf=this['editor']['plugins']['get']('PendingActions'),_0x2c7a87=this['getSuggestion'](_0x445b04);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2c7a87['_saved']){const _0x937760=_0x21cecf['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x445b04,_0x5abae3)['then'](()=>{_0x21cecf['remove'](_0x937760);});}else _0x2c7a87['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x445b04,_0x5abae3);});}}_getSuggestionData(_0x1b41af){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5f6c00('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b41af);}_handleNewSuggestionMarker(_0x1354a2){const {id:_0x4278ae,type:_0x275cc2,subType:_0x954511,authorId:_0xd42ab0}=tt(_0x1354a2),_0x83df84=this['_suggestions']['get'](_0x4278ae)||this['_createSuggestion'](_0x275cc2,_0x954511,_0x4278ae,_0xd42ab0,{});switch(this['_checkSuggestionCorrectness'](_0x83df84,_0x275cc2,_0x954511,_0xd42ab0),this['_suggestionState']['get'](_0x83df84)){case'notReady':this['_getSuggestionData'](_0x4278ae)['then'](_0x3a30a3=>{let _0x44842d=Promise['resolve']();_0x3a30a3['hasComments']&&(_0x44842d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4278ae})),_0x44842d['then'](()=>{this['addSuggestionData'](_0x3a30a3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x83df84,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4278ae,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x83df84,'ready'),this['fire']('suggestionLoaded',_0x83df84);break;case'ready':this['fire']('suggestionChanged',_0x83df84);}return _0x83df84['addMarkerName'](_0x1354a2),_0x83df84;}_refreshSuggestionsChain(_0x2e9fe6){const _0x422e47=Array['from'](_0x2e9fe6),_0x326ad0=_0x422e47['filter'](_0x5df58b=>'attribute'==_0x5df58b['type']);this['_refreshAttributeSuggestionsChain'](_0x326ad0);const _0x4e77d4=_0x422e47['filter'](_0x466719=>!_0x466719['isMultiRange']&&'attribute'!=_0x466719['type']),_0x42a01a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cd9d=>!_0x27cd9d['isMultiRange']&&'attribute'!=_0x27cd9d['type']),_0x3b513a=_0x42a01a['filter'](_0x6960ed=>!_0x2e9fe6['has'](_0x6960ed)),_0x4970ac=new Map(_0x42a01a['map'](_0x15b850=>[_0x15b850,this['_suggestionFactory']['getSuggestionCallback'](_0x15b850['type'],_0x15b850['subType'],'chain')])),_0x30a0aa=new Map(_0x42a01a['map'](_0x41dd3f=>[_0x41dd3f,_0x41dd3f['getFirstRange']()])),_0x597a78=new Set(),_0x2d12e6=new Set();for(let _0x37f66b=0x0;_0x37f66b<_0x4e77d4['length'];_0x37f66b++)_0x10a1d2(_0x4e77d4[_0x37f66b],_0x4e77d4,_0x37f66b+0x1);for(let _0x452093=0x0;_0x452093<_0x4e77d4['length'];_0x452093++)_0x10a1d2(_0x4e77d4[_0x452093],_0x3b513a,0x0);const _0x13fe24=new Set();for(let _0x2601e7=0x0;_0x2601e7<_0x4e77d4['length'];_0x2601e7++){const _0xfe5b03=_0x4e77d4[_0x2601e7];!_0x2d12e6['has'](_0xfe5b03)&&_0xfe5b03['previous']&&(_0x13fe24['add'](_0xfe5b03['previous']),_0xfe5b03['previous']['next']===_0xfe5b03&&(_0xfe5b03['previous']['next']=null),_0xfe5b03['previous']=null),!_0x597a78['has'](_0xfe5b03)&&_0xfe5b03['next']&&(_0x13fe24['add'](_0xfe5b03['next']),_0xfe5b03['next']['previous']===_0xfe5b03&&(_0xfe5b03['next']['previous']=null),_0xfe5b03['next']=null);}function _0x10a1d2(_0x594240,_0x1752b2,_0x450578){for(let _0x1b72af=_0x450578;_0x1b72af<_0x1752b2['length'];_0x1b72af++){const _0x4b2924=_0x13fff3(_0x594240,_0x1752b2[_0x1b72af]);_0x4b2924&&(_0x4b2924[0x0]['next']=_0x4b2924[0x1],_0x4b2924[0x1]['previous']=_0x4b2924[0x0],_0x597a78['add'](_0x4b2924[0x0]),_0x2d12e6['add'](_0x4b2924[0x1]));}}function _0x13fff3(_0x98a848,_0x9e242b){if(_0x98a848['author']['id']!==_0x9e242b['author']['id'])return null;const _0x195566=_0x4970ac['get'](_0x98a848)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b));return _0x195566&&_0x4970ac['get'](_0x9e242b)(_0x98a848,_0x9e242b,_0x30a0aa['get'](_0x98a848),_0x30a0aa['get'](_0x9e242b))?_0x195566[0x1]['commentThread']&&_0x195566[0x1]['commentThread']['length']?null:_0x195566:null;}_0x13fe24['size']&&this['_refreshSuggestionsChain'](_0x13fe24);}_refreshAttributeSuggestionsChain(_0x1799a4){if(0x0==_0x1799a4['length'])return;const _0x31472d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d0055=>'attribute'==_0x3d0055['type']&&_0x3d0055['_isDataLoaded']),_0x255859=[],_0x12d487=new Map();for(const _0x334328 of _0x31472d){const _0x50b55c=_0x5a9283(_0x334328['attributes']);_0x12d487['has'](_0x50b55c)||(_0x12d487['set'](_0x50b55c,_0x255859['length']),_0x255859['push']([])),_0x255859[_0x12d487['get'](_0x50b55c)]['push'](_0x334328);}!(function(){_0x255859['sort']((_0x377b88,_0x586e96)=>{const _0x5df210=_0x377b88[0x0]['createdAt'],_0x4bda5e=_0x586e96[0x0]['createdAt'];return _0x5df210==_0x4bda5e?_0x377b88[0x0]['attributes']['groupId']<_0x586e96[0x0]['attributes']['groupId']?-0x1:0x1:_0x5df210<_0x4bda5e?-0x1:0x1;});for(const _0x15fe66 of _0x255859)_0x15fe66['sort']((_0x3aef25,_0x2f6c10)=>_0x3aef25['id']<_0x2f6c10['id']?-0x1:0x1);}());for(let _0x2fba72=0x0;_0x2fba72<_0x255859['length'];_0x2fba72++){if(0x0==_0x255859[_0x2fba72]['length'])continue;const _0x3823e2=[];for(let _0x465a99=_0x2fba72+0x1;_0x465a99<_0x255859['length'];_0x465a99++)0x0!=_0x255859[_0x465a99]['length']&&_0x5b22a0(_0x255859[_0x2fba72],_0x255859[_0x465a99])&&_0x3823e2['push'](_0x465a99);for(const _0x2d421c of _0x3823e2)_0x255859[_0x2fba72]=_0x255859[_0x2fba72]['concat'](_0x255859[_0x2d421c]),_0x255859[_0x2d421c]=[];}for(const _0x518801 of _0x255859)for(let _0xdfb6=0x0;_0xdfb6<_0x518801['length'];_0xdfb6++){const _0x1088f8=_0x518801[_0xdfb6+0x1]||null;_0x518801[_0xdfb6]['next']!==_0x1088f8&&(_0x518801[_0xdfb6]['next']=_0x1088f8);}for(const _0x4e9110 of _0x255859)for(let _0x426f9d=0x0;_0x426f9d<_0x4e9110['length'];_0x426f9d++){const _0x39ff5e=_0x4e9110[_0x426f9d-0x1]||null;_0x4e9110[_0x426f9d]['previous']!==_0x39ff5e&&(_0x4e9110[_0x426f9d]['previous']=_0x39ff5e);}function _0x5b22a0(_0x51da24,_0x1cecb9){if(_0x51da24[0x0]['attributes']['groupId']!==_0x1cecb9[0x0]['attributes']['groupId']&&_0x51da24[0x0]['author']!==_0x1cecb9[0x0]['author'])return!0x1;if(!function(_0x2ca702,_0x46eacd){return!_0x2ca702['hasComments']&&!_0x46eacd['hasComments']||(!_0x2ca702['hasComments']||!_0x46eacd['hasComments'])&&(!!(_0x2ca702['hasComments']&&_0x46eacd['createdAt']<_0x2ca702['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x46eacd['hasComments']&&_0x2ca702['createdAt']<_0x46eacd['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x51da24[0x0],_0x1cecb9[0x0]))return!0x1;const _0x274f04=lt(_0x51da24[0x0]['attributes'],['groupId','trackingSessionId']),_0x5affcc=lt(_0x1cecb9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x274f04,_0x5affcc)&&(_0x51da24[0x0]['attributes']['groupId']==_0x1cecb9[0x0]['attributes']['groupId']||_0x51da24[0x0]['attributes']['trackingSessionId']===_0x1cecb9[0x0]['attributes']['trackingSessionId']&&(!!_0x51da24['every'](_0x207f32=>_0x1cecb9['some'](_0x420a24=>_0x207f32['getFirstRange']()['isEqual'](_0x420a24['getFirstRange']())))&&_0x1cecb9['every'](_0xb8dfa2=>_0x51da24['some'](_0x53a86f=>_0xb8dfa2['getFirstRange']()['isEqual'](_0x53a86f['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x206c05){const _0x58dff7=Array['from'](_0x206c05),_0x1e3c14=this['getSuggestions']({'skipNotAttached':!0x0}),_0xd0b5da=_0x1e3c14['filter'](_0x3e3179=>!_0x206c05['has'](_0x3e3179)),_0x57053a=new Map(_0x58dff7['map'](_0x1ddab0=>[_0x1ddab0,this['_suggestionFactory']['getSuggestionCallback'](_0x1ddab0['type'],_0x1ddab0['subType'],'join')])),_0x4f5cf3=new Map(_0x1e3c14['map'](_0xa4ba6b=>[_0xa4ba6b,_0xa4ba6b['getRanges']()]));for(let _0x18b446=0x0;_0x18b446<_0x58dff7['length'];_0x18b446++)if(_0x21fb11(this,_0x58dff7[_0x18b446],_0x58dff7,_0x18b446+0x1))return!0x0;for(let _0x4aba92=0x0;_0x4aba92<_0x58dff7['length'];_0x4aba92++)if(_0x21fb11(this,_0x58dff7[_0x4aba92],_0xd0b5da,0x0))return!0x0;return!0x1;function _0x21fb11(_0x2aada8,_0x6a8349,_0x343ed0,_0x2d0dc5){for(let _0x17e633=_0x2d0dc5;_0x17e633<_0x343ed0['length'];_0x17e633++){const _0x54ca78=_0x343ed0[_0x17e633];if(_0x54ca78['type']!==_0x6a8349['type']||_0x54ca78['author']['id']!==_0x6a8349['author']['id']||_0x54ca78['subType']!==_0x6a8349['subType'])continue;if(!pn(_0x6a8349,_0x54ca78))continue;if('attribute'==_0x6a8349['type']&&_0x6a8349['data']['oldValue']!=_0x54ca78['data']['oldValue'])continue;if('attribute'==_0x6a8349['type']&&_0x2aada8['_suggestionsConversion']['isBlockAttribute'](_0x6a8349['data']['key']))continue;if('formatBlock'==_0x6a8349['type']){const _0x72e1ca=_0x2aada8['editor']['model'],_0x4a22e4=_0x6a8349['getContainedElement']();if(_0x4a22e4&&(_0x72e1ca['schema']['isObject'](_0x4a22e4)||_0x72e1ca['schema']['isLimit'](_0x4a22e4)))continue;}const _0x4a7d98=_0x57053a['get'](_0x6a8349),_0x265082=_0x4f5cf3['get'](_0x6a8349),_0x30fe92=_0x4f5cf3['get'](_0x54ca78),_0x46020a=_0x6a8349['commentThread']&&_0x6a8349['commentThread']['length'],_0x367bed=_0x54ca78['commentThread']&&_0x54ca78['commentThread']['length'];if(!_0x46020a&&_0x4a7d98(_0x30fe92,_0x265082))return _0x2aada8['_joinSuggestions'](_0x54ca78,_0x6a8349),_0x4f5cf3['delete'](_0x6a8349),!0x0;if(!_0x367bed&&_0x4a7d98(_0x265082,_0x30fe92))return _0x2aada8['_joinSuggestions'](_0x6a8349,_0x54ca78),_0x4f5cf3['delete'](_0x54ca78),!0x0;}return!0x1;}}_joinSuggestions(_0x2b0afb,_0x562f2f){if(_0x2b0afb['isMultiRange']){for(const _0x5a8c6c of _0x562f2f['getRanges']())_0x2b0afb['addRange'](_0x5a8c6c);}else{const _0x3719f7=_0x562f2f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b0afb,this['_model']['createRange'](_0x2b0afb['getFirstRange']()['start'],_0x3719f7));}_0x562f2f['removeMarkers']();}_getMarkerAnnouncementText(_0x13cd92,_0x3ece73,_0x67e56c){const _0x7d7b3e=_0x13cd92['startsWith']('format')||_0x13cd92['startsWith']('attribute')?'FORMATTING':_0x13cd92['toUpperCase']();return Mt(this['editor']['locale'],_0x3ece73+'_'+_0x7d7b3e+'_SUGGESTION_ANNOUNCEMENT',_0x67e56c);}_initAriaMarkerChangeAnnouncements(){const _0xc1aeed=this['editor'];if(!_0xc1aeed['ui'])return;const {ariaLiveAnnouncer:_0x531f80}=_0xc1aeed['ui'];et(this['_model'],({left:_0x81af24,entered:_0x4ff5b8})=>{for(const _0x406b8 of _0x81af24){const {group:_0x49cabb,type:_0x38f729}=tt(_0x406b8['name']);if('suggestion'===_0x49cabb){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0x38f729,'LEAVE'));break;}}for(const _0x3f2874 of _0x4ff5b8){const {group:_0x30e2a3,type:_0xe95db9}=tt(_0x3f2874['name']);if('suggestion'===_0x30e2a3){_0x531f80['announce'](this['_getMarkerAnnouncementText'](_0xe95db9,'ENTER',_0x166bf7(_0x2e1548)));break;}}});}_processAttributeChanges(_0x1de71c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ae694=this['editor'],_0x314fc1=_0x3ae694['model']['document']['differ']['getChanges']();if(0x0==_0x314fc1['length'])return!0x1;const _0x11808a=[],_0x443baf=_0x314fc1['filter'](_0x1d20b4=>'attribute'==_0x1d20b4['type']),_0x36e7fb=_0x314fc1['filter'](_0x57c440=>'insert'==_0x57c440['type']&&'$text'!=_0x57c440['name']),_0x31eda8=_0x314fc1['filter'](_0x27f02c=>'remove'==_0x27f02c['type']&&'$text'!=_0x27f02c['name']);for(const _0x4e4398 of _0x443baf)_0x11808a['push']({'key':_0x4e4398['attributeKey'],'newValue':_0x4e4398['attributeNewValue'],'oldValue':_0x4e4398['attributeOldValue'],'range':En(_0x4e4398['range'],_0x3ae694['model'])});for(const _0x47caf3 of _0x36e7fb){const _0x1d485a=_0x31eda8['find'](_0x5b3279=>_0x5b3279['position']['isEqual'](_0x47caf3['position']));_0x1d485a&&_0x11808a['push']({'key':sn,'newValue':_0x47caf3['name'],'oldValue':_0x1d485a['name'],'range':_0x3ae694['model']['createRangeOn'](_0x47caf3['position']['nodeAfter'])});}return 0x0!=_0x11808a['length']&&this['_reduceExistingSuggestions'](_0x1de71c,_0x11808a);}_processAttributeSuggestions(_0x2b107c){let _0x37755b=!0x1;const _0xd8ddec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c7dd1=>_0x3c7dd1['data']['newRange']&&_0x3c7dd1['name']['startsWith']('suggestion:attribute:'));for(const _0x2964e2 of _0xd8ddec){const {subType:_0x3dc3ec,id:_0x19b275}=tt(_0x2964e2['name']),_0x5668a7=_0x3dc3ec['split']('|')[0x0];for(const _0x2792d8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2792d8['id']!=_0x19b275&&'attribute'==_0x2792d8['type']&&_0x2792d8['data']&&_0x2792d8['data']['key']==_0x5668a7&&_0x2792d8['getFirstRange']()['isIntersecting'](_0x2964e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2792d8,_0x2964e2['data']['newRange'],_0x2b107c),_0x37755b=!0x0);}return _0x37755b;}recordAttributeChanges(_0x12f6b4){this['_recordAttributeSuggestions']=!0x0,_0x12f6b4();}_reduceExistingSuggestions(_0x38a26f,_0x323169){if(0x0==_0x323169['length'])return!0x1;let _0x519af2=!0x1;for(const _0x35b6f8 of _0x323169){const _0x340174=this['_findSuggestions'](_0x35b6f8['range'],'attribute')['filter'](_0x3d9b91=>!_0x3d9b91['meta']['isNextTo'])['map'](_0x5ada9a=>_0x5ada9a['suggestion']),_0x1e33c9=_0x5a9283({'newValue':_0x35b6f8['newValue']});_0x340174['filter'](_0x715da=>{const [_0xa1651,_0x9b64ab]=_0x715da['subType']['split']('|');return _0xa1651==_0x35b6f8['key']&&_0x9b64ab!=_0x1e33c9;})['forEach'](_0x70d191=>{this['_reduceSuggestionAttributeRange'](_0x70d191,_0x35b6f8['range'],_0x38a26f),_0x519af2=!0x0;});}return _0x519af2;}_reduceSuggestionAttributeRange(_0xfd7fa1,_0x473870,_0x205d6b){const _0x40127a=_0xfd7fa1['getFirstRange']()['getDifference'](_0x473870);0x0!==_0x40127a['length']?0x1!==_0x40127a['length']?this['_breakSuggestionMarker'](_0xfd7fa1,_0x473870['start'],_0x473870['end']):this['_setSuggestionRange'](_0xfd7fa1,_0x40127a[0x0]):_0x205d6b['removeMarker'](_0xfd7fa1['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4ddd25){this['_editor']=_0x4ddd25,this['_model']=_0x4ddd25['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x3ef373,_0x55ebf1,_0x57f407,_0x191bde,_0x53e814,_0x346e62,_0x49360e){return new St(this['_model'],{'type':_0x3ef373,'subType':_0x55ebf1,'id':_0x57f407,'originalSuggestionId':_0x49360e,'author':_0x191bde,'creator':_0x191bde,'attributes':_0x53e814,'onAttributesChange':_0x346e62,'onAccept':(..._0x469525)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'accept')(..._0x469525),'onDiscard':(..._0x5e9034)=>this['getSuggestionCallback'](_0x3ef373,_0x55ebf1,'discard')(..._0x5e9034)});}registerCustomCallback(_0x53443e,_0x291258,_0x7c7d9,_0x5b351b){const _0x293f24=_0x53443e+':'+_0x291258+':'+_0x7c7d9;this['_customCallbacks']['set'](_0x293f24,_0x5b351b);}getSuggestionCallback(_0x26fb38,_0x596a6d,_0x1ab5b3){const _0x1259e0=_0x26fb38+':'+_0x596a6d+':'+_0x1ab5b3;return this['_customCallbacks']['get'](_0x1259e0)||this['_defaultCallbacks']['get'](_0x26fb38+':'+_0x1ab5b3);}_registerDefaultCallbacks(){const _0x4b479c=()=>!0x1,_0x103317=_0x3897e5=>{_0x3897e5['sort']((_0x21315d,_0xe9ce0f)=>_0x21315d['start']['isBefore'](_0xe9ce0f['start'])?0x1:-0x1),this['_model']['change'](_0x8c7a29=>{for(const _0x47f231 of _0x3897e5){let _0x5698fe;_0x5698fe=_0x47f231['end']['isAtEnd']&&_0x47f231['end']['parent']==_0x47f231['start']['nodeAfter']?_0x8c7a29['createSelection'](_0x47f231['start']['nodeAfter'],'on'):_0x8c7a29['createSelection'](_0x47f231),this['_model']['deleteContent'](_0x5698fe,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d099b=(_0x5b5806,_0x22300b)=>{_0x22300b&&this['_model']['change'](_0x583517=>{const {commandName:_0x5e624a,commandParams:_0x370671=[]}=_0x22300b,_0x20ee46=_0x5b5806['map'](_0x46211e=>(un(_0x46211e)&&(_0x46211e=this['_model']['createRange'](_0x46211e['end'])),_0x46211e))['filter'](_0x367419=>'$graveyard'!==_0x367419['root']['rootName']);if(_0x20ee46['length']<0x1)return;const _0x182ba9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25ab25=>rt['fromRange'](_0x25ab25));_0x583517['setSelection'](_0x20ee46);for(const _0x26723f of this['_editor']['commands']['commands']())_0x26723f['refresh']();_0x370671['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5e624a,..._0x370671);const _0x20a4a9=_0x182ba9['filter'](_0xf9b459=>'$graveyard'!=_0xf9b459['root']['rootName']);_0x20a4a9['length']>0x0&&_0x583517['setSelection'](_0x20a4a9);for(const _0x238ab4 of _0x182ba9)_0x238ab4['detach']();});},_0x46e6c5=(_0xba6d0a,_0x371130)=>0x1==_0xba6d0a['length']&&0x1==_0x371130['length']&&_0xba6d0a[0x0]['end']['isEqual'](_0x371130[0x0]['start']),_0x501ee1=(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)=>_n(_0x491e61,_0xee92e8,_0x15eb09,_0x17c0ce)?[_0x491e61,_0xee92e8]:_n(_0xee92e8,_0x491e61,_0x17c0ce,_0x15eb09)?[_0xee92e8,_0x491e61]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b479c),this['_defaultCallbacks']['set']('insertion:discard',_0x103317),this['_defaultCallbacks']['set']('insertion:join',_0x46e6c5),this['_defaultCallbacks']['set']('insertion:chain',_0x501ee1),this['_defaultCallbacks']['set']('deletion:accept',_0x103317),this['_defaultCallbacks']['set']('deletion:discard',_0x4b479c),this['_defaultCallbacks']['set']('deletion:join',_0x46e6c5),this['_defaultCallbacks']['set']('deletion:chain',_0x501ee1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatInline:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d099b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b479c),this['_defaultCallbacks']['set']('formatBlock:join',_0x46e6c5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b479c),this['_defaultCallbacks']['set']('attribute:accept',_0x4b479c),this['_defaultCallbacks']['set']('attribute:discard',(_0x36a5b3,_0x5609b0)=>{if(!_0x5609b0)return;const _0x224fae=this['_editor']['plugins']['get'](_0x407cac);this['_model']['change'](_0x3a2e00=>{if('$elementName'==_0x5609b0['key'])for(const _0x3fcf43 of _0x36a5b3){const _0x4f868a=_0x3fcf43['start']['nodeAfter'],_0x420958=_0x5609b0['oldValue'];_0x3a2e00['rename'](_0x4f868a,_0x420958);}else{if(_0x224fae['isBlockAttribute'](_0x5609b0['key'])){for(const _0x184605 of _0x36a5b3)void 0x0!==_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x184605['start']['nodeAfter']):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x184605['start']['nodeAfter']);}else{for(const _0x3e29e8 of _0x36a5b3)_0x5609b0['oldValue']?_0x3a2e00['setAttribute'](_0x5609b0['key'],_0x5609b0['oldValue'],_0x3e29e8):_0x3a2e00['removeAttribute'](_0x5609b0['key'],_0x3e29e8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46e6c5);}};function ln(_0xb394a8,_0x505c21,_0x235cef){for(const _0x14923f of _0x505c21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14923f['root']==_0x14923f)return!0x1;if(!_0x235cef['containsItem'](_0x14923f))return!0x1;if(_0xb394a8['isObject'](_0x14923f)||_0xb394a8['isLimit'](_0x14923f))return!0x0;}return!0x1;}function un(_0x5f1626){return _0x5f1626['end']['parent']==_0x5f1626['start']['nodeAfter']&&_0x5f1626['end']['isAtStart'];}function dn(_0x317ffe,_0x3896d7,_0x2c925d,_0x29e6b7){const _0x55a560=_0x58e115=>!_0x58e115['item']['is']('$textProxy')&&!_0x29e6b7['isObject'](_0x58e115['item']),_0x24476d=_0x317ffe['start']['getLastMatchingPosition'](_0x55a560),_0x120ba5=_0x317ffe['end']['getLastMatchingPosition'](_0x55a560,{'direction':'backward'});return(!_0x317ffe['start']['isEqual'](_0x24476d)||!_0x317ffe['end']['isEqual'](_0x120ba5))&&(_0x24476d['isBefore'](_0x120ba5)?_0x2c925d['updateMarker'](_0x3896d7,{'range':_0x2c925d['createRange'](_0x24476d,_0x120ba5)}):_0x2c925d['removeMarker'](_0x3896d7),!0x0);}function hn(_0x41d16e){return _0x5a9283(_0x41d16e);}function gn(_0x5bbaa3){const _0x341b68=_0x5bbaa3['start']['nodeAfter'];return _0x341b68&&_0x341b68['is']('element');}function fn(_0x8abc71){return un(_0x8abc71)||function(_0x5578c1){return _0x5578c1['start']['parent']==_0x5578c1['end']['nodeBefore']&&_0x5578c1['start']['isAtEnd'];}(_0x8abc71);}function mn(_0x42b474,_0x137078){try{const _0xa81a87=_0x42b474['getRange']();for(const _0x3c030a of _0x137078)if(_0x42b474!==_0x3c030a&&_0xa81a87&&_0xa81a87['isIntersecting'](_0x3c030a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x4d082b,_0x3e942d){return null==_0x4d082b['end']['nodeBefore']&&_0x4d082b['end']['parent']==_0x4d082b['start']['nodeAfter']?Tn(_0x4d082b['start']['nodeAfter'],_0x3e942d):_0x4d082b;}function Tn(_0x28c3e8,_0x646922){const _0x48036a=_0x646922['schema']['isObject'](_0x28c3e8)||_0x646922['schema']['isSelectable'](_0x28c3e8);return _0x646922['createRange'](_0x646922['createPositionAt'](_0x28c3e8,'before'),_0x48036a?_0x646922['createPositionAfter'](_0x28c3e8):_0x646922['createPositionAt'](_0x28c3e8,'end'));}function _n(_0xeb7817,_0x3f89b9,_0x10391c,_0x21178d){return!!pn(_0xeb7817,_0x3f89b9)&&_0x10391c['end']['isEqual'](_0x21178d['start']);}function pn(_0x1fdbe1,_0x558f73){if(!_0x1fdbe1['_isDataLoaded']||!_0x558f73['_isDataLoaded'])return!0x1;const _0x1a8e0d=new Set(Object['keys'](_0x1fdbe1['attributes'])),_0x4f5731=new Set(Object['keys'](_0x558f73['attributes']));if(_0x1a8e0d['delete']('groupId'),_0x4f5731['delete']('groupId'),0x0==_0x1a8e0d['size']&&0x0==_0x4f5731['size'])return!0x0;if(_0x1a8e0d['size']!=_0x4f5731['size'])return!0x1;const _0x2bb53c={..._0x1fdbe1['attributes']},_0x4c0a22={..._0x558f73['attributes']};return delete _0x2bb53c['groupId'],delete _0x4c0a22['groupId'],JSON['stringify'](_0x2bb53c)==JSON['stringify'](_0x4c0a22);}function Ln(_0x3c72fd,_0x531cb2){const _0x328382=In(_0x3c72fd['attributes']),_0x444b85=In(_0x531cb2);if(!_0x3c72fd['_isDataLoaded'])return!0x1;if(!ct(_0x328382['@ai'],_0x444b85['@ai']))return!0x1;for(const _0x274568 of Object['keys'](_0x444b85))if(!ct(_0x328382[_0x274568],_0x444b85[_0x274568]))return!0x1;return!0x0;}function In(_0x18a40a){const _0x3f6422=Object['assign']({},_0x18a40a);return delete _0x3f6422['skipNestingCheck'],delete _0x3f6422['tablePasteChainId'],_0x3f6422;}function An(_0x27296c){return _0x27296c['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
26
- _0x3d7812();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2714ce,_0x286c6c,_0x1541bd,_0x350fda){super(),this['model']=_0x286c6c,this['view']=_0x1541bd,this['commentThreadController']=_0x350fda,this['_editor']=_0x2714ce,this['_acceptCommand']=_0x2714ce['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2714ce['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53d759,_0x10f9d3)=>_0x53d759||_0x10f9d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12a3cd=>_0x12a3cd&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4bfd42=>_0x4bfd42&&this['_editor']['model']['canEditAt'](_0x286c6c['getRanges']())),this['_pendingAction']=null,_0x1541bd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1541bd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1541bd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1541bd,'change:isDirty',()=>{_0x1541bd['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 _0x4d2a5b=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d2a5b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x38a93a{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17e977,_0x3d2831,_0x5be7cd,_0x40c393){super(_0x17e977),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x11216e(_0x17e977,Mt(_0x17e977,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d2831['authoredAt']),this['bind']('authoredAt')['to'](_0x3d2831),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',_0x3d2831,'authoredAt',this,'descriptionParts',(_0x4003a1,_0x2f63dd,_0x295807)=>{const _0x3c9ce8=_0x295807['map'](_0x17dca3=>Lt(_0x17dca3['content']))['join']('.\x20')+'.',_0xb8f27=_0x3d2831['aiSource']&&'author'===_0x40c393['showAISource']?_0x40c393['aiAuthor']['name']:_0x3d2831['author']['name'],_0x3d8f81=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4003a1-0x1,_0xb8f27,_0x2f63dd?_0x40c393['formatDateTime'](_0x2f63dd):'',new DOMParser()['parseFromString'](_0x3c9ce8,'text/html')['body']['textContent']]);return _0x3d2831['aiSource']&&'pill'===_0x40c393['showAISource']?_0x3d8f81+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3d8f81;}),this['focusables']=new _0x404e76(),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x562384=>_0x562384['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d2831,this['_localUser']=_0x5be7cd,this['_config']=_0x40c393,_0x40c393['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x26f898(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x5e0dc9}=this['_config'];this['commentsListView']=new _0x5e0dc9(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',_0x1e9011=>_0x1e9011+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2baa32,_0x2e0a36)=>_0x2baa32||!!_0x2e0a36);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1602dd}=this['_config'],_0x17dac5=new _0x1602dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x10d00d=_0x17dac5['commentInputView'];return _0x17dac5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x10d00d,'value',(_0x20a6dc,_0x3e0553,_0x585b26)=>!!_0x585b26||_0x20a6dc&&!_0x3e0553),_0x10d00d['on']('submit',(_0x3fd5e3,_0x543104)=>{this['fire']('addComment',_0x543104),_0x10d00d['editor']['setData']('');}),_0x10d00d['on']('cancel',()=>this['focus']()),_0x10d00d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x17dac5;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b){super(_0x27f804,_0x57760c,_0xa1d6bb,_0x5dfd6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38b78d=>_0x38b78d&&_0x38b78d[0x0]?_0x38b78d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x383440,_0x2dc565)=>{let _0x4d5015='';for(const _0x451f55 of _0x383440)_0x4d5015+='<p>'+Lt(_0x451f55['content'],_0x451f55['color'])+'</p>';return _0x2dc565?_0x4d5015:nt(_0x4d5015,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5dfd6b['SuggestionView'](_0x27f804,_0x57760c,{'formatDateTime':_0x5dfd6b['formatDateTime'],'showAISource':_0x5dfd6b['showAISource'],'aiAuthor':_0x5dfd6b['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 _0x3ef8b9=this['bindTemplate'],_0x571d42=[this['suggestionView']];return this['commentsListView']&&_0x571d42['push'](this['commentsListView']),this['commentThreadInputView']&&_0x571d42['push'](this['commentThreadInputView']),_0x571d42['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ef8b9['if']('isActive','ck-suggestion-wrapper--active'),_0x3ef8b9['to']('type',_0x1957ff=>'ck-suggestion-'+_0x1957ff),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':_0x3ef8b9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x571d42};}['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));}},yn=class extends _0x38a93a{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x40df6a,_0x18ccbc,_0x1c94db){super(_0x40df6a),this['_model']=_0x18ccbc,this['_config']=_0x1c94db,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18ccbc),this['acceptButton']=this['_createButton'](Mt(_0x40df6a,'Accept\x20suggestion'),_0xcaba04,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x40df6a,'Discard\x20suggestion'),_0x488d59,'ck-suggestion--discard','discardSuggestion','sw');const _0x4aa017=!!_0x18ccbc['aiSource']&&'author'===_0x1c94db['showAISource'],_0x1016b5=_0x4aa017?this['_createAIUser'](_0x1c94db['aiAuthor']):_0x18ccbc['author'],_0x347be0=_0x4aa017&&!_0x1c94db['aiAuthor']['avatar']?_0x136f6e:void 0x0;this['userView']=new _0x57848d(_0x40df6a,_0x1016b5,this['getUserViewNotificationText'](),_0x347be0),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x404e76([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc35427(),this['keystrokes']=new _0x4aa419(),this['focusCycler']=new _0x3ae1a7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2580fe=>_0x2580fe['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5d04f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5d04f5['innerHTML']=this['description'],this['on']('change:description',(_0x435b40,_0x520ea6,_0x1334c4)=>{_0x5d04f5['innerHTML']=_0x1334c4;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x1702c7=this['bindTemplate'],_0x5178e2=[{'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':_0x1702c7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1702c7['to']('authoredAt',_0x39296a=>this['_config']['formatDateTime'](_0x39296a))}]}]},{'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']&&_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5484e5=new _0xda9ac1(this['locale']);_0x5484e5['set']({'icon':_0x55a3ec,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x5178e2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5484e5]});}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':_0x5178e2}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x27068e){return new _0x359f87({'id':'ck-ai-author','name':_0x27068e['name'],'avatar':_0x27068e['avatar'],'color':new _0x20d727(0x0)});}_createButton(_0x5c1ca9,_0x4b0b62,_0x5b0a71,_0x5d6e1f,_0x5112c3){const _0x599d42=new _0x273023(this['locale']);return _0x599d42['set']({'label':_0x5c1ca9,'icon':_0x4b0b62,'tooltip':!0x0,'tooltipPosition':_0x5112c3}),_0x599d42['extendTemplate']({'attributes':{'class':_0x5b0a71}}),_0x599d42['on']('execute',()=>{this['fire'](_0x5d6e1f,this['_model']['id']);}),_0x599d42;}_setupKeyboardNavigation(){const _0x185870=this['element'];this['keystrokes']['listenTo'](_0x185870);for(const _0x243e87 of this['focusables'])this['focusTracker']['add'](_0x243e87['element']),this['keystrokes']['listenTo'](_0x243e87['element']);this['keystrokes']['set']('enter',(_0xbe1c2c,_0x50cb41)=>{_0x185870===_0xbe1c2c['target']&&(this['focusCycler']['focusFirst'](),_0x50cb41());}),this['keystrokes']['set']('esc',(_0x2abdd7,_0x21a21a)=>{_0x185870!==_0x2abdd7['target']&&(this['focus'](),_0x21a21a());});}},Nn=class extends _0x42a28f{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x3f25ff,_0x51a4b7,_0x320e85,_0x42e5e7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107d59){super(_0x107d59),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1ae4=this['editor']['config'];_0x4a1ae4['define']('trackChanges.SuggestionThreadView',Rn),_0x4a1ae4['define']('trackChanges.SuggestionView',yn),_0x4a1ae4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1ae4['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x45ea17,_0x295634){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x485998,_0x316e1d]of this['_handleControllerBuffer']){const _0x470342=this['_suggestionToController']['has'](_0x485998);_0x470342||_0x316e1d?_0x470342&&_0x316e1d&&this['_destroyController'](_0x485998):this['_initializeController'](_0x485998);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x42e5e7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x45ea17,_0x295634);}init(){const _0x52f88e=this['editor'],_0xc80f07=_0x52f88e['plugins']['get'](an),_0x5dd825=_0x52f88e['plugins']['get'](_0x320e85),_0x277ffc=_0x52f88e['plugins']['get'](_0x42e5e7),_0x2f7d31=_0x52f88e['plugins']['get'](_0x51a4b7);this['_addUIComponentsToFactory'](),_0x277ffc['addSourceCollector'](()=>{const _0x3410d8=[];for(const [_0x112a3c,_0x5c5382]of Array['from'](this['_suggestionToController'])){const _0x45dc46=_0x112a3c['getAllAdjacentSuggestions'](),_0x1ca012=[];for(const _0x4904b3 of _0x45dc46){if(!_0x4904b3['isInContent'])continue;if(_0x4904b3['isMultiRange']){_0x1ca012['push'](..._0x4904b3['getRanges']());continue;}const _0x1b9d79=_0x4904b3['getFirstRange']();if(_0x1ca012['length']>0x0){const _0x33147c=_0x1ca012[0x0]['getJoined'](_0x1b9d79);if(_0x33147c){_0x1ca012[0x0]=_0x33147c;continue;}}_0x1ca012['push'](_0x1b9d79);}_0x3410d8['push']([_0x5c5382['view'],_0x1ca012]);}return _0x3410d8;}),this['listenTo'](_0xc80f07,'suggestionLoaded',(_0x32beff,_0xeaabf9)=>{this['listenTo'](_0xeaabf9,'change:previous',(_0x11e1bd,_0x3a6814,_0x5c1da4,_0x5687cd)=>{_0xeaabf9['isInContent']&&(null==_0x5c1da4?(this['_updateController'](_0x5687cd['head']),this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1)):(this['_updateController'](_0x5c1da4['head']),null==_0x5687cd&&this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x0)));}),null!==_0xeaabf9['previous']?this['_updateController'](_0xeaabf9['head']):this['_handleSuggestionControllerDelayed'](_0xeaabf9,!0x1);}),this['listenTo'](_0xc80f07,'suggestionUnloaded',(_0x3af9b2,_0x9fbf4f,_0x33a7af)=>{this['stopListening'](_0x9fbf4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9fbf4f),this['_suggestionToController']['has'](_0x9fbf4f)&&this['_destroyController'](_0x9fbf4f),_0x33a7af&&this['_updateController'](_0x33a7af['head']);}),this['listenTo'](_0xc80f07,'suggestionChanged',(_0x4caf0a,_0x1e3aed)=>{this['_updateController'](_0x1e3aed);}),this['listenTo'](_0x5dd825,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2f7d31,'addComment',(_0x27ce36,{threadId:_0x4682c2,isFromAdapter:_0x3da2e5})=>{if(_0x3da2e5||!_0xc80f07['hasSuggestion'](_0x4682c2))return;const _0x58f9c8=_0xc80f07['getSuggestion'](_0x4682c2);this['_suggestionToController']['get'](_0x58f9c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x23ee93=[this['editor']];for(const _0x5cf61c of _0x23ee93){let _0x139ff1;for(const _0x137519 in _0x5cf61c){const _0x42de0e=_0x137519,_0x31a049=_0x5cf61c[_0x42de0e];if('trackChangesLicenseKeyValid'==_0x31a049||'trackChangesLicenseKeyInvalid'==_0x31a049||'trackChangesLicenseKeyExpired'==_0x31a049||'trackChangesLicenseKeyDomainLimit'==_0x31a049||'trackChangesLicenseKeyNotAllowed'==_0x31a049||'trackChangesLicenseKeyEvaluationLimit'==_0x31a049||'trackChangesLicenseKeyUsageLimit'==_0x31a049){delete _0x5cf61c[_0x42de0e],_0x139ff1=_0x31a049,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x139ff1&&_0x5cf61c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x139ff1&&_0x5cf61c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x139ff1&&_0x5cf61c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x139ff1&&_0x5cf61c['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x113218){const _0x1a0d40=this['_suggestionToController']['get'](_0x113218);return _0x1a0d40&&this['editor']['plugins']['get'](_0x320e85)['getByInnerView'](_0x1a0d40['view'])||null;}getSuggestionForAnnotation(_0x34a1dd){const _0x1d66e5=this['_viewToController']['get'](_0x34a1dd['innerView']);return _0x1d66e5?_0x1d66e5['model']:null;}_refreshActiveMarkers(){const _0xb1ce26=this['editor']['plugins']['get'](_0x320e85),_0x28f5eb=this['editor']['plugins']['get'](an),_0x161911=Array['from'](_0xb1ce26['activeAnnotations'],_0x5d1fd5=>_0x5d1fd5['innerView'])['filter'](_0x43baaa=>this['_viewToController']['has'](_0x43baaa)),_0x599b74=[];for(const _0x911251 of _0x161911){const _0x58ab64=this['_viewToController']['get'](_0x911251)['model']['getAllAdjacentSuggestions']();_0x599b74['push'](..._0x58ab64['reduce']((_0x10429e,_0x4bc76d)=>[..._0x10429e,..._0x4bc76d['getMarkerNames']()],[]));}_0x28f5eb['activeMarkers']=_0x599b74;}_addUIComponentsToFactory(){const _0x3589e8=this['editor'],_0x5eabde=_0x3589e8['locale'],_0x84639=Mt(_0x5eabde,'Track\x20changes'),_0xd6dd98=new _0xcf0f12([{'type':'switchbutton','model':new _0xc62c18({'withText':!0x0,'isToggleable':!0x0,'label':_0x84639,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3589e8['plugins']['has']('TrackChangesPreview')&&_0xd6dd98['addMany']([{'type':'separator'},{'type':'button','model':new _0xc62c18({'withText':!0x0,'label':Mt(_0x5eabde,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4cff25 of _0xd6dd98)if(Sn(_0x4cff25)){const _0x494244=_0x3589e8['commands']['get'](_0x4cff25['model']['commandName']);_0x4cff25['model']['bind']('isOn','isEnabled')['to'](_0x494244,'value','isEnabled');}_0x3589e8['ui']['componentFactory']['add']('trackChanges',_0x254299=>this['_createToolbarButton'](_0x254299,_0xd6dd98,_0x84639)),_0x3589e8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x398bbd=>this['_createMenuBarMenu'](_0x398bbd,_0xd6dd98,_0x84639));}_createToolbarButton(_0xcbb529,_0x1bbe06,_0x3e584d){const _0x22b4c6=_0x4a118d(_0xcbb529,_0x1fbe25),_0x5008a3=this['editor']['commands']['get']('trackChanges');_0x22b4c6['buttonView']['set']({'tooltip':_0x3e584d,'label':_0x3e584d,'icon':_0x37c353}),_0x22b4c6['buttonView']['bind']('isOn')['to'](_0x5008a3,'value'),_0x22b4c6['buttonView']['on']('execute',()=>{_0x5008a3['execute'](),this['editor']['editing']['view']['focus']();}),_0x4c17c9(_0x22b4c6,_0x1bbe06,{'role':'menu'});const _0x10ec94=[];for(const _0x161298 of _0x1bbe06)Sn(_0x161298)&&_0x10ec94['push'](this['editor']['commands']['get'](_0x161298['model']['commandName']));const _0xde085d=_0x22b4c6['buttonView'];return _0xde085d['actionView']['unbind']('isEnabled'),_0xde085d['arrowView']['unbind']('isEnabled'),_0xde085d['actionView']['bind']('isEnabled')['to'](_0x5008a3,'isEnabled'),_0xde085d['arrowView']['bind']('isEnabled')['toMany'](_0x10ec94,'isEnabled',(..._0xda43de)=>_0xda43de['some'](_0x2ba6f7=>_0x2ba6f7)),_0x22b4c6['on']('execute',_0x2155e6=>{this['editor']['execute'](_0x2155e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x22b4c6;}_createMenuBarMenu(_0x5bf6ca,_0xb377ff,_0x468bbb){const _0x24dbdd=new _0x490808(_0x5bf6ca),_0x3556b6=this['editor']['commands']['get']('trackChanges');_0x24dbdd['buttonView']['set']({'label':_0x468bbb,'icon':_0x37c353});const _0x137f7a=new _0x3867d5(_0x5bf6ca);for(const _0x2c481e of _0xb377ff){if('separator'==_0x2c481e['type']){_0x137f7a['items']['add'](new _0x3d3b0b(_0x5bf6ca));continue;}const _0x153877=new _0x1d4268(_0x5bf6ca,_0x24dbdd),_0x30d9fa=new _0x1b87e4(_0x5bf6ca),_0x5bcde8=_0x2c481e['model'];_0x30d9fa['bind'](...Object['keys'](_0x5bcde8))['to'](_0x5bcde8),_0x30d9fa['delegate']('execute')['to'](_0x24dbdd),_0x30d9fa['on']('execute',()=>{this['editor']['execute'](_0x5bcde8['commandName']),this['editor']['editing']['view']['focus']();}),_0x153877['children']['add'](_0x30d9fa),_0x137f7a['items']['add'](_0x153877);}return _0x24dbdd['bind']('isEnabled')['to'](_0x3556b6,'isEnabled'),_0x24dbdd['panelView']['children']['add'](_0x137f7a),_0x24dbdd;}_initializeController(_0x419145){const _0x26867b=this['editor'],_0x4264a3=_0x26867b['config'],_0x318eda=_0x26867b['plugins']['get'](_0x320e85),_0x3f14a6=_0x26867b['plugins']['get'](_0x51a4b7),_0x4100b1=_0x26867b['plugins']['get'](_0x42e5e7),_0x46a070=_0x26867b['plugins']['get'](_0x3f25ff)['me'],_0x178b50=_0x4264a3['get']('trackChanges')['SuggestionThreadView'],_0x256e4a=_0x4264a3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4b6ec2,CommentThreadInputView:_0x20dfd9}=_0x26867b['plugins']['get']('CommentsUI');let _0x18cfd8,_0x44812f,_0x5c7995;this['_annotationViews']['has'](_0x419145['id'])?(_0x44812f=this['_annotationViews']['get'](_0x419145['id']),_0x18cfd8=_0x44812f['mainView']):(_0x18cfd8=new _0x178b50(_0x26867b['locale'],_0x419145,_0x46a070,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4264a3['get']('comments.editorConfig'),'licenseKey':_0x4264a3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4264a3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4264a3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4264a3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ba4af(_0x4264a3['get']('locale'),_0x26867b['locale']),'CommentView':_0x4264a3['get']('comments')['CommentView'],'CommentsListView':_0x4b6ec2,'CommentThreadInputView':_0x20dfd9,'SuggestionView':_0x256e4a,'showAISource':_0x4264a3['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4264a3['get']('trackChanges.aiAuthor'),'name':_0x4264a3['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x26867b['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x18cfd8['suggestionView']['acceptButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x18cfd8['suggestionView']['discardButton']['on']('execute',()=>{_0x26867b['editing']['view']['focus']();}),_0x44812f=_0x318eda['createAnnotationView'](this['editor']['locale'],_0x18cfd8),_0x44812f['bind']('isDirty')['to'](_0x18cfd8,'isDirty'),_0x44812f['bind']('length')['to'](_0x18cfd8),_0x44812f['bind']('type')['to'](_0x18cfd8,'type',_0x12699e=>'suggestion-'+_0x12699e),_0x18cfd8['on']('escape',()=>{_0x5c7995['fire']('escape');}),this['_annotationViews']['set'](_0x419145['id'],_0x44812f));const _0x471f5a=_0x3f14a6['createCommentThreadController'](_0x419145['commentThread'],_0x18cfd8),_0x5b13cc=new kn(_0x26867b,_0x419145,_0x18cfd8,_0x471f5a),_0x19ed99=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x553dc5=>_0x553dc5['isInContent']);_0x18cfd8['descriptionParts']=_0x26867b['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x19ed99),this['_suggestionToController']['set'](_0x419145,_0x5b13cc),this['_viewToController']['set'](_0x18cfd8,_0x5b13cc);const _0x2cf790=()=>{const _0x1249f3=[],_0x28782b=_0x419145['getAllAdjacentSuggestions']()['filter'](_0x4bfa0d=>_0x4bfa0d['isInContent']);for(const _0x15ee8f of _0x28782b)_0x1249f3['push'](..._0x15ee8f['getMarkers']());return _0x2dde48(_0x26867b['editing'],_0x1249f3);};_0x5c7995=_0x318eda['createAnnotation']({'view':_0x44812f,'target':_0x2cf790,'type':()=>'suggestion-'+_0x5b13cc['view']['type'],'isVisible':!!_0x2cf790()}),_0x3f14a6['_bindAnnotationToEditors'](_0x18cfd8,_0x5c7995),_0x318eda['add'](_0x5c7995),_0x4100b1['registerAnnotation'](_0x5c7995);}_destroyController(_0x3a4319){const _0x2f32da=this['editor']['plugins']['get'](_0x51a4b7),_0x53bb25=this['editor']['plugins']['get'](_0x320e85),_0xc03ed0=this['_suggestionToController']['get'](_0x3a4319),_0x962433=_0xc03ed0['view'],_0x39b33c=_0x53bb25['getByInnerView'](_0x962433);_0x2f32da['_unbindEditors'](_0x962433),_0x39b33c&&_0x53bb25['remove'](_0x39b33c),this['_suggestionToController']['delete'](_0x3a4319),this['_viewToController']['delete'](_0x962433),_0xc03ed0['destroy']();}_updateController(_0x69740e){if(!_0x69740e['isInContent']||!this['_suggestionToController']['has'](_0x69740e))return;const _0x24ae69=this['editor']['plugins']['get'](an),_0x566e62=this['_suggestionToController']['get'](_0x69740e),_0x3903e7=_0x69740e['getAllAdjacentSuggestions']();_0x566e62['view']['descriptionParts']=_0x24ae69['descriptionFactory']['getDescriptions'](_0x3903e7);}destroy(){for(const _0xa9cf08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa9cf08);for(const _0x244b83 of this['_annotationViews']['values']())_0x244b83['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x112c72){return'model'in _0x112c72;}var Mn=class extends _0x42a28f{static get requires(){return[an,Nn,_0x21a992];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3ff75a){this['editor']['plugins']['get'](an)['adapter']=_0x3ff75a;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x521f5c){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x521f5c);}getSuggestions({skipNotAttached:_0x28c672=!0x1,toJSON:_0x2ed71a=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x28c672,'toJSON':_0x2ed71a});}getSuggestion(_0xc100c0){return this['editor']['plugins']['get'](an)['getSuggestion'](_0xc100c0);}};const On=['Pagination'];var wn=class extends _0x42a28f{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x489bb0=this['editor'];if(_0x489bb0['config']['define']('trackChangesData.editorCreator',_0x4f86e4=>{const _0x239ce3=_0x489bb0['model']['document']['getRootNames']()['reduce']((_0x5457b2,_0x5f1eb3)=>(_0x5457b2[_0x5f1eb3]='',_0x5457b2),{});return _0x489bb0['constructor']['create'](_0x239ce3,_0x4f86e4);}),'function'!=typeof _0x489bb0['config']['get']('trackChangesData')['editorCreator'])throw new _0x5f6c00('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x8c05a4){return vn(this['editor'],!0x0,_0x8c05a4);}getDataWithDiscardedSuggestions(_0x4f7556){return vn(this['editor'],!0x1,_0x4f7556);}},Fn=class extends _0x42a28f{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31cafb){super(_0x31cafb),this['result']='end',_0x31cafb['editing']['view']['_overlayModeHint']='auto',_0x31cafb['_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 Bn(_0x1e7a46){return void 0x0!==_0x1e7a46['getRootsAttributes'];}async function vn(_0x3d0e8e,_0x212928,_0x10a144){const _0x1145cc=_0x1d3fee(_0x3d0e8e,On);if(_0x1145cc['plugins']['push'](an,Fn),Bn(_0x3d0e8e)){_0x1145cc['roots']=Object['create'](null);for(const _0x1b4403 of _0x3d0e8e['model']['document']['getRootNames']())_0x1145cc['roots'][_0x1b4403]={'modelAttributes':_0x3d0e8e['getRootAttributes'](_0x1b4403)};}const _0x218362=document['createDocumentFragment'](),_0x2eb5bf=_0x3d0e8e['config']['get']('trackChangesData')['editorCreator'],_0x26d00e=await _0x2eb5bf(_0x1145cc,()=>function(_0x280931){const _0x335091=document['createElement']('div');return _0x280931['appendChild'](_0x335091),_0x335091;}(_0x218362));!function(_0x3d9aa5,_0x190b78){const _0x4887f1=_0x3d9aa5['model']['document']['getRootNames']()['reduce']((_0x50fbed,_0x11979e)=>(_0x50fbed[_0x11979e]=_0x3d9aa5['data']['get']({'rootName':_0x11979e}),_0x50fbed),{}),_0x45f1eb=_0x3d9aa5['plugins']['get']('Users')['users']['map'](_0x59edff=>({'id':_0x59edff['id'],'name':_0x59edff['name']})),_0x3795ee=_0x3d9aa5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5eaaa7=_0x3d9aa5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5629b6=_0x190b78['plugins']['get']('Users'),_0x2b9a76=_0x190b78['plugins']['get']('TrackChangesEditing'),_0x43b757=_0x190b78['plugins']['get']('CommentsRepository');for(const _0x341fd2 of _0x43b757['getCommentThreads']())_0x341fd2['remove']();for(const _0x26adba of _0x45f1eb)_0x5629b6['getUser'](_0x26adba['id'])||_0x5629b6['addUser'](_0x26adba);_0x5629b6['me']||_0x5629b6['useAnonymousUser']();for(const _0x320cd6 of _0x5eaaa7)_0x43b757['addCommentThread'](_0x320cd6);for(const _0x3d4289 of _0x3795ee)_0x2b9a76['addSuggestionData'](_0x3d4289);_0x190b78['data']['set'](_0x4887f1);}(_0x3d0e8e,_0x26d00e),_0x26d00e['execute'](_0x212928?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a72a4=Bn(_0x26d00e)?_0x26d00e['getFullData'](_0x10a144):_0x26d00e['data']['get'](_0x10a144);return await _0x26d00e['destroy'](),_0x5a72a4;}var Dn=class extends _0x38a93a{options;constructor(_0x10b96b,_0x5c0d15){super(_0x10b96b),this['options']=_0x5c0d15,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(_0xbd50ee,_0x382f8b){if(!this['element'])return;const _0x40c48d=[];for(const [_0x1c4f6c,_0x19075b]of _0xbd50ee){const _0x2322c9=document['createElement']('div');_0x2322c9['setAttribute']('data-ck-root-name',_0x1c4f6c),_0x2322c9['className']=_0x19075b['classes']+'\x20ck-track-changes-preview__root-container',_0x2322c9['innerHTML']=_0x19075b['content'],_0x40c48d['push'](_0x2322c9);}_0x382f8b(this['element'],_0x40c48d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x1111ef{constructor(_0x4b8a3a){super(_0x4b8a3a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2db7cc=this['editor'],_0x38b916=_0x2db7cc['locale'],_0x46a720=_0x2db7cc['plugins']['get']('Dialog');let _0x44db9a;const _0x216f33=function(_0x197db0){const _0xb9686a={};if('editables'in _0x197db0['ui']['view']){for(const [_0x1db79b,_0x322b60]of Object['entries'](_0x197db0['ui']['view']['editables']))_0xb9686a[_0x1db79b]=_0x322b60['element'];}else _0xb9686a[_0x197db0['model']['document']['getRootNames']()[0x0]]=_0x197db0['ui']['view']['editable']['element'];return _0xb9686a;}(_0x2db7cc),_0x2eec73=function(_0x2a5f88){let _0x244be2=0x0;for(const _0x1fe29f of Object['values'](_0x2a5f88))_0x244be2=Math['max'](_0x244be2,_0x1fe29f['getBoundingClientRect']()['width']);let _0x4250ab=0x0;for(const _0x5cfe94 of Object['values'](_0x2a5f88))_0x4250ab+=_0x5cfe94['getBoundingClientRect']()['height'];const _0x1d3b3d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x244be2,'height':Math['min'](_0x4250ab,_0x1d3b3d)};}(_0x216f33);_0x46a720['show']({'id':'finalContentPreview','title':Mt(_0x38b916,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x38b916,{'dialogRects':_0x2eec73}),'onHide':()=>{_0x44db9a['detachFromDom']();},'onShow':()=>{_0x2db7cc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3405f2=>{const _0x517192=this['_standarizeRootsData'](_0x3405f2,_0x2db7cc,_0x216f33);_0x46a720['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x517192,_0x2db7cc['config']['get']('trackChanges.preview.renderFunction'));}),_0x44db9a=new _0x25c7c9(_0x38b916,[_0x46a720['view']]),_0x44db9a['attachToDom'](),_0x44db9a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2db7cc['once']('destroy',()=>{_0x44db9a['detachFromDom']();});const _0x2c6d70=_0x46a720['view']['headerView']['class'];_0x46a720['view']['headerView']['class']=_0x2c6d70?_0x2c6d70+'\x20ck-reset_all':'ck-reset_all',_0x46a720['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x46a720['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5dc233=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x354557=_0x5dc233['previewMode'],_0x5d8bb6={};if('$labels'===_0x354557){for(const _0x2cbd9c of _0x5dc233['getMergeFieldsIds']())_0x5d8bb6[_0x2cbd9c]=_0x5dc233['getLabel'](_0x2cbd9c)||_0x2cbd9c;}else{const _0x4d5036='$defaultValues'===_0x354557?_0x5dc233['getDefaultValues']():_0x5dc233['getDataSetValues'](_0x354557,!0x0);for(const _0x1d89ef of Object['entries'](_0x4d5036)){const [_0x198bef,_0x2aa671]=_0x1d89ef;_0x5d8bb6[_0x198bef]=null!==_0x2aa671?_0x2aa671:_0x5dc233['getLabel'](_0x198bef)||_0x198bef;}}return{'mergeFieldsData':_0x5d8bb6};}_standarizeRootsData(_0x1a084e,_0x59af66,_0x5aabee){let _0x15c5c4;_0x15c5c4='string'==typeof _0x1a084e?{[_0x59af66['model']['document']['getRootNames']()[0x0]]:_0x1a084e}:_0x1a084e;const _0x49a547=this['_fixMediaEmbeds'](_0x15c5c4,_0x59af66);return function(_0x164f9c,_0xa38999){for(const [_0x4f3b0f,_0x56dcd9]of _0x164f9c)_0x56dcd9['classes']=_0xa38999[_0x4f3b0f]['classList']['value']['replace']('ck-focused','');return _0x164f9c;}(this['_sortRoots'](_0x59af66)['reduce']((_0x4c29c5,_0x30d990)=>(_0x4c29c5['push']([_0x30d990,{'content':_0x49a547[_0x30d990],'classes':''}]),_0x4c29c5),[]),_0x5aabee);}['_fixMediaEmbeds'](_0x1b6cc7,_0x42b5cd){if(!_0x42b5cd['plugins']['has']('MediaEmbedEditing'))return _0x1b6cc7;const _0x15aae8=_0x42b5cd['plugins']['get']('MediaEmbedEditing');for(const [_0x2aca24,_0x3b4507]of Object['entries'](_0x1b6cc7)){const _0x390572=document['createElement']('div');_0x390572['innerHTML']=_0x3b4507,_0x390572['querySelectorAll']('figure.media')['forEach'](_0x52d2aa=>{const _0x115c5d=_0x52d2aa['querySelector']('oembed');if(_0x115c5d){const _0x4e4685=_0x115c5d['getAttribute']('url');if(_0x4e4685){const _0x28a9db=_0x15aae8['registry']['getMediaViewElement'](new ot(_0x42b5cd['editing']['view']['document']),_0x4e4685,{'elementName':'','renderForEditingView':!0x0}),_0x29f090=document['createElement']('div');_0x29f090['classList']['add']('ck-media__wrapper'),_0x28a9db['render'](_0x29f090,_0x42b5cd['editing']['view']['domConverter']),_0x115c5d['replaceWith'](_0x29f090);}}}),_0x1b6cc7[_0x2aca24]=_0x390572['innerHTML'];}return _0x1b6cc7;}_sortRoots(_0x45b415){if(!function(_0x2776bd){return void 0x0!==_0x2776bd['getRootsAttributes'];}(_0x45b415))return _0x45b415['model']['document']['getRootNames']();const _0x126c1e=[],_0x1541b2=new Map();for(const _0x290cc9 of _0x45b415['model']['document']['getRootNames']()){const _0x383aaf=_0x45b415['editing']['view']['getDomRoot'](_0x290cc9)['getClientRects']()['item'](0x0);_0x126c1e['push'](_0x290cc9),_0x1541b2['set'](_0x290cc9,_0x383aaf);}return _0x126c1e['sort']((_0x36aa4e,_0x57bbe1)=>{const _0xefa408=_0x1541b2['get'](_0x36aa4e),_0x36b45d=_0x1541b2['get'](_0x57bbe1);return _0xefa408['y']-_0x36b45d['y']||_0xefa408['x']-_0x36b45d['x'];}),_0x126c1e;}},Pn=class extends _0x42a28f{static get requires(){return[wn,_0x4820ab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a07a4){super(_0x5a07a4),_0x5a07a4['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x5a07a4['config']['define']('trackChanges.preview.renderFunction',(_0x260f96,_0x12e053)=>{for(const _0x480420 of _0x12e053)_0x260f96['appendChild'](_0x480420);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};
23
+ import{Command as _0x5240c7,PendingActions as _0x1d0b4b,Plugin as _0x18ca51}from'@ckeditor/ckeditor5-core';import{Annotations as _0x49d8ef,Comments as _0x28eb54,CommentsRepository as _0x460b74,EditorAnnotations as _0xac8168}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2f2b37,Collection as _0x3bac41,FocusTracker as _0x43effe,KeystrokeHandler as _0x1ba41c,ObservableMixin as _0xcf2467,getEnvKeystrokeText as _0x4c674e,insertToPriorityArray as _0x4aa6c4,logWarning as _0x51fc13,priorities as _0x4c920d,uid as _0x3f17ac}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x46eb6d,IconCancel as _0x1268e3,IconCheck as _0x115b3b,IconSparkle as _0x546db2,IconTrackChanges as _0x196b0a}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x38e572,Dialog as _0x501745,FocusCycler as _0x34bd86,ListSeparatorView as _0x4db965,MenuBarMenuListItemButtonView as _0x3df0ff,MenuBarMenuListItemView as _0x5786e0,MenuBarMenuListView as _0x1d0682,MenuBarMenuView as _0x68eb0b,SplitButtonView as _0x1c1982,UIModel as _0x154046,View as _0x14c3e1,ViewCollection as _0x1a2b02,addListToDropdown as _0x1da8f7,createDropdown as _0x4ec29d,normalizeColorOptions as _0x4a32ba}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x3bf644,CollaborationUserColor as _0x19eac1,FOCUS_ANNOTATION_KEYSTROKE as _0x3061c5,LateFocusButtonView as _0x316114,PillView as _0x5893a8,SuggestionsConversion as _0x3af144,User as _0x279dde,UserView as _0x3bcaa8,Users as _0x7b02ea,fixElementSuggestionRange as _0x1a0f4e,getAllMarkersDomElementsSorted as _0x23041e,getDateTimeFormatter as _0x185254,hashObject as _0x3bfe73,isInvalidAttributeOperation as _0x11e8cd,sanitizeEditorConfig as _0x5056f4,setupThreadKeyboardNavigation as _0x462de1,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x5240c7{['_enabledCommands'];constructor(_0x1c9a06,_0x677e9d){super(_0x1c9a06),this['_enabledCommands']=_0x677e9d,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 _0x2c41e2 of this['editor']['commands']['commands']())_0x2c41e2['affectsData']&&!this['_enabledCommands']['has'](_0x2c41e2)&&_0x2c41e2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33964f of this['editor']['commands']['commands']())_0x33964f['affectsData']&&!this['_enabledCommands']['has'](_0x33964f)&&_0x33964f['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x5240c7{_suggestions;constructor(_0x5bf8c0,_0x2b5596){super(_0x5bf8c0),this['_suggestions']=_0x2b5596,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1d8cbf){const _0x4b8d86=this['_suggestions']['get'](_0x1d8cbf);if(!_0x4b8d86)throw new _0x2f2b37('track-changes-accept-suggestion-not-found',this);const _0x287a17=_0x4b8d86['getRanges']();this['editor']['model']['canEditAt'](_0x287a17)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b8d86);}},pt=class extends _0x5240c7{_suggestions;constructor(_0x17f908,_0x1ab323){super(_0x17f908),this['_suggestions']=_0x1ab323,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x138b43){const _0x53743a=this['_suggestions']['get'](_0x138b43);if(!_0x53743a)throw new _0x2f2b37('track-changes-discard-suggestion-not-found',this);const _0x3696c4=_0x53743a['getRanges']();this['editor']['model']['canEditAt'](_0x3696c4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x53743a);}};function Lt(_0x2ce2cc,_0x34ad6f){let _0x5a8611='';return _0x5a8611+=_0x2ce2cc['split']('*')['map']((_0x1da873,_0x4ee22e)=>_0x4ee22e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x1da873)+'</span>':It(_0x1da873))['join'](''),_0x34ad6f&&(_0x5a8611+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x34ad6f['value']+'\x22\x20title=\x22'+_0x34ad6f['title']+'\x22></span>'),_0x5a8611;}function It(_0x5be446){const _0x37452a=document['createElement']('span');return _0x37452a['innerText']=_0x5be446,_0x37452a['innerHTML'];}function At(_0x58e842){return _0x58e842['sort']((_0x3acc91,_0x3b8e7e)=>'attribute'===_0x3acc91['type']&&'attribute'!==_0x3b8e7e['type']?-0x1:'attribute'!==_0x3acc91['type']&&'attribute'===_0x3b8e7e['type']?0x1:'deletion'==_0x3acc91['type']&&'deletion'!=_0x3b8e7e['type']?-0x1:'deletion'!=_0x3acc91['type']&&'deletion'==_0x3b8e7e['type']?0x1:0x0);}function bt(_0x505b26,_0xd533d7){let _0x272a07,_0x190e91=0x0;const _0x464fcf=[],_0x53e8f1=_0xd533d7['schema'];for(;_0x190e91<_0x505b26['length'];){const _0x126a34=_0x505b26[_0x190e91],_0x5464a3=_0x505b26[_0x190e91+0x1];_0x272a07||(_0x272a07=_0xd533d7['createPositionBefore'](_0x126a34)),kt(_0xd533d7,_0x126a34,_0x5464a3)||(_0x464fcf['push'](_0xd533d7['createRange'](_0x272a07,_0x53e8f1['isObject'](_0x126a34)?_0xd533d7['createPositionAfter'](_0x126a34):_0xd533d7['createPositionAt'](_0x126a34,'end'))),_0x272a07=null),_0x190e91++;}return _0x464fcf;}function kt(_0x35173c,_0x5476fd,_0x14a048){if(!_0x14a048)return!0x1;const _0x3a793e=_0x35173c['createPositionAfter'](_0x5476fd),_0x583082=_0x35173c['createPositionBefore'](_0x14a048);return _0x3a793e['isTouching'](_0x583082);}function Ct(_0x476d76,_0xee3935,_0x4dc8f0){for(;_0x4dc8f0['length'];){const _0x4eb56b=_0x4dc8f0['splice'](0x0,0x64);_0x476d76['change'](()=>{for(const _0x44730e of _0x4eb56b)_0x44730e['isInContent']&&_0xee3935['execute'](_0x44730e['id']);});}}var Rt=class extends _0x5240c7{['_command'];_suggestions;constructor(_0x2abd58,_0xeb40fe,_0x2e2cd6){super(_0x2abd58),this['_command']=_0xeb40fe,this['_suggestions']=_0x2e2cd6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e98d0=Array['from'](this['_suggestions']['values']())['some'](_0x3796d1=>_0x3796d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e98d0;}execute(){const _0x2d56d3=At(Array['from'](this['_suggestions']['values']()));for(const _0xd0e4e2 of _0x2d56d3){const _0x49ec95=_0xd0e4e2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49ec95))return;}Ct(this['editor']['model'],this['_command'],_0x2d56d3);}},yt=class extends _0x5240c7{['_command'];_suggestions;_selectedSuggestions;constructor(_0x3a173a,_0x40346e,_0x49b84b){super(_0x3a173a),this['_command']=_0x40346e,this['_suggestions']=_0x49b84b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eead0=this['editor']['model']['document']['selection'],_0x584082=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x590f5e,_0x4a1507){const _0x474f54=Array['from'](_0x590f5e['getRanges']()),_0x212a6b=new Set();for(const _0xbb4c99 of _0x4a1507)if(_0xbb4c99['isInContent']){for(const _0x203e45 of _0x474f54)for(const _0x37148c of _0xbb4c99['getRanges']())(_0x203e45['isIntersecting'](_0x37148c)||_0x590f5e['isCollapsed']&&!_0xbb4c99['isMultiRange']&&_0xbb4c99['next']&&_0x37148c['end']['isTouching'](_0x203e45['start']))&&_0x212a6b['add'](_0xbb4c99);}return _0x212a6b;}(_0x2eead0,_0x584082),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x312ba9=At(Array['from'](this['_selectedSuggestions']));for(const _0x3f081c of _0x312ba9){const _0x1707a7=_0x3f081c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1707a7))return;}Ct(this['editor']['model'],this['_command'],_0x312ba9);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0xcf2467();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x16b68e,_0x93b079){super(),this['id']=_0x93b079['id'],this['type']=_0x93b079['type'],this['subType']=_0x93b079['subType']||null,this['author']=_0x93b079['author'],this['creator']=_0x93b079['creator']||_0x93b079['author'],this['data']=null,this['_originalSuggestionId']=_0x93b079['originalSuggestionId']||null,this['_model']=_0x16b68e,this['_onAccept']=_0x93b079['onAccept'],this['_onDiscard']=_0x93b079['onDiscard'],this['_onAttributesChange']=_0x93b079['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x93b079['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 _0x699423=this;for(;_0x699423['previous'];)_0x699423=_0x699423['previous'];return _0x699423;}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'](_0x3ace03){this['_markerNames']['add'](_0x3ace03);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x382c1e=>this['_model']['markers']['get'](_0x382c1e))['filter'](_0x399768=>_0x399768);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x17ec4b=>{for(const _0x405ed2 of this['getMarkers']())_0x17ec4b['removeMarker'](_0x405ed2);}),this['_markerNames']['clear']();}['removeMarker'](_0x53d142){this['_model']['change'](_0xce9710=>{_0xce9710['removeMarker'](_0x53d142);}),this['_markerNames']['delete'](_0x53d142);}['addRange'](_0x5e42fd){const _0x3cc4c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x3cc4c1),this['_model']['change'](_0x1b214c=>{_0x1b214c['addMarker'](_0x3cc4c1,{'range':_0x5e42fd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x51c669){for(const _0x913b23 of this['getRanges']())if(_0x913b23['isIntersecting'](_0x51c669))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x304d4d=>_0x304d4d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x1eae3a,_0x286251)=>[..._0x1eae3a,..._0x286251['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x36a868=this['getRanges']();if(0x1!=_0x36a868['length'])return null;const _0x38079a=_0x36a868[0x0],_0x4dc452=_0x38079a['start']['nodeAfter'],_0x206218=_0x38079a['end']['nodeBefore'];return _0x4dc452 instanceof it?_0x4dc452!=_0x206218?null:_0x4dc452: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 _0x329b37=[];let _0x33602d=this['head'];for(;_0x33602d;)_0x329b37['push'](_0x33602d),_0x33602d=_0x33602d['next'];return _0x329b37;}setAttribute(_0xfd961e,_0x42a49e){const _0x1f03b5=at(this['attributes']);ut(_0x1f03b5,_0xfd961e,_0x42a49e),ct(_0x1f03b5,this['attributes'])||(this['attributes']=_0x1f03b5,this['_onAttributesChange'](_0x1f03b5));}removeAttribute(_0x2031af){const _0x146d05=at(this['attributes']);dt(_0x146d05,_0x2031af),ct(_0x146d05,this['attributes'])||(this['attributes']=_0x146d05,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 _0x3f17ac()['substr'](0x1,0x5);}};function Mt(_0x1910e4,_0x28c1b3,_0x264400){const _0x178d95=_0x1910e4['t'],t=_0x1910e4['t'];switch(_0x28c1b3){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',_0x264400);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x264400);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x264400);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x264400);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x264400);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',_0x264400);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x264400);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',_0x264400);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x264400);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x264400);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x264400);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x264400);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x264400);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x264400);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x264400);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x264400);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x264400);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x264400);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x264400);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x264400);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x264400);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x264400);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x264400);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x264400);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x264400);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'},_0x264400);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x264400);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x264400);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x264400);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x264400);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x264400);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x264400);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x264400);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'},_0x264400);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'},_0x264400);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x264400);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x264400);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x264400);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x264400);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'},_0x264400);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x264400);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'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x264400);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'},_0x264400);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x264400);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x264400);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x264400);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x264400);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x264400);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'},_0x264400);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x264400);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 _0x178d95({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x264400);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x178d95({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x264400);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x264400);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'},_0x264400);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'},_0x264400);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'},_0x264400);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28c1b3;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x2c184c,_0x4785ba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c184c,this['_locale']=_0x4785ba;}getDescriptions(_0x1ee20c){const _0x3f8418=[],_0x3e75a5=new Set(),_0x2ceb0=new Set();for(let _0x159c1a=0x0;_0x159c1a<_0x1ee20c['length'];_0x159c1a++){const _0x34550f=_0x1ee20c[_0x159c1a];if(!_0x34550f['isInContent'])continue;const _0x2b4c1a=this['_handleCustomCallbackDescription'](_0x34550f);if(_0x2b4c1a){if(null!=_0x34550f['subType']){if(_0x3e75a5['has'](_0x34550f['subType']))continue;_0x3e75a5['add'](_0x34550f['subType']);}_0x3f8418['push'](_0x2b4c1a);}else{if('attribute'==_0x34550f['type']){const _0x42b318=_0x34550f['data']['key'];if(_0x2ceb0['has'](_0x42b318))continue;_0x2ceb0['add'](_0x34550f['data']['key']),'$elementName'==_0x42b318?this['_handleRenameSuggestionDescription'](_0x3f8418,_0x34550f):this['_handleAttributeSuggestionDescription'](_0x3f8418,_0x34550f);continue;}'insertion'!=_0x34550f['type']&&'deletion'!=_0x34550f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f8418,_0x34550f,_0x1ee20c[_0x159c1a+0x1]);}}return this['_resolveDescriptionItems'](_0x3f8418);}registerDescriptionCallback(_0x208212){this['_customCallbacks']['push'](_0x208212);}registerElementLabel(_0x6095e3,_0x5f0ea3,_0xdfa05e=_0x4c920d['normal']){'function'==typeof _0x6095e3?_0x4aa6c4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6095e3,'label':_0x5f0ea3,'priority':_0xdfa05e}):this['_itemLabels']['set'](_0x6095e3,_0x5f0ea3);}registerAttributeLabel(_0xb1f576,_0x5c8613){this['_attributeLabels']['set'](_0xb1f576,_0x5c8613);}getItemLabel(_0x5aa582,_0x3539f0=0x1){let _0x4932e0;for(const _0x5047f9 of this['_itemLabelsCallbacks'])if(_0x5047f9['matchingCallback'](_0x5aa582)){_0x4932e0=_0x5047f9['label'];break;}return _0x4932e0||(_0x4932e0=this['_itemLabels']['get'](_0x5aa582['name'])),_0x4932e0?_0x4932e0(_0x3539f0):0x1!==_0x3539f0?_0x3539f0+'\x20'+_0x5aa582['name']+'s':''+_0x5aa582['name'];}_addDescriptionItems(_0x2b8a6f,_0x196661){const _0x17c441=_0x196661['getFirstRange']()['getWalker'](),_0x1c59ba='insertion'==_0x196661['type']?'add':'remove';for(const _0x2cfa6d of _0x17c441){const _0x47a432=_0x2cfa6d['item'],_0x1d74e5=_0x2b8a6f[_0x2b8a6f['length']-0x1];if(_0x47a432['is']('$textProxy'))_0x1d74e5&&_0x1d74e5['type']['indexOf']('Container')>-0x1&&_0x2b8a6f['pop'](),_0x1d74e5&&'text'==_0x1d74e5['type']?_0x1d74e5[_0x1c59ba]+=_0x47a432['data']:_0x2b8a6f['push']({'type':'text','add':'add'==_0x1c59ba?_0x47a432['data']:'','remove':'remove'==_0x1c59ba?_0x47a432['data']:''});else{if(this['_schema']['isObject'](_0x47a432)){const _0x41cea0=_0x47a432;if(_0x1d74e5&&_0x1d74e5['type']['indexOf']('Container')>-0x1&&_0x2b8a6f['pop'](),'elementEnd'==_0x2cfa6d['type'])continue;_0x1d74e5&&_0x1d74e5['type']==_0x1c59ba+'Object'&&_0x1d74e5['element']['name']==_0x41cea0['name']?_0x1d74e5['quantity']++:_0x2b8a6f['push']({'type':_0x1c59ba+'Object','element':_0x41cea0,'quantity':0x1}),_0x17c441['skip'](_0x5b10ee=>!('elementEnd'==_0x5b10ee['type']&&_0x5b10ee['item']==_0x47a432));}else{if(this['_schema']['checkChild'](_0x47a432,'$text')||_0x47a432['is']('element','softBreak')){const _0x5e5f52=_0x47a432;if('add'==_0x1c59ba&&'elementStart'==_0x2cfa6d['type']||'remove'==_0x1c59ba&&'elementEnd'==_0x2cfa6d['type'])continue;if(_0x1d74e5&&-0x1==_0x1d74e5['type']['indexOf']('Container')){'text'==_0x1d74e5['type']&&(_0x1d74e5[_0x1c59ba]+='\x0a');continue;}let _0x1b79bb;if(_0x1b79bb='add'==_0x1c59ba?_0x5e5f52['nextSibling']&&!this['_schema']['isObject'](_0x5e5f52['nextSibling'])?_0x5e5f52['nextSibling']:null:_0x5e5f52['previousSibling']&&!this['_schema']['isObject'](_0x5e5f52['previousSibling'])?_0x5e5f52['previousSibling']:null,_0x5e5f52['isEmpty']||_0x1b79bb&&_0x1b79bb['isEmpty']){const _0x23b88e=_0x1b79bb&&_0x1b79bb['isEmpty']?_0x1b79bb:_0x5e5f52;_0x1d74e5&&_0x1d74e5['type']==_0x1c59ba+'EmptyContainer'&&_0x1d74e5['element']['name']==_0x23b88e['name']?_0x1d74e5['quantity']++:_0x2b8a6f['push']({'type':_0x1c59ba+'EmptyContainer','element':_0x23b88e,'quantity':0x1});}else _0x2b8a6f['push']({'type':_0x1c59ba+'Container','element':_0x5e5f52});}}}}}_resolveDescriptionItems(_0x1643c0){const _0x5164be=this['_locale'],_0x43d839=[],_0xb067d1=[],_0x1c7940=[];for(const _0x44c85b of _0x1643c0)switch(_0x44c85b['type']){case'text':if(_0x44c85b['add']=_0x44c85b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44c85b['remove']=_0x44c85b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44c85b['add']&&''!=_0x44c85b['remove']){_0x43d839['push']({'type':'replace','content':Mt(_0x5164be,'REPLACE_TEXT',['\x22'+_0x44c85b['remove']+'\x22','\x22'+_0x44c85b['add']+'\x22'])});continue;}if(null!=_0x44c85b['add']['match'](/^ +$/)){_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0',Mt(_0x5164be,'ELEMENT_SPACE',_0x44c85b['add']['length']))});continue;}if(null!=_0x44c85b['remove']['match'](/^ +$/)){_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0',Mt(_0x5164be,'ELEMENT_SPACE',_0x44c85b['remove']['length']))});continue;}if(''!=_0x44c85b['add']){_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0','\x22'+_0x44c85b['add']+'\x22')});continue;}_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0','\x22'+_0x44c85b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Insert:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Remove:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'addContainer':_0x43d839['push']({'type':'insertion','content':Mt(_0x5164be,'*Split:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'removeContainer':_0x43d839['push']({'type':'deletion','content':Mt(_0x5164be,'*Merge:*\x20%0',this['getItemLabel'](_0x44c85b['element'],_0x44c85b['quantity']))});continue;case'addFormat':_0xb067d1['push'](_0x44c85b['key']);continue;case'removeFormat':_0x1c7940['push'](_0x44c85b['key']);continue;default:_0x43d839['push'](_0x44c85b);}if(_0xb067d1['length']){const _0x1addb0=_0xb067d1['map'](_0x3e2375=>this['_attributeLabels']['has'](_0x3e2375)?this['_attributeLabels']['get'](_0x3e2375):_0x3e2375)['join'](',\x20');_0x43d839['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x1addb0)});}if(_0x1c7940['length']){const _0x4608a7=_0x1c7940['map'](_0x99dcaf=>this['_attributeLabels']['has'](_0x99dcaf)?this['_attributeLabels']['get'](_0x99dcaf):_0x99dcaf)['join'](',\x20');_0x43d839['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4608a7)});}return _0x43d839;}_handleCustomCallbackDescription(_0x566006){for(const _0x552552 of this['_customCallbacks']){const _0x22fdb6=_0x552552(_0x566006);if(_0x22fdb6&&'type'in _0x22fdb6)return _0x22fdb6;}}_handleAttributeSuggestionDescription(_0xfc181f,_0xe7b5b6){const _0x5849ab=_0xe7b5b6['data'],_0x3aa424=void 0x0===_0x5849ab['newValue']?'removeFormat':'addFormat';_0xfc181f['push']({'type':_0x3aa424,'key':_0x5849ab['key']});}_handleRenameSuggestionDescription(_0x29ce83,_0x890505){_0x29ce83['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x890505['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x3e1ba8,_0x2249c5,_0x422401){if(this['_addDescriptionItems'](_0x3e1ba8,_0x2249c5),_0x422401&&_0x422401['getFirstRange']()&&!_0x2249c5['getFirstRange']()['end']['isEqual'](_0x422401['getFirstRange']()['start'])){const _0x42ae50=_0x3e1ba8[_0x3e1ba8['length']-0x1],_0x3af2df='insertion'==_0x2249c5['type']?'add':'remove';_0x42ae50&&'text'==_0x42ae50['type']&&(_0x42ae50[_0x3af2df]+='\x0a');}}},wt=class extends _0x18ca51{afterInit(){const _0x66bbd7=this['editor'],_0x8a0f4=_0x66bbd7['plugins']['get']('TrackChangesEditing');_0x66bbd7['commands']['get']('showAIAssistant')&&_0x8a0f4['enableCommand']('showAIAssistant');}},Ft=class extends _0x18ca51{afterInit(){const _0x1da936=this['editor'],_0x5717b8=_0x1da936['plugins']['get']('TrackChangesEditing');_0x1da936['commands']['get']('toggleAi')&&_0x5717b8['enableCommand']('toggleAi');}},Bt=class extends _0x18ca51{afterInit(){const _0x4fdee7=this['editor'],_0x34dda4=_0x4fdee7['plugins']['get']('TrackChangesEditing');_0x4fdee7['commands']['get']('aiQuickAction')&&_0x34dda4['enableCommand']('aiQuickAction');}},vt=class extends _0x18ca51{afterInit(){const _0x352fbc=this['editor'],_0x115726=_0x352fbc['locale'];if(!_0x352fbc['plugins']['has']('AlignmentEditing'))return;const _0x36cda9=_0x352fbc['plugins']['get']('TrackChangesEditing');_0x36cda9['enableDefaultAttributesIntegration']('alignment'),_0x36cda9['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x115726,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d4a1c=this['editor'],_0x307752=_0x5d4a1c['locale'];_0x5d4a1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x356330=>{if('formatBlock'!=_0x356330['type'])return;const {data:_0x111802}=_0x356330;if(_0x111802&&'alignment'==_0x111802['commandName']){const _0x575b40=_0x111802['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x307752,'*Format:*\x20%0',function(_0x215a3b){switch(_0x215a3b){case'left':return Mt(_0x307752,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x307752,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x307752,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x307752,'FORMAT_JUSTIFY_TEXT');}}(_0x575b40))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x18ca51{afterInit(){const _0x37f0d9=this['editor'],_0x13fcf4=_0x37f0d9['plugins']['get']('TrackChangesEditing'),_0x340f7e=_0x37f0d9['locale'];for(const _0x3f1b86 of Dt){if(!_0x37f0d9['plugins']['has'](_0x3f1b86))continue;const _0xa36198=_0x3f1b86['slice'](0x0,-0x7)['toLowerCase'](),_0x5e8d38='FORMAT_'+_0xa36198['toUpperCase']();_0x13fcf4['enableDefaultAttributesIntegration'](_0xa36198),_0x13fcf4['descriptionFactory']['registerAttributeLabel'](_0xa36198,Mt(_0x340f7e,_0x5e8d38));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x28a13c=this['editor'],_0x3dcc56=_0x28a13c['locale'],_0x4f96ae=_0x28a13c['plugins']['get']('TrackChangesEditing');function _0x3d1ea1(_0x198ba2,_0x6d6160){_0x4f96ae['descriptionFactory']['registerDescriptionCallback'](_0x58694b=>{if('formatInline'!=_0x58694b['type'])return;const {data:_0x25a377}=_0x58694b;return _0x25a377&&_0x25a377['commandName']===_0x198ba2?_0x25a377['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3dcc56,'*Format:*\x20%0',_0x6d6160)}:{'type':'format','content':Mt(_0x3dcc56,'*Remove\x20format:*\x20%0',_0x6d6160)}:void 0x0;});}_0x3d1ea1('bold',Mt(_0x3dcc56,'FORMAT_BOLD')),_0x3d1ea1('italic',Mt(_0x3dcc56,'FORMAT_ITALIC')),_0x3d1ea1('underline',Mt(_0x3dcc56,'FORMAT_UNDERLINE')),_0x3d1ea1('code',Mt(_0x3dcc56,'FORMAT_CODE')),_0x3d1ea1('strikethrough',Mt(_0x3dcc56,'FORMAT_STRIKETHROUGH')),_0x3d1ea1('subscript',Mt(_0x3dcc56,'FORMAT_SUBSCRIPT')),_0x3d1ea1('superscript',Mt(_0x3dcc56,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x18ca51{afterInit(){const _0x5d0296=this['editor'],_0x3e7473=_0x5d0296['locale'];if(!_0x5d0296['plugins']['has']('BlockQuoteEditing'))return;const _0xe661c6=_0x5d0296['plugins']['get']('TrackChangesEditing'),_0x3e8c63=this['editor']['commands']['get']('blockQuote');_0xe661c6['enableCommand']('blockQuote',(_0x489dd7,_0x37347b={})=>{const _0x876fea=this['editor']['model']['document']['selection'],_0x3b3965=_0x37347b&&void 0x0!==_0x37347b['forceValue']?_0x37347b['forceValue']:!_0x3e8c63['value'];let _0xec3e65=[];if(_0x3b3965){const _0xf101ca=Array['from'](_0x876fea['getSelectedBlocks']())['filter'](_0x234638=>xt(_0x234638)||function(_0x47b3ea,_0x273431){const _0x57304f=_0x273431['createContext'](_0x47b3ea['parent']);return!!_0x273431['checkChild'](_0x57304f,'blockQuote')&&!!_0x273431['checkChild'](_0x57304f['push']('blockQuote'),_0x47b3ea);}(_0x234638,this['editor']['model']['schema']));_0xec3e65=bt(_0xf101ca,_0x5d0296['model']);}else{const _0xc509ee=Array['from'](_0x876fea['getSelectedBlocks']())['filter'](_0x3c997b=>xt(_0x3c997b));_0xec3e65=bt(_0xc509ee,_0x5d0296['model']);}_0x5d0296['model']['change'](()=>{for(const _0x166689 of _0xec3e65)_0xe661c6['markBlockFormat'](_0x166689,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b3965}]});});}),_0xe661c6['descriptionFactory']['registerDescriptionCallback'](_0x1c16b4=>{const {data:_0x35fa14}=_0x1c16b4;if(_0x35fa14&&'blockQuote'==_0x35fa14['commandName']){const _0x523aa2=Mt(_0x3e7473,'ELEMENT_BLOCK_QUOTE');return _0x35fa14['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3e7473,'*Set\x20format:*\x20%0',_0x523aa2)}:{'type':'format','content':Mt(_0x3e7473,'*Remove\x20format:*\x20%0',_0x523aa2)};}});}};function xt(_0x3758e2){return'blockQuote'==_0x3758e2['parent']['name'];}var Gt=class extends _0x18ca51{afterInit(){const _0xe5a02a=this['editor'],_0x5877d4=_0xe5a02a['locale'],_0x6c4677=_0xe5a02a['plugins']['get']('TrackChangesEditing');_0xe5a02a['plugins']['has']('BookmarkEditing')&&(_0x6c4677['enableCommand']('insertBookmark'),_0x6c4677['enableDefaultAttributesIntegration']('updateBookmark'),_0x6c4677['descriptionFactory']['registerDescriptionCallback'](_0x53771d=>{if('insertion'!=_0x53771d['type']&&'deletion'!=_0x53771d['type']&&'attribute'!=_0x53771d['type'])return;const _0x467308=_0x53771d['getContainedElement']();if(null==_0x467308)return;if(!_0x467308['is']('element','bookmark'))return;const _0x4e9a6d=_0x467308['getAttribute']('bookmarkId');if('insertion'==_0x53771d['type'])return{'type':'insertion','content':Mt(_0x5877d4,'*Insert:*\x20%0','\x22'+_0x4e9a6d+'\x22\x20'+Mt(_0x5877d4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53771d['type'])return{'type':'deletion','content':Mt(_0x5877d4,'*Remove:*\x20%0','\x22'+_0x4e9a6d+'\x22\x20'+Mt(_0x5877d4,'ELEMENT_BOOKMARK'))};const {data:_0x26003f}=_0x53771d;return _0x26003f&&'bookmarkId'==_0x26003f['key']?{'type':'format','content':Mt(_0x5877d4,'*Set\x20bookmark:*\x20%0','\x22'+_0x26003f['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x18ca51{afterInit(){const _0xa54ef5=this['editor'];_0xa54ef5['plugins']['has']('CaseChange')&&(_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa54ef5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x18ca51{afterInit(){const _0x37130e=this['editor'];_0x37130e['commands']['get']('ckbox')&&_0x37130e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x18ca51{static get requires(){return[ht,gt];}constructor(_0x2fd13d){super(_0x2fd13d),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x153c4b=this['editor'],_0x5dee05=_0x153c4b['plugins']['get']('ClipboardMarkersUtils'),_0x4c25c1=_0x153c4b['plugins']['get'](gt);_0x5dee05['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x4c25c1['on']('outputTransformation',(_0x44c878,_0x2798bc)=>{const _0x16e264=this['_getSuggestionEntries'](_0x2798bc);for(const [_0x4b4aa3,_0x408721]of _0x2798bc['content']['markers']){const _0x8f7f50=rt['_fromRangeInDocumentFragment'](_0x408721,_0x153c4b['model']);function _0x4d6330(){_0x8f7f50['detach'](),_0x2798bc['content']['markers']['delete'](_0x4b4aa3);}_0x8f7f50['on']('change:drop',_0x4d6330),(_0x4b4aa3['startsWith']('suggestion:')||_0x4b4aa3['startsWith']('comment:'))&&_0x8f7f50['on']('change:range',()=>{_0x8f7f50['isCollapsed']&&_0x4d6330();}),_0x2798bc['content']['markers']['set'](_0x4b4aa3,_0x8f7f50);}const _0x532f1a=_0x16e264['filter'](_0xa9443=>'deletion'===_0xa9443['meta']['type'])['map'](_0x277c89=>_0x277c89['modelRange']);if(this['_shouldSkipDeletions'](_0x532f1a,_0x2798bc['content']))return[..._0x16e264]['forEach'](_0x5c5598=>{_0x2798bc['content']['markers']['get'](_0x5c5598['markerName'])['detach'](),_0x2798bc['content']['markers']['delete'](_0x5c5598['markerName']);}),void this['_restoreRegularRanges'](_0x2798bc['content']['markers']);[..._0x16e264]['forEach'](_0x1816e1=>{const _0x27d6ba=_0x153c4b['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1816e1['meta']['type'],_0x1816e1['meta']['subType'],'accept'),{markerName:_0x4ac0df,meta:_0x48204b}=_0x1816e1;if(_0x2798bc['content']['markers']['has'](_0x4ac0df)){switch(_0x48204b['type']){case'deletion':if('tableRow'===_0x48204b['subType']||'tableColumn'===_0x48204b['subType']){if(!_0x153c4b['plugins']['has']('TableUtils'))break;const _0x3276c2=_0x153c4b['plugins']['get']('TableUtils'),_0x579078=_0x3276c2['getSelectionAffectedTableCells'](_0x153c4b['model']['createSelection'](_0x2798bc['content']['markers']['get'](_0x4ac0df))),_0x3083ed=_0x579078[0x0]['findAncestor']('table');if('tableRow'===_0x48204b['subType']){const {first:_0x28fd97,last:_0x56052b}=_0x3276c2['getRowIndexes'](_0x579078);_0x3276c2['removeRows'](_0x3083ed,{'at':_0x28fd97,'rows':_0x56052b-_0x28fd97+0x1});}else{const {first:_0x1b9976,last:_0x34a709}=_0x3276c2['getColumnIndexes'](_0x579078);_0x3276c2['removeColumns'](_0x3083ed,{'at':_0x1b9976,'columns':_0x34a709-_0x1b9976+0x1});}break;}_0x27d6ba([_0x2798bc['content']['markers']['get'](_0x4ac0df)]);}_0x2798bc['content']['markers']['has'](_0x4ac0df)&&(_0x2798bc['content']['markers']['get'](_0x4ac0df)['detach'](),_0x2798bc['content']['markers']['delete'](_0x4ac0df));}}),this['_restoreRegularRanges'](_0x2798bc['content']['markers']);});}_getSuggestionEntries(_0x42dd25){const _0xc20b4a=_0x55c857=>'dragstart'===_0x42dd25['method']?_0x55c857['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x55c857;return Array['from'](_0x42dd25['content']['markers'])['map'](([_0xbff953,_0x168965])=>({'markerName':_0xbff953,'modelRange':_0x168965,'meta':tt(_0xc20b4a(_0xbff953))}))['filter'](({meta:_0x52be68})=>'suggestion'===_0x52be68['group']);}_shouldSkipDeletions(_0x4f8bf2,_0x477299){if(!_0x4f8bf2['length'])return!0x1;let _0x2285e6=[this['editor']['model']['createRangeIn'](_0x477299)];for(const _0x3ccd7a of _0x4f8bf2)_0x2285e6=_0x2285e6['flatMap'](_0x285d14=>_0x285d14['getDifference'](_0x3ccd7a));return!_0x2285e6['some'](_0x4e47c0=>this['editor']['model']['hasContent'](_0x4e47c0,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x383d41){[..._0x383d41['keys']()]['forEach'](_0x363351=>{const _0x171b16=_0x383d41['get'](_0x363351);_0x171b16['detach'](),_0x383d41['set'](_0x363351,_0x171b16['toRange']());});}},Vt=class extends _0x18ca51{afterInit(){const _0x470c78=this['editor'];if(!_0x470c78['plugins']['has']('CodeBlock'))return;const _0x1acd59=_0x470c78['plugins']['get']('TrackChangesEditing'),_0x5bc604=_0x470c78['locale'],_0x12355a=_0x470c78['config']['get']('codeBlock')['languages'],_0x23bf5b=_0x470c78['commands']['get']('codeBlock');_0x1acd59['enableCommand']('indentCodeBlock'),_0x1acd59['enableCommand']('outdentCodeBlock'),_0x1acd59['enableCommand']('codeBlock',(_0xb84f7c,_0x319151={})=>{const _0x4072d3=_0x470c78['model'],_0x4402c4=_0x470c78['model']['document']['selection'],_0x53dbb0=_0x319151&&void 0x0!==_0x319151['forceValue']?_0x319151['forceValue']:!_0x23bf5b['value'];let _0x1a2a4d;_0x319151['language']||(_0x319151['language']=_0x12355a[0x0]['language']),_0x1a2a4d=_0x53dbb0?Array['from'](_0x4402c4['getSelectedBlocks']())['filter'](_0x169d01=>{return jt(_0x169d01)||(_0x1ad7e9=_0x169d01,_0x1d977b=_0x4072d3['schema'],!_0x1ad7e9['is']('rootElement')&&!_0x1d977b['isLimit'](_0x1ad7e9)&&_0x1d977b['checkChild'](_0x1ad7e9['parent'],'codeBlock'));var _0x1ad7e9,_0x1d977b;}):Array['from'](_0x4402c4['getSelectedBlocks']())['filter'](_0x284008=>jt(_0x284008));const _0x222461=bt(_0x1a2a4d,_0x4072d3);_0x4072d3['change'](()=>{for(const _0x4c60a8 of _0x222461)_0x1acd59['markBlockFormat'](_0x4c60a8,{'commandName':'codeBlock','commandParams':[{..._0x319151,'forceValue':_0x53dbb0}],'formatGroupId':'blockName'});});}),(_0x1acd59['descriptionFactory']['registerElementLabel']('codeBlock',_0x20bd9a=>Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',_0x20bd9a)),_0x1acd59['descriptionFactory']['registerDescriptionCallback'](_0x273768=>{if('formatBlock'!=_0x273768['type'])return;const _0x2079f3=_0x5bc604['t'],{data:_0x59adc9}=_0x273768;if(!_0x59adc9||'codeBlock'!=_0x59adc9['commandName'])return;const _0x431eee=_0x59adc9['commandParams'][0x0]['language'],_0x33b8dc=_0x2079f3(_0x12355a['find'](_0x47a4e4=>_0x47a4e4['language']===_0x431eee)['label'])['toLowerCase']();return _0x59adc9['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5bc604,'*Set\x20format:*\x20%0',Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33b8dc+')')}:{'type':'format','content':Mt(_0x5bc604,'*Remove\x20format:*\x20%0',Mt(_0x5bc604,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x39b10c){return'codeBlock'==_0x39b10c['name'];}var zt=class extends _0x18ca51{afterInit(){const _0x14c506=this['editor'];_0x14c506['plugins']['has']('CommentsEditing')&&_0x14c506['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x18ca51{static get requires(){return[ft];}init(){const _0xabb812=this['editor'],_0x38ad1a=_0xabb812['plugins']['get']('TrackChangesEditing');_0x38ad1a['enableCommand']('delete');const _0x2f4c0b=_0xabb812['commands']['get']('deleteForward');_0x38ad1a['enableCommand']('deleteForward',(_0x3a2861,_0x100035={})=>{const _0x271a6c=_0xabb812['model']['createSelection'](_0xabb812['model']['document']['selection']);_0x271a6c['isCollapsed']&&_0xabb812['model']['modifySelection'](_0x271a6c,{'direction':'forward','unit':_0x100035['unit']});const _0x395c7c=_0x271a6c['getFirstRange'](),_0x52905e=rt['fromRange'](_0x395c7c);let _0x2615b2;_0x3a2861(_0x100035),_0x2615b2='$graveyard'==_0x52905e['root']['rootName']?_0xabb812['model']['createRange'](_0x395c7c['start']):_0xabb812['model']['createRange'](_0x52905e['start'],_0x52905e['end']),_0x52905e['detach'](),_0xabb812['model']['enqueueChange'](_0x2f4c0b['buffer']['batch'],_0x465e5d=>{_0x2f4c0b['buffer']['lock'](),_0x465e5d['setSelection'](_0x465e5d['createRange'](_0x2615b2['end'])),_0x2f4c0b['buffer']['unlock']();});});}},Xt=class extends _0x18ca51{afterInit(){const _0x53786a=this['editor'];if(!_0x53786a['plugins']['has']('ListEditing'))return;const _0x576094=_0x53786a['locale'],_0x19fd46=_0x53786a['plugins']['get']('TrackChangesEditing'),_0x4c0a1b=_0x53786a['plugins']['has']('TodoListEditing'),_0x3c80dc=!!_0x53786a['config']['get']('list.multiBlock');function _0x646713(_0x1d5de4){return{'type':'format','content':''+Mt(_0x576094,'*Set\x20format:*\x20%0',_0x1d5de4)};}function _0x27be39(_0x2977c0){return{'type':'format','content':''+Mt(_0x576094,'*Remove\x20format:*\x20%0',_0x2977c0)};}_0x19fd46['enableDefaultAttributesIntegration']('numberedList'),_0x19fd46['enableDefaultAttributesIntegration']('bulletedList'),_0x19fd46['enableDefaultAttributesIntegration']('customNumberedList'),_0x19fd46['enableDefaultAttributesIntegration']('customBulletedList'),_0x19fd46['enableDefaultAttributesIntegration']('indentList'),_0x19fd46['enableDefaultAttributesIntegration']('outdentList'),_0x19fd46['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19fd46['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c80dc&&(_0x19fd46['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19fd46['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4c0a1b&&(_0x19fd46['enableDefaultAttributesIntegration']('todoList'),_0x19fd46['enableDefaultAttributesIntegration']('checkTodoList'),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x3df739=>{const {data:_0xd39bd1}=_0x3df739;if(_0xd39bd1&&'todoListChecked'==_0xd39bd1['key'])return{'type':'format','content':_0xd39bd1['newValue']?Mt(_0x576094,'*Check\x20item*'):Mt(_0x576094,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3b4d90=>{if(_0x3b4d90['batch']['isUndo'])return!0x1;let _0x4eae87=!0x1;const _0x22de24=_0x19fd46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28d584=>'todoListChecked'===_0x19fd46['_getAttributeKey'](_0x28d584));for(const _0x4bbdf3 of _0x22de24)'todo'!=_0x4bbdf3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19fd46['_findSuggestions'](_0x4bbdf3['getFirstRange'](),'attribute')['find'](_0x5964c7=>'listType'===_0x19fd46['_getAttributeKey'](_0x5964c7['suggestion']))||(_0x3b4d90['removeMarker'](_0x4bbdf3['getFirstMarker']()),_0x4eae87=!0x0));return _0x4eae87;})),_0x19fd46['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x576094,'FORMAT_INDENT'));const _0x1f4dfb={'type':'format','content':''};_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x5845ef=>{const {data:_0x165f8b}=_0x5845ef;if(!_0x165f8b||'listType'!=_0x165f8b['key'])return;let _0x1288f7=_0x5845ef['head'];for(;_0x1288f7;){if(_0x1288f7['data']&&(('listStyle'==_0x1288f7['data']['key']||'listMarkerStyle'==_0x1288f7['data']['key'])&&(_0x1288f7['data']['newValue']&&'default'!=_0x1288f7['data']['newValue']||'default'!=_0x1288f7['data']['oldValue']&&!_0x165f8b['newValue'])||!_0x3c80dc&&'$elementName'==_0x1288f7['data']['key']))return _0x1f4dfb;_0x1288f7=_0x1288f7['next'];}if(null==_0x165f8b['newValue'])switch(_0x165f8b['oldValue']){case'bulleted':return _0x27be39(Mt(_0x576094,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27be39(Mt(_0x576094,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27be39(Mt(_0x576094,'ELEMENT_TODO_LIST'));}switch(_0x165f8b['newValue']){case'bulleted':return _0x646713(Mt(_0x576094,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x646713(Mt(_0x576094,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x646713(Mt(_0x576094,'ELEMENT_TODO_LIST'));}}),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x1ca3ef=>{const {data:_0x4bed22}=_0x1ca3ef;if(_0x4bed22&&'listIndent'==_0x4bed22['key'])return null==_0x4bed22['newValue']||null==_0x4bed22['oldValue']&&0x0==_0x4bed22['newValue']?_0x1f4dfb:void 0x0;}),_0x19fd46['descriptionFactory']['registerDescriptionCallback'](_0x18771d=>{if('attribute'!=_0x18771d['type'])return;const {data:_0x5f52da}=_0x18771d;if(!_0x5f52da||'listItemId'!=_0x5f52da['key'])return;const _0x1ec642=qt(_0x18771d);return'newValue'==_0x1ec642?{'type':'format','content':Mt(_0x576094,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ec642?{'type':'format','content':Mt(_0x576094,'*Split:*\x20list\x20item')}:_0x1f4dfb;}),_0x53786a['model']['document']['registerPostFixer'](_0x434696=>this['listItemIdFixer'](_0x434696)),_0x53786a['model']['document']['registerPostFixer'](_0x182d33=>this['noTrackChangesFixer'](_0x182d33)),_0x53786a['model']['document']['on']('change:data',(_0x35ce8,_0x36458f)=>{if(_0x36458f['isUndo']||!_0x36458f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x3e79dd){if(_0x3e79dd['batch']['isUndo']||!_0x3e79dd['batch']['isLocal'])return!0x1;let _0x3b7d6d=!0x1;const _0x54c50e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2923c4=>_0x2923c4['data']&&'listItemId'==_0x2923c4['data']['key'])['filter'](_0x1c4cb9=>_0x1c4cb9['data']['newValue']&&_0x1c4cb9['data']['oldValue']);for(const _0x55e5de of _0x54c50e)qt(_0x55e5de)||(_0x3e79dd['removeMarker'](_0x55e5de['getFirstMarker']()),_0x3b7d6d=!0x0);return _0x3b7d6d;}['noTrackChangesFixer'](_0x314fec){if(_0x314fec['batch']['isUndo']||!_0x314fec['batch']['isLocal'])return!0x1;const _0x4fc0b1=this['editor']['model']['document']['differ'],_0x314d71=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x314d71['trackChangesCommand']['value'])return!0x1;let _0x42c82b=!0x1;const _0x5d6887=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x443645=_0x4fc0b1['getChanges']()['filter'](_0x81fd11=>'attribute'==_0x81fd11['type'])['filter'](_0x1f93b0=>_0x5d6887['has'](_0x1f93b0['attributeKey']));if(0x0==_0x443645['length'])return _0x42c82b;const _0xd4602f=new Set(_0x4fc0b1['getMarkersToAdd']()['filter'](_0x5b7f04=>{if(!_0x5b7f04['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x13bf81=tt(_0x5b7f04['name'])['subType']['split']('|')[0x0];return _0x5d6887['has'](_0x13bf81);})['map'](_0x525432=>tt(_0x525432['name'])['id']));for(const _0x5cf546 of _0x443645){const _0x39be6e=_0x314d71['_findSuggestions'](_0x5cf546['range'],'attribute')['filter'](_0x183f40=>{if(_0x183f40['meta']['isNextTo'])return!0x1;if(_0xd4602f['has'](_0x183f40['suggestion']['id']))return!0x1;const _0xb4c191=_0x314d71['_getAttributeKey'](_0x183f40['suggestion']);return _0x5d6887['has'](_0xb4c191);})['map'](_0xf6093a=>_0xf6093a['suggestion']);if(_0x39be6e['length']){for(const _0x2a063a of _0x39be6e)_0x314fec['removeMarker'](_0x2a063a['getFirstMarker']());_0x42c82b=!0x0;}}return _0x42c82b;}['assureChains'](){const _0xffd911=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7641bf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5bda1b;const _0x2277de=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fecd1=>{if(_0x3fecd1['data']['oldRange']||!_0x3fecd1['data']['newRange'])return null;if(!_0x3fecd1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x80a194}=tt(_0x3fecd1['name']);if(!_0xffd911['hasSuggestion'](_0x80a194))return null;const _0x3bea47=_0xffd911['getSuggestion'](_0x80a194);return _0x7641bf['includes'](_0x3bea47['data']['key']);})['map'](_0x5c7453=>{const {id:_0x290e76}=tt(_0x5c7453['name']),_0x283b9c=_0xffd911['getSuggestion'](_0x290e76);return _0x5bda1b=_0x283b9c['attributes']['groupId'],_0x283b9c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2277de['size'])return;const _0x175c17=_0xffd911['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c3d9f=>'attribute'==_0x5c3d9f['type']&&_0x5c3d9f['data']&&_0x7641bf['includes'](_0x5c3d9f['data']['key'])&&_0x5c3d9f['attributes']['groupId']!=_0x5bda1b)['map'](_0xcc206=>({'listItem':_0xcc206['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcc206['attributes']['groupId']})),_0x304d10=new Set();for(const {groupId:_0x28f2f9,listItem:_0x3bfc4a}of _0x175c17)_0x2277de['has'](_0x3bfc4a)&&_0x304d10['add'](_0x28f2f9);for(const _0x36dc7b of _0xffd911['getSuggestions']())_0x304d10['has'](_0x36dc7b['attributes']['groupId'])&&_0x36dc7b['setAttribute']('groupId',_0x5bda1b);}_supportLegacySuggestions(){const _0x46adbb=this['editor'],_0x413bdd=_0x46adbb['locale'],_0x373a95=_0x46adbb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x373a95['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x467ffa,_0x2f26b9){const _0xdc8ba7=[];for(let _0x51d79f of _0x467ffa)_0x51d79f['start']['nodeAfter']===_0x51d79f['end']['parent']&&(_0x51d79f=_0x46adbb['model']['createRange'](_0x46adbb['model']['createPositionAt'](_0x51d79f['start']['nodeAfter'],0x0))),_0xdc8ba7['push'](_0x51d79f);_0x46adbb['model']['change'](_0x96a0ae=>{const _0x55932e=_0x46adbb['model']['document']['selection'],_0x14cbd8=Array['from'](_0x55932e['getRanges']())['map'](_0x584c76=>rt['fromRange'](_0x584c76));_0x96a0ae['setSelection'](_0xdc8ba7),_0x46adbb['commands']['get'](_0x2f26b9['commandName'])['refresh'](),_0x2f26b9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46adbb['execute'](_0x2f26b9['commandName'],..._0x2f26b9['commandParams']),_0x96a0ae['setSelection'](_0x14cbd8);for(const _0xc21e9e of _0x14cbd8)_0xc21e9e['detach']();});}),_0x373a95['descriptionFactory']['registerElementLabel'](function(_0x372736){const _0x1e1437=!_0x46adbb['model']['schema']['isObject'](_0x372736),_0x57d1e2=_0x372736['previousSibling'],_0x3be8c5=_0x372736['nextSibling'],_0x247296=_0x372736['getAttribute']('listItemId'),_0xf971c1=!_0x57d1e2||_0x57d1e2['getAttribute']('listItemId')!==_0x247296,_0x363ecf=!_0x3be8c5||_0x3be8c5['getAttribute']('listItemId')!==_0x247296;return _0x1e1437&&Boolean(_0x247296)&&_0xf971c1&&_0x363ecf;},_0xd3bd15=>Mt(_0x413bdd,'ELEMENT_LIST_ITEM',_0xd3bd15));}_registerLegacyDescription(){const _0x20167f=this['editor'],_0x21eb4e=_0x20167f['locale'];function _0x2b2f2d(_0x32227b){const _0x48ef68=_0x20167f['commands']['get']('bulletedList')['value'],_0x3e916a=_0x20167f['commands']['get']('numberedList')['value'];return'numberedList'===_0x32227b?_0x48ef68:_0x3e916a;}_0x20167f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x107a82){if('formatBlock'!=_0x107a82['type'])return;const {data:_0x5440cf}=_0x107a82;if(!_0x5440cf)return;let _0xa04aff,_0x400b92,_0x42fcd0,_0x3b9ae3;switch(_0x5440cf['commandName']){case'bulletedList':_0x42fcd0=_0x5440cf['commandParams'][0x0]['forceValue'],_0x3b9ae3=_0x2b2f2d(_0x5440cf['commandName']),_0xa04aff=_0x42fcd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b9ae3&&_0x20167f['config']['get']('list.multiBlock')||(_0xa04aff='*Change\x20to:*\x20%0'),_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42fcd0=_0x5440cf['commandParams'][0x0]['forceValue'],_0x3b9ae3=_0x2b2f2d(_0x5440cf['commandName']),_0xa04aff=_0x42fcd0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b9ae3&&_0x20167f['config']['get']('list.multiBlock')||(_0xa04aff='*Change\x20to:*\x20%0'),_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa04aff='*Indent:*\x20%0',_0x400b92={'type':'format','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa04aff=function(_0x1e7b72){const _0x33a71b=_0x1e7b72['getFirstRange']();let _0x42a4ac=_0x33a71b['start']['nodeAfter'];for(;_0x42a4ac&&_0x33a71b['containsItem'](_0x42a4ac);){if(_0x42a4ac['getAttribute']('listIndent')>0x0)return!0x1;_0x42a4ac=_0x42a4ac['nextSibling'];}return!0x0;}(_0x107a82)?Mt(_0x21eb4e,'*Format:*\x20remove\x20from\x20%0',Mt(_0x21eb4e,function(_0x29c8c4){return'ELEMENT_'+_0x29c8c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x107a82))):Mt(_0x21eb4e,'*Outdent:*\x20%0',Mt(_0x21eb4e,'ELEMENT_LIST_ITEM')),_0x400b92={'type':'format','content':_0xa04aff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5440cf['multipleBlocks']&&(_0xa04aff='*Merge:*\x20%0',_0x400b92={'type':'deletion','content':Mt(_0x21eb4e,_0xa04aff,Mt(_0x21eb4e,'ELEMENT_LIST_ITEM'))});}return _0x400b92;});}};function qt(_0x42c481){let _0x16beb3=_0x42c481['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x16beb3;){const _0x49dc87=_0x16beb3['getAttribute']('listItemId');if(!_0x49dc87)return!0x1;if(_0x49dc87==_0x42c481['data']['newValue'])return'newValue';if(_0x49dc87==_0x42c481['data']['oldValue'])return'oldValue';_0x16beb3=_0x16beb3['previousSibling'];}return!0x1;}var Yt=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c3dc8=this['editor']['config']['get']('list.properties'),_0x303314=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c3dc8['styles']&&_0x303314['enableDefaultAttributesIntegration']('listStyle'),_0x3c3dc8['reversed']&&_0x303314['enableDefaultAttributesIntegration']('listReversed'),_0x3c3dc8['startIndex']&&_0x303314['enableDefaultAttributesIntegration']('listStart');const _0x3ac1c7={'type':'format','content':''};_0x303314['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11f54d=this['editor']['locale'];_0x303314['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x11f54d,'FORMAT_LIST_REVERSED')),_0x303314['descriptionFactory']['registerDescriptionCallback'](_0x28add4=>{const {data:_0x4eb5bf}=_0x28add4;if(_0x4eb5bf&&'listReversed'==_0x4eb5bf['key'])return null==_0x4eb5bf['newValue']||0x0==_0x4eb5bf['newValue']&&null==_0x4eb5bf['oldValue']?_0x3ac1c7:void 0x0;}),_0x303314['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x11f54d,'FORMAT_LIST_START')),_0x303314['descriptionFactory']['registerDescriptionCallback'](_0x4cb8a9=>{const {data:_0x36bf19}=_0x4cb8a9;if(_0x36bf19&&'listStart'==_0x36bf19['key'])return null==_0x36bf19['newValue']||0x1==_0x36bf19['newValue']&&null==_0x36bf19['oldValue']?_0x3ac1c7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24535d=>{if(_0x24535d['batch']['isUndo'])return!0x1;let _0x1d0a55=!0x1;const _0x45083c=_0x303314['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x765097=>{const _0x501f70=_0x303314['_getAttributeKey'](_0x765097);return'listStart'==_0x501f70||'listReversed'==_0x501f70;});for(const _0x1e29e9 of _0x45083c){const _0xdd8e13=_0x1e29e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0xdd8e13&&'customNumbered'!=_0xdd8e13&&(_0x303314['_findSuggestions'](_0x1e29e9['getFirstRange'](),'attribute')['find'](_0x2f3ca9=>'listType'==_0x303314['_getAttributeKey'](_0x2f3ca9['suggestion']))||(_0x24535d['removeMarker'](_0x1e29e9['getFirstMarker']()),_0x1d0a55=!0x0));}return _0x1d0a55;}),this['_registerLegacyDescription']();}handleDescriptions(_0x44b7a6){const _0x41c354=this['editor']['locale'],{data:_0x1c2989}=_0x44b7a6,_0xf8b0d8={'type':'format','content':''};if(!_0x1c2989||'listStyle'!=_0x1c2989['key'])return;if(!_0x1c2989['oldValue'])return'default'==_0x1c2989['newValue']?_0xf8b0d8:{'type':'format','content':''+Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['newValue'])))};if(!_0x1c2989['newValue']){if('default'==_0x1c2989['oldValue'])return _0xf8b0d8;let _0x581b91=_0x44b7a6['head'];for(;_0x581b91;){if(_0x581b91['data']&&'listType'==_0x581b91['data']['key']&&_0x581b91['data']['newValue'])return _0xf8b0d8;_0x581b91=_0x581b91['next'];}return{'type':'format','content':''+Mt(_0x41c354,'*Remove\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['oldValue'])))};}if('default'!=_0x1c2989['newValue'])return{'type':'format','content':''+Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,this['_getTranslationKeyForListStyle'](_0x1c2989['newValue'])))};let _0x1238f3=_0x44b7a6['head'];for(;_0x1238f3;){if(_0x1238f3['data']&&'listType'==_0x1238f3['data']['key']&&_0x1238f3['data']['newValue']&&_0x1238f3['data']['oldValue'])return _0xf8b0d8;_0x1238f3=_0x1238f3['next'];}return{'type':'format','content':Mt(_0x41c354,'*Set\x20format:*\x20%0',Mt(_0x41c354,'ELEMENT_'+_0x44b7a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x14376b=this['editor'],_0x598b37=_0x14376b['locale'];_0x14376b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a33a0=>{if('formatBlock'!=_0x2a33a0['type'])return;const {data:_0x24daca}=_0x2a33a0;if(!_0x24daca)return;let _0x11c875,_0x20e8db;switch(_0x24daca['commandName']){case'listStyle':_0x11c875='*Change\x20to:*\x20%0',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875,Mt(_0x598b37,this['_getTranslationKeyForListStyle'](_0x24daca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11c875=_0x24daca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875)};break;case'listStart':_0x11c875='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20e8db={'type':'format','content':Mt(_0x598b37,_0x11c875,_0x24daca['commandParams'][0x0]['startIndex'])};}return _0x20e8db;});}_getTranslationKeyForListStyle(_0x18a79a){return'ELEMENT_'+(_0x4a260e=_0x18a79a,Qt['includes'](_0x4a260e)?'bulleted':Zt['includes'](_0x4a260e)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x18a79a['toUpperCase']()['replace'](/-/g,'_');var _0x4a260e;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x18ca51{afterInit(){const _0x910db5=this['editor'];_0x910db5['commands']['get']('emoji')&&_0x910db5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x18ca51{static get requires(){return[Et];}init(){const _0x2c8dd7=this['editor'],_0xd52eee=_0x2c8dd7['plugins']['get']('TrackChangesEditing'),_0x38d83f=_0x2c8dd7['commands']['get']('enter');_0xd52eee['enableCommand']('enter',()=>{_0x2c8dd7['model']['change'](_0x4d6684=>{const _0x4c17b2=_0x2c8dd7['model']['document']['selection'],_0x216067=_0x4c17b2['getFirstPosition'](),_0x2e8758=rt['fromRange'](_0x4c17b2['getFirstRange']());if(_0x38d83f['enterBlock'](_0x4d6684)){const _0x232249=_0x2c8dd7['model']['createPositionAt'](_0x216067['parent']['nextSibling'],0x0),_0x32d9a1=_0x4d6684['createRange'](_0x216067,_0x232249);_0xd52eee['markInsertion'](_0x32d9a1);}else _0x4d6684['setSelection'](_0x4d6684['createRange'](_0x2e8758['end']));_0x2e8758['detach'](),_0x38d83f['fire']('afterExecute',{'writer':_0x4d6684});});});}},ee=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x54365c=this['editor']['plugins']['get']('TrackChangesEditing');_0x54365c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x54365c['enableCommand']('findNext'),_0x54365c['enableCommand']('findPrevious'),_0x54365c['enableCommand']('replace'),_0x54365c['enableCommand']('replaceAll');}['handleFindCommand'](_0x514e22,_0x54d732,_0x2de335={}){const _0x1199cc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x514e22(_0x3990bd=>{let _0x25e654=('string'==typeof _0x54d732?_0x1199cc['findByTextCallback'](_0x54d732,_0x2de335):_0x54d732)(_0x3990bd);Array['isArray'](_0x25e654)&&(_0x25e654={'results':_0x25e654,'searchText':'string'==typeof _0x54d732?_0x54d732:''});const _0x39cb7d=_0x25e654['results']['filter'](_0x494861=>!0x1===this['_isInDeletionRange'](_0x494861,_0x3990bd['item']));return{..._0x25e654,'results':_0x39cb7d};},_0x2de335);}_isInDeletionRange(_0x5cd158,_0x14b539){const _0xd48256=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14b539,_0x5cd158['start']),this['editor']['model']['createPositionAt'](_0x14b539,_0x5cd158['end']));for(const _0x3f5677 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xd48256['getIntersection'](_0x3f5677['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x18ca51{afterInit(){const _0x16335a=this['editor']['locale'],_0x151bcb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d3079,commandName:_0x556cba}of ne)this['editor']['plugins']['has'](_0x4d3079)&&_0x151bcb['enableDefaultAttributesIntegration'](_0x556cba);_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x16335a,'FORMAT_FONT_SIZE')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x16335a,'FORMAT_FONT_FAMILY')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x16335a,'FORMAT_FONT_COLOR')),_0x151bcb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x16335a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e2ed8=this['editor'],_0x46ac80=_0x2e2ed8['locale'];_0x2e2ed8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52d7a4=>{const _0x461430=_0x46ac80['t'];if('formatInline'!=_0x52d7a4['type'])return;const {data:_0x1818ae}=_0x52d7a4;if(null!=_0x1818ae){if('fontSize'==_0x1818ae['commandName']){const _0x5841d2=_0x1818ae['commandParams'][0x0]['value'];if(_0x5841d2){const _0x2512e8=_0x461430(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x530792=>_0x530792['model']==_0x5841d2)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20size:*\x20%0',_0x2512e8)};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1818ae['commandName']){const _0x4f581a=_0x1818ae['commandParams'][0x0]['value'];return _0x4f581a?{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20family:*\x20%0',_0x4f581a)}:{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1818ae['commandName']){const _0x4b4a97=_0x1818ae['commandParams'][0x0]['value'];if(_0x4b4a97){const _0x1f2cc2=_0x4a32ba(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbcbd33=>_0xbcbd33['model']==_0x4b4a97);let _0x3d6027=_0x4b4a97,_0x15193a='';return _0x1f2cc2&&(_0x3d6027=_0x1f2cc2['label'],_0x15193a=_0x461430(_0x3d6027)['toLowerCase']()),{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20color:*\x20%0',_0x15193a)['trim'](),'color':{'value':_0x4b4a97,'title':_0x15193a||_0x3d6027}};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1818ae['commandName']){const _0x393ed4=_0x1818ae['commandParams'][0x0]['value'];if(_0x393ed4){const _0x4ec329=_0x4a32ba(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bd512=>_0x2bd512['model']==_0x393ed4);let _0x4df784=_0x393ed4,_0x56fc52='';return _0x4ec329&&(_0x4df784=_0x4ec329['label'],_0x56fc52=_0x461430(_0x4df784)['toLowerCase']()),{'type':'format','content':Mt(_0x46ac80,'*Set\x20font\x20background\x20color:*\x20%0',_0x56fc52)['trim'](),'color':{'value':_0x393ed4,'title':_0x56fc52||_0x4df784}};}return{'type':'format','content':Mt(_0x46ac80,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x18ca51{afterInit(){const {plugins:_0x14c5ce}=this['editor'];_0x14c5ce['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x14c5ce['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3677fa,plugins:_0xeadf8c,commands:_0x52d53f}=this['editor'],_0x4e5e5f=_0xeadf8c['get']('TrackChangesEditing');_0x52d53f['get']('footnotesStyle')&&_0x4e5e5f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x52d53f['get']('footnotesStart')&&_0x4e5e5f['enableDefaultAttributesIntegration']('footnotesStart'),_0x4e5e5f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x3677fa,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4e5e5f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x3677fa,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x28d1aa=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x370e77,commands:_0x2dd9fb}=this['editor'];_0x2dd9fb['get']('insertFootnote')&&_0x28d1aa['enableCommand']('insertFootnote'),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4c6acd=>Mt(_0x370e77,'ELEMENT_FOOTNOTE_REF',_0x4c6acd)),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x23704e=>Mt(_0x370e77,'ELEMENT_FOOTNOTE_DEFINITION',_0x23704e)),_0x28d1aa['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x42eb2e=>Mt(_0x370e77,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x42eb2e));}},re=class extends _0x18ca51{afterInit(){const _0x24a4cf=this['editor'],_0x491c8a=_0x24a4cf['plugins']['get']('TrackChangesEditing'),_0x15695d=_0x24a4cf['commands']['get']('copyFormat'),_0x13a2d7=_0x24a4cf['commands']['get']('pasteFormat');_0x15695d&&_0x13a2d7&&(_0x491c8a['enableDefaultAttributesIntegration']('pasteFormat'),_0x491c8a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3e54e9=this['editor'],_0x42b758=_0x3e54e9['locale'];_0x3e54e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a1215=>{if('formatBlock'!=_0x2a1215['type']&&'formatInline'!=_0x2a1215['type'])return;const {data:_0x5abc81}=_0x2a1215;if(_0x5abc81&&'pasteFormat'===_0x5abc81['commandName']){const _0x221cc5=[],_0x33fa98=_0x5abc81['commandParams'][0x0];for(const [_0x1a5f69,_0xeeddca]of Object['entries'](_0x33fa98))_0x221cc5['push'](oe(_0x3e54e9,_0x1a5f69,_0xeeddca));return _0x221cc5['length']?{'type':'format','content':Mt(_0x42b758,'*Set\x20format\x20to:*\x20%0',_0x221cc5['join'](',\x20'))}:{'type':'format','content':Mt(_0x42b758,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x587a6c,_0xc23523,_0x116053){const _0x100fa9=_0x587a6c['locale']['t'],_0x19a23b=_0xc23523['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b6ae7=_0x100fa9(_0x19a23b['charAt'](0x0)['toUpperCase']()+_0x19a23b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x116053)return _0x3b6ae7;if('fontColor'===_0xc23523||'fontBackgroundColor'===_0xc23523){const _0x4a361e=_0x4a32ba(_0x587a6c['config']['get']('fontColor.colors'))['find'](_0x40b8a4=>_0x40b8a4['model']==_0x116053);return _0x3b6ae7+'\x20('+(_0x4a361e?_0x100fa9(_0x4a361e['label'])['toLowerCase']():_0x116053)+')';}if('fontSize'===_0xc23523&&isNaN(parseFloat(_0x116053))){const _0x408819=_0x587a6c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x587a6c['config']['get']('fontSize.options'))['find'](_0x178948=>_0x178948['model']==_0x116053);return _0x3b6ae7+'\x20('+(_0x408819?_0x100fa9(_0x408819['title'])['toLowerCase']():_0x116053)+')';}return _0x3b6ae7+'\x20('+_0x116053+')';}var ae=class extends _0x18ca51{afterInit(){const _0x490ba2=this['editor'];if(!_0x490ba2['plugins']['has']('GeneralHtmlSupport')||!_0x490ba2['plugins']['has']('DataSchema'))return;const _0x11e8e8=_0x490ba2['plugins']['get']('TrackChangesEditing'),_0x265565=_0x490ba2['plugins']['get']('GeneralHtmlSupport'),_0x59386b=_0x490ba2['plugins']['get']('DataSchema'),_0x5f00ad=_0x490ba2['locale'],_0x44c54a=new Set(['htmlContent']);for(const _0x22f02a of _0x59386b['getDefinitionsForView'](/.*/,!0x1)){const _0x43d9cb=_0x22f02a['view'],_0x1812f5=_0x265565['getGhsAttributeNameForElement'](_0x43d9cb);_0x44c54a['add'](_0x1812f5),!_0x22f02a['isInline']||_0x22f02a['isObject']||'appliesToBlock'in _0x22f02a&&_0x22f02a['appliesToBlock']||_0x11e8e8['descriptionFactory']['registerAttributeLabel'](_0x1812f5,_0x43d9cb),_0x22f02a['model']['startsWith']('html')&&_0x11e8e8['descriptionFactory']['registerElementLabel'](_0x22f02a['model'],_0x4d240a=>Mt(_0x5f00ad,'ELEMENT_HTML_TAG',[_0x4d240a,_0x43d9cb]));}_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x5f00ad,'FORMAT_RAW_HTML_CONTENT')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x5f00ad,'FORMAT_HTML_LIST_ITEM')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x5f00ad,'FORMAT_HTML_BULLETED_LIST')),_0x11e8e8['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x5f00ad,'FORMAT_HTML_NUMBERED_LIST')),_0x11e8e8['descriptionFactory']['registerDescriptionCallback'](_0x1c551f=>{if('attribute'!==_0x1c551f['type'])return;const _0x15a811=_0x1c551f['data'];if(!_0x15a811||!_0x44c54a['has'](_0x15a811['key']))return;if('htmlContent'===_0x15a811['key'])return{'type':'format','content':Mt(_0x5f00ad,'*Change\x20%0\x20content*',Mt(_0x5f00ad,'ELEMENT_RAW_HTML'))};const {setItems:_0x56d24f,removeItems:_0x1ae375}=function(_0x478290,_0x1e908a,_0x94180a){const _0x4fe2f6=[],_0xf523ed=[],_0x50828b=_0x478290['styles']??{},_0x3eb841=_0x1e908a['styles']??{};for(const _0x5dd91d of new Set([...Object['keys'](_0x50828b),...Object['keys'](_0x3eb841)]))_0x50828b[_0x5dd91d]!==_0x3eb841[_0x5dd91d]&&(void 0x0===_0x3eb841[_0x5dd91d]?_0xf523ed['push'](_0x5dd91d):_0x4fe2f6['push'](_0x5dd91d+'\x20('+_0x3eb841[_0x5dd91d]+')'));const _0x1780c9=Mt(_0x94180a,'FORMAT_HTML_CLASS'),_0x3f85fe=new Set(_0x478290['classes']??[]),_0x51a612=new Set(_0x1e908a['classes']??[]),_0x15e0fc=[..._0x51a612]['some'](_0x7bc1b4=>!_0x3f85fe['has'](_0x7bc1b4)),_0x4b1a44=[..._0x3f85fe]['some'](_0x907ac0=>!_0x51a612['has'](_0x907ac0));_0x15e0fc&&_0x4fe2f6['push'](_0x1780c9),_0x4b1a44&&_0xf523ed['push'](_0x1780c9);const _0x4b7286=Mt(_0x94180a,'FORMAT_HTML_ATTRIBUTE'),_0x24af06=_0x478290['attributes']??{},_0x344615=_0x1e908a['attributes']??{};let _0x6f5c5e=!0x1,_0x3fe4b8=!0x1;for(const _0x53345f of new Set([...Object['keys'](_0x24af06),...Object['keys'](_0x344615)]))_0x24af06[_0x53345f]!==_0x344615[_0x53345f]&&(void 0x0===_0x344615[_0x53345f]?_0x3fe4b8=!0x0:_0x6f5c5e=!0x0);return _0x6f5c5e&&_0x4fe2f6['push'](_0x4b7286),_0x3fe4b8&&_0xf523ed['push'](_0x4b7286),{'setItems':_0x4fe2f6,'removeItems':_0xf523ed};}(_0x15a811['oldValue']??{},_0x15a811['newValue']??{},_0x5f00ad);if(!_0x56d24f['length']&&!_0x1ae375['length'])return;const _0x427ee2=[];return _0x56d24f['length']&&_0x427ee2['push'](Mt(_0x5f00ad,'*Set\x20format:*\x20%0',_0x56d24f['join'](',\x20'))),_0x1ae375['length']&&_0x427ee2['push'](Mt(_0x5f00ad,'*Remove\x20format:*\x20%0',_0x1ae375['join'](',\x20'))),{'type':'format','content':_0x427ee2['join']('\x0a')};});}},ce=class extends _0x18ca51{_headingOptions;afterInit(){const _0x382fba=this['editor'];if(!_0x382fba['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x382fba['config']['get']('heading.options');const _0x194f0b=_0x382fba['locale'],_0x5e830a=_0x382fba['plugins']['get']('TrackChangesEditing');_0x5e830a['enableDefaultAttributesIntegration']('heading');for(const _0x471f34 of this['_headingOptions'])'paragraph'!=_0x471f34['model']&&_0x5e830a['descriptionFactory']['registerElementLabel'](_0x471f34['model'],_0x2dca70=>{const _0x2c2f71=this['_getHeadingLevel'](_0x471f34['model']);return null!==_0x2c2f71?_0x35bf64(_0x2dca70,_0x2c2f71):_0x4ab3c5(_0x2dca70,_0x471f34['title']);});function _0x35bf64(_0x55fce0,_0x45c3c0){return Mt(_0x194f0b,'ELEMENT_HEADING',[_0x55fce0,_0x45c3c0]);}function _0x4ab3c5(_0x150cf2,_0x574759){return Mt(_0x194f0b,'ELEMENT_HEADING_CUSTOM',[_0x150cf2,_0x574759]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x12bc48=this['editor'],_0x5a60ee=_0x12bc48['locale'];function _0xcfd230(_0xb1b76d,_0x16949b){return Mt(_0x5a60ee,'ELEMENT_HEADING_CUSTOM',[_0xb1b76d,_0x16949b]);}_0x12bc48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x101bbd=>{if('formatBlock'!=_0x101bbd['type'])return;const {data:_0x1cc8b8}=_0x101bbd;if(_0x1cc8b8&&'heading'==_0x1cc8b8['commandName']){const _0x21751b=_0x1cc8b8['commandParams'][0x0]['value'],_0x13883b=this['_getHeadingLevel'](_0x21751b);if(null!==_0x13883b)return{'type':'format','content':Mt(_0x5a60ee,'*Change\x20to:*\x20%0',(_0x55cbf1=0x1,_0x4c5e36=_0x13883b,Mt(_0x5a60ee,'ELEMENT_HEADING',[_0x55cbf1,_0x4c5e36])))};const _0x43d578=this['_headingOptions']['find'](_0x53b404=>_0x53b404['model']===_0x21751b)['title'];return{'type':'format','content':Mt(_0x5a60ee,'*Change\x20to:*\x20%0',_0xcfd230(0x1,_0x43d578))};}var _0x55cbf1,_0x4c5e36;});}_getHeadingLevel(_0x46e286){const _0x5a416b=_0x46e286['match'](/^heading(\d+)/);if(_0x5a416b)return _0x5a416b[0x1];const _0x431c1d=this['_headingOptions']?.['find'](_0x50f8f7=>_0x50f8f7['model']==_0x46e286);if(_0x431c1d&&_0x431c1d['view']){const _0x54a543=_0x431c1d['view'],_0x1cf5c9=(_0x54a543['name']??_0x54a543)['match'](/^h(\d+)/);if(_0x1cf5c9)return _0x1cf5c9[0x1];}return null;}},le=class extends _0x18ca51{afterInit(){const _0x135eb2=this['editor'];if(!_0x135eb2['plugins']['has']('HighlightEditing'))return;const _0x22270d=_0x135eb2['plugins']['get']('TrackChangesEditing'),_0x441867=_0x135eb2['locale'];_0x22270d['enableDefaultAttributesIntegration']('highlight'),_0x22270d['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x441867,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x442686=this['editor'],_0x142a47=_0x442686['locale'];_0x442686['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8062=>{if('formatInline'!=_0x5d8062['type'])return;const {data:_0x542cc5}=_0x5d8062;if(_0x542cc5&&'highlight'==_0x542cc5['commandName']){const _0x5a519a=_0x142a47['t'],_0x5966d8=_0x542cc5['commandParams'][0x0]['value'];if(_0x5966d8){const _0x2d5a1b=_0x442686['config']['get']('highlight.options')['find'](_0x1a8d9e=>_0x1a8d9e['model']==_0x5966d8),_0x1c9388=_0x5a519a(_0x2d5a1b['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x142a47,'*Set\x20highlight:*\x20%0',_0x1c9388),'color':{'value':_0x2d5a1b['color'],'title':_0x2d5a1b['title']}};}return{'type':'format','content':Mt(_0x142a47,'*Remove\x20highlight*',Mt(_0x142a47,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x18ca51{afterInit(){const _0x5ddfe6=this['editor'];if(!_0x5ddfe6['plugins']['has']('HorizontalLineEditing'))return;_0x5ddfe6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d506f=_0x5ddfe6['plugins']['get']('TrackChangesEditing'),_0x2586d1=_0x5ddfe6['locale'];_0x2d506f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5ec94f=>Mt(_0x2586d1,'ELEMENT_HORIZONTAL_LINE',_0x5ec94f));}},de=class extends _0x18ca51{afterInit(){const _0x79a3c7=this['editor'];if(!_0x79a3c7['plugins']['has']('HtmlEmbed'))return;const _0x47c930=_0x79a3c7['plugins']['get']('TrackChangesEditing'),_0x54dad9=_0x79a3c7['locale'];_0x47c930['descriptionFactory']['registerElementLabel']('rawHtml',_0x594b7b=>Mt(_0x54dad9,'ELEMENT_HTML_EMBED',_0x594b7b)),_0x47c930['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47c930['descriptionFactory']['registerDescriptionCallback'](_0x3c0dbe=>{if('attribute'!=_0x3c0dbe['type'])return;const {data:_0x5a3be0}=_0x3c0dbe;if(_0x5a3be0&&'value'==_0x5a3be0['key']&&_0x3c0dbe['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x54f88d=Mt(_0x54dad9,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x54dad9,'*Change\x20%0\x20content*',_0x54f88d)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x445b07=this['editor'],_0x45884d=_0x445b07['locale'];_0x445b07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c4e8=>{if('formatBlock'!=_0x36c4e8['type'])return;const {data:_0x23fd80}=_0x36c4e8;if(_0x23fd80&&'htmlEmbed'==_0x23fd80['commandName']){const _0x593cde=Mt(_0x45884d,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x45884d,'*Change\x20%0\x20content*',_0x593cde)};}});}},he=class extends _0x18ca51{afterInit(){const _0x3ee5bd=this['editor'];if(!_0x3ee5bd['plugins']['has']('ImageEditing'))return;const _0x7b03d=_0x3ee5bd['plugins']['get']('TrackChangesEditing'),_0x30c830=_0x3ee5bd['plugins']['get']('ImageUtils'),_0x5f3e25=_0x3ee5bd['locale'];_0x7b03d['enableCommand']('insertImage'),_0x7b03d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3c827c=>Mt(_0x5f3e25,'ELEMENT_IMAGE',_0x3c827c)),_0x7b03d['descriptionFactory']['registerElementLabel']('imageInline',_0x4f9b1f=>Mt(_0x5f3e25,'ELEMENT_INLINE_IMAGE',_0x4f9b1f)),_0x7b03d['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x5f3e25,'ELEMENT_CAPTION')),_0x3ee5bd['plugins']['has']('ImageUploadEditing')&&_0x7b03d['enableCommand']('uploadImage'),_0x3ee5bd['plugins']['has']('ImageBlockEditing')&&_0x3ee5bd['plugins']['has']('ImageInlineEditing')&&(_0x7b03d['enableCommand']('imageTypeInline',(_0x30ea97,_0x95c8e4)=>{const _0xcccab0=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']);_0x3ee5bd['model']['change'](()=>{_0x7b03d['markBlockFormat'](_0xcccab0,{'commandName':'imageTypeInline','commandParams':[_0x95c8e4]},[],'convertBlockImageToInline');});}),_0x7b03d['enableCommand']('imageTypeBlock',(_0x198995,_0x5dcf95)=>{_0x3ee5bd['model']['change'](_0x11bbda=>{let _0x2e99b7=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x533208=_0x11bbda['createRangeOn'](_0x2e99b7);const _0x5abbd9=st['fromPosition'](_0x533208['start'],'toPrevious'),_0xecac3b=st['fromPosition'](_0x533208['end'],'toNext');_0x7b03d['forceDefaultExecution'](()=>_0x198995(_0x5dcf95)),_0x2e99b7=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x533208=_0x11bbda['createRangeOn'](_0x2e99b7);const _0x174e34=_0x11bbda['createRange'](_0x5abbd9,_0xecac3b);_0x5abbd9['detach'](),_0xecac3b['detach'](),_0x7b03d['markBlockFormat'](_0x2e99b7,{'commandName':'imageTypeInline','commandParams':[_0x5dcf95]},[],'convertInlineImageToBlock'),_0x174e34['start']['isBefore'](_0x533208['start'])&&_0x7b03d['markInsertion'](_0x11bbda['createRange'](_0x174e34['start'],_0x533208['start']),'convertInlineImageToBlock'),_0x533208['end']['isBefore'](_0x174e34['end'])&&_0x7b03d['markInsertion'](_0x11bbda['createRange'](_0x533208['end'],_0x174e34['end']),'convertInlineImageToBlock');});}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x7b03d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b348])=>{const _0x1ec02c=_0x7b03d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3173b7=_0x23b348['start'],_0x326db5=_0x23b348['end'];const _0x317cbf=_0x3ee5bd['model']['schema']['getNearestSelectionRange'](_0x3173b7,'backward'),_0x10abbd=_0x3ee5bd['model']['schema']['getNearestSelectionRange'](_0x326db5,'forward');_0x317cbf['isCollapsed']&&(_0x3173b7=_0x317cbf['start']),_0x10abbd['isCollapsed']&&(_0x326db5=_0x10abbd['end']),_0x1ec02c([_0x3ee5bd['model']['createRange'](_0x3173b7,_0x326db5)]);}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x264dee),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x264dee)),_0x3ee5bd['plugins']['has']('ImageCaptionEditing')&&(_0x7b03d['enableCommand']('toggleImageCaption',(_0x3887b2,_0x34bf86)=>{const _0x3f2d04=_0x3ee5bd['plugins']['get']('ImageCaptionUtils');let _0x2a25da=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x556738=_0x3f2d04['getCaptionFromImageModelElement'](_0x2a25da);_0x3ee5bd['model']['change'](()=>{if(_0x556738)return void _0x7b03d['markDeletion'](_0x3ee5bd['model']['createRangeOn'](_0x556738));const _0x21cb1f=_0x30c830['isBlockImage'](_0x2a25da);_0x3887b2(_0x34bf86),_0x2a25da=_0x30c830['getClosestSelectedImageElement'](_0x3ee5bd['model']['document']['selection']),_0x556738=_0x3f2d04['getCaptionFromImageModelElement'](_0x2a25da),_0x7b03d['markInsertion'](_0x3ee5bd['model']['createRangeOn'](_0x556738),_0x21cb1f?null:'imageCaption');});}),_0x7b03d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x264dee));const _0x3881c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e021c(_0x232dd9,_0x8b04fc){const _0x545856=_0x3881c5['findIndex'](({type:_0x45b427,subType:_0x3204c3})=>_0x232dd9['type']==_0x45b427&&_0x232dd9['subType']==_0x3204c3),_0x54a770=_0x3881c5['findIndex'](({type:_0xfd5613,subType:_0x36c59b})=>_0x8b04fc['type']==_0xfd5613&&_0x8b04fc['subType']==_0x36c59b);if(_0x545856<0x0||_0x54a770<0x0)return!0x1;const _0x306f49=_0x232dd9['getFirstRange'](),_0x5a0a1d=_0x8b04fc['getFirstRange']();if((0x0==_0x545856||0x1==_0x545856)&&0x2==_0x54a770&&_0x306f49['isIntersecting'](_0x5a0a1d))return!0x0;if(0x2==_0x545856&&0x3==_0x54a770){const _0x1c4c16=_0x7b03d['_findSuggestions'](_0x306f49,'insertion')['filter'](({suggestion:_0x27cbd0,meta:_0x40a9d2})=>_0x40a9d2['isOwn']&&'convertInlineImageToBlock'==_0x27cbd0['subType']);if(_0x1c4c16['length']>0x1&&_0x5a0a1d['end']['isEqual'](_0x306f49['start']))return!0x0;if(0x1==_0x1c4c16['length']&&(_0x306f49['start']['isEqual'](_0x5a0a1d['end'])||_0x306f49['end']['isEqual'](_0x5a0a1d['start'])))return!0x0;}if(0x3==_0x545856&&0x3==_0x54a770&&_0x306f49['start']['isBefore'](_0x5a0a1d['start'])){const _0x430995=_0x306f49['end']['nodeAfter'],_0x4ca83b=_0x5a0a1d['start']['nodeBefore'];return _0x30c830['isBlockImage'](_0x430995)&&_0x430995===_0x4ca83b;}return!0x1;}function _0x264dee(_0xa5e801,_0x4dda07){return _0x3e021c(_0xa5e801,_0x4dda07)?[_0xa5e801,_0x4dda07]:_0x3e021c(_0x4dda07,_0xa5e801)?[_0x4dda07,_0xa5e801]:null;}_0x3ee5bd['plugins']['has']('ImageResize')&&(_0x7b03d['enableDefaultAttributesIntegration']('resizeImage'),_0x7b03d['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x5f3e25,'FORMAT_IMAGE_SIZE'))),_0x3ee5bd['plugins']['has']('ImageTextAlternativeEditing')&&_0x7b03d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ee5bd['plugins']['has']('PictureEditing')&&_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x72245=>{if('attribute'!=_0x72245['type'])return;const {data:_0x48440a}=_0x72245;return _0x48440a&&'sources'==_0x48440a['key']?{'type':'format','content':''}:void 0x0;}),_0x3ee5bd['plugins']['has']('ImageSizeAttributes')&&_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x3cecdf=>{if('attribute'!=_0x3cecdf['type'])return;const {data:_0x599dde}=_0x3cecdf;return!_0x599dde||'width'!=_0x599dde['key']&&'height'!=_0x599dde['key']?void 0x0:{'type':'format','content':''};}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x48bb97=>{if(_0x3881c5['find'](({type:_0x24e542,subType:_0x55aa5c})=>_0x48bb97['type']==_0x24e542&&_0x48bb97['subType']==_0x55aa5c))return _0x48bb97['previous']?{}:void 0x0;}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x15f77f=>{if('insertion'==_0x15f77f['type']||'deletion'==_0x15f77f['type']){const _0xf8cdc1=_0x15f77f['getContainedElement']();if(_0xf8cdc1&&_0xf8cdc1['is']('element','caption'))return{'type':'insertion'==_0x15f77f['type']?'addObject':'removeObject','element':_0xf8cdc1,'quantity':0x1};}}),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x13cde0=>'formatBlock'==_0x13cde0['type']&&'convertInlineImageToBlock'==_0x13cde0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x13cde0['type']&&'convertBlockImageToInline'==_0x13cde0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x7b03d['descriptionFactory']['registerDescriptionCallback'](_0x60d986=>{if('attribute'!=_0x60d986['type'])return;const {data:_0x3a276b}=_0x60d986;if(!_0x3a276b||'alt'!=_0x3a276b['key'])return;const _0x597057=_0x3a276b['newValue'];return _0x597057?{'type':'format','content':Mt(_0x5f3e25,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x597057+'\x22')}:{'type':'format','content':Mt(_0x5f3e25,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x950276=this['editor'],_0x3eadb3=_0x950276['locale'];_0x950276['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51a249=>{if('formatBlock'!=_0x51a249['type']&&'formatInline'!=_0x51a249['type'])return;const {data:_0x4c95a2}=_0x51a249;if(_0x4c95a2){if('imageTextAlternative'==_0x4c95a2['commandName']){const _0x5ac97b=_0x4c95a2['commandParams'][0x0]['newValue'];return _0x5ac97b?{'type':'format','content':Mt(_0x3eadb3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ac97b+'\x22')}:{'type':'format','content':Mt(_0x3eadb3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c95a2['commandName']){const _0x243833=_0x4c95a2['commandParams'][0x0]['width'];return _0x243833?{'type':'format','content':Mt(_0x3eadb3,'*Set\x20image\x20width:*\x20%0',_0x243833)}:{'type':'format','content':Mt(_0x3eadb3,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1eebd9=this['editor']['locale'],_0x437967=this['editor']['plugins']['get']('TrackChangesEditing');_0x437967['enableDefaultAttributesIntegration']('replaceImageSource'),_0x437967['descriptionFactory']['registerDescriptionCallback'](_0x249c49=>{if('attribute'!=_0x249c49['type'])return;const {data:_0x4048e3}=_0x249c49;return _0x4048e3&&'src'==_0x4048e3['key']?_0x4048e3['newValue']&&_0x4048e3['oldValue']?{'type':'format','content':Mt(_0x1eebd9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x203cf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x203cf8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x203cf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x203cf8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x203cf8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x25f41b=this['editor'],_0x273871=_0x25f41b['locale'];_0x25f41b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57efdf=>{if('formatBlock'!=_0x57efdf['type']&&'formatInline'!=_0x57efdf['type'])return;const {data:_0x1cd3ca}=_0x57efdf;return _0x1cd3ca&&'replaceImageSource'==_0x1cd3ca['commandName']?{'type':'format','content':Mt(_0x273871,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x18ca51{afterInit(){const _0x180a86=this['editor'];if(!_0x180a86['plugins']['has']('ImageStyleEditing'))return;const _0x41b17b=_0x180a86['plugins']['get']('TrackChangesEditing'),_0x5abefe=_0x180a86['plugins']['get']('ImageUtils'),_0x60ca97={};_0x41b17b['enableCommand']('imageStyle',(_0x2f09d7,_0xe9a3e)=>{const _0x546810=_0x180a86['plugins']['get']('Users')['me'],_0x480f5d=_0x180a86['commands']['get']('imageStyle');let _0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),_0x3d2566=_0x180a86['model']['createRangeOn'](_0x4146cf),_0x1c49d3=_0x480f5d['value'];if(_0x1c49d3==_0xe9a3e['value'])return;if(_0xe9a3e['value']&&_0x5abefe['isInlineImage'](_0x4146cf)&&!_0x480f5d['isStyleEnabled'](_0xe9a3e['value']))return;const _0x1b1712={'commandName':'imageStyle','commandParams':[_0xe9a3e],'formatGroupId':_0x3f17ac()};_0x180a86['model']['change'](()=>{if(_0x41b17b['getSuggestions']()['filter'](_0x222a80=>_0x222a80['isInContent']&&_0x546810==_0x222a80['author']&&('formatBlock'==_0x222a80['type']||'formatInline'==_0x222a80['type'])&&('imageStylePreApply'==_0x222a80['subType']||'imageStylePostApply'==_0x222a80['subType'])&&_0x222a80['getFirstRange']()['isEqual'](_0x3d2566))['forEach'](_0x48af2f=>_0x41b17b['discardSuggestion'](_0x48af2f['head'])),_0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),_0x3d2566=_0x180a86['model']['createRangeOn'](_0x4146cf),_0x480f5d['refresh'](),_0x180a86['commands']['get']('imageTypeInline')['refresh'](),_0x180a86['commands']['get']('imageTypeBlock')['refresh'](),_0x1c49d3=_0x480f5d['value'],_0x1c49d3!=_0xe9a3e['value'])return _0x5abefe['isInlineImage'](_0x4146cf)&&_0x480f5d['shouldConvertImageType'](_0xe9a3e['value'],_0x4146cf)?(_0x2f09d7({..._0xe9a3e,'setImageSizes':!0x1}),_0x4146cf=_0x5abefe['getClosestSelectedImageElement'](_0x180a86['model']['document']['selection']),void _0x41b17b['markBlockFormat'](_0x4146cf,{..._0x1b1712,'commandReversedParams':[{'value':_0x1c49d3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5abefe['isBlockImage'](_0x4146cf)?_0x41b17b['markBlockFormat'](_0x4146cf,_0x1b1712,[],'imageStylePostApply'):_0x41b17b['markInlineFormat'](_0x3d2566,_0x1b1712,'imageStylePostApply'));});});for(const _0x2159f2 of _0x180a86['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x60ca97[_0x2159f2['name']]=_0x2159f2['title']['toLowerCase']();_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x310089])=>{_0x5abefe['setImageNaturalSizeAttributes'](_0x310089['getContainedElement']());}),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x222b99,_0x34e101)=>{_0x41b17b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x222b99,{'commandName':_0x34e101['commandName'],'commandParams':_0x34e101['commandReversedParams']});}),_0x41b17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5daa9f,_0x56a6b4){return _0x280f35(_0x5daa9f,_0x56a6b4)?[_0x5daa9f,_0x56a6b4]:_0x280f35(_0x56a6b4,_0x5daa9f)?[_0x56a6b4,_0x5daa9f]:null;});const _0x482bbe=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x280f35(_0x913e65,_0xf2bdc){const _0x530e54=_0x482bbe['findIndex'](({type:_0x22d169,subType:_0x141a8e})=>_0x913e65['type']==_0x22d169&&_0x913e65['subType']==_0x141a8e),_0x1ba37d=_0x482bbe['findIndex'](({type:_0x39b39f,subType:_0x56109d})=>_0xf2bdc['type']==_0x39b39f&&_0xf2bdc['subType']==_0x56109d);if(_0x530e54<0x0||_0x1ba37d<0x0)return!0x1;const _0x442472=_0x913e65['getFirstRange'](),_0x3ed6d4=_0xf2bdc['getFirstRange']();if((0x0==_0x530e54||0x1==_0x530e54)&&0x2==_0x1ba37d&&_0x442472['isIntersecting'](_0x3ed6d4))return!0x0;if(0x2==_0x530e54&&0x3==_0x1ba37d){const _0x1b5821=_0x41b17b['_findSuggestions'](_0x442472,'insertion')['filter'](({suggestion:_0x4655bd,meta:_0x210210})=>_0x210210['isOwn']&&'convertInlineImageToBlock'==_0x4655bd['subType']);if(_0x1b5821['length']>0x1&&_0x3ed6d4['end']['isEqual'](_0x442472['start']))return!0x0;if(0x1==_0x1b5821['length']&&(_0x442472['start']['isEqual'](_0x3ed6d4['end'])||_0x442472['end']['isEqual'](_0x3ed6d4['start'])))return!0x0;}if(0x3==_0x530e54&&0x3==_0x1ba37d&&_0x442472['start']['isBefore'](_0x3ed6d4['start'])){const _0x23d222=_0x442472['end']['nodeAfter'],_0x188c4d=_0x3ed6d4['start']['nodeBefore'];return _0x5abefe['isBlockImage'](_0x23d222)&&_0x23d222===_0x188c4d;}return!0x1;}_0x180a86['model']['document']['registerPostFixer'](()=>{let _0x52b13c=!0x1;const _0x5b35cb=Array['from'](_0x180a86['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5066d0,data:_0x3de4a4}of _0x5b35cb){const {group:_0x19716b,type:_0x40ee20,subType:_0x5870ba,id:_0x504e4a}=tt(_0x5066d0);if('suggestion'==_0x19716b&&_0x41b17b['hasSuggestion'](_0x504e4a)){if('formatBlock'==_0x40ee20&&('imageStylePreApply'==_0x5870ba||'imageStylePostApply'==_0x5870ba)){const _0x102887=_0x41b17b['getSuggestion'](_0x504e4a);if(_0x3de4a4['newRange']){const _0x1d5a91=_0x102887['getFirstRange']()['getContainedElement']();if(_0x5abefe['isBlockImage'](_0x1d5a91))continue;_0x41b17b['discardSuggestion'](_0x102887),_0x52b13c=!0x0;}}if('insertion'==_0x40ee20&&'imageCaption'==_0x5870ba&&!_0x3de4a4['newRange']){const _0x2b4a73=_0x41b17b['getSuggestion'](_0x504e4a);_0x2b4a73['next']&&_0x2b4a73['next']['isInContent']&&(_0x41b17b['discardSuggestion'](_0x2b4a73['next']),_0x52b13c=!0x0);}}}return _0x52b13c;}),this['_registerLegacyDescription'](_0x60ca97);}_registerLegacyDescription(_0x100540){const _0x6dda34=this['editor'],_0x523cea=_0x6dda34['locale'];_0x6dda34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8ba406=>{if('formatBlock'!=_0x8ba406['type']&&'formatInline'!=_0x8ba406['type'])return;const {data:_0xfb4597}=_0x8ba406;if(!_0xfb4597||'imageStyle'!=_0xfb4597['commandName'])return;const _0x12db29=_0xfb4597['commandParams'][0x0]['value'];return _0x28dfbc('side'===_0x12db29?Mt(_0x523cea,'FORMAT_SIDE_IMAGE'):_0x100540[_0x12db29]||_0x12db29);function _0x28dfbc(_0x53c511){return{'type':'format','content':Mt(_0x523cea,'*Format:*\x20%0',_0x53c511)};}});}},me=class extends _0x18ca51{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5d276c){super(_0x5d276c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x35b63f=this['editor'],_0x247191=_0x35b63f['commands']['get']('importWord'),_0x538b09=_0x35b63f['commands']['get']('trackChanges');_0x247191&&(_0x247191['on']('execute',(_0x2bbc25,[,_0x342ad3])=>{this['_trackChangesValueDuringImport']=_0x538b09['value'],_0x342ad3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x247191,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x247191,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x538b09['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35b63f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x23ce38,_0x36b236){const {suggestions:_0x54f94c}=_0x36b236,_0x133edd=this['editor']['commands']['get']('trackChanges'),_0x1d0ac3=_0x133edd['value'];this['_trackChangesValueDuringImport']!==_0x1d0ac3&&(_0x133edd['execute'](),this['_trackChangesExecuted']=!0x0),_0x54f94c&&_0x54f94c['forEach'](({id:_0x5bb27d,type:_0x419a66,author:_0x390642,created_at:_0x46aba8})=>{const _0x4955d4={'id':_0x5bb27d,'type':_0x419a66,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x390642,'createdAt':_0x46aba8?new Date(_0x46aba8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4955d4);});}},Ee=class extends _0x18ca51{afterInit(){const _0x305fbe=this['editor'],_0x542e0d=_0x305fbe['plugins']['get']('TrackChangesEditing');if(_0x305fbe['plugins']['has']('IndentEditing')&&(_0x542e0d['enableCommand']('indent'),_0x542e0d['enableCommand']('outdent')),_0x305fbe['plugins']['has']('IndentBlock')){for(const _0x301f16 of['indentBlock','outdentBlock'])_0x542e0d['enableDefaultAttributesIntegration'](_0x301f16);if(_0x305fbe['plugins']['has']('ListEditing')){for(const _0x371155 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x542e0d['enableDefaultAttributesIntegration'](_0x371155);}}const _0x4d8cf4=_0x305fbe['locale'];_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x4d8cf4,'FORMAT_INDENT')),_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x4d8cf4,'FORMAT_INDENT')),_0x542e0d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x4d8cf4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x24e56d=this['editor'],_0x3f5b6e=_0x24e56d['locale'],_0x4d7645=_0x24e56d['plugins']['get']('TrackChangesEditing');_0x4d7645['descriptionFactory']['registerDescriptionCallback'](_0x515871=>{if('formatBlock'!=_0x515871['type'])return;const {data:_0x5b5432}=_0x515871;if(!_0x5b5432)return;if('indentBlock'!=_0x5b5432['commandName']&&'outdentBlock'!=_0x5b5432['commandName'])return;const _0x57345a=_0x515871['getItems']()[0x0],_0x210dda=_0x4d7645['descriptionFactory']['getItemLabel'](_0x57345a);return'indentBlock'==_0x5b5432['commandName']?{'type':'format','content':Mt(_0x3f5b6e,'*Indent:*\x20%0',_0x210dda)}:'outdentBlock'==_0x5b5432['commandName']?{'type':'format','content':Mt(_0x3f5b6e,'*Outdent:*\x20%0',_0x210dda)}:void 0x0;});}},Te=class extends _0x18ca51{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x18ca51{afterInit(){const _0x36e848=this['editor'];if(!_0x36e848['plugins']['has']('LinkEditing'))return;const _0x2c22ea=_0x36e848['plugins']['get']('TrackChangesEditing'),_0x640ba3=_0x36e848['commands']['get']('link');_0x2c22ea['enableDefaultAttributesIntegration']('link'),_0x2c22ea['enableDefaultAttributesIntegration']('unlink');for(const _0x823508 of _0x640ba3['manualDecorators'])_0x2c22ea['descriptionFactory']['registerAttributeLabel'](_0x823508['id'],'link\x20('+_0x823508['label']['toLowerCase']()+')');_0x2c22ea['descriptionFactory']['registerDescriptionCallback'](_0x4270fa=>{if('attribute'!=_0x4270fa['type'])return;const {data:_0x281a15}=_0x4270fa;if(!_0x281a15||'linkHref'!=_0x281a15['key'])return;const _0x5d3631=_0x281a15['newValue'],_0x187912=_0x36e848['locale'];return{'type':'format','content':null==_0x5d3631?Mt(_0x187912,'*Remove\x20link*'):Mt(_0x187912,'*Set\x20link:*\x20%0','\x22'+_0x5d3631+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xa3b4c0=this['editor'],_0x1b939f=_0xa3b4c0['locale'];_0xa3b4c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4864f8=>{if('formatInline'!=_0x4864f8['type'])return;const {data:_0x2a66af}=_0x4864f8;if(_0x2a66af){if('link'==_0x2a66af['commandName']){const _0x429bb1=_0x2a66af['commandParams'][0x0];return{'type':'format','content':Mt(_0x1b939f,'*Set\x20link:*\x20%0','\x22'+_0x429bb1+'\x22')};}return'unlink'==_0x2a66af['commandName']?{'type':'format','content':Mt(_0x1b939f,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x18ca51{afterInit(){const _0x2ac31d=this['editor'],_0x40c376=_0x2ac31d['locale'];if(!_0x2ac31d['plugins']['has']('LegacyListEditing'))return;const _0x5dfd0d=_0x2ac31d['plugins']['get']('TrackChangesEditing'),_0x344834=_0x2ac31d['plugins']['has']('LegacyTodoListEditing');function _0x4ae625(_0x1dd4b1){return()=>{const _0x1f2e52=_0x2ac31d['model']['document']['selection'],_0x5b3eda=_0x2ac31d['commands']['get'](_0x1dd4b1);if(_0x5b3eda['value'])return void _0x2ac31d['execute']('paragraph',{});const _0x2f6782=_0x1dd4b1['slice'](0x0,-0x4),_0x2e1eab=function(_0x1732fe,_0x1e5490,_0x89dac3){let _0x2030a8=Array['from'](_0x1732fe)['filter'](_0x3fee6=>function(_0x1d3f7c,_0x3c26ea){return _0x3c26ea['checkChild'](_0x1d3f7c['parent'],'listItem')&&!_0x3c26ea['isObject'](_0x1d3f7c);}(_0x3fee6,_0x89dac3));_0x2030a8=_0x2030a8['filter'](_0x1ddad9=>!_0x1ddad9['is']('element','listItem')||_0x1ddad9['getAttribute']('listType')!=_0x1e5490);const _0x17c73c=new Set();for(const _0x53a3b0 of _0x2030a8)_0x53a3b0['is']('element','listItem')?_0x17c73c['add'](Le(_0x53a3b0)):_0x17c73c['add'](_0x53a3b0);return Array['from'](_0x17c73c);}(_0x1f2e52['getSelectedBlocks'](),_0x2f6782,_0x2ac31d['model']['schema']);_0x2ac31d['model']['change'](()=>{for(const _0x1bdebc of _0x2e1eab)_0x5dfd0d['markBlockFormat'](_0x1bdebc,{'commandName':_0x1dd4b1,'commandParams':[{'forceValue':!_0x5b3eda['value']}],'formatGroupId':'blockName'},Ie(_0x1bdebc));});};}function _0x4d27bc(_0x28a30f){return()=>{const _0x2fb8d1=function(_0x3c78b8){let _0x1855a1=Array['from'](_0x3c78b8);const _0x26b8d7=_0x1855a1['findIndex'](_0x4242da=>'listItem'!=_0x4242da['name']);return _0x26b8d7>-0x1&&(_0x1855a1=_0x1855a1['slice'](0x0,_0x26b8d7)),_0x1855a1;}(_0x2ac31d['model']['document']['selection']['getSelectedBlocks']()),_0x423c31=_0x2ac31d['model']['createRange'](_0x2ac31d['model']['createPositionAt'](_0x2fb8d1[0x0],'before'),_0x2ac31d['model']['createPositionAt'](_0x2fb8d1[_0x2fb8d1['length']-0x1],'end'));_0x2ac31d['model']['change'](()=>{_0x5dfd0d['markBlockFormat'](_0x423c31,{'commandName':_0x28a30f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d0ba3){const _0x1a82ee=new Set();for(const _0x4bf04c of _0x1d0ba3){let _0xea2171=_0x4bf04c['nextSibling'];for(;_0xea2171&&_0xea2171['getAttribute']('listIndent')>_0x4bf04c['getAttribute']('listIndent');)_0x1a82ee['add'](_0xea2171),_0xea2171=_0xea2171['nextSibling'];}return Array['from'](_0x1a82ee);}(_0x2fb8d1));});};}_0x5dfd0d['enableCommand']('numberedList',_0x4ae625('numberedList')),_0x5dfd0d['enableCommand']('bulletedList',_0x4ae625('bulletedList')),_0x344834&&_0x5dfd0d['enableCommand']('todoList',_0x4ae625('todoList')),_0x5dfd0d['enableCommand']('indentList',_0x4d27bc('indentList')),_0x5dfd0d['enableCommand']('outdentList',_0x4d27bc('outdentList')),_0x344834&&_0x5dfd0d['enableCommand']('checkTodoList',()=>{const _0x34a736=_0x2ac31d['commands']['get']('checkTodoList'),_0x41c600=Array['from'](_0x34a736['_selectedElements']);_0x41c600['filter'](_0x132c3e=>_0x132c3e['getAttribute']('todoListChecked')!=_0x34a736['value']),_0x2ac31d['model']['change'](()=>{for(const _0x2d3ac1 of _0x41c600)_0x5dfd0d['markBlockFormat'](_0x2d3ac1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34a736['value']}]});});}),_0x5dfd0d['descriptionFactory']['registerElementLabel']('listItem',_0x10d552=>Mt(_0x40c376,'ELEMENT_LIST_ITEM',_0x10d552)),_0x5dfd0d['descriptionFactory']['registerDescriptionCallback'](_0x11e80d=>{if('formatBlock'!=_0x11e80d['type']&&'formatInline'!=_0x11e80d['type'])return;const {data:_0x41b8e6}=_0x11e80d;if(_0x41b8e6){if('numberedList'==_0x41b8e6['commandName']||'bulletedList'==_0x41b8e6['commandName']||'todoList'==_0x41b8e6['commandName'])switch(_0x41b8e6['commandName']['replace']('List','')){case'bulleted':return _0x46b37c(Mt(_0x40c376,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46b37c(Mt(_0x40c376,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46b37c(Mt(_0x40c376,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41b8e6['commandName'])return{'type':'format','content':Mt(_0x40c376,'*Indent:*\x20%0',Mt(_0x40c376,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41b8e6['commandName'])return{'type':'format','content':Mt(_0x40c376,'*Outdent:*\x20%0',Mt(_0x40c376,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41b8e6['commandName'])return _0x41b8e6['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x40c376,'*Check\x20item*')}:{'type':'format','content':Mt(_0x40c376,'*Uncheck\x20item*')};}function _0x46b37c(_0x1a5aa5){return{'type':'format','content':Mt(_0x40c376,'*Change\x20to:*\x20%0',_0x1a5aa5)};}});}};function Le(_0x1b199c){const _0x512d7d=_0x1b199c['getAttribute']('listIndent');if(0x0==_0x512d7d)return _0x1b199c;let _0x95e5d5=_0x1b199c;for(;_0x1b199c['previousSibling']&&_0x1b199c['previousSibling']['is']('element','listItem');){const _0x35db36=_0x1b199c['previousSibling']['getAttribute']('listIndent');if(_0x35db36==_0x512d7d)_0x95e5d5=_0x1b199c['previousSibling'];else{if(_0x35db36<_0x512d7d)break;}_0x1b199c=_0x1b199c['previousSibling'];}return _0x95e5d5;}function Ie(_0xb9e51c){const _0x97ca0b=[];if(_0xb9e51c['is']('element','listItem')&&_0xb9e51c['getAttribute']('listIndent')>0x0){let _0x3548a7=_0xb9e51c['nextSibling'];for(;_0x3548a7&&'listItem'==_0x3548a7['name']&&_0x3548a7['getAttribute']('listIndent')==_0xb9e51c['getAttribute']('listIndent');)_0x97ca0b['push'](_0x3548a7),_0x3548a7=_0x3548a7['nextSibling'];}return _0x97ca0b;}var Ae=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d721b=this['editor']['config']['get']('list.properties'),_0x407e54=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d721b['styles']&&_0x407e54['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d721b['reversed']&&_0x407e54['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d721b['startIndex']&&_0x407e54['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x407e54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x5842d6,_0x1ab870={}){const _0x59dfac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x240def=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x59dfac['markMultiRangeBlockFormat'](_0x240def,{'commandName':'listStyle','commandParams':[{'type':_0x1ab870['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x21cb49,_0x1a01c7={}){const _0x3cf7c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25415d=this['_getSuggestionBlocks'](_0x3580db=>_0x3580db['is']('element','listItem')&&'numbered'===_0x3580db['getAttribute']('listType'));if(_0x25415d['length']<0x1)return;const _0x311d87=_0x25415d['map'](_0x141e03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x141e03,'before'),this['editor']['model']['createPositionAt'](_0x141e03,0x0)));this['editor']['model']['change'](()=>{_0x3cf7c5['markMultiRangeBlockFormat'](_0x311d87,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a01c7['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x7c82d7,_0x4e3261={}){const _0x2b8293=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c3238=this['_getSuggestionBlocks'](_0x58f8cc=>_0x58f8cc['is']('element','listItem')&&'numbered'===_0x58f8cc['getAttribute']('listType'));if(_0x4c3238['length']<0x1)return;const _0x18decf=_0x4c3238['map'](_0x1cd9e3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1cd9e3,'before'),this['editor']['model']['createPositionAt'](_0x1cd9e3,0x0)));this['editor']['model']['change'](()=>{_0x2b8293['markMultiRangeBlockFormat'](_0x18decf,{'commandName':'listStart','commandParams':[{'startIndex':_0x4e3261['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55d651){if('formatBlock'!=_0x55d651['type']&&'formatInline'!=_0x55d651['type'])return;const _0x4a8818=this['editor']['locale'],{data:_0x71d1d0}=_0x55d651;if(!_0x71d1d0)return;let _0x1b8b1a,_0x4ee813;switch(_0x71d1d0['commandName']){case'listStyle':_0x1b8b1a='*Change\x20to:*\x20%0',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a,Mt(_0x4a8818,this['_getTranslationKeyForListStyle'](_0x71d1d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b8b1a=_0x71d1d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a)};break;case'listStart':_0x1b8b1a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ee813={'type':'format','content':Mt(_0x4a8818,_0x1b8b1a,_0x71d1d0['commandParams'][0x0]['startIndex'])};}return _0x4ee813;}_getSuggestionBlocksForListStyle(){const _0x281769=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bb1bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bb1bf[0x0]?.['is']('element','listItem')&&_0x2bb1bf['unshift'](..._0x281769['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bb1bf[_0x2bb1bf['length']-0x1]?.['is']('element','listItem')&&_0x2bb1bf['push'](..._0x281769['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bb1bf=[...new Set(_0x2bb1bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bb1bf=_0x2bb1bf['filter'](_0x3a2a82=>_0x3a2a82['is']('element','listItem'))),_0x2bb1bf;}_getSuggestionBlocks(_0x354c5f){const _0x18fdd8=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d2495=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x354c5f)['map'](_0x4a1aa5=>{const _0x192005=this['editor']['model']['createPositionAt'](_0x4a1aa5,0x0);return[..._0x18fdd8['getSiblingNodes'](_0x192005,'backward'),..._0x18fdd8['getSiblingNodes'](_0x192005,'forward')];})['flat']();return _0x3d2495=[...new Set(_0x3d2495)],_0x3d2495;}_getTranslationKeyForListStyle(_0x574178){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x574178)||'default')['toUpperCase']()+'_LIST_'+_0x574178['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x18ca51{afterInit(){const _0xd05141=this['editor'];if(!_0xd05141['plugins']['has']('MediaEmbedEditing'))return;const _0x3da271=_0xd05141['plugins']['get']('TrackChangesEditing'),_0x4ac715=_0xd05141['locale'];_0x3da271['enableCommand']('mediaEmbed'),_0x3da271['descriptionFactory']['registerElementLabel']('media',_0x192d39=>Mt(_0x4ac715,'ELEMENT_MEDIA',_0x192d39)),_0xd05141['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3da271['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3da271['descriptionFactory']['registerDescriptionCallback'](_0x2a4a63=>{if('attribute'!=_0x2a4a63['type'])return;const {data:_0x3a5ff9}=_0x2a4a63;if(!_0x3a5ff9||'resizedWidth'!=_0x3a5ff9['key'])return;const _0x516367=_0x2a4a63['getContainedElement']();if(!_0x516367||!_0x516367['is']('element','media'))return;const _0x271a94=Mt(_0x4ac715,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x4ac715,'*Set\x20format:*\x20%0',_0x271a94)};}));}},ke=class extends _0x18ca51{afterInit(){const _0x55636a=this['editor'];if(!_0x55636a['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x53a6c5=_0x55636a['plugins']['get']('TrackChangesEditing'),_0x948c70=_0x55636a['locale'],_0x5a4c48=_0x55636a['plugins']['get']('MediaEmbedStyleEditing'),_0x28076e={};for(const _0x1c0bcb of _0x5a4c48['normalizedStyles'])_0x28076e[_0x1c0bcb['name']]=_0x1c0bcb['title']['toLowerCase']();const _0x277746=_0x5a4c48['normalizedStyles']['find'](_0x338bfc=>_0x338bfc['isDefault'])?.['name'];_0x53a6c5['enableCommand']('mediaStyle',(_0x176891,_0x378636)=>{const _0x1daadb=_0x55636a['plugins']['get']('Users')['me'],_0x544c5f=_0x55636a['commands']['get']('mediaStyle'),_0x24877e=function(_0xb7cc7e){const _0x25351c=_0xb7cc7e['model']['document']['selection']['getSelectedElement']();return _0x25351c&&_0x25351c['is']('element','media')?_0x25351c:null;}(_0x55636a);if(!_0x24877e)return;const _0x20ea1b=_0x55636a['model']['createRangeOn'](_0x24877e);let _0x333ec9=_0x544c5f['value'];if(_0x333ec9==_0x378636['value'])return;const _0x57c90b={'commandName':'mediaStyle','commandParams':[_0x378636],'formatGroupId':_0x3f17ac()};_0x55636a['model']['change'](()=>{_0x53a6c5['getSuggestions']()['filter'](_0x36f5aa=>_0x36f5aa['isInContent']&&_0x1daadb==_0x36f5aa['author']&&'formatBlock'==_0x36f5aa['type']&&'mediaStylePostApply'==_0x36f5aa['subType']&&_0x36f5aa['getFirstRange']()['isEqual'](_0x20ea1b))['forEach'](_0xe8bc9b=>_0x53a6c5['discardSuggestion'](_0xe8bc9b['head'])),_0x544c5f['refresh'](),_0x333ec9=_0x544c5f['value'],_0x333ec9!=_0x378636['value']&&_0x53a6c5['markBlockFormat'](_0x24877e,{..._0x57c90b,'commandReversedParams':[{'value':'string'==typeof _0x333ec9?_0x333ec9:null}]},[],'mediaStylePostApply');});}),_0x53a6c5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x53a6c5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4c892b,_0x283777)=>{_0x53a6c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c892b,{'commandName':_0x283777['commandName'],'commandParams':_0x283777['commandReversedParams']});}),_0x53a6c5['descriptionFactory']['registerDescriptionCallback'](_0x36421f=>{if('formatBlock'!=_0x36421f['type'])return;const {data:_0x3ad7ab}=_0x36421f;if(!_0x3ad7ab||'mediaStyle'!=_0x3ad7ab['commandName'])return;const _0x26c1b4=_0x3ad7ab['commandParams'][0x0]['value']||_0x277746;if(!_0x26c1b4)return;const _0x2e7a2d=_0x28076e[_0x26c1b4]||_0x26c1b4;return{'type':'format','content':Mt(_0x948c70,'*Format:*\x20%0',_0x2e7a2d)};});}},Ce=class extends _0x18ca51{afterInit(){const _0x557759=this['editor'];_0x557759['plugins']['has']('MentionEditing')&&_0x557759['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x18ca51{afterInit(){const _0x565baf=this['editor'];if(!_0x565baf['plugins']['has']('MergeFieldsEditing'))return;const _0x2b493f=_0x565baf['plugins']['get']('TrackChangesEditing'),_0x236e97=_0x565baf['locale'];_0x2b493f['enableCommand']('insertMergeField'),_0x2b493f['enableCommand']('insertMergeFieldBlock'),_0x2b493f['enableCommand']('insertMergeFieldImage'),_0x2b493f['descriptionFactory']['registerElementLabel']('mergeField',_0x20d591=>Mt(_0x236e97,'ELEMENT_MERGE_FIELD',_0x20d591)),_0x2b493f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x156bb2=>Mt(_0x236e97,'ELEMENT_MERGE_FIELD',_0x156bb2)),_0x2b493f['descriptionFactory']['registerDescriptionCallback'](_0x2b9c54=>{if('insertion'!=_0x2b9c54['type']&&'deletion'!=_0x2b9c54['type'])return;const _0x101e2c=_0x2b9c54['getContainedElement']();if(null==_0x101e2c)return;const _0x94d5a=_0x565baf['plugins']['get']('MergeFieldsEditing');let _0x2888a3;switch(_0x94d5a['getMergeFieldType'](_0x101e2c)){case null:return;case'image':{const _0x3e3e9b=_0x94d5a['unwrapAffixes'](_0x101e2c['getAttribute']('src'));_0x2888a3=_0x94d5a['getLabel'](_0x3e3e9b)||_0x3e3e9b;break;}default:{const _0x2e8831=_0x101e2c['getAttribute']('id');_0x2888a3=_0x94d5a['getLabel'](_0x2e8831)||_0x2e8831;break;}}return'insertion'==_0x2b9c54['type']?{'type':'insertion','content':Mt(_0x236e97,'*Insert:*\x20%0','\x22'+_0x2888a3+'\x22\x20'+Mt(_0x236e97,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x236e97,'*Remove:*\x20%0','\x22'+_0x2888a3+'\x22\x20'+Mt(_0x236e97,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x18ca51{afterInit(){const _0x485891=this['editor'],_0x408bd9=_0x485891['plugins']['get']('TrackChangesEditing');_0x485891['plugins']['has']('MultiLevelList')&&(_0x408bd9['enableDefaultAttributesIntegration']('multiLevelList'),_0x408bd9['descriptionFactory']['registerDescriptionCallback'](_0x42173f=>this['handleDescriptions'](_0x42173f)));}handleDescriptions(_0x1b7410){const _0x59577b=this['editor']['locale'],{data:_0x594d00}=_0x1b7410,_0x5a9cdb={'type':'format','content':''};if(_0x594d00&&'listMarkerStyle'==_0x594d00['key']){if(!_0x594d00['oldValue'])return{'type':'format','content':Mt(_0x59577b,'*Set\x20format:*\x20%0',Mt(_0x59577b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x594d00['newValue']+')'};if(!_0x594d00['newValue']){let _0x294da7=_0x1b7410['head'];for(;_0x294da7;){if(_0x294da7['data']&&'listType'==_0x294da7['data']['key']&&_0x294da7['data']['newValue'])return _0x5a9cdb;_0x294da7=_0x294da7['next'];}return{'type':'format','content':Mt(_0x59577b,'*Remove\x20format:*\x20%0',Mt(_0x59577b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x594d00['oldValue']+')'};}}}},Ne=class extends _0x18ca51{afterInit(){const _0x5ebda5=this['editor'];if(!_0x5ebda5['plugins']['has']('PageBreakEditing'))return;_0x5ebda5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x7ab1ac=_0x5ebda5['plugins']['get']('TrackChangesEditing'),_0x383ef6=_0x5ebda5['locale'];_0x7ab1ac['descriptionFactory']['registerElementLabel']('pageBreak',_0x56e930=>Mt(_0x383ef6,'ELEMENT_PAGE_BREAK',_0x56e930));}},Se=class extends _0x18ca51{afterInit(){const _0x2aa814=this['editor'];if(!_0x2aa814['plugins']['has']('Paragraph'))return;const _0x3ac03d=_0x2aa814['locale'],_0x2da060=_0x2aa814['plugins']['get']('TrackChangesEditing');_0x2da060['descriptionFactory']['registerElementLabel']('paragraph',_0x4c92a5=>Mt(_0x3ac03d,'ELEMENT_PARAGRAPH',_0x4c92a5)),_0x2da060['enableDefaultAttributesIntegration']('paragraph'),_0x2da060['enableCommand']('insertParagraph');const _0x215cb4=_0x2da060['descriptionFactory'];_0x215cb4['registerDescriptionCallback'](_0x137e84=>{if('insertion'!==_0x137e84['type'])return;const {start:_0x718452,end:_0xc7878b}=_0x137e84['getFirstRange']();if(!_0x718452['isTouching'](_0xc7878b)||!_0x718452['nodeAfter'])return;const _0x54bf5b=_0x2aa814['model']['schema'],_0x4a419d=_0x718452['nodeAfter'];return _0x54bf5b['isBlock'](_0x4a419d)&&!_0x54bf5b['isLimit'](_0x4a419d)&&_0x54bf5b['checkChild'](_0x4a419d,'$text')?{'type':'insertion','content':Mt(_0x3ac03d,'*Insert:*\x20%0',_0x215cb4['getItemLabel'](_0x4a419d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2cee86=this['editor'],_0x4bdb3a=_0x2cee86['locale'];_0x2cee86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dd63e=>{if('formatBlock'!=_0x5dd63e['type'])return;const {data:_0xb158b9}=_0x5dd63e;return _0xb158b9&&'paragraph'==_0xb158b9['commandName']?{'type':'format','content':Mt(_0x4bdb3a,'*Change\x20to:*\x20%0',Mt(_0x4bdb3a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x18ca51{afterInit(){const _0x461cab=this['editor'];_0x461cab['commands']['get']('replaceSource')&&_0x461cab['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x18ca51{afterInit(){const _0x483419=this['editor'];_0x483419['plugins']['has']('RemoveFormatEditing')&&(_0x483419['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5cd06a=this['editor'];_0x5cd06a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x343d0a=>{if('formatBlock'!=_0x343d0a['type']&&'formatInline'!=_0x343d0a['type'])return;const {data:_0x2448dd}=_0x343d0a;return _0x2448dd&&'removeFormat'==_0x2448dd['commandName']?{'type':'format','content':Mt(_0x5cd06a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x18ca51{afterInit(){const _0x128710=this['editor'];if(!_0x128710['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1fcfa1=_0x128710['plugins']['get']('TrackChangesEditing');_0x1fcfa1['enableCommand']('goToPreviousRestrictedEditingException'),_0x1fcfa1['enableCommand']('goToNextRestrictedEditingException');const _0x46afed=_0x128710['plugins']['get']('RestrictedEditingModeEditing');_0x46afed['enableCommand']('trackChanges'),_0x46afed['enableCommand']('acceptSuggestion'),_0x46afed['enableCommand']('discardSuggestion'),_0x46afed['enableCommand']('acceptAllSuggestions'),_0x46afed['enableCommand']('discardAllSuggestions'),_0x46afed['enableCommand']('acceptSelectedSuggestions'),_0x46afed['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x18ca51{afterInit(){const _0x3f60f6=this['editor'];if(!_0x3f60f6['plugins']['has']('ShiftEnter'))return;const _0x330ce7=_0x3f60f6['plugins']['get']('TrackChangesEditing');_0x330ce7['enableCommand']('shiftEnter'),_0x330ce7['descriptionFactory']['registerElementLabel']('softBreak',_0x2fd044=>Mt(_0x3f60f6['locale'],'ELEMENT_LINE_BREAK',_0x2fd044));}};function Be(_0x53bc28,_0x3f5439,_0x54a71f){const _0x2fa08d=[];for(const _0x513bc3 of _0x3f5439['getItems']())_0x513bc3['hasAttribute'](_0x53bc28)&&_0x2fa08d['push'](_0x54a71f['createRangeOn'](_0x513bc3));return _0x2fa08d;}var ve=class extends _0x18ca51{afterInit(){const _0x42bb52=this['editor'],_0x108cd0=_0x42bb52['plugins']['get']('TrackChangesEditing');_0x42bb52['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x108cd0['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5b7737=this['editor'],_0x50b50c=_0x5b7737['model'],_0x117e73=_0x5b7737['locale'],_0x48137a=_0x5b7737['plugins']['get']('TrackChangesEditing'),_0x2cb763='restrictedEditingException',_0x2bd6a9=_0x5b7737['commands']['get'](_0x2cb763);_0x48137a['enableCommand'](_0x2cb763,(_0x423115,_0x3cfec1={})=>{const _0x1adb05=_0x50b50c['document']['selection'];if(_0x1adb05['isCollapsed'])return void _0x423115(_0x3cfec1);const _0x5da97e=void 0x0!==_0x3cfec1['forceValue']?_0x3cfec1['forceValue']:!_0x2bd6a9['value'];_0x50b50c['change'](()=>{const _0x4f4d04=Array['from'](_0x1adb05['getRanges']());for(const _0x59f57c of _0x4f4d04){const _0x166d3=_0x5da97e?[_0x59f57c]:Be(_0x2cb763,_0x59f57c,_0x50b50c);for(const _0x131577 of _0x166d3)_0x48137a['markInlineFormat'](_0x131577,{'commandName':_0x2cb763,'commandParams':[{'forceValue':_0x5da97e}]});}});}),_0x48137a['descriptionFactory']['registerDescriptionCallback'](_0x553ea9=>{if('formatBlock'!=_0x553ea9['type']&&'formatInline'!=_0x553ea9['type'])return;const {data:_0x30f8eb}=_0x553ea9;return _0x30f8eb&&_0x30f8eb['commandName']==_0x2cb763?_0x30f8eb['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x117e73,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x117e73,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x530125=this['editor'],_0x5c61aa=_0x530125['locale'],_0x91b43b=_0x530125['plugins']['get']('TrackChangesEditing'),_0x3ee41e='restrictedEditingExceptionBlock',_0x3f2756=this['editor']['commands']['get'](_0x3ee41e);_0x91b43b['enableCommand'](_0x3ee41e,(_0x145d1b,_0x27c5c8={})=>{const _0x22a966=this['editor']['model']['document']['selection'],_0x369049=_0x27c5c8&&void 0x0!==_0x27c5c8['forceValue']?_0x27c5c8['forceValue']:!_0x3f2756['value'];let _0x1e7f11=[];if(_0x369049){const _0x519529=Array['from'](_0x22a966['getSelectedBlocks']())['filter'](_0xe6bc2d=>function(_0x5d9693){return!!_0x5d9693['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xe6bc2d)||function(_0x1e173e,_0x2e29f3){const _0x3de2a0=_0x2e29f3['createContext'](_0x1e173e['parent']);return!!_0x2e29f3['checkChild'](_0x3de2a0,'restrictedEditingException')&&!!_0x2e29f3['checkChild'](_0x3de2a0['push']('restrictedEditingException'),_0x1e173e);}(_0xe6bc2d,this['editor']['model']['schema']));_0x1e7f11=bt(_0x519529,_0x530125['model']);}else{const _0x23efe0=Array['from'](_0x22a966['getSelectedBlocks']())['map'](_0x4fd4b9=>function(_0x3e560c){let _0x2cf257=_0x3e560c;for(;_0x2cf257['parent'];){if('restrictedEditingException'==_0x2cf257['parent']['name'])return _0x2cf257;_0x2cf257=_0x2cf257['parent'];}return null;}(_0x4fd4b9))['filter'](_0x1e1417=>!!_0x1e1417);_0x1e7f11=bt(_0x23efe0,_0x530125['model']);}_0x530125['model']['change'](()=>{for(const _0x897847 of _0x1e7f11)_0x91b43b['markBlockFormat'](_0x897847,{'commandName':_0x3ee41e,'commandParams':[{'forceValue':_0x369049}]});});}),_0x91b43b['descriptionFactory']['registerDescriptionCallback'](_0x34207c=>{const {data:_0x5bd5ff}=_0x34207c;if(_0x5bd5ff&&_0x5bd5ff['commandName']==_0x3ee41e)return _0x5bd5ff['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5c61aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x5c61aa,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x18ca51{afterInit(){const _0x4dc7a8=this['editor'];_0x4dc7a8['plugins']['has']('Style')&&_0x4dc7a8['plugins']['has']('DataSchema')&&(_0x4dc7a8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x49c3ce=this['editor'],_0x502628=_0x49c3ce['locale'];_0x49c3ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b3db=>{if('formatBlock'!=_0x12b3db['type']&&'formatInline'!=_0x12b3db['type'])return;const {data:_0x25c78f}=_0x12b3db;return _0x25c78f&&'style'===_0x25c78f['commandName']?_0x25c78f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x502628,'*Set\x20format:*\x20%0',_0x25c78f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x502628,'*Remove\x20format:*\x20%0',_0x25c78f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x18ca51{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x14abb7){super(_0x14abb7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x557923=this['editor'],_0x535e93=_0x557923['model']['document']['selection'];if(!_0x557923['plugins']['has']('TableEditing'))return;const _0x33ea2b=_0x557923['locale'],_0x2b603f=_0x557923['plugins']['get']('TrackChangesEditing'),_0x1006c8=_0x557923['plugins']['get']('TableUtils');_0x2b603f['descriptionFactory']['registerElementLabel']('table',_0x41a2ad=>Mt(_0x33ea2b,'ELEMENT_TABLE',_0x41a2ad)),this['_setupColumnsRowsFixing'](),_0x2b603f['enableCommand']('insertTable'),_0x2b603f['enableCommand']('selectTableRow'),_0x2b603f['enableCommand']('selectTableColumn');for(const _0x4b7199 of['insertTableRowAbove','insertTableRowBelow']){const _0x3cb010=_0x557923['commands']['get'](_0x4b7199);_0x2b603f['enableCommand'](_0x4b7199,_0x4f73b9=>{_0x557923['model']['change'](_0x1eccc5=>{_0x4f73b9();const _0x4fbc99='above'===_0x3cb010['order'],_0x5e0129=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x582bcf=_0x1006c8['getRowIndexes'](_0x5e0129),_0x4cbdf8=_0x4fbc99?_0x582bcf['first']-0x1:_0x582bcf['last']+0x1,_0x191cc7=_0x5e0129[0x0]['findAncestor']('table'),_0x25d310=_0x1006c8['createTableWalker'](_0x191cc7,{'startRow':_0x4cbdf8,'endRow':_0x4cbdf8}),_0xdbd3f9=Array['from'](_0x25d310)['map'](_0x1e2e81=>_0x1eccc5['createRangeOn'](_0x1e2e81['cell']));_0x2b603f['markMultiRangeInsertion'](_0xdbd3f9,'tableRow');});});}for(const _0x25059a of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b02b7=_0x557923['commands']['get'](_0x25059a);_0x2b603f['enableCommand'](_0x25059a,_0x14956f=>{_0x557923['model']['change'](_0x4cac5a=>{_0x14956f();const _0x29dea8='left'===_0x5b02b7['order'],_0x278612=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x43ad6c=_0x1006c8['getColumnIndexes'](_0x278612),_0x4b42a4=_0x29dea8?_0x43ad6c['first']-0x1:_0x43ad6c['last']+0x1,_0x344f63=_0x278612[0x0]['findAncestor']('table'),_0x23e1ed=_0x1006c8['createTableWalker'](_0x344f63,{'startRow':0x0,'column':_0x4b42a4,'includeAllSlots':!0x1}),_0x541b70=Array['from'](_0x23e1ed)['map'](_0x3078ee=>_0x4cac5a['createRangeOn'](_0x3078ee['cell']));_0x2b603f['markMultiRangeInsertion'](_0x541b70,'tableColumn');});});}for(const _0x2ff5d7 of['removeTableRow','removeTableColumn']){const _0x45e2a6=_0x2ff5d7['substr'](0xb),_0x10b2cf=_0x45e2a6['toLowerCase'](),_0x392045=_0x10b2cf['substr'](0x0,0x3)+'span',_0x3277e2='table'+_0x45e2a6,_0x14ef13='min'+_0x45e2a6,_0x12281d='max'+_0x45e2a6;_0x2b603f['enableCommand'](_0x2ff5d7,()=>{_0x557923['model']['change'](_0x39ccf8=>{const _0x19cf01=_0x1006c8['getSelectionAffectedTableCells'](_0x535e93),_0x2055b0=_0x19cf01[0x0]['findAncestor']('table');let _0x2c25e9;if('removeTableRow'==_0x2ff5d7){const _0x41da3a=_0x1006c8['getRowIndexes'](_0x19cf01);_0x2c25e9={'startRow':_0x41da3a['first'],'endRow':_0x41da3a['last'],'includeAllSlots':!0x0};}else{const _0x1adf95=_0x1006c8['getColumnIndexes'](_0x19cf01);_0x2c25e9={'startColumn':_0x1adf95['first'],'endColumn':_0x1adf95['last'],'includeAllSlots':!0x0};}const _0x2e73a3=_0x1006c8['createTableWalker'](_0x2055b0,_0x2c25e9),_0x2aaf2b=Array['from'](_0x2e73a3)['map'](({cell:_0xdd9e5b})=>_0xdd9e5b),_0x539f78=Pe(_0x2aaf2b['filter'](_0x77c619=>_0x77c619['hasAttribute'](_0x392045))),_0x539ad8=Pe(_0x2aaf2b['filter'](_0x37848c=>!_0x37848c['hasAttribute'](_0x392045)))['map'](_0x12e25a=>_0x39ccf8['createRangeOn'](_0x12e25a)),_0xccced1=_0x2b603f['markMultiRangeDeletion'](_0x539ad8,_0x3277e2);if(_0xccced1&&('tableRow'==_0xccced1['subType']||'tableColumn'==_0xccced1['subType'])){const _0x5129e1=this['_getSuggestionCoords'](_0xccced1);for(const _0x162fe6 of _0x539f78){const _0x44ebae=_0x39ccf8['createRangeOn'](_0x162fe6),_0x5eb28f=_0x1006c8['getCellLocation'](_0x162fe6),_0x407276=_0x162fe6['getAttribute'](_0x392045)-0x1,_0x3f3132=_0x5129e1[_0x14ef13],_0x168887=_0x5129e1[_0x12281d];_0x3f3132<=_0x5eb28f[_0x10b2cf]&&_0x5eb28f[_0x10b2cf]+_0x407276<=_0x168887&&_0xccced1['addRange'](_0x44ebae);}}});});}function _0x2009b0(_0x125f30){const _0xbd019a=Array['from'](_0x535e93['getRanges']())['map'](_0xe4ab1f=>rt['fromRange'](_0xe4ab1f));_0x557923['model']['change'](_0x497e52=>{const _0x37234e=_0x497e52['batch'];_0x125f30=_0x125f30['filter'](_0x401b0e=>'$graveyard'!=_0x401b0e['root']['rootName']),_0x497e52['setSelection'](_0x125f30),_0x557923['commands']['get']('removeTableRow')['refresh'](),_0x557923['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x557923['model']['enqueueChange'](()=>{_0x557923['model']['enqueueChange'](_0x37234e,_0x4276ca=>{const _0xa2261b=_0xbd019a['filter'](_0xf12bda=>'$graveyard'!=_0xf12bda['root']['rootName']);_0xa2261b['length']>0x0&&_0x4276ca['setSelection'](_0xa2261b);for(const _0x107cc5 of _0xbd019a)_0x107cc5['detach']();});});});}function _0x110e00(_0x4f1fcd){_0x557923['model']['change'](_0x239847=>{const _0x35e7b3=Array['from'](_0x535e93['getRanges']())['map'](_0x2bcf7c=>rt['fromRange'](_0x2bcf7c)),_0x2bfc81=[];for(const _0x505012 of _0x4f1fcd)for(const _0x4add18 of _0x505012['getItems']({'shallow':!0x0}))_0x2bfc81['push'](_0x4add18);for(const _0x22bc8f of _0x2bfc81)'$graveyard'!=_0x22bc8f['root']['rootName']&&(_0x239847['setSelection'](_0x239847['createPositionAt'](_0x22bc8f,0x0)),_0x557923['commands']['get']('removeTableColumn')['refresh'](),_0x557923['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3bdfd4=_0x35e7b3['filter'](_0x111240=>'$graveyard'!=_0x111240['root']['rootName']);_0x3bdfd4['length']>0x0&&_0x239847['setSelection'](_0x3bdfd4);for(const _0x52e8f3 of _0x35e7b3)_0x52e8f3['detach']();});}function _0x16857f(_0x4fecaf,_0x5624e3){return _0x5624e3['every'](_0x31c226=>_0x4fecaf['some'](_0x2ed1ce=>_0x2ed1ce['end']['isEqual'](_0x31c226['start'])||_0x31c226['end']['isEqual'](_0x2ed1ce['start'])));}function _0x4d5306(_0x4f91cd,_0x12f9ff){return!_0x4f91cd['some'](_0x579451=>_0x12f9ff['some'](_0x11e76e=>_0x579451['isIntersecting'](_0x11e76e)))&&_0x4f91cd['some'](_0x3911b5=>_0x12f9ff['some'](_0xdc6ac4=>_0x3911b5['end']['isTouching'](_0xdc6ac4['start'])));}_0x2b603f['descriptionFactory']['registerDescriptionCallback'](_0x44639c=>{if('insertion'!=_0x44639c['type']&&'deletion'!=_0x44639c['type'])return;const _0x1abbd5=_0x44639c['getContainedElement']();if(null!=_0x1abbd5&&_0x1abbd5['is']('element','table')){if('insertion'==_0x44639c['type']){const _0xbafc39=_0x44639c['getItems']()['filter'](_0x13b4cc=>_0x13b4cc['is']('$textProxy'))['map'](_0x55837f=>_0x55837f['data']);if(_0xbafc39['length'])return{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbafc39['join']('\x20')+'\x22'))};}if('deletion'==_0x44639c['type']){const _0xbc54be=_0x44639c['getItems']()['filter'](_0x214a1a=>_0x214a1a['is']('$textProxy'))['map'](_0x4a32c8=>_0x4a32c8['data']);if(_0xbc54be['length'])return{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xbc54be['join']('\x20')+'\x22'))};}}}),_0x2b603f['descriptionFactory']['registerDescriptionCallback'](_0x53f055=>{if('tableRow'==_0x53f055['subType']){const _0xcc6368=_0x53f055['getItems']()['filter'](_0x39293=>_0x39293['is']('$textProxy'))['map'](_0x24b0e6=>_0x24b0e6['data']),_0x2d687c=this['_getSuggestionCoords'](_0x53f055),_0x199fec=_0x2d687c['maxRow']-_0x2d687c['minRow']+0x1;if('insertion'==_0x53f055['type'])return _0xcc6368['length']?{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x199fec,'\x22'+_0xcc6368['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW',_0x199fec))};if('deletion'==_0x53f055['type'])return _0xcc6368['length']?{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x199fec,'\x22'+_0xcc6368['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_ROW',_0x199fec))};}if('tableColumn'==_0x53f055['subType']){const _0x3c22c8=_0x53f055['getItems']()['filter'](_0x2ed497=>_0x2ed497['is']('$textProxy'))['map'](_0x794ce6=>_0x794ce6['data']),_0x42d3a8=this['_getSuggestionCoords'](_0x53f055),_0x507204=_0x42d3a8['maxColumn']-_0x42d3a8['minColumn']+0x1;if('insertion'==_0x53f055['type'])return _0x3c22c8['length']?{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x507204,'\x22'+_0x3c22c8['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x33ea2b,'*Insert:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN',_0x507204))};if('deletion'==_0x53f055['type'])return _0x3c22c8['length']?{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x507204,'\x22'+_0x3c22c8['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x33ea2b,'*Remove:*\x20%0',Mt(_0x33ea2b,'ELEMENT_TABLE_COLUMN',_0x507204))};}}),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2009b0),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2009b0),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x110e00),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x110e00),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16857f),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16857f),_0x2b603f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4d5306),_0x2b603f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4d5306);}_acceptFormatSuggestionCallbackFactory(){const _0x17be8f=this['editor'],_0x513451=_0x17be8f['model']['document']['selection'];return(_0x324f8d,_0x30346e)=>{_0x17be8f['model']['change'](_0x6aa931=>{const {commandName:_0x4944db,commandParams:_0x258ae4}=_0x30346e;let _0x452422=_0x324f8d[0x0]['end']['nodeBefore'];_0x258ae4&&_0x258ae4[0x0]&&!0x1===_0x258ae4[0x0]['forceValue']&&(_0x452422=_0x324f8d[0x0]['start']['nodeAfter']);const _0x598385=_0x6aa931['createRangeIn'](_0x452422);if('$graveyard'==_0x598385['root']['rootName'])return;const _0x4c352f=Array['from'](_0x513451['getRanges']())['map'](_0x595638=>rt['fromRange'](_0x595638));_0x6aa931['setSelection'](_0x598385),_0x17be8f['commands']['get'](_0x4944db)['refresh'](),_0x258ae4['push']({'forceDefaultExecution':!0x0}),_0x17be8f['execute'](_0x4944db,..._0x258ae4);const _0x2d5e94=_0x4c352f['filter'](_0x568d2a=>'$graveyard'!=_0x568d2a['root']['rootName']);_0x2d5e94['length']>0x0&&_0x6aa931['setSelection'](_0x2d5e94);for(const _0x47368a of _0x4c352f)_0x47368a['detach']();});};}_getCoordsForCells(_0x3124f3){const _0x48efb3=this['editor']['plugins']['get']('TableUtils');let _0x3d660b=Number['MAX_SAFE_INTEGER'],_0x1380a9=Number['MIN_SAFE_INTEGER'],_0x1ead5b=Number['MAX_SAFE_INTEGER'],_0x3de170=Number['MIN_SAFE_INTEGER'];for(const _0x4e0fe7 of _0x3124f3){if('$graveyard'==_0x4e0fe7['root']['rootName'])continue;const {row:_0x3b5f6c,column:_0x2c51ac}=_0x48efb3['getCellLocation'](_0x4e0fe7),_0x173876=_0x4e0fe7['hasAttribute']('rowspan')?_0x4e0fe7['getAttribute']('rowspan')-0x1:0x0,_0xfaa717=_0x4e0fe7['hasAttribute']('colspan')?_0x4e0fe7['getAttribute']('colspan')-0x1:0x0;_0x3d660b=_0x3b5f6c<_0x3d660b?_0x3b5f6c:_0x3d660b,_0x1380a9=_0x3b5f6c+_0x173876>_0x1380a9?_0x3b5f6c+_0x173876:_0x1380a9,_0x1ead5b=_0x2c51ac<_0x1ead5b?_0x2c51ac:_0x1ead5b,_0x3de170=_0x2c51ac+_0xfaa717>_0x3de170?_0x2c51ac+_0xfaa717:_0x3de170;}return{'minRow':_0x3d660b,'maxRow':_0x1380a9,'minColumn':_0x1ead5b,'maxColumn':_0x3de170};}_setupColumnsRowsFixing(){const _0x32cbfd=this['editor'],_0x442a9c=_0x32cbfd['plugins']['get']('TrackChangesEditing'),_0x155bca=_0x32cbfd['plugins']['get']('TableUtils');_0x32cbfd['model']['document']['on']('change:data',()=>{const _0x105a34=Array['from'](_0x32cbfd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d3c36,data:_0x316454}of _0x105a34){const {group:_0x50ebd5,id:_0x5642bc,subType:_0x404544}=tt(_0x2d3c36);if('suggestion'!=_0x50ebd5)continue;if(null!=_0x316454['oldRange'])continue;const _0x5c9fc7=_0x442a9c['getSuggestion'](_0x5642bc);this['_tablePostFixingSubtypes']['includes'](_0x404544)&&this['_tableSuggestions']['add'](_0x5c9fc7);}},{'priority':'low'});const _0x5dc9c4=(_0x445d15,_0x2fb7a6)=>{let _0x56d0cd=!0x1;const _0xd65433=_0x2fb7a6['createRangeOn'](_0x445d15),_0x2d00d1=_0x445d15['findAncestor']('table'),_0x26e113=_0x155bca['getCellLocation'](_0x445d15);for(const _0x56a11f of this['_tableSuggestions']){const _0x4d91bd=_0x56a11f['subType'],_0x4fc022=_0x4d91bd['startsWith']('tablePaste'),_0x3bbddb=_0x4d91bd['substr'](_0x4fc022?0xa:0x5),_0x32e8f1=_0x3bbddb['toLowerCase'](),_0x187c23=_0x32e8f1['substr'](0x0,0x3)+'span',_0x4cd65e='min'+_0x3bbddb,_0x43f4d1='max'+_0x3bbddb;if(!_0x56a11f['isInContent'])continue;if(_0x2d00d1!=_0x56a11f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a11f['isIntersectingWithRange'](_0xd65433))continue;const _0x5a7e62=_0x445d15['hasAttribute'](_0x187c23)?_0x445d15['getAttribute'](_0x187c23)-0x1:0x0,_0x55f705=this['_getSuggestionCoords'](_0x56a11f),_0x5d6efc=_0x55f705[_0x4cd65e],_0x57c00b=_0x55f705[_0x43f4d1];_0x5d6efc<=_0x26e113[_0x32e8f1]&&_0x26e113[_0x32e8f1]+_0x5a7e62<=_0x57c00b&&(_0x56a11f['addRange'](_0xd65433),_0x56d0cd=!0x0);}return _0x56d0cd;};_0x32cbfd['model']['document']['registerPostFixer'](_0x271708=>{let _0x26ff7b=!0x1;for(const _0x4927a4 of _0x32cbfd['model']['document']['differ']['getChanges']())if('insert'==_0x4927a4['type']){if('tableRow'==_0x4927a4['name']){for(const _0x2ba3a9 of _0x4927a4['position']['nodeAfter']['getChildren']())_0x26ff7b=_0x26ff7b||_0x5dc9c4(_0x2ba3a9,_0x271708);}else'tableCell'==_0x4927a4['name']&&(_0x26ff7b=_0x26ff7b||_0x5dc9c4(_0x4927a4['position']['nodeAfter'],_0x271708));}return _0x26ff7b;});}_getSuggestionCoords(_0x5ea7ab){return this['_getCoordsForCells'](_0x5ea7ab['getRanges']()['map'](_0x1de118=>_0x1de118['start']['nodeAfter']));}};function Pe(_0x367bd6){return Array['from'](new Set(_0x367bd6)['values']());}var xe=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x4dd060=this['editor'],_0x35bebe=_0x4dd060['model']['document']['selection'],_0x30aee2=_0x4dd060['locale'];if(!_0x4dd060['plugins']['has']('TableEditing'))return;const _0x11f722=_0x4dd060['plugins']['get']('TrackChangesEditing'),_0x5aeaae=_0x4dd060['plugins']['get']('TableUtils'),_0x20852e=_0x4dd060['plugins']['get'](Ue);_0x20852e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11f722['enableCommand']('mergeTableCells',()=>{const _0x24c105=_0x5aeaae['getSelectionAffectedTableCells'](_0x4dd060['model']['document']['selection']);_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat'](_0x24c105,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4dd060['commands']['get']('mergeTableCells')['on']('execute',(_0x4825ac,_0x515daf)=>{_0x4dd060['commands']['get']('trackChanges')['value']&&(_0x515daf['length']>0x0&&_0x515daf[_0x515daf['length']-0x1]&&_0x515daf[_0x515daf['length']-0x1]['forceDefaultExecution']||_0x11f722['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4825ac['stop']());},{'priority':'highest'});for(const _0x1b3058 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3527e6=_0x4dd060['commands']['get'](_0x1b3058);_0x11f722['enableCommand'](_0x1b3058,()=>{const _0x55e6d6=_0x4dd060['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x297d21=>_0x297d21['is']('element','tableCell')),_0x1d167a=_0x3527e6['value'];_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat']([_0x55e6d6,_0x1d167a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e3e9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33edcc=_0x4dd060['commands']['get'](_0x2e3e9a);_0x11f722['enableCommand'](_0x2e3e9a,()=>{const _0x478a9b=_0x5aeaae['getSelectionAffectedTableCells'](_0x4dd060['model']['document']['selection']),_0x2450fc=_0x478a9b[0x0]['findAncestor']('table'),_0x3fd0ad=new Set();for(const _0x455554 of _0x478a9b){const {column:_0x4ec0e6,row:_0x35229e}=_0x5aeaae['getCellLocation'](_0x455554),_0x182f28='horizontally'==_0x33edcc['direction']?_0x5aeaae['createTableWalker'](_0x2450fc,{'startRow':_0x35229e,'endRow':_0x35229e,'includeAllSlots':!0x0}):_0x5aeaae['createTableWalker'](_0x2450fc,{'column':_0x4ec0e6,'includeAllSlots':!0x0});for(const {cell:_0x20fd6b}of _0x182f28)_0x3fd0ad['add'](_0x20fd6b);}_0x4dd060['model']['change'](()=>{_0x11f722['markMultiRangeBlockFormat'](_0x478a9b,{'commandName':_0x2e3e9a,'commandParams':[]},Array['from'](_0x3fd0ad),_0x2e3e9a);});});}_0x11f722['descriptionFactory']['registerDescriptionCallback'](_0x22337d=>{if('formatBlock'!=_0x22337d['type']&&'formatInline'!=_0x22337d['type'])return;const {data:_0x2bfc0f}=_0x22337d;return _0x2bfc0f&&'mergeTableCells'==_0x2bfc0f['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Merge\x20cells*')}:void 0x0;}),_0x11f722['descriptionFactory']['registerDescriptionCallback'](_0x1823f3=>{if('formatBlock'!=_0x1823f3['type']&&'formatInline'!=_0x1823f3['type'])return;const {data:_0x572155}=_0x1823f3;return _0x572155?'splitTableCellVertically'==_0x572155['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x572155['commandName']?{'type':'format','content':Mt(_0x30aee2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e945d=_0x20852e['_acceptFormatSuggestionCallbackFactory']();for(const _0xff90b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xff90b2,'accept',_0x5e945d);for(const _0x1291d5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1291d5,'accept',_0x416ece=>{_0x4dd060['model']['change'](_0x592db2=>{const _0x3e855a=Array['from'](_0x416ece)['filter'](_0x17e12b=>'$graveyard'!=_0x17e12b['root']['rootName']&&!!_0x17e12b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x3e855a['length'])return;const _0x416a4e=Array['from'](_0x35bebe['getRanges']())['map'](_0x154a19=>rt['fromRange'](_0x154a19));_0x592db2['setSelection'](_0x3e855a),_0x4dd060['commands']['get'](_0x1291d5)['refresh'](),_0x4dd060['execute'](_0x1291d5,{'forceDefaultExecution':!0x0});const _0x2a8f86=_0x416a4e['filter'](_0x387728=>'$graveyard'!=_0x387728['root']['rootName']);_0x2a8f86['length']>0x0&&_0x592db2['setSelection'](_0x2a8f86);for(const _0x2973af of _0x416a4e)_0x2973af['detach']();});});_0x11f722['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b112f=>{_0x4dd060['model']['change'](_0x46fd86=>{const _0x4675e1=Array['from'](_0x35bebe['getRanges']())['map'](_0x557726=>rt['fromRange'](_0x557726));_0x46fd86['setSelection'](_0x1b112f),_0x4dd060['commands']['get']('mergeTableCells')['refresh'](),_0x4dd060['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2697e3=_0x4675e1['filter'](_0x5adfcd=>'$graveyard'!=_0x5adfcd['root']['rootName']);_0x2697e3['length']>0x0&&_0x46fd86['setSelection'](_0x2697e3);for(const _0x3942f9 of _0x4675e1)_0x3942f9['detach']();});});for(const _0x170c0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2696e6=_0x4dd060['commands']['get'](_0x170c0e);_0x2696e6['on']('set:isEnabled',(_0x226ec9,_0x418b82,_0x4d2cf4)=>{if(_0x4d2cf4){const _0xf25992=_0x4dd060['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d95c5=>_0x5d95c5['is']('element','tableCell'));this['_areMergableCells'](_0x2696e6['value'],_0xf25992)||(_0x226ec9['return']=!0x1,_0x226ec9['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x532b65=this['editor']['commands']['get']('mergeTableCells'),_0x5a589=this['editor']['plugins']['get']('TableUtils');if(!_0x532b65['isEnabled'])return!0x1;const _0x2101b1=_0x5a589['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x372a61 of _0x2101b1)for(const _0x3624b5 of _0x2101b1)if(_0x372a61!=_0x3624b5&&!this['_areMergableCells'](_0x372a61,_0x3624b5))return!0x1;return!0x0;}['_areMergableCells'](_0x5038d2,_0x4d004b){const _0x379d12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ad286=this['editor']['model']['createRangeOn'](_0x5038d2),_0x5dbaa3=this['editor']['model']['createRangeOn'](_0x4d004b),_0x595abd=new Set(),_0x4f7314=new Set();for(const _0x58a225 of _0x379d12['getSuggestions']())if(('insertion'==_0x58a225['type']||'deletion'==_0x58a225['type']||'mergeTableCells'==_0x58a225['subType'])&&_0x58a225['isInContent']){for(const _0x438873 of _0x58a225['getRanges']())_0x438873['containsRange'](_0x4ad286,!0x0)&&_0x595abd['add'](_0x58a225['type']+':'+_0x58a225['author']['id']),_0x438873['containsRange'](_0x5dbaa3,!0x0)&&_0x4f7314['add'](_0x58a225['type']+':'+_0x58a225['author']['id']);}if(_0x595abd['size']!=_0x4f7314['size'])return!0x1;for(const _0x1d2c69 of _0x595abd)if(!_0x4f7314['has'](_0x1d2c69))return!0x1;return!0x0;}},Ge=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x2d1307=this['editor'];if(!_0x2d1307['plugins']['has']('TableEditing'))return;const _0x1bfa0d=_0x2d1307['locale'],_0x373b72=_0x2d1307['plugins']['get']('TrackChangesEditing');_0x373b72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x373b72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x373b72['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x1bfa0d,'FORMAT_HEADER_ROW')),_0x373b72['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x1bfa0d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1746b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4722f5=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x1746b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4722f5),_0x1746b0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4722f5),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x30f311=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7d29=this['editor']['plugins']['get']('TableUtils');function _0x422942({showActiveMarker:_0x45bc14=!0x0,setDataAttribute:_0x45fc93=!0x0}={}){return(_0x176aba,_0x2d975b,_0x2390dc)=>{const {type:_0x42c3f6,id:_0xd42f3f}=tt(_0x2d975b['markerName']);if(!_0x30f311['hasSuggestion'](_0xd42f3f))return;const _0x5290ef=_0x30f311['getSuggestion'](_0xd42f3f),_0x2ffc7f=_0x5290ef['data'];if('formatBlock'!=_0x5290ef['type']||!_0x2ffc7f||'setTableColumnHeader'!=_0x2ffc7f['commandName'])return;if(_0x2d975b['item'])return void _0x176aba['stop']();if(!_0x2390dc['consumable']['consume'](_0x2d975b['markerRange'],_0x176aba['name']))return;const _0x4fb9e9=_0x2d975b['markerRange']['start']['nodeAfter'],_0x58cd6b=_0x2d975b['markerRange']['end']['nodeBefore'],_0x5ba719=_0x4fb9e9['parent']['parent'],{column:_0x219a6d}=_0x1c7d29['getCellLocation'](_0x4fb9e9),{column:_0x4d0bda}=_0x1c7d29['getCellLocation'](_0x58cd6b);for(let _0x3ccece=_0x219a6d;_0x3ccece<=_0x4d0bda;_0x3ccece++){const _0x6a27cc=_0x1c7d29['createTableWalker'](_0x5ba719,{'column':_0x3ccece,'includeAllSlots':!0x1});for(const _0x25afbe of _0x6a27cc){const _0x1dabc3=_0x25afbe['cell'],_0x18ef78=_0x2390dc['mapper']['toViewElement'](_0x1dabc3);_0x2390dc['writer']['addClass']('ck-suggestion-marker-'+_0x42c3f6,_0x18ef78),_0x45fc93&&_0x2390dc['writer']['setAttribute']('data-suggestion',_0xd42f3f,_0x18ef78),_0x2390dc['mapper']['bindElementToMarker'](_0x18ef78,_0x2d975b['markerName']),_0x45bc14&&(_0x30f311['activeMarkers']['includes'](_0x2d975b['markerName'])?_0x2390dc['writer']['addClass']('ck-suggestion-marker--active',_0x18ef78):_0x2390dc['writer']['removeClass']('ck-suggestion-marker--active',_0x18ef78));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x422942(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x439f9e,_0x399d99,_0x542c3d)=>{_0x542c3d['options']['showSuggestionHighlights']&&_0x422942({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x439f9e,_0x399d99,_0x542c3d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13e7af,_0x3406e7,_0x5a8868)=>{const {type:_0x244e25,id:_0x4cfd1d}=tt(_0x3406e7['markerName']);if(!_0x30f311['hasSuggestion'](_0x4cfd1d))return;const _0x4d7e19=_0x30f311['getSuggestion'](_0x4cfd1d),_0x17d401=_0x4d7e19['data'];if('formatBlock'!=_0x4d7e19['type']||!_0x17d401||'setTableColumnHeader'!=_0x17d401['commandName'])return;const _0x4edf9a=_0x5a8868['mapper']['markerNameToElements'](_0x3406e7['markerName']);if(_0x4edf9a){for(const _0x2284fc of _0x4edf9a)_0x5a8868['writer']['removeClass']('ck-suggestion-marker-'+_0x244e25,_0x2284fc),_0x5a8868['writer']['removeClass']('ck-suggestion-marker--active',_0x2284fc),_0x5a8868['writer']['removeAttribute']('data-suggestion',_0x2284fc),_0x5a8868['mapper']['unbindElementFromMarkerName'](_0x2284fc,_0x3406e7['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1f198e=this['editor'],_0x4731dc=_0x1f198e['locale'];function _0x2221b8(_0x5d4546){return{'type':'format','content':Mt(_0x4731dc,'*Format:*\x20%0',_0x5d4546)};}_0x1f198e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c3906=>{if('formatBlock'!=_0x5c3906['type'])return;const {data:_0x313e43}=_0x5c3906;return _0x313e43?'setTableRowHeader'==_0x313e43['commandName']?_0x313e43['commandParams'][0x0]['forceValue']?_0x2221b8(Mt(_0x4731dc,'FORMAT_HEADER_ROW')):_0x2221b8(Mt(_0x4731dc,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x313e43['commandName']?_0x313e43['commandParams'][0x0]['forceValue']?_0x2221b8(Mt(_0x4731dc,'FORMAT_HEADER_COLUMN')):_0x2221b8(Mt(_0x4731dc,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x3abfd8=this['editor'];if(!_0x3abfd8['plugins']['has']('TableEditing')||!_0x3abfd8['config']['get']('table.enableFooters'))return;const _0x47cefb=_0x3abfd8['locale'],_0x560907=_0x3abfd8['plugins']['get']('TrackChangesEditing');_0x560907['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x560907['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x47cefb,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x18ca51{afterInit(){const _0xac502d=this['editor'],_0x19e181=_0xac502d['locale'],_0x4c22a4=_0xac502d['plugins']['get']('TrackChangesEditing');function _0xc9e4ac(_0x3a0cb7){return{'type':'format','content':''+Mt(_0x19e181,'*Set\x20table\x20type:*\x20%0',_0x3a0cb7)};}_0xac502d['plugins']['has']('TableLayout')&&(_0x4c22a4['enableCommand']('insertTableLayout'),_0x4c22a4['enableDefaultAttributesIntegration']('tableType'),_0x4c22a4['descriptionFactory']['registerElementLabel'](_0x1b7026=>_0x1b7026['is']('element','table')&&'layout'===_0x1b7026['getAttribute']('tableType'),_0x16f4e3=>Mt(_0x19e181,'ELEMENT_LAYOUT_TABLE',_0x16f4e3)),_0x4c22a4['descriptionFactory']['registerDescriptionCallback'](_0x3fd669=>{const {data:_0x29e4f3}=_0x3fd669;if(_0x29e4f3&&'tableType'==_0x29e4f3['key'])switch(_0x29e4f3['newValue']){case'layout':return _0xc9e4ac(Mt(_0x19e181,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc9e4ac(Mt(_0x19e181,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](We['map'](_0x5c20a0=>[_0x5c20a0,null]));var je=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x59e893=this['editor'];if(!_0x59e893['plugins']['has']('TableClipboard'))return;const _0x3dda83=_0x59e893['plugins']['get']('TrackChangesEditing'),_0x81d67b=_0x59e893['plugins']['get']('TableUtils'),_0x5cbb29=_0x59e893['plugins']['get'](Ue),_0x1c3562=_0x59e893['plugins']['get']('TableClipboard'),_0x1edbbb=_0x59e893['plugins']['get']('TableSelection'),_0x20a5cc=_0x59e893['plugins']['get'](gt);_0x5cbb29['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x59e893['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x59e893['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26a90c=null,_0x4bfa49=!0x1;_0x20a5cc['on']('contentInsertion',(_0x44a181,_0x329d5e)=>{_0x4bfa49='paste'===_0x329d5e['method'];}),_0x59e893['model']['on']('insertContent',(_0x264272,_0x25dde4)=>{if(!_0x4bfa49&&null===_0x1edbbb['getSelectedTableCells']())return;const [_0xbeedbd,_0x55cafc]=_0x25dde4,_0x11e894=_0x25dde4[_0x25dde4['length']-0x1];_0x11e894&&_0x11e894['forceDefaultExecution']||_0x3dda83['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17d11f,_0x4678de,_0x34b9c8,_0x4aa773,_0x54d2e6){if(_0x4678de&&!_0x4678de['is']('documentSelection'))return!0x1;const _0x5004c7=_0x54d2e6['getTableIfOnlyTableInContent'](_0x17d11f,_0x34b9c8);if(!_0x5004c7||!Ke(_0x5004c7,void 0x0,_0x4aa773))return!0x1;const _0x26aff2=_0x4aa773['getSelectionAffectedTableCells'](_0x34b9c8['document']['selection']);if(!_0x26aff2['length'])return!0x1;const _0x5dbbcf=_0x26aff2[0x0]['findAncestor']('table'),_0xc48509=_0x4aa773['getRowIndexes'](_0x26aff2),_0x63fb97=_0x4aa773['getColumnIndexes'](_0x26aff2),_0x3e9a4a={'startRow':_0xc48509['first'],'endRow':_0xc48509['last'],'startColumn':_0x63fb97['first'],'endColumn':_0x63fb97['last']};return 0x1==_0x26aff2['length']&&(_0x3e9a4a['endRow']+=_0x4aa773['getRows'](_0x5004c7)-0x1,_0x3e9a4a['endColumn']+=_0x4aa773['getColumns'](_0x5004c7)-0x1),Ke(_0x5dbbcf,_0x3e9a4a,_0x4aa773);}(_0xbeedbd,_0x55cafc,_0x59e893['model'],_0x81d67b,_0x1c3562)&&(_0x264272['stop'](),_0x26a90c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x59e893['model']['change'](()=>{_0x59e893['model']['insertContent'](_0x25dde4[0x0],_0x25dde4[0x1],_0x25dde4[0x2],{'forceDefaultExecution':!0x0});const _0x259798=_0x3f17ac(),{rowInsertionRanges:_0xa6b610,columnInsertionRanges:_0x44bb19,insertionRanges:_0x3f8cad,deletionRanges:_0xdbf9a0,cells:_0x55eedb}=_0x26a90c;_0xa6b610['length']&&_0x3dda83['markMultiRangeInsertion'](_0xa6b610,'tablePasteRow',{'tablePasteChainId':_0x259798}),_0x44bb19['length']&&_0x3dda83['markMultiRangeInsertion'](_0x44bb19,'tablePasteColumn',{'tablePasteChainId':_0x259798}),_0x3f8cad['length']&&(_0x3dda83['markMultiRangeInsertion'](_0x3f8cad,'tablePaste',{'tablePasteChainId':_0x259798,'skipNestingCheck':!0x0}),_0x3f8cad['forEach'](_0x1a1ce6=>_0x1a1ce6['detach']?.())),_0xdbf9a0['length']&&(_0x3dda83['markMultiRangeDeletion'](_0xdbf9a0,'tablePaste',{'tablePasteChainId':_0x259798,'skipNestingCheck':!0x0}),_0xdbf9a0['forEach'](_0x4d2d2e=>_0x4d2d2e['detach']?.()));const _0x857905=_0x3dda83['markMultiRangeBlockFormat'](_0x55eedb['map'](({element:_0x3ef794})=>_0x3ef794),{'formatGroupId':_0x3f17ac()},[],'tablePasteCell',{'tablePasteChainId':_0x259798});if(_0x857905){const _0x14e0e1=_0x857905['getMarkers'](),_0x505cad=[];for(const {element:_0x32c44c,attributes:_0x3d6cb5}of _0x55eedb){if(!_0x3d6cb5)continue;const _0x275280=_0x59e893['model']['createRangeOn'](_0x32c44c),_0x2af9b4=_0x14e0e1['find'](_0x2e3c3b=>_0x2e3c3b['getRange']()['isEqual'](_0x275280));_0x2af9b4&&_0x505cad['push']([_0x2af9b4['name'],_0x3d6cb5]);}_0x505cad['length']&&_0x857905['setAttribute']('markerAttributes',Object['fromEntries'](_0x505cad));}_0x26a90c=null;}));},{'priority':_0x4c920d['high']+0xa}),_0x20a5cc['on']('contentInsertion',()=>{_0x4bfa49=!0x1;},{'priority':'lowest'}),_0x59e893['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x423c64,_0x51f8ec)=>{const [_0x48e47a,_0x3d29da,,_0x3a0279]=_0x51f8ec;if(!_0x26a90c)return;_0x423c64['stop']();const _0x46aa9b=_0x48e47a['cell'],_0x391ef7=_0x3d29da,_0x24c2f5=ze(_0x46aa9b),_0x2f2a6a=ze(_0x391ef7);_0x423c64['return']=_0x46aa9b;let _0x42d077=null,_0x46fdf4=null;if(_0x2f2a6a||_0x24c2f5){if(_0x24c2f5&&!_0x2f2a6a){_0x3a0279['remove'](_0x46aa9b['getChild'](0x0));for(const _0x3f6e0f of Array['from'](_0x391ef7['getChildren']()))_0x3a0279['insert'](_0x3f6e0f,_0x46aa9b,'end');const _0x45ece9=_0x26a90c['rowInsertionIndexes']['includes'](_0x48e47a['row']),_0x145f2a=_0x26a90c['columnInsertionIndexes']['includes'](_0x48e47a['column']);_0x45ece9||_0x145f2a||(_0x42d077=rt['fromRange'](_0x3a0279['createRangeIn'](_0x46aa9b)));}else _0x2f2a6a&&!_0x24c2f5&&(_0x46fdf4=_0x3a0279['createRangeIn'](_0x46aa9b));}else{const _0x34614a=_0x3a0279['createElement']('tableCellSuggestion'),_0x609d18=_0x3a0279['createElement']('tableCellSuggestion');_0x3a0279['wrap'](_0x3a0279['createRangeIn'](_0x46aa9b),_0x609d18),_0x3a0279['insert'](_0x34614a,_0x46aa9b,0x0);for(const _0x4cbbf7 of Array['from'](_0x391ef7['getChildren']()))_0x3a0279['insert'](_0x4cbbf7,_0x34614a,'end');_0x42d077=rt['fromRange'](_0x3a0279['createRangeOn'](_0x34614a)),_0x46fdf4=rt['fromRange'](_0x3a0279['createRangeOn'](_0x609d18));}const _0x18b96b=Array['from'](_0x391ef7['getAttributes']())['filter'](([_0x44f476])=>We['includes'](_0x44f476));_0x26a90c['cells']['push']({'element':_0x46aa9b,'attributes':_0x18b96b['length']?Object['fromEntries'](_0x18b96b):null}),_0x42d077&&_0x26a90c['insertionRanges']['push'](_0x42d077),_0x46fdf4&&_0x26a90c['deletionRanges']['push'](_0x46fdf4);},{'priority':'high'}),_0x81d67b['on']('insertColumns',(_0x2cf521,_0x1d4ef0)=>{const [_0x22d945,_0x28090c={}]=_0x1d4ef0;if(!_0x26a90c)return;const _0x2ae8b6=_0x28090c['at']||0x0,_0x8fae19=_0x28090c['columns']||0x1;_0x26a90c['columnInsertionIndexes']=new Array(_0x8fae19)['fill'](_0x2ae8b6)['map']((_0x3f5103,_0x394efb)=>_0x3f5103+_0x394efb);for(const {cell:_0x425fa0}of _0x81d67b['createTableWalker'](_0x22d945,{'startColumn':_0x2ae8b6,'endColumn':_0x2ae8b6+_0x8fae19-0x1}))_0x26a90c['columnInsertionRanges']['push'](_0x59e893['model']['createRangeOn'](_0x425fa0));},{'priority':'low'}),_0x81d67b['on']('insertRows',(_0x25eb4a,_0x16358d)=>{const [_0x446f74,_0xb878cf={}]=_0x16358d;if(!_0x26a90c)return;const _0x2c942e=_0xb878cf['at']||0x0,_0x40252e=_0xb878cf['rows']||0x1;_0x26a90c['rowInsertionIndexes']=new Array(_0x40252e)['fill'](_0x2c942e)['map']((_0x3caee6,_0x10803f)=>_0x3caee6+_0x10803f);for(const {cell:_0x4e7e2a}of _0x81d67b['createTableWalker'](_0x446f74,{'startRow':_0x2c942e,'endRow':_0x2c942e+_0x40252e-0x1}))_0x26a90c['rowInsertionRanges']['push'](_0x59e893['model']['createRangeOn'](_0x4e7e2a));},{'priority':'low'}),_0x3dda83['descriptionFactory']['registerDescriptionCallback'](_0x4e3a3f=>{if(_0x4e3a3f['subType']&&_0x4e3a3f['subType']['startsWith']('tablePaste'))return _0x4e3a3f['previous']?{}:{'type':'insertion','content':Mt(_0x59e893['locale'],'*Replace\x20table\x20cells*')};});const _0x1c8b84=()=>!0x1;for(const _0x46d56d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion',_0x46d56d,'join',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('deletion',_0x46d56d,'join',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x46d56d,'join',_0x1c8b84);_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c8b84),_0x3dda83['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3da4cf,_0xfb6cc2,_0x20515e)=>{const _0x1f5c65=_0x3da4cf['map'](_0x5b4c42=>_0x5b4c42['getContainedElement']())['filter'](_0x169a9d=>_0x169a9d),_0x6e6284=new Map(_0x1f5c65['map'](_0x279c71=>[_0x279c71,null]));if(_0x26a90c){for(const {element:_0x2e1a02,attributes:_0x1b1518}of _0x26a90c['cells'])_0x1b1518&&_0x6e6284['set'](_0x2e1a02,_0x1b1518);}else{if(_0x20515e&&_0x20515e['markerAttributes'])for(const [_0x58e9e3,_0x15c91a]of Object['entries'](_0x20515e['markerAttributes'])){const _0x30865e=_0x59e893['model']['markers']['get'](_0x58e9e3),_0x118ac7=_0x30865e?_0x30865e['getRange']()['getContainedElement']():null;_0x118ac7&&_0x6e6284['set'](_0x118ac7,_0x15c91a);}}_0x59e893['model']['change'](_0x33628d=>{for(const [_0x289387,_0x127900]of _0x6e6284)_0x33628d['setAttributes']({...Ve,..._0x127900},_0x289387);});});const _0x18aec9=(_0x3703a0,_0x11b2a1)=>{_0x3dda83['_suggestionFactory']['registerCustomCallback'](_0x3703a0,'tablePaste',_0x11b2a1,(_0xc3ada8,_0x4b057e,_0x1cd946)=>{_0x59e893['model']['change'](_0x9a6734=>{const _0x148c2b=[];for(const _0x337bc4 of _0xc3ada8){const _0x4824b0=_0x337bc4['start']['nodeAfter'];_0x4824b0['is']('element','tableCellSuggestion')&&_0x148c2b['push'](_0x4824b0);}_0x3dda83['_suggestionFactory']['getSuggestionCallback'](_0x3703a0,null,_0x11b2a1)(_0xc3ada8,_0x4b057e,_0x1cd946);for(const _0x4d73b2 of _0x148c2b)'$graveyard'!=_0x4d73b2['root']['rootName']&&_0x9a6734['unwrap'](_0x4d73b2);});});};_0x18aec9('insertion','accept'),_0x18aec9('insertion','discard'),_0x18aec9('deletion','accept'),_0x18aec9('deletion','discard'),_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59f3fa=>{const _0x3a5ae4=_0x59f3fa['map'](_0x1b6e02=>_0x1b6e02['getContainedElement']()),_0x4c83d7=_0x3a5ae4[0x0]['findAncestor']('table'),{minRow:_0x252c87,maxRow:_0x560de6}=_0x5cbb29['_getCoordsForCells'](_0x3a5ae4);_0x81d67b['removeRows'](_0x4c83d7,{'at':_0x252c87,'rows':_0x560de6-_0x252c87+0x1});}),_0x3dda83['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x567b8d=>{const _0x4ef1d8=_0x567b8d['map'](_0x1bd2c3=>_0x1bd2c3['getContainedElement']()),_0x2fca43=_0x4ef1d8[0x0]['findAncestor']('table'),{minColumn:_0x5e6b2f,maxColumn:_0x5f0182}=_0x5cbb29['_getCoordsForCells'](_0x4ef1d8);_0x81d67b['removeColumns'](_0x2fca43,{'at':_0x5e6b2f,'columns':_0x5f0182-_0x5e6b2f+0x1});});const _0x579fe0=(_0x212ed8,_0x2a72)=>{if(!_0x2a72['subType']||!_0x2a72['subType']['startsWith']('tablePaste'))return;const _0x4e1bcb=_0x2a72['attributes']['tablePasteChainId'],_0x1eef88=_0x3dda83['getSuggestions']()['filter'](_0x5ccad0=>_0x5ccad0['isInContent']&&_0x5ccad0['attributes']&&_0x5ccad0['attributes']['tablePasteChainId']==_0x4e1bcb);_0x1eef88['length']&&_0x2a72['getAllAdjacentSuggestions']()['length']!=_0x1eef88['length']&&_0x1eef88['reduce']((_0x4d3df8,_0xb184c4)=>(_0x4d3df8['next']=_0xb184c4,_0xb184c4['previous']=_0x4d3df8,_0xb184c4));};function _0x4810d7(_0x27d946,_0x2ccb46=!0x0){const {id:_0xb52b3c,authorId:_0x2a5fe6}=tt(_0x27d946['markerName']),_0x5ec2a5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4432b8=_0x3dda83['activeMarkers']['includes'](_0x27d946['markerName']);return _0x4432b8&&_0x5ec2a5['push']('ck-suggestion-marker--active'),{'classes':_0x5ec2a5,'attributes':{'data-suggestion':_0xb52b3c,'data-author-id':_0x2a5fe6},'priority':_0x4432b8&&_0x2ccb46?0xbc2:0xbb8};}_0x3dda83['on']('suggestionLoaded',_0x579fe0,{'priority':'high'}),_0x3dda83['on']('suggestionUnloaded',_0x579fe0,{'priority':'high'}),_0x59e893['model']['document']['registerPostFixer'](()=>{let _0x4b99a8=!0x1;const _0xf4a28f=Array['from'](_0x59e893['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5952c5,data:_0x12a759}of _0xf4a28f){const {group:_0x3dfaeb,type:_0x4e5957,id:_0x14c1ff}=tt(_0x5952c5);if('suggestion'!=_0x3dfaeb||'deletion'!=_0x4e5957||_0x12a759['oldRange'])continue;if(!_0x3dda83['hasSuggestion'](_0x14c1ff))continue;const _0xa0a739=_0x3dda83['getSuggestion'](_0x14c1ff)['getRanges'](),_0x5f2986=_0x59e893['plugins']['get']('Users')['me'];for(const _0x412510 of _0x3dda83['getSuggestions']())if(_0x412510['isInContent']&&_0x412510['author']==_0x5f2986&&'formatBlock'==_0x412510['type']&&'tablePasteCell'==_0x412510['subType']&&_0x412510['getRanges']()['every'](_0x423921=>_0xa0a739['some'](_0x3e3b8b=>_0x3e3b8b['containsRange'](_0x423921,!0x0)))){for(const _0x26df55 of _0x412510['getAllAdjacentSuggestions']())_0x26df55['isInContent']&&(_0x26df55['discard'](),_0x4b99a8=!0x0);}}return _0x4b99a8;}),_0x59e893['model']['document']['registerPostFixer'](_0x1a919b=>{const _0x887694=_0x59e893['commands']['get']('redo');if(!_0x887694||!_0x887694['_createdBatches']['has'](_0x1a919b['batch']))return!0x1;let _0x54f20b=!0x1;const _0x5a0d0e=_0x59e893['plugins']['get']('Users')['me'],_0xa9df96=_0x59e893['model']['document']['differ']['getChanges'](),_0x590677=Array['from'](_0x59e893['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x179742,data:_0x29cf8d})=>{const {group:_0x5db11f,subType:_0x41655c,authorId:_0x46f4cc}=tt(_0x179742);return'suggestion'==_0x5db11f&&'tablePaste'==_0x41655c&&_0x46f4cc==_0x5a0d0e['id']&&!_0x29cf8d['oldRange'];});for(const _0x27d124 of _0xa9df96){if('insert'!=_0x27d124['type']||'tableCellSuggestion'!=_0x27d124['name']||0x1!=_0x27d124['length'])continue;const _0x49e6fa=_0x1a919b['createRange'](_0x27d124['position'],_0x27d124['position']['getShiftedBy'](0x1));if(!_0x590677['find'](({data:_0x2adff3})=>_0x2adff3['newRange']['isEqual'](_0x49e6fa))){for(const {name:_0x5cad9a,data:_0x3c6afe}of _0x590677)if(_0x49e6fa['containsRange'](_0x3c6afe['newRange'])){_0x1a919b['updateMarker'](_0x5cad9a,{'range':_0x49e6fa}),_0x54f20b=!0x0;break;}}}return _0x54f20b;}),_0x59e893['model']['document']['registerPostFixer'](_0x94c512=>{let _0x3e2a8=!0x1;const _0x9069ed=_0x59e893['plugins']['get']('Users')['me'],_0x8e027f=_0x3dda83['getSuggestions']()['filter'](_0x531a44=>_0x531a44['isInContent']&&_0x531a44['author']==_0x9069ed),_0x35d233=new Set(),_0xf459ae=new Set();for(const _0xc8ad20 of _0x8e027f)if('tablePaste'==_0xc8ad20['subType'])for(const _0x2c38ba of _0xc8ad20['getMarkers']()){const _0x145efa=_0x2c38ba['getRange']()['getContainedElement']();if(_0x145efa){if(_0x145efa['is']('element','tableCellSuggestion')&&ze(_0x145efa)){_0xc8ad20['removeMarker'](_0x2c38ba['name']),_0x35d233['add'](_0x145efa),_0x3e2a8=!0x0;const _0x4e25b3=_0x145efa['nextSibling'],_0x564da6=_0x145efa['previousSibling'],_0x2e3482=_0x4e25b3&&_0x4e25b3['is']('element','tableCellSuggestion'),_0x25b745=_0x564da6&&_0x564da6['is']('element','tableCellSuggestion');_0x2e3482&&!_0x35d233['has'](_0x4e25b3)&&_0xf459ae['add'](_0x4e25b3),_0x25b745&&!_0x35d233['has'](_0x564da6)&&_0xf459ae['add'](_0x564da6);}else _0x145efa['is']('element','paragraph')&&_0x145efa['isEmpty']&&(_0xc8ad20['removeMarker'](_0x2c38ba['name']),_0x3e2a8=!0x0);}}else{if('tablePasteCell'==_0xc8ad20['subType']){if(!_0xc8ad20['attributes']||!_0xc8ad20['attributes']['tablePasteChainId'])continue;const _0x1c886d=_0xc8ad20['attributes']['markerAttributes'];if(_0x1c886d&&Object['keys'](_0x1c886d)['length'])continue;const _0x50c208=_0xc8ad20['attributes']['tablePasteChainId'];let _0x419fe6=!0x0,_0x37dc97=!0x0;for(const _0x4dbdef of _0x8e027f)if(_0x4dbdef['subType']&&_0x4dbdef['subType']['startsWith']('tablePaste')){if(!_0x4dbdef['attributes']['tablePasteChainId']){_0x37dc97=!0x1;break;}if(_0x4dbdef['id']!=_0xc8ad20['id']&&_0x4dbdef['attributes']['tablePasteChainId']==_0x50c208){_0x419fe6=!0x1;break;}}_0x37dc97&&_0x419fe6&&(_0xc8ad20['removeMarkers'](),_0x3e2a8=!0x0);}}for(const _0x6e3d6d of _0x35d233)_0x94c512['remove'](_0x6e3d6d);for(const _0x56c9c1 of _0xf459ae)_0x94c512['unwrap'](_0x56c9c1);return _0x3e2a8;}),_0x59e893['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cd99b=>_0x4810d7(_0x2cd99b),'converterPriority':'high'}),_0x59e893['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d5bff,_0x27b126)=>_0x27b126['options']['showSuggestionHighlights']?_0x4810d7(_0x5d5bff,!0x1):null,'converterPriority':'high'});const _0x2e6de8=_0x59e893['editing']['view'];this['listenTo'](_0x2e6de8['document'],'clipboardOutput',(_0x25d7fb,_0x46cf6d)=>{const _0x5ea6d5=[];for(const _0x57b520 of _0x2e6de8['createRangeIn'](_0x46cf6d['content'])['getItems']())_0x57b520['is']('element','suggestion-td')&&_0x5ea6d5['push'](_0x57b520);_0x2e6de8['change'](_0x53a652=>{for(const _0xbcc43a of _0x5ea6d5)_0x53a652['move'](_0x53a652['createRangeIn'](_0xbcc43a),_0x53a652['createPositionBefore'](_0xbcc43a)),_0x53a652['remove'](_0xbcc43a);});});}};function ze(_0x385400){if(_0x385400['isEmpty'])return!0x0;const _0x3ca1a4=_0x385400['getChild'](0x0);return _0x3ca1a4['is']('element','paragraph')&&_0x3ca1a4['isEmpty'];}function Ke(_0xeb4485,_0xa54f9b={},_0x5d9fd4){for(const {isAnchor:_0x243609,cellHeight:_0x58330e,cellWidth:_0x1a7b56}of _0x5d9fd4['createTableWalker'](_0xeb4485,{'includeAllSlots':!0x0,..._0xa54f9b}))if(!_0x243609||0x1!=_0x58330e||0x1!=_0x1a7b56)return!0x1;return!0x0;}var Xe=class extends _0x18ca51{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1118f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1118f1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x1118f1['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x1118f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1118f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x488487=_0x1118f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x1118f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x40a354,_0x3f6163)=>{_0x488487(_0x40a354,_0x3f6163),this['_restoreCellWidths'](_0x40a354[0x0]['start']['nodeAfter'],_0x3f6163['commandParams'][0x0]['cellWidths']);}),_0x1118f1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x4fbb96,_0x266fbe){const _0x158409=this['editor']['plugins']['get']('TrackChangesEditing'),_0x116f9b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e6a40=_0x266fbe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x8bbf14=_0x116f9b['getColumnGroupElement'](_0x3e6a40);let _0x1039d3=_0x8bbf14?_0x116f9b['getTableColumnsWidths'](_0x8bbf14):null,_0x15b790=_0x3e6a40['getAttribute']('tableWidth')||null;const _0xbadf6d=_0x266fbe['tableWidth']||_0x15b790,_0x5cca5a=_0x266fbe['columnWidths']||_0x1039d3;let _0x2a85db=this['_getCellWidths'](_0x3e6a40);const _0x56f259=this['_foldResizeTableSuggestion'](_0x3e6a40);_0x56f259&&(_0x15b790=_0x56f259['tableWidth'],_0x1039d3=_0x56f259['columnWidths'],_0x2a85db=_0x56f259['cellWidths']||_0x2a85db),_0x4fbb96({'table':_0x3e6a40,'tableWidth':_0xbadf6d,'columnWidths':_0x5cca5a}),_0x158409['markBlockFormat'](_0x3e6a40,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15b790,'columnWidths':_0x1039d3,'cellWidths':_0x2a85db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5ecbdc,_0xda0611={}){if(void 0x0===_0xda0611['value']||''===_0xda0611['value'])return void _0x5ecbdc(_0xda0611);const _0x2acf30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x868ccb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4819e5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xda0611['batch']||(_0xda0611['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xda0611['batch'],()=>{const _0x157d60=_0x868ccb['getColumnGroupElement'](_0x4819e5);let _0x2c9f9d=_0x157d60?_0x868ccb['getTableColumnsWidths'](_0x157d60):null,_0x11837f=_0x4819e5['getAttribute']('tableWidth')||null,_0x109679=this['_getCellWidths'](_0x4819e5);const _0xf6bf54=this['_foldResizeTableSuggestion'](_0x4819e5,!0x0);_0xf6bf54&&(_0x11837f=_0xf6bf54['tableWidth'],_0x2c9f9d=_0xf6bf54['columnWidths'],_0x109679=_0xf6bf54['cellWidths']||_0x109679),_0x5ecbdc(_0xda0611),_0x2acf30['markBlockFormat'](_0x4819e5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11837f,'columnWidths':_0x2c9f9d,'cellWidths':_0x109679}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x467a02,_0x4fa16b=!0x1){const _0x1d2109=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b5fb3=this['editor']['plugins']['get']('Users')['me'];for(const _0xf0f3ba of _0x1d2109['getSuggestions']({'skipNotAttached':!0x0})){const _0x181772=_0xf0f3ba['getContainedElement']();if('resizeTable'===_0xf0f3ba['subType']&&_0x181772===_0x467a02){_0xf0f3ba['author']!==_0x2b5fb3&&(_0x4fa16b?_0xf0f3ba['removeMarkers']():_0xf0f3ba['discard']());const _0x26f2b2=_0xf0f3ba['data']['commandParams'];return{'tableWidth':_0x26f2b2[0x0]['tableWidth'],'columnWidths':_0x26f2b2[0x0]['columnWidths'],'cellWidths':_0x26f2b2[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x254975){const _0xcce05d=[];for(const _0x45c43b of _0x254975['getChildren']())if(_0x45c43b['is']('element','tableRow')){for(const _0x3c5003 of _0x45c43b['getChildren']())_0xcce05d['push'](_0x3c5003['getAttribute']('tableCellWidth')||null);}return _0xcce05d;}_restoreCellWidths(_0x9d8c03,_0x2ed00c){_0x2ed00c&&this['editor']['model']['change'](_0x4349a3=>{let _0xd3315f=0x0;for(const _0x50d20f of _0x9d8c03['getChildren']())if(_0x50d20f['is']('element','tableRow'))for(const _0x4eca56 of _0x50d20f['getChildren']()){const _0x5cbeb4=_0x2ed00c[_0xd3315f++];_0x5cbeb4&&_0x4349a3['setAttribute']('tableCellWidth',_0x5cbeb4,_0x4eca56);}});}handleSuggestionDescription(_0x281660){if('formatBlock'!=_0x281660['type']&&'formatInline'!=_0x281660['type'])return;const {data:_0x309573}=_0x281660;return _0x309573&&'resizeTable'===_0x309573['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x18ca51{afterInit(){const _0x1c573c=this['editor'];_0x1c573c['plugins']['has']('Template')&&_0x1c573c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x18ca51{afterInit(){const _0x276f02=this['editor'];if(!_0x276f02['commands']['get']('insertTableOfContents'))return;_0x276f02['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f1e1d=_0x276f02['plugins']['get']('TrackChangesEditing'),_0xecdb85=_0x276f02['locale'];_0x1f1e1d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fde0d=>Mt(_0xecdb85,'ELEMENT_TABLE_OF_CONTENTS',_0x1fde0d));}},Qe=class extends _0x18ca51{afterInit(){const _0x32ebd6=this['editor'];_0x32ebd6['plugins']['has']('Title')&&(_0x32ebd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x32ebd6['locale'],'ELEMENT_TITLE')),_0x32ebd6['model']['document']['registerPostFixer'](_0x2b62e5=>{let _0x54bec7=!0x1;const _0x4e5835=Array['from'](_0x32ebd6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x136abe,data:_0x2614a4}of _0x4e5835){const {group:_0x5e74b8}=tt(_0x136abe);if('suggestion'!==_0x5e74b8||!_0x2614a4['newRange'])continue;const _0x3d9a5f=_0x2614a4['newRange'],_0x321315=_0x3d9a5f['end']['nodeBefore'];if(!_0x321315||!_0x321315['is']('element','title-content'))continue;if(!_0x3d9a5f['start']['isTouching'](_0x3d9a5f['end']))continue;const _0x3077e5=_0x32ebd6['model']['schema']['getNearestSelectionRange'](_0x3d9a5f['end'],'forward');if(_0x3077e5&&_0x3077e5['isCollapsed']){const _0xb19580=_0x2b62e5['createRange'](_0x3d9a5f['start'],_0x3077e5['start']);_0xb19580['isEqual'](_0x3d9a5f)||(_0x2b62e5['updateMarker'](_0x136abe,{'range':_0xb19580}),_0x54bec7=!0x0);}_0x54bec7||(_0x2b62e5['removeMarker'](_0x136abe),_0x54bec7=!0x0);}return _0x54bec7;}));}},Ze=class extends _0x18ca51{afterInit(){const _0x32d946=this['editor'],_0x33f81c=_0x32d946['plugins']['get']('TrackChangesEditing');_0x32d946['plugins']['has']('Uploadcare')&&(_0x33f81c['enableCommand']('uploadcare'),_0x32d946['plugins']['has']('UploadcareImageEdit')&&(_0x33f81c['enableCommand']('uploadcareImageEdit'),_0x33f81c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x33f81c['descriptionFactory']['registerDescriptionCallback'](_0x10787a=>{if('attribute'!=_0x10787a['type'])return;const {data:_0x253b39}=_0x10787a;return _0x253b39&&'uploadcareImageId'==_0x253b39['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x18ca51{afterInit(){const _0x42e5cf=this['editor'],_0x11741b=_0x42e5cf['plugins']['get']('TrackChangesEditing');_0x42e5cf['plugins']['has']('UndoEditing')&&(_0x11741b['enableCommand']('undo'),_0x11741b['enableCommand']('redo'));}},tn=class extends _0x18ca51{static get requires(){return[Ue];}afterInit(){const _0x10e853=this['editor'];_0x10e853['plugins']['has']('TableCaptionEditing')&&_0x10e853['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x18ca51{tableProperties;tableCellProperties;constructor(_0x488b19){super(_0x488b19),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 _0x34ed98=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x359ffc of this['tableProperties'])_0x34ed98['enableCommand'](_0x359ffc,(_0x263577,_0xe03afc)=>{const _0x55a48b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x359ffc,[_0x55a48b],this['tableProperties'],'tableProperties',_0x263577,_0xe03afc);});_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34ed98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x267c41,_0x10850e)=>this['handleDiscardAction'](this['tableProperties'],_0x267c41,_0x10850e)),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46a3b5 of this['tableCellProperties'])this['editor']['commands']['get'](_0x46a3b5)&&_0x34ed98['enableCommand'](_0x46a3b5,(_0x44b1e9,_0x2bf193)=>{const _0x20c233=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46a3b5,_0x20c233,this['tableCellProperties'],'tableCellProperties',_0x44b1e9,_0x2bf193);});_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34ed98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f5831,_0x6f47cf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f5831,_0x6f47cf)),_0x34ed98['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x34ed98['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x34ed98['descriptionFactory']['registerDescriptionCallback'](_0x1990e1=>this['handleSuggestionDescription'](_0x1990e1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x26c522,_0x20ddbc,_0x5877ce,_0x1599df,_0x543257,_0x4dc109){const _0x247dd2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4dc109['batch'],()=>{for(const _0x25252a of _0x20ddbc)if(this['_getSuggestion'](_0x25252a,_0x1599df))_0x543257(_0x4dc109);else{const _0x10a825={};for(const _0x5b76cd of _0x5877ce){const _0x4081b9=_0x25252a['getAttribute'](_0x5b76cd);void 0x0!==_0x4081b9&&(_0x10a825[_0x5b76cd]=_0x4081b9);}const _0x4b79cc=this['_getResizedColumnWidths'](_0x25252a);_0x4b79cc&&(_0x10a825['columnWidths']=_0x4b79cc),_0x543257(_0x4dc109),_0x247dd2['markBlockFormat'](_0x25252a,{'commandParams':[_0x10a825]},[],_0x1599df);}});}handleDiscardAction(_0x40c970,_0x5583cd,_0x3b5a48){const _0x1ff07a=_0x5583cd[0x0]['start']['nodeAfter'],_0x57fc9d=_0x3b5a48['commandParams'][0x0];this['editor']['model']['change'](_0x2a0c77=>{for(const _0x362897 of _0x40c970)void 0x0!==_0x57fc9d[_0x362897]?_0x2a0c77['setAttribute'](_0x362897,_0x57fc9d[_0x362897],_0x1ff07a):_0x2a0c77['removeAttribute'](_0x362897,_0x1ff07a);if(_0x57fc9d['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x31d775=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cf087=_0x31d775['getColumnGroupElement'](_0x1ff07a);if(_0x4cf087){const _0x5b79b5=_0x31d775['getTableColumnsWidths'](_0x4cf087),_0x1c531f=_0x1ff07a['getAttribute']('tableWidth');if(('string'==typeof _0x1c531f&&_0x1c531f['trim']()['endsWith']('px'))!==_0x5b79b5['some'](_0x3af6f8=>'string'==typeof _0x3af6f8&&_0x3af6f8['endsWith']('px'))){const _0x3d6dd9=_0x31d775['getTableColumnElements'](_0x4cf087);_0x57fc9d['columnWidths']['forEach']((_0x55af87,_0xd51ec4)=>{_0x3d6dd9[_0xd51ec4]&&_0x2a0c77['setAttribute']('columnWidth',_0x55af87,_0x3d6dd9[_0xd51ec4]);});}}}});}_getResizedColumnWidths(_0x4793da){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x4793da['is']('element','table'))return;const _0x19f1e5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x431419=_0x19f1e5['getColumnGroupElement'](_0x4793da);return _0x431419?_0x19f1e5['getTableColumnsWidths'](_0x431419):void 0x0;}handleSuggestionDescription(_0x832043){if(_0x832043['data'])switch(_0x832043['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x557d31,_0x34cfef){const _0x33a515=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30ff60 of _0x33a515['getSuggestions']({'skipNotAttached':!0x0})){const _0xcc9ae5=_0x30ff60['getContainedElement']();if(_0x30ff60['subType']===_0x34cfef&&_0xcc9ae5===_0x557d31)return _0x30ff60;}return null;}_registerTablePropertiesAttributes(){const _0x3daa49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3264=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3aaefc of _0x2e3264){const _0x66bc21=_0x3aaefc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3daa49['descriptionFactory']['registerAttributeLabel'](_0x3aaefc,Mt(this['editor']['locale'],'FORMAT_'+_0x66bc21));}}},nn=class extends _0x18ca51{afterInit(){const _0x187378=this['editor'];if(!_0x187378['plugins']['has']('LineHeight'))return;const _0x51a949=_0x187378['plugins']['get']('TrackChangesEditing'),_0x47515f=_0x187378['locale'];_0x51a949['enableDefaultAttributesIntegration']('lineHeight'),_0x51a949['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x47515f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x5286c0){return'marker'==_0x5286c0['type']&&_0x5286c0['name']['startsWith']('$markedRemove');}function on(_0x3dea3f){return _0x3dea3f?[_0x3dea3f]:[];}var an=class extends _0x18ca51{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x460b74,_0x3af144,_0x7b02ea,_0x1d0b4b,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41b766){super(_0x41b766),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f39ed,_0x2f66d6,_0x52a769,_0x482523)=>{this['_model']['change'](()=>{for(const _0x42fc21 of[..._0x482523,..._0x52a769])this['_model']['markers']['has'](_0x42fc21)&&_0x41b766['editing']['reconvertMarker'](_0x42fc21);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new cn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x41b766['plugins']['get'](_0x460b74),this['_suggestionsConversion']=_0x41b766['plugins']['get'](_0x3af144),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x41b766['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41b766['config']['get']('trackChanges.trackFormatChanges'),_0x41b766['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41b766['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x41b766,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x23b843=this['editor'];_0x23b843['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5fd872,{writer:_0x3c65af})=>{let _0x6cd08a='suggestion:'+_0x5fd872['getAttribute']('suggestion-type')+':'+_0x5fd872['getAttribute']('id');return _0x5fd872['getAttribute']('marker-count')&&(_0x6cd08a+=':'+_0x5fd872['getAttribute']('marker-count')),_0x3c65af['createElement']('$marker',{'data-name':_0x6cd08a});}}),_0x23b843['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23b843['model']['document']['registerPostFixer'](_0x4f7651=>{let _0x236dd4=!0x1;const _0x29c8ba=Array['from'](_0x23b843['model']['document']['differ']['getChangedMarkers']()),_0x340aeb=new Set();for(const {name:_0x47dadd,data:_0x5ef8e5}of _0x29c8ba){const {group:_0x54a35c,type:_0x5a3577,subType:_0xf85fa3,id:_0x26d46f}=tt(_0x47dadd);if('suggestion'!==_0x54a35c)continue;const _0xd09a7e=_0xf85fa3?'suggestion:'+_0x5a3577+':'+_0xf85fa3+':'+_0x26d46f:'suggestion:'+_0x5a3577+':'+_0x26d46f,_0x3c277f=_0x23b843['model']['markers']['getMarkersGroup'](_0xd09a7e),_0x5c3646=_0x23b843['model']['markers']['get'](_0x47dadd),_0xce95c8=this['_suggestions']['get'](_0x26d46f);if(null!=_0x5ef8e5['newRange']){'formatInline'==_0x5a3577&&(_0x236dd4=_0x236dd4||dn(_0x5ef8e5['newRange'],_0x47dadd,_0x4f7651,_0x23b843['model']['schema']));const _0x58d6de='attribute'==_0x5a3577&&this['_suggestionsConversion']['isBlockAttribute'](An(_0xf85fa3)),_0x3fa8ac='attribute'==_0x5a3577&&this['_suggestionsConversion']['isInlineAttribute'](An(_0xf85fa3));if(_0x5ef8e5['newRange']['isCollapsed']||'$graveyard'==_0x5ef8e5['newRange']['root']['rootName']||'formatBlock'==_0x5a3577&&!gn(_0x5ef8e5['newRange'])||_0x58d6de&&!gn(_0x5ef8e5['newRange'])||_0x3fa8ac&&fn(_0x5ef8e5['newRange'])||'deletion'==_0x5a3577&&fn(_0x5ef8e5['newRange'])||_0x5c3646&&mn(_0x5c3646,_0x3c277f))_0x4f7651['removeMarker'](_0x47dadd),_0x236dd4=!0x0;else{if(!_0xce95c8||!_0xce95c8['isInContent'])continue;if(_0x5ef8e5['newRange']&&_0x5ef8e5['oldRange']&&_0x5ef8e5['newRange']['isEqual'](_0x5ef8e5['oldRange']))continue;_0x340aeb['add'](_0xce95c8);}}}return _0x340aeb['size']>0x0&&(_0x236dd4=!!this['_joinWithAdjacentSuggestions'](_0x340aeb)||_0x236dd4),_0x236dd4;}),_0x23b843['model']['document']['registerPostFixer'](_0x166b86=>{let _0x44f104=!0x1;for(const _0x566321 of _0x23b843['model']['document']['differ']['getChanges']())if('insert'==_0x566321['type'])for(const _0x56c07d of this['_suggestions']['values']()){if(_0x56c07d['isMultiRange']||!_0x56c07d['isInContent'])continue;const _0x3f82ae='formatBlock'==_0x56c07d['type'],_0xbb9e73=this['_getAttributeKey'](_0x56c07d),_0x39f437=_0xbb9e73&&this['_suggestionsConversion']['isBlockAttribute'](_0xbb9e73);if(!_0x3f82ae&&!_0x39f437)continue;const _0x34a1f1=_0x56c07d['getFirstRange']();if(_0x34a1f1['start']['parent']!=_0x34a1f1['end']['parent']&&!_0x34a1f1['end']['isAtEnd']){const _0x49ff6a=_0x23b843['model']['createPositionAt'](_0x34a1f1['start']['nodeAfter'],'end'),_0x13a571=_0x23b843['model']['createRange'](_0x34a1f1['start'],_0x49ff6a);_0x166b86['updateMarker'](_0x56c07d['getFirstMarker'](),{'range':_0x13a571}),_0x44f104=!0x0;}}return _0x44f104;}),_0x23b843['model']['document']['registerPostFixer'](_0x487e06=>this['_processAttributeChanges'](_0x487e06)),_0x23b843['model']['document']['registerPostFixer'](_0x144a08=>!_0x144a08['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x144a08)),_0x23b843['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23b843['model']['document']['on']('change:data',(_0x49654b,_0xa822c0)=>{if(!_0xa822c0['isLocal']||_0xa822c0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x32b173=_0x23b843['model']['document']['differ']['getChanges']();if(0x0==_0x32b173['length'])return;const _0x103df3=[],_0x1da384=_0x32b173['filter'](_0x11438a=>'attribute'==_0x11438a['type']),_0x25e02b=_0x32b173['filter'](_0xd066=>'insert'==_0xd066['type']&&'$text'!=_0xd066['name']);for(const _0x785685 of _0x1da384)this['_suggestionsConversion']['isRegisteredAttribute'](_0x785685['attributeKey'])&&_0x103df3['push']({'key':_0x785685['attributeKey'],'newValue':_0x785685['attributeNewValue'],'oldValue':_0x785685['attributeOldValue'],'range':En(_0x785685['range'],_0x23b843['model'])});for(const _0x43a53f of _0x25e02b){if('rename'!=_0x43a53f['action']&&'refresh'!=_0x43a53f['action'])continue;const _0x43c422=Tn(_0x43a53f['position']['nodeAfter'],_0x23b843['model']),_0x4e5351=_0x43a53f['before'];'rename'==_0x43a53f['action']&&_0x103df3['push']({'key':sn,'newValue':_0x43a53f['name'],'oldValue':_0x4e5351['name'],'range':_0x43c422});for(const [_0x74b96d,_0x6a80aa]of _0x4e5351['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x74b96d))continue;const _0x3e3d84=_0x43a53f['attributes']['get'](_0x74b96d);_0x6a80aa!==_0x3e3d84&&_0x103df3['push']({'key':_0x74b96d,'newValue':_0x3e3d84,'oldValue':_0x6a80aa,'range':_0x43c422});}for(const [_0x5ae56f,_0x175b91]of _0x43a53f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5ae56f)&&(_0x4e5351['attributes']['has'](_0x5ae56f)||_0x103df3['push']({'key':_0x5ae56f,'newValue':_0x175b91,'oldValue':null,'range':_0x43c422}));}0x0!=_0x103df3['length']&&_0x23b843['model']['enqueueChange'](_0xa822c0,_0xe0cdae=>{const _0x962201=_0x3f17ac();for(const {range:_0x19892d,key:_0xa08b76,oldValue:_0x3e4b46,newValue:_0x2234d2}of _0x103df3)this['markAttributeChange'](_0x19892d,_0xa08b76,_0x3e4b46,_0x2234d2,{'groupId':_0x962201});this['_reduceExistingSuggestions'](_0xe0cdae,_0x103df3);});},{'priority':'lowest'}),_0x23b843['model']['markers']['on']('update:suggestion',(_0x552779,_0x4f293e,_0x4e2c0d)=>{if(null==_0x4e2c0d){const {id:_0x3fc55f}=tt(_0x4f293e['name']),_0x596a2a=this['_suggestions']['get'](_0x3fc55f);_0x596a2a&&_0x596a2a['addMarkerName'](_0x4f293e['name']);}}),_0x23b843['model']['document']['on']('change:data',()=>{const _0x3849ec=Array['from'](_0x23b843['model']['document']['differ']['getChangedMarkers']())['filter'](_0x166d5b=>'suggestion'===tt(_0x166d5b['name'])['group']);if(0x0===_0x3849ec['length'])return;_0x3849ec['sort']((_0x1dae39,_0x5772bc)=>{const _0x14383d=_0x1dae39['data']['oldRange'],_0x59ed0b=_0x5772bc['data']['oldRange'];return null===_0x14383d&&null===_0x59ed0b?0x0:null===_0x14383d&&null!==_0x59ed0b?-0x1:null!==_0x14383d&&null===_0x59ed0b?0x1:_0x14383d['start']['isBefore'](_0x59ed0b['start'])?-0x1:0x1;});const _0x42c71b=new Set(),_0x41baee=new Set();for(const {name:_0x11aff2,data:_0x43d66e}of _0x3849ec){const {id:_0x563efd}=tt(_0x11aff2);if(null===_0x43d66e['oldRange']){const _0x5ca518=this['_handleNewSuggestionMarker'](_0x11aff2);_0x41baee['add'](_0x5ca518);}else{const _0x1c7a5e=this['_suggestions']['get'](_0x563efd);null!==_0x43d66e['newRange']||_0x1c7a5e['isInContent']?(_0x42c71b['add'](_0x1c7a5e['head']),_0x41baee['add'](_0x1c7a5e)):this['_removeSuggestion'](_0x1c7a5e);}}_0x41baee['size']>0x0&&this['_refreshSuggestionsChain'](_0x41baee);for(const _0x9b2ed4 of _0x42c71b)this['fire']('suggestionChanged',_0x9b2ed4);}),_0x23b843['model']['on']('applyOperation',(_0x1450a3,_0x146ba5)=>{const _0x1f0c22=_0x146ba5[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f0c22['isDocumentOperation'])return;if(_0x1f0c22['batch']['isUndo']||!_0x1f0c22['batch']['isLocal'])return;let _0x1b9566,_0x5b1097;switch(_0x1f0c22['type']){case'insert':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['position']),_0x5b1097=_0x1b9566['getShiftedBy'](_0x1f0c22['howMany']);break;case'split':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['splitPosition']),_0x5b1097=_0x23b843['model']['createPositionAt'](_0x1f0c22['moveTargetPosition']);break;case'move':_0x1b9566=_0x23b843['model']['createPositionAt'](_0x1f0c22['targetPosition']),_0x5b1097=_0x1b9566['getShiftedBy'](_0x1f0c22['howMany']);break;default:return;}const _0x3186f1=_0x23b843['model']['createRange'](_0x1b9566,_0x5b1097);_0x23b843['model']['change'](()=>{for(const {suggestion:_0x1aad67,meta:_0x2ea377}of this['_findSuggestions'](_0x3186f1)){if(_0x1aad67['isMultiRange'])continue;if('formatInline'==_0x1aad67['type'])continue;const _0x22e504=this['_getAttributeKey'](_0x1aad67);if(_0x22e504&&this['_suggestionsConversion']['isBlockAttribute'](_0x22e504)&&'split'!=_0x1f0c22['type'])continue;const _0x3db858=_0x1aad67['data']&&_0x1aad67['data']['multipleBlocks'];('formatBlock'!=_0x1aad67['type']||'split'==_0x1f0c22['type']&&!_0x3db858)&&(_0x2ea377['containsRangeInObject']||'insertion'==_0x1aad67['type']&&_0x2ea377['isOwn']||_0x1aad67['getFirstRange']()['containsRange'](_0x3186f1)&&this['_breakSuggestionMarker'](_0x1aad67,_0x1b9566,_0x5b1097));}});},{'priority':'lowest'}),_0x23b843['model']['on']('deleteContent',(_0x3c4051,_0xb329a0)=>{const _0x16f955=_0xb329a0[0x0],_0x2dba93=_0xb329a0[0x1];if(_0x2dba93&&_0x2dba93['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16f955['isCollapsed'])return;const _0x3dd7c8=_0x23b843['model']['schema'],{start:_0x5912ad,end:_0x44b5be}=_0x16f955['getFirstRange'](),_0x5e9403=_0x5912ad['nodeAfter']&&_0x3dd7c8['isLimit'](_0x5912ad['nodeAfter'])?null:_0x3dd7c8['getNearestSelectionRange'](_0x5912ad,'forward'),_0x676f2e=_0x44b5be['nodeBefore']&&_0x3dd7c8['isLimit'](_0x44b5be['nodeBefore'])?null:_0x3dd7c8['getNearestSelectionRange'](_0x44b5be,'backward'),_0xaaebe5=_0x23b843['model']['createRange'](_0x5e9403?_0x5e9403['start']:_0x5912ad,_0x676f2e?_0x676f2e['end']:_0x44b5be);_0x23b843['model']['change'](_0x511609=>{this['markDeletion'](_0xaaebe5);const _0x144f07=_0x23b843['model']['schema']['getNearestSelectionRange'](_0xaaebe5['start']);_0x16f955['is']('documentSelection')?_0x511609['setSelection'](_0x144f07):_0x16f955['setTo'](_0x144f07);}),_0x3c4051['stop']();},{'priority':_0x4c920d['normal']+0xa}),_0x23b843['model']['on']('insertContent',(_0x151d67,_0x3e61ca)=>{const _0x415ad6=_0x3e61ca[_0x3e61ca['length']-0x1];_0x415ad6&&_0x415ad6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23b843['model']['change'](()=>{let _0x1232d1=_0x23b843['model']['insertContent'](_0x3e61ca[0x0],_0x3e61ca[0x1],_0x3e61ca[0x2],{'forceDefaultExecution':!0x0});if(!_0x1232d1)return;_0x151d67['return']=_0x1232d1['clone']();const _0x3f95c2=_0x1232d1['end']['nodeBefore'],_0x5ae4c8=_0x23b843['model']['schema'];_0x3f95c2&&_0x5ae4c8['isBlock'](_0x3f95c2)&&!_0x5ae4c8['isObject'](_0x3f95c2)&&(_0x1232d1=_0x23b843['model']['createRange'](_0x1232d1['start'],_0x23b843['model']['createPositionAt'](_0x3f95c2,'end'))),this['markInsertion'](_0x1232d1);}),_0x151d67['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31a7d8=new _t(_0x23b843,this['_suggestions']);_0x23b843['commands']['add']('acceptSuggestion',_0x31a7d8),this['enableCommand']('acceptSuggestion');const _0x5542ae=new pt(_0x23b843,this['_suggestions']);_0x23b843['commands']['add']('discardSuggestion',_0x5542ae),this['enableCommand']('discardSuggestion'),_0x23b843['commands']['add']('acceptAllSuggestions',new Rt(_0x23b843,_0x31a7d8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23b843['commands']['add']('discardAllSuggestions',new Rt(_0x23b843,_0x5542ae,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23b843['commands']['add']('acceptSelectedSuggestions',new yt(_0x23b843,_0x31a7d8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23b843['commands']['add']('discardSelectedSuggestions',new yt(_0x23b843,_0x5542ae,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a42de=_0x23b843['plugins']['get'](_0x460b74);this['listenTo'](_0x5a42de,'addComment',(_0x213fbd,{threadId:_0x33cdc1})=>{const _0x145215=this['_suggestions']['get'](_0x33cdc1);_0x145215&&_0x145215['commentThread']&&0x1===_0x145215['commentThread']['length']&&this['_updateSuggestionData'](_0x33cdc1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a42de,'removeComment',(_0xa7ebea,{threadId:_0x8a122b})=>{const _0x189c2b=this['_suggestions']['get'](_0x8a122b);_0x189c2b&&_0x189c2b['commentThread']&&!_0x189c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x8a122b,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x481af6){const _0x3152c5='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x5b8da1=0x79650,_0x3f5a86={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1d6fd9(_0x46fede){const _0xb75103=new window['Promise'](_0x230683=>{_0x46fede['once']('ready',_0x230683);}),_0x1bb9b0=window['Date']['now'](),_0x28cec4=_0x46fede['config']['get']('licenseKey');async function _0x25a90f(){let _0xf94a78,_0xbd8fbb=null,_0x5ef10f=null;try{return'GPL'==_0x28cec4?'NotAllowed':(_0xf94a78=_0x37fc18(),_0xf94a78?(_0xf94a78['usageEndpoint']&&(_0x5ef10f=_0x3422b0(_0xf94a78['usageEndpoint'],_0xf94a78['jti'])),await _0x32fbe6()?_0x2ce31a()?_0x35e493()?'Expired':_0x3f8d19()?('evaluation'==_0xf94a78['licenseType']&&(_0xbd8fbb=_0x5f2ddb('EvaluationLimit')),await _0x456406()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x35e493(){const _0x566cc1=['evaluation','trial']['includes'](_0xf94a78['licenseType'])?_0x1bb9b0/0x3e8:0xe10*_0x5b8da1;return _0xf94a78['exp']<_0x566cc1;}function _0x2ce31a(){const _0x148d27=_0xf94a78['features'];if(!_0x148d27)return!0x1;if(_0x148d27['includes']('*'))return!0x0;if(_0x148d27['includes']('TC'))return!0x0;if(_0x148d27['includes']('RTC')){if(_0x5c43d8())return!0x0;if(_0x18e0bc()||_0x5563db())return!0x0;}return!0x1;}function _0x3f8d19(){const _0x57189c=_0xf94a78['licensedHosts'];if(!_0x57189c||0x0==_0x57189c['length'])return!0x0;const {hostname:_0x59f26e}=new URL(window['location']['href']);if(_0x57189c['includes'](_0x59f26e))return!0x0;const _0x28329e=_0x59f26e['split']('.');return _0x57189c['filter'](_0x2af8c6=>_0x2af8c6['includes']('*'))['map'](_0x1b0ef8=>_0x1b0ef8['split']('.'))['filter'](_0x90f8f=>_0x90f8f['length']<=_0x28329e['length'])['map'](_0x1d35b9=>Array(_0x28329e['length']-_0x1d35b9['length'])['fill']('*'===_0x1d35b9[0x0]?'*':'')['concat'](_0x1d35b9))['some'](_0x4f8c39=>_0x28329e['every']((_0x52c6e0,_0xd35953)=>_0x4f8c39[_0xd35953]===_0x52c6e0||'*'===_0x4f8c39[_0xd35953]));}function _0x456406(){return _0xbd8fbb&&_0x5ef10f?new window['Promise']((_0x47a34e,_0x5d4b12)=>{_0xbd8fbb['then'](_0x47a34e,_0x5d4b12),_0x5ef10f['then'](_0x4e46fd=>{'Valid'!=_0x4e46fd&&_0x47a34e(_0x4e46fd);},_0x5d4b12);}):_0xbd8fbb||_0x5ef10f||'Valid';}}function _0x3422b0(_0x354621,_0x28c438){return new window['Promise'](_0x1533d2=>{if(_0x17327e())return _0x1533d2('Valid');_0x1ff99d(),_0x46fede['decorate']('_sendUsageRequest');let _0x3ee09b=!0x1;const _0x2eea49=_0x3f17ac();function _0x370074(_0x33e48c){return!!_0x33e48c&&('object'==typeof _0x33e48c||'function'==typeof _0x33e48c)&&'function'==typeof _0x33e48c['then']&&'function'==typeof _0x33e48c['catch'];}function _0x304430(_0x42c51c){_0x433f50(_0x42c51c)['then'](_0x1d157c=>_0x1d157c&&'ok'==_0x1d157c['status']?_0x4d4068(_0x60fa7e(_0x2eea49+_0x28c438))!=_0x1d157c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x471b22=>(_0x35e01f(),_0x471b22),()=>{const _0x32a487=_0x37fd8d();return null==_0x32a487?(_0x35e01f(),'Valid'):_0x1bb9b0-_0x32a487>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1533d2)['catch'](()=>{_0x1533d2('UsageLimit');});const _0x4f0f3a=0x36ee80;function _0x35e01f(){const _0x3ce102='llct-'+_0x4d4068(_0x60fa7e(_0x354621)),_0x2d6173=_0x5a1651(_0x4d4068(window['Math']['ceil'](_0x1bb9b0/_0x4f0f3a)));window['localStorage']['setItem'](_0x3ce102,_0x2d6173);}function _0x37fd8d(){const _0x4f72cc='llct-'+_0x4d4068(_0x60fa7e(_0x354621)),_0xa61531=window['localStorage']['getItem'](_0x4f72cc);return _0xa61531?window['parseInt'](_0x5a1651(_0xa61531),0x10)*_0x4f0f3a:null;}function _0x433f50(_0x3676f8){return new window['Promise']((_0x289f3b,_0x5b93db)=>{_0x3676f8['then'](_0x289f3b,_0x5b93db),window['setTimeout'](_0x5b93db,0x1d4c0);});}}_0x46fede['on']('_sendUsageRequest',(_0x2dd53d,_0xae7e1f)=>{if(_0xae7e1f[0x0]!=_0x354621)return _0x1533d2('UsageLimit');_0xae7e1f[0x1]={..._0xae7e1f[0x1],'requestId':_0x2eea49};},{'priority':'high'}),_0x46fede['on']('_sendUsageRequest',_0xdf8809=>{_0x370074(_0xdf8809['return'])&&(_0x3ee09b=!0x0,_0x304430(_0xdf8809['return']));},{'priority':'low'}),_0xb75103['then'](()=>{_0x3ee09b||_0x1533d2('UsageLimit');});});function _0x17327e(){return'auto'==_0x46fede['editing']['view']['_overlayModeHint'];}function _0x1ff99d(){_0x46fede['editing']['view']['_overlayModeHint']='auto';}}function _0x5f2ddb(_0xce7aa6){const _0x23edd3=[new window['Promise'](_0x50e7ad=>setTimeout(_0x50e7ad,0x93ecc)),_0xb75103['then'](()=>new window['Promise'](_0x538df8=>{let _0x754774=0x0;_0x46fede['model']['on']('applyOperation',(_0xd4f2f5,_0x24b8f2)=>{_0x24b8f2[0x0]['isDocumentOperation']&&_0x754774++,0x5e8==_0x754774&&(_0x538df8(),_0xd4f2f5['off']());});}))];return window['Promise']['race'](_0x23edd3)['then'](()=>_0xce7aa6);}async function _0x7f921e(){await _0xb75103,_0x46fede['model']['change']=_0x1deffb,_0x46fede['model']['enqueueChange']=_0x1deffb,_0x46fede['enableReadOnlyMode']('model');}function _0x5c43d8(){return _0x101202('WebSocketGateway')&&'connected'==_0x5c4e47('WebSocketGateway')['state'];}function _0x18e0bc(){return _0x101202('RevisionViewerIntegration');}function _0x5563db(){return _0x101202('TrackChangesDataGetter');}function _0x465fb6(_0x1992cc){const _0x2e7acc=_0xe97948();_0x46fede[_0x2e7acc]='trackChangesLicenseKey'+_0x1992cc,'Valid'!=_0x1992cc&&_0x7f921e();}function _0xe97948(){const _0x54ec3b=window['String'](window['performance']['now']())['replace']('.','');let _0x539801='U';for(let _0x53eba2=0x0;_0x53eba2<_0x54ec3b['length'];_0x53eba2+=0x2){let _0x54329b=window['parseInt'](_0x54ec3b['substring'](_0x53eba2,_0x53eba2+0x2));_0x54329b>=0x3e&&(_0x54329b-=0x3e),_0x539801+=_0x3152c5[_0x54329b];}return _0x539801;}function _0x37fc18(){const _0x507531=_0x28cec4['split']('.');if(0x3!=_0x507531['length'])return null;return _0xbee502(_0x507531[0x1]);function _0xbee502(_0x10b758){const _0x1e5ff2=_0xa5ed71(_0x10b758);return _0x1e5ff2&&_0x5e70a1()?_0x1e5ff2:null;function _0x5e70a1(){const _0x3f96b0=_0x1e5ff2['jti'],_0x1362b9=window['parseInt'](_0x3f96b0['substring'](_0x3f96b0['length']-0x8),0x10),_0x2654e3={..._0x1e5ff2,'jti':_0x3f96b0['substring'](0x0,_0x3f96b0['length']-0x8)};return delete _0x2654e3['vc'],_0x60fa7e(_0x2654e3)==_0x1362b9;}}}async function _0x32fbe6(){let _0x492175=!0x0;try{const [_0xfe89ef,_0x30e2dc,_0x87387f]=_0x28cec4['split']('.');return _0x5e07a0(_0xfe89ef),await _0x33a927(_0xfe89ef,_0x30e2dc,_0x87387f),_0x492175;}catch{return!0x1;}function _0x5e07a0(_0x44e181){const _0x62c80c=_0xa5ed71(_0x44e181);_0x62c80c&&'ES256'==_0x62c80c['alg']||(_0x492175=!0x1);}async function _0x33a927(_0x21885b,_0x102b7f,_0xe2ff20){const _0xe4bb8f=window['Uint8Array']['from'](_0x7ef474(_0xe2ff20),_0x351ad7=>_0x351ad7['charCodeAt'](0x0)),_0x376584=new window['TextEncoder']()['encode'](_0x21885b+'.'+_0x102b7f),_0xc6165a=window['crypto']['subtle'];if(!_0xc6165a)return;const _0x59e680=await _0xc6165a['importKey']('jwk',_0x3f5a86,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xc6165a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x59e680,_0xe4bb8f,_0x376584)||(_0x492175=!0x1);}}function _0xa5ed71(_0x3ba0c8){return _0x3ba0c8['startsWith']('ey')?JSON['parse'](_0x7ef474(_0x3ba0c8)):null;}function _0x7ef474(_0x500f81){return window['atob'](_0x500f81['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x60fa7e(_0x184685){let _0x1dd219=0x1505;function _0x194a80(_0x34a21e){for(let _0x2fc952=0x0;_0x2fc952<_0x34a21e['length'];_0x2fc952++){const _0x3fe9df=_0x34a21e['charCodeAt'](_0x2fc952);_0x1dd219=(_0x1dd219<<0x5)+_0x1dd219+_0x3fe9df,_0x1dd219&=_0x1dd219;}}function _0x20d063(_0x147455){Array['isArray'](_0x147455)?_0x147455['forEach'](_0x20d063):_0x147455&&'object'==typeof _0x147455?Object['entries'](_0x147455)['sort']()['forEach'](([_0x4fd02b,_0x3acfea])=>{_0x194a80(_0x4fd02b),_0x20d063(_0x3acfea);}):_0x194a80(window['String'](_0x147455));}return _0x20d063(_0x184685),_0x1dd219>>>0x0;}function _0x4d4068(_0x5b7a0f){return _0x5b7a0f['toString'](0x10)['padStart'](0x8,'0');}function _0x5a1651(_0x2c1595){return _0x2c1595['split']('')['reverse']()['join']('');}function _0x101202(_0x1de96b){return _0x46fede['plugins']['has'](_0x1de96b);}function _0x5c4e47(_0x58907a){return _0x46fede['plugins']['get'](_0x58907a);}function _0x1deffb(){}_0x465fb6(await _0x25a90f());}_0x1d6fd9(_0x481af6['editor']);}(this);}set adapter(_0x2d70eb){if(this['_adapter'])throw new _0x2f2b37('track-changes-adapter-already-set',this);this['_adapter']=_0x2d70eb;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x6b5353=!0x1,toJSON:_0x5c10df=!0x1}={}){const _0x212b39=[];for(const _0xef9cdd of this['_suggestions']['values']())_0x6b5353&&!_0xef9cdd['isInContent']||_0x212b39['push'](_0xef9cdd);return _0x5c10df?_0x212b39['map'](_0xaa1ecb=>_0xaa1ecb['toJSON']()):_0x212b39;}getSuggestion(_0x58da2f){const _0x3f298b=this['_suggestions']['get'](_0x58da2f);if(!_0x3f298b)throw new _0x2f2b37('track-changes-suggestion-not-found',this);return _0x3f298b;}hasSuggestion(_0x4a4763){return this['_suggestions']['has'](_0x4a4763);}addSuggestionData(_0x37b875){const {authorId:_0x2e611a,id:_0x571c33,originalSuggestionId:_0x345c39,attributes:_0x1c5e51}=_0x37b875,[_0x3b6783,_0x200a7c]=_0x37b875['type']['split'](':'),_0x14d03e=this['_suggestions']['get'](_0x571c33)||this['_createSuggestion'](_0x3b6783,_0x200a7c,_0x571c33,_0x2e611a,_0x1c5e51,_0x345c39);if(this['_addThreadToSuggestion'](_0x14d03e),this['_checkSuggestionCorrectness'](_0x14d03e,_0x3b6783,_0x200a7c||null,_0x2e611a),_0x14d03e['createdAt']=_0x37b875['createdAt'],_0x14d03e['_isDataLoaded']=!0x0,_0x1c5e51&&_0x1c5e51['@external']){const _0x430f20=_0x1c5e51['@external'],_0x161685=this['_getExternalAuthor'](_0x430f20['authorName']);_0x14d03e['authoredAt']=_0x430f20['createdAt'],_0x14d03e['author']=_0x161685;}else _0x14d03e['authoredAt']=_0x37b875['createdAt'];switch(_0x37b875['data']&&(_0x14d03e['data']=_0x37b875['data']),_0x37b875['attributes']&&(_0x14d03e['attributes']=_0x37b875['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14d03e['_saved']=!0x0),this['_suggestionState']['get'](_0x14d03e)){case'notReady':this['_suggestionState']['set'](_0x14d03e,'dataReady');break;case'markerReady':_0x14d03e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14d03e])),this['_refreshSuggestionsChain'](new Set([_0x14d03e])),this['_suggestionState']['set'](_0x14d03e,'ready'),this['fire']('suggestionLoaded',_0x14d03e)):this['_suggestionState']['set'](_0x14d03e,'removed');}return _0x14d03e;}acceptSuggestion(_0x31ac17){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x357da3 of _0x31ac17['getAllAdjacentSuggestions']())_0x357da3['accept']();});});}discardSuggestion(_0x377121){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x133868 of _0x377121['getAllAdjacentSuggestions']())_0x133868['discard']();});});}['enableCommand'](_0xfb356d,_0x2a220a){const _0x4180a0=this['editor']['commands']['get'](_0xfb356d);if(!_0x4180a0)throw new _0x2f2b37('track-changes-command-not-found',this,{'commandName':_0xfb356d});if(this['_enabledCommands']['has'](_0x4180a0))throw new _0x2f2b37('track-changes-enable-command-twice',this,{'commandName':_0xfb356d});this['_enabledCommands']['add'](_0x4180a0),_0x2a220a&&_0x4180a0['on']('execute',(_0x411a21,_0x27926d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27926d['length']>0x0&&_0x27926d[_0x27926d['length']-0x1]&&_0x27926d[_0x27926d['length']-0x1]['forceDefaultExecution']?_0x27926d['pop']():(_0x411a21['return']=_0x2a220a((..._0x3418fd)=>_0x4180a0['execute'](..._0x3418fd,{'forceDefaultExecution':!0x0}),..._0x27926d),_0x411a21['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x10ebe9){let _0xc14aa,_0x551e1a;const _0x37c1a6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc14aa=_0x10ebe9();}catch(_0xa68b63){_0x551e1a=_0xa68b63;}return _0x37c1a6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x551e1a&&_0x2f2b37['rethrowUnexpectedError'](_0x551e1a,this),_0xc14aa;}markInsertion(_0x1cc4f5,_0x2b42fb=null,_0x27f233={}){if(_0x1cc4f5['isCollapsed'])return null;const _0x315c02=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x27f233['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x310ef3,meta:_0x213dd2}of this['_findSuggestions'](_0x1cc4f5,'insertion'))if(_0x213dd2['isOwn']){if(!_0x213dd2['isNextTo']){if(_0x213dd2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ln(_0x310ef3,_0x27f233))continue;return _0x310ef3;}if(Ln(_0x310ef3,_0x27f233))return _0x310ef3;this['_breakSuggestionMarker'](_0x310ef3,_0x1cc4f5['start'],_0x1cc4f5['end']);break;}if(_0x2b42fb==_0x310ef3['subType']&&Ln(_0x310ef3,_0x27f233)){const _0x22e03c=_0x310ef3['getFirstRange']();return _0x22e03c['start']['isEqual'](_0x1cc4f5['end'])?this['_setSuggestionRange'](_0x310ef3,this['_model']['createRange'](_0x1cc4f5['start'],_0x22e03c['end'])):this['_setSuggestionRange'](_0x310ef3,this['_model']['createRange'](_0x22e03c['start'],_0x1cc4f5['end'])),_0x310ef3;}}const _0x5eede7=_0x3f17ac(),_0x2f5091=_0x315c02['id'],_0x417128=_0x2b42fb?'insertion:'+_0x2b42fb:'insertion',_0x4ea9e7=this['_setSuggestionData']({'id':_0x5eede7,'type':_0x417128,'createdAt':new Date(),'authorId':_0x2f5091,'attributes':_0x27f233});return this['_addSuggestionMarker'](_0x417128,_0x5eede7,_0x2f5091,_0x1cc4f5),_0x4ea9e7;}markMultiRangeInsertion(_0x36818e,_0x5cb953='multi',_0x541a46={}){const _0x1f11a0=this['editor']['plugins']['get']('Users')['me'],_0x4bdf49=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cb953,'join');this['_trackingSessionId']&&(_0x541a46['trackingSessionId']=this['_trackingSessionId']);for(const _0x562fcc of this['getSuggestions']())if(_0x562fcc['author']['id']==_0x1f11a0['id']&&'insertion'==_0x562fcc['type']&&_0x562fcc['subType']==_0x5cb953&&Ln(_0x562fcc,_0x541a46)&&(_0x4bdf49(_0x562fcc['getRanges'](),_0x36818e)||_0x4bdf49(_0x36818e,_0x562fcc['getRanges']()))){for(const _0x260e80 of _0x36818e)_0x562fcc['addRange'](_0x260e80);return _0x562fcc;}for(const {suggestion:_0x432c3,meta:_0x2a3833}of this['_findSuggestions'](_0x36818e,'insertion')){if(!_0x2a3833['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a3833['containsRangeInObject'])continue;if(!Ln(_0x432c3,_0x541a46))continue;let _0x4bce24=!0x0;for(const _0x2c54dc of _0x432c3['getRanges']())for(const _0x402ad9 of _0x36818e)if(!_0x2c54dc['containsRange'](_0x402ad9)){_0x4bce24=!0x1;break;}if(_0x4bce24)return _0x432c3;}const _0x522f70=_0x3f17ac(),_0x27ed34=_0x1f11a0['id'],_0x3f0389='insertion:'+_0x5cb953,_0x59aed5=this['_setSuggestionData']({'id':_0x522f70,'type':_0x3f0389,'createdAt':new Date(),'authorId':_0x27ed34,'attributes':_0x541a46});for(const _0x482044 of _0x36818e)this['_addSuggestionMarker'](_0x3f0389,_0x522f70,_0x27ed34,_0x482044,St['getMultiRangeId']());return _0x59aed5;}markInlineFormat(_0x4047c0,_0x7cc44f,_0x3d8444=null,_0x44a0ba={}){if(_0x3d8444=_0x3d8444||hn(_0x7cc44f),_0x4047c0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44a0ba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2701ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d8444,'accept');return this['forceDefaultExecution'](()=>_0x2701ad([_0x4047c0],_0x7cc44f,_0x44a0ba)),null;}const _0x573468=this['editor']['plugins']['get']('Users')['me'],_0x4e51cc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x309d9b,meta:_0x46c4c8}of this['_findSuggestions'](_0x4047c0,'insertion'))_0x46c4c8['isOwn']&&!_0x46c4c8['isInsideObject']&&_0x4e51cc['push'](..._0x309d9b['getRanges']());}const _0x106835=function(_0x5ccd83,_0x383e6e){const _0x2c6f67=[];for(const _0x4da48e of _0x383e6e){const _0x41f069=_0x5ccd83['getIntersection'](_0x4da48e);_0x41f069&&_0x2c6f67['push'](_0x41f069);}return _0x2c6f67;}(_0x4047c0,_0x4e51cc),_0x3bfaf2=function(_0x177ef5,_0x39cb2c){const _0x35a276=[_0x177ef5];for(const _0x1efdc4 of _0x39cb2c){let _0x386c47=0x0;for(;_0x386c47<_0x35a276['length'];){const _0x2d85b3=_0x35a276[_0x386c47]['getDifference'](_0x1efdc4);_0x35a276['splice'](_0x386c47,0x1,..._0x2d85b3),_0x386c47+=_0x2d85b3['length'];}}return _0x35a276;}(_0x4047c0,_0x4e51cc);_0x106835['length']&&this['_model']['change'](()=>{for(const _0x47739b of _0x106835){const _0x1a681c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3d8444,'accept');this['forceDefaultExecution'](()=>_0x1a681c([_0x47739b],_0x7cc44f,_0x44a0ba));}});for(const _0x9a2260 of _0x3bfaf2){let _0x41099e=null,_0x2477d5=_0x9a2260['start'],_0x22fd0d=_0x9a2260['end'];for(const {suggestion:_0x1db16b,meta:_0x5892b3}of this['_findSuggestions'](_0x9a2260,'formatInline')){if(!_0x5892b3['isOwn'])continue;if(_0x1db16b['subType']!=_0x3d8444)continue;if(!Ln(_0x1db16b,_0x44a0ba))continue;const _0x196872=_0x1db16b['getFirstRange']();if(_0x196872['containsRange'](_0x9a2260,!0x0))return null;_0x2477d5=_0x2477d5['isBefore'](_0x196872['start'])?_0x2477d5:_0x196872['start'],_0x22fd0d=_0x22fd0d['isAfter'](_0x196872['end'])?_0x22fd0d:_0x196872['end'],_0x41099e?_0x196872['start']['isBefore'](_0x41099e['getFirstRange']()['start'])?(_0x41099e['removeMarkers'](),_0x41099e=_0x1db16b):_0x1db16b['removeMarkers']():_0x41099e=_0x1db16b;}const _0x11d623=this['_model']['createRange'](_0x2477d5,_0x22fd0d);if(_0x41099e)this['_setSuggestionRange'](_0x41099e,_0x11d623);else{const _0x2dd084=_0x3f17ac(),_0x58fc8e=_0x573468['id'];this['_setSuggestionData']({'id':_0x2dd084,'type':'formatInline:'+_0x3d8444,'data':_0x7cc44f,'createdAt':new Date(),'authorId':_0x58fc8e,'attributes':_0x44a0ba}),this['_addSuggestionMarker']('formatInline:'+_0x3d8444,_0x2dd084,_0x58fc8e,_0x11d623);}}return null;}markBlockFormat(_0x99e43e,_0x2bedb7,_0x5e5c81=[],_0xfc219d=null,_0x148b44={}){_0x2bedb7['formatGroupId']||(_0x2bedb7['formatGroupId']=_0x2bedb7['commandName']),_0x2bedb7['multipleBlocks']=_0x99e43e['is']('range'),_0xfc219d=_0xfc219d||hn(_0x2bedb7);const _0x25ac9a=_0x5e5c81['map'](_0x460e47=>Tn(_0x460e47,this['_model'])),_0x5ba73a=_0x99e43e['is']('range')?_0x99e43e:Tn(_0x99e43e,this['_model']);if(this['_trackingSessionId']&&(_0x148b44['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7b5c2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc219d,'accept');return this['forceDefaultExecution'](()=>_0x7b5c2b([_0x5ba73a],_0x2bedb7,_0x148b44)),null;}_0x25ac9a['push'](_0x5ba73a);let _0x4e79f9=!0x0;for(const _0x4d75d8 of _0x25ac9a)if(!this['_rangeIsInLocalUserInsertion'](_0x4d75d8)){_0x4e79f9=!0x1;break;}if(_0x4e79f9&&'always'!==this['_trackFormatChanges']){const _0x54f905=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc219d,'accept');return this['forceDefaultExecution'](()=>_0x54f905([_0x5ba73a],_0x2bedb7,_0x148b44)),null;}let _0x2beaaa=null,_0x367459=_0x5ba73a['start'],_0x41573a=_0x5ba73a['end'];for(const {suggestion:_0x486afb,meta:_0x2bceda}of this['_findSuggestions'](_0x5ba73a,'formatBlock')){if(!_0x2bceda['isOwn'])continue;if(_0x2bceda['isNextTo']||_0x2bceda['containsRangeInObject']||_0x2bceda['isInsideObject'])continue;if(_0x486afb['data']['formatGroupId']!=_0x2bedb7['formatGroupId'])continue;if(!Ln(_0x486afb,_0x148b44))continue;const _0x44d2d6=_0x486afb['getFirstRange']();if(_0x486afb['subType']==_0xfc219d){if(_0x44d2d6['containsRange'](_0x5ba73a,!0x0))return null;_0x367459=_0x367459['isBefore'](_0x44d2d6['start'])?_0x367459:_0x44d2d6['start'],_0x41573a=_0x41573a['isAfter'](_0x44d2d6['end'])?_0x41573a:_0x44d2d6['end'],_0x2beaaa?_0x44d2d6['start']['isBefore'](_0x2beaaa['getFirstRange']()['start'])?(_0x2beaaa['removeMarkers'](),_0x2beaaa=_0x486afb):_0x486afb['removeMarkers']():_0x2beaaa=_0x486afb;}else{const _0x375e9c=_0x5ba73a['getIntersection'](_0x44d2d6);this['_cutOutSuggestionMarker'](_0x486afb,_0x375e9c);}}const _0x1cac24=this['editor']['plugins']['get']('Users')['me'],_0xe202ae=_0x3f17ac(),_0x5088fe=_0x1cac24['id'];if(_0x2beaaa)return this['_setSuggestionRange'](_0x2beaaa,this['_model']['createRange'](_0x367459,_0x41573a)),_0x2beaaa;{const _0x1d87f4=this['_setSuggestionData']({'id':_0xe202ae,'type':'formatBlock:'+_0xfc219d,'data':_0x2bedb7,'createdAt':new Date(),'authorId':_0x5088fe,'attributes':_0x148b44});return this['_addSuggestionMarker']('formatBlock:'+_0xfc219d,_0xe202ae,_0x5088fe,this['_model']['createRange'](_0x367459,_0x41573a)),_0x1d87f4;}}markMultiRangeBlockFormat(_0x5deaea,_0x219c53,_0x242135=[],_0x24e399=null,_0x1e39d0={}){_0x219c53['formatGroupId']||(_0x219c53['formatGroupId']=_0x219c53['commandName']);const _0x289137=_0x5deaea[0x0];_0x219c53['multipleBlocks']=_0x289137['is']('range'),_0x24e399=_0x24e399||hn(_0x219c53);const _0x8431b0=_0x242135['map'](_0x70e165=>Tn(_0x70e165,this['_model'])),_0x514fca=_0x289137['is']('range')?_0x5deaea:_0x5deaea['map'](_0x5707bb=>Tn(_0x5707bb,this['_model']));if(this['_trackingSessionId']&&(_0x1e39d0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x194043=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'accept');return this['forceDefaultExecution'](()=>_0x194043(_0x514fca,_0x219c53,_0x1e39d0)),null;}_0x8431b0['push'](..._0x514fca);let _0x521ace=!0x0;for(const _0x3348ba of _0x8431b0)if(!this['_rangeIsInLocalUserInsertion'](_0x3348ba)){_0x521ace=!0x1;break;}if(_0x521ace&&'always'!==this['_trackFormatChanges']){const _0x34276b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'accept');return this['forceDefaultExecution'](()=>_0x34276b(_0x514fca,_0x219c53,_0x1e39d0)),null;}const _0x137117=this['editor']['plugins']['get']('Users')['me'];for(const _0x24a688 of this['getSuggestions']()){const _0x344998=_0x24a688['data'];if(_0x24a688['author']['id']!=_0x137117['id'])continue;if('formatBlock'!=_0x24a688['type']||_0x344998['formatGroupId']!=_0x219c53['formatGroupId'])continue;if(!Ln(_0x24a688,_0x1e39d0))continue;const _0x520f32=_0x24a688['subType']==_0x24e399;for(let _0x179aaa=0x0;_0x179aaa<_0x514fca['length'];_0x179aaa++){const _0x39417e=_0x514fca[_0x179aaa];for(const _0x47487d of _0x24a688['getMarkers']()){const _0x17aa42=_0x47487d['getRange']();if(_0x39417e['isEqual'](_0x17aa42)){_0x520f32?(_0x514fca['splice'](_0x179aaa,0x1),_0x179aaa--):_0x24a688['removeMarker'](_0x47487d['name']);break;}}}}if(0x0==_0x514fca['length'])return null;const _0x3f23b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x24e399,'join');for(const _0x19897f of this['getSuggestions']()){const _0x48292d=_0x19897f['data'];if(_0x19897f['author']['id']==_0x137117['id']&&('formatBlock'==_0x19897f['type']&&_0x48292d['formatGroupId']==_0x219c53['formatGroupId']&&_0x19897f['subType']==_0x24e399&&Ln(_0x19897f,_0x1e39d0)&&(_0x3f23b4(_0x19897f['getRanges'](),_0x514fca)||_0x3f23b4(_0x514fca,_0x19897f['getRanges']())))){for(const _0xf3bbcb of _0x514fca)_0x19897f['addRange'](_0xf3bbcb);return _0x19897f;}}const _0x55cbca=_0x3f17ac(),_0x5dc1b3=_0x137117['id'],_0x58a897='formatBlock:'+_0x24e399,_0x37a9ce=this['_setSuggestionData']({'id':_0x55cbca,'type':_0x58a897,'data':_0x219c53,'createdAt':new Date(),'authorId':_0x5dc1b3,'attributes':_0x1e39d0});for(const _0x4c38e5 of _0x514fca)this['_addSuggestionMarker'](_0x58a897,_0x55cbca,_0x5dc1b3,_0x4c38e5,St['getMultiRangeId']());return _0x37a9ce;}markDeletion(_0x35200c,_0x370990=null,_0x4dcb8e={}){if(_0x35200c['isCollapsed'])return null;const _0x3791f0=this['editor']['plugins']['get']('Users')['me'],_0x26cde3=new rt(_0x35200c['start'],_0x35200c['end']);this['_trackingSessionId']&&(_0x4dcb8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ad978,meta:_0x1f8407}of this['_findSuggestions'](_0x26cde3,'insertion'))if(_0x1f8407['isOwn']&&!_0x1f8407['isNextTo']){if(_0x1ad978['isMultiRange']){const _0x5568a8=_0x1ad978['getRanges']()['filter'](_0x479819=>'$graveyard'!=_0x479819['root']['rootName']);if(_0x5568a8['every'](_0x4941fb=>_0x26cde3['containsRange'](_0x4941fb,!0x0))&&_0x1ad978['discard'](),_0x5568a8['some'](_0x30343d=>_0x30343d['containsRange'](_0x26cde3,!0x0))){const _0x5e2f36=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x370990,'accept');return this['forceDefaultExecution'](()=>_0x5e2f36([_0x26cde3],null,_0x4dcb8e)),null;}}else{const _0x3126cc=_0x26cde3['getIntersection'](_0x1ad978['getFirstRange']());null!==_0x3126cc&&_0x1ad978['_onDiscard']([_0x3126cc],null,_0x4dcb8e);}}if(_0x26cde3['detach'](),_0x26cde3['isCollapsed']||'$graveyard'==_0x26cde3['root']['rootName'])return null;let _0x5d3b27=null,_0x1c80d9=_0x26cde3['start'],_0x39004e=_0x26cde3['end'];const _0x2448c6=this['_findSuggestions'](_0x26cde3,'deletion');for(const {suggestion:_0x12c475,meta:_0x46a667}of _0x2448c6){const _0x38e264=this['_model']['createRange'](_0x1c80d9,_0x39004e);if(_0x46a667['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46a667['containsRangeInObject']&&!_0x46a667['isInsideObject'])){if(_0x12c475['isMultiRange']){if(!Ln(_0x12c475,_0x4dcb8e))continue;let _0xb0b677=!0x0;for(const _0x4f33d2 of _0x12c475['getRanges']()){if(_0x4f33d2['containsRange'](_0x38e264,!0x0))return _0x12c475;_0x38e264['containsRange'](_0x4f33d2)||(_0xb0b677=!0x1);}_0xb0b677&&_0x12c475['discard']();}else{const _0x4f9504=_0x12c475['getFirstRange']();if(_0x4f9504['containsRange'](_0x38e264,!0x0))return _0x12c475;if(!Ln(_0x12c475,_0x4dcb8e)){_0x38e264['containsRange'](_0x4f9504)?_0x12c475['removeMarkers']():_0x4f9504['containsPosition'](_0x1c80d9)?_0x1c80d9=_0x4f9504['end']:_0x4f9504['containsPosition'](_0x39004e)&&(_0x39004e=_0x4f9504['start']);continue;}_0x1c80d9=_0x1c80d9['isBefore'](_0x4f9504['start'])?_0x1c80d9:_0x4f9504['start'],_0x39004e=_0x39004e['isAfter'](_0x4f9504['end'])?_0x39004e:_0x4f9504['end'],_0x4dcb8e=Object['assign']({},_0x12c475['attributes']),_0x5d3b27?_0x4f9504['start']['isBefore'](_0x5d3b27['getFirstRange']()['start'])?(_0x5d3b27['removeMarkers'](),_0x5d3b27=_0x12c475):_0x12c475['removeMarkers']():_0x5d3b27=_0x12c475;}}}if(_0x5d3b27)return this['_setSuggestionRange'](_0x5d3b27,this['_model']['createRange'](_0x1c80d9,_0x39004e)),_0x5d3b27;{const _0x404896=_0x3f17ac(),_0x373c20=this['_model']['createRange'](_0x1c80d9,_0x39004e),_0x52210f=_0x3791f0['id'],_0x2ee490=_0x370990?'deletion:'+_0x370990:'deletion',_0x25e03b=this['_setSuggestionData']({'id':_0x404896,'type':_0x2ee490,'createdAt':new Date(),'authorId':_0x52210f,'attributes':_0x4dcb8e});return this['_addSuggestionMarker'](_0x2ee490,_0x404896,_0x52210f,_0x373c20),_0x25e03b;}}markMultiRangeDeletion(_0x2d92c2,_0x3c9410='multi',_0x3a3610={}){const _0x211331=this['editor']['plugins']['get']('Users')['me'],_0x3583ac=_0x2d92c2['map'](_0x30b980=>new rt(_0x30b980['start'],_0x30b980['end'])),_0x389f9b=new Set();this['_trackingSessionId']&&(_0x3a3610['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18e985,meta:_0x507ddf}of this['_findSuggestions'](_0x3583ac,'insertion'))_0x507ddf['isOwn']&&!_0x507ddf['isNextTo']&&_0x389f9b['add'](_0x18e985);for(const _0x465e59 of _0x389f9b)if(_0x465e59['isMultiRange']){const _0x460b76=_0x465e59['getRanges']();if(_0x465e59['attributes']&&_0x465e59['attributes']['skipNestingCheck']||_0x460b76['every'](_0x22074e=>_0x3583ac['some'](_0x41b7ec=>_0x41b7ec['containsRange'](_0x22074e,!0x0)))&&_0x465e59['discard'](),_0x3583ac['every'](_0x96317e=>_0x460b76['some'](_0x4e2d05=>_0x4e2d05['containsRange'](_0x96317e,!0x0)))){const _0x3aa9e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'accept');return this['forceDefaultExecution'](()=>_0x3aa9e1(_0x2d92c2,null,_0x3a3610)),null;}}else{const _0x4f9473=_0x465e59['getFirstRange']();if(_0x3583ac['some'](_0x3a279f=>_0x3a279f['containsRange'](_0x4f9473,!0x0))&&_0x465e59['discard'](),_0x3583ac['every'](_0x438629=>_0x4f9473['containsRange'](_0x438629,!0x0))){const _0x2b2bc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'accept');return this['forceDefaultExecution'](()=>_0x2b2bc6(_0x3583ac,null,_0x3a3610)),null;}}const _0x2553a4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c9410,'join');let _0x76f83b=null;for(const _0x2a0ba4 of this['getSuggestions']())if(_0x2a0ba4['author']['id']==_0x211331['id']&&_0x2a0ba4['isInContent']&&'deletion'==_0x2a0ba4['type']&&_0x2a0ba4['subType']==_0x3c9410&&Ln(_0x2a0ba4,_0x3a3610)&&(_0x2553a4(_0x2a0ba4['getRanges'](),_0x3583ac)||_0x2553a4(_0x3583ac,_0x2a0ba4['getRanges']()))){if(_0x76f83b){if(_0x2a0ba4['commentThread']&&_0x2a0ba4['commentThread']['length'])continue;for(const _0x5f2d9b of _0x2a0ba4['getRanges']())_0x76f83b['isIntersectingWithRange'](_0x5f2d9b)||_0x76f83b['addRange'](_0x5f2d9b);_0x2a0ba4['removeMarkers']();}else{_0x76f83b=_0x2a0ba4;for(const _0x524870 of _0x3583ac)_0x2a0ba4['isIntersectingWithRange'](_0x524870)||_0x2a0ba4['addRange'](_0x524870);}}if(_0x76f83b)return _0x76f83b;_0x389f9b['clear']();for(const {suggestion:_0x3b7f7b,meta:_0x244799}of this['_findSuggestions'](_0x3583ac,'deletion'))_0x244799['isOwn']&&(this['_mergeNestedSuggestions']||!_0x244799['containsRangeInObject']&&!_0x244799['isInsideObject'])&&Ln(_0x3b7f7b,_0x3a3610)&&_0x389f9b['add'](_0x3b7f7b);for(const _0xe833ce of _0x389f9b){const _0x2d17f0=_0xe833ce['getRanges']();if((!_0x3a3610||!_0x3a3610['skipNestingCheck'])&&_0x3583ac['every'](_0x15d679=>_0x2d17f0['some'](_0x3ce0b2=>_0x3ce0b2['containsRange'](_0x15d679,!0x0))))return _0xe833ce;_0xe833ce['attributes']&&_0xe833ce['attributes']['skipNestingCheck']||_0x2d17f0['every'](_0x279a9f=>_0x3583ac['some'](_0x7e3e09=>_0x7e3e09['containsRange'](_0x279a9f,!0x0)))&&_0xe833ce['discard']();}const _0x3a1fc5=_0x3f17ac(),_0x4d3f16=_0x211331['id'],_0x4a6a7f='deletion:'+_0x3c9410,_0x65c5c3=this['_setSuggestionData']({'id':_0x3a1fc5,'type':_0x4a6a7f,'createdAt':new Date(),'authorId':_0x4d3f16,'attributes':_0x3a3610});for(const _0x178a65 of _0x3583ac)_0x178a65['detach'](),_0x178a65['isCollapsed']||'$graveyard'==_0x178a65['root']['rootName']||this['_addSuggestionMarker'](_0x4a6a7f,_0x3a1fc5,_0x4d3f16,_0x178a65,St['getMultiRangeId']());return _0x65c5c3;}markAttributeChange(_0x5a6bc4,_0x269698,_0x35b687,_0x43c55b,_0x4b21c8){if(_0x5a6bc4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5319bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x30c4e0=Array['from'](this['_suggestions']['values']())['filter'](_0x340201=>'attribute'==_0x340201['type']&&_0x340201['data']['key']==_0x269698&&_0x340201['isIntersectingWithRange'](_0x5a6bc4));if(this['_trackingSessionId']&&(_0x4b21c8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x31b7da=this['_findSuggestions'](_0x5a6bc4,'insertion')['filter'](({meta:_0x291b6b})=>_0x291b6b['isOwn']&&!_0x291b6b['isInsideObject']&&!_0x291b6b['isNextTo'])['map'](({suggestion:_0x10878c})=>_0x10878c);_0x30c4e0['unshift'](..._0x31b7da);}const _0x2d0808=new Map([[_0x5a6bc4,_0x35b687]]);for(const _0x204327 of _0x30c4e0){const _0x5ebf32='attribute'==_0x204327['type']?_0x204327['data']['oldValue']:void 0x0,_0x3ff81e=_0x204327['getFirstRange'](),_0x4772cd=Array['from'](_0x2d0808['keys']())['find'](_0x30c224=>_0x30c224['isIntersecting'](_0x3ff81e));if(!_0x4772cd)continue;const _0x3b04c2=_0x4772cd['getDifference'](_0x3ff81e);this['_suggestionsConversion']['isBlockAttribute'](_0x269698)&&'insertion'==_0x204327['type']&&0x0!=_0x3b04c2['length']||(_0x2d0808['delete'](_0x4772cd),_0x3b04c2['forEach'](_0x440af5=>{_0x2d0808['set'](_0x440af5,_0x35b687);}),'insertion'!=_0x204327['type']&&_0x5ebf32!=_0x43c55b&&_0x2d0808['set'](_0x4772cd['getIntersection'](_0x3ff81e),_0x5ebf32));}const _0x5ecb3f=[];for(const [_0x16459e,_0x1dabfd]of _0x2d0808){const _0x4a95c1=_0x3f17ac(),_0x2e2584={'key':_0x269698,'oldValue':_0x1dabfd,'newValue':_0x43c55b};_0x269698['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':_0x269698});const _0x2a9bfa=('attribute:'+_0x269698+'|'+hn({'newValue':_0x43c55b}))['substring'](0x0,0x3c),_0x33fdca=this['_setSuggestionData']({'id':_0x4a95c1,'type':_0x2a9bfa,'data':_0x2e2584,'createdAt':new Date(),'authorId':_0x5319bd,'attributes':_0x4b21c8});_0x5ecb3f['push'](_0x33fdca),this['_addSuggestionMarker'](_0x2a9bfa,_0x4a95c1,_0x5319bd,_0x16459e);}return _0x5ecb3f;}enableDefaultAttributesIntegration(_0x1112cd){this['enableCommand'](_0x1112cd,(_0xf4ecea,..._0x185cb4)=>{this['recordAttributeChanges'](()=>{_0xf4ecea(..._0x185cb4);});});}startTrackingSession(_0x259cbd){return this['_trackingSessionId']=void 0x0!==_0x259cbd?_0x259cbd:_0x3f17ac(),this['_trackingSessionId'];}_getAttributeKey(_0x2ae9e1){return'attribute'==_0x2ae9e1['type']?An(_0x2ae9e1['subType']):null;}_applyOperationsAsSuggestions(_0x18c95a){if(0x0==_0x18c95a['length'])return;const _0x145e87=this['editor'],_0x54a811=[],_0x3ec831=_0x49883c=>{const _0x2ff04b=_0x49883c['_aiSource'];return _0x2ff04b?{'@ai':{'type':_0x2ff04b}}:{};},_0x4a9f82=(_0x49810a,_0x2b92bc,_0x155ae8,_0x38d817)=>{const _0xfdbe61=new Set(_0x38d817['flatMap'](_0x17dcbe=>_0x17dcbe['getMarkerNames']()));let _0x144604=!0x1;for(let _0x5cadda=_0x2b92bc;_0x5cadda<_0x49810a['operations']['length'];_0x5cadda++){const _0x3aedec=_0x49810a['operations'][_0x5cadda];if('marker'==_0x3aedec['type']){if(!_0xfdbe61['has'](_0x3aedec['name']))continue;_0x144604=!0x0;}_0x3aedec['_aiSource']=_0x155ae8;}return _0x144604;};_0x145e87['model']['change'](_0x5f2dc5=>{for(let _0x31bec5=0x0;_0x31bec5<_0x18c95a['length'];_0x31bec5++){const _0x364cae=_0x18c95a[_0x31bec5],_0x26ad19=_0x364cae['_aiSource'];if(_0x364cae['baseVersion']=_0x145e87['model']['document']['version'],_0x364cae['isDocumentOperation']=!0x0,_0x11e8cd(_0x364cae))continue;if(rn(_0x364cae)){const _0x2d0870=_0x1a0f4e(_0x364cae['newRange'],_0x145e87['model']);_0x54a811['unshift']({'range':rt['fromRange'](_0x2d0870),'operation':_0x364cae});continue;}const _0x15bc65=_0x5f2dc5['batch']['operations']['length']+0x1;let _0x1453a8=[];switch(_0x364cae['type']){case'rename':{const _0x4d907f=_0x364cae['oldName'],_0x182158=_0x364cae['newName'];if(_0x4d907f==_0x182158)break;_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x20a887='$elementName',_0x44eaf4=_0x364cae['position'],_0x2d878d=_0x145e87['model']['createRange'](_0x44eaf4,_0x145e87['model']['createPositionAt'](_0x44eaf4['nodeAfter'],'end'));_0x1453a8=this['markAttributeChange'](_0x2d878d,_0x20a887,_0x4d907f,_0x182158,{..._0x3ec831(_0x364cae),'groupId':_0x3f17ac()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa9365d=_0x364cae['oldValue'],_0x4f6c91=_0x364cae['newValue'];if(_0xa9365d==_0x4f6c91)break;_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x383979=_0x364cae['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x383979))break;const _0x12d9fe=_0x1a0f4e(_0x364cae['range'],_0x145e87['model']);_0x1453a8=this['markAttributeChange'](_0x12d9fe,_0x383979,_0xa9365d,_0x4f6c91,{..._0x3ec831(_0x364cae),'groupId':_0x3f17ac()});break;}case'insert':{if(_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae),_0x18c95a[_0x31bec5+0x1]&&'move'==_0x18c95a[_0x31bec5+0x1]['type'])break;const _0x2fd52c=_0x364cae['position'],_0x11567d=_0x364cae['howMany'],_0x5b3538=_0x1a0f4e(_0x145e87['model']['createRange'](_0x2fd52c,_0x2fd52c['getShiftedBy'](_0x11567d)),_0x145e87['model']);_0x1453a8=on(this['markInsertion'](_0x5b3538,null,{..._0x3ec831(_0x364cae)}));break;}case'split':{_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);const _0x38d311=_0x364cae['splitPosition'],_0x37a571=_0x364cae['moveTargetPosition'],_0x3a09ea=_0x145e87['model']['createRange'](_0x38d311,_0x37a571);_0x1453a8=on(this['markInsertion'](_0x3a09ea,null,{..._0x3ec831(_0x364cae)}));break;}case'move':case'remove':_0x5f2dc5['batch']['addOperation'](_0x364cae),_0x145e87['model']['applyOperation'](_0x364cae);}_0x26ad19&&_0x4a9f82(_0x5f2dc5['batch'],_0x15bc65,_0x26ad19,_0x1453a8)&&delete _0x364cae['_aiSource'];}for(const {range:_0x55d577,operation:_0x561f6f}of _0x54a811){const _0x3359ea=_0x561f6f['_aiSource'],_0x5d4507=_0x3ec831(_0x561f6f),_0x184f64=_0x5f2dc5['batch']['operations']['length'];_0x55d577['detach']();const _0x1cc70a=this['markDeletion'](_0x55d577,null,{..._0x5d4507});_0x3359ea&&_0x4a9f82(_0x5f2dc5['batch'],_0x184f64,_0x3359ea,on(_0x1cc70a));}});}_setSuggestionRange(_0x11092e,_0x4a792b){const _0x55e365=_0x11092e['getFirstMarker']();this['_model']['change'](_0x401e9b=>{_0x401e9b['updateMarker'](_0x55e365,{'range':_0x4a792b});});}_addThreadToSuggestion(_0x501661){const _0x10124d=_0x501661['id'],_0x42782b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10124d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42782b,'threadId':_0x10124d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x239cf7=this['_commentsRepository']['getCommentThread'](_0x10124d);_0x239cf7['unbind']('isRemovable'),_0x239cf7['isRemovable']=!0x1,_0x501661['commentThread']=_0x239cf7;}_checkSuggestionCorrectness(_0x40bd85,_0xe72787,_0x5c54ee,_0x18f526){if(_0x40bd85['type']!=_0xe72787||_0x40bd85['subType']!=_0x5c54ee||_0x40bd85['creator']['id']!=_0x18f526)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f2b37('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x24d22c,_0x403765){const _0x253048=_0x24d22c['getFirstRange']();if(_0x403765['isEqual'](_0x253048))_0x24d22c['removeMarkers']();else{if(_0x253048['containsRange'](_0x403765)){const _0x4ba0c1=this['_model']['createPositionAt'](_0x403765['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x253048['start'],_0x4ba0c1));const _0x9b1b41=_0x3f17ac(),_0x47230c=_0x24d22c['creator']['id'],_0x2b8003=_0x24d22c['type']+':'+_0x24d22c['subType'];this['_setSuggestionData']({'id':_0x9b1b41,'type':_0x2b8003,'createdAt':new Date(),'authorId':_0x47230c,'data':_0x24d22c['data'],'attributes':_0x24d22c['attributes']});const _0x5db004=this['_model']['createPositionAt'](_0x403765['end']['parent'],'after'),_0x1e04f9=this['_model']['createRange'](_0x5db004,_0x253048['end']);this['_addSuggestionMarker'](_0x2b8003,_0x9b1b41,_0x47230c,_0x1e04f9);}else{if(_0x253048['containsPosition'](_0x403765['start'])){const _0x42b257=this['_model']['createPositionAt'](_0x403765['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x253048['start'],_0x42b257));}else{const _0x557df5=this['_model']['createPositionAt'](_0x403765['end']['parent'],'after');this['_setSuggestionRange'](_0x24d22c,this['_model']['createRange'](_0x557df5,_0x253048['end']));}}}}_rangeIsInLocalUserInsertion(_0x124741){for(const {suggestion:_0x961351,meta:_0x15fcde}of this['_findSuggestions'](_0x124741,'insertion')){if(!_0x15fcde['isOwn'])continue;const _0x44b0f4=_0x961351['getRanges']();for(const _0x3b9e78 of _0x44b0f4)if(!_0x124741['getDifference'](_0x3b9e78)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x3af303){return this['editor']['plugins']['get']('Users')['getUser'](_0x3af303);}_getExternalAuthor(_0x4fcf3f){const _0x37a39e=this['editor']['plugins']['get']('Users'),_0x590816=_0x3bfe73('external:'+_0x4fcf3f),_0x3bae6b=_0x37a39e['getUser'](_0x590816);return _0x3bae6b||_0x37a39e['addUser']({'id':_0x590816,'name':_0x4fcf3f});}_createSuggestion(_0x53a2e5,_0x3b9ad4,_0x12cd3a,_0xc13f3b,_0x31e73e,_0x447ea7){const _0x5e369b=this['_getAuthorFromId'](_0xc13f3b);if(!_0x5e369b)throw new _0x2f2b37('track-changes-user-not-found',this,{'authorId':_0xc13f3b,'suggestionId':_0x12cd3a});const _0x3acec0=this['_suggestionFactory']['buildSuggestion'](_0x53a2e5,_0x3b9ad4,_0x12cd3a,_0x5e369b,_0x31e73e,_0x115130=>{this['_updateSuggestionData'](_0x12cd3a,{'attributes':_0x115130});const _0x3db0a9=this['getSuggestion'](_0x12cd3a);this['_joinWithAdjacentSuggestions'](new Set([_0x3db0a9])),this['_refreshSuggestionsChain'](new Set([_0x3db0a9]));},_0x447ea7);return this['listenTo'](_0x3acec0,'accept',()=>{this['_updateSuggestionData'](_0x12cd3a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3acec0,'discard',()=>{this['_updateSuggestionData'](_0x12cd3a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x12cd3a,_0x3acec0),this['_suggestionState']['set'](_0x3acec0,'notReady'),_0x3acec0;}_breakSuggestionMarker(_0x24be73,_0x4bc6e7,_0x50871d){const _0x3513d1=_0x24be73['getFirstRange'](),_0x57d346=_0x3513d1['start'],_0x32c2f2=_0x3513d1['end'];this['_setSuggestionRange'](_0x24be73,this['_model']['createRange'](_0x57d346,_0x4bc6e7));const _0x46da81=_0x3f17ac(),_0xe841ae=_0x24be73['creator']['id'],_0x11031f=_0x24be73['type']+(_0x24be73['subType']?':'+_0x24be73['subType']:'');this['_setSuggestionData']({'id':_0x46da81,'type':_0x11031f,'createdAt':new Date(),'authorId':_0xe841ae,'originalSuggestionId':_0x24be73['_originalSuggestionId']||_0x24be73['id'],'attributes':_0x24be73['attributes'],'data':_0x24be73['data']});const _0x56429e=this['_getAttributeKey'](_0x24be73);('formatBlock'==_0x24be73['type']||_0x56429e&&this['_suggestionsConversion']['isBlockAttribute'](_0x56429e))&&(_0x50871d=this['_model']['createPositionBefore'](_0x50871d['parent'])),this['_addSuggestionMarker'](_0x11031f,_0x46da81,_0xe841ae,this['_model']['createRange'](_0x50871d,_0x32c2f2));}_findSuggestions(_0x3622a4,_0x20e9b0=null){const _0x172429=[],_0x4a52ce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3622a4)||(_0x3622a4=[_0x3622a4]);for(const _0x527c72 of this['getSuggestions']()){if(!_0x527c72['isInContent'])continue;if(_0x20e9b0&&_0x527c72['type']!=_0x20e9b0)continue;let _0x18e07e=!0x1;for(const _0x35c7cc of _0x527c72['getRanges']()){for(const _0xfc2b6e of _0x3622a4){const _0x57d3af=_0xfc2b6e['start']['isEqual'](_0x35c7cc['end'])||_0xfc2b6e['end']['isEqual'](_0x35c7cc['start']);if(_0x57d3af||_0xfc2b6e['getIntersection'](_0x35c7cc)){const _0x2b71b4=_0xfc2b6e['containsRange'](_0x35c7cc)&&ln(this['_model']['schema'],_0x35c7cc['start'],_0xfc2b6e),_0x29b5ae=_0x35c7cc['containsRange'](_0xfc2b6e)&&ln(this['_model']['schema'],_0xfc2b6e['start'],_0x35c7cc);_0x172429['push']({'suggestion':_0x527c72,'meta':{'isOwn':_0x4a52ce==_0x527c72['author'],'isNextTo':_0x57d3af,'isInsideObject':_0x2b71b4,'containsRangeInObject':_0x29b5ae}}),_0x18e07e=!0x0;break;}}if(_0x18e07e)break;}}return _0x172429;}_addSuggestionMarker(_0x106f34,_0x32a526,_0x34830a,_0x5e9aa7,_0x1d1c7b){this['_model']['change'](_0x2f57a3=>{let _0x5ea0d3='suggestion:'+_0x106f34+':'+_0x32a526+':'+_0x34830a;_0x1d1c7b&&(_0x5ea0d3=_0x5ea0d3+':'+_0x1d1c7b),_0x2f57a3['addMarker'](_0x5ea0d3,{'range':_0x5e9aa7,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x2d3a47){const _0x55b0d2=_0x2d3a47['previous'],_0x3f1553=_0x2d3a47['next'];_0x2d3a47['previous']=null,_0x2d3a47['next']=null,null!=_0x55b0d2&&_0x55b0d2['next']==_0x2d3a47&&(_0x55b0d2['next']=_0x3f1553),null!=_0x3f1553&&_0x3f1553['previous']==_0x2d3a47&&(_0x3f1553['previous']=_0x55b0d2),'ready'==this['_suggestionState']['get'](_0x2d3a47)&&(this['_suggestionState']['set'](_0x2d3a47,'removed'),this['fire']('suggestionUnloaded',_0x2d3a47,_0x55b0d2,_0x3f1553));}_setSuggestionData(_0x250ef5){const _0xc5eece=_0x250ef5['id'],_0x455740=this['addSuggestionData'](_0x250ef5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ee710=this['editor']['plugins']['get']('PendingActions'),_0x59263b=_0x455740['hasComments'],_0x14d523=_0x455740['subType']?_0x455740['type']+':'+_0x455740['subType']:_0x455740['type'],_0x9f645e=this['editor']['locale'],_0x596125=_0x4ee710['add'](Mt(_0x9f645e,'PENDING_ACTION_SUGGESTION')),_0x355b8b={'id':_0xc5eece,'type':_0x14d523,'hasComments':_0x59263b,'data':_0x250ef5['data']||null,'originalSuggestionId':_0x250ef5['originalSuggestionId']||null,'attributes':_0x455740['attributes']};this['_adapter']['addSuggestion'](_0x355b8b)['then'](_0x2dd96b=>{_0x455740['_saved']=!0x0,_0x4ee710['remove'](_0x596125),_0x2dd96b&&_0x2dd96b['createdAt']&&(this['_suggestions']['get'](_0xc5eece)['createdAt']=_0x2dd96b['createdAt']);})['catch'](_0x310c7e=>{throw _0x51fc13('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x455740['discard']();}),_0x455740['stopListening'](),this['_suggestions']['delete'](_0x455740['id']),this['_suggestionState']['delete'](_0x455740),_0x310c7e;});}return _0x455740;}_updateSuggestionData(_0x2e0a60,_0x3fb5b7){const _0x5e4ce0=this['editor']['plugins']['get']('PendingActions'),_0x4cf3f0=this['getSuggestion'](_0x2e0a60);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4cf3f0['_saved']){const _0x1488ab=_0x5e4ce0['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e0a60,_0x3fb5b7)['then'](()=>{_0x5e4ce0['remove'](_0x1488ab);});}else _0x4cf3f0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e0a60,_0x3fb5b7);});}}_getSuggestionData(_0x146113){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f2b37('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x146113);}_handleNewSuggestionMarker(_0x2523fe){const {id:_0x3308c0,type:_0x1ba81d,subType:_0x3d50d8,authorId:_0x105bad}=tt(_0x2523fe),_0x2c8d3a=this['_suggestions']['get'](_0x3308c0)||this['_createSuggestion'](_0x1ba81d,_0x3d50d8,_0x3308c0,_0x105bad,{});switch(this['_checkSuggestionCorrectness'](_0x2c8d3a,_0x1ba81d,_0x3d50d8,_0x105bad),this['_suggestionState']['get'](_0x2c8d3a)){case'notReady':this['_getSuggestionData'](_0x3308c0)['then'](_0x3bcf69=>{let _0x192903=Promise['resolve']();_0x3bcf69['hasComments']&&(_0x192903=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3308c0})),_0x192903['then'](()=>{this['addSuggestionData'](_0x3bcf69)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c8d3a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3308c0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c8d3a,'ready'),this['fire']('suggestionLoaded',_0x2c8d3a);break;case'ready':this['fire']('suggestionChanged',_0x2c8d3a);}return _0x2c8d3a['addMarkerName'](_0x2523fe),_0x2c8d3a;}_refreshSuggestionsChain(_0x43fe03){const _0x254a1c=Array['from'](_0x43fe03),_0x248577=_0x254a1c['filter'](_0x5c25d6=>'attribute'==_0x5c25d6['type']);this['_refreshAttributeSuggestionsChain'](_0x248577);const _0x18bd7a=_0x254a1c['filter'](_0x549aa6=>!_0x549aa6['isMultiRange']&&'attribute'!=_0x549aa6['type']),_0x3b8b40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a91dc=>!_0x5a91dc['isMultiRange']&&'attribute'!=_0x5a91dc['type']),_0xcc5a0a=_0x3b8b40['filter'](_0x42496f=>!_0x43fe03['has'](_0x42496f)),_0x155fc7=new Map(_0x3b8b40['map'](_0x1faa42=>[_0x1faa42,this['_suggestionFactory']['getSuggestionCallback'](_0x1faa42['type'],_0x1faa42['subType'],'chain')])),_0x5e1ef1=new Map(_0x3b8b40['map'](_0x4717bf=>[_0x4717bf,_0x4717bf['getFirstRange']()])),_0x4591f9=new Set(),_0x5c9b62=new Set();for(let _0x46daf6=0x0;_0x46daf6<_0x18bd7a['length'];_0x46daf6++)_0x13e0cc(_0x18bd7a[_0x46daf6],_0x18bd7a,_0x46daf6+0x1);for(let _0x421491=0x0;_0x421491<_0x18bd7a['length'];_0x421491++)_0x13e0cc(_0x18bd7a[_0x421491],_0xcc5a0a,0x0);const _0x394416=new Set();for(let _0x40d277=0x0;_0x40d277<_0x18bd7a['length'];_0x40d277++){const _0x421f5f=_0x18bd7a[_0x40d277];!_0x5c9b62['has'](_0x421f5f)&&_0x421f5f['previous']&&(_0x394416['add'](_0x421f5f['previous']),_0x421f5f['previous']['next']===_0x421f5f&&(_0x421f5f['previous']['next']=null),_0x421f5f['previous']=null),!_0x4591f9['has'](_0x421f5f)&&_0x421f5f['next']&&(_0x394416['add'](_0x421f5f['next']),_0x421f5f['next']['previous']===_0x421f5f&&(_0x421f5f['next']['previous']=null),_0x421f5f['next']=null);}function _0x13e0cc(_0x3a6459,_0x4a69d8,_0x1fda68){for(let _0x3baba1=_0x1fda68;_0x3baba1<_0x4a69d8['length'];_0x3baba1++){const _0x3818b4=_0x1b9916(_0x3a6459,_0x4a69d8[_0x3baba1]);_0x3818b4&&(_0x3818b4[0x0]['next']=_0x3818b4[0x1],_0x3818b4[0x1]['previous']=_0x3818b4[0x0],_0x4591f9['add'](_0x3818b4[0x0]),_0x5c9b62['add'](_0x3818b4[0x1]));}}function _0x1b9916(_0x15f09a,_0x4fb8a8){if(_0x15f09a['author']['id']!==_0x4fb8a8['author']['id'])return null;const _0x110f9a=_0x155fc7['get'](_0x15f09a)(_0x15f09a,_0x4fb8a8,_0x5e1ef1['get'](_0x15f09a),_0x5e1ef1['get'](_0x4fb8a8));return _0x110f9a&&_0x155fc7['get'](_0x4fb8a8)(_0x15f09a,_0x4fb8a8,_0x5e1ef1['get'](_0x15f09a),_0x5e1ef1['get'](_0x4fb8a8))?_0x110f9a[0x1]['commentThread']&&_0x110f9a[0x1]['commentThread']['length']?null:_0x110f9a:null;}_0x394416['size']&&this['_refreshSuggestionsChain'](_0x394416);}_refreshAttributeSuggestionsChain(_0xea0e8c){if(0x0==_0xea0e8c['length'])return;const _0x5a544a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c17ce=>'attribute'==_0x5c17ce['type']&&_0x5c17ce['_isDataLoaded']),_0x445276=[],_0x15d152=new Map();for(const _0x4c2090 of _0x5a544a){const _0x599889=_0x3bfe73(_0x4c2090['attributes']);_0x15d152['has'](_0x599889)||(_0x15d152['set'](_0x599889,_0x445276['length']),_0x445276['push']([])),_0x445276[_0x15d152['get'](_0x599889)]['push'](_0x4c2090);}!(function(){_0x445276['sort']((_0x3dba59,_0x345edd)=>{const _0x4fae43=_0x3dba59[0x0]['createdAt'],_0xe05f83=_0x345edd[0x0]['createdAt'];return _0x4fae43==_0xe05f83?_0x3dba59[0x0]['attributes']['groupId']<_0x345edd[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fae43<_0xe05f83?-0x1:0x1;});for(const _0x2b8739 of _0x445276)_0x2b8739['sort']((_0x1804e0,_0x36e232)=>_0x1804e0['id']<_0x36e232['id']?-0x1:0x1);}());for(let _0xc8b89d=0x0;_0xc8b89d<_0x445276['length'];_0xc8b89d++){if(0x0==_0x445276[_0xc8b89d]['length'])continue;const _0x61f8aa=[];for(let _0x125c6f=_0xc8b89d+0x1;_0x125c6f<_0x445276['length'];_0x125c6f++)0x0!=_0x445276[_0x125c6f]['length']&&_0x189da6(_0x445276[_0xc8b89d],_0x445276[_0x125c6f])&&_0x61f8aa['push'](_0x125c6f);for(const _0x139de2 of _0x61f8aa)_0x445276[_0xc8b89d]=_0x445276[_0xc8b89d]['concat'](_0x445276[_0x139de2]),_0x445276[_0x139de2]=[];}for(const _0x5df63c of _0x445276)for(let _0x3e1732=0x0;_0x3e1732<_0x5df63c['length'];_0x3e1732++){const _0x371547=_0x5df63c[_0x3e1732+0x1]||null;_0x5df63c[_0x3e1732]['next']!==_0x371547&&(_0x5df63c[_0x3e1732]['next']=_0x371547);}for(const _0x2b0225 of _0x445276)for(let _0x1a9ecc=0x0;_0x1a9ecc<_0x2b0225['length'];_0x1a9ecc++){const _0x7f766b=_0x2b0225[_0x1a9ecc-0x1]||null;_0x2b0225[_0x1a9ecc]['previous']!==_0x7f766b&&(_0x2b0225[_0x1a9ecc]['previous']=_0x7f766b);}function _0x189da6(_0x5a26b2,_0x9fbaa9){if(_0x5a26b2[0x0]['attributes']['groupId']!==_0x9fbaa9[0x0]['attributes']['groupId']&&_0x5a26b2[0x0]['author']!==_0x9fbaa9[0x0]['author'])return!0x1;if(!function(_0x4837e5,_0x64ccff){return!_0x4837e5['hasComments']&&!_0x64ccff['hasComments']||(!_0x4837e5['hasComments']||!_0x64ccff['hasComments'])&&(!!(_0x4837e5['hasComments']&&_0x64ccff['createdAt']<_0x4837e5['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x64ccff['hasComments']&&_0x4837e5['createdAt']<_0x64ccff['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x5a26b2[0x0],_0x9fbaa9[0x0]))return!0x1;const _0x21a110=lt(_0x5a26b2[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d72a3=lt(_0x9fbaa9[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x21a110,_0x4d72a3)&&(_0x5a26b2[0x0]['attributes']['groupId']==_0x9fbaa9[0x0]['attributes']['groupId']||_0x5a26b2[0x0]['attributes']['trackingSessionId']===_0x9fbaa9[0x0]['attributes']['trackingSessionId']&&(!!_0x5a26b2['every'](_0x45cd0a=>_0x9fbaa9['some'](_0x27004c=>_0x45cd0a['getFirstRange']()['isEqual'](_0x27004c['getFirstRange']())))&&_0x9fbaa9['every'](_0x25f050=>_0x5a26b2['some'](_0x3ebeea=>_0x25f050['getFirstRange']()['isEqual'](_0x3ebeea['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x563416){const _0xb83d6f=Array['from'](_0x563416),_0x4c3812=this['getSuggestions']({'skipNotAttached':!0x0}),_0x328f8b=_0x4c3812['filter'](_0x28a753=>!_0x563416['has'](_0x28a753)),_0x57a496=new Map(_0xb83d6f['map'](_0x45f4d1=>[_0x45f4d1,this['_suggestionFactory']['getSuggestionCallback'](_0x45f4d1['type'],_0x45f4d1['subType'],'join')])),_0x56b9b8=new Map(_0x4c3812['map'](_0x4a7849=>[_0x4a7849,_0x4a7849['getRanges']()]));for(let _0x105f01=0x0;_0x105f01<_0xb83d6f['length'];_0x105f01++)if(_0x90c1c6(this,_0xb83d6f[_0x105f01],_0xb83d6f,_0x105f01+0x1))return!0x0;for(let _0x3539e1=0x0;_0x3539e1<_0xb83d6f['length'];_0x3539e1++)if(_0x90c1c6(this,_0xb83d6f[_0x3539e1],_0x328f8b,0x0))return!0x0;return!0x1;function _0x90c1c6(_0x232336,_0xf107b,_0x2dd5c5,_0x259db2){for(let _0xc627c2=_0x259db2;_0xc627c2<_0x2dd5c5['length'];_0xc627c2++){const _0x43ea5c=_0x2dd5c5[_0xc627c2];if(_0x43ea5c['type']!==_0xf107b['type']||_0x43ea5c['author']['id']!==_0xf107b['author']['id']||_0x43ea5c['subType']!==_0xf107b['subType'])continue;if(!pn(_0xf107b,_0x43ea5c))continue;if('attribute'==_0xf107b['type']&&_0xf107b['data']['oldValue']!=_0x43ea5c['data']['oldValue'])continue;if('attribute'==_0xf107b['type']&&_0x232336['_suggestionsConversion']['isBlockAttribute'](_0xf107b['data']['key']))continue;if('formatBlock'==_0xf107b['type']){const _0x1beaa8=_0x232336['editor']['model'],_0x26fd5d=_0xf107b['getContainedElement']();if(_0x26fd5d&&(_0x1beaa8['schema']['isObject'](_0x26fd5d)||_0x1beaa8['schema']['isLimit'](_0x26fd5d)))continue;}const _0x140185=_0x57a496['get'](_0xf107b),_0x49b372=_0x56b9b8['get'](_0xf107b),_0x1cb371=_0x56b9b8['get'](_0x43ea5c),_0x3d7a07=_0xf107b['commentThread']&&_0xf107b['commentThread']['length'],_0x3ef689=_0x43ea5c['commentThread']&&_0x43ea5c['commentThread']['length'];if(!_0x3d7a07&&_0x140185(_0x1cb371,_0x49b372))return _0x232336['_joinSuggestions'](_0x43ea5c,_0xf107b),_0x56b9b8['delete'](_0xf107b),!0x0;if(!_0x3ef689&&_0x140185(_0x49b372,_0x1cb371))return _0x232336['_joinSuggestions'](_0xf107b,_0x43ea5c),_0x56b9b8['delete'](_0x43ea5c),!0x0;}return!0x1;}}_joinSuggestions(_0x4bc8b5,_0x541b51){if(_0x4bc8b5['isMultiRange']){for(const _0x29b5c5 of _0x541b51['getRanges']())_0x4bc8b5['addRange'](_0x29b5c5);}else{const _0x1d44ea=_0x541b51['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4bc8b5,this['_model']['createRange'](_0x4bc8b5['getFirstRange']()['start'],_0x1d44ea));}_0x541b51['removeMarkers']();}_getMarkerAnnouncementText(_0x137bcf,_0xa5859,_0x1a5928){const _0x59d8f1=_0x137bcf['startsWith']('format')||_0x137bcf['startsWith']('attribute')?'FORMATTING':_0x137bcf['toUpperCase']();return Mt(this['editor']['locale'],_0xa5859+'_'+_0x59d8f1+'_SUGGESTION_ANNOUNCEMENT',_0x1a5928);}_initAriaMarkerChangeAnnouncements(){const _0xfe13b1=this['editor'];if(!_0xfe13b1['ui'])return;const {ariaLiveAnnouncer:_0x13e01a}=_0xfe13b1['ui'];et(this['_model'],({left:_0x517ec5,entered:_0x4f55e1})=>{for(const _0x476aa4 of _0x517ec5){const {group:_0x22279a,type:_0x53ece0}=tt(_0x476aa4['name']);if('suggestion'===_0x22279a){_0x13e01a['announce'](this['_getMarkerAnnouncementText'](_0x53ece0,'LEAVE'));break;}}for(const _0x429e42 of _0x4f55e1){const {group:_0x189482,type:_0xf7583b}=tt(_0x429e42['name']);if('suggestion'===_0x189482){_0x13e01a['announce'](this['_getMarkerAnnouncementText'](_0xf7583b,'ENTER',_0x4c674e(_0x3061c5)));break;}}});}_processAttributeChanges(_0x541614){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c6b33=this['editor'],_0x2d261c=_0x5c6b33['model']['document']['differ']['getChanges']();if(0x0==_0x2d261c['length'])return!0x1;const _0xf0fb55=[],_0x266dab=_0x2d261c['filter'](_0x4fee1e=>'attribute'==_0x4fee1e['type']),_0x299fe1=_0x2d261c['filter'](_0x5acffa=>'insert'==_0x5acffa['type']&&'$text'!=_0x5acffa['name']),_0x132374=_0x2d261c['filter'](_0x220ba7=>'remove'==_0x220ba7['type']&&'$text'!=_0x220ba7['name']);for(const _0xe3d057 of _0x266dab)_0xf0fb55['push']({'key':_0xe3d057['attributeKey'],'newValue':_0xe3d057['attributeNewValue'],'oldValue':_0xe3d057['attributeOldValue'],'range':En(_0xe3d057['range'],_0x5c6b33['model'])});for(const _0x4d70f2 of _0x299fe1){const _0x4c7e8e=_0x132374['find'](_0x2739ac=>_0x2739ac['position']['isEqual'](_0x4d70f2['position']));_0x4c7e8e&&_0xf0fb55['push']({'key':sn,'newValue':_0x4d70f2['name'],'oldValue':_0x4c7e8e['name'],'range':_0x5c6b33['model']['createRangeOn'](_0x4d70f2['position']['nodeAfter'])});}return 0x0!=_0xf0fb55['length']&&this['_reduceExistingSuggestions'](_0x541614,_0xf0fb55);}_processAttributeSuggestions(_0x5a3753){let _0x1d7fae=!0x1;const _0x51cfb8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ae695=>_0x4ae695['data']['newRange']&&_0x4ae695['name']['startsWith']('suggestion:attribute:'));for(const _0x43b63d of _0x51cfb8){const {subType:_0x1acc25,id:_0x44fd96}=tt(_0x43b63d['name']),_0x24fbd2=_0x1acc25['split']('|')[0x0];for(const _0x2e6349 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2e6349['id']!=_0x44fd96&&'attribute'==_0x2e6349['type']&&_0x2e6349['data']&&_0x2e6349['data']['key']==_0x24fbd2&&_0x2e6349['getFirstRange']()['isIntersecting'](_0x43b63d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2e6349,_0x43b63d['data']['newRange'],_0x5a3753),_0x1d7fae=!0x0);}return _0x1d7fae;}recordAttributeChanges(_0x1029e5){this['_recordAttributeSuggestions']=!0x0,_0x1029e5();}_reduceExistingSuggestions(_0x287fe1,_0x3591e6){if(0x0==_0x3591e6['length'])return!0x1;let _0x88a577=!0x1;for(const _0x3c48f1 of _0x3591e6){const _0x387af8=this['_findSuggestions'](_0x3c48f1['range'],'attribute')['filter'](_0xdc47c1=>!_0xdc47c1['meta']['isNextTo'])['map'](_0x3d8f6b=>_0x3d8f6b['suggestion']),_0x15370b=_0x3bfe73({'newValue':_0x3c48f1['newValue']});_0x387af8['filter'](_0x581660=>{const [_0x12c08d,_0x2a8ee3]=_0x581660['subType']['split']('|');return _0x12c08d==_0x3c48f1['key']&&_0x2a8ee3!=_0x15370b;})['forEach'](_0x46dd07=>{this['_reduceSuggestionAttributeRange'](_0x46dd07,_0x3c48f1['range'],_0x287fe1),_0x88a577=!0x0;});}return _0x88a577;}_reduceSuggestionAttributeRange(_0x3e8f46,_0x5c9fdc,_0x40053c){const _0x58c91c=_0x3e8f46['getFirstRange']()['getDifference'](_0x5c9fdc);0x0!==_0x58c91c['length']?0x1!==_0x58c91c['length']?this['_breakSuggestionMarker'](_0x3e8f46,_0x5c9fdc['start'],_0x5c9fdc['end']):this['_setSuggestionRange'](_0x3e8f46,_0x58c91c[0x0]):_0x40053c['removeMarker'](_0x3e8f46['getFirstMarker']());}},cn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2f1412){this['_editor']=_0x2f1412,this['_model']=_0x2f1412['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x26d912,_0x4bc832,_0xbdd53f,_0xbc1995,_0x3d4184,_0x1d921c,_0x15a3e4){return new St(this['_model'],{'type':_0x26d912,'subType':_0x4bc832,'id':_0xbdd53f,'originalSuggestionId':_0x15a3e4,'author':_0xbc1995,'creator':_0xbc1995,'attributes':_0x3d4184,'onAttributesChange':_0x1d921c,'onAccept':(..._0x2b8076)=>this['getSuggestionCallback'](_0x26d912,_0x4bc832,'accept')(..._0x2b8076),'onDiscard':(..._0x2bab00)=>this['getSuggestionCallback'](_0x26d912,_0x4bc832,'discard')(..._0x2bab00)});}registerCustomCallback(_0x34c550,_0x1330b6,_0xce222d,_0x3a700f){const _0xcc738c=_0x34c550+':'+_0x1330b6+':'+_0xce222d;this['_customCallbacks']['set'](_0xcc738c,_0x3a700f);}getSuggestionCallback(_0x1ce178,_0xf9574e,_0x325045){const _0x5ee410=_0x1ce178+':'+_0xf9574e+':'+_0x325045;return this['_customCallbacks']['get'](_0x5ee410)||this['_defaultCallbacks']['get'](_0x1ce178+':'+_0x325045);}_registerDefaultCallbacks(){const _0x4fa86e=()=>!0x1,_0x446082=_0x1d22ec=>{_0x1d22ec['sort']((_0x2da085,_0x58f61a)=>_0x2da085['start']['isBefore'](_0x58f61a['start'])?0x1:-0x1),this['_model']['change'](_0xadb012=>{for(const _0x2e240d of _0x1d22ec){let _0x121149;_0x121149=_0x2e240d['end']['isAtEnd']&&_0x2e240d['end']['parent']==_0x2e240d['start']['nodeAfter']?_0xadb012['createSelection'](_0x2e240d['start']['nodeAfter'],'on'):_0xadb012['createSelection'](_0x2e240d),this['_model']['deleteContent'](_0x121149,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x187530=(_0x549139,_0x328c50)=>{_0x328c50&&this['_model']['change'](_0x40a193=>{const {commandName:_0x3a3735,commandParams:_0x341275=[]}=_0x328c50,_0x18e32e=_0x549139['map'](_0x1abff2=>(un(_0x1abff2)&&(_0x1abff2=this['_model']['createRange'](_0x1abff2['end'])),_0x1abff2))['filter'](_0x2a7f86=>'$graveyard'!==_0x2a7f86['root']['rootName']);if(_0x18e32e['length']<0x1)return;const _0x337eeb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2fa6c2=>rt['fromRange'](_0x2fa6c2));_0x40a193['setSelection'](_0x18e32e);for(const _0x80341 of this['_editor']['commands']['commands']())_0x80341['refresh']();_0x341275['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a3735,..._0x341275);const _0xa97163=_0x337eeb['filter'](_0x4e507d=>'$graveyard'!=_0x4e507d['root']['rootName']);_0xa97163['length']>0x0&&_0x40a193['setSelection'](_0xa97163);for(const _0x22a39b of _0x337eeb)_0x22a39b['detach']();});},_0xb994c1=(_0x30df78,_0x566145)=>0x1==_0x30df78['length']&&0x1==_0x566145['length']&&_0x30df78[0x0]['end']['isEqual'](_0x566145[0x0]['start']),_0x57a81b=(_0x44996c,_0x1160c8,_0x22a6e0,_0x49416b)=>_n(_0x44996c,_0x1160c8,_0x22a6e0,_0x49416b)?[_0x44996c,_0x1160c8]:_n(_0x1160c8,_0x44996c,_0x49416b,_0x22a6e0)?[_0x1160c8,_0x44996c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4fa86e),this['_defaultCallbacks']['set']('insertion:discard',_0x446082),this['_defaultCallbacks']['set']('insertion:join',_0xb994c1),this['_defaultCallbacks']['set']('insertion:chain',_0x57a81b),this['_defaultCallbacks']['set']('deletion:accept',_0x446082),this['_defaultCallbacks']['set']('deletion:discard',_0x4fa86e),this['_defaultCallbacks']['set']('deletion:join',_0xb994c1),this['_defaultCallbacks']['set']('deletion:chain',_0x57a81b),this['_defaultCallbacks']['set']('formatInline:accept',_0x187530),this['_defaultCallbacks']['set']('formatInline:discard',_0x4fa86e),this['_defaultCallbacks']['set']('formatInline:join',_0xb994c1),this['_defaultCallbacks']['set']('formatInline:chain',_0x4fa86e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x187530),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4fa86e),this['_defaultCallbacks']['set']('formatBlock:join',_0xb994c1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4fa86e),this['_defaultCallbacks']['set']('attribute:accept',_0x4fa86e),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d440b,_0x10e55c)=>{if(!_0x10e55c)return;const _0x346bea=this['_editor']['plugins']['get'](_0x3af144);this['_model']['change'](_0x269d3=>{if('$elementName'==_0x10e55c['key'])for(const _0x82caf of _0x2d440b){const _0x38f01c=_0x82caf['start']['nodeAfter'],_0x31ab5b=_0x10e55c['oldValue'];_0x269d3['rename'](_0x38f01c,_0x31ab5b);}else{if(_0x346bea['isBlockAttribute'](_0x10e55c['key'])){for(const _0x50f78a of _0x2d440b)void 0x0!==_0x10e55c['oldValue']?_0x269d3['setAttribute'](_0x10e55c['key'],_0x10e55c['oldValue'],_0x50f78a['start']['nodeAfter']):_0x269d3['removeAttribute'](_0x10e55c['key'],_0x50f78a['start']['nodeAfter']);}else{for(const _0x3bb809 of _0x2d440b)_0x10e55c['oldValue']?_0x269d3['setAttribute'](_0x10e55c['key'],_0x10e55c['oldValue'],_0x3bb809):_0x269d3['removeAttribute'](_0x10e55c['key'],_0x3bb809);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb994c1);}};function ln(_0x4faab2,_0x2cc672,_0xa73715){for(const _0x5efc30 of _0x2cc672['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5efc30['root']==_0x5efc30)return!0x1;if(!_0xa73715['containsItem'](_0x5efc30))return!0x1;if(_0x4faab2['isObject'](_0x5efc30)||_0x4faab2['isLimit'](_0x5efc30))return!0x0;}return!0x1;}function un(_0x22f7b1){return _0x22f7b1['end']['parent']==_0x22f7b1['start']['nodeAfter']&&_0x22f7b1['end']['isAtStart'];}function dn(_0x2dec2b,_0x1deadf,_0x522a3a,_0x210bd1){const _0x38bbbc=_0x4bae50=>!_0x4bae50['item']['is']('$textProxy')&&!_0x210bd1['isObject'](_0x4bae50['item']),_0x3f0578=_0x2dec2b['start']['getLastMatchingPosition'](_0x38bbbc),_0x417a3d=_0x2dec2b['end']['getLastMatchingPosition'](_0x38bbbc,{'direction':'backward'});return(!_0x2dec2b['start']['isEqual'](_0x3f0578)||!_0x2dec2b['end']['isEqual'](_0x417a3d))&&(_0x3f0578['isBefore'](_0x417a3d)?_0x522a3a['updateMarker'](_0x1deadf,{'range':_0x522a3a['createRange'](_0x3f0578,_0x417a3d)}):_0x522a3a['removeMarker'](_0x1deadf),!0x0);}function hn(_0x21d000){return _0x3bfe73(_0x21d000);}function gn(_0x1d14b4){const _0x56bddd=_0x1d14b4['start']['nodeAfter'];return _0x56bddd&&_0x56bddd['is']('element');}function fn(_0x1e25bc){return un(_0x1e25bc)||function(_0x39355f){return _0x39355f['start']['parent']==_0x39355f['end']['nodeBefore']&&_0x39355f['start']['isAtEnd'];}(_0x1e25bc);}function mn(_0x562d22,_0xf6e354){try{const _0xdd92f2=_0x562d22['getRange']();for(const _0xe73cc of _0xf6e354)if(_0x562d22!==_0xe73cc&&_0xdd92f2&&_0xdd92f2['isIntersecting'](_0xe73cc['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function En(_0x19a348,_0x3b8ed3){return null==_0x19a348['end']['nodeBefore']&&_0x19a348['end']['parent']==_0x19a348['start']['nodeAfter']?Tn(_0x19a348['start']['nodeAfter'],_0x3b8ed3):_0x19a348;}function Tn(_0xd78569,_0x4a3a53){const _0xc2dce3=_0x4a3a53['schema']['isObject'](_0xd78569)||_0x4a3a53['schema']['isSelectable'](_0xd78569);return _0x4a3a53['createRange'](_0x4a3a53['createPositionAt'](_0xd78569,'before'),_0xc2dce3?_0x4a3a53['createPositionAfter'](_0xd78569):_0x4a3a53['createPositionAt'](_0xd78569,'end'));}function _n(_0x1dd053,_0x3b4962,_0x4da3b0,_0x1739d1){return!!pn(_0x1dd053,_0x3b4962)&&_0x4da3b0['end']['isEqual'](_0x1739d1['start']);}function pn(_0x52fb03,_0x114909){if(!_0x52fb03['_isDataLoaded']||!_0x114909['_isDataLoaded'])return!0x1;const _0x390728=new Set(Object['keys'](_0x52fb03['attributes'])),_0x3d012f=new Set(Object['keys'](_0x114909['attributes']));if(_0x390728['delete']('groupId'),_0x3d012f['delete']('groupId'),0x0==_0x390728['size']&&0x0==_0x3d012f['size'])return!0x0;if(_0x390728['size']!=_0x3d012f['size'])return!0x1;const _0x5b02e5={..._0x52fb03['attributes']},_0x17d3f9={..._0x114909['attributes']};return delete _0x5b02e5['groupId'],delete _0x17d3f9['groupId'],JSON['stringify'](_0x5b02e5)==JSON['stringify'](_0x17d3f9);}function Ln(_0x216008,_0x410cc1){const _0x138b80=In(_0x216008['attributes']),_0xe224a0=In(_0x410cc1);if(!_0x216008['_isDataLoaded'])return!0x1;if(!ct(_0x138b80['@ai'],_0xe224a0['@ai']))return!0x1;for(const _0x34074d of Object['keys'](_0xe224a0))if(!ct(_0x138b80[_0x34074d],_0xe224a0[_0x34074d]))return!0x1;return!0x0;}function In(_0x21dd5c){const _0x33f3ef=Object['assign']({},_0x21dd5c);return delete _0x33f3ef['skipNestingCheck'],delete _0x33f3ef['tablePasteChainId'],_0x33f3ef;}function An(_0x499748){return _0x499748['split']('|')[0x0];}const bn=/* #__PURE__ -- @preserve */
26
+ _0xcf2467();var kn=class extends bn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2f1913,_0x3b8bad,_0x2ddc0c,_0xb28fec){super(),this['model']=_0x3b8bad,this['view']=_0x2ddc0c,this['commentThreadController']=_0xb28fec,this['_editor']=_0x2f1913,this['_acceptCommand']=_0x2f1913['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f1913['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb0d2c9,_0x355ff6)=>_0xb0d2c9||_0x355ff6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x53df6c=>_0x53df6c&&this['_editor']['model']['canEditAt'](_0x3b8bad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2b3e14=>_0x2b3e14&&this['_editor']['model']['canEditAt'](_0x3b8bad['getRanges']())),this['_pendingAction']=null,_0x2ddc0c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2ddc0c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2ddc0c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2ddc0c,'change:isDirty',()=>{_0x2ddc0c['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 _0x57244e=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x57244e);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x14c3e1{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12e7e4,_0x15a5ab,_0x33f582,_0x5a7e79){super(_0x12e7e4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bf644(_0x12e7e4,Mt(_0x12e7e4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x15a5ab['authoredAt']),this['bind']('authoredAt')['to'](_0x15a5ab),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',_0x15a5ab,'authoredAt',this,'descriptionParts',(_0x2c842c,_0x384252,_0x31160f)=>{const _0x97d967=_0x31160f['map'](_0x4eb3bc=>Lt(_0x4eb3bc['content']))['join']('.\x20')+'.',_0x558851=_0x15a5ab['aiSource']&&'author'===_0x5a7e79['showAISource']?_0x5a7e79['aiAuthor']['name']:_0x15a5ab['author']['name'],_0x591971=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2c842c-0x1,_0x558851,_0x384252?_0x5a7e79['formatDateTime'](_0x384252):'',new DOMParser()['parseFromString'](_0x97d967,'text/html')['body']['textContent']]);return _0x15a5ab['aiSource']&&'pill'===_0x5a7e79['showAISource']?_0x591971+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x591971;}),this['focusables']=new _0x1a2b02(),this['focusTracker']=new _0x43effe(),this['keystrokes']=new _0x1ba41c(),this['focusCycler']=new _0x34bd86({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54627f=>_0x54627f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x15a5ab,this['_localUser']=_0x33f582,this['_config']=_0x5a7e79,_0x5a7e79['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x462de1(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x1c5cd8}=this['_config'];this['commentsListView']=new _0x1c5cd8(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',_0x523a5d=>_0x523a5d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1fc54d,_0x1110c1)=>_0x1fc54d||!!_0x1110c1);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1f9215}=this['_config'],_0x2c97df=new _0x1f9215(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x757d7e=_0x2c97df['commentInputView'];return _0x2c97df['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x757d7e,'value',(_0x5b5bcd,_0x223bcf,_0x255b2f)=>!!_0x255b2f||_0x5b5bcd&&!_0x223bcf),_0x757d7e['on']('submit',(_0x449339,_0x49257d)=>{this['fire']('addComment',_0x49257d),_0x757d7e['editor']['setData']('');}),_0x757d7e['on']('cancel',()=>this['focus']()),_0x757d7e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c97df;}},Rn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x332ae8,_0x245017,_0x36237c,_0x4a370d){super(_0x332ae8,_0x245017,_0x36237c,_0x4a370d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d1d7c=>_0x2d1d7c&&_0x2d1d7c[0x0]?_0x2d1d7c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1572aa,_0x19b608)=>{let _0x1861c4='';for(const _0x3fc8e8 of _0x1572aa)_0x1861c4+='<p>'+Lt(_0x3fc8e8['content'],_0x3fc8e8['color'])+'</p>';return _0x19b608?_0x1861c4:nt(_0x1861c4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4a370d['SuggestionView'](_0x332ae8,_0x245017,{'formatDateTime':_0x4a370d['formatDateTime'],'showAISource':_0x4a370d['showAISource'],'aiAuthor':_0x4a370d['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 _0x2af1f5=this['bindTemplate'],_0x4e3290=[this['suggestionView']];return this['commentsListView']&&_0x4e3290['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4e3290['push'](this['commentThreadInputView']),_0x4e3290['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2af1f5['if']('isActive','ck-suggestion-wrapper--active'),_0x2af1f5['to']('type',_0x4cff60=>'ck-suggestion-'+_0x4cff60),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':_0x2af1f5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4e3290};}['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));}},yn=class extends _0x14c3e1{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1f8880,_0x4472b0,_0x4b9fae){super(_0x1f8880),this['_model']=_0x4472b0,this['_config']=_0x4b9fae,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4472b0),this['acceptButton']=this['_createButton'](Mt(_0x1f8880,'Accept\x20suggestion'),_0x115b3b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x1f8880,'Discard\x20suggestion'),_0x1268e3,'ck-suggestion--discard','discardSuggestion','sw');const _0x134f47=!!_0x4472b0['aiSource']&&'author'===_0x4b9fae['showAISource'],_0x4bddda=_0x134f47?this['_createAIUser'](_0x4b9fae['aiAuthor']):_0x4472b0['author'],_0x184109=_0x134f47&&!_0x4b9fae['aiAuthor']['avatar']?_0x46eb6d:void 0x0;this['userView']=new _0x3bcaa8(_0x1f8880,_0x4bddda,this['getUserViewNotificationText'](),_0x184109),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1a2b02([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x43effe(),this['keystrokes']=new _0x1ba41c(),this['focusCycler']=new _0x34bd86({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1aab55=>_0x1aab55['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x42fb6b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x42fb6b['innerHTML']=this['description'],this['on']('change:description',(_0x46df89,_0x112573,_0x263caa)=>{_0x42fb6b['innerHTML']=_0x263caa;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3686f1=this['bindTemplate'],_0x4aadf6=[{'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':_0x3686f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3686f1['to']('authoredAt',_0x550bc3=>this['_config']['formatDateTime'](_0x550bc3))}]}]},{'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']&&_0x4aadf6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0xfe6695=new _0x5893a8(this['locale']);_0xfe6695['set']({'icon':_0x546db2,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4aadf6['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0xfe6695]});}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':_0x4aadf6}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2eeba0){return new _0x279dde({'id':'ck-ai-author','name':_0x2eeba0['name'],'avatar':_0x2eeba0['avatar'],'color':new _0x19eac1(0x0)});}_createButton(_0x4d121e,_0x3712a9,_0x233fce,_0x44fb42,_0x4ab2c7){const _0x2a96d6=new _0x316114(this['locale']);return _0x2a96d6['set']({'label':_0x4d121e,'icon':_0x3712a9,'tooltip':!0x0,'tooltipPosition':_0x4ab2c7}),_0x2a96d6['extendTemplate']({'attributes':{'class':_0x233fce}}),_0x2a96d6['on']('execute',()=>{this['fire'](_0x44fb42,this['_model']['id']);}),_0x2a96d6;}_setupKeyboardNavigation(){const _0x1c095d=this['element'];this['keystrokes']['listenTo'](_0x1c095d);for(const _0x1c4c50 of this['focusables'])this['focusTracker']['add'](_0x1c4c50['element']),this['keystrokes']['listenTo'](_0x1c4c50['element']);this['keystrokes']['set']('enter',(_0x3cd0a4,_0x1aaf5e)=>{_0x1c095d===_0x3cd0a4['target']&&(this['focusCycler']['focusFirst'](),_0x1aaf5e());}),this['keystrokes']['set']('esc',(_0x5269c3,_0x36d3d3)=>{_0x1c095d!==_0x5269c3['target']&&(this['focus'](),_0x36d3d3());});}},Nn=class extends _0x18ca51{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[an,_0x7b02ea,_0x460b74,_0x49d8ef,_0xac8168];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e1e37){super(_0x5e1e37),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5378b3=this['editor']['config'];_0x5378b3['define']('trackChanges.SuggestionThreadView',Rn),_0x5378b3['define']('trackChanges.SuggestionView',yn),_0x5378b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5378b3['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x57985c,_0x85df03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x213cb1,_0x164f6a]of this['_handleControllerBuffer']){const _0x3a7dbf=this['_suggestionToController']['has'](_0x213cb1);_0x3a7dbf||_0x164f6a?_0x3a7dbf&&_0x164f6a&&this['_destroyController'](_0x213cb1):this['_initializeController'](_0x213cb1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xac8168)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57985c,_0x85df03);}init(){const _0x581c90=this['editor'],_0x303fc1=_0x581c90['plugins']['get'](an),_0x4824e7=_0x581c90['plugins']['get'](_0x49d8ef),_0x9c3b8b=_0x581c90['plugins']['get'](_0xac8168),_0x1a6cb1=_0x581c90['plugins']['get'](_0x460b74);this['_addUIComponentsToFactory'](),_0x9c3b8b['addSourceCollector'](()=>{const _0x259586=[];for(const [_0x3475d3,_0x386ea1]of Array['from'](this['_suggestionToController'])){const _0xe5bb47=_0x3475d3['getAllAdjacentSuggestions'](),_0x1f2e34=[];for(const _0x222852 of _0xe5bb47){if(!_0x222852['isInContent'])continue;if(_0x222852['isMultiRange']){_0x1f2e34['push'](..._0x222852['getRanges']());continue;}const _0x858fa8=_0x222852['getFirstRange']();if(_0x1f2e34['length']>0x0){const _0x2fcbce=_0x1f2e34[0x0]['getJoined'](_0x858fa8);if(_0x2fcbce){_0x1f2e34[0x0]=_0x2fcbce;continue;}}_0x1f2e34['push'](_0x858fa8);}_0x259586['push']([_0x386ea1['view'],_0x1f2e34]);}return _0x259586;}),this['listenTo'](_0x303fc1,'suggestionLoaded',(_0x48283a,_0xcd35c)=>{this['listenTo'](_0xcd35c,'change:previous',(_0x46f518,_0x30ed69,_0x46976f,_0x5303a6)=>{_0xcd35c['isInContent']&&(null==_0x46976f?(this['_updateController'](_0x5303a6['head']),this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x1)):(this['_updateController'](_0x46976f['head']),null==_0x5303a6&&this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x0)));}),null!==_0xcd35c['previous']?this['_updateController'](_0xcd35c['head']):this['_handleSuggestionControllerDelayed'](_0xcd35c,!0x1);}),this['listenTo'](_0x303fc1,'suggestionUnloaded',(_0x41f7be,_0xe8edc0,_0x4f1cee)=>{this['stopListening'](_0xe8edc0,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe8edc0),this['_suggestionToController']['has'](_0xe8edc0)&&this['_destroyController'](_0xe8edc0),_0x4f1cee&&this['_updateController'](_0x4f1cee['head']);}),this['listenTo'](_0x303fc1,'suggestionChanged',(_0x30146b,_0x55bab7)=>{this['_updateController'](_0x55bab7);}),this['listenTo'](_0x4824e7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a6cb1,'addComment',(_0x5935df,{threadId:_0x4ed5d8,isFromAdapter:_0x25d35b})=>{if(_0x25d35b||!_0x303fc1['hasSuggestion'](_0x4ed5d8))return;const _0x421fce=_0x303fc1['getSuggestion'](_0x4ed5d8);this['_suggestionToController']['get'](_0x421fce)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x1e4bfd=[this['editor']];for(const _0x1df87a of _0x1e4bfd){let _0x5121f5;for(const _0x751d06 in _0x1df87a){const _0xeafcea=_0x751d06,_0x20d6a4=_0x1df87a[_0xeafcea];if('trackChangesLicenseKeyValid'==_0x20d6a4||'trackChangesLicenseKeyInvalid'==_0x20d6a4||'trackChangesLicenseKeyExpired'==_0x20d6a4||'trackChangesLicenseKeyDomainLimit'==_0x20d6a4||'trackChangesLicenseKeyNotAllowed'==_0x20d6a4||'trackChangesLicenseKeyEvaluationLimit'==_0x20d6a4||'trackChangesLicenseKeyUsageLimit'==_0x20d6a4){delete _0x1df87a[_0xeafcea],_0x5121f5=_0x20d6a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5121f5&&_0x1df87a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5121f5&&_0x1df87a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5121f5&&_0x1df87a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5121f5&&_0x1df87a['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x808b8f){const _0x484613=this['_suggestionToController']['get'](_0x808b8f);return _0x484613&&this['editor']['plugins']['get'](_0x49d8ef)['getByInnerView'](_0x484613['view'])||null;}getSuggestionForAnnotation(_0x2409c3){const _0x36d0ad=this['_viewToController']['get'](_0x2409c3['innerView']);return _0x36d0ad?_0x36d0ad['model']:null;}_refreshActiveMarkers(){const _0x2d0fee=this['editor']['plugins']['get'](_0x49d8ef),_0x45b83c=this['editor']['plugins']['get'](an),_0x489b17=Array['from'](_0x2d0fee['activeAnnotations'],_0x2c4064=>_0x2c4064['innerView'])['filter'](_0x48f9c6=>this['_viewToController']['has'](_0x48f9c6)),_0xce1154=[];for(const _0x449c98 of _0x489b17){const _0x3d98cc=this['_viewToController']['get'](_0x449c98)['model']['getAllAdjacentSuggestions']();_0xce1154['push'](..._0x3d98cc['reduce']((_0x39abd4,_0x28b552)=>[..._0x39abd4,..._0x28b552['getMarkerNames']()],[]));}_0x45b83c['activeMarkers']=_0xce1154;}_addUIComponentsToFactory(){const _0x75c6e9=this['editor'],_0x3d4ef3=_0x75c6e9['locale'],_0x2679f5=Mt(_0x3d4ef3,'Track\x20changes'),_0x155876=new _0x3bac41([{'type':'switchbutton','model':new _0x154046({'withText':!0x0,'isToggleable':!0x0,'label':_0x2679f5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x75c6e9['plugins']['has']('TrackChangesPreview')&&_0x155876['addMany']([{'type':'separator'},{'type':'button','model':new _0x154046({'withText':!0x0,'label':Mt(_0x3d4ef3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2dedbf of _0x155876)if(Sn(_0x2dedbf)){const _0x1ad52e=_0x75c6e9['commands']['get'](_0x2dedbf['model']['commandName']);_0x2dedbf['model']['bind']('isOn','isEnabled')['to'](_0x1ad52e,'value','isEnabled');}_0x75c6e9['ui']['componentFactory']['add']('trackChanges',_0x36efda=>this['_createToolbarButton'](_0x36efda,_0x155876,_0x2679f5)),_0x75c6e9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5074c3=>this['_createMenuBarMenu'](_0x5074c3,_0x155876,_0x2679f5));}_createToolbarButton(_0x2541ee,_0x122fc3,_0x596c93){const _0x4e4c2d=_0x4ec29d(_0x2541ee,_0x1c1982),_0x1586e0=this['editor']['commands']['get']('trackChanges');_0x4e4c2d['buttonView']['set']({'tooltip':_0x596c93,'label':_0x596c93,'icon':_0x196b0a}),_0x4e4c2d['buttonView']['bind']('isOn')['to'](_0x1586e0,'value'),_0x4e4c2d['buttonView']['on']('execute',()=>{_0x1586e0['execute'](),this['editor']['editing']['view']['focus']();}),_0x1da8f7(_0x4e4c2d,_0x122fc3,{'role':'menu'});const _0x9e674b=[];for(const _0x50e87f of _0x122fc3)Sn(_0x50e87f)&&_0x9e674b['push'](this['editor']['commands']['get'](_0x50e87f['model']['commandName']));const _0x1770ff=_0x4e4c2d['buttonView'];return _0x1770ff['actionView']['unbind']('isEnabled'),_0x1770ff['arrowView']['unbind']('isEnabled'),_0x1770ff['actionView']['bind']('isEnabled')['to'](_0x1586e0,'isEnabled'),_0x1770ff['arrowView']['bind']('isEnabled')['toMany'](_0x9e674b,'isEnabled',(..._0x10b3a8)=>_0x10b3a8['some'](_0x5e1d95=>_0x5e1d95)),_0x4e4c2d['on']('execute',_0x27d610=>{this['editor']['execute'](_0x27d610['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e4c2d;}_createMenuBarMenu(_0x4b5e06,_0x409cb2,_0x33d270){const _0x3e220b=new _0x68eb0b(_0x4b5e06),_0x35cb56=this['editor']['commands']['get']('trackChanges');_0x3e220b['buttonView']['set']({'label':_0x33d270,'icon':_0x196b0a});const _0x4f964a=new _0x1d0682(_0x4b5e06);for(const _0x3d3df9 of _0x409cb2){if('separator'==_0x3d3df9['type']){_0x4f964a['items']['add'](new _0x4db965(_0x4b5e06));continue;}const _0x401f39=new _0x5786e0(_0x4b5e06,_0x3e220b),_0x547f90=new _0x3df0ff(_0x4b5e06),_0x35ae6d=_0x3d3df9['model'];_0x547f90['bind'](...Object['keys'](_0x35ae6d))['to'](_0x35ae6d),_0x547f90['delegate']('execute')['to'](_0x3e220b),_0x547f90['on']('execute',()=>{this['editor']['execute'](_0x35ae6d['commandName']),this['editor']['editing']['view']['focus']();}),_0x401f39['children']['add'](_0x547f90),_0x4f964a['items']['add'](_0x401f39);}return _0x3e220b['bind']('isEnabled')['to'](_0x35cb56,'isEnabled'),_0x3e220b['panelView']['children']['add'](_0x4f964a),_0x3e220b;}_initializeController(_0x2c3d86){const _0x1e546a=this['editor'],_0x3096cc=_0x1e546a['config'],_0x4f9c14=_0x1e546a['plugins']['get'](_0x49d8ef),_0x431c08=_0x1e546a['plugins']['get'](_0x460b74),_0x32a2bb=_0x1e546a['plugins']['get'](_0xac8168),_0x2c3d3c=_0x1e546a['plugins']['get'](_0x7b02ea)['me'],_0x149a1d=_0x3096cc['get']('trackChanges')['SuggestionThreadView'],_0x313cd7=_0x3096cc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37e8ec,CommentThreadInputView:_0xb0f777}=_0x1e546a['plugins']['get']('CommentsUI');let _0x1bec3f,_0x4aa8f8,_0x160701;this['_annotationViews']['has'](_0x2c3d86['id'])?(_0x4aa8f8=this['_annotationViews']['get'](_0x2c3d86['id']),_0x1bec3f=_0x4aa8f8['mainView']):(_0x1bec3f=new _0x149a1d(_0x1e546a['locale'],_0x2c3d86,_0x2c3d3c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3096cc['get']('comments.editorConfig'),'licenseKey':_0x3096cc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3096cc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3096cc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3096cc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x185254(_0x3096cc['get']('locale'),_0x1e546a['locale']),'CommentView':_0x3096cc['get']('comments')['CommentView'],'CommentsListView':_0x37e8ec,'CommentThreadInputView':_0xb0f777,'SuggestionView':_0x313cd7,'showAISource':_0x3096cc['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x3096cc['get']('trackChanges.aiAuthor'),'name':_0x3096cc['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x1e546a['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x1bec3f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1e546a['editing']['view']['focus']();}),_0x1bec3f['suggestionView']['discardButton']['on']('execute',()=>{_0x1e546a['editing']['view']['focus']();}),_0x4aa8f8=_0x4f9c14['createAnnotationView'](this['editor']['locale'],_0x1bec3f),_0x4aa8f8['bind']('isDirty')['to'](_0x1bec3f,'isDirty'),_0x4aa8f8['bind']('length')['to'](_0x1bec3f),_0x4aa8f8['bind']('type')['to'](_0x1bec3f,'type',_0x16f12e=>'suggestion-'+_0x16f12e),_0x1bec3f['on']('escape',()=>{_0x160701['fire']('escape');}),this['_annotationViews']['set'](_0x2c3d86['id'],_0x4aa8f8));const _0xdeea52=_0x431c08['createCommentThreadController'](_0x2c3d86['commentThread'],_0x1bec3f),_0x4fb85d=new kn(_0x1e546a,_0x2c3d86,_0x1bec3f,_0xdeea52),_0x334d38=_0x2c3d86['getAllAdjacentSuggestions']()['filter'](_0x312e7c=>_0x312e7c['isInContent']);_0x1bec3f['descriptionParts']=_0x1e546a['plugins']['get'](an)['descriptionFactory']['getDescriptions'](_0x334d38),this['_suggestionToController']['set'](_0x2c3d86,_0x4fb85d),this['_viewToController']['set'](_0x1bec3f,_0x4fb85d);const _0x254a7f=()=>{const _0x212104=[],_0x36a1ea=_0x2c3d86['getAllAdjacentSuggestions']()['filter'](_0x2505a7=>_0x2505a7['isInContent']);for(const _0x4cc42f of _0x36a1ea)_0x212104['push'](..._0x4cc42f['getMarkers']());return _0x23041e(_0x1e546a['editing'],_0x212104);};_0x160701=_0x4f9c14['createAnnotation']({'view':_0x4aa8f8,'target':_0x254a7f,'type':()=>'suggestion-'+_0x4fb85d['view']['type'],'isVisible':!!_0x254a7f()}),_0x431c08['_bindAnnotationToEditors'](_0x1bec3f,_0x160701),_0x4f9c14['add'](_0x160701),_0x32a2bb['registerAnnotation'](_0x160701);}_destroyController(_0x3111da){const _0x9a8673=this['editor']['plugins']['get'](_0x460b74),_0x5d0d44=this['editor']['plugins']['get'](_0x49d8ef),_0x3c0271=this['_suggestionToController']['get'](_0x3111da),_0x47f6e4=_0x3c0271['view'],_0x21d222=_0x5d0d44['getByInnerView'](_0x47f6e4);_0x9a8673['_unbindEditors'](_0x47f6e4),_0x21d222&&_0x5d0d44['remove'](_0x21d222),this['_suggestionToController']['delete'](_0x3111da),this['_viewToController']['delete'](_0x47f6e4),_0x3c0271['destroy']();}_updateController(_0x556979){if(!_0x556979['isInContent']||!this['_suggestionToController']['has'](_0x556979))return;const _0x277489=this['editor']['plugins']['get'](an),_0x44e2ca=this['_suggestionToController']['get'](_0x556979),_0x1df74c=_0x556979['getAllAdjacentSuggestions']();_0x44e2ca['view']['descriptionParts']=_0x277489['descriptionFactory']['getDescriptions'](_0x1df74c);}destroy(){for(const _0x32ae10 of this['_suggestionToController']['keys']())this['_destroyController'](_0x32ae10);for(const _0x59fd9a of this['_annotationViews']['values']())_0x59fd9a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Sn(_0x38a885){return'model'in _0x38a885;}var Mn=class extends _0x18ca51{static get requires(){return[an,Nn,_0x28eb54];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x57fb16){this['editor']['plugins']['get'](an)['adapter']=_0x57fb16;}get adapter(){return this['editor']['plugins']['get'](an)['adapter'];}addSuggestion(_0x13c530){return this['editor']['plugins']['get'](an)['addSuggestionData'](_0x13c530);}getSuggestions({skipNotAttached:_0x368c8c=!0x1,toJSON:_0x4f5929=!0x1}={}){return this['editor']['plugins']['get'](an)['getSuggestions']({'skipNotAttached':_0x368c8c,'toJSON':_0x4f5929});}getSuggestion(_0x27dc97){return this['editor']['plugins']['get'](an)['getSuggestion'](_0x27dc97);}};const On=['Pagination'];var wn=class extends _0x18ca51{static get requires(){return[an];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x60e24=this['editor'];if(_0x60e24['config']['define']('trackChangesData.editorCreator',_0xcdc487=>{const _0x5517ed=_0x60e24['model']['document']['getRootNames']()['reduce']((_0x549a2c,_0x15285d)=>(_0x549a2c[_0x15285d]='',_0x549a2c),{});return _0x60e24['constructor']['create'](_0x5517ed,_0xcdc487);}),'function'!=typeof _0x60e24['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f2b37('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x271be7){return vn(this['editor'],!0x0,_0x271be7);}getDataWithDiscardedSuggestions(_0x5c4bb3){return vn(this['editor'],!0x1,_0x5c4bb3);}},Fn=class extends _0x18ca51{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55d5c4){super(_0x55d5c4),this['result']='end',_0x55d5c4['editing']['view']['_overlayModeHint']='auto',_0x55d5c4['_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 Bn(_0x7eb90a){return void 0x0!==_0x7eb90a['getRootsAttributes'];}async function vn(_0x52ef25,_0x34cd31,_0x2e57ac){const _0xf3fe1f=_0x5056f4(_0x52ef25,On);if(_0xf3fe1f['plugins']['push'](an,Fn),Bn(_0x52ef25)){_0xf3fe1f['roots']=Object['create'](null);for(const _0x2f7dc3 of _0x52ef25['model']['document']['getRootNames']())_0xf3fe1f['roots'][_0x2f7dc3]={'modelAttributes':_0x52ef25['getRootAttributes'](_0x2f7dc3)};}const _0x5f13d4=document['createDocumentFragment'](),_0x59cbc7=_0x52ef25['config']['get']('trackChangesData')['editorCreator'],_0x11b1b5=await _0x59cbc7(_0xf3fe1f,()=>function(_0x1a0f25){const _0x1481cd=document['createElement']('div');return _0x1a0f25['appendChild'](_0x1481cd),_0x1481cd;}(_0x5f13d4));!function(_0x27f46e,_0x20aa03){const _0x52b53a=_0x27f46e['model']['document']['getRootNames']()['reduce']((_0x5723a0,_0x1f75fd)=>(_0x5723a0[_0x1f75fd]=_0x27f46e['data']['get']({'rootName':_0x1f75fd}),_0x5723a0),{}),_0x519934=_0x27f46e['plugins']['get']('Users')['users']['map'](_0x2dbc4d=>({'id':_0x2dbc4d['id'],'name':_0x2dbc4d['name']})),_0x2618d4=_0x27f46e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1e60=_0x27f46e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xbfb569=_0x20aa03['plugins']['get']('Users'),_0x3e71a3=_0x20aa03['plugins']['get']('TrackChangesEditing'),_0x201434=_0x20aa03['plugins']['get']('CommentsRepository');for(const _0x139626 of _0x201434['getCommentThreads']())_0x139626['remove']();for(const _0x503c43 of _0x519934)_0xbfb569['getUser'](_0x503c43['id'])||_0xbfb569['addUser'](_0x503c43);_0xbfb569['me']||_0xbfb569['useAnonymousUser']();for(const _0x33d11a of _0x5c1e60)_0x201434['addCommentThread'](_0x33d11a);for(const _0x474781 of _0x2618d4)_0x3e71a3['addSuggestionData'](_0x474781);_0x20aa03['data']['set'](_0x52b53a);}(_0x52ef25,_0x11b1b5),_0x11b1b5['execute'](_0x34cd31?'acceptAllSuggestions':'discardAllSuggestions');const _0x502a41=Bn(_0x11b1b5)?_0x11b1b5['getFullData'](_0x2e57ac):_0x11b1b5['data']['get'](_0x2e57ac);return await _0x11b1b5['destroy'](),_0x502a41;}var Dn=class extends _0x14c3e1{options;constructor(_0x1d48cb,_0x2fe998){super(_0x1d48cb),this['options']=_0x2fe998,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(_0x1b8b46,_0x424f83){if(!this['element'])return;const _0x45b9ef=[];for(const [_0x1f7328,_0xa09daa]of _0x1b8b46){const _0x474dbd=document['createElement']('div');_0x474dbd['setAttribute']('data-ck-root-name',_0x1f7328),_0x474dbd['className']=_0xa09daa['classes']+'\x20ck-track-changes-preview__root-container',_0x474dbd['innerHTML']=_0xa09daa['content'],_0x45b9ef['push'](_0x474dbd);}_0x424f83(this['element'],_0x45b9ef),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Un=class extends _0x5240c7{constructor(_0x1e6236){super(_0x1e6236),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x23dc54=this['editor'],_0x3986e3=_0x23dc54['locale'],_0x4d0e2f=_0x23dc54['plugins']['get']('Dialog');let _0x380563;const _0x525495=function(_0x27bfc4){const _0x49ce04={};if('editables'in _0x27bfc4['ui']['view']){for(const [_0x22badc,_0x5aa194]of Object['entries'](_0x27bfc4['ui']['view']['editables']))_0x49ce04[_0x22badc]=_0x5aa194['element'];}else _0x49ce04[_0x27bfc4['model']['document']['getRootNames']()[0x0]]=_0x27bfc4['ui']['view']['editable']['element'];return _0x49ce04;}(_0x23dc54),_0x337ad2=function(_0x7c5190){let _0x1f998b=0x0;for(const _0x5479c8 of Object['values'](_0x7c5190))_0x1f998b=Math['max'](_0x1f998b,_0x5479c8['getBoundingClientRect']()['width']);let _0x469e3f=0x0;for(const _0x24b5b4 of Object['values'](_0x7c5190))_0x469e3f+=_0x24b5b4['getBoundingClientRect']()['height'];const _0x54abe3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x1f998b,'height':Math['min'](_0x469e3f,_0x54abe3)};}(_0x525495);_0x4d0e2f['show']({'id':'finalContentPreview','title':Mt(_0x3986e3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Dn(_0x3986e3,{'dialogRects':_0x337ad2}),'onHide':()=>{_0x380563['detachFromDom']();},'onShow':()=>{_0x23dc54['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21287d=>{const _0xd27430=this['_standarizeRootsData'](_0x21287d,_0x23dc54,_0x525495);_0x4d0e2f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd27430,_0x23dc54['config']['get']('trackChanges.preview.renderFunction'));}),_0x380563=new _0x38e572(_0x3986e3,[_0x4d0e2f['view']]),_0x380563['attachToDom'](),_0x380563['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x23dc54['once']('destroy',()=>{_0x380563['detachFromDom']();});const _0xc142e0=_0x4d0e2f['view']['headerView']['class'];_0x4d0e2f['view']['headerView']['class']=_0xc142e0?_0xc142e0+'\x20ck-reset_all':'ck-reset_all',_0x4d0e2f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4d0e2f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x24948f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1dd1c5=_0x24948f['previewMode'],_0xf4ef02={};if('$labels'===_0x1dd1c5){for(const _0x27ba38 of _0x24948f['getMergeFieldsIds']())_0xf4ef02[_0x27ba38]=_0x24948f['getLabel'](_0x27ba38)||_0x27ba38;}else{const _0x142577='$defaultValues'===_0x1dd1c5?_0x24948f['getDefaultValues']():_0x24948f['getDataSetValues'](_0x1dd1c5,!0x0);for(const _0x540e5a of Object['entries'](_0x142577)){const [_0x5bcf8a,_0xaed2f7]=_0x540e5a;_0xf4ef02[_0x5bcf8a]=null!==_0xaed2f7?_0xaed2f7:_0x24948f['getLabel'](_0x5bcf8a)||_0x5bcf8a;}}return{'mergeFieldsData':_0xf4ef02};}_standarizeRootsData(_0x32a746,_0x138edf,_0x3e01a3){let _0x5947c2;_0x5947c2='string'==typeof _0x32a746?{[_0x138edf['model']['document']['getRootNames']()[0x0]]:_0x32a746}:_0x32a746;const _0x5da773=this['_fixMediaEmbeds'](_0x5947c2,_0x138edf);return function(_0xbd58a2,_0x4d10cc){for(const [_0x69747,_0x14038d]of _0xbd58a2)_0x14038d['classes']=_0x4d10cc[_0x69747]['classList']['value']['replace']('ck-focused','');return _0xbd58a2;}(this['_sortRoots'](_0x138edf)['reduce']((_0x58923d,_0x59cad1)=>(_0x58923d['push']([_0x59cad1,{'content':_0x5da773[_0x59cad1],'classes':''}]),_0x58923d),[]),_0x3e01a3);}['_fixMediaEmbeds'](_0x17a49e,_0x3dade4){if(!_0x3dade4['plugins']['has']('MediaEmbedEditing'))return _0x17a49e;const _0x2d59b3=_0x3dade4['plugins']['get']('MediaEmbedEditing');for(const [_0x4b7b4b,_0x59882b]of Object['entries'](_0x17a49e)){const _0x471cec=document['createElement']('div');_0x471cec['innerHTML']=_0x59882b,_0x471cec['querySelectorAll']('figure.media')['forEach'](_0x209cf6=>{const _0x58c6b4=_0x209cf6['querySelector']('oembed');if(_0x58c6b4){const _0x3101f7=_0x58c6b4['getAttribute']('url');if(_0x3101f7){const _0x41951e=_0x2d59b3['registry']['getMediaViewElement'](new ot(_0x3dade4['editing']['view']['document']),_0x3101f7,{'elementName':'','renderForEditingView':!0x0}),_0x36ba12=document['createElement']('div');_0x36ba12['classList']['add']('ck-media__wrapper'),_0x41951e['render'](_0x36ba12,_0x3dade4['editing']['view']['domConverter']),_0x58c6b4['replaceWith'](_0x36ba12);}}}),_0x17a49e[_0x4b7b4b]=_0x471cec['innerHTML'];}return _0x17a49e;}_sortRoots(_0x1e355a){if(!function(_0x5875b3){return void 0x0!==_0x5875b3['getRootsAttributes'];}(_0x1e355a))return _0x1e355a['model']['document']['getRootNames']();const _0x29d562=[],_0x58c44d=new Map();for(const _0x26b9a8 of _0x1e355a['model']['document']['getRootNames']()){const _0x206468=_0x1e355a['editing']['view']['getDomRoot'](_0x26b9a8)['getClientRects']()['item'](0x0);_0x29d562['push'](_0x26b9a8),_0x58c44d['set'](_0x26b9a8,_0x206468);}return _0x29d562['sort']((_0x37ecb6,_0xd5d471)=>{const _0x486c70=_0x58c44d['get'](_0x37ecb6),_0x47cf81=_0x58c44d['get'](_0xd5d471);return _0x486c70['y']-_0x47cf81['y']||_0x486c70['x']-_0x47cf81['x'];}),_0x29d562;}},Pn=class extends _0x18ca51{static get requires(){return[wn,_0x501745];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cc613){super(_0x4cc613),_0x4cc613['commands']['add']('previewFinalContent',new Un(this['editor'])),_0x4cc613['config']['define']('trackChanges.preview.renderFunction',(_0x1d047b,_0x3cfc1d)=>{for(const _0x5b407d of _0x3cfc1d)_0x1d047b['appendChild'](_0x5b407d);});}};export{_t as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Un as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Rn as SuggestionThreadView,yn as SuggestionView,Mn as TrackChanges,Tt as TrackChangesCommand,wn as TrackChangesData,Fn as TrackChangesDataGetter,an as TrackChangesEditing,Pn as TrackChangesPreview,Nn as TrackChangesUI};