@ckeditor/ckeditor5-track-changes 48.4.0-alpha.1 → 48.4.0-alpha.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 (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xa07efb,PendingActions as _0x2b14db,Plugin as _0x3b6d8a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x15fa05,Comments as _0x5c2500,CommentsRepository as _0x2a3df3,EditorAnnotations as _0x454459}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x531c91,Collection as _0x649164,FocusTracker as _0x27c2e2,KeystrokeHandler as _0x1b7ec1,ObservableMixin as _0x43dfa7,getEnvKeystrokeText as _0x263f96,insertToPriorityArray as _0x176cae,logWarning as _0x2a998d,priorities as _0x1315a6,uid as _0x3223bf}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x55fbd9,IconCancel as _0x120ab6,IconCheck as _0x403898,IconSparkle as _0x24f981,IconTrackChanges as _0x3335e2}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x153785,Dialog as _0x9dd83e,FocusCycler as _0x2e49fb,ListSeparatorView as _0x37f5d1,MenuBarMenuListItemButtonView as _0x3ac042,MenuBarMenuListItemView as _0x3831d2,MenuBarMenuListView as _0x5b35bb,MenuBarMenuView as _0x261371,SplitButtonView as _0x5d1b49,UIModel as _0x12dea9,View as _0x5c97c1,ViewCollection as _0x2295e0,addListToDropdown as _0x3c4a50,createDropdown as _0x3bda66,normalizeColorOptions as _0x29b02c}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1c933d,CollaborationUserColor as _0x36ec60,DocumentCompare as _0xc88042,FOCUS_ANNOTATION_KEYSTROKE as _0x48a7da,LateFocusButtonView as _0x5d61b0,PillView as _0x5a93f3,SuggestionsConversion as _0x5df0b9,User as _0x30dd6c,UserView as _0x72bb39,Users as _0x1da799,fixElementSuggestionRange as _0x1088e8,getAllMarkersDomElementsSorted as _0x5032c4,getDateTimeFormatter as _0x1f24bf,hashObject as _0x5e550b,isInvalidAttributeOperation as _0x12593f,sanitizeEditorConfig as _0x43648c,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0xa07efb{['_enabledCommands'];constructor(_0x34b205,_0x477eb1){super(_0x34b205),this['_enabledCommands']=_0x477eb1,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 _0x247160 of this['editor']['commands']['commands']())_0x247160['affectsData']&&!this['_enabledCommands']['has'](_0x247160)&&_0x247160['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x55d8f0 of this['editor']['commands']['commands']())_0x55d8f0['affectsData']&&!this['_enabledCommands']['has'](_0x55d8f0)&&_0x55d8f0['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0xa07efb{_suggestions;constructor(_0x3c74eb,_0x3ab841){super(_0x3c74eb),this['_suggestions']=_0x3ab841,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1dcab6){const _0x23764c=this['_suggestions']['get'](_0x1dcab6);if(!_0x23764c)throw new _0x531c91('track-changes-accept-suggestion-not-found',this);const _0xc99e6c=_0x23764c['getRanges']();this['editor']['model']['canEditAt'](_0xc99e6c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x23764c);}},Lt=class extends _0xa07efb{_suggestions;constructor(_0x479bc0,_0x5d6f5a){super(_0x479bc0),this['_suggestions']=_0x5d6f5a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x6868ec){const _0x55188a=this['_suggestions']['get'](_0x6868ec);if(!_0x55188a)throw new _0x531c91('track-changes-discard-suggestion-not-found',this);const _0x4606e3=_0x55188a['getRanges']();this['editor']['model']['canEditAt'](_0x4606e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x55188a);}};function It(_0x527288,_0x2e0803){let _0x2c5eea='';return _0x2c5eea+=_0x527288['split']('*')['map']((_0x1f522f,_0x3225ab)=>_0x3225ab%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x1f522f)+'</span>':At(_0x1f522f))['join'](''),_0x2e0803&&(_0x2c5eea+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2e0803['value']+'\x22\x20title=\x22'+_0x2e0803['title']+'\x22></span>'),_0x2c5eea;}function At(_0x4d36d0){const _0x5f5ac5=document['createElement']('span');return _0x5f5ac5['innerText']=_0x4d36d0,_0x5f5ac5['innerHTML'];}function bt(_0x673425){return _0x673425['sort']((_0x5709d6,_0x58fe3f)=>'attribute'===_0x5709d6['type']&&'attribute'!==_0x58fe3f['type']?-0x1:'attribute'!==_0x5709d6['type']&&'attribute'===_0x58fe3f['type']?0x1:'deletion'==_0x5709d6['type']&&'deletion'!=_0x58fe3f['type']?-0x1:'deletion'!=_0x5709d6['type']&&'deletion'==_0x58fe3f['type']?0x1:0x0);}function Ct(_0x66c5dd,_0x132166){let _0x36efeb,_0x4db493=0x0;const _0x3a7263=[],_0x5e1ec4=_0x132166['schema'];for(;_0x4db493<_0x66c5dd['length'];){const _0x26cdd5=_0x66c5dd[_0x4db493],_0x37cf44=_0x66c5dd[_0x4db493+0x1];_0x36efeb||(_0x36efeb=_0x132166['createPositionBefore'](_0x26cdd5)),kt(_0x132166,_0x26cdd5,_0x37cf44)||(_0x3a7263['push'](_0x132166['createRange'](_0x36efeb,_0x5e1ec4['isObject'](_0x26cdd5)?_0x132166['createPositionAfter'](_0x26cdd5):_0x132166['createPositionAt'](_0x26cdd5,'end'))),_0x36efeb=null),_0x4db493++;}return _0x3a7263;}function kt(_0x347212,_0x3248be,_0x94e04d){if(!_0x94e04d)return!0x1;const _0x111f22=_0x347212['createPositionAfter'](_0x3248be),_0x1677ff=_0x347212['createPositionBefore'](_0x94e04d);return _0x111f22['isTouching'](_0x1677ff);}function Rt(_0x4ed47b,_0x422a8a,_0x2a3c3d){for(;_0x2a3c3d['length'];){const _0x4c88d6=_0x2a3c3d['splice'](0x0,0x64);_0x4ed47b['change'](()=>{for(const _0x22890a of _0x4c88d6)_0x22890a['isInContent']&&_0x422a8a['execute'](_0x22890a['id']);});}}var yt=class extends _0xa07efb{['_command'];_suggestions;constructor(_0x5eb58a,_0x4a89a5,_0x272145){super(_0x5eb58a),this['_command']=_0x4a89a5,this['_suggestions']=_0x272145,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fb0bb=Array['from'](this['_suggestions']['values']())['some'](_0x14da00=>_0x14da00['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4fb0bb;}execute(){const _0x3b4fe4=bt(Array['from'](this['_suggestions']['values']()));for(const _0x18eedf of _0x3b4fe4){const _0x3bef31=_0x18eedf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3bef31))return;}Rt(this['editor']['model'],this['_command'],_0x3b4fe4);}},Nt=class extends _0xa07efb{['_command'];_suggestions;_selectedSuggestions;constructor(_0x49f84d,_0x47927a,_0x36a361){super(_0x49f84d),this['_command']=_0x47927a,this['_suggestions']=_0x36a361,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40020d=this['editor']['model']['document']['selection'],_0x395077=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e7eaf,_0x16d493){const _0x52006d=Array['from'](_0x1e7eaf['getRanges']()),_0x4848a5=new Set();for(const _0x527f8a of _0x16d493)if(_0x527f8a['isInContent']){for(const _0x3e8721 of _0x52006d)for(const _0xcb3851 of _0x527f8a['getRanges']())(_0x3e8721['isIntersecting'](_0xcb3851)||_0x1e7eaf['isCollapsed']&&!_0x527f8a['isMultiRange']&&_0x527f8a['next']&&_0xcb3851['end']['isTouching'](_0x3e8721['start']))&&_0x4848a5['add'](_0x527f8a);}return _0x4848a5;}(_0x40020d,_0x395077),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0xb32260=bt(Array['from'](this['_selectedSuggestions']));for(const _0x1d909d of _0xb32260){const _0x3cd883=_0x1d909d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3cd883))return;}Rt(this['editor']['model'],this['_command'],_0xb32260);}};const St=/* #__PURE__ -- @preserve */
24
- _0x43dfa7();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x395f53,_0x5c5d68){super(),this['id']=_0x5c5d68['id'],this['type']=_0x5c5d68['type'],this['subType']=_0x5c5d68['subType']||null,this['author']=_0x5c5d68['author'],this['creator']=_0x5c5d68['creator']||_0x5c5d68['author'],this['data']=null,this['_originalSuggestionId']=_0x5c5d68['originalSuggestionId']||null,this['_model']=_0x395f53,this['_onAccept']=_0x5c5d68['onAccept'],this['_onDiscard']=_0x5c5d68['onDiscard'],this['_onAttributesChange']=_0x5c5d68['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c5d68['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 _0x17a2ec=this;for(;_0x17a2ec['previous'];)_0x17a2ec=_0x17a2ec['previous'];return _0x17a2ec;}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'](_0x2ec250){this['_markerNames']['add'](_0x2ec250);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b04dd=>this['_model']['markers']['get'](_0x2b04dd))['filter'](_0x1d5274=>_0x1d5274);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x40dc11=>{for(const _0x4ba48a of this['getMarkers']())_0x40dc11['removeMarker'](_0x4ba48a);}),this['_markerNames']['clear']();}['removeMarker'](_0xf79a5c){this['_model']['change'](_0x334aff=>{_0x334aff['removeMarker'](_0xf79a5c);}),this['_markerNames']['delete'](_0xf79a5c);}['addRange'](_0x4f039c){const _0x58f6e7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x58f6e7),this['_model']['change'](_0x4144d8=>{_0x4144d8['addMarker'](_0x58f6e7,{'range':_0x4f039c,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2906e2){for(const _0x10b4a5 of this['getRanges']())if(_0x10b4a5['isIntersecting'](_0x2906e2))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x4f09df=>_0x4f09df['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x49355f,_0x1f3781)=>[..._0x49355f,..._0x1f3781['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x577c62=this['getRanges']();if(0x1!=_0x577c62['length'])return null;const _0x5960aa=_0x577c62[0x0],_0x4ae983=_0x5960aa['start']['nodeAfter'],_0x456a70=_0x5960aa['end']['nodeBefore'];return _0x4ae983 instanceof st?_0x4ae983!=_0x456a70?null:_0x4ae983: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 _0x384512=[];let _0xac4db2=this['head'];for(;_0xac4db2;)_0x384512['push'](_0xac4db2),_0xac4db2=_0xac4db2['next'];return _0x384512;}setAttribute(_0xd6f3ff,_0x48e0b1){const _0x1a1b6f=ct(this['attributes']);dt(_0x1a1b6f,_0xd6f3ff,_0x48e0b1),lt(_0x1a1b6f,this['attributes'])||(this['attributes']=_0x1a1b6f,this['_onAttributesChange'](_0x1a1b6f));}removeAttribute(_0x3c7021){const _0x55c012=ct(this['attributes']);ht(_0x55c012,_0x3c7021),lt(_0x55c012,this['attributes'])||(this['attributes']=_0x55c012,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 _0x3223bf()['substr'](0x1,0x5);}};function Ot(_0x1ad1cb,_0x59d9bd,_0x4e6f6e){const _0x47b8eb=_0x1ad1cb['t'],t=_0x1ad1cb['t'];switch(_0x59d9bd){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',_0x4e6f6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e6f6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e6f6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e6f6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e6f6e);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',_0x4e6f6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e6f6e);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',_0x4e6f6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e6f6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e6f6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e6f6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e6f6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e6f6e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e6f6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e6f6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e6f6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e6f6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e6f6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e6f6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e6f6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e6f6e);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4e6f6e);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4e6f6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e6f6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e6f6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e6f6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e6f6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e6f6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e6f6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e6f6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e6f6e);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4e6f6e);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4e6f6e);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4e6f6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e6f6e);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'},_0x4e6f6e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4e6f6e);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 _0x47b8eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e6f6e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47b8eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e6f6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);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'},_0x4e6f6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59d9bd;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x431798,_0x7ea15f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x431798,this['_locale']=_0x7ea15f;}getDescriptions(_0x462afe){const _0x5adca4=[],_0x4a4c56=new Set(),_0x3f51bc=new Set();for(let _0x431c8b=0x0;_0x431c8b<_0x462afe['length'];_0x431c8b++){const _0x4e9d64=_0x462afe[_0x431c8b];if(!_0x4e9d64['isInContent'])continue;const _0x2fee62=this['_handleCustomCallbackDescription'](_0x4e9d64);if(_0x2fee62){if(null!=_0x4e9d64['subType']){if(_0x4a4c56['has'](_0x4e9d64['subType']))continue;_0x4a4c56['add'](_0x4e9d64['subType']);}_0x5adca4['push'](_0x2fee62);}else{if('attribute'==_0x4e9d64['type']){const _0x2a7a5f=_0x4e9d64['data']['key'];if(_0x3f51bc['has'](_0x2a7a5f))continue;_0x3f51bc['add'](_0x4e9d64['data']['key']),'$elementName'==_0x2a7a5f?this['_handleRenameSuggestionDescription'](_0x5adca4,_0x4e9d64):this['_handleAttributeSuggestionDescription'](_0x5adca4,_0x4e9d64);continue;}'insertion'!=_0x4e9d64['type']&&'deletion'!=_0x4e9d64['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5adca4,_0x4e9d64,_0x462afe[_0x431c8b+0x1]);}}return this['_resolveDescriptionItems'](_0x5adca4);}registerDescriptionCallback(_0x4d0556){this['_customCallbacks']['push'](_0x4d0556);}registerElementLabel(_0x32d8fb,_0x5e991c,_0x2ead98=_0x1315a6['normal']){'function'==typeof _0x32d8fb?_0x176cae(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32d8fb,'label':_0x5e991c,'priority':_0x2ead98}):this['_itemLabels']['set'](_0x32d8fb,_0x5e991c);}registerAttributeLabel(_0x3903e7,_0x17f745){this['_attributeLabels']['set'](_0x3903e7,_0x17f745);}getItemLabel(_0x4599c5,_0x1e08d1=0x1){let _0x5e98ea;for(const _0x49a5a1 of this['_itemLabelsCallbacks'])if(_0x49a5a1['matchingCallback'](_0x4599c5)){_0x5e98ea=_0x49a5a1['label'];break;}return _0x5e98ea||(_0x5e98ea=this['_itemLabels']['get'](_0x4599c5['name'])),_0x5e98ea?_0x5e98ea(_0x1e08d1):0x1!==_0x1e08d1?_0x1e08d1+'\x20'+_0x4599c5['name']+'s':''+_0x4599c5['name'];}_addDescriptionItems(_0x28deef,_0x2502df){const _0x2bf012=_0x2502df['getFirstRange']()['getWalker'](),_0x3e5f1b='insertion'==_0x2502df['type']?'add':'remove';for(const _0x1fb459 of _0x2bf012){const _0x5828f1=_0x1fb459['item'],_0x301bb5=_0x28deef[_0x28deef['length']-0x1];if(_0x5828f1['is']('$textProxy'))_0x301bb5&&_0x301bb5['type']['indexOf']('Container')>-0x1&&_0x28deef['pop'](),_0x301bb5&&'text'==_0x301bb5['type']?_0x301bb5[_0x3e5f1b]+=_0x5828f1['data']:_0x28deef['push']({'type':'text','add':'add'==_0x3e5f1b?_0x5828f1['data']:'','remove':'remove'==_0x3e5f1b?_0x5828f1['data']:''});else{if(this['_schema']['isObject'](_0x5828f1)){const _0x52442b=_0x5828f1;if(_0x301bb5&&_0x301bb5['type']['indexOf']('Container')>-0x1&&_0x28deef['pop'](),'elementEnd'==_0x1fb459['type'])continue;_0x301bb5&&_0x301bb5['type']==_0x3e5f1b+'Object'&&_0x301bb5['element']['name']==_0x52442b['name']?_0x301bb5['quantity']++:_0x28deef['push']({'type':_0x3e5f1b+'Object','element':_0x52442b,'quantity':0x1}),_0x2bf012['skip'](_0x413f84=>!('elementEnd'==_0x413f84['type']&&_0x413f84['item']==_0x5828f1));}else{if(this['_schema']['checkChild'](_0x5828f1,'$text')||_0x5828f1['is']('element','softBreak')){const _0x40927d=_0x5828f1;if('add'==_0x3e5f1b&&'elementStart'==_0x1fb459['type']||'remove'==_0x3e5f1b&&'elementEnd'==_0x1fb459['type'])continue;if(_0x301bb5&&-0x1==_0x301bb5['type']['indexOf']('Container')){'text'==_0x301bb5['type']&&(_0x301bb5[_0x3e5f1b]+='\x0a');continue;}let _0x49d9af;if(_0x49d9af='add'==_0x3e5f1b?_0x40927d['nextSibling']&&!this['_schema']['isObject'](_0x40927d['nextSibling'])?_0x40927d['nextSibling']:null:_0x40927d['previousSibling']&&!this['_schema']['isObject'](_0x40927d['previousSibling'])?_0x40927d['previousSibling']:null,_0x40927d['isEmpty']||_0x49d9af&&_0x49d9af['isEmpty']){const _0x15b73c=_0x49d9af&&_0x49d9af['isEmpty']?_0x49d9af:_0x40927d;_0x301bb5&&_0x301bb5['type']==_0x3e5f1b+'EmptyContainer'&&_0x301bb5['element']['name']==_0x15b73c['name']?_0x301bb5['quantity']++:_0x28deef['push']({'type':_0x3e5f1b+'EmptyContainer','element':_0x15b73c,'quantity':0x1});}else _0x28deef['push']({'type':_0x3e5f1b+'Container','element':_0x40927d});}}}}}_resolveDescriptionItems(_0x3deb6a){const _0x3de86a=this['_locale'],_0x42d8af=[],_0x5e584e=[],_0x4b4c77=[];for(const _0x49549d of _0x3deb6a)switch(_0x49549d['type']){case'text':if(_0x49549d['add']=_0x49549d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49549d['remove']=_0x49549d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49549d['add']&&''!=_0x49549d['remove']){_0x42d8af['push']({'type':'replace','content':Ot(_0x3de86a,'REPLACE_TEXT',['\x22'+_0x49549d['remove']+'\x22','\x22'+_0x49549d['add']+'\x22'])});continue;}if(null!=_0x49549d['add']['match'](/^ +$/)){_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0',Ot(_0x3de86a,'ELEMENT_SPACE',_0x49549d['add']['length']))});continue;}if(null!=_0x49549d['remove']['match'](/^ +$/)){_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0',Ot(_0x3de86a,'ELEMENT_SPACE',_0x49549d['remove']['length']))});continue;}if(''!=_0x49549d['add']){_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0','\x22'+_0x49549d['add']+'\x22')});continue;}_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0','\x22'+_0x49549d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Insert:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Remove:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'addContainer':_0x42d8af['push']({'type':'insertion','content':Ot(_0x3de86a,'*Split:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'removeContainer':_0x42d8af['push']({'type':'deletion','content':Ot(_0x3de86a,'*Merge:*\x20%0',this['getItemLabel'](_0x49549d['element'],_0x49549d['quantity']))});continue;case'addFormat':_0x5e584e['push'](_0x49549d['key']);continue;case'removeFormat':_0x4b4c77['push'](_0x49549d['key']);continue;default:_0x42d8af['push'](_0x49549d);}if(_0x5e584e['length']){const _0x3a41a2=_0x5e584e['map'](_0x2f17e1=>this['_attributeLabels']['has'](_0x2f17e1)?this['_attributeLabels']['get'](_0x2f17e1):_0x2f17e1)['join'](',\x20');_0x42d8af['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x3a41a2)});}if(_0x4b4c77['length']){const _0x15e470=_0x4b4c77['map'](_0x47870e=>this['_attributeLabels']['has'](_0x47870e)?this['_attributeLabels']['get'](_0x47870e):_0x47870e)['join'](',\x20');_0x42d8af['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x15e470)});}return _0x42d8af;}_handleCustomCallbackDescription(_0x1cf37d){for(const _0x50c895 of this['_customCallbacks']){const _0x2c7098=_0x50c895(_0x1cf37d);if(_0x2c7098&&'type'in _0x2c7098)return _0x2c7098;}}_handleAttributeSuggestionDescription(_0x4f23f9,_0x5cf87f){const _0x8a3ac8=_0x5cf87f['data'],_0x130621=void 0x0===_0x8a3ac8['newValue']?'removeFormat':'addFormat';_0x4f23f9['push']({'type':_0x130621,'key':_0x8a3ac8['key']});}_handleRenameSuggestionDescription(_0x57dc3f,_0x14de11){_0x57dc3f['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x14de11['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x36263e,_0x4af62d,_0x2fcc26){if(this['_addDescriptionItems'](_0x36263e,_0x4af62d),_0x2fcc26&&_0x2fcc26['getFirstRange']()&&!_0x4af62d['getFirstRange']()['end']['isEqual'](_0x2fcc26['getFirstRange']()['start'])){const _0x50272e=_0x36263e[_0x36263e['length']-0x1],_0x1c001c='insertion'==_0x4af62d['type']?'add':'remove';_0x50272e&&'text'==_0x50272e['type']&&(_0x50272e[_0x1c001c]+='\x0a');}}},Ft=class extends _0x3b6d8a{afterInit(){const _0x50fa77=this['editor'],_0x3820db=_0x50fa77['plugins']['get']('TrackChangesEditing');_0x50fa77['commands']['get']('showAIAssistant')&&_0x3820db['enableCommand']('showAIAssistant');}},Bt=class extends _0x3b6d8a{afterInit(){const _0x517d74=this['editor'],_0x4c4873=_0x517d74['plugins']['get']('TrackChangesEditing');_0x517d74['commands']['get']('toggleAi')&&_0x4c4873['enableCommand']('toggleAi');}},vt=class extends _0x3b6d8a{afterInit(){const _0x3afe75=this['editor'],_0x1d5810=_0x3afe75['plugins']['get']('TrackChangesEditing');_0x3afe75['commands']['get']('aiQuickAction')&&_0x1d5810['enableCommand']('aiQuickAction');}},Dt=class extends _0x3b6d8a{afterInit(){const _0xa367d1=this['editor'],_0x358adc=_0xa367d1['locale'];if(!_0xa367d1['plugins']['has']('AlignmentEditing'))return;const _0x2d8eb8=_0xa367d1['plugins']['get']('TrackChangesEditing');_0x2d8eb8['enableDefaultAttributesIntegration']('alignment'),_0x2d8eb8['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x358adc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xd5010f=this['editor'],_0x57cf42=_0xd5010f['locale'];_0xd5010f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310043=>{if('formatBlock'!=_0x310043['type'])return;const {data:_0x10738f}=_0x310043;if(_0x10738f&&'alignment'==_0x10738f['commandName']){const _0x3bff8b=_0x10738f['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x57cf42,'*Format:*\x20%0',function(_0x572aed){switch(_0x572aed){case'left':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x57cf42,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x57cf42,'FORMAT_JUSTIFY_TEXT');}}(_0x3bff8b))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x3b6d8a{afterInit(){const _0x4ce5c6=this['editor'],_0x484c4b=_0x4ce5c6['plugins']['get']('TrackChangesEditing'),_0x4dfce2=_0x4ce5c6['locale'];for(const _0x4d936c of Ut){if(!_0x4ce5c6['plugins']['has'](_0x4d936c))continue;const _0x296a2b=_0x4d936c['slice'](0x0,-0x7)['toLowerCase'](),_0x2c1408='FORMAT_'+_0x296a2b['toUpperCase']();_0x484c4b['enableDefaultAttributesIntegration'](_0x296a2b),_0x484c4b['descriptionFactory']['registerAttributeLabel'](_0x296a2b,Ot(_0x4dfce2,_0x2c1408));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4720d9=this['editor'],_0x26a1a4=_0x4720d9['locale'],_0x16eb61=_0x4720d9['plugins']['get']('TrackChangesEditing');function _0x194848(_0x261729,_0x307707){_0x16eb61['descriptionFactory']['registerDescriptionCallback'](_0x5449f2=>{if('formatInline'!=_0x5449f2['type'])return;const {data:_0x1034bd}=_0x5449f2;return _0x1034bd&&_0x1034bd['commandName']===_0x261729?_0x1034bd['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26a1a4,'*Format:*\x20%0',_0x307707)}:{'type':'format','content':Ot(_0x26a1a4,'*Remove\x20format:*\x20%0',_0x307707)}:void 0x0;});}_0x194848('bold',Ot(_0x26a1a4,'FORMAT_BOLD')),_0x194848('italic',Ot(_0x26a1a4,'FORMAT_ITALIC')),_0x194848('underline',Ot(_0x26a1a4,'FORMAT_UNDERLINE')),_0x194848('code',Ot(_0x26a1a4,'FORMAT_CODE')),_0x194848('strikethrough',Ot(_0x26a1a4,'FORMAT_STRIKETHROUGH')),_0x194848('subscript',Ot(_0x26a1a4,'FORMAT_SUBSCRIPT')),_0x194848('superscript',Ot(_0x26a1a4,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x3b6d8a{afterInit(){const _0x7d5b0f=this['editor'],_0x36810d=_0x7d5b0f['locale'];if(!_0x7d5b0f['plugins']['has']('BlockQuoteEditing'))return;const _0x323852=_0x7d5b0f['plugins']['get']('TrackChangesEditing'),_0x1a794c=this['editor']['commands']['get']('blockQuote');_0x323852['enableCommand']('blockQuote',(_0x14c081,_0x44523f={})=>{const _0x5dba34=this['editor']['model']['document']['selection'],_0x2692ec=_0x44523f&&void 0x0!==_0x44523f['forceValue']?_0x44523f['forceValue']:!_0x1a794c['value'];let _0x35cbe0=[];_0x35cbe0=Ct(_0x2692ec?Array['from'](_0x5dba34['getSelectedBlocks']())['filter'](_0x1e6503=>Gt(_0x1e6503)||function(_0x6c2753,_0x455691){const _0x418783=_0x455691['createContext'](_0x6c2753['parent']);return!!_0x455691['checkChild'](_0x418783,'blockQuote')&&!!_0x455691['checkChild'](_0x418783['push']('blockQuote'),_0x6c2753);}(_0x1e6503,this['editor']['model']['schema'])):Array['from'](_0x5dba34['getSelectedBlocks']())['filter'](_0x65d443=>Gt(_0x65d443)),_0x7d5b0f['model']),_0x7d5b0f['model']['change'](()=>{for(const _0x82bc2c of _0x35cbe0)_0x323852['markBlockFormat'](_0x82bc2c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2692ec}]});});}),_0x323852['descriptionFactory']['registerDescriptionCallback'](_0x477c87=>{const {data:_0x9966b2}=_0x477c87;if(_0x9966b2&&'blockQuote'==_0x9966b2['commandName']){const _0x227ec5=Ot(_0x36810d,'ELEMENT_BLOCK_QUOTE');return _0x9966b2['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36810d,'*Set\x20format:*\x20%0',_0x227ec5)}:{'type':'format','content':Ot(_0x36810d,'*Remove\x20format:*\x20%0',_0x227ec5)};}});}};function Gt(_0x528198){return'blockQuote'==_0x528198['parent']['name'];}var Ht=class extends _0x3b6d8a{afterInit(){const _0xd65b66=this['editor'],_0x4ad813=_0xd65b66['locale'],_0x30c7d0=_0xd65b66['plugins']['get']('TrackChangesEditing');_0xd65b66['plugins']['has']('BookmarkEditing')&&(_0x30c7d0['enableCommand']('insertBookmark'),_0x30c7d0['enableDefaultAttributesIntegration']('updateBookmark'),_0x30c7d0['descriptionFactory']['registerDescriptionCallback'](_0x38e85c=>{if('insertion'!=_0x38e85c['type']&&'deletion'!=_0x38e85c['type']&&'attribute'!=_0x38e85c['type'])return;const _0x34845c=_0x38e85c['getContainedElement']();if(null==_0x34845c)return;if(!_0x34845c['is']('element','bookmark'))return;const _0x59b802=_0x34845c['getAttribute']('bookmarkId');if('insertion'==_0x38e85c['type'])return{'type':'insertion','content':Ot(_0x4ad813,'*Insert:*\x20%0','\x22'+_0x59b802+'\x22\x20'+Ot(_0x4ad813,'ELEMENT_BOOKMARK'))};if('deletion'==_0x38e85c['type'])return{'type':'deletion','content':Ot(_0x4ad813,'*Remove:*\x20%0','\x22'+_0x59b802+'\x22\x20'+Ot(_0x4ad813,'ELEMENT_BOOKMARK'))};const {data:_0x234ed3}=_0x38e85c;return _0x234ed3&&'bookmarkId'==_0x234ed3['key']?{'type':'format','content':Ot(_0x4ad813,'*Set\x20bookmark:*\x20%0','\x22'+_0x234ed3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x3b6d8a{afterInit(){const _0xa89e91=this['editor'];_0xa89e91['plugins']['has']('CaseChange')&&(_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa89e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x3b6d8a{afterInit(){const _0xa3fa85=this['editor'];_0xa3fa85['commands']['get']('ckbox')&&_0xa3fa85['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x3b6d8a{static get requires(){return[gt,ft];}constructor(_0x4257fc){super(_0x4257fc),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xacdb42=this['editor'],_0x75360c=_0xacdb42['plugins']['get']('ClipboardMarkersUtils'),_0x5f3d91=_0xacdb42['plugins']['get'](ft);_0x75360c['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x5f3d91['on']('outputTransformation',(_0x50e6d1,_0x56543e)=>{const _0x5ecfe2=this['_getSuggestionEntries'](_0x56543e);for(const [_0x45d2f1,_0x16e0cf]of _0x56543e['content']['markers']){const _0x371d8d=ot['_fromRangeInDocumentFragment'](_0x16e0cf,_0xacdb42['model']);function _0x1238d3(){_0x371d8d['detach'](),_0x56543e['content']['markers']['delete'](_0x45d2f1);}_0x371d8d['on']('change:drop',_0x1238d3),(_0x45d2f1['startsWith']('suggestion:')||_0x45d2f1['startsWith']('comment:'))&&_0x371d8d['on']('change:range',()=>{_0x371d8d['isCollapsed']&&_0x1238d3();}),_0x56543e['content']['markers']['set'](_0x45d2f1,_0x371d8d);}const _0x2884d4=_0x5ecfe2['filter'](_0x241295=>'deletion'===_0x241295['meta']['type'])['map'](_0x58841d=>_0x58841d['modelRange']);if(this['_shouldSkipDeletions'](_0x2884d4,_0x56543e['content']))return[..._0x5ecfe2]['forEach'](_0x17c814=>{_0x56543e['content']['markers']['get'](_0x17c814['markerName'])['detach'](),_0x56543e['content']['markers']['delete'](_0x17c814['markerName']);}),void this['_restoreRegularRanges'](_0x56543e['content']['markers']);[..._0x5ecfe2]['forEach'](_0x2906f4=>{const _0x3c2abc=_0xacdb42['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x2906f4['meta']['type'],_0x2906f4['meta']['subType'],'accept'),{markerName:_0x324808,meta:_0x4d1f68}=_0x2906f4;if(_0x56543e['content']['markers']['has'](_0x324808)){switch(_0x4d1f68['type']){case'deletion':if('tableRow'===_0x4d1f68['subType']||'tableColumn'===_0x4d1f68['subType']){if(!_0xacdb42['plugins']['has']('TableUtils'))break;const _0x3ae5a3=_0xacdb42['plugins']['get']('TableUtils'),_0x20825e=_0x3ae5a3['getSelectionAffectedTableCells'](_0xacdb42['model']['createSelection'](_0x56543e['content']['markers']['get'](_0x324808))),_0x24a0bd=_0x20825e[0x0]['findAncestor']('table');if('tableRow'===_0x4d1f68['subType']){const {first:_0x24e0b1,last:_0x3db3b7}=_0x3ae5a3['getRowIndexes'](_0x20825e);_0x3ae5a3['removeRows'](_0x24a0bd,{'at':_0x24e0b1,'rows':_0x3db3b7-_0x24e0b1+0x1});}else{const {first:_0x583247,last:_0x4c1567}=_0x3ae5a3['getColumnIndexes'](_0x20825e);_0x3ae5a3['removeColumns'](_0x24a0bd,{'at':_0x583247,'columns':_0x4c1567-_0x583247+0x1});}break;}_0x3c2abc([_0x56543e['content']['markers']['get'](_0x324808)]);}_0x56543e['content']['markers']['has'](_0x324808)&&(_0x56543e['content']['markers']['get'](_0x324808)['detach'](),_0x56543e['content']['markers']['delete'](_0x324808));}}),this['_restoreRegularRanges'](_0x56543e['content']['markers']);});}_getSuggestionEntries(_0x199e73){const _0x178607=_0x56861a=>'dragstart'===_0x199e73['method']?_0x56861a['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x56861a;return Array['from'](_0x199e73['content']['markers'])['map'](([_0x135b2c,_0x3e1eb3])=>({'markerName':_0x135b2c,'modelRange':_0x3e1eb3,'meta':et(_0x178607(_0x135b2c))}))['filter'](({meta:_0x1642b2})=>'suggestion'===_0x1642b2['group']);}_shouldSkipDeletions(_0x6ab791,_0x296df7){if(!_0x6ab791['length'])return!0x1;let _0x52aca0=[this['editor']['model']['createRangeIn'](_0x296df7)];for(const _0x4cd594 of _0x6ab791)_0x52aca0=_0x52aca0['flatMap'](_0x533319=>_0x533319['getDifference'](_0x4cd594));return!_0x52aca0['some'](_0x44b821=>this['editor']['model']['hasContent'](_0x44b821,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x1fbf46){[..._0x1fbf46['keys']()]['forEach'](_0x500d7c=>{const _0x109e80=_0x1fbf46['get'](_0x500d7c);_0x109e80['detach'](),_0x1fbf46['set'](_0x500d7c,_0x109e80['toRange']());});}},jt=class extends _0x3b6d8a{afterInit(){const _0x93a92f=this['editor'];if(!_0x93a92f['plugins']['has']('CodeBlock'))return;const _0x3f8dc0=_0x93a92f['plugins']['get']('TrackChangesEditing'),_0x1b148f=_0x93a92f['locale'],_0x4564ee=_0x93a92f['config']['get']('codeBlock')['languages'],_0x537705=_0x93a92f['commands']['get']('codeBlock');_0x3f8dc0['enableCommand']('indentCodeBlock'),_0x3f8dc0['enableCommand']('outdentCodeBlock'),_0x3f8dc0['enableCommand']('codeBlock',(_0x517940,_0x16c233={})=>{const _0x416fbd=_0x93a92f['model'],_0x1a0ce0=_0x93a92f['model']['document']['selection'],_0x202920=_0x16c233&&void 0x0!==_0x16c233['forceValue']?_0x16c233['forceValue']:!_0x537705['value'];let _0x43ffea;_0x16c233['language']||(_0x16c233['language']=_0x4564ee[0x0]['language']),_0x43ffea=_0x202920?Array['from'](_0x1a0ce0['getSelectedBlocks']())['filter'](_0x521b10=>{return zt(_0x521b10)||(_0x12bd87=_0x521b10,_0x5b473f=_0x416fbd['schema'],!_0x12bd87['is']('rootElement')&&!_0x5b473f['isLimit'](_0x12bd87)&&_0x5b473f['checkChild'](_0x12bd87['parent'],'codeBlock'));var _0x12bd87,_0x5b473f;}):Array['from'](_0x1a0ce0['getSelectedBlocks']())['filter'](_0xeb5305=>zt(_0xeb5305));const _0x4abf80=Ct(_0x43ffea,_0x416fbd);_0x416fbd['change'](()=>{for(const _0x4bad4f of _0x4abf80)_0x3f8dc0['markBlockFormat'](_0x4bad4f,{'commandName':'codeBlock','commandParams':[{..._0x16c233,'forceValue':_0x202920}],'formatGroupId':'blockName'});});}),(_0x3f8dc0['descriptionFactory']['registerElementLabel']('codeBlock',_0x1821d1=>Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',_0x1821d1)),_0x3f8dc0['descriptionFactory']['registerDescriptionCallback'](_0x3f5b45=>{if('formatBlock'!=_0x3f5b45['type'])return;const _0xbae6fa=_0x1b148f['t'],{data:_0x876259}=_0x3f5b45;if(!_0x876259||'codeBlock'!=_0x876259['commandName'])return;const _0x2b978f=_0x876259['commandParams'][0x0]['language'],_0x39353a=_0xbae6fa(_0x4564ee['find'](_0x139233=>_0x139233['language']===_0x2b978f)['label'])['toLowerCase']();return _0x876259['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b148f,'*Set\x20format:*\x20%0',Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x39353a+')')}:{'type':'format','content':Ot(_0x1b148f,'*Remove\x20format:*\x20%0',Ot(_0x1b148f,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x4cf1f8){return'codeBlock'==_0x4cf1f8['name'];}var Kt=class extends _0x3b6d8a{afterInit(){const _0x533e5e=this['editor'];_0x533e5e['plugins']['has']('CommentsEditing')&&_0x533e5e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x3b6d8a{static get requires(){return[mt];}init(){const _0x4fbf5e=this['editor'],_0x262614=_0x4fbf5e['plugins']['get']('TrackChangesEditing');_0x262614['enableCommand']('delete');const _0x405ba4=_0x4fbf5e['commands']['get']('deleteForward');_0x262614['enableCommand']('deleteForward',(_0x5c3ac4,_0x15a09d={})=>{const _0x1da3cd=_0x4fbf5e['model']['createSelection'](_0x4fbf5e['model']['document']['selection']);_0x1da3cd['isCollapsed']&&_0x4fbf5e['model']['modifySelection'](_0x1da3cd,{'direction':'forward','unit':_0x15a09d['unit']});const _0x498db7=_0x1da3cd['getFirstRange'](),_0x157c2f=ot['fromRange'](_0x498db7);let _0x1e4bf6;_0x5c3ac4(_0x15a09d),_0x1e4bf6='$graveyard'==_0x157c2f['root']['rootName']?_0x4fbf5e['model']['createRange'](_0x498db7['start']):_0x4fbf5e['model']['createRange'](_0x157c2f['start'],_0x157c2f['end']),_0x157c2f['detach'](),_0x4fbf5e['model']['enqueueChange'](_0x405ba4['buffer']['batch'],_0x3f9627=>{_0x405ba4['buffer']['lock'](),_0x3f9627['setSelection'](_0x3f9627['createRange'](_0x1e4bf6['end'])),_0x405ba4['buffer']['unlock']();});});}},qt=class extends _0x3b6d8a{afterInit(){const _0x594721=this['editor'];if(!_0x594721['plugins']['has']('ListEditing'))return;const _0x7bcfbc=_0x594721['locale'],_0x187e71=_0x594721['plugins']['get']('TrackChangesEditing'),_0x9c0540=_0x594721['plugins']['has']('TodoListEditing'),_0x2d3667=!!_0x594721['config']['get']('list.multiBlock');function _0x24b4a2(_0x2d21d0){return{'type':'format','content':''+Ot(_0x7bcfbc,'*Set\x20format:*\x20%0',_0x2d21d0)};}function _0x108118(_0x3bfb86){return{'type':'format','content':''+Ot(_0x7bcfbc,'*Remove\x20format:*\x20%0',_0x3bfb86)};}_0x187e71['enableDefaultAttributesIntegration']('numberedList'),_0x187e71['enableDefaultAttributesIntegration']('bulletedList'),_0x187e71['enableDefaultAttributesIntegration']('customNumberedList'),_0x187e71['enableDefaultAttributesIntegration']('customBulletedList'),_0x187e71['enableDefaultAttributesIntegration']('indentList'),_0x187e71['enableDefaultAttributesIntegration']('outdentList'),_0x187e71['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x187e71['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2d3667&&(_0x187e71['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x187e71['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x9c0540&&(_0x187e71['enableDefaultAttributesIntegration']('todoList'),_0x187e71['enableDefaultAttributesIntegration']('checkTodoList'),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x195761=>{const {data:_0x195680}=_0x195761;if(_0x195680&&'todoListChecked'==_0x195680['key'])return{'type':'format','content':_0x195680['newValue']?Ot(_0x7bcfbc,'*Check\x20item*'):Ot(_0x7bcfbc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x125cd6=>{if(_0x125cd6['batch']['isUndo'])return!0x1;let _0x4f1c13=!0x1;const _0x716f54=_0x187e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c82b6=>'todoListChecked'===_0x187e71['_getAttributeKey'](_0x6c82b6));for(const _0x1c71b5 of _0x716f54)'todo'!=_0x1c71b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x187e71['_findSuggestions'](_0x1c71b5['getFirstRange'](),'attribute')['find'](_0x46b582=>'listType'===_0x187e71['_getAttributeKey'](_0x46b582['suggestion']))||(_0x125cd6['removeMarker'](_0x1c71b5['getFirstMarker']()),_0x4f1c13=!0x0));return _0x4f1c13;})),_0x187e71['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x7bcfbc,'FORMAT_INDENT'));const _0xf120a4={'type':'format','content':''};_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x282157=>{const {data:_0xb8b03d}=_0x282157;if(!_0xb8b03d||'listType'!=_0xb8b03d['key'])return;let _0x857226=_0x282157['head'];for(;_0x857226;){if(_0x857226['data']&&(('listStyle'==_0x857226['data']['key']||'listMarkerStyle'==_0x857226['data']['key'])&&(_0x857226['data']['newValue']&&'default'!=_0x857226['data']['newValue']||'default'!=_0x857226['data']['oldValue']&&!_0xb8b03d['newValue'])||!_0x2d3667&&'$elementName'==_0x857226['data']['key']))return _0xf120a4;_0x857226=_0x857226['next'];}if(null==_0xb8b03d['newValue'])switch(_0xb8b03d['oldValue']){case'bulleted':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x108118(Ot(_0x7bcfbc,'ELEMENT_TODO_LIST'));}switch(_0xb8b03d['newValue']){case'bulleted':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24b4a2(Ot(_0x7bcfbc,'ELEMENT_TODO_LIST'));}}),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x5b461c=>{const {data:_0x133d9d}=_0x5b461c;if(_0x133d9d&&'listIndent'==_0x133d9d['key'])return null==_0x133d9d['newValue']||null==_0x133d9d['oldValue']&&0x0==_0x133d9d['newValue']?_0xf120a4:void 0x0;}),_0x187e71['descriptionFactory']['registerDescriptionCallback'](_0x3d6cec=>{if('attribute'!=_0x3d6cec['type'])return;const {data:_0x666146}=_0x3d6cec;if(!_0x666146||'listItemId'!=_0x666146['key'])return;const _0x23ead7=Yt(_0x3d6cec);return'newValue'==_0x23ead7?{'type':'format','content':Ot(_0x7bcfbc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23ead7?{'type':'format','content':Ot(_0x7bcfbc,'*Split:*\x20list\x20item')}:_0xf120a4;}),_0x594721['model']['document']['registerPostFixer'](_0xc39635=>this['listItemIdFixer'](_0xc39635)),_0x594721['model']['document']['registerPostFixer'](_0x5a0af7=>this['noTrackChangesFixer'](_0x5a0af7)),_0x594721['model']['document']['on']('change:data',(_0x1aa302,_0x164982)=>{if(_0x164982['isUndo']||!_0x164982['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x4b185a){if(_0x4b185a['batch']['isUndo']||!_0x4b185a['batch']['isLocal'])return!0x1;let _0xeeafcc=!0x1;const _0x25b977=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461394=>_0x461394['data']&&'listItemId'==_0x461394['data']['key'])['filter'](_0x571ec8=>_0x571ec8['data']['newValue']&&_0x571ec8['data']['oldValue']);for(const _0x62c1a2 of _0x25b977)Yt(_0x62c1a2)||(_0x4b185a['removeMarker'](_0x62c1a2['getFirstMarker']()),_0xeeafcc=!0x0);return _0xeeafcc;}['noTrackChangesFixer'](_0x1418aa){if(_0x1418aa['batch']['isUndo']||!_0x1418aa['batch']['isLocal'])return!0x1;const _0x26279b=this['editor']['model']['document']['differ'],_0x1e6838=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e6838['trackChangesCommand']['value'])return!0x1;let _0x3d79a2=!0x1;const _0xcb6609=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x4ceede=_0x26279b['getChanges']()['filter'](_0x5a0800=>'attribute'==_0x5a0800['type'])['filter'](_0xe05d2b=>_0xcb6609['has'](_0xe05d2b['attributeKey']));if(0x0==_0x4ceede['length'])return _0x3d79a2;const _0x443686=new Set(_0x26279b['getMarkersToAdd']()['filter'](_0x17690c=>{if(!_0x17690c['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4c731a=et(_0x17690c['name'])['subType']['split']('|')[0x0];return _0xcb6609['has'](_0x4c731a);})['map'](_0x51b83e=>et(_0x51b83e['name'])['id']));for(const _0x1562af of _0x4ceede){const _0x54ec62=_0x1e6838['_findSuggestions'](_0x1562af['range'],'attribute')['filter'](_0x34765f=>{if(_0x34765f['meta']['isNextTo'])return!0x1;if(_0x443686['has'](_0x34765f['suggestion']['id']))return!0x1;const _0x17e059=_0x1e6838['_getAttributeKey'](_0x34765f['suggestion']);return _0xcb6609['has'](_0x17e059);})['map'](_0x487ffb=>_0x487ffb['suggestion']);if(_0x54ec62['length']){for(const _0x2342ff of _0x54ec62)_0x1418aa['removeMarker'](_0x2342ff['getFirstMarker']());_0x3d79a2=!0x0;}}return _0x3d79a2;}['assureChains'](){const _0x1a74c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422b40=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4ff9b6;const _0x34e7f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fb93d=>{if(_0x2fb93d['data']['oldRange']||!_0x2fb93d['data']['newRange'])return null;if(!_0x2fb93d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59c812}=et(_0x2fb93d['name']);if(!_0x1a74c3['hasSuggestion'](_0x59c812))return null;const _0x490604=_0x1a74c3['getSuggestion'](_0x59c812);return _0x422b40['includes'](_0x490604['data']['key']);})['map'](_0x32d690=>{const {id:_0x197ba7}=et(_0x32d690['name']),_0x1a598d=_0x1a74c3['getSuggestion'](_0x197ba7);return _0x4ff9b6=_0x1a598d['attributes']['groupId'],_0x1a598d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x34e7f3['size'])return;const _0x5e55b1=_0x1a74c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d0e8f=>'attribute'==_0x4d0e8f['type']&&_0x4d0e8f['data']&&_0x422b40['includes'](_0x4d0e8f['data']['key'])&&_0x4d0e8f['attributes']['groupId']!=_0x4ff9b6)['map'](_0x36413e=>({'listItem':_0x36413e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x36413e['attributes']['groupId']})),_0x1f5e9b=new Set();for(const {groupId:_0x42481d,listItem:_0x5d8092}of _0x5e55b1)_0x34e7f3['has'](_0x5d8092)&&_0x1f5e9b['add'](_0x42481d);for(const _0x5c93fb of _0x1a74c3['getSuggestions']())_0x1f5e9b['has'](_0x5c93fb['attributes']['groupId'])&&_0x5c93fb['setAttribute']('groupId',_0x4ff9b6);}_supportLegacySuggestions(){const _0x116778=this['editor'],_0x4fbe38=_0x116778['locale'],_0x5996a3=_0x116778['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5996a3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47fbff,_0x33388f){const _0xf71caf=[];for(let _0x38d901 of _0x47fbff)_0x38d901['start']['nodeAfter']===_0x38d901['end']['parent']&&(_0x38d901=_0x116778['model']['createRange'](_0x116778['model']['createPositionAt'](_0x38d901['start']['nodeAfter'],0x0))),_0xf71caf['push'](_0x38d901);_0x116778['model']['change'](_0x29d7ae=>{const _0x58c49a=_0x116778['model']['document']['selection'],_0x5d536f=Array['from'](_0x58c49a['getRanges']())['map'](_0x10f1bb=>ot['fromRange'](_0x10f1bb));_0x29d7ae['setSelection'](_0xf71caf),_0x116778['commands']['get'](_0x33388f['commandName'])['refresh'](),_0x33388f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x116778['execute'](_0x33388f['commandName'],..._0x33388f['commandParams']),_0x29d7ae['setSelection'](_0x5d536f);for(const _0x853d55 of _0x5d536f)_0x853d55['detach']();});}),_0x5996a3['descriptionFactory']['registerElementLabel'](function(_0x44f334){const _0x146af8=!_0x116778['model']['schema']['isObject'](_0x44f334),_0x552c37=_0x44f334['previousSibling'],_0x5488e0=_0x44f334['nextSibling'],_0x62528a=_0x44f334['getAttribute']('listItemId'),_0x49ea45=!_0x552c37||_0x552c37['getAttribute']('listItemId')!==_0x62528a,_0x568f21=!_0x5488e0||_0x5488e0['getAttribute']('listItemId')!==_0x62528a;return _0x146af8&&Boolean(_0x62528a)&&_0x49ea45&&_0x568f21;},_0xc1a5cc=>Ot(_0x4fbe38,'ELEMENT_LIST_ITEM',_0xc1a5cc));}_registerLegacyDescription(){const _0x1755ff=this['editor'],_0x247431=_0x1755ff['locale'];function _0x3136dd(_0x4893fa){const _0x38aa05=_0x1755ff['commands']['get']('bulletedList')['value'],_0x315964=_0x1755ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x4893fa?_0x38aa05:_0x315964;}_0x1755ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3046de){if('formatBlock'!=_0x3046de['type'])return;const {data:_0x4907d6}=_0x3046de;if(!_0x4907d6)return;let _0x2db26b,_0x1530ac,_0x593b8b,_0x44ae0f;switch(_0x4907d6['commandName']){case'bulletedList':_0x593b8b=_0x4907d6['commandParams'][0x0]['forceValue'],_0x44ae0f=_0x3136dd(_0x4907d6['commandName']),_0x2db26b=_0x593b8b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x44ae0f&&_0x1755ff['config']['get']('list.multiBlock')||(_0x2db26b='*Change\x20to:*\x20%0'),_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x593b8b=_0x4907d6['commandParams'][0x0]['forceValue'],_0x44ae0f=_0x3136dd(_0x4907d6['commandName']),_0x2db26b=_0x593b8b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x44ae0f&&_0x1755ff['config']['get']('list.multiBlock')||(_0x2db26b='*Change\x20to:*\x20%0'),_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2db26b='*Indent:*\x20%0',_0x1530ac={'type':'format','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2db26b=function(_0x2b8cf5){const _0x3f5272=_0x2b8cf5['getFirstRange']();let _0x1c5182=_0x3f5272['start']['nodeAfter'];for(;_0x1c5182&&_0x3f5272['containsItem'](_0x1c5182);){if(_0x1c5182['getAttribute']('listIndent')>0x0)return!0x1;_0x1c5182=_0x1c5182['nextSibling'];}return!0x0;}(_0x3046de)?Ot(_0x247431,'*Format:*\x20remove\x20from\x20%0',Ot(_0x247431,function(_0x586899){return'ELEMENT_'+_0x586899['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3046de))):Ot(_0x247431,'*Outdent:*\x20%0',Ot(_0x247431,'ELEMENT_LIST_ITEM')),_0x1530ac={'type':'format','content':_0x2db26b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4907d6['multipleBlocks']&&(_0x2db26b='*Merge:*\x20%0',_0x1530ac={'type':'deletion','content':Ot(_0x247431,_0x2db26b,Ot(_0x247431,'ELEMENT_LIST_ITEM'))});}return _0x1530ac;});}};function Yt(_0xe7f735){let _0x4423c0=_0xe7f735['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4423c0;){const _0x3b49fc=_0x4423c0['getAttribute']('listItemId');if(!_0x3b49fc)return!0x1;if(_0x3b49fc==_0xe7f735['data']['newValue'])return'newValue';if(_0x3b49fc==_0xe7f735['data']['oldValue'])return'oldValue';_0x4423c0=_0x4423c0['previousSibling'];}return!0x1;}var Qt=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x47bb86=this['editor']['config']['get']('list.properties'),_0x492dce=this['editor']['plugins']['get']('TrackChangesEditing');_0x47bb86['styles']&&_0x492dce['enableDefaultAttributesIntegration']('listStyle'),_0x47bb86['reversed']&&_0x492dce['enableDefaultAttributesIntegration']('listReversed'),_0x47bb86['startIndex']&&_0x492dce['enableDefaultAttributesIntegration']('listStart');const _0xb255b2={'type':'format','content':''};_0x492dce['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x121b5e=this['editor']['locale'];_0x492dce['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x121b5e,'FORMAT_LIST_REVERSED')),_0x492dce['descriptionFactory']['registerDescriptionCallback'](_0x3c27dc=>{const {data:_0x1af1ad}=_0x3c27dc;if(_0x1af1ad&&'listReversed'==_0x1af1ad['key'])return null==_0x1af1ad['newValue']||0x0==_0x1af1ad['newValue']&&null==_0x1af1ad['oldValue']?_0xb255b2:void 0x0;}),_0x492dce['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x121b5e,'FORMAT_LIST_START')),_0x492dce['descriptionFactory']['registerDescriptionCallback'](_0x23b58f=>{const {data:_0x4be8ea}=_0x23b58f;if(_0x4be8ea&&'listStart'==_0x4be8ea['key'])return null==_0x4be8ea['newValue']||0x1==_0x4be8ea['newValue']&&null==_0x4be8ea['oldValue']?_0xb255b2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ccb1e=>{if(_0x5ccb1e['batch']['isUndo'])return!0x1;let _0x508172=!0x1;const _0x4efe80=_0x492dce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16cd15=>{const _0x54d99d=_0x492dce['_getAttributeKey'](_0x16cd15);return'listStart'==_0x54d99d||'listReversed'==_0x54d99d;});for(const _0x3476aa of _0x4efe80){const _0x1bbb3b=_0x3476aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x1bbb3b&&'customNumbered'!=_0x1bbb3b&&(_0x492dce['_findSuggestions'](_0x3476aa['getFirstRange'](),'attribute')['find'](_0x46b203=>'listType'==_0x492dce['_getAttributeKey'](_0x46b203['suggestion']))||(_0x5ccb1e['removeMarker'](_0x3476aa['getFirstMarker']()),_0x508172=!0x0));}return _0x508172;}),this['_registerLegacyDescription']();}handleDescriptions(_0x27d2c2){const _0x5dd779=this['editor']['locale'],{data:_0x3bf7d6}=_0x27d2c2,_0xab5729={'type':'format','content':''};if(!_0x3bf7d6||'listStyle'!=_0x3bf7d6['key'])return;if(!_0x3bf7d6['oldValue'])return'default'==_0x3bf7d6['newValue']?_0xab5729:{'type':'format','content':''+Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['newValue'])))};if(!_0x3bf7d6['newValue']){if('default'==_0x3bf7d6['oldValue'])return _0xab5729;let _0x1de6da=_0x27d2c2['head'];for(;_0x1de6da;){if(_0x1de6da['data']&&'listType'==_0x1de6da['data']['key']&&_0x1de6da['data']['newValue'])return _0xab5729;_0x1de6da=_0x1de6da['next'];}return{'type':'format','content':''+Ot(_0x5dd779,'*Remove\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['oldValue'])))};}if('default'!=_0x3bf7d6['newValue'])return{'type':'format','content':''+Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,this['_getTranslationKeyForListStyle'](_0x3bf7d6['newValue'])))};let _0x40ed6b=_0x27d2c2['head'];for(;_0x40ed6b;){if(_0x40ed6b['data']&&'listType'==_0x40ed6b['data']['key']&&_0x40ed6b['data']['newValue']&&_0x40ed6b['data']['oldValue'])return _0xab5729;_0x40ed6b=_0x40ed6b['next'];}return{'type':'format','content':Ot(_0x5dd779,'*Set\x20format:*\x20%0',Ot(_0x5dd779,'ELEMENT_'+_0x27d2c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x483983=this['editor'],_0x4522fb=_0x483983['locale'];_0x483983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4715a8=>{if('formatBlock'!=_0x4715a8['type'])return;const {data:_0x5ea6c0}=_0x4715a8;if(!_0x5ea6c0)return;let _0x4b9a8e,_0x112027;switch(_0x5ea6c0['commandName']){case'listStyle':_0x4b9a8e='*Change\x20to:*\x20%0',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e,Ot(_0x4522fb,this['_getTranslationKeyForListStyle'](_0x5ea6c0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b9a8e=_0x5ea6c0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e)};break;case'listStart':_0x4b9a8e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x112027={'type':'format','content':Ot(_0x4522fb,_0x4b9a8e,_0x5ea6c0['commandParams'][0x0]['startIndex'])};}return _0x112027;});}_getTranslationKeyForListStyle(_0x444ee5){return'ELEMENT_'+(_0x413068=_0x444ee5,Zt['includes'](_0x413068)?'bulleted':Jt['includes'](_0x413068)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x444ee5['toUpperCase']()['replace'](/-/g,'_');var _0x413068;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x3b6d8a{afterInit(){const _0x448777=this['editor'];_0x448777['commands']['get']('emoji')&&_0x448777['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x3b6d8a{static get requires(){return[Tt];}init(){const _0x33f3c8=this['editor'],_0x33d345=_0x33f3c8['plugins']['get']('TrackChangesEditing'),_0x1b5934=_0x33f3c8['commands']['get']('enter');_0x33d345['enableCommand']('enter',()=>{_0x33f3c8['model']['change'](_0x512b5c=>{const _0x54070a=_0x33f3c8['model']['document']['selection'],_0x36dbb4=_0x54070a['getFirstPosition'](),_0x46d19d=ot['fromRange'](_0x54070a['getFirstRange']());if(_0x1b5934['enterBlock'](_0x512b5c)){const _0x46dba2=_0x33f3c8['model']['createPositionAt'](_0x36dbb4['parent']['nextSibling'],0x0),_0x5e6d9b=_0x512b5c['createRange'](_0x36dbb4,_0x46dba2);_0x33d345['markInsertion'](_0x5e6d9b);}else _0x512b5c['setSelection'](_0x512b5c['createRange'](_0x46d19d['end']));_0x46d19d['detach'](),_0x1b5934['fire']('afterExecute',{'writer':_0x512b5c});});});}},ne=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x254f65=this['editor']['plugins']['get']('TrackChangesEditing');_0x254f65['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x254f65['enableCommand']('findNext'),_0x254f65['enableCommand']('findPrevious'),_0x254f65['enableCommand']('replace'),_0x254f65['enableCommand']('replaceAll');}['handleFindCommand'](_0x26f623,_0x1ab143,_0x2f234b={}){const _0x3acc18=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26f623(_0x2544a8=>{let _0x3dfd1a=('string'==typeof _0x1ab143?_0x3acc18['findByTextCallback'](_0x1ab143,_0x2f234b):_0x1ab143)(_0x2544a8);Array['isArray'](_0x3dfd1a)&&(_0x3dfd1a={'results':_0x3dfd1a,'searchText':'string'==typeof _0x1ab143?_0x1ab143:''});const _0x3be973=_0x3dfd1a['results']['filter'](_0x8e01be=>!0x1===this['_isInDeletionRange'](_0x8e01be,_0x2544a8['item']));return{..._0x3dfd1a,'results':_0x3be973};},_0x2f234b);}_isInDeletionRange(_0x13a62d,_0x3196be){const _0x3d64fb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3196be,_0x13a62d['start']),this['editor']['model']['createPositionAt'](_0x3196be,_0x13a62d['end']));for(const _0x138634 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3d64fb['getIntersection'](_0x138634['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x3b6d8a{afterInit(){const _0x4ed85b=this['editor']['locale'],_0x2ddf13=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x217c0c,commandName:_0x413d18}of ie)this['editor']['plugins']['has'](_0x217c0c)&&_0x2ddf13['enableDefaultAttributesIntegration'](_0x413d18);_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x4ed85b,'FORMAT_FONT_SIZE')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x4ed85b,'FORMAT_FONT_FAMILY')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x4ed85b,'FORMAT_FONT_COLOR')),_0x2ddf13['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x4ed85b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x27983d=this['editor'],_0x4c2616=_0x27983d['locale'];_0x27983d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17872d=>{const _0x190459=_0x4c2616['t'];if('formatInline'!=_0x17872d['type'])return;const {data:_0xea1745}=_0x17872d;if(null!=_0xea1745){if('fontSize'==_0xea1745['commandName']){const _0x211c19=_0xea1745['commandParams'][0x0]['value'];if(_0x211c19){const _0x4b291d=_0x190459(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1b5d4a=>_0x1b5d4a['model']==_0x211c19)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20size:*\x20%0',_0x4b291d)};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xea1745['commandName']){const _0xe13cdf=_0xea1745['commandParams'][0x0]['value'];return _0xe13cdf?{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20family:*\x20%0',_0xe13cdf)}:{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20family*')};}if('fontColor'==_0xea1745['commandName']){const _0x5a95d9=_0xea1745['commandParams'][0x0]['value'];if(_0x5a95d9){const _0x4ae8dd=_0x29b02c(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa60d5e=>_0xa60d5e['model']==_0x5a95d9);let _0x35a055=_0x5a95d9,_0x15df99='';return _0x4ae8dd&&(_0x35a055=_0x4ae8dd['label'],_0x15df99=_0x190459(_0x35a055)['toLowerCase']()),{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20color:*\x20%0',_0x15df99)['trim'](),'color':{'value':_0x5a95d9,'title':_0x15df99||_0x35a055}};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xea1745['commandName']){const _0x220dea=_0xea1745['commandParams'][0x0]['value'];if(_0x220dea){const _0x2d7fbd=_0x29b02c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x30f172=>_0x30f172['model']==_0x220dea);let _0x7e3b1b=_0x220dea,_0x55a620='';return _0x2d7fbd&&(_0x7e3b1b=_0x2d7fbd['label'],_0x55a620=_0x190459(_0x7e3b1b)['toLowerCase']()),{'type':'format','content':Ot(_0x4c2616,'*Set\x20font\x20background\x20color:*\x20%0',_0x55a620)['trim'](),'color':{'value':_0x220dea,'title':_0x55a620||_0x7e3b1b}};}return{'type':'format','content':Ot(_0x4c2616,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x3b6d8a{afterInit(){const {plugins:_0x40be13}=this['editor'];_0x40be13['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x40be13['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x4440f4,plugins:_0x1c7706,commands:_0x13975c}=this['editor'],_0x5c0950=_0x1c7706['get']('TrackChangesEditing');_0x13975c['get']('footnotesStyle')&&_0x5c0950['enableDefaultAttributesIntegration']('footnotesStyle'),_0x13975c['get']('footnotesStart')&&_0x5c0950['enableDefaultAttributesIntegration']('footnotesStart'),_0x5c0950['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x4440f4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5c0950['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x4440f4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x7e32c9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2aab38,commands:_0x1407c3}=this['editor'];_0x1407c3['get']('insertFootnote')&&_0x7e32c9['enableCommand']('insertFootnote'),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x144020=>Ot(_0x2aab38,'ELEMENT_FOOTNOTE_REF',_0x144020)),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1bd58d=>Ot(_0x2aab38,'ELEMENT_FOOTNOTE_DEFINITION',_0x1bd58d)),_0x7e32c9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5208fe=>Ot(_0x2aab38,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5208fe));}},oe=class extends _0x3b6d8a{afterInit(){const _0x122613=this['editor'],_0x344352=_0x122613['plugins']['get']('TrackChangesEditing'),_0x2dccbf=_0x122613['commands']['get']('copyFormat'),_0x2cd551=_0x122613['commands']['get']('pasteFormat');_0x2dccbf&&_0x2cd551&&(_0x344352['enableDefaultAttributesIntegration']('pasteFormat'),_0x344352['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xda0161=this['editor'],_0x72db80=_0xda0161['locale'];_0xda0161['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0ddd=>{if('formatBlock'!=_0x5e0ddd['type']&&'formatInline'!=_0x5e0ddd['type'])return;const {data:_0x3e018d}=_0x5e0ddd;if(_0x3e018d&&'pasteFormat'===_0x3e018d['commandName']){const _0x2942ef=[],_0x5d868f=_0x3e018d['commandParams'][0x0];for(const [_0x29306b,_0x14fd0b]of Object['entries'](_0x5d868f))_0x2942ef['push'](ae(_0xda0161,_0x29306b,_0x14fd0b));return _0x2942ef['length']?{'type':'format','content':Ot(_0x72db80,'*Set\x20format\x20to:*\x20%0',_0x2942ef['join'](',\x20'))}:{'type':'format','content':Ot(_0x72db80,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x23e636,_0x31c8f1,_0x1a5628){const _0x5c275b=_0x23e636['locale']['t'],_0x708c5d=_0x31c8f1['split'](/(?=[A-Z])/)['join']('\x20'),_0x50c288=_0x5c275b(_0x708c5d['charAt'](0x0)['toUpperCase']()+_0x708c5d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1a5628)return _0x50c288;if('fontColor'===_0x31c8f1||'fontBackgroundColor'===_0x31c8f1){const _0x2c15ab=_0x29b02c(_0x23e636['config']['get']('fontColor.colors'))['find'](_0x5ec44d=>_0x5ec44d['model']==_0x1a5628);return _0x50c288+'\x20('+(_0x2c15ab?_0x5c275b(_0x2c15ab['label'])['toLowerCase']():_0x1a5628)+')';}if('fontSize'===_0x31c8f1&&isNaN(parseFloat(_0x1a5628))){const _0x1a52cf=_0x23e636['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23e636['config']['get']('fontSize.options'))['find'](_0x1f1f70=>_0x1f1f70['model']==_0x1a5628);return _0x50c288+'\x20('+(_0x1a52cf?_0x5c275b(_0x1a52cf['title'])['toLowerCase']():_0x1a5628)+')';}return _0x50c288+'\x20('+_0x1a5628+')';}var ce=class extends _0x3b6d8a{afterInit(){const _0x3beaba=this['editor'];if(!_0x3beaba['plugins']['has']('GeneralHtmlSupport')||!_0x3beaba['plugins']['has']('DataSchema'))return;const _0x4db31d=_0x3beaba['plugins']['get']('TrackChangesEditing'),_0x429a91=_0x3beaba['plugins']['get']('GeneralHtmlSupport'),_0x21cd50=_0x3beaba['plugins']['get']('DataSchema'),_0x31bb34=_0x3beaba['locale'],_0x55e431=new Set(['htmlContent']);for(const _0x1e1290 of _0x21cd50['getDefinitionsForView'](/.*/,!0x1)){const _0x43f76b=_0x1e1290['view'],_0x1bc645=_0x429a91['getGhsAttributeNameForElement'](_0x43f76b);_0x55e431['add'](_0x1bc645),!_0x1e1290['isInline']||_0x1e1290['isObject']||'appliesToBlock'in _0x1e1290&&_0x1e1290['appliesToBlock']||_0x4db31d['descriptionFactory']['registerAttributeLabel'](_0x1bc645,_0x43f76b),_0x1e1290['model']['startsWith']('html')&&_0x4db31d['descriptionFactory']['registerElementLabel'](_0x1e1290['model'],_0x4b2882=>Ot(_0x31bb34,'ELEMENT_HTML_TAG',[_0x4b2882,_0x43f76b]));}_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x31bb34,'FORMAT_RAW_HTML_CONTENT')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x31bb34,'FORMAT_HTML_LIST_ITEM')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x31bb34,'FORMAT_HTML_BULLETED_LIST')),_0x4db31d['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x31bb34,'FORMAT_HTML_NUMBERED_LIST')),_0x4db31d['descriptionFactory']['registerDescriptionCallback'](_0x12ef64=>{if('attribute'!==_0x12ef64['type'])return;const _0x50636d=_0x12ef64['data'];if(!_0x50636d||!_0x55e431['has'](_0x50636d['key']))return;if('htmlContent'===_0x50636d['key'])return{'type':'format','content':Ot(_0x31bb34,'*Change\x20%0\x20content*',Ot(_0x31bb34,'ELEMENT_RAW_HTML'))};const {setItems:_0x498ba2,removeItems:_0x25c8d4}=function(_0xe8490b,_0x94d78,_0x36caa5){const _0x333831=[],_0x4df5e0=[],_0x518d25=_0xe8490b['styles']??{},_0x5c35a1=_0x94d78['styles']??{};for(const _0xe408cd of new Set([...Object['keys'](_0x518d25),...Object['keys'](_0x5c35a1)]))_0x518d25[_0xe408cd]!==_0x5c35a1[_0xe408cd]&&(void 0x0===_0x5c35a1[_0xe408cd]?_0x4df5e0['push'](_0xe408cd):_0x333831['push'](_0xe408cd+'\x20('+_0x5c35a1[_0xe408cd]+')'));const _0x51913a=Ot(_0x36caa5,'FORMAT_HTML_CLASS'),_0x4d0618=new Set(_0xe8490b['classes']??[]),_0x334f92=new Set(_0x94d78['classes']??[]),_0x423e18=[..._0x334f92]['some'](_0x4b267b=>!_0x4d0618['has'](_0x4b267b)),_0xfac8be=[..._0x4d0618]['some'](_0x45289e=>!_0x334f92['has'](_0x45289e));_0x423e18&&_0x333831['push'](_0x51913a),_0xfac8be&&_0x4df5e0['push'](_0x51913a);const _0x49d39c=Ot(_0x36caa5,'FORMAT_HTML_ATTRIBUTE'),_0x3e755d=_0xe8490b['attributes']??{},_0xbf5ebf=_0x94d78['attributes']??{};let _0x19a150=!0x1,_0x10e44a=!0x1;for(const _0x2f75ca of new Set([...Object['keys'](_0x3e755d),...Object['keys'](_0xbf5ebf)]))_0x3e755d[_0x2f75ca]!==_0xbf5ebf[_0x2f75ca]&&(void 0x0===_0xbf5ebf[_0x2f75ca]?_0x10e44a=!0x0:_0x19a150=!0x0);return _0x19a150&&_0x333831['push'](_0x49d39c),_0x10e44a&&_0x4df5e0['push'](_0x49d39c),{'setItems':_0x333831,'removeItems':_0x4df5e0};}(_0x50636d['oldValue']??{},_0x50636d['newValue']??{},_0x31bb34);if(!_0x498ba2['length']&&!_0x25c8d4['length'])return;const _0xfeaa82=[];return _0x498ba2['length']&&_0xfeaa82['push'](Ot(_0x31bb34,'*Set\x20format:*\x20%0',_0x498ba2['join'](',\x20'))),_0x25c8d4['length']&&_0xfeaa82['push'](Ot(_0x31bb34,'*Remove\x20format:*\x20%0',_0x25c8d4['join'](',\x20'))),{'type':'format','content':_0xfeaa82['join']('\x0a')};});}},le=class extends _0x3b6d8a{_headingOptions;afterInit(){const _0x15c097=this['editor'];if(!_0x15c097['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x15c097['config']['get']('heading.options');const _0x338714=_0x15c097['locale'],_0xde4f19=_0x15c097['plugins']['get']('TrackChangesEditing');_0xde4f19['enableDefaultAttributesIntegration']('heading');for(const _0x1f85b5 of this['_headingOptions'])'paragraph'!=_0x1f85b5['model']&&_0xde4f19['descriptionFactory']['registerElementLabel'](_0x1f85b5['model'],_0x5bc2a7=>{const _0x56b09c=this['_getHeadingLevel'](_0x1f85b5['model']);return null!==_0x56b09c?_0x513ace(_0x5bc2a7,_0x56b09c):_0x5e43a9(_0x5bc2a7,_0x1f85b5['title']);});function _0x513ace(_0x4a953c,_0x575020){return Ot(_0x338714,'ELEMENT_HEADING',[_0x4a953c,_0x575020]);}function _0x5e43a9(_0x9ad5c2,_0x363212){return Ot(_0x338714,'ELEMENT_HEADING_CUSTOM',[_0x9ad5c2,_0x363212]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x400658=this['editor'],_0x2aee74=_0x400658['locale'];function _0x11425a(_0x43463e,_0x37334d){return Ot(_0x2aee74,'ELEMENT_HEADING_CUSTOM',[_0x43463e,_0x37334d]);}_0x400658['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43017c=>{if('formatBlock'!=_0x43017c['type'])return;const {data:_0x4b17a0}=_0x43017c;if(_0x4b17a0&&'heading'==_0x4b17a0['commandName']){const _0x34fe2b=_0x4b17a0['commandParams'][0x0]['value'],_0x1818f9=this['_getHeadingLevel'](_0x34fe2b);if(null!==_0x1818f9)return{'type':'format','content':Ot(_0x2aee74,'*Change\x20to:*\x20%0',(_0x4855f9=0x1,_0x5db5b5=_0x1818f9,Ot(_0x2aee74,'ELEMENT_HEADING',[_0x4855f9,_0x5db5b5])))};const _0x164c33=this['_headingOptions']['find'](_0x50f9d9=>_0x50f9d9['model']===_0x34fe2b)['title'];return{'type':'format','content':Ot(_0x2aee74,'*Change\x20to:*\x20%0',_0x11425a(0x1,_0x164c33))};}var _0x4855f9,_0x5db5b5;});}_getHeadingLevel(_0x255934){const _0x3f9aee=_0x255934['match'](/^heading(\d+)/);if(_0x3f9aee)return _0x3f9aee[0x1];const _0x15677e=this['_headingOptions']?.['find'](_0x39087b=>_0x39087b['model']==_0x255934);if(_0x15677e&&_0x15677e['view']){const _0x4cf3c2=_0x15677e['view'],_0xb6ee27=(_0x4cf3c2['name']??_0x4cf3c2)['match'](/^h(\d+)/);if(_0xb6ee27)return _0xb6ee27[0x1];}return null;}},ue=class extends _0x3b6d8a{afterInit(){const _0x283cc2=this['editor'];if(!_0x283cc2['plugins']['has']('HighlightEditing'))return;const _0x5b5ab3=_0x283cc2['plugins']['get']('TrackChangesEditing'),_0x2e9ed9=_0x283cc2['locale'];_0x5b5ab3['enableDefaultAttributesIntegration']('highlight'),_0x5b5ab3['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x2e9ed9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3da176=this['editor'],_0x1923ca=_0x3da176['locale'];_0x3da176['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f740f=>{if('formatInline'!=_0x4f740f['type'])return;const {data:_0x397954}=_0x4f740f;if(_0x397954&&'highlight'==_0x397954['commandName']){const _0x46d0c1=_0x1923ca['t'],_0x2e010a=_0x397954['commandParams'][0x0]['value'];if(_0x2e010a){const _0x4dfc23=_0x3da176['config']['get']('highlight.options')['find'](_0x390113=>_0x390113['model']==_0x2e010a),_0x128ff3=_0x46d0c1(_0x4dfc23['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x1923ca,'*Set\x20highlight:*\x20%0',_0x128ff3),'color':{'value':_0x4dfc23['color'],'title':_0x4dfc23['title']}};}return{'type':'format','content':Ot(_0x1923ca,'*Remove\x20highlight*',Ot(_0x1923ca,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x3b6d8a{afterInit(){const _0x26fa1d=this['editor'];if(!_0x26fa1d['plugins']['has']('HorizontalLineEditing'))return;_0x26fa1d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x559d74=_0x26fa1d['plugins']['get']('TrackChangesEditing'),_0x871877=_0x26fa1d['locale'];_0x559d74['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5540ca=>Ot(_0x871877,'ELEMENT_HORIZONTAL_LINE',_0x5540ca));}},he=class extends _0x3b6d8a{afterInit(){const _0x53de02=this['editor'];if(!_0x53de02['plugins']['has']('HtmlEmbed'))return;const _0x7d4f22=_0x53de02['plugins']['get']('TrackChangesEditing'),_0x5853a4=_0x53de02['locale'];_0x7d4f22['descriptionFactory']['registerElementLabel']('rawHtml',_0x56cd68=>Ot(_0x5853a4,'ELEMENT_HTML_EMBED',_0x56cd68)),_0x7d4f22['enableDefaultAttributesIntegration']('htmlEmbed'),_0x7d4f22['descriptionFactory']['registerDescriptionCallback'](_0x55b66b=>{if('attribute'!=_0x55b66b['type'])return;const {data:_0x1e6460}=_0x55b66b;if(_0x1e6460&&'value'==_0x1e6460['key']&&_0x55b66b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1da4ae=Ot(_0x5853a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x5853a4,'*Change\x20%0\x20content*',_0x1da4ae)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a8602=this['editor'],_0x5430eb=_0x3a8602['locale'];_0x3a8602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36f903=>{if('formatBlock'!=_0x36f903['type'])return;const {data:_0x52be03}=_0x36f903;if(_0x52be03&&'htmlEmbed'==_0x52be03['commandName']){const _0xb3fb3=Ot(_0x5430eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x5430eb,'*Change\x20%0\x20content*',_0xb3fb3)};}});}},ge=class extends _0x3b6d8a{afterInit(){const _0x9b648d=this['editor'];if(!_0x9b648d['plugins']['has']('ImageEditing'))return;const _0x3028a6=_0x9b648d['plugins']['get']('TrackChangesEditing'),_0x4c53cf=_0x9b648d['plugins']['get']('ImageUtils'),_0x17f07c=_0x9b648d['locale'];_0x3028a6['enableCommand']('insertImage'),_0x3028a6['descriptionFactory']['registerElementLabel']('imageBlock',_0x5275da=>Ot(_0x17f07c,'ELEMENT_IMAGE',_0x5275da)),_0x3028a6['descriptionFactory']['registerElementLabel']('imageInline',_0x4ffa8d=>Ot(_0x17f07c,'ELEMENT_INLINE_IMAGE',_0x4ffa8d)),_0x3028a6['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x17f07c,'ELEMENT_CAPTION')),_0x9b648d['plugins']['has']('ImageUploadEditing')&&_0x3028a6['enableCommand']('uploadImage'),_0x9b648d['plugins']['has']('ImageBlockEditing')&&_0x9b648d['plugins']['has']('ImageInlineEditing')&&(_0x3028a6['enableCommand']('imageTypeInline',(_0x39de3d,_0x22d6ba)=>{const _0x14a675=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']);_0x9b648d['model']['change'](()=>{_0x3028a6['markBlockFormat'](_0x14a675,{'commandName':'imageTypeInline','commandParams':[_0x22d6ba]},[],'convertBlockImageToInline');});}),_0x3028a6['enableCommand']('imageTypeBlock',(_0x62844b,_0x5f4541)=>{_0x9b648d['model']['change'](_0x327525=>{let _0x1f1933=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x4d8095=_0x327525['createRangeOn'](_0x1f1933);const _0x3cbb18=rt['fromPosition'](_0x4d8095['start'],'toPrevious'),_0x5a6977=rt['fromPosition'](_0x4d8095['end'],'toNext');_0x3028a6['forceDefaultExecution'](()=>_0x62844b(_0x5f4541)),_0x1f1933=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x4d8095=_0x327525['createRangeOn'](_0x1f1933);const _0x3d2cb4=_0x327525['createRange'](_0x3cbb18,_0x5a6977);_0x3cbb18['detach'](),_0x5a6977['detach'](),_0x3028a6['markBlockFormat'](_0x1f1933,{'commandName':'imageTypeInline','commandParams':[_0x5f4541]},[],'convertInlineImageToBlock'),_0x3d2cb4['start']['isBefore'](_0x4d8095['start'])&&_0x3028a6['markInsertion'](_0x327525['createRange'](_0x3d2cb4['start'],_0x4d8095['start']),'convertInlineImageToBlock'),_0x4d8095['end']['isBefore'](_0x3d2cb4['end'])&&_0x3028a6['markInsertion'](_0x327525['createRange'](_0x4d8095['end'],_0x3d2cb4['end']),'convertInlineImageToBlock');});}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3028a6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3635a7])=>{const _0x515d19=_0x3028a6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x113424=_0x3635a7['start'],_0xec91a3=_0x3635a7['end'];const _0x292b76=_0x9b648d['model']['schema']['getNearestSelectionRange'](_0x113424,'backward'),_0x28e566=_0x9b648d['model']['schema']['getNearestSelectionRange'](_0xec91a3,'forward');_0x292b76['isCollapsed']&&(_0x113424=_0x292b76['start']),_0x28e566['isCollapsed']&&(_0xec91a3=_0x28e566['end']),_0x515d19([_0x9b648d['model']['createRange'](_0x113424,_0xec91a3)]);}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe2a944),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe2a944)),_0x9b648d['plugins']['has']('ImageCaptionEditing')&&(_0x3028a6['enableCommand']('toggleImageCaption',(_0xade164,_0x550062)=>{const _0x5dc8fe=_0x9b648d['plugins']['get']('ImageCaptionUtils');let _0x2b8278=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x5c821e=_0x5dc8fe['getCaptionFromImageModelElement'](_0x2b8278);_0x9b648d['model']['change'](()=>{if(_0x5c821e)return void _0x3028a6['markDeletion'](_0x9b648d['model']['createRangeOn'](_0x5c821e));const _0xe8158=_0x4c53cf['isBlockImage'](_0x2b8278);_0xade164(_0x550062),_0x2b8278=_0x4c53cf['getClosestSelectedImageElement'](_0x9b648d['model']['document']['selection']),_0x5c821e=_0x5dc8fe['getCaptionFromImageModelElement'](_0x2b8278),_0x3028a6['markInsertion'](_0x9b648d['model']['createRangeOn'](_0x5c821e),_0xe8158?null:'imageCaption');});}),_0x3028a6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe2a944));const _0x1d148c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7f3997(_0x59d890,_0x2e8a47){const _0x6d15ad=_0x1d148c['findIndex'](({type:_0x1864c6,subType:_0x133572})=>_0x59d890['type']==_0x1864c6&&_0x59d890['subType']==_0x133572),_0x2639bb=_0x1d148c['findIndex'](({type:_0x1ea735,subType:_0x2f4e1f})=>_0x2e8a47['type']==_0x1ea735&&_0x2e8a47['subType']==_0x2f4e1f);if(_0x6d15ad<0x0||_0x2639bb<0x0)return!0x1;const _0x50783c=_0x59d890['getFirstRange'](),_0x1746e3=_0x2e8a47['getFirstRange']();if((0x0==_0x6d15ad||0x1==_0x6d15ad)&&0x2==_0x2639bb&&_0x50783c['isIntersecting'](_0x1746e3))return!0x0;if(0x2==_0x6d15ad&&0x3==_0x2639bb){const _0x28bbb0=_0x3028a6['_findSuggestions'](_0x50783c,'insertion')['filter'](({suggestion:_0x507d6f,meta:_0x4587f1})=>_0x4587f1['isOwn']&&'convertInlineImageToBlock'==_0x507d6f['subType']);if(_0x28bbb0['length']>0x1&&_0x1746e3['end']['isEqual'](_0x50783c['start']))return!0x0;if(0x1==_0x28bbb0['length']&&(_0x50783c['start']['isEqual'](_0x1746e3['end'])||_0x50783c['end']['isEqual'](_0x1746e3['start'])))return!0x0;}if(0x3==_0x6d15ad&&0x3==_0x2639bb&&_0x50783c['start']['isBefore'](_0x1746e3['start'])){const _0x309d00=_0x50783c['end']['nodeAfter'],_0x4d3f5a=_0x1746e3['start']['nodeBefore'];return _0x4c53cf['isBlockImage'](_0x309d00)&&_0x309d00===_0x4d3f5a;}return!0x1;}function _0xe2a944(_0x511b0d,_0x4e2f24){return _0x7f3997(_0x511b0d,_0x4e2f24)?[_0x511b0d,_0x4e2f24]:_0x7f3997(_0x4e2f24,_0x511b0d)?[_0x4e2f24,_0x511b0d]:null;}_0x9b648d['plugins']['has']('ImageResize')&&(_0x3028a6['enableDefaultAttributesIntegration']('resizeImage'),_0x3028a6['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x17f07c,'FORMAT_IMAGE_SIZE'))),_0x9b648d['plugins']['has']('ImageTextAlternativeEditing')&&_0x3028a6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9b648d['plugins']['has']('PictureEditing')&&_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x41a298=>{if('attribute'!=_0x41a298['type'])return;const {data:_0x14cdfd}=_0x41a298;return _0x14cdfd&&'sources'==_0x14cdfd['key']?{'type':'format','content':''}:void 0x0;}),_0x9b648d['plugins']['has']('ImageSizeAttributes')&&_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x32e820=>{if('attribute'!=_0x32e820['type'])return;const {data:_0x2aada9}=_0x32e820;return!_0x2aada9||'width'!=_0x2aada9['key']&&'height'!=_0x2aada9['key']?void 0x0:{'type':'format','content':''};}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x3c09ee=>{if(_0x1d148c['find'](({type:_0x3fbe16,subType:_0x252fe5})=>_0x3c09ee['type']==_0x3fbe16&&_0x3c09ee['subType']==_0x252fe5))return _0x3c09ee['previous']?{}:void 0x0;}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x4fce33=>{if('insertion'==_0x4fce33['type']||'deletion'==_0x4fce33['type']){const _0xee4072=_0x4fce33['getContainedElement']();if(_0xee4072&&_0xee4072['is']('element','caption'))return{'type':'insertion'==_0x4fce33['type']?'addObject':'removeObject','element':_0xee4072,'quantity':0x1};}}),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x18d6be=>'formatBlock'==_0x18d6be['type']&&'convertInlineImageToBlock'==_0x18d6be['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18d6be['type']&&'convertBlockImageToInline'==_0x18d6be['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3028a6['descriptionFactory']['registerDescriptionCallback'](_0x83cf69=>{if('attribute'!=_0x83cf69['type'])return;const {data:_0x347105}=_0x83cf69;if(!_0x347105||'alt'!=_0x347105['key'])return;const _0x1558ac=_0x347105['newValue'];return _0x1558ac?{'type':'format','content':Ot(_0x17f07c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1558ac+'\x22')}:{'type':'format','content':Ot(_0x17f07c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x38e79a=this['editor'],_0x414fa6=_0x38e79a['locale'];_0x38e79a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9592b=>{if('formatBlock'!=_0xa9592b['type']&&'formatInline'!=_0xa9592b['type'])return;const {data:_0x477fba}=_0xa9592b;if(_0x477fba){if('imageTextAlternative'==_0x477fba['commandName']){const _0x56b116=_0x477fba['commandParams'][0x0]['newValue'];return _0x56b116?{'type':'format','content':Ot(_0x414fa6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56b116+'\x22')}:{'type':'format','content':Ot(_0x414fa6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x477fba['commandName']){const _0x157efb=_0x477fba['commandParams'][0x0]['width'];return _0x157efb?{'type':'format','content':Ot(_0x414fa6,'*Set\x20image\x20width:*\x20%0',_0x157efb)}:{'type':'format','content':Ot(_0x414fa6,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x566d5d=this['editor']['locale'],_0x56e438=this['editor']['plugins']['get']('TrackChangesEditing');_0x56e438['enableDefaultAttributesIntegration']('replaceImageSource'),_0x56e438['descriptionFactory']['registerDescriptionCallback'](_0xeec2df=>{if('attribute'!=_0xeec2df['type'])return;const {data:_0x13d36e}=_0xeec2df;return _0x13d36e&&'src'==_0x13d36e['key']?_0x13d36e['newValue']&&_0x13d36e['oldValue']?{'type':'format','content':Ot(_0x566d5d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4817bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4817bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4817bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4817bb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4817bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x29a53=this['editor'],_0x2b63df=_0x29a53['locale'];_0x29a53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cff2f=>{if('formatBlock'!=_0x1cff2f['type']&&'formatInline'!=_0x1cff2f['type'])return;const {data:_0x2f7676}=_0x1cff2f;return _0x2f7676&&'replaceImageSource'==_0x2f7676['commandName']?{'type':'format','content':Ot(_0x2b63df,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x3b6d8a{afterInit(){const _0x554996=this['editor'];if(!_0x554996['plugins']['has']('ImageStyleEditing'))return;const _0x3b96d0=_0x554996['plugins']['get']('TrackChangesEditing'),_0x25dfee=_0x554996['plugins']['get']('ImageUtils'),_0x16b90b={};_0x3b96d0['enableCommand']('imageStyle',(_0x2c79fc,_0x3b4905)=>{const _0x26484a=_0x554996['plugins']['get']('Users')['me'],_0x30b4a3=_0x554996['commands']['get']('imageStyle');let _0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),_0x491546=_0x554996['model']['createRangeOn'](_0x50ca90),_0x3169a6=_0x30b4a3['value'];if(_0x3169a6==_0x3b4905['value'])return;if(_0x3b4905['value']&&_0x25dfee['isInlineImage'](_0x50ca90)&&!_0x30b4a3['isStyleEnabled'](_0x3b4905['value']))return;const _0x15e455={'commandName':'imageStyle','commandParams':[_0x3b4905],'formatGroupId':_0x3223bf()};_0x554996['model']['change'](()=>{if(_0x3b96d0['getSuggestions']()['filter'](_0x47322d=>_0x47322d['isInContent']&&_0x26484a==_0x47322d['author']&&('formatBlock'==_0x47322d['type']||'formatInline'==_0x47322d['type'])&&('imageStylePreApply'==_0x47322d['subType']||'imageStylePostApply'==_0x47322d['subType'])&&_0x47322d['getFirstRange']()['isEqual'](_0x491546))['forEach'](_0x22d55c=>_0x3b96d0['discardSuggestion'](_0x22d55c['head'])),_0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),_0x491546=_0x554996['model']['createRangeOn'](_0x50ca90),_0x30b4a3['refresh'](),_0x554996['commands']['get']('imageTypeInline')['refresh'](),_0x554996['commands']['get']('imageTypeBlock')['refresh'](),_0x3169a6=_0x30b4a3['value'],_0x3169a6!=_0x3b4905['value'])return _0x25dfee['isInlineImage'](_0x50ca90)&&_0x30b4a3['shouldConvertImageType'](_0x3b4905['value'],_0x50ca90)?(_0x2c79fc({..._0x3b4905,'setImageSizes':!0x1}),_0x50ca90=_0x25dfee['getClosestSelectedImageElement'](_0x554996['model']['document']['selection']),void _0x3b96d0['markBlockFormat'](_0x50ca90,{..._0x15e455,'commandReversedParams':[{'value':_0x3169a6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25dfee['isBlockImage'](_0x50ca90)?_0x3b96d0['markBlockFormat'](_0x50ca90,_0x15e455,[],'imageStylePostApply'):_0x3b96d0['markInlineFormat'](_0x491546,_0x15e455,'imageStylePostApply'));});});for(const _0x31f457 of _0x554996['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x16b90b[_0x31f457['name']]=_0x31f457['title']['toLowerCase']();_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xa3cb78])=>{_0x25dfee['setImageNaturalSizeAttributes'](_0xa3cb78['getContainedElement']());}),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x27040a,_0x178d56)=>{_0x3b96d0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x27040a,{'commandName':_0x178d56['commandName'],'commandParams':_0x178d56['commandReversedParams']});}),_0x3b96d0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x501e18,_0x2d211b){return _0xd414e0(_0x501e18,_0x2d211b)?[_0x501e18,_0x2d211b]:_0xd414e0(_0x2d211b,_0x501e18)?[_0x2d211b,_0x501e18]:null;});const _0x79839c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd414e0(_0x36cb8d,_0x3a01d4){const _0x1929d5=_0x79839c['findIndex'](({type:_0x39b723,subType:_0xadd678})=>_0x36cb8d['type']==_0x39b723&&_0x36cb8d['subType']==_0xadd678),_0x3a1857=_0x79839c['findIndex'](({type:_0x5add4f,subType:_0x112bbd})=>_0x3a01d4['type']==_0x5add4f&&_0x3a01d4['subType']==_0x112bbd);if(_0x1929d5<0x0||_0x3a1857<0x0)return!0x1;const _0x59756c=_0x36cb8d['getFirstRange'](),_0xb9142c=_0x3a01d4['getFirstRange']();if((0x0==_0x1929d5||0x1==_0x1929d5)&&0x2==_0x3a1857&&_0x59756c['isIntersecting'](_0xb9142c))return!0x0;if(0x2==_0x1929d5&&0x3==_0x3a1857){const _0x5bf37d=_0x3b96d0['_findSuggestions'](_0x59756c,'insertion')['filter'](({suggestion:_0x210454,meta:_0x541d66})=>_0x541d66['isOwn']&&'convertInlineImageToBlock'==_0x210454['subType']);if(_0x5bf37d['length']>0x1&&_0xb9142c['end']['isEqual'](_0x59756c['start']))return!0x0;if(0x1==_0x5bf37d['length']&&(_0x59756c['start']['isEqual'](_0xb9142c['end'])||_0x59756c['end']['isEqual'](_0xb9142c['start'])))return!0x0;}if(0x3==_0x1929d5&&0x3==_0x3a1857&&_0x59756c['start']['isBefore'](_0xb9142c['start'])){const _0x2dfe6e=_0x59756c['end']['nodeAfter'],_0x3b14d2=_0xb9142c['start']['nodeBefore'];return _0x25dfee['isBlockImage'](_0x2dfe6e)&&_0x2dfe6e===_0x3b14d2;}return!0x1;}_0x554996['model']['document']['registerPostFixer'](()=>{let _0x3a6a4a=!0x1;const _0x11e33b=Array['from'](_0x554996['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a0d33,data:_0x783b5f}of _0x11e33b){const {group:_0x1ac018,type:_0x249b6e,subType:_0x236aab,id:_0x3e202c}=et(_0x4a0d33);if('suggestion'==_0x1ac018&&_0x3b96d0['hasSuggestion'](_0x3e202c)){if('formatBlock'==_0x249b6e&&('imageStylePreApply'==_0x236aab||'imageStylePostApply'==_0x236aab)){const _0x1d075a=_0x3b96d0['getSuggestion'](_0x3e202c);if(_0x783b5f['newRange']){const _0x2fcec1=_0x1d075a['getFirstRange']()['getContainedElement']();if(_0x25dfee['isBlockImage'](_0x2fcec1))continue;_0x3b96d0['discardSuggestion'](_0x1d075a),_0x3a6a4a=!0x0;}}if('insertion'==_0x249b6e&&'imageCaption'==_0x236aab&&!_0x783b5f['newRange']){const _0x2161bc=_0x3b96d0['getSuggestion'](_0x3e202c);_0x2161bc['next']&&_0x2161bc['next']['isInContent']&&(_0x3b96d0['discardSuggestion'](_0x2161bc['next']),_0x3a6a4a=!0x0);}}}return _0x3a6a4a;}),this['_registerLegacyDescription'](_0x16b90b);}_registerLegacyDescription(_0x44e412){const _0x27a6fb=this['editor'],_0x5b44ec=_0x27a6fb['locale'];_0x27a6fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8efefe=>{if('formatBlock'!=_0x8efefe['type']&&'formatInline'!=_0x8efefe['type'])return;const {data:_0x4fda8e}=_0x8efefe;if(!_0x4fda8e||'imageStyle'!=_0x4fda8e['commandName'])return;const _0x1b58de=_0x4fda8e['commandParams'][0x0]['value'];return _0x592776('side'===_0x1b58de?Ot(_0x5b44ec,'FORMAT_SIDE_IMAGE'):_0x44e412[_0x1b58de]||_0x1b58de);function _0x592776(_0x400c3e){return{'type':'format','content':Ot(_0x5b44ec,'*Format:*\x20%0',_0x400c3e)};}});}},Ee=class extends _0x3b6d8a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5f052f){super(_0x5f052f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x470680=this['editor'],_0x334b14=_0x470680['commands']['get']('importWord'),_0x3e572f=_0x470680['commands']['get']('trackChanges');_0x334b14&&(_0x334b14['on']('execute',(_0x540220,[,_0x1463fe])=>{this['_trackChangesValueDuringImport']=_0x3e572f['value'],_0x1463fe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x334b14,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x334b14,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e572f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x470680['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x453d0c,_0x44efd0){const {suggestions:_0x31e7b6}=_0x44efd0,_0x2abf60=this['editor']['commands']['get']('trackChanges'),_0x73b7bb=_0x2abf60['value'];this['_trackChangesValueDuringImport']!==_0x73b7bb&&(_0x2abf60['execute'](),this['_trackChangesExecuted']=!0x0),_0x31e7b6&&_0x31e7b6['forEach'](({id:_0x547687,type:_0x262b65,author:_0x20d806,created_at:_0x223625})=>{const _0x365a3c={'id':_0x547687,'type':_0x262b65,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20d806,'createdAt':_0x223625?new Date(_0x223625):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x365a3c);});}},Te=class extends _0x3b6d8a{afterInit(){const _0x718c78=this['editor'],_0x381289=_0x718c78['plugins']['get']('TrackChangesEditing');if(_0x718c78['plugins']['has']('IndentEditing')&&(_0x381289['enableCommand']('indent'),_0x381289['enableCommand']('outdent')),_0x718c78['plugins']['has']('IndentBlock')){for(const _0x333b77 of['indentBlock','outdentBlock'])_0x381289['enableDefaultAttributesIntegration'](_0x333b77);if(_0x718c78['plugins']['has']('ListEditing')){for(const _0x3b9ed8 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x381289['enableDefaultAttributesIntegration'](_0x3b9ed8);}}const _0x82e0d4=_0x718c78['locale'];_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x82e0d4,'FORMAT_INDENT')),_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x82e0d4,'FORMAT_INDENT')),_0x381289['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x82e0d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2dad5f=this['editor'],_0x2e73a8=_0x2dad5f['locale'],_0x179db5=_0x2dad5f['plugins']['get']('TrackChangesEditing');_0x179db5['descriptionFactory']['registerDescriptionCallback'](_0x506b7e=>{if('formatBlock'!=_0x506b7e['type'])return;const {data:_0x43dbd0}=_0x506b7e;if(!_0x43dbd0)return;if('indentBlock'!=_0x43dbd0['commandName']&&'outdentBlock'!=_0x43dbd0['commandName'])return;const _0xb5db11=_0x506b7e['getItems']()[0x0],_0x4c159e=_0x179db5['descriptionFactory']['getItemLabel'](_0xb5db11);return'indentBlock'==_0x43dbd0['commandName']?{'type':'format','content':Ot(_0x2e73a8,'*Indent:*\x20%0',_0x4c159e)}:'outdentBlock'==_0x43dbd0['commandName']?{'type':'format','content':Ot(_0x2e73a8,'*Outdent:*\x20%0',_0x4c159e)}:void 0x0;});}},_e=class extends _0x3b6d8a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x3b6d8a{afterInit(){const _0x65b2a8=this['editor'];if(!_0x65b2a8['plugins']['has']('LinkEditing'))return;const _0x2ddf0a=_0x65b2a8['plugins']['get']('TrackChangesEditing'),_0x2ea07e=_0x65b2a8['commands']['get']('link');_0x2ddf0a['enableDefaultAttributesIntegration']('link'),_0x2ddf0a['enableDefaultAttributesIntegration']('unlink');for(const _0x3d1e27 of _0x2ea07e['manualDecorators'])_0x2ddf0a['descriptionFactory']['registerAttributeLabel'](_0x3d1e27['id'],'link\x20('+_0x3d1e27['label']['toLowerCase']()+')');_0x2ddf0a['descriptionFactory']['registerDescriptionCallback'](_0x2a02f2=>{if('attribute'!=_0x2a02f2['type'])return;const {data:_0x523013}=_0x2a02f2;if(!_0x523013||'linkHref'!=_0x523013['key'])return;const _0x39a2ab=_0x523013['newValue'],_0xa608fc=_0x65b2a8['locale'];return{'type':'format','content':null==_0x39a2ab?Ot(_0xa608fc,'*Remove\x20link*'):Ot(_0xa608fc,'*Set\x20link:*\x20%0','\x22'+_0x39a2ab+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x298e42=this['editor'],_0x2ba50c=_0x298e42['locale'];_0x298e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a99fb=>{if('formatInline'!=_0x3a99fb['type'])return;const {data:_0x27bc1c}=_0x3a99fb;if(_0x27bc1c){if('link'==_0x27bc1c['commandName']){const _0x27098c=_0x27bc1c['commandParams'][0x0];return{'type':'format','content':Ot(_0x2ba50c,'*Set\x20link:*\x20%0','\x22'+_0x27098c+'\x22')};}return'unlink'==_0x27bc1c['commandName']?{'type':'format','content':Ot(_0x2ba50c,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x3b6d8a{afterInit(){const _0x127beb=this['editor'],_0x41ac3e=_0x127beb['locale'];if(!_0x127beb['plugins']['has']('LegacyListEditing'))return;const _0x324dd1=_0x127beb['plugins']['get']('TrackChangesEditing'),_0x4af54f=_0x127beb['plugins']['has']('LegacyTodoListEditing');function _0x342e64(_0x247a54){return()=>{const _0x485b50=_0x127beb['model']['document']['selection'],_0x41763f=_0x127beb['commands']['get'](_0x247a54);if(_0x41763f['value'])return void _0x127beb['execute']('paragraph',{});const _0x7532c6=_0x247a54['slice'](0x0,-0x4),_0x5f2253=function(_0x51c107,_0x1d3d7e,_0x4d567a){let _0x580547=Array['from'](_0x51c107)['filter'](_0x112397=>function(_0x39f3f2,_0x353dc7){return _0x353dc7['checkChild'](_0x39f3f2['parent'],'listItem')&&!_0x353dc7['isObject'](_0x39f3f2);}(_0x112397,_0x4d567a));_0x580547=_0x580547['filter'](_0x117b5d=>!_0x117b5d['is']('element','listItem')||_0x117b5d['getAttribute']('listType')!=_0x1d3d7e);const _0x284699=new Set();for(const _0x265feb of _0x580547)_0x265feb['is']('element','listItem')?_0x284699['add'](Ie(_0x265feb)):_0x284699['add'](_0x265feb);return Array['from'](_0x284699);}(_0x485b50['getSelectedBlocks'](),_0x7532c6,_0x127beb['model']['schema']);_0x127beb['model']['change'](()=>{for(const _0xa5ff18 of _0x5f2253)_0x324dd1['markBlockFormat'](_0xa5ff18,{'commandName':_0x247a54,'commandParams':[{'forceValue':!_0x41763f['value']}],'formatGroupId':'blockName'},Ae(_0xa5ff18));});};}function _0x3e7450(_0x125d01){return()=>{const _0x573aa9=function(_0x20e7a1){let _0x54bf34=Array['from'](_0x20e7a1);const _0x3cb229=_0x54bf34['findIndex'](_0x49f0e3=>'listItem'!=_0x49f0e3['name']);return _0x3cb229>-0x1&&(_0x54bf34=_0x54bf34['slice'](0x0,_0x3cb229)),_0x54bf34;}(_0x127beb['model']['document']['selection']['getSelectedBlocks']()),_0x585f6c=_0x127beb['model']['createRange'](_0x127beb['model']['createPositionAt'](_0x573aa9[0x0],'before'),_0x127beb['model']['createPositionAt'](_0x573aa9[_0x573aa9['length']-0x1],'end'));_0x127beb['model']['change'](()=>{_0x324dd1['markBlockFormat'](_0x585f6c,{'commandName':_0x125d01,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d99ab){const _0x459301=new Set();for(const _0x4d4cdb of _0x1d99ab){let _0x5a1af9=_0x4d4cdb['nextSibling'];for(;_0x5a1af9&&_0x5a1af9['getAttribute']('listIndent')>_0x4d4cdb['getAttribute']('listIndent');)_0x459301['add'](_0x5a1af9),_0x5a1af9=_0x5a1af9['nextSibling'];}return Array['from'](_0x459301);}(_0x573aa9));});};}_0x324dd1['enableCommand']('numberedList',_0x342e64('numberedList')),_0x324dd1['enableCommand']('bulletedList',_0x342e64('bulletedList')),_0x4af54f&&_0x324dd1['enableCommand']('todoList',_0x342e64('todoList')),_0x324dd1['enableCommand']('indentList',_0x3e7450('indentList')),_0x324dd1['enableCommand']('outdentList',_0x3e7450('outdentList')),_0x4af54f&&_0x324dd1['enableCommand']('checkTodoList',()=>{const _0x336c42=_0x127beb['commands']['get']('checkTodoList'),_0x241699=Array['from'](_0x336c42['_selectedElements']);_0x241699['filter'](_0x5ded2e=>_0x5ded2e['getAttribute']('todoListChecked')!=_0x336c42['value']),_0x127beb['model']['change'](()=>{for(const _0x5a8942 of _0x241699)_0x324dd1['markBlockFormat'](_0x5a8942,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x336c42['value']}]});});}),_0x324dd1['descriptionFactory']['registerElementLabel']('listItem',_0x127a40=>Ot(_0x41ac3e,'ELEMENT_LIST_ITEM',_0x127a40)),_0x324dd1['descriptionFactory']['registerDescriptionCallback'](_0x568841=>{if('formatBlock'!=_0x568841['type']&&'formatInline'!=_0x568841['type'])return;const {data:_0x2aec90}=_0x568841;if(_0x2aec90){if('numberedList'==_0x2aec90['commandName']||'bulletedList'==_0x2aec90['commandName']||'todoList'==_0x2aec90['commandName'])switch(_0x2aec90['commandName']['replace']('List','')){case'bulleted':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58540f(Ot(_0x41ac3e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2aec90['commandName'])return{'type':'format','content':Ot(_0x41ac3e,'*Indent:*\x20%0',Ot(_0x41ac3e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2aec90['commandName'])return{'type':'format','content':Ot(_0x41ac3e,'*Outdent:*\x20%0',Ot(_0x41ac3e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2aec90['commandName'])return _0x2aec90['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x41ac3e,'*Check\x20item*')}:{'type':'format','content':Ot(_0x41ac3e,'*Uncheck\x20item*')};}function _0x58540f(_0x18614e){return{'type':'format','content':Ot(_0x41ac3e,'*Change\x20to:*\x20%0',_0x18614e)};}});}};function Ie(_0x72d78e){const _0x230fb6=_0x72d78e['getAttribute']('listIndent');if(0x0==_0x230fb6)return _0x72d78e;let _0x1a8bdd=_0x72d78e;for(;_0x72d78e['previousSibling']&&_0x72d78e['previousSibling']['is']('element','listItem');){const _0x4c1a65=_0x72d78e['previousSibling']['getAttribute']('listIndent');if(_0x4c1a65==_0x230fb6)_0x1a8bdd=_0x72d78e['previousSibling'];else{if(_0x4c1a65<_0x230fb6)break;}_0x72d78e=_0x72d78e['previousSibling'];}return _0x1a8bdd;}function Ae(_0x3f19cc){const _0x4e8d40=[];if(_0x3f19cc['is']('element','listItem')&&_0x3f19cc['getAttribute']('listIndent')>0x0){let _0x27b1a8=_0x3f19cc['nextSibling'];for(;_0x27b1a8&&'listItem'==_0x27b1a8['name']&&_0x27b1a8['getAttribute']('listIndent')==_0x3f19cc['getAttribute']('listIndent');)_0x4e8d40['push'](_0x27b1a8),_0x27b1a8=_0x27b1a8['nextSibling'];}return _0x4e8d40;}var be=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f948c=this['editor']['config']['get']('list.properties'),_0x202369=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f948c['styles']&&_0x202369['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f948c['reversed']&&_0x202369['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f948c['startIndex']&&_0x202369['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x202369['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x228a91,_0x5f028e={}){const _0x15b919=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18ac72=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15b919['markMultiRangeBlockFormat'](_0x18ac72,{'commandName':'listStyle','commandParams':[{'type':_0x5f028e['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x23cb7c,_0x242421={}){const _0x56f56e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa3b7d6=this['_getSuggestionBlocks'](_0xd6e8ee=>_0xd6e8ee['is']('element','listItem')&&'numbered'===_0xd6e8ee['getAttribute']('listType'));if(_0xa3b7d6['length']<0x1)return;const _0x392cc9=_0xa3b7d6['map'](_0x3f2462=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f2462,'before'),this['editor']['model']['createPositionAt'](_0x3f2462,0x0)));this['editor']['model']['change'](()=>{_0x56f56e['markMultiRangeBlockFormat'](_0x392cc9,{'commandName':'listReversed','commandParams':[{'reversed':_0x242421['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x1add28,_0x438cc3={}){const _0x154925=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d1ee=this['_getSuggestionBlocks'](_0x443f52=>_0x443f52['is']('element','listItem')&&'numbered'===_0x443f52['getAttribute']('listType'));if(_0x21d1ee['length']<0x1)return;const _0x1dc643=_0x21d1ee['map'](_0x382a8d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x382a8d,'before'),this['editor']['model']['createPositionAt'](_0x382a8d,0x0)));this['editor']['model']['change'](()=>{_0x154925['markMultiRangeBlockFormat'](_0x1dc643,{'commandName':'listStart','commandParams':[{'startIndex':_0x438cc3['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x2826d8){if('formatBlock'!=_0x2826d8['type']&&'formatInline'!=_0x2826d8['type'])return;const _0x1ce412=this['editor']['locale'],{data:_0x4049d6}=_0x2826d8;if(!_0x4049d6)return;let _0x246b14,_0x575823;switch(_0x4049d6['commandName']){case'listStyle':_0x246b14='*Change\x20to:*\x20%0',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14,Ot(_0x1ce412,this['_getTranslationKeyForListStyle'](_0x4049d6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x246b14=_0x4049d6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14)};break;case'listStart':_0x246b14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x575823={'type':'format','content':Ot(_0x1ce412,_0x246b14,_0x4049d6['commandParams'][0x0]['startIndex'])};}return _0x575823;}_getSuggestionBlocksForListStyle(){const _0x1bc01f=this['editor']['plugins']['get']('LegacyListUtils');let _0x9798fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x9798fe[0x0]?.['is']('element','listItem')&&_0x9798fe['unshift'](..._0x1bc01f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x9798fe[_0x9798fe['length']-0x1]?.['is']('element','listItem')&&_0x9798fe['push'](..._0x1bc01f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x9798fe=[...new Set(_0x9798fe)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x9798fe=_0x9798fe['filter'](_0x576376=>_0x576376['is']('element','listItem'))),_0x9798fe;}_getSuggestionBlocks(_0x419765){const _0x5d8ade=this['editor']['plugins']['get']('LegacyListUtils');let _0x219052=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x419765)['map'](_0x93673a=>{const _0x2128c2=this['editor']['model']['createPositionAt'](_0x93673a,0x0);return[..._0x5d8ade['getSiblingNodes'](_0x2128c2,'backward'),..._0x5d8ade['getSiblingNodes'](_0x2128c2,'forward')];})['flat']();return _0x219052=[...new Set(_0x219052)],_0x219052;}_getTranslationKeyForListStyle(_0x372c54){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x372c54)||'default')['toUpperCase']()+'_LIST_'+_0x372c54['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x3b6d8a{afterInit(){const _0x1eb2fb=this['editor'];if(!_0x1eb2fb['plugins']['has']('MediaEmbedEditing'))return;const _0x2465c1=_0x1eb2fb['plugins']['get']('TrackChangesEditing'),_0x2b3764=_0x1eb2fb['locale'];_0x2465c1['enableCommand']('mediaEmbed'),_0x2465c1['descriptionFactory']['registerElementLabel']('media',_0x45eb98=>Ot(_0x2b3764,'ELEMENT_MEDIA',_0x45eb98)),_0x1eb2fb['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2465c1['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2465c1['descriptionFactory']['registerDescriptionCallback'](_0x286300=>{if('attribute'!=_0x286300['type'])return;const {data:_0x3b22dd}=_0x286300;if(!_0x3b22dd||'resizedWidth'!=_0x3b22dd['key'])return;const _0x47e854=_0x286300['getContainedElement']();if(!_0x47e854||!_0x47e854['is']('element','media'))return;const _0x2a65e1=Ot(_0x2b3764,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x2b3764,'*Set\x20format:*\x20%0',_0x2a65e1)};}));}},ke=class extends _0x3b6d8a{afterInit(){const _0x56933e=this['editor'];if(!_0x56933e['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5bc2b8=_0x56933e['plugins']['get']('TrackChangesEditing'),_0xd77275=_0x56933e['locale'],_0x200aa8=_0x56933e['plugins']['get']('MediaEmbedStyleEditing'),_0x205a23={};for(const _0x2899d4 of _0x200aa8['normalizedStyles'])_0x205a23[_0x2899d4['name']]=_0x2899d4['title']['toLowerCase']();const _0x4debb5=_0x200aa8['normalizedStyles']['find'](_0x481433=>_0x481433['isDefault'])?.['name'];_0x5bc2b8['enableCommand']('mediaStyle',(_0x5bd907,_0x291b66)=>{const _0x5d4c80=_0x56933e['plugins']['get']('Users')['me'],_0x2c648e=_0x56933e['commands']['get']('mediaStyle'),_0x4e603f=function(_0x16c374){const _0x6243bb=_0x16c374['model']['document']['selection']['getSelectedElement']();return _0x6243bb&&_0x6243bb['is']('element','media')?_0x6243bb:null;}(_0x56933e);if(!_0x4e603f)return;const _0x4ab7cb=_0x56933e['model']['createRangeOn'](_0x4e603f);let _0x3fad7b=_0x2c648e['value'];if(_0x3fad7b==_0x291b66['value'])return;const _0x51dbb9={'commandName':'mediaStyle','commandParams':[_0x291b66],'formatGroupId':_0x3223bf()};_0x56933e['model']['change'](()=>{_0x5bc2b8['getSuggestions']()['filter'](_0x4c64b7=>_0x4c64b7['isInContent']&&_0x5d4c80==_0x4c64b7['author']&&'formatBlock'==_0x4c64b7['type']&&'mediaStylePostApply'==_0x4c64b7['subType']&&_0x4c64b7['getFirstRange']()['isEqual'](_0x4ab7cb))['forEach'](_0x3d99b2=>_0x5bc2b8['discardSuggestion'](_0x3d99b2['head'])),_0x2c648e['refresh'](),_0x3fad7b=_0x2c648e['value'],_0x3fad7b!=_0x291b66['value']&&_0x5bc2b8['markBlockFormat'](_0x4e603f,{..._0x51dbb9,'commandReversedParams':[{'value':'string'==typeof _0x3fad7b?_0x3fad7b:null}]},[],'mediaStylePostApply');});}),_0x5bc2b8['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5bc2b8['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x4928e4,_0x43fa8e)=>{_0x5bc2b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4928e4,{'commandName':_0x43fa8e['commandName'],'commandParams':_0x43fa8e['commandReversedParams']});}),_0x5bc2b8['descriptionFactory']['registerDescriptionCallback'](_0x528270=>{if('formatBlock'!=_0x528270['type'])return;const {data:_0xb007c4}=_0x528270;if(!_0xb007c4||'mediaStyle'!=_0xb007c4['commandName'])return;const _0x451dbe=_0xb007c4['commandParams'][0x0]['value']||_0x4debb5;if(!_0x451dbe)return;const _0x30af1f=_0x205a23[_0x451dbe]||_0x451dbe;return{'type':'format','content':Ot(_0xd77275,'*Format:*\x20%0',_0x30af1f)};});}},Re=class extends _0x3b6d8a{afterInit(){const _0x5a832a=this['editor'];_0x5a832a['plugins']['has']('MentionEditing')&&_0x5a832a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x3b6d8a{afterInit(){const _0x9f83cc=this['editor'];if(!_0x9f83cc['plugins']['has']('MergeFieldsEditing'))return;const _0x546ce3=_0x9f83cc['plugins']['get']('TrackChangesEditing'),_0x1d2c88=_0x9f83cc['locale'];_0x546ce3['enableCommand']('insertMergeField'),_0x546ce3['enableCommand']('insertMergeFieldBlock'),_0x546ce3['enableCommand']('insertMergeFieldImage'),_0x546ce3['descriptionFactory']['registerElementLabel']('mergeField',_0x1489a0=>Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD',_0x1489a0)),_0x546ce3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x546757=>Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD',_0x546757)),_0x546ce3['descriptionFactory']['registerDescriptionCallback'](_0x3d644f=>{if('insertion'!=_0x3d644f['type']&&'deletion'!=_0x3d644f['type'])return;const _0x39eeb9=_0x3d644f['getContainedElement']();if(null==_0x39eeb9)return;const _0x4d9596=_0x9f83cc['plugins']['get']('MergeFieldsEditing');let _0x58a10d;switch(_0x4d9596['getMergeFieldType'](_0x39eeb9)){case null:return;case'image':{const _0x14490b=_0x4d9596['unwrapAffixes'](_0x39eeb9['getAttribute']('src'));_0x58a10d=_0x4d9596['getLabel'](_0x14490b)||_0x14490b;break;}default:{const _0x54841f=_0x39eeb9['getAttribute']('id');_0x58a10d=_0x4d9596['getLabel'](_0x54841f)||_0x54841f;break;}}return'insertion'==_0x3d644f['type']?{'type':'insertion','content':Ot(_0x1d2c88,'*Insert:*\x20%0','\x22'+_0x58a10d+'\x22\x20'+Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x1d2c88,'*Remove:*\x20%0','\x22'+_0x58a10d+'\x22\x20'+Ot(_0x1d2c88,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x3b6d8a{afterInit(){const _0x524200=this['editor'],_0x3185d2=_0x524200['plugins']['get']('TrackChangesEditing');_0x524200['plugins']['has']('MultiLevelList')&&(_0x3185d2['enableDefaultAttributesIntegration']('multiLevelList'),_0x3185d2['descriptionFactory']['registerDescriptionCallback'](_0x3652e3=>this['handleDescriptions'](_0x3652e3)));}handleDescriptions(_0xe205a1){const _0x31f37c=this['editor']['locale'],{data:_0x44eeaf}=_0xe205a1,_0x2d5c4d={'type':'format','content':''};if(_0x44eeaf&&'listMarkerStyle'==_0x44eeaf['key']){if(!_0x44eeaf['oldValue'])return{'type':'format','content':Ot(_0x31f37c,'*Set\x20format:*\x20%0',Ot(_0x31f37c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44eeaf['newValue']+')'};if(!_0x44eeaf['newValue']){let _0xbbd603=_0xe205a1['head'];for(;_0xbbd603;){if(_0xbbd603['data']&&'listType'==_0xbbd603['data']['key']&&_0xbbd603['data']['newValue'])return _0x2d5c4d;_0xbbd603=_0xbbd603['next'];}return{'type':'format','content':Ot(_0x31f37c,'*Remove\x20format:*\x20%0',Ot(_0x31f37c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44eeaf['oldValue']+')'};}}}},Se=class extends _0x3b6d8a{afterInit(){const _0x1bcc39=this['editor'];if(!_0x1bcc39['plugins']['has']('PageBreakEditing'))return;_0x1bcc39['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x252b68=_0x1bcc39['plugins']['get']('TrackChangesEditing'),_0x528318=_0x1bcc39['locale'];_0x252b68['descriptionFactory']['registerElementLabel']('pageBreak',_0x515e4c=>Ot(_0x528318,'ELEMENT_PAGE_BREAK',_0x515e4c));}},Me=class extends _0x3b6d8a{afterInit(){const _0x126e6b=this['editor'];if(!_0x126e6b['plugins']['has']('Paragraph'))return;const _0x3dceb8=_0x126e6b['locale'],_0x44c25d=_0x126e6b['plugins']['get']('TrackChangesEditing');_0x44c25d['descriptionFactory']['registerElementLabel']('paragraph',_0x471dda=>Ot(_0x3dceb8,'ELEMENT_PARAGRAPH',_0x471dda)),_0x44c25d['enableDefaultAttributesIntegration']('paragraph'),_0x44c25d['enableCommand']('insertParagraph');const _0x2e8efb=_0x44c25d['descriptionFactory'];_0x2e8efb['registerDescriptionCallback'](_0x1e939c=>{if('insertion'!==_0x1e939c['type'])return;const {start:_0x351574,end:_0x50db6e}=_0x1e939c['getFirstRange']();if(!_0x351574['isTouching'](_0x50db6e)||!_0x351574['nodeAfter'])return;const _0x3afc40=_0x126e6b['model']['schema'],_0x389f1d=_0x351574['nodeAfter'];return _0x3afc40['isBlock'](_0x389f1d)&&!_0x3afc40['isLimit'](_0x389f1d)&&_0x3afc40['checkChild'](_0x389f1d,'$text')?{'type':'insertion','content':Ot(_0x3dceb8,'*Insert:*\x20%0',_0x2e8efb['getItemLabel'](_0x389f1d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2494ba=this['editor'],_0x1d955f=_0x2494ba['locale'];_0x2494ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7fef=>{if('formatBlock'!=_0x1e7fef['type'])return;const {data:_0x639fd7}=_0x1e7fef;return _0x639fd7&&'paragraph'==_0x639fd7['commandName']?{'type':'format','content':Ot(_0x1d955f,'*Change\x20to:*\x20%0',Ot(_0x1d955f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x3b6d8a{afterInit(){const _0x406c3c=this['editor'];_0x406c3c['commands']['get']('replaceSource')&&_0x406c3c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x3b6d8a{afterInit(){const _0x340a69=this['editor'];_0x340a69['plugins']['has']('RemoveFormatEditing')&&(_0x340a69['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x54fcac=this['editor'];_0x54fcac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42918e=>{if('formatBlock'!=_0x42918e['type']&&'formatInline'!=_0x42918e['type'])return;const {data:_0x4fceeb}=_0x42918e;return _0x4fceeb&&'removeFormat'==_0x4fceeb['commandName']?{'type':'format','content':Ot(_0x54fcac['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x3b6d8a{afterInit(){const _0xa8fe43=this['editor'];if(!_0xa8fe43['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x658307=_0xa8fe43['plugins']['get']('TrackChangesEditing');_0x658307['enableCommand']('goToPreviousRestrictedEditingException'),_0x658307['enableCommand']('goToNextRestrictedEditingException');const _0x514f8e=_0xa8fe43['plugins']['get']('RestrictedEditingModeEditing');_0x514f8e['enableCommand']('trackChanges'),_0x514f8e['enableCommand']('acceptSuggestion'),_0x514f8e['enableCommand']('discardSuggestion'),_0x514f8e['enableCommand']('acceptAllSuggestions'),_0x514f8e['enableCommand']('discardAllSuggestions'),_0x514f8e['enableCommand']('acceptSelectedSuggestions'),_0x514f8e['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x3b6d8a{afterInit(){const _0x1bfd60=this['editor'];if(!_0x1bfd60['plugins']['has']('ShiftEnter'))return;const _0x1d5a5c=_0x1bfd60['plugins']['get']('TrackChangesEditing');_0x1d5a5c['enableCommand']('shiftEnter'),_0x1d5a5c['descriptionFactory']['registerElementLabel']('softBreak',_0x109189=>Ot(_0x1bfd60['locale'],'ELEMENT_LINE_BREAK',_0x109189));}};function ve(_0x45af2c,_0x375041,_0x2710fe){const _0x78e95a=[];for(const _0x28fc67 of _0x375041['getItems']())_0x28fc67['hasAttribute'](_0x45af2c)&&_0x78e95a['push'](_0x2710fe['createRangeOn'](_0x28fc67));return _0x78e95a;}var De=class extends _0x3b6d8a{afterInit(){const _0x2743f4=this['editor'],_0x167ffe=_0x2743f4['plugins']['get']('TrackChangesEditing');_0x2743f4['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x167ffe['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x2af5d9=this['editor'],_0xffd602=_0x2af5d9['model'],_0xc29927=_0x2af5d9['locale'],_0x1fcfc0=_0x2af5d9['plugins']['get']('TrackChangesEditing'),_0x3bcb16='restrictedEditingException',_0x215c6f=_0x2af5d9['commands']['get'](_0x3bcb16);_0x1fcfc0['enableCommand'](_0x3bcb16,(_0x1b4ce9,_0x5d94b7={})=>{const _0x48017e=_0xffd602['document']['selection'];if(_0x48017e['isCollapsed'])return void _0x1b4ce9(_0x5d94b7);const _0x5ca414=void 0x0!==_0x5d94b7['forceValue']?_0x5d94b7['forceValue']:!_0x215c6f['value'];_0xffd602['change'](()=>{const _0x22f71f=Array['from'](_0x48017e['getRanges']());for(const _0x26e5d0 of _0x22f71f){const _0x3bf6b7=_0x5ca414?[_0x26e5d0]:ve(_0x3bcb16,_0x26e5d0,_0xffd602);for(const _0xbf60b7 of _0x3bf6b7)_0x1fcfc0['markInlineFormat'](_0xbf60b7,{'commandName':_0x3bcb16,'commandParams':[{'forceValue':_0x5ca414}]});}});}),_0x1fcfc0['descriptionFactory']['registerDescriptionCallback'](_0x3c1762=>{if('formatBlock'!=_0x3c1762['type']&&'formatInline'!=_0x3c1762['type'])return;const {data:_0x2335e6}=_0x3c1762;return _0x2335e6&&_0x2335e6['commandName']==_0x3bcb16?_0x2335e6['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xc29927,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0xc29927,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5c4048=this['editor'],_0x2d668b=_0x5c4048['locale'],_0x17274f=_0x5c4048['plugins']['get']('TrackChangesEditing'),_0x423c3a='restrictedEditingExceptionBlock',_0x16dc2c=this['editor']['commands']['get'](_0x423c3a);_0x17274f['enableCommand'](_0x423c3a,(_0x20c42a,_0x5a6381={})=>{const _0x2f047f=this['editor']['model']['document']['selection'],_0x38a0e7=_0x5a6381&&void 0x0!==_0x5a6381['forceValue']?_0x5a6381['forceValue']:!_0x16dc2c['value'];let _0x34e645=[];_0x34e645=Ct(_0x38a0e7?Array['from'](_0x2f047f['getSelectedBlocks']())['filter'](_0x51eab1=>function(_0xc66686){return!!_0xc66686['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51eab1)||function(_0x5b32b5,_0x177ec5){const _0x219fe7=_0x177ec5['createContext'](_0x5b32b5['parent']);return!!_0x177ec5['checkChild'](_0x219fe7,'restrictedEditingException')&&!!_0x177ec5['checkChild'](_0x219fe7['push']('restrictedEditingException'),_0x5b32b5);}(_0x51eab1,this['editor']['model']['schema'])):Array['from'](_0x2f047f['getSelectedBlocks']())['map'](_0x5aa1a8=>function(_0x3703cf){let _0x16faac=_0x3703cf;for(;_0x16faac['parent'];){if('restrictedEditingException'==_0x16faac['parent']['name'])return _0x16faac;_0x16faac=_0x16faac['parent'];}return null;}(_0x5aa1a8))['filter'](_0x3e19c9=>!!_0x3e19c9),_0x5c4048['model']),_0x5c4048['model']['change'](()=>{for(const _0x2f0fb3 of _0x34e645)_0x17274f['markBlockFormat'](_0x2f0fb3,{'commandName':_0x423c3a,'commandParams':[{'forceValue':_0x38a0e7}]});});}),_0x17274f['descriptionFactory']['registerDescriptionCallback'](_0x5d7e7a=>{const {data:_0x9cd6fa}=_0x5d7e7a;if(_0x9cd6fa&&_0x9cd6fa['commandName']==_0x423c3a)return _0x9cd6fa['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x2d668b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x2d668b,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x3b6d8a{afterInit(){const _0x4f1791=this['editor'];_0x4f1791['plugins']['has']('Style')&&_0x4f1791['plugins']['has']('DataSchema')&&(_0x4f1791['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x357f79=this['editor'],_0xaf6b5f=_0x357f79['locale'];_0x357f79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ec60=>{if('formatBlock'!=_0x37ec60['type']&&'formatInline'!=_0x37ec60['type'])return;const {data:_0xbde3d9}=_0x37ec60;return _0xbde3d9&&'style'===_0xbde3d9['commandName']?_0xbde3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xaf6b5f,'*Set\x20format:*\x20%0',_0xbde3d9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0xaf6b5f,'*Remove\x20format:*\x20%0',_0xbde3d9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x3b6d8a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x46308b){super(_0x46308b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2492cf=this['editor'],_0x1c3250=_0x2492cf['model']['document']['selection'];if(!_0x2492cf['plugins']['has']('TableEditing'))return;const _0x3a4c5e=_0x2492cf['locale'],_0x4f95e0=_0x2492cf['plugins']['get']('TrackChangesEditing'),_0xe48341=_0x2492cf['plugins']['get']('TableUtils');_0x4f95e0['descriptionFactory']['registerElementLabel']('table',_0x268055=>Ot(_0x3a4c5e,'ELEMENT_TABLE',_0x268055)),this['_setupColumnsRowsFixing'](),_0x4f95e0['enableCommand']('insertTable'),_0x4f95e0['enableCommand']('selectTableRow'),_0x4f95e0['enableCommand']('selectTableColumn');for(const _0x2b9dce of['insertTableRowAbove','insertTableRowBelow']){const _0x3104c5=_0x2492cf['commands']['get'](_0x2b9dce);_0x4f95e0['enableCommand'](_0x2b9dce,_0x2864c2=>{_0x2492cf['model']['change'](_0x57d149=>{_0x2864c2();const _0x337bcd='above'===_0x3104c5['order'],_0x11a108=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x3e6cf5=_0xe48341['getRowIndexes'](_0x11a108),_0x5aeece=_0x337bcd?_0x3e6cf5['first']-0x1:_0x3e6cf5['last']+0x1,_0x403703=_0x11a108[0x0]['findAncestor']('table'),_0x39059c=_0xe48341['createTableWalker'](_0x403703,{'startRow':_0x5aeece,'endRow':_0x5aeece}),_0x2ff274=Array['from'](_0x39059c)['map'](_0x4ab1b7=>_0x57d149['createRangeOn'](_0x4ab1b7['cell']));_0x4f95e0['markMultiRangeInsertion'](_0x2ff274,'tableRow');});});}for(const _0x571245 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59b815=_0x2492cf['commands']['get'](_0x571245);_0x4f95e0['enableCommand'](_0x571245,_0x31df24=>{_0x2492cf['model']['change'](_0x53aed0=>{_0x31df24();const _0x2884bf='left'===_0x59b815['order'],_0x1645e8=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x58da74=_0xe48341['getColumnIndexes'](_0x1645e8),_0x23759e=_0x2884bf?_0x58da74['first']-0x1:_0x58da74['last']+0x1,_0x34a184=_0x1645e8[0x0]['findAncestor']('table'),_0x241fc7=_0xe48341['createTableWalker'](_0x34a184,{'startRow':0x0,'column':_0x23759e,'includeAllSlots':!0x1}),_0xdc4576=Array['from'](_0x241fc7)['map'](_0x48e1af=>_0x53aed0['createRangeOn'](_0x48e1af['cell']));_0x4f95e0['markMultiRangeInsertion'](_0xdc4576,'tableColumn');});});}for(const _0x43ad61 of['removeTableRow','removeTableColumn']){const _0x392c95=_0x43ad61['substr'](0xb),_0x376cd8=_0x392c95['toLowerCase'](),_0x17e145=_0x376cd8['substr'](0x0,0x3)+'span',_0x233ad7='table'+_0x392c95,_0x4c76c4='min'+_0x392c95,_0x2eae40='max'+_0x392c95;_0x4f95e0['enableCommand'](_0x43ad61,()=>{_0x2492cf['model']['change'](_0x49dc39=>{const _0x556e72=_0xe48341['getSelectionAffectedTableCells'](_0x1c3250),_0x838306=_0x556e72[0x0]['findAncestor']('table');let _0x5a15a3;if('removeTableRow'==_0x43ad61){const _0x789676=_0xe48341['getRowIndexes'](_0x556e72);_0x5a15a3={'startRow':_0x789676['first'],'endRow':_0x789676['last'],'includeAllSlots':!0x0};}else{const _0x41eb73=_0xe48341['getColumnIndexes'](_0x556e72);_0x5a15a3={'startColumn':_0x41eb73['first'],'endColumn':_0x41eb73['last'],'includeAllSlots':!0x0};}const _0x2b714d=_0xe48341['createTableWalker'](_0x838306,_0x5a15a3),_0x46ec74=Array['from'](_0x2b714d)['map'](({cell:_0x11b1c7})=>_0x11b1c7),_0x359a3f=xe(_0x46ec74['filter'](_0x499a81=>_0x499a81['hasAttribute'](_0x17e145))),_0x173618=xe(_0x46ec74['filter'](_0x4a4fbe=>!_0x4a4fbe['hasAttribute'](_0x17e145)))['map'](_0x518e1d=>_0x49dc39['createRangeOn'](_0x518e1d)),_0x3ac008=_0x4f95e0['markMultiRangeDeletion'](_0x173618,_0x233ad7);if(_0x3ac008&&('tableRow'==_0x3ac008['subType']||'tableColumn'==_0x3ac008['subType'])){const _0x18b794=this['_getSuggestionCoords'](_0x3ac008);for(const _0x3661da of _0x359a3f){const _0x2a4b6d=_0x49dc39['createRangeOn'](_0x3661da),_0x442d8a=_0xe48341['getCellLocation'](_0x3661da),_0x148403=_0x3661da['getAttribute'](_0x17e145)-0x1,_0x5974f2=_0x18b794[_0x4c76c4],_0x3d8890=_0x18b794[_0x2eae40];_0x5974f2<=_0x442d8a[_0x376cd8]&&_0x442d8a[_0x376cd8]+_0x148403<=_0x3d8890&&_0x3ac008['addRange'](_0x2a4b6d);}}});});}function _0x2c3794(_0x1eaedc){const _0x208e7c=Array['from'](_0x1c3250['getRanges']())['map'](_0x17a08f=>ot['fromRange'](_0x17a08f));_0x2492cf['model']['change'](_0x49537e=>{const _0x1873bc=_0x49537e['batch'];_0x1eaedc=_0x1eaedc['filter'](_0x1b0ec2=>'$graveyard'!=_0x1b0ec2['root']['rootName']),_0x49537e['setSelection'](_0x1eaedc),_0x2492cf['commands']['get']('removeTableRow')['refresh'](),_0x2492cf['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2492cf['model']['enqueueChange'](()=>{_0x2492cf['model']['enqueueChange'](_0x1873bc,_0x2f8c50=>{const _0x2e65a0=_0x208e7c['filter'](_0x460d18=>'$graveyard'!=_0x460d18['root']['rootName']);_0x2e65a0['length']>0x0&&_0x2f8c50['setSelection'](_0x2e65a0);for(const _0x11dcdd of _0x208e7c)_0x11dcdd['detach']();});});});}function _0x30fa84(_0x469de7){_0x2492cf['model']['change'](_0x41c2e3=>{const _0x27c3ac=Array['from'](_0x1c3250['getRanges']())['map'](_0x2fd3f8=>ot['fromRange'](_0x2fd3f8)),_0x4ea551=[];for(const _0x59a344 of _0x469de7)for(const _0x5e6e2b of _0x59a344['getItems']({'shallow':!0x0}))_0x4ea551['push'](_0x5e6e2b);for(const _0x427cb7 of _0x4ea551)'$graveyard'!=_0x427cb7['root']['rootName']&&(_0x41c2e3['setSelection'](_0x41c2e3['createPositionAt'](_0x427cb7,0x0)),_0x2492cf['commands']['get']('removeTableColumn')['refresh'](),_0x2492cf['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32de5a=_0x27c3ac['filter'](_0xfba811=>'$graveyard'!=_0xfba811['root']['rootName']);_0x32de5a['length']>0x0&&_0x41c2e3['setSelection'](_0x32de5a);for(const _0x4548d2 of _0x27c3ac)_0x4548d2['detach']();});}function _0x3b6c29(_0x22f35d,_0xf4978d){return _0xf4978d['every'](_0x811b94=>_0x22f35d['some'](_0x546936=>_0x546936['end']['isEqual'](_0x811b94['start'])||_0x811b94['end']['isEqual'](_0x546936['start'])));}function _0x3c8b0e(_0x99f2a3,_0x4fe4b9){return!_0x99f2a3['some'](_0x19afba=>_0x4fe4b9['some'](_0x5b3962=>_0x19afba['isIntersecting'](_0x5b3962)))&&_0x99f2a3['some'](_0xdea1c9=>_0x4fe4b9['some'](_0x494fd4=>_0xdea1c9['end']['isTouching'](_0x494fd4['start'])));}_0x4f95e0['descriptionFactory']['registerDescriptionCallback'](_0x3102df=>{if('insertion'!=_0x3102df['type']&&'deletion'!=_0x3102df['type'])return;const _0x382bc9=_0x3102df['getContainedElement']();if(null!=_0x382bc9&&_0x382bc9['is']('element','table')){if('insertion'==_0x3102df['type']){const _0x566d9f=_0x3102df['getItems']()['filter'](_0x3c1bf9=>_0x3c1bf9['is']('$textProxy'))['map'](_0xa6bdbc=>_0xa6bdbc['data']);if(_0x566d9f['length'])return{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x566d9f['join']('\x20')+'\x22'))};}if('deletion'==_0x3102df['type']){const _0x4b104e=_0x3102df['getItems']()['filter'](_0x533f7f=>_0x533f7f['is']('$textProxy'))['map'](_0x47ef0b=>_0x47ef0b['data']);if(_0x4b104e['length'])return{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b104e['join']('\x20')+'\x22'))};}}}),_0x4f95e0['descriptionFactory']['registerDescriptionCallback'](_0x170c61=>{if('tableRow'==_0x170c61['subType']){const _0x56b586=_0x170c61['getItems']()['filter'](_0x1e6b4c=>_0x1e6b4c['is']('$textProxy'))['map'](_0x4304df=>_0x4304df['data']),_0x166e54=this['_getSuggestionCoords'](_0x170c61),_0x31c10a=_0x166e54['maxRow']-_0x166e54['minRow']+0x1;if('insertion'==_0x170c61['type'])return _0x56b586['length']?{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c10a,'\x22'+_0x56b586['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW',_0x31c10a))};if('deletion'==_0x170c61['type'])return _0x56b586['length']?{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x31c10a,'\x22'+_0x56b586['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_ROW',_0x31c10a))};}if('tableColumn'==_0x170c61['subType']){const _0x249264=_0x170c61['getItems']()['filter'](_0x10a5ea=>_0x10a5ea['is']('$textProxy'))['map'](_0x708655=>_0x708655['data']),_0x31ca4e=this['_getSuggestionCoords'](_0x170c61),_0x164fd2=_0x31ca4e['maxColumn']-_0x31ca4e['minColumn']+0x1;if('insertion'==_0x170c61['type'])return _0x249264['length']?{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x164fd2,'\x22'+_0x249264['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x3a4c5e,'*Insert:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN',_0x164fd2))};if('deletion'==_0x170c61['type'])return _0x249264['length']?{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x164fd2,'\x22'+_0x249264['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x3a4c5e,'*Remove:*\x20%0',Ot(_0x3a4c5e,'ELEMENT_TABLE_COLUMN',_0x164fd2))};}}),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c3794),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c3794),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x30fa84),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x30fa84),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b6c29),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b6c29),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3c8b0e),_0x4f95e0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3c8b0e);}_acceptFormatSuggestionCallbackFactory(){const _0x483722=this['editor'],_0x329612=_0x483722['model']['document']['selection'];return(_0x55785f,_0xdb258a)=>{_0x483722['model']['change'](_0x221cbe=>{const {commandName:_0x3044ae,commandParams:_0x1c50fa}=_0xdb258a;let _0x3f4dd8=_0x55785f[0x0]['end']['nodeBefore'];_0x1c50fa&&_0x1c50fa[0x0]&&!0x1===_0x1c50fa[0x0]['forceValue']&&(_0x3f4dd8=_0x55785f[0x0]['start']['nodeAfter']);const _0x17bc73=_0x221cbe['createRangeIn'](_0x3f4dd8);if('$graveyard'==_0x17bc73['root']['rootName'])return;const _0x1e942a=Array['from'](_0x329612['getRanges']())['map'](_0x4085a5=>ot['fromRange'](_0x4085a5));_0x221cbe['setSelection'](_0x17bc73),_0x483722['commands']['get'](_0x3044ae)['refresh'](),_0x1c50fa['push']({'forceDefaultExecution':!0x0}),_0x483722['execute'](_0x3044ae,..._0x1c50fa);const _0xea3768=_0x1e942a['filter'](_0x27a34f=>'$graveyard'!=_0x27a34f['root']['rootName']);_0xea3768['length']>0x0&&_0x221cbe['setSelection'](_0xea3768);for(const _0x596377 of _0x1e942a)_0x596377['detach']();});};}_getCoordsForCells(_0x479ccf){const _0x2258a8=this['editor']['plugins']['get']('TableUtils');let _0x4c6506=Number['MAX_SAFE_INTEGER'],_0x1ccc5c=Number['MIN_SAFE_INTEGER'],_0x3ab679=Number['MAX_SAFE_INTEGER'],_0x34b318=Number['MIN_SAFE_INTEGER'];for(const _0x333215 of _0x479ccf){if('$graveyard'==_0x333215['root']['rootName'])continue;const {row:_0x1ede42,column:_0x4d065c}=_0x2258a8['getCellLocation'](_0x333215),_0x418834=_0x333215['hasAttribute']('rowspan')?_0x333215['getAttribute']('rowspan')-0x1:0x0,_0xd3dad0=_0x333215['hasAttribute']('colspan')?_0x333215['getAttribute']('colspan')-0x1:0x0;_0x4c6506=_0x1ede42<_0x4c6506?_0x1ede42:_0x4c6506,_0x1ccc5c=_0x1ede42+_0x418834>_0x1ccc5c?_0x1ede42+_0x418834:_0x1ccc5c,_0x3ab679=_0x4d065c<_0x3ab679?_0x4d065c:_0x3ab679,_0x34b318=_0x4d065c+_0xd3dad0>_0x34b318?_0x4d065c+_0xd3dad0:_0x34b318;}return{'minRow':_0x4c6506,'maxRow':_0x1ccc5c,'minColumn':_0x3ab679,'maxColumn':_0x34b318};}_setupColumnsRowsFixing(){const _0x26a4d4=this['editor'],_0x52cf39=_0x26a4d4['plugins']['get']('TrackChangesEditing'),_0x4048c7=_0x26a4d4['plugins']['get']('TableUtils');_0x26a4d4['model']['document']['on']('change:data',()=>{const _0x4bb0fb=Array['from'](_0x26a4d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a0f41,data:_0x5714fa}of _0x4bb0fb){const {group:_0x3c5bf2,id:_0x32a883,subType:_0x3efae6}=et(_0x1a0f41);if('suggestion'!=_0x3c5bf2)continue;if(null!=_0x5714fa['oldRange'])continue;const _0x55bb86=_0x52cf39['getSuggestion'](_0x32a883);this['_tablePostFixingSubtypes']['includes'](_0x3efae6)&&this['_tableSuggestions']['add'](_0x55bb86);}},{'priority':'low'});const _0x496a6f=(_0x4e1b4d,_0x487146)=>{let _0x2e1202=!0x1;const _0xb06431=_0x487146['createRangeOn'](_0x4e1b4d),_0x5efb04=_0x4e1b4d['findAncestor']('table'),_0x3ee59a=_0x4048c7['getCellLocation'](_0x4e1b4d);for(const _0x400544 of this['_tableSuggestions']){const _0x5c2a62=_0x400544['subType'],_0x25ac25=_0x5c2a62['startsWith']('tablePaste'),_0x19a278=_0x5c2a62['substr'](_0x25ac25?0xa:0x5),_0x1e0cab=_0x19a278['toLowerCase'](),_0x26d447=_0x1e0cab['substr'](0x0,0x3)+'span',_0x251b18='min'+_0x19a278,_0xad85e0='max'+_0x19a278;if(!_0x400544['isInContent'])continue;if(_0x5efb04!=_0x400544['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x400544['isIntersectingWithRange'](_0xb06431))continue;const _0x1432c1=_0x4e1b4d['hasAttribute'](_0x26d447)?_0x4e1b4d['getAttribute'](_0x26d447)-0x1:0x0,_0x46a1a1=this['_getSuggestionCoords'](_0x400544),_0x55f9e9=_0x46a1a1[_0x251b18],_0x2fd13d=_0x46a1a1[_0xad85e0];_0x55f9e9<=_0x3ee59a[_0x1e0cab]&&_0x3ee59a[_0x1e0cab]+_0x1432c1<=_0x2fd13d&&(_0x400544['addRange'](_0xb06431),_0x2e1202=!0x0);}return _0x2e1202;};_0x26a4d4['model']['document']['registerPostFixer'](_0x35e511=>{let _0x466f83=!0x1;for(const _0x5e335a of _0x26a4d4['model']['document']['differ']['getChanges']())if('insert'==_0x5e335a['type']){if('tableRow'==_0x5e335a['name']){for(const _0x4425b4 of _0x5e335a['position']['nodeAfter']['getChildren']())_0x466f83=_0x466f83||_0x496a6f(_0x4425b4,_0x35e511);}else'tableCell'==_0x5e335a['name']&&(_0x466f83=_0x466f83||_0x496a6f(_0x5e335a['position']['nodeAfter'],_0x35e511));}return _0x466f83;});}_getSuggestionCoords(_0x3bea3d){return this['_getCoordsForCells'](_0x3bea3d['getRanges']()['map'](_0x235102=>_0x235102['start']['nodeAfter']));}};function xe(_0x544f6a){return Array['from'](new Set(_0x544f6a)['values']());}var Ge=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x153d2f=this['editor'],_0x40430a=_0x153d2f['model']['document']['selection'],_0x4fa07b=_0x153d2f['locale'];if(!_0x153d2f['plugins']['has']('TableEditing'))return;const _0x27bf15=_0x153d2f['plugins']['get']('TrackChangesEditing'),_0x4b3d3f=_0x153d2f['plugins']['get']('TableUtils'),_0x2c86ea=_0x153d2f['plugins']['get'](Pe);_0x2c86ea['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27bf15['enableCommand']('mergeTableCells',()=>{const _0x5cbf65=_0x4b3d3f['getSelectionAffectedTableCells'](_0x153d2f['model']['document']['selection']);_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat'](_0x5cbf65,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x153d2f['commands']['get']('mergeTableCells')['on']('execute',(_0x150558,_0x5a3bf4)=>{_0x153d2f['commands']['get']('trackChanges')['value']&&(_0x5a3bf4['length']>0x0&&_0x5a3bf4[_0x5a3bf4['length']-0x1]&&_0x5a3bf4[_0x5a3bf4['length']-0x1]['forceDefaultExecution']||_0x27bf15['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x150558['stop']());},{'priority':'highest'});for(const _0x27f033 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4052c4=_0x153d2f['commands']['get'](_0x27f033);_0x27bf15['enableCommand'](_0x27f033,()=>{const _0x1637a4=_0x153d2f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d9a16=>_0x2d9a16['is']('element','tableCell')),_0x1a253d=_0x4052c4['value'];_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat']([_0x1637a4,_0x1a253d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31259c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2836cf=_0x153d2f['commands']['get'](_0x31259c);_0x27bf15['enableCommand'](_0x31259c,()=>{const _0x233aed=_0x4b3d3f['getSelectionAffectedTableCells'](_0x153d2f['model']['document']['selection']),_0x1b120c=_0x233aed[0x0]['findAncestor']('table'),_0x102a0e=new Set();for(const _0x423ecb of _0x233aed){const {column:_0x271314,row:_0x1c6af3}=_0x4b3d3f['getCellLocation'](_0x423ecb),_0x52e48a='horizontally'==_0x2836cf['direction']?_0x4b3d3f['createTableWalker'](_0x1b120c,{'startRow':_0x1c6af3,'endRow':_0x1c6af3,'includeAllSlots':!0x0}):_0x4b3d3f['createTableWalker'](_0x1b120c,{'column':_0x271314,'includeAllSlots':!0x0});for(const {cell:_0x407dcc}of _0x52e48a)_0x102a0e['add'](_0x407dcc);}_0x153d2f['model']['change'](()=>{_0x27bf15['markMultiRangeBlockFormat'](_0x233aed,{'commandName':_0x31259c,'commandParams':[]},Array['from'](_0x102a0e),_0x31259c);});});}_0x27bf15['descriptionFactory']['registerDescriptionCallback'](_0x5cd4b0=>{if('formatBlock'!=_0x5cd4b0['type']&&'formatInline'!=_0x5cd4b0['type'])return;const {data:_0x3b212f}=_0x5cd4b0;return _0x3b212f&&'mergeTableCells'==_0x3b212f['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Merge\x20cells*')}:void 0x0;}),_0x27bf15['descriptionFactory']['registerDescriptionCallback'](_0x1750df=>{if('formatBlock'!=_0x1750df['type']&&'formatInline'!=_0x1750df['type'])return;const {data:_0x3fca2c}=_0x1750df;return _0x3fca2c?'splitTableCellVertically'==_0x3fca2c['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3fca2c['commandName']?{'type':'format','content':Ot(_0x4fa07b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2cd1c0=_0x2c86ea['_acceptFormatSuggestionCallbackFactory']();for(const _0x53c664 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53c664,'accept',_0x2cd1c0);for(const _0x14aaeb of['splitTableCellVertically','splitTableCellHorizontally'])_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14aaeb,'accept',_0x5dc1d3=>{_0x153d2f['model']['change'](_0x317de2=>{const _0x4390e3=Array['from'](_0x5dc1d3)['filter'](_0x2e5ffa=>'$graveyard'!=_0x2e5ffa['root']['rootName']&&!!_0x2e5ffa['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4390e3['length'])return;const _0x358748=Array['from'](_0x40430a['getRanges']())['map'](_0x3a224a=>ot['fromRange'](_0x3a224a));_0x317de2['setSelection'](_0x4390e3),_0x153d2f['commands']['get'](_0x14aaeb)['refresh'](),_0x153d2f['execute'](_0x14aaeb,{'forceDefaultExecution':!0x0});const _0x25d602=_0x358748['filter'](_0x43808f=>'$graveyard'!=_0x43808f['root']['rootName']);_0x25d602['length']>0x0&&_0x317de2['setSelection'](_0x25d602);for(const _0x5d0d51 of _0x358748)_0x5d0d51['detach']();});});_0x27bf15['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2deb67=>{_0x153d2f['model']['change'](_0x43b5ea=>{const _0x508da5=Array['from'](_0x40430a['getRanges']())['map'](_0x27d84c=>ot['fromRange'](_0x27d84c));_0x43b5ea['setSelection'](_0x2deb67),_0x153d2f['commands']['get']('mergeTableCells')['refresh'](),_0x153d2f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c01d5=_0x508da5['filter'](_0x202171=>'$graveyard'!=_0x202171['root']['rootName']);_0x1c01d5['length']>0x0&&_0x43b5ea['setSelection'](_0x1c01d5);for(const _0x21d621 of _0x508da5)_0x21d621['detach']();});});for(const _0x1a9d4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d84dd=_0x153d2f['commands']['get'](_0x1a9d4);_0x4d84dd['on']('set:isEnabled',(_0x6709bd,_0x32b80b,_0x37c413)=>{if(_0x37c413){const _0x5e0a21=_0x153d2f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36378f=>_0x36378f['is']('element','tableCell'));this['_areMergableCells'](_0x4d84dd['value'],_0x5e0a21)||(_0x6709bd['return']=!0x1,_0x6709bd['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x3b19f5=this['editor']['commands']['get']('mergeTableCells'),_0x59d4a1=this['editor']['plugins']['get']('TableUtils');if(!_0x3b19f5['isEnabled'])return!0x1;const _0x2b2948=_0x59d4a1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x20d784 of _0x2b2948)for(const _0x2ed7fb of _0x2b2948)if(_0x20d784!=_0x2ed7fb&&!this['_areMergableCells'](_0x20d784,_0x2ed7fb))return!0x1;return!0x0;}['_areMergableCells'](_0x2f4c62,_0x3938b5){const _0x32a296=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ef45=this['editor']['model']['createRangeOn'](_0x2f4c62),_0x305289=this['editor']['model']['createRangeOn'](_0x3938b5),_0x5eafad=new Set(),_0xb4a7a6=new Set();for(const _0x573fc2 of _0x32a296['getSuggestions']())if(('insertion'==_0x573fc2['type']||'deletion'==_0x573fc2['type']||'mergeTableCells'==_0x573fc2['subType'])&&_0x573fc2['isInContent']){for(const _0x35a30e of _0x573fc2['getRanges']())_0x35a30e['containsRange'](_0x55ef45,!0x0)&&_0x5eafad['add'](_0x573fc2['type']+':'+_0x573fc2['author']['id']),_0x35a30e['containsRange'](_0x305289,!0x0)&&_0xb4a7a6['add'](_0x573fc2['type']+':'+_0x573fc2['author']['id']);}if(_0x5eafad['size']!=_0xb4a7a6['size'])return!0x1;for(const _0x5b3b76 of _0x5eafad)if(!_0xb4a7a6['has'](_0x5b3b76))return!0x1;return!0x0;}},He=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0xaff997=this['editor'];if(!_0xaff997['plugins']['has']('TableEditing'))return;const _0x3126ee=_0xaff997['locale'],_0x508cf1=_0xaff997['plugins']['get']('TrackChangesEditing');_0x508cf1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x508cf1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x508cf1['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x3126ee,'FORMAT_HEADER_ROW')),_0x508cf1['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x3126ee,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1d62e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58205c=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1d62e8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x58205c),_0x1d62e8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x58205c),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4fae0f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x338822=this['editor']['plugins']['get']('TableUtils');function _0x47beda({showActiveMarker:_0x205fcd=!0x0,setDataAttribute:_0x3c614a=!0x0}={}){return(_0x2e79bd,_0x2f4d6d,_0x38d2b8)=>{const {type:_0x607447,id:_0x1952df}=et(_0x2f4d6d['markerName']);if(!_0x4fae0f['hasSuggestion'](_0x1952df))return;const _0x1359b1=_0x4fae0f['getSuggestion'](_0x1952df),_0x48aa80=_0x1359b1['data'];if('formatBlock'!=_0x1359b1['type']||!_0x48aa80||'setTableColumnHeader'!=_0x48aa80['commandName'])return;if(_0x2f4d6d['item'])return void _0x2e79bd['stop']();if(!_0x38d2b8['consumable']['consume'](_0x2f4d6d['markerRange'],_0x2e79bd['name']))return;const _0x48e003=_0x2f4d6d['markerRange']['start']['nodeAfter'],_0x1f265e=_0x2f4d6d['markerRange']['end']['nodeBefore'],_0x2b65db=_0x48e003['parent']['parent'],{column:_0x4305f0}=_0x338822['getCellLocation'](_0x48e003),{column:_0x419c64}=_0x338822['getCellLocation'](_0x1f265e);for(let _0x46dc78=_0x4305f0;_0x46dc78<=_0x419c64;_0x46dc78++){const _0x538602=_0x338822['createTableWalker'](_0x2b65db,{'column':_0x46dc78,'includeAllSlots':!0x1});for(const _0x2745c9 of _0x538602){const _0x136967=_0x2745c9['cell'],_0x32f0ee=_0x38d2b8['mapper']['toViewElement'](_0x136967);_0x38d2b8['writer']['addClass']('ck-suggestion-marker-'+_0x607447,_0x32f0ee),_0x3c614a&&_0x38d2b8['writer']['setAttribute']('data-suggestion',_0x1952df,_0x32f0ee),_0x38d2b8['mapper']['bindElementToMarker'](_0x32f0ee,_0x2f4d6d['markerName']),_0x205fcd&&(_0x4fae0f['activeMarkers']['includes'](_0x2f4d6d['markerName'])?_0x38d2b8['writer']['addClass']('ck-suggestion-marker--active',_0x32f0ee):_0x38d2b8['writer']['removeClass']('ck-suggestion-marker--active',_0x32f0ee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x47beda(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f1870,_0x7d4a73,_0x43a8ed)=>{_0x43a8ed['options']['showSuggestionHighlights']&&_0x47beda({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f1870,_0x7d4a73,_0x43a8ed);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c2ebe,_0x44e151,_0x9b852b)=>{const {type:_0x5bf178,id:_0x411609}=et(_0x44e151['markerName']);if(!_0x4fae0f['hasSuggestion'](_0x411609))return;const _0xa1979=_0x4fae0f['getSuggestion'](_0x411609),_0x51a581=_0xa1979['data'];if('formatBlock'!=_0xa1979['type']||!_0x51a581||'setTableColumnHeader'!=_0x51a581['commandName'])return;const _0x41518f=_0x9b852b['mapper']['markerNameToElements'](_0x44e151['markerName']);if(_0x41518f){for(const _0x8b7508 of _0x41518f)_0x9b852b['writer']['removeClass']('ck-suggestion-marker-'+_0x5bf178,_0x8b7508),_0x9b852b['writer']['removeClass']('ck-suggestion-marker--active',_0x8b7508),_0x9b852b['writer']['removeAttribute']('data-suggestion',_0x8b7508),_0x9b852b['mapper']['unbindElementFromMarkerName'](_0x8b7508,_0x44e151['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1d0265=this['editor'],_0x4ac513=_0x1d0265['locale'];function _0x1a07cf(_0x4740f3){return{'type':'format','content':Ot(_0x4ac513,'*Format:*\x20%0',_0x4740f3)};}_0x1d0265['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276516=>{if('formatBlock'!=_0x276516['type'])return;const {data:_0x3936e7}=_0x276516;return _0x3936e7?'setTableRowHeader'==_0x3936e7['commandName']?_0x3936e7['commandParams'][0x0]['forceValue']?_0x1a07cf(Ot(_0x4ac513,'FORMAT_HEADER_ROW')):_0x1a07cf(Ot(_0x4ac513,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3936e7['commandName']?_0x3936e7['commandParams'][0x0]['forceValue']?_0x1a07cf(Ot(_0x4ac513,'FORMAT_HEADER_COLUMN')):_0x1a07cf(Ot(_0x4ac513,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x566f55=this['editor'];if(!_0x566f55['plugins']['has']('TableEditing')||!_0x566f55['config']['get']('table.enableFooters'))return;const _0x5e7f11=_0x566f55['locale'],_0x29ce39=_0x566f55['plugins']['get']('TrackChangesEditing');_0x29ce39['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x29ce39['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x5e7f11,'FORMAT_FOOTER_ROW'));}},We=class extends _0x3b6d8a{afterInit(){const _0x1e8358=this['editor'],_0x2e226d=_0x1e8358['locale'],_0x31dbce=_0x1e8358['plugins']['get']('TrackChangesEditing');function _0x3e708d(_0x323bbe){return{'type':'format','content':''+Ot(_0x2e226d,'*Set\x20table\x20type:*\x20%0',_0x323bbe)};}_0x1e8358['plugins']['has']('TableLayout')&&(_0x31dbce['enableCommand']('insertTableLayout'),_0x31dbce['enableDefaultAttributesIntegration']('tableType'),_0x31dbce['descriptionFactory']['registerElementLabel'](_0x57d0d0=>_0x57d0d0['is']('element','table')&&'layout'===_0x57d0d0['getAttribute']('tableType'),_0x51df0b=>Ot(_0x2e226d,'ELEMENT_LAYOUT_TABLE',_0x51df0b)),_0x31dbce['descriptionFactory']['registerDescriptionCallback'](_0x192801=>{const {data:_0x7ba725}=_0x192801;if(_0x7ba725&&'tableType'==_0x7ba725['key'])switch(_0x7ba725['newValue']){case'layout':return _0x3e708d(Ot(_0x2e226d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3e708d(Ot(_0x2e226d,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Ve['map'](_0x18b848=>[_0x18b848,null]));var ze=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x2c3532=this['editor'];if(!_0x2c3532['plugins']['has']('TableClipboard'))return;const _0x42d1c8=_0x2c3532['plugins']['get']('TrackChangesEditing'),_0x25e605=_0x2c3532['plugins']['get']('TableUtils'),_0x47397f=_0x2c3532['plugins']['get'](Pe),_0x2ba522=_0x2c3532['plugins']['get']('TableClipboard'),_0x103f52=_0x2c3532['plugins']['get']('TableSelection'),_0xcc236b=_0x2c3532['plugins']['get'](ft);_0x47397f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c3532['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c3532['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x314adc=null,_0x299354=!0x1;_0xcc236b['on']('contentInsertion',(_0x3ae77a,_0x382db7)=>{_0x299354='paste'===_0x382db7['method'];}),_0x2c3532['model']['on']('insertContent',(_0x1c8619,_0x3dcdf0)=>{if(!_0x299354&&null===_0x103f52['getSelectedTableCells']())return;const [_0x2e8588,_0x320396]=_0x3dcdf0,_0x3d00ff=_0x3dcdf0[_0x3dcdf0['length']-0x1];_0x3d00ff&&_0x3d00ff['forceDefaultExecution']||_0x42d1c8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x72321e,_0x309dd6,_0x3a066c,_0x122e3f,_0x2094fe){if(_0x309dd6&&!_0x309dd6['is']('documentSelection'))return!0x1;const _0x28ec89=_0x2094fe['getTableIfOnlyTableInContent'](_0x72321e,_0x3a066c);if(!_0x28ec89||!Xe(_0x28ec89,void 0x0,_0x122e3f))return!0x1;const _0x395619=_0x122e3f['getSelectionAffectedTableCells'](_0x3a066c['document']['selection']);if(!_0x395619['length'])return!0x1;const _0x439fbc=_0x395619[0x0]['findAncestor']('table'),_0x3f67c7=_0x122e3f['getRowIndexes'](_0x395619),_0x43317f=_0x122e3f['getColumnIndexes'](_0x395619),_0x3a6e1b={'startRow':_0x3f67c7['first'],'endRow':_0x3f67c7['last'],'startColumn':_0x43317f['first'],'endColumn':_0x43317f['last']};return 0x1==_0x395619['length']&&(_0x3a6e1b['endRow']+=_0x122e3f['getRows'](_0x28ec89)-0x1,_0x3a6e1b['endColumn']+=_0x122e3f['getColumns'](_0x28ec89)-0x1),Xe(_0x439fbc,_0x3a6e1b,_0x122e3f);}(_0x2e8588,_0x320396,_0x2c3532['model'],_0x25e605,_0x2ba522)&&(_0x1c8619['stop'](),_0x314adc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c3532['model']['change'](()=>{_0x2c3532['model']['insertContent'](_0x3dcdf0[0x0],_0x3dcdf0[0x1],_0x3dcdf0[0x2],{'forceDefaultExecution':!0x0});const _0x362b07=_0x3223bf(),{rowInsertionRanges:_0x387420,columnInsertionRanges:_0x3af63b,insertionRanges:_0x13018f,deletionRanges:_0x5050af,cells:_0x382c3d}=_0x314adc;_0x387420['length']&&_0x42d1c8['markMultiRangeInsertion'](_0x387420,'tablePasteRow',{'tablePasteChainId':_0x362b07}),_0x3af63b['length']&&_0x42d1c8['markMultiRangeInsertion'](_0x3af63b,'tablePasteColumn',{'tablePasteChainId':_0x362b07}),_0x13018f['length']&&(_0x42d1c8['markMultiRangeInsertion'](_0x13018f,'tablePaste',{'tablePasteChainId':_0x362b07,'skipNestingCheck':!0x0}),_0x13018f['forEach'](_0x367595=>_0x367595['detach']?.())),_0x5050af['length']&&(_0x42d1c8['markMultiRangeDeletion'](_0x5050af,'tablePaste',{'tablePasteChainId':_0x362b07,'skipNestingCheck':!0x0}),_0x5050af['forEach'](_0x17cc21=>_0x17cc21['detach']?.()));const _0x2e8695=_0x42d1c8['markMultiRangeBlockFormat'](_0x382c3d['map'](({element:_0x4cb0d5})=>_0x4cb0d5),{'formatGroupId':_0x3223bf()},[],'tablePasteCell',{'tablePasteChainId':_0x362b07});if(_0x2e8695){const _0x340b6f=_0x2e8695['getMarkers'](),_0x458534=[];for(const {element:_0x2a66ef,attributes:_0x1f77eb}of _0x382c3d){if(!_0x1f77eb)continue;const _0x45c637=_0x2c3532['model']['createRangeOn'](_0x2a66ef),_0x775885=_0x340b6f['find'](_0x312d26=>_0x312d26['getRange']()['isEqual'](_0x45c637));_0x775885&&_0x458534['push']([_0x775885['name'],_0x1f77eb]);}_0x458534['length']&&_0x2e8695['setAttribute']('markerAttributes',Object['fromEntries'](_0x458534));}_0x314adc=null;}));},{'priority':_0x1315a6['high']+0xa}),_0xcc236b['on']('contentInsertion',()=>{_0x299354=!0x1;},{'priority':'lowest'}),_0x2c3532['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d6848,_0x5e5493)=>{const [_0x8d75e8,_0x457e34,,_0x53e019]=_0x5e5493;if(!_0x314adc)return;_0x4d6848['stop']();const _0x47c62e=_0x8d75e8['cell'],_0x26ef11=_0x457e34,_0x3a3da6=Ke(_0x47c62e),_0x3a3797=Ke(_0x26ef11);_0x4d6848['return']=_0x47c62e;let _0x1916e9=null,_0x400a68=null;if(_0x3a3797||_0x3a3da6){if(_0x3a3da6&&!_0x3a3797){_0x53e019['remove'](_0x47c62e['getChild'](0x0));for(const _0x5cebaa of Array['from'](_0x26ef11['getChildren']()))_0x53e019['insert'](_0x5cebaa,_0x47c62e,'end');const _0x1415dd=_0x314adc['rowInsertionIndexes']['includes'](_0x8d75e8['row']),_0x5419d7=_0x314adc['columnInsertionIndexes']['includes'](_0x8d75e8['column']);_0x1415dd||_0x5419d7||(_0x1916e9=ot['fromRange'](_0x53e019['createRangeIn'](_0x47c62e)));}else _0x3a3797&&!_0x3a3da6&&(_0x400a68=_0x53e019['createRangeIn'](_0x47c62e));}else{const _0x65f290=_0x53e019['createElement']('tableCellSuggestion'),_0xd52e30=_0x53e019['createElement']('tableCellSuggestion');_0x53e019['wrap'](_0x53e019['createRangeIn'](_0x47c62e),_0xd52e30),_0x53e019['insert'](_0x65f290,_0x47c62e,0x0);for(const _0x56dcdc of Array['from'](_0x26ef11['getChildren']()))_0x53e019['insert'](_0x56dcdc,_0x65f290,'end');_0x1916e9=ot['fromRange'](_0x53e019['createRangeOn'](_0x65f290)),_0x400a68=ot['fromRange'](_0x53e019['createRangeOn'](_0xd52e30));}const _0x391d04=Array['from'](_0x26ef11['getAttributes']())['filter'](([_0x57a7a5])=>Ve['includes'](_0x57a7a5));_0x314adc['cells']['push']({'element':_0x47c62e,'attributes':_0x391d04['length']?Object['fromEntries'](_0x391d04):null}),_0x1916e9&&_0x314adc['insertionRanges']['push'](_0x1916e9),_0x400a68&&_0x314adc['deletionRanges']['push'](_0x400a68);},{'priority':'high'}),_0x25e605['on']('insertColumns',(_0x26444a,_0x5b58c2)=>{const [_0x547a4b,_0x25b29d={}]=_0x5b58c2;if(!_0x314adc)return;const _0x515b57=_0x25b29d['at']||0x0,_0x51439c=_0x25b29d['columns']||0x1;_0x314adc['columnInsertionIndexes']=new Array(_0x51439c)['fill'](_0x515b57)['map']((_0xbfed97,_0x63360c)=>_0xbfed97+_0x63360c);for(const {cell:_0x788a29}of _0x25e605['createTableWalker'](_0x547a4b,{'startColumn':_0x515b57,'endColumn':_0x515b57+_0x51439c-0x1}))_0x314adc['columnInsertionRanges']['push'](_0x2c3532['model']['createRangeOn'](_0x788a29));},{'priority':'low'}),_0x25e605['on']('insertRows',(_0x18ac58,_0x49fa82)=>{const [_0x2453a0,_0x25d587={}]=_0x49fa82;if(!_0x314adc)return;const _0x2b6a31=_0x25d587['at']||0x0,_0xeab3d2=_0x25d587['rows']||0x1;_0x314adc['rowInsertionIndexes']=new Array(_0xeab3d2)['fill'](_0x2b6a31)['map']((_0x2b7db3,_0x4522f4)=>_0x2b7db3+_0x4522f4);for(const {cell:_0x2169ae}of _0x25e605['createTableWalker'](_0x2453a0,{'startRow':_0x2b6a31,'endRow':_0x2b6a31+_0xeab3d2-0x1}))_0x314adc['rowInsertionRanges']['push'](_0x2c3532['model']['createRangeOn'](_0x2169ae));},{'priority':'low'}),_0x42d1c8['descriptionFactory']['registerDescriptionCallback'](_0x25d80f=>{if(_0x25d80f['subType']&&_0x25d80f['subType']['startsWith']('tablePaste'))return _0x25d80f['previous']?{}:{'type':'insertion','content':Ot(_0x2c3532['locale'],'*Replace\x20table\x20cells*')};});const _0x42cc2b=()=>!0x1;for(const _0x121415 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x121415,'join',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('deletion',_0x121415,'join',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x121415,'join',_0x42cc2b);_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42cc2b),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5baea5,_0x455d03,_0x38cc2f)=>{const _0x34b4fe=_0x5baea5['map'](_0x5785ec=>_0x5785ec['getContainedElement']())['filter'](_0x2ad466=>_0x2ad466),_0x615f08=new Map(_0x34b4fe['map'](_0x4ad74d=>[_0x4ad74d,null]));if(_0x314adc){for(const {element:_0x4d15c1,attributes:_0x34248c}of _0x314adc['cells'])_0x34248c&&_0x615f08['set'](_0x4d15c1,_0x34248c);}else{if(_0x38cc2f&&_0x38cc2f['markerAttributes'])for(const [_0x4f4244,_0xb5528b]of Object['entries'](_0x38cc2f['markerAttributes'])){const _0x52c75b=_0x2c3532['model']['markers']['get'](_0x4f4244),_0x349f39=_0x52c75b?_0x52c75b['getRange']()['getContainedElement']():null;_0x349f39&&_0x615f08['set'](_0x349f39,_0xb5528b);}}_0x2c3532['model']['change'](_0xcccb1=>{for(const [_0x3d782a,_0x5190b3]of _0x615f08)_0xcccb1['setAttributes']({...je,..._0x5190b3},_0x3d782a);});});const _0xe7e44d=(_0x3eb9bc,_0x194640)=>{_0x42d1c8['_suggestionFactory']['registerCustomCallback'](_0x3eb9bc,'tablePaste',_0x194640,(_0x3fa01b,_0x43bd24,_0x3f97e5)=>{_0x2c3532['model']['change'](_0x4c848e=>{const _0x4a03cd=[];for(const _0x494f3b of _0x3fa01b){const _0x1cefb3=_0x494f3b['start']['nodeAfter'];_0x1cefb3['is']('element','tableCellSuggestion')&&_0x4a03cd['push'](_0x1cefb3);}_0x42d1c8['_suggestionFactory']['getSuggestionCallback'](_0x3eb9bc,null,_0x194640)(_0x3fa01b,_0x43bd24,_0x3f97e5);for(const _0x236086 of _0x4a03cd)'$graveyard'!=_0x236086['root']['rootName']&&_0x4c848e['unwrap'](_0x236086);});});};_0xe7e44d('insertion','accept'),_0xe7e44d('insertion','discard'),_0xe7e44d('deletion','accept'),_0xe7e44d('deletion','discard'),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5becf6=>{const _0x2cc69b=_0x5becf6['map'](_0x254733=>_0x254733['getContainedElement']()),_0x589193=_0x2cc69b[0x0]['findAncestor']('table'),{minRow:_0xaf2eb0,maxRow:_0x4db461}=_0x47397f['_getCoordsForCells'](_0x2cc69b);_0x25e605['removeRows'](_0x589193,{'at':_0xaf2eb0,'rows':_0x4db461-_0xaf2eb0+0x1});}),_0x42d1c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x468d22=>{const _0x569703=_0x468d22['map'](_0x3d8d88=>_0x3d8d88['getContainedElement']()),_0x915ad9=_0x569703[0x0]['findAncestor']('table'),{minColumn:_0x2a16c4,maxColumn:_0x1b4020}=_0x47397f['_getCoordsForCells'](_0x569703);_0x25e605['removeColumns'](_0x915ad9,{'at':_0x2a16c4,'columns':_0x1b4020-_0x2a16c4+0x1});});const _0x55a907=(_0x338ce9,_0xc88cba)=>{if(!_0xc88cba['subType']||!_0xc88cba['subType']['startsWith']('tablePaste'))return;const _0x1ca759=_0xc88cba['attributes']['tablePasteChainId'],_0x3c9c69=_0x42d1c8['getSuggestions']()['filter'](_0x280673=>_0x280673['isInContent']&&_0x280673['attributes']&&_0x280673['attributes']['tablePasteChainId']==_0x1ca759);_0x3c9c69['length']&&_0xc88cba['getAllAdjacentSuggestions']()['length']!=_0x3c9c69['length']&&_0x3c9c69['reduce']((_0x35b526,_0x2bb08e)=>(_0x35b526['next']=_0x2bb08e,_0x2bb08e['previous']=_0x35b526,_0x2bb08e));};function _0x3b7b06(_0x23b29c,_0x371e5e=!0x0){const {id:_0x4034be,authorId:_0x1a48d6}=et(_0x23b29c['markerName']),_0x5c9d1d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x305fae=_0x42d1c8['activeMarkers']['includes'](_0x23b29c['markerName']);return _0x305fae&&_0x5c9d1d['push']('ck-suggestion-marker--active'),{'classes':_0x5c9d1d,'attributes':{'data-suggestion':_0x4034be,'data-author-id':_0x1a48d6},'priority':_0x305fae&&_0x371e5e?0xbc2:0xbb8};}_0x42d1c8['on']('suggestionLoaded',_0x55a907,{'priority':'high'}),_0x42d1c8['on']('suggestionUnloaded',_0x55a907,{'priority':'high'}),_0x2c3532['model']['document']['registerPostFixer'](()=>{let _0x40be01=!0x1;const _0x4ed42d=Array['from'](_0x2c3532['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e0001,data:_0x2ba2b7}of _0x4ed42d){const {group:_0x4f524a,type:_0x4a3bf3,id:_0x346332}=et(_0x5e0001);if('suggestion'!=_0x4f524a||'deletion'!=_0x4a3bf3||_0x2ba2b7['oldRange'])continue;if(!_0x42d1c8['hasSuggestion'](_0x346332))continue;const _0x13e1d4=_0x42d1c8['getSuggestion'](_0x346332)['getRanges'](),_0x46ec17=_0x2c3532['plugins']['get']('Users')['me'];for(const _0x2fb6b7 of _0x42d1c8['getSuggestions']())if(_0x2fb6b7['isInContent']&&_0x2fb6b7['author']==_0x46ec17&&'formatBlock'==_0x2fb6b7['type']&&'tablePasteCell'==_0x2fb6b7['subType']&&_0x2fb6b7['getRanges']()['every'](_0x3cb13a=>_0x13e1d4['some'](_0x3b76cc=>_0x3b76cc['containsRange'](_0x3cb13a,!0x0)))){for(const _0x12268e of _0x2fb6b7['getAllAdjacentSuggestions']())_0x12268e['isInContent']&&(_0x12268e['discard'](),_0x40be01=!0x0);}}return _0x40be01;}),_0x2c3532['model']['document']['registerPostFixer'](_0xe2d3e3=>{const _0x1c38d6=_0x2c3532['commands']['get']('redo');if(!_0x1c38d6||!_0x1c38d6['_createdBatches']['has'](_0xe2d3e3['batch']))return!0x1;let _0x128deb=!0x1;const _0x36226d=_0x2c3532['plugins']['get']('Users')['me'],_0x43bd1d=_0x2c3532['model']['document']['differ']['getChanges'](),_0x307e67=Array['from'](_0x2c3532['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32e423,data:_0x59878e})=>{const {group:_0x39eb10,subType:_0x4ec598,authorId:_0x40a070}=et(_0x32e423);return'suggestion'==_0x39eb10&&'tablePaste'==_0x4ec598&&_0x40a070==_0x36226d['id']&&!_0x59878e['oldRange'];});for(const _0x537da9 of _0x43bd1d){if('insert'!=_0x537da9['type']||'tableCellSuggestion'!=_0x537da9['name']||0x1!=_0x537da9['length'])continue;const _0x367cfc=_0xe2d3e3['createRange'](_0x537da9['position'],_0x537da9['position']['getShiftedBy'](0x1));if(!_0x307e67['find'](({data:_0x3cc2cf})=>_0x3cc2cf['newRange']['isEqual'](_0x367cfc))){for(const {name:_0x458542,data:_0x53f844}of _0x307e67)if(_0x367cfc['containsRange'](_0x53f844['newRange'])){_0xe2d3e3['updateMarker'](_0x458542,{'range':_0x367cfc}),_0x128deb=!0x0;break;}}}return _0x128deb;}),_0x2c3532['model']['document']['registerPostFixer'](_0x164cbb=>{let _0x3176c1=!0x1;const _0x13af9b=_0x2c3532['plugins']['get']('Users')['me'],_0x195c46=_0x42d1c8['getSuggestions']()['filter'](_0x4d3725=>_0x4d3725['isInContent']&&_0x4d3725['author']==_0x13af9b),_0x3c495f=new Set(),_0x332c56=new Set();for(const _0x5ee47a of _0x195c46)if('tablePaste'==_0x5ee47a['subType'])for(const _0x5d2b6d of _0x5ee47a['getMarkers']()){const _0x5e405b=_0x5d2b6d['getRange']()['getContainedElement']();if(_0x5e405b){if(_0x5e405b['is']('element','tableCellSuggestion')&&Ke(_0x5e405b)){_0x5ee47a['removeMarker'](_0x5d2b6d['name']),_0x3c495f['add'](_0x5e405b),_0x3176c1=!0x0;const _0x552cfd=_0x5e405b['nextSibling'],_0x284201=_0x5e405b['previousSibling'],_0x336f6c=_0x552cfd&&_0x552cfd['is']('element','tableCellSuggestion'),_0x55db00=_0x284201&&_0x284201['is']('element','tableCellSuggestion');_0x336f6c&&!_0x3c495f['has'](_0x552cfd)&&_0x332c56['add'](_0x552cfd),_0x55db00&&!_0x3c495f['has'](_0x284201)&&_0x332c56['add'](_0x284201);}else _0x5e405b['is']('element','paragraph')&&_0x5e405b['isEmpty']&&(_0x5ee47a['removeMarker'](_0x5d2b6d['name']),_0x3176c1=!0x0);}}else{if('tablePasteCell'==_0x5ee47a['subType']){if(!_0x5ee47a['attributes']||!_0x5ee47a['attributes']['tablePasteChainId'])continue;const _0x31f32b=_0x5ee47a['attributes']['markerAttributes'];if(_0x31f32b&&Object['keys'](_0x31f32b)['length'])continue;const _0x128ea8=_0x5ee47a['attributes']['tablePasteChainId'];let _0x4db750=!0x0,_0x5cb953=!0x0;for(const _0x176e46 of _0x195c46)if(_0x176e46['subType']&&_0x176e46['subType']['startsWith']('tablePaste')){if(!_0x176e46['attributes']['tablePasteChainId']){_0x5cb953=!0x1;break;}if(_0x176e46['id']!=_0x5ee47a['id']&&_0x176e46['attributes']['tablePasteChainId']==_0x128ea8){_0x4db750=!0x1;break;}}_0x5cb953&&_0x4db750&&(_0x5ee47a['removeMarkers'](),_0x3176c1=!0x0);}}for(const _0x3f2362 of _0x3c495f)_0x164cbb['remove'](_0x3f2362);for(const _0x165a00 of _0x332c56)_0x164cbb['unwrap'](_0x165a00);return _0x3176c1;}),_0x2c3532['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7d7ae6=>_0x3b7b06(_0x7d7ae6),'converterPriority':'high'}),_0x2c3532['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b4e9,_0x163306)=>_0x163306['options']['showSuggestionHighlights']?_0x3b7b06(_0x31b4e9,!0x1):null,'converterPriority':'high'});const _0x2bc96c=_0x2c3532['editing']['view'];this['listenTo'](_0x2bc96c['document'],'clipboardOutput',(_0x1c2b7b,_0x41bb7c)=>{const _0xb0e16e=[];for(const _0x2a53b0 of _0x2bc96c['createRangeIn'](_0x41bb7c['content'])['getItems']())_0x2a53b0['is']('element','suggestion-td')&&_0xb0e16e['push'](_0x2a53b0);_0x2bc96c['change'](_0x418b55=>{for(const _0x12f3d9 of _0xb0e16e)_0x418b55['move'](_0x418b55['createRangeIn'](_0x12f3d9),_0x418b55['createPositionBefore'](_0x12f3d9)),_0x418b55['remove'](_0x12f3d9);});});}};function Ke(_0x52552e){if(_0x52552e['isEmpty'])return!0x0;const _0xa40441=_0x52552e['getChild'](0x0);return _0xa40441['is']('element','paragraph')&&_0xa40441['isEmpty'];}function Xe(_0x399fab,_0x5b464a={},_0x46c788){for(const {isAnchor:_0x26515d,cellHeight:_0x3a6f9c,cellWidth:_0x267558}of _0x46c788['createTableWalker'](_0x399fab,{'includeAllSlots':!0x0,..._0x5b464a}))if(!_0x26515d||0x1!=_0x3a6f9c||0x1!=_0x267558)return!0x1;return!0x0;}var qe=class extends _0x3b6d8a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d8dbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d8dbe['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x1d8dbe['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x1d8dbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d8dbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4430eb=_0x1d8dbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x1d8dbe['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x1925ec,_0x56afe8)=>{_0x4430eb(_0x1925ec,_0x56afe8),this['_restoreCellWidths'](_0x1925ec[0x0]['start']['nodeAfter'],_0x56afe8['commandParams'][0x0]['cellWidths']);}),_0x1d8dbe['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3b71eb,_0x1145fd){const _0x5e17cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5913b6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1da9ee=_0x1145fd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x212e4d=_0x5913b6['getColumnGroupElement'](_0x1da9ee);let _0x391156=_0x212e4d?_0x5913b6['getTableColumnsWidths'](_0x212e4d):null,_0x18ed29=_0x1da9ee['getAttribute']('tableWidth')||null;const _0x393b81=_0x1145fd['tableWidth']||_0x18ed29,_0x39fb7d=_0x1145fd['columnWidths']||_0x391156;let _0x49ecb3=this['_getCellWidths'](_0x1da9ee);const _0x10775a=this['_foldResizeTableSuggestion'](_0x1da9ee);_0x10775a&&(_0x18ed29=_0x10775a['tableWidth'],_0x391156=_0x10775a['columnWidths'],_0x49ecb3=_0x10775a['cellWidths']||_0x49ecb3),_0x3b71eb({'table':_0x1da9ee,'tableWidth':_0x393b81,'columnWidths':_0x39fb7d}),_0x5e17cd['markBlockFormat'](_0x1da9ee,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x18ed29,'columnWidths':_0x391156,'cellWidths':_0x49ecb3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x17a9c8,_0x2226b8={}){if(void 0x0===_0x2226b8['value']||''===_0x2226b8['value'])return void _0x17a9c8(_0x2226b8);const _0x563658=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32ec83=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24a6c1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2226b8['batch']||(_0x2226b8['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2226b8['batch'],()=>{const _0x3c5e7a=_0x32ec83['getColumnGroupElement'](_0x24a6c1);let _0xcf0c9d=_0x3c5e7a?_0x32ec83['getTableColumnsWidths'](_0x3c5e7a):null,_0x5ed18c=_0x24a6c1['getAttribute']('tableWidth')||null,_0x2f66bc=this['_getCellWidths'](_0x24a6c1);const _0x3575d1=this['_foldResizeTableSuggestion'](_0x24a6c1,!0x0);_0x3575d1&&(_0x5ed18c=_0x3575d1['tableWidth'],_0xcf0c9d=_0x3575d1['columnWidths'],_0x2f66bc=_0x3575d1['cellWidths']||_0x2f66bc),_0x17a9c8(_0x2226b8),_0x563658['markBlockFormat'](_0x24a6c1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ed18c,'columnWidths':_0xcf0c9d,'cellWidths':_0x2f66bc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x58a271,_0x365967=!0x1){const _0x4f8207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e68cb=this['editor']['plugins']['get']('Users')['me'];for(const _0x5cfd89 of _0x4f8207['getSuggestions']({'skipNotAttached':!0x0})){const _0x491813=_0x5cfd89['getContainedElement']();if('resizeTable'===_0x5cfd89['subType']&&_0x491813===_0x58a271){_0x5cfd89['author']!==_0x2e68cb&&(_0x365967?_0x5cfd89['removeMarkers']():_0x5cfd89['discard']());const _0x140295=_0x5cfd89['data']['commandParams'];return{'tableWidth':_0x140295[0x0]['tableWidth'],'columnWidths':_0x140295[0x0]['columnWidths'],'cellWidths':_0x140295[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x46fe3e){const _0x10746b=[];for(const _0x1ffad3 of _0x46fe3e['getChildren']())if(_0x1ffad3['is']('element','tableRow')){for(const _0x2ddf09 of _0x1ffad3['getChildren']())_0x10746b['push'](_0x2ddf09['getAttribute']('tableCellWidth')||null);}return _0x10746b;}_restoreCellWidths(_0x1c9d1c,_0x147675){_0x147675&&this['editor']['model']['change'](_0xdc835c=>{let _0x356b47=0x0;for(const _0x4be94a of _0x1c9d1c['getChildren']())if(_0x4be94a['is']('element','tableRow'))for(const _0x445284 of _0x4be94a['getChildren']()){const _0x38f8e7=_0x147675[_0x356b47++];_0x38f8e7&&_0xdc835c['setAttribute']('tableCellWidth',_0x38f8e7,_0x445284);}});}handleSuggestionDescription(_0x4281cb){if('formatBlock'!=_0x4281cb['type']&&'formatInline'!=_0x4281cb['type'])return;const {data:_0x4241ab}=_0x4281cb;return _0x4241ab&&'resizeTable'===_0x4241ab['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x3b6d8a{afterInit(){const _0x2b4681=this['editor'];_0x2b4681['plugins']['has']('Template')&&_0x2b4681['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x3b6d8a{afterInit(){const _0x37d624=this['editor'];if(!_0x37d624['commands']['get']('insertTableOfContents'))return;_0x37d624['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1db812=_0x37d624['plugins']['get']('TrackChangesEditing'),_0x1e381e=_0x37d624['locale'];_0x1db812['descriptionFactory']['registerElementLabel']('tableOfContents',_0x172c03=>Ot(_0x1e381e,'ELEMENT_TABLE_OF_CONTENTS',_0x172c03));}},Ze=class extends _0x3b6d8a{afterInit(){const _0x5d929f=this['editor'];_0x5d929f['plugins']['has']('Title')&&(_0x5d929f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x5d929f['locale'],'ELEMENT_TITLE')),_0x5d929f['model']['document']['registerPostFixer'](_0x47460f=>{let _0x492bc4=!0x1;const _0x531a2b=Array['from'](_0x5d929f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369030,data:_0x5cddf1}of _0x531a2b){const {group:_0x33522b}=et(_0x369030);if('suggestion'!==_0x33522b||!_0x5cddf1['newRange'])continue;const _0x2660c6=_0x5cddf1['newRange'],_0x3162c7=_0x2660c6['end']['nodeBefore'];if(!_0x3162c7||!_0x3162c7['is']('element','title-content'))continue;if(!_0x2660c6['start']['isTouching'](_0x2660c6['end']))continue;const _0x58fee2=_0x5d929f['model']['schema']['getNearestSelectionRange'](_0x2660c6['end'],'forward');if(_0x58fee2&&_0x58fee2['isCollapsed']){const _0x1fd277=_0x47460f['createRange'](_0x2660c6['start'],_0x58fee2['start']);_0x1fd277['isEqual'](_0x2660c6)||(_0x47460f['updateMarker'](_0x369030,{'range':_0x1fd277}),_0x492bc4=!0x0);}_0x492bc4||(_0x47460f['removeMarker'](_0x369030),_0x492bc4=!0x0);}return _0x492bc4;}));}},Je=class extends _0x3b6d8a{afterInit(){const _0x3ef12a=this['editor'],_0x557130=_0x3ef12a['plugins']['get']('TrackChangesEditing');_0x3ef12a['plugins']['has']('Uploadcare')&&(_0x557130['enableCommand']('uploadcare'),_0x3ef12a['plugins']['has']('UploadcareImageEdit')&&(_0x557130['enableCommand']('uploadcareImageEdit'),_0x557130['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x557130['descriptionFactory']['registerDescriptionCallback'](_0x5512e2=>{if('attribute'!=_0x5512e2['type'])return;const {data:_0xb4e896}=_0x5512e2;return _0xb4e896&&'uploadcareImageId'==_0xb4e896['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x3b6d8a{afterInit(){const _0x24db49=this['editor'],_0x50e73c=_0x24db49['plugins']['get']('TrackChangesEditing');_0x24db49['plugins']['has']('UndoEditing')&&(_0x50e73c['enableCommand']('undo'),_0x50e73c['enableCommand']('redo'));}},en=class extends _0x3b6d8a{static get requires(){return[Pe];}afterInit(){const _0x2529ca=this['editor'];_0x2529ca['plugins']['has']('TableCaptionEditing')&&_0x2529ca['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x3b6d8a{tableProperties;tableCellProperties;constructor(_0x25f017){super(_0x25f017),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 _0x3a0b12=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x8d5777 of this['tableProperties'])_0x3a0b12['enableCommand'](_0x8d5777,(_0x280d9c,_0x4dc8ed)=>{const _0x1c4667=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x8d5777,[_0x1c4667],this['tableProperties'],'tableProperties',_0x280d9c,_0x4dc8ed);});_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a0b12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cdddd,_0x470afa)=>this['handleDiscardAction'](this['tableProperties'],_0x5cdddd,_0x470afa)),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2ec2e4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2ec2e4)&&_0x3a0b12['enableCommand'](_0x2ec2e4,(_0x86a492,_0x5a167a)=>{const _0x1f52a8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2ec2e4,_0x1f52a8,this['tableCellProperties'],'tableCellProperties',_0x86a492,_0x5a167a);});_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a0b12['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55d724,_0x413a87)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55d724,_0x413a87)),_0x3a0b12['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3a0b12['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3a0b12['descriptionFactory']['registerDescriptionCallback'](_0x59efb1=>this['handleSuggestionDescription'](_0x59efb1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x6eec8f,_0x56695c,_0x5d45cd,_0x18f40f,_0x37a4fb,_0x49c5a5){const _0x5865df=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x49c5a5['batch'],()=>{for(const _0x29ccd4 of _0x56695c)if(this['_getSuggestion'](_0x29ccd4,_0x18f40f))_0x37a4fb(_0x49c5a5);else{const _0x174b27={};for(const _0x431832 of _0x5d45cd){const _0x1e18c2=_0x29ccd4['getAttribute'](_0x431832);void 0x0!==_0x1e18c2&&(_0x174b27[_0x431832]=_0x1e18c2);}const _0x41567d=this['_getResizedColumnWidths'](_0x29ccd4);_0x41567d&&(_0x174b27['columnWidths']=_0x41567d),_0x37a4fb(_0x49c5a5),_0x5865df['markBlockFormat'](_0x29ccd4,{'commandParams':[_0x174b27]},[],_0x18f40f);}});}handleDiscardAction(_0x201e99,_0x3c037c,_0xcbca12){const _0x39720a=_0x3c037c[0x0]['start']['nodeAfter'],_0x28de0f=_0xcbca12['commandParams'][0x0];this['editor']['model']['change'](_0x121caf=>{for(const _0x42fe85 of _0x201e99)void 0x0!==_0x28de0f[_0x42fe85]?_0x121caf['setAttribute'](_0x42fe85,_0x28de0f[_0x42fe85],_0x39720a):_0x121caf['removeAttribute'](_0x42fe85,_0x39720a);if(_0x28de0f['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x51a17d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x770d44=_0x51a17d['getColumnGroupElement'](_0x39720a);if(_0x770d44){const _0x49410b=_0x51a17d['getTableColumnsWidths'](_0x770d44),_0x2dc269=_0x39720a['getAttribute']('tableWidth');if(('string'==typeof _0x2dc269&&_0x2dc269['trim']()['endsWith']('px'))!==_0x49410b['some'](_0x692c47=>'string'==typeof _0x692c47&&_0x692c47['endsWith']('px'))){const _0x101c5f=_0x51a17d['getTableColumnElements'](_0x770d44);_0x28de0f['columnWidths']['forEach']((_0x176998,_0x166ed9)=>{_0x101c5f[_0x166ed9]&&_0x121caf['setAttribute']('columnWidth',_0x176998,_0x101c5f[_0x166ed9]);});}}}});}_getResizedColumnWidths(_0x39ff61){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x39ff61['is']('element','table'))return;const _0x35fc0c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x56a127=_0x35fc0c['getColumnGroupElement'](_0x39ff61);return _0x56a127?_0x35fc0c['getTableColumnsWidths'](_0x56a127):void 0x0;}handleSuggestionDescription(_0x8e355c){if(_0x8e355c['data'])switch(_0x8e355c['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x137c2d,_0x18cba4){const _0x4a0d23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x52c8ff of _0x4a0d23['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a36b5=_0x52c8ff['getContainedElement']();if(_0x52c8ff['subType']===_0x18cba4&&_0x3a36b5===_0x137c2d)return _0x52c8ff;}return null;}_registerTablePropertiesAttributes(){const _0x419eec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x233019=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2d4d85 of _0x233019){const _0x252d54=_0x2d4d85['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x419eec['descriptionFactory']['registerAttributeLabel'](_0x2d4d85,Ot(this['editor']['locale'],'FORMAT_'+_0x252d54));}}},sn=class extends _0x3b6d8a{afterInit(){const _0x4e21b1=this['editor'];if(!_0x4e21b1['plugins']['has']('LineHeight'))return;const _0x21e87d=_0x4e21b1['plugins']['get']('TrackChangesEditing'),_0x55f822=_0x4e21b1['locale'];_0x21e87d['enableDefaultAttributesIntegration']('lineHeight'),_0x21e87d['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x55f822,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x3b6d8a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x2a3df3,_0x5df0b9,_0x1da799,_0x2b14db,_0xc88042,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x528ae0){super(_0x528ae0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46e083,_0x2608b6,_0x2815d5,_0xd5dda2)=>{this['_model']['change'](()=>{for(const _0x15b5c6 of[..._0xd5dda2,..._0x2815d5])this['_model']['markers']['has'](_0x15b5c6)&&_0x528ae0['editing']['reconvertMarker'](_0x15b5c6);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x528ae0['plugins']['get'](_0x2a3df3),this['_suggestionsConversion']=_0x528ae0['plugins']['get'](_0x5df0b9),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x528ae0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x528ae0['config']['get']('trackChanges.trackFormatChanges'),_0x528ae0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x528ae0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x528ae0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x45aa79=this['editor'];_0x45aa79['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34930e,{writer:_0x3e437c})=>{let _0x4c3eef='suggestion:'+_0x34930e['getAttribute']('suggestion-type')+':'+_0x34930e['getAttribute']('id');return _0x34930e['getAttribute']('marker-count')&&(_0x4c3eef+=':'+_0x34930e['getAttribute']('marker-count')),_0x3e437c['createElement']('$marker',{'data-name':_0x4c3eef});}}),_0x45aa79['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45aa79['model']['document']['registerPostFixer'](_0x291e5b=>{let _0x1082bc=!0x1;const _0x28a93f=Array['from'](_0x45aa79['model']['document']['differ']['getChangedMarkers']()),_0x366271=new Set();for(const {name:_0x556a36,data:_0x42e81b}of _0x28a93f){const {group:_0x45c377,type:_0x510b6f,subType:_0x266475,id:_0x31d6f5}=et(_0x556a36);if('suggestion'!==_0x45c377)continue;const _0x3fb863=_0x266475?'suggestion:'+_0x510b6f+':'+_0x266475+':'+_0x31d6f5:'suggestion:'+_0x510b6f+':'+_0x31d6f5,_0x5d0745=_0x45aa79['model']['markers']['getMarkersGroup'](_0x3fb863),_0x49d961=_0x45aa79['model']['markers']['get'](_0x556a36),_0x168e8e=this['_suggestions']['get'](_0x31d6f5);if(null!=_0x42e81b['newRange']){'formatInline'==_0x510b6f&&(_0x1082bc=_0x1082bc||un(_0x42e81b['newRange'],_0x556a36,_0x291e5b,_0x45aa79['model']['schema']));const _0x69fb45='attribute'==_0x510b6f&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x266475)),_0x1e8c24='attribute'==_0x510b6f&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x266475));if(_0x42e81b['newRange']['isCollapsed']||'$graveyard'==_0x42e81b['newRange']['root']['rootName']||'formatBlock'==_0x510b6f&&!hn(_0x42e81b['newRange'])||_0x69fb45&&!hn(_0x42e81b['newRange'])||_0x1e8c24&&gn(_0x42e81b['newRange'])||'deletion'==_0x510b6f&&gn(_0x42e81b['newRange'])||_0x49d961&&fn(_0x49d961,_0x5d0745))_0x291e5b['removeMarker'](_0x556a36),_0x1082bc=!0x0;else{if(!_0x168e8e||!_0x168e8e['isInContent'])continue;if(_0x42e81b['newRange']&&_0x42e81b['oldRange']&&_0x42e81b['newRange']['isEqual'](_0x42e81b['oldRange']))continue;_0x366271['add'](_0x168e8e);}}}return _0x366271['size']>0x0&&(_0x1082bc=!!this['_joinWithAdjacentSuggestions'](_0x366271)||_0x1082bc),_0x1082bc;}),_0x45aa79['model']['document']['registerPostFixer'](_0x210c74=>{let _0x3376b9=!0x1;for(const _0x1f1693 of _0x45aa79['model']['document']['differ']['getChanges']())if('insert'==_0x1f1693['type'])for(const _0x379cd8 of this['_suggestions']['values']()){if(_0x379cd8['isMultiRange']||!_0x379cd8['isInContent'])continue;const _0x4a6121='formatBlock'==_0x379cd8['type'],_0x44037e=this['_getAttributeKey'](_0x379cd8),_0x57c62a=_0x44037e&&this['_suggestionsConversion']['isBlockAttribute'](_0x44037e);if(!_0x4a6121&&!_0x57c62a)continue;const _0x8977d6=_0x379cd8['getFirstRange']();if(_0x8977d6['start']['parent']!=_0x8977d6['end']['parent']&&!_0x8977d6['end']['isAtEnd']){const _0x537415=_0x45aa79['model']['createPositionAt'](_0x8977d6['start']['nodeAfter'],'end'),_0x2f2644=_0x45aa79['model']['createRange'](_0x8977d6['start'],_0x537415);_0x210c74['updateMarker'](_0x379cd8['getFirstMarker'](),{'range':_0x2f2644}),_0x3376b9=!0x0;}}return _0x3376b9;}),_0x45aa79['model']['document']['registerPostFixer'](_0x2eb796=>this['_processAttributeChanges'](_0x2eb796)),_0x45aa79['model']['document']['registerPostFixer'](_0x2f78a6=>!_0x2f78a6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f78a6)),_0x45aa79['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45aa79['model']['document']['on']('change:data',(_0x17cb5c,_0x5efdf5)=>{if(!_0x5efdf5['isLocal']||_0x5efdf5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ca607=_0x45aa79['model']['document']['differ']['getChanges']();if(0x0==_0x4ca607['length'])return;const _0x1a407b=[],_0xbfc4d0=_0x4ca607['filter'](_0x4957b7=>'attribute'==_0x4957b7['type']),_0x1290f9=_0x4ca607['filter'](_0xba4152=>'insert'==_0xba4152['type']&&'$text'!=_0xba4152['name']);for(const _0x5ec60d of _0xbfc4d0)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5ec60d['attributeKey'])&&_0x1a407b['push']({'key':_0x5ec60d['attributeKey'],'newValue':_0x5ec60d['attributeNewValue'],'oldValue':_0x5ec60d['attributeOldValue'],'range':mn(_0x5ec60d['range'],_0x45aa79['model'])});for(const _0x3dedbf of _0x1290f9){if('rename'!=_0x3dedbf['action']&&'refresh'!=_0x3dedbf['action'])continue;const _0x4f1c59=En(_0x3dedbf['position']['nodeAfter'],_0x45aa79['model']),_0x198c54=_0x3dedbf['before'];'rename'==_0x3dedbf['action']&&_0x1a407b['push']({'key':rn,'newValue':_0x3dedbf['name'],'oldValue':_0x198c54['name'],'range':_0x4f1c59});for(const [_0x3164c0,_0x1862a1]of _0x198c54['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3164c0))continue;const _0x3e0573=_0x3dedbf['attributes']['get'](_0x3164c0);_0x1862a1!==_0x3e0573&&_0x1a407b['push']({'key':_0x3164c0,'newValue':_0x3e0573,'oldValue':_0x1862a1,'range':_0x4f1c59});}for(const [_0x45edef,_0x342231]of _0x3dedbf['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x45edef)&&(_0x198c54['attributes']['has'](_0x45edef)||_0x1a407b['push']({'key':_0x45edef,'newValue':_0x342231,'oldValue':null,'range':_0x4f1c59}));}0x0!=_0x1a407b['length']&&_0x45aa79['model']['enqueueChange'](_0x5efdf5,_0x45ab8f=>{const _0x53c574=_0x3223bf();for(const {range:_0x310e82,key:_0x3bedbe,oldValue:_0x52be95,newValue:_0x75469}of _0x1a407b)this['markAttributeChange'](_0x310e82,_0x3bedbe,_0x52be95,_0x75469,{'groupId':_0x53c574});this['_reduceExistingSuggestions'](_0x45ab8f,_0x1a407b);});},{'priority':'lowest'}),_0x45aa79['model']['markers']['on']('update:suggestion',(_0x2ff00a,_0x124afc,_0x250571)=>{if(null==_0x250571){const {id:_0x2dfc29}=et(_0x124afc['name']),_0xec180b=this['_suggestions']['get'](_0x2dfc29);_0xec180b&&_0xec180b['addMarkerName'](_0x124afc['name']);}}),_0x45aa79['model']['document']['on']('change:data',()=>{const _0xc5887a=Array['from'](_0x45aa79['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51de0f=>'suggestion'===et(_0x51de0f['name'])['group']);if(0x0===_0xc5887a['length'])return;_0xc5887a['sort']((_0x881d81,_0x433e19)=>{const _0x35c80f=_0x881d81['data']['oldRange'],_0x31874c=_0x433e19['data']['oldRange'];return null===_0x35c80f&&null===_0x31874c?0x0:null===_0x35c80f&&null!==_0x31874c?-0x1:null!==_0x35c80f&&null===_0x31874c?0x1:_0x35c80f['start']['isBefore'](_0x31874c['start'])?-0x1:0x1;});const _0x4dd90d=new Set(),_0x2ceac1=new Set();for(const {name:_0x3b32e9,data:_0x3f2940}of _0xc5887a){const {id:_0x12fff0}=et(_0x3b32e9);if(null===_0x3f2940['oldRange']){const _0x3ef9e5=this['_handleNewSuggestionMarker'](_0x3b32e9);_0x2ceac1['add'](_0x3ef9e5);}else{const _0x3c2d64=this['_suggestions']['get'](_0x12fff0);null!==_0x3f2940['newRange']||_0x3c2d64['isInContent']?(_0x4dd90d['add'](_0x3c2d64['head']),_0x2ceac1['add'](_0x3c2d64)):this['_removeSuggestion'](_0x3c2d64);}}_0x2ceac1['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ceac1);for(const _0x506855 of _0x4dd90d)this['fire']('suggestionChanged',_0x506855);}),_0x45aa79['model']['on']('applyOperation',(_0x8f39ef,_0x53a4cb)=>{const _0x5da2d1=_0x53a4cb[0x0];if(!this['_suggestions']['size'])return;if(!_0x5da2d1['isDocumentOperation'])return;if(_0x5da2d1['batch']['isUndo']||!_0x5da2d1['batch']['isLocal'])return;let _0x1a7c3b,_0x2a84b8;switch(_0x5da2d1['type']){case'insert':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['position']),_0x2a84b8=_0x1a7c3b['getShiftedBy'](_0x5da2d1['howMany']);break;case'split':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['splitPosition']),_0x2a84b8=_0x45aa79['model']['createPositionAt'](_0x5da2d1['moveTargetPosition']);break;case'move':_0x1a7c3b=_0x45aa79['model']['createPositionAt'](_0x5da2d1['targetPosition']),_0x2a84b8=_0x1a7c3b['getShiftedBy'](_0x5da2d1['howMany']);break;default:return;}const _0x2ecefd=_0x45aa79['model']['createRange'](_0x1a7c3b,_0x2a84b8);_0x45aa79['model']['change'](()=>{for(const {suggestion:_0x10b9a8,meta:_0xc7e753}of this['_findSuggestions'](_0x2ecefd)){if(_0x10b9a8['isMultiRange'])continue;if('formatInline'==_0x10b9a8['type'])continue;const _0xd2ee2b=this['_getAttributeKey'](_0x10b9a8);if(_0xd2ee2b&&this['_suggestionsConversion']['isBlockAttribute'](_0xd2ee2b)&&'split'!=_0x5da2d1['type'])continue;const _0x210f16=_0x10b9a8['data']&&_0x10b9a8['data']['multipleBlocks'];('formatBlock'!=_0x10b9a8['type']||'split'==_0x5da2d1['type']&&!_0x210f16)&&(_0xc7e753['containsRangeInObject']||'insertion'==_0x10b9a8['type']&&_0xc7e753['isOwn']||_0x10b9a8['getFirstRange']()['containsRange'](_0x2ecefd)&&this['_breakSuggestionMarker'](_0x10b9a8,_0x1a7c3b,_0x2a84b8));}});},{'priority':'lowest'}),_0x45aa79['model']['on']('deleteContent',(_0x186c6b,_0x28df03)=>{const _0x3399d2=_0x28df03[0x0],_0x5798f8=_0x28df03[0x1];if(_0x5798f8&&_0x5798f8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3399d2['isCollapsed'])return;const _0xe5a371=_0x45aa79['model']['schema'],{start:_0x23051b,end:_0x329eb0}=_0x3399d2['getFirstRange'](),_0x21835a=_0x23051b['nodeAfter']&&_0xe5a371['isLimit'](_0x23051b['nodeAfter'])?null:_0xe5a371['getNearestSelectionRange'](_0x23051b,'forward'),_0x28ea4c=_0x329eb0['nodeBefore']&&_0xe5a371['isLimit'](_0x329eb0['nodeBefore'])?null:_0xe5a371['getNearestSelectionRange'](_0x329eb0,'backward'),_0x5a5029=_0x45aa79['model']['createRange'](_0x21835a?_0x21835a['start']:_0x23051b,_0x28ea4c?_0x28ea4c['end']:_0x329eb0);_0x45aa79['model']['change'](_0x48234d=>{this['markDeletion'](_0x5a5029);const _0x5587d2=_0x45aa79['model']['schema']['getNearestSelectionRange'](_0x5a5029['start']);_0x3399d2['is']('documentSelection')?_0x48234d['setSelection'](_0x5587d2):_0x3399d2['setTo'](_0x5587d2);}),_0x186c6b['stop']();},{'priority':_0x1315a6['normal']+0xa}),_0x45aa79['model']['on']('insertContent',(_0x4d924e,_0x15a0a8)=>{const _0x1fae6c=_0x15a0a8[_0x15a0a8['length']-0x1];_0x1fae6c&&_0x1fae6c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45aa79['model']['change'](()=>{let _0x4bcc88=_0x45aa79['model']['insertContent'](_0x15a0a8[0x0],_0x15a0a8[0x1],_0x15a0a8[0x2],{'forceDefaultExecution':!0x0});if(!_0x4bcc88)return;_0x4d924e['return']=_0x4bcc88['clone']();const _0x3236d0=_0x4bcc88['end']['nodeBefore'],_0x530109=_0x45aa79['model']['schema'];_0x3236d0&&_0x530109['isBlock'](_0x3236d0)&&!_0x530109['isObject'](_0x3236d0)&&(_0x4bcc88=_0x45aa79['model']['createRange'](_0x4bcc88['start'],_0x45aa79['model']['createPositionAt'](_0x3236d0,'end'))),this['markInsertion'](_0x4bcc88);}),_0x4d924e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x255f03=new pt(_0x45aa79,this['_suggestions']);_0x45aa79['commands']['add']('acceptSuggestion',_0x255f03),this['enableCommand']('acceptSuggestion');const _0x1c3bab=new Lt(_0x45aa79,this['_suggestions']);_0x45aa79['commands']['add']('discardSuggestion',_0x1c3bab),this['enableCommand']('discardSuggestion'),_0x45aa79['commands']['add']('acceptAllSuggestions',new yt(_0x45aa79,_0x255f03,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45aa79['commands']['add']('discardAllSuggestions',new yt(_0x45aa79,_0x1c3bab,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45aa79['commands']['add']('acceptSelectedSuggestions',new Nt(_0x45aa79,_0x255f03,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45aa79['commands']['add']('discardSelectedSuggestions',new Nt(_0x45aa79,_0x1c3bab,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4006f2=_0x45aa79['plugins']['get'](_0x2a3df3);this['listenTo'](_0x4006f2,'addComment',(_0x4c546f,{threadId:_0x3df41f})=>{const _0x2dcece=this['_suggestions']['get'](_0x3df41f);_0x2dcece&&_0x2dcece['commentThread']&&0x1===_0x2dcece['commentThread']['length']&&this['_updateSuggestionData'](_0x3df41f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4006f2,'removeComment',(_0xbdf3a7,{threadId:_0x3e55a9})=>{const _0x5a5250=this['_suggestions']['get'](_0x3e55a9);_0x5a5250&&_0x5a5250['commentThread']&&!_0x5a5250['commentThread']['length']&&this['_updateSuggestionData'](_0x3e55a9,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1f68ea){const _0x315424='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x3cb616=0x79140,_0x2bc939=window['Date']['now'](),_0x5d6571=_0x1f68ea['editor'],_0x4a3e19=new window['Promise'](_0x52edf1=>{_0x5d6571['once']('ready',_0x52edf1);}),_0x1fd99d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x15a68c=_0x5d6571['config']['get']('licenseKey');async function _0x14aaae(){let _0xdbbbcd,_0x2a9ed4=null,_0x5c7bbd=null;try{return'GPL'==_0x15a68c?'NotAllowed':(_0xdbbbcd=_0x18b36d(),_0xdbbbcd?(_0xdbbbcd['usageEndpoint']&&(_0x5c7bbd=_0x3d682f(_0xdbbbcd['usageEndpoint'],_0xdbbbcd['jti'])),await _0x4d0838()?_0x4bfb32()?_0x30d08a()?'Expired':_0x5e914a()?('evaluation'==_0xdbbbcd['licenseType']&&(_0x2a9ed4=_0x496d42('EvaluationLimit')),await _0x51211a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x30d08a(){const _0xbef001=['evaluation','trial']['includes'](_0xdbbbcd['licenseType'])?_0x2bc939/0x3e8:0xe10*_0x3cb616;return _0xdbbbcd['exp']<_0xbef001;}function _0x4bfb32(){const _0x459a22=_0xdbbbcd['features'];if(!_0x459a22)return!0x1;if(_0x459a22['includes']('*'))return!0x0;if(_0x459a22['includes']('TC'))return!0x0;if(_0x459a22['includes']('RTC')){if(_0x2d3fa4())return!0x0;if(_0x433bd6()||_0x4cdb6b())return!0x0;}return!0x1;}function _0x5e914a(){const _0x37a7a3=_0xdbbbcd['licensedHosts'];if(!_0x37a7a3||0x0==_0x37a7a3['length'])return!0x0;const {hostname:_0x14f780}=new URL(window['location']['href']);if(_0x37a7a3['includes'](_0x14f780))return!0x0;const _0x25bca4=_0x14f780['split']('.');return _0x37a7a3['filter'](_0x3fda6b=>_0x3fda6b['includes']('*'))['map'](_0x5a98be=>_0x5a98be['split']('.'))['filter'](_0x5aedda=>_0x5aedda['length']<=_0x25bca4['length'])['map'](_0x1960c0=>Array(_0x25bca4['length']-_0x1960c0['length'])['fill']('*'===_0x1960c0[0x0]?'*':'')['concat'](_0x1960c0))['some'](_0x1f9039=>_0x25bca4['every']((_0x50b1d5,_0x523ccd)=>_0x1f9039[_0x523ccd]===_0x50b1d5||'*'===_0x1f9039[_0x523ccd]));}function _0x51211a(){return _0x2a9ed4&&_0x5c7bbd?new window['Promise']((_0x330844,_0x55daab)=>{_0x2a9ed4['then'](_0x330844,_0x55daab),_0x5c7bbd['then'](_0x10b2bf=>{'Valid'!=_0x10b2bf&&_0x330844(_0x10b2bf);},_0x55daab);}):_0x2a9ed4||_0x5c7bbd||'Valid';}}function _0x3d682f(_0x1a61dc,_0x3e0d27){return new window['Promise'](_0x2dbdbe=>{if(_0x67f663())return _0x2dbdbe('Valid');_0x56c50d(),_0x5d6571['decorate']('_sendUsageRequest');let _0x463ca9=!0x1;const _0x5e0625=_0x3223bf();function _0x3188c2(_0x31999a){return!!_0x31999a&&('object'==typeof _0x31999a||'function'==typeof _0x31999a)&&'function'==typeof _0x31999a['then']&&'function'==typeof _0x31999a['catch'];}function _0x157af9(_0x735990){_0x52120a(_0x735990)['then'](_0x44d381=>_0x44d381&&'ok'==_0x44d381['status']?_0x316d99(_0x239aa6(_0x5e0625+_0x3e0d27))!=_0x44d381['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x6cd46e=>(_0x18b68e(),_0x6cd46e),()=>{const _0x4100df=_0x44b072();return null==_0x4100df?(_0x18b68e(),'Valid'):_0x2bc939-_0x4100df>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2dbdbe)['catch'](()=>{_0x2dbdbe('UsageLimit');});const _0x49e810=0x36ee80;function _0x18b68e(){const _0x3f0ed0='llct-'+_0x316d99(_0x239aa6(_0x1a61dc)),_0x3b9c11=_0xa8b077(_0x316d99(window['Math']['ceil'](_0x2bc939/_0x49e810)));window['localStorage']['setItem'](_0x3f0ed0,_0x3b9c11);}function _0x44b072(){const _0x3e846d='llct-'+_0x316d99(_0x239aa6(_0x1a61dc)),_0x34550f=window['localStorage']['getItem'](_0x3e846d);return _0x34550f?window['parseInt'](_0xa8b077(_0x34550f),0x10)*_0x49e810:null;}function _0x52120a(_0x3f3214){return new window['Promise']((_0x242925,_0x1847c2)=>{_0x3f3214['then'](_0x242925,_0x1847c2),window['setTimeout'](_0x1847c2,0x1d4c0);});}}_0x5d6571['on']('_sendUsageRequest',(_0x22a3e7,_0xec73fa)=>{if(_0xec73fa[0x0]!=_0x1a61dc)return _0x2dbdbe('UsageLimit');_0xec73fa[0x1]={..._0xec73fa[0x1],'requestId':_0x5e0625};},{'priority':'high'}),_0x5d6571['on']('_sendUsageRequest',_0xcc2ff1=>{_0x3188c2(_0xcc2ff1['return'])&&(_0x463ca9=!0x0,_0x157af9(_0xcc2ff1['return']));},{'priority':'low'}),_0x4a3e19['then'](()=>{_0x463ca9||_0x2dbdbe('UsageLimit');});});function _0x67f663(){return'auto'==_0x5d6571['editing']['view']['_overlayModeHint'];}function _0x56c50d(){_0x5d6571['editing']['view']['_overlayModeHint']='auto';}}function _0x496d42(_0xdcf2f5){const _0x4cf968=[new window['Promise'](_0x257cf2=>setTimeout(_0x257cf2,0x93ecc)),_0x4a3e19['then'](()=>new window['Promise'](_0x4abf2f=>{let _0x5ce35a=0x0;_0x5d6571['model']['on']('applyOperation',(_0xee9604,_0x274e03)=>{_0x274e03[0x0]['isDocumentOperation']&&_0x5ce35a++,0x5e8==_0x5ce35a&&(_0x4abf2f(),_0xee9604['off']());});}))];return window['Promise']['race'](_0x4cf968)['then'](()=>_0xdcf2f5);}async function _0x5e0daa(){await _0x4a3e19,_0x5d6571['model']['change']=_0x4fd544,_0x5d6571['model']['enqueueChange']=_0x4fd544,_0x5d6571['enableReadOnlyMode']('model');}function _0x2d3fa4(){return _0x47f7fb('WebSocketGateway')&&'connected'==_0x3be9b2('WebSocketGateway')['state'];}function _0x433bd6(){return _0x47f7fb('RevisionViewerIntegration');}function _0x4cdb6b(){return _0x47f7fb('TrackChangesDataGetter');}function _0x5b6d2(_0x262a0f){const _0x59a1bc=_0x3fcbae();_0x5d6571[_0x59a1bc]='trackChangesLicenseKey'+_0x262a0f,'Valid'!=_0x262a0f&&_0x5e0daa();}function _0x3fcbae(){const _0x1667ff=window['String'](window['performance']['now']())['replace']('.','');let _0x1fa192='R';for(let _0x4fe859=0x0;_0x4fe859<_0x1667ff['length'];_0x4fe859+=0x2){let _0x6e4381=window['parseInt'](_0x1667ff['substring'](_0x4fe859,_0x4fe859+0x2));_0x6e4381>=0x3e&&(_0x6e4381-=0x3e),_0x1fa192+=_0x315424[_0x6e4381];}return _0x1fa192;}function _0x18b36d(){const _0x47ae2e=_0x15a68c['split']('.');if(0x3!=_0x47ae2e['length'])return null;return _0x3c3ad5(_0x47ae2e[0x1]);function _0x3c3ad5(_0x37dfd6){const _0x469292=_0x117d4b(_0x37dfd6);return _0x469292&&_0x2bdaf0()?_0x469292:null;function _0x2bdaf0(){const _0xce9c12=_0x469292['jti'],_0x17d0c3=window['parseInt'](_0xce9c12['substring'](_0xce9c12['length']-0x8),0x10),_0xdb8cf7={..._0x469292,'jti':_0xce9c12['substring'](0x0,_0xce9c12['length']-0x8)};return delete _0xdb8cf7['vc'],_0x239aa6(_0xdb8cf7)==_0x17d0c3;}}}async function _0x4d0838(){let _0x4424df=!0x0;try{const [_0x2e442f,_0x100fb8,_0x5831b9]=_0x15a68c['split']('.');return _0x4ce879(_0x2e442f),await _0x55bd12(_0x2e442f,_0x100fb8,_0x5831b9),_0x4424df;}catch{return!0x1;}function _0x4ce879(_0x317f33){const _0x2badd0=_0x117d4b(_0x317f33);_0x2badd0&&'ES256'==_0x2badd0['alg']||(_0x4424df=!0x1);}async function _0x55bd12(_0x5789fb,_0x2dce8e,_0x2bf064){const _0x294724=window['Uint8Array']['from'](_0x56bedf(_0x2bf064),_0x344ec1=>_0x344ec1['charCodeAt'](0x0)),_0xe41609=new window['TextEncoder']()['encode'](_0x5789fb+'.'+_0x2dce8e),_0x5b3b32=window['crypto']['subtle'];if(!_0x5b3b32)return;const _0x5b41f5=await _0x5b3b32['importKey']('jwk',_0x1fd99d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5b3b32['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5b41f5,_0x294724,_0xe41609)||(_0x4424df=!0x1);}}function _0x117d4b(_0x2031e8){return _0x2031e8['startsWith']('ey')?JSON['parse'](_0x56bedf(_0x2031e8)):null;}function _0x56bedf(_0x3f2829){return window['atob'](_0x3f2829['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x239aa6(_0x41a9a1){let _0xd02868=0x1505;function _0x4c6ee0(_0x5e50c6){for(let _0x4327c3=0x0;_0x4327c3<_0x5e50c6['length'];_0x4327c3++){const _0x52bcd7=_0x5e50c6['charCodeAt'](_0x4327c3);_0xd02868=(_0xd02868<<0x5)+_0xd02868+_0x52bcd7,_0xd02868&=_0xd02868;}}function _0x296b44(_0x2571ac){Array['isArray'](_0x2571ac)?_0x2571ac['forEach'](_0x296b44):_0x2571ac&&'object'==typeof _0x2571ac?Object['entries'](_0x2571ac)['sort']()['forEach'](([_0x289bd0,_0x3646f1])=>{_0x4c6ee0(_0x289bd0),_0x296b44(_0x3646f1);}):_0x4c6ee0(window['String'](_0x2571ac));}return _0x296b44(_0x41a9a1),_0xd02868>>>0x0;}function _0x316d99(_0x157d8b){return _0x157d8b['toString'](0x10)['padStart'](0x8,'0');}function _0xa8b077(_0x227e59){return _0x227e59['split']('')['reverse']()['join']('');}function _0x47f7fb(_0x40a32a){return _0x5d6571['plugins']['has'](_0x40a32a);}function _0x3be9b2(_0x509bba){return _0x5d6571['plugins']['get'](_0x509bba);}function _0x4fd544(){}_0x5b6d2(await _0x14aaae());}(this);}set adapter(_0x5d2c03){if(this['_adapter'])throw new _0x531c91('track-changes-adapter-already-set',this);this['_adapter']=_0x5d2c03;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x4cc085=!0x1,toJSON:_0x2bc810=!0x1}={}){const _0x124d91=[];for(const _0x3918c5 of this['_suggestions']['values']())_0x4cc085&&!_0x3918c5['isInContent']||_0x124d91['push'](_0x3918c5);return _0x2bc810?_0x124d91['map'](_0x1e88b9=>_0x1e88b9['toJSON']()):_0x124d91;}getSuggestion(_0x3473a2){const _0x72dba=this['_suggestions']['get'](_0x3473a2);if(!_0x72dba)throw new _0x531c91('track-changes-suggestion-not-found',this);return _0x72dba;}hasSuggestion(_0x188cee){return this['_suggestions']['has'](_0x188cee);}addSuggestionData(_0x816906){const {authorId:_0x505f51,id:_0x30b5f4,originalSuggestionId:_0x3450ed,attributes:_0x5c4086}=_0x816906,[_0x55c62b,_0x32e9db]=_0x816906['type']['split'](':'),_0x432dac=this['_suggestions']['get'](_0x30b5f4)||this['_createSuggestion'](_0x55c62b,_0x32e9db,_0x30b5f4,_0x505f51,_0x5c4086,_0x3450ed);if(this['_addThreadToSuggestion'](_0x432dac),this['_checkSuggestionCorrectness'](_0x432dac,_0x55c62b,_0x32e9db||null,_0x505f51),_0x432dac['createdAt']=_0x816906['createdAt'],_0x432dac['_isDataLoaded']=!0x0,_0x5c4086&&_0x5c4086['@external']){const _0x1c57ab=_0x5c4086['@external'],_0x873b13=this['_getExternalAuthor'](_0x1c57ab['authorName']);_0x432dac['authoredAt']=_0x1c57ab['createdAt'],_0x432dac['author']=_0x873b13;}else _0x432dac['authoredAt']=_0x816906['createdAt'];switch(_0x816906['data']&&(_0x432dac['data']=_0x816906['data']),_0x816906['attributes']&&(_0x432dac['attributes']=_0x816906['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x432dac['_saved']=!0x0),this['_suggestionState']['get'](_0x432dac)){case'notReady':this['_suggestionState']['set'](_0x432dac,'dataReady');break;case'markerReady':_0x432dac['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x432dac])),this['_refreshSuggestionsChain'](new Set([_0x432dac])),this['_suggestionState']['set'](_0x432dac,'ready'),this['fire']('suggestionLoaded',_0x432dac)):this['_suggestionState']['set'](_0x432dac,'removed');}return _0x432dac;}acceptSuggestion(_0x45ac77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5743a9 of _0x45ac77['getAllAdjacentSuggestions']())_0x5743a9['accept']();});});}discardSuggestion(_0x3c4f3c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10eb74 of _0x3c4f3c['getAllAdjacentSuggestions']())_0x10eb74['discard']();});});}['enableCommand'](_0x37c437,_0x54e953){const _0x4b4a39=this['editor']['commands']['get'](_0x37c437);if(!_0x4b4a39)throw new _0x531c91('track-changes-command-not-found',this,{'commandName':_0x37c437});if(this['_enabledCommands']['has'](_0x4b4a39))throw new _0x531c91('track-changes-enable-command-twice',this,{'commandName':_0x37c437});this['_enabledCommands']['add'](_0x4b4a39),_0x54e953&&_0x4b4a39['on']('execute',(_0x280fec,_0x1e5c71)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1e5c71['length']>0x0&&_0x1e5c71[_0x1e5c71['length']-0x1]&&_0x1e5c71[_0x1e5c71['length']-0x1]['forceDefaultExecution']?_0x1e5c71['pop']():(_0x280fec['return']=_0x54e953((..._0x50bd15)=>_0x4b4a39['execute'](..._0x50bd15,{'forceDefaultExecution':!0x0}),..._0x1e5c71),_0x280fec['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x9b0872){let _0x62cfff,_0x57b9ec;const _0x20371d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x62cfff=_0x9b0872();}catch(_0x3d5d3c){_0x57b9ec=_0x3d5d3c;}return _0x20371d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57b9ec&&_0x531c91['rethrowUnexpectedError'](_0x57b9ec,this),_0x62cfff;}markInsertion(_0x437551,_0x475baf=null,_0x3e1ed2={}){if(_0x437551['isCollapsed'])return null;const _0x130a7c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e1ed2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42a99d,meta:_0x10ae2}of this['_findSuggestions'](_0x437551,'insertion'))if(_0x10ae2['isOwn']){if(!_0x10ae2['isNextTo']){if(_0x10ae2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x42a99d,_0x3e1ed2))continue;return _0x42a99d;}if(pn(_0x42a99d,_0x3e1ed2))return _0x42a99d;this['_breakSuggestionMarker'](_0x42a99d,_0x437551['start'],_0x437551['end']);break;}if(_0x475baf==_0x42a99d['subType']&&pn(_0x42a99d,_0x3e1ed2)){const _0x4c8c36=_0x42a99d['getFirstRange']();return _0x4c8c36['start']['isEqual'](_0x437551['end'])?this['_setSuggestionRange'](_0x42a99d,this['_model']['createRange'](_0x437551['start'],_0x4c8c36['end'])):this['_setSuggestionRange'](_0x42a99d,this['_model']['createRange'](_0x4c8c36['start'],_0x437551['end'])),_0x42a99d;}}const _0x22f7b1=_0x3223bf(),_0x48096c=_0x130a7c['id'],_0x2eea4f=_0x475baf?'insertion:'+_0x475baf:'insertion',_0xecf27=this['_setSuggestionData']({'id':_0x22f7b1,'type':_0x2eea4f,'createdAt':new Date(),'authorId':_0x48096c,'attributes':_0x3e1ed2});return this['_addSuggestionMarker'](_0x2eea4f,_0x22f7b1,_0x48096c,_0x437551),_0xecf27;}markMultiRangeInsertion(_0x16a790,_0x31356a='multi',_0x2a8b67={}){const _0x25e81e=this['editor']['plugins']['get']('Users')['me'],_0xe2491=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31356a,'join');this['_trackingSessionId']&&(_0x2a8b67['trackingSessionId']=this['_trackingSessionId']);for(const _0x3d858d of this['getSuggestions']())if(_0x3d858d['author']['id']==_0x25e81e['id']&&'insertion'==_0x3d858d['type']&&_0x3d858d['subType']==_0x31356a&&pn(_0x3d858d,_0x2a8b67)&&(_0xe2491(_0x3d858d['getRanges'](),_0x16a790)||_0xe2491(_0x16a790,_0x3d858d['getRanges']()))){for(const _0x42d895 of _0x16a790)_0x3d858d['addRange'](_0x42d895);return _0x3d858d;}for(const {suggestion:_0x4bc00b,meta:_0x29f985}of this['_findSuggestions'](_0x16a790,'insertion')){if(!_0x29f985['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x29f985['containsRangeInObject'])continue;if(!pn(_0x4bc00b,_0x2a8b67))continue;let _0x1c3508=!0x0;for(const _0x439bcf of _0x4bc00b['getRanges']())for(const _0x36665b of _0x16a790)if(!_0x439bcf['containsRange'](_0x36665b)){_0x1c3508=!0x1;break;}if(_0x1c3508)return _0x4bc00b;}const _0x1f1822=_0x3223bf(),_0x46d66e=_0x25e81e['id'],_0x15395d='insertion:'+_0x31356a,_0x59bbbb=this['_setSuggestionData']({'id':_0x1f1822,'type':_0x15395d,'createdAt':new Date(),'authorId':_0x46d66e,'attributes':_0x2a8b67});for(const _0x643f0e of _0x16a790)this['_addSuggestionMarker'](_0x15395d,_0x1f1822,_0x46d66e,_0x643f0e,Mt['getMultiRangeId']());return _0x59bbbb;}markInlineFormat(_0x156473,_0x12ff32,_0x485737=null,_0x27a199={}){if(_0x485737=_0x485737||dn(_0x12ff32),_0x156473['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a199['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d18f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x485737,'accept');return this['forceDefaultExecution'](()=>_0x1d18f2([_0x156473],_0x12ff32,_0x27a199)),null;}const _0x3196fd=this['editor']['plugins']['get']('Users')['me'],_0x5956f8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xc79d9,meta:_0x42a8d4}of this['_findSuggestions'](_0x156473,'insertion'))_0x42a8d4['isOwn']&&!_0x42a8d4['isInsideObject']&&_0x5956f8['push'](..._0xc79d9['getRanges']());}const _0x5cbd23=function(_0x25f4ed,_0x3f4627){const _0x2e7f2c=[];for(const _0x4face0 of _0x3f4627){const _0x30a88e=_0x25f4ed['getIntersection'](_0x4face0);_0x30a88e&&_0x2e7f2c['push'](_0x30a88e);}return _0x2e7f2c;}(_0x156473,_0x5956f8),_0x49b20f=function(_0x14b893,_0x54f66d){const _0x42fde0=[_0x14b893];for(const _0x2bf9da of _0x54f66d){let _0x34d855=0x0;for(;_0x34d855<_0x42fde0['length'];){const _0x11c755=_0x42fde0[_0x34d855]['getDifference'](_0x2bf9da);_0x42fde0['splice'](_0x34d855,0x1,..._0x11c755),_0x34d855+=_0x11c755['length'];}}return _0x42fde0;}(_0x156473,_0x5956f8);_0x5cbd23['length']&&this['_model']['change'](()=>{for(const _0x1ee73a of _0x5cbd23){const _0x4d8a02=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x485737,'accept');this['forceDefaultExecution'](()=>_0x4d8a02([_0x1ee73a],_0x12ff32,_0x27a199));}});for(const _0x539277 of _0x49b20f){let _0x56c551=null,_0x76fb9b=_0x539277['start'],_0x2e9668=_0x539277['end'];for(const {suggestion:_0x29cd28,meta:_0x24ae22}of this['_findSuggestions'](_0x539277,'formatInline')){if(!_0x24ae22['isOwn'])continue;if(_0x29cd28['subType']!=_0x485737)continue;if(!pn(_0x29cd28,_0x27a199))continue;const _0x24eaa0=_0x29cd28['getFirstRange']();if(_0x24eaa0['containsRange'](_0x539277,!0x0))return null;_0x76fb9b=_0x76fb9b['isBefore'](_0x24eaa0['start'])?_0x76fb9b:_0x24eaa0['start'],_0x2e9668=_0x2e9668['isAfter'](_0x24eaa0['end'])?_0x2e9668:_0x24eaa0['end'],_0x56c551?_0x24eaa0['start']['isBefore'](_0x56c551['getFirstRange']()['start'])?(_0x56c551['removeMarkers'](),_0x56c551=_0x29cd28):_0x29cd28['removeMarkers']():_0x56c551=_0x29cd28;}const _0x5304ef=this['_model']['createRange'](_0x76fb9b,_0x2e9668);if(_0x56c551)this['_setSuggestionRange'](_0x56c551,_0x5304ef);else{const _0x6cc5f2=_0x3223bf(),_0x33be04=_0x3196fd['id'];this['_setSuggestionData']({'id':_0x6cc5f2,'type':'formatInline:'+_0x485737,'data':_0x12ff32,'createdAt':new Date(),'authorId':_0x33be04,'attributes':_0x27a199}),this['_addSuggestionMarker']('formatInline:'+_0x485737,_0x6cc5f2,_0x33be04,_0x5304ef);}}return null;}markBlockFormat(_0x1bd0a7,_0x59162c,_0x14d7eb=[],_0x48264b=null,_0x4c2e95={}){_0x59162c['formatGroupId']||(_0x59162c['formatGroupId']=_0x59162c['commandName']),_0x59162c['multipleBlocks']=_0x1bd0a7['is']('range'),_0x48264b=_0x48264b||dn(_0x59162c);const _0x3d9c36=_0x14d7eb['map'](_0x59e29b=>En(_0x59e29b,this['_model'])),_0x5c7ef9=_0x1bd0a7['is']('range')?_0x1bd0a7:En(_0x1bd0a7,this['_model']);if(this['_trackingSessionId']&&(_0x4c2e95['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x574a6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48264b,'accept');return this['forceDefaultExecution'](()=>_0x574a6c([_0x5c7ef9],_0x59162c,_0x4c2e95)),null;}_0x3d9c36['push'](_0x5c7ef9);let _0x3681b7=!0x0;for(const _0x328edd of _0x3d9c36)if(!this['_rangeIsInLocalUserInsertion'](_0x328edd)){_0x3681b7=!0x1;break;}if(_0x3681b7&&'always'!==this['_trackFormatChanges']){const _0x466b6e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48264b,'accept');return this['forceDefaultExecution'](()=>_0x466b6e([_0x5c7ef9],_0x59162c,_0x4c2e95)),null;}let _0x33032f=null,_0x2265a2=_0x5c7ef9['start'],_0x281ef9=_0x5c7ef9['end'];for(const {suggestion:_0x99e35,meta:_0x264143}of this['_findSuggestions'](_0x5c7ef9,'formatBlock')){if(!_0x264143['isOwn'])continue;if(_0x264143['isNextTo']||_0x264143['containsRangeInObject']||_0x264143['isInsideObject'])continue;if(_0x99e35['data']['formatGroupId']!=_0x59162c['formatGroupId'])continue;if(!pn(_0x99e35,_0x4c2e95))continue;const _0x3c96e4=_0x99e35['getFirstRange']();if(_0x99e35['subType']==_0x48264b){if(_0x3c96e4['containsRange'](_0x5c7ef9,!0x0))return null;_0x2265a2=_0x2265a2['isBefore'](_0x3c96e4['start'])?_0x2265a2:_0x3c96e4['start'],_0x281ef9=_0x281ef9['isAfter'](_0x3c96e4['end'])?_0x281ef9:_0x3c96e4['end'],_0x33032f?_0x3c96e4['start']['isBefore'](_0x33032f['getFirstRange']()['start'])?(_0x33032f['removeMarkers'](),_0x33032f=_0x99e35):_0x99e35['removeMarkers']():_0x33032f=_0x99e35;}else{const _0x3b19b2=_0x5c7ef9['getIntersection'](_0x3c96e4);this['_cutOutSuggestionMarker'](_0x99e35,_0x3b19b2);}}const _0x422d51=this['editor']['plugins']['get']('Users')['me'],_0x1c0a53=_0x3223bf(),_0x2a22b2=_0x422d51['id'];if(_0x33032f)return this['_setSuggestionRange'](_0x33032f,this['_model']['createRange'](_0x2265a2,_0x281ef9)),_0x33032f;{const _0x485913=this['_setSuggestionData']({'id':_0x1c0a53,'type':'formatBlock:'+_0x48264b,'data':_0x59162c,'createdAt':new Date(),'authorId':_0x2a22b2,'attributes':_0x4c2e95});return this['_addSuggestionMarker']('formatBlock:'+_0x48264b,_0x1c0a53,_0x2a22b2,this['_model']['createRange'](_0x2265a2,_0x281ef9)),_0x485913;}}markMultiRangeBlockFormat(_0x3eca49,_0x110db9,_0x566547=[],_0x721926=null,_0x2817d4={}){_0x110db9['formatGroupId']||(_0x110db9['formatGroupId']=_0x110db9['commandName']);const _0x38bc85=_0x3eca49[0x0];_0x110db9['multipleBlocks']=_0x38bc85['is']('range'),_0x721926=_0x721926||dn(_0x110db9);const _0x3905e0=_0x566547['map'](_0x33ecac=>En(_0x33ecac,this['_model'])),_0x4d017c=_0x38bc85['is']('range')?_0x3eca49:_0x3eca49['map'](_0x310a65=>En(_0x310a65,this['_model']));if(this['_trackingSessionId']&&(_0x2817d4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22c9c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'accept');return this['forceDefaultExecution'](()=>_0x22c9c6(_0x4d017c,_0x110db9,_0x2817d4)),null;}_0x3905e0['push'](..._0x4d017c);let _0x49f836=!0x0;for(const _0x47b393 of _0x3905e0)if(!this['_rangeIsInLocalUserInsertion'](_0x47b393)){_0x49f836=!0x1;break;}if(_0x49f836&&'always'!==this['_trackFormatChanges']){const _0x440bd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'accept');return this['forceDefaultExecution'](()=>_0x440bd9(_0x4d017c,_0x110db9,_0x2817d4)),null;}const _0x46f5d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d3a0f of this['getSuggestions']()){const _0x1a9a5e=_0x3d3a0f['data'];if(_0x3d3a0f['author']['id']!=_0x46f5d3['id'])continue;if('formatBlock'!=_0x3d3a0f['type']||_0x1a9a5e['formatGroupId']!=_0x110db9['formatGroupId'])continue;if(!pn(_0x3d3a0f,_0x2817d4))continue;const _0x19862e=_0x3d3a0f['subType']==_0x721926;for(let _0x3757bf=0x0;_0x3757bf<_0x4d017c['length'];_0x3757bf++){const _0x4b8847=_0x4d017c[_0x3757bf];for(const _0x49f1bb of _0x3d3a0f['getMarkers']()){const _0x448ba8=_0x49f1bb['getRange']();if(_0x4b8847['isEqual'](_0x448ba8)){_0x19862e?(_0x4d017c['splice'](_0x3757bf,0x1),_0x3757bf--):_0x3d3a0f['removeMarker'](_0x49f1bb['name']);break;}}}}if(0x0==_0x4d017c['length'])return null;const _0x30e3e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x721926,'join');for(const _0x1e1e01 of this['getSuggestions']()){const _0x556eb0=_0x1e1e01['data'];if(_0x1e1e01['author']['id']==_0x46f5d3['id']&&('formatBlock'==_0x1e1e01['type']&&_0x556eb0['formatGroupId']==_0x110db9['formatGroupId']&&_0x1e1e01['subType']==_0x721926&&pn(_0x1e1e01,_0x2817d4)&&(_0x30e3e0(_0x1e1e01['getRanges'](),_0x4d017c)||_0x30e3e0(_0x4d017c,_0x1e1e01['getRanges']())))){for(const _0x23bb15 of _0x4d017c)_0x1e1e01['addRange'](_0x23bb15);return _0x1e1e01;}}const _0x38b3d7=_0x3223bf(),_0x5a0547=_0x46f5d3['id'],_0x1cbee7='formatBlock:'+_0x721926,_0x4c70ef=this['_setSuggestionData']({'id':_0x38b3d7,'type':_0x1cbee7,'data':_0x110db9,'createdAt':new Date(),'authorId':_0x5a0547,'attributes':_0x2817d4});for(const _0x4f7b3e of _0x4d017c)this['_addSuggestionMarker'](_0x1cbee7,_0x38b3d7,_0x5a0547,_0x4f7b3e,Mt['getMultiRangeId']());return _0x4c70ef;}markDeletion(_0x1f2329,_0x3f17fc=null,_0x22f3ae={}){if(_0x1f2329['isCollapsed'])return null;const _0x3bc816=this['editor']['plugins']['get']('Users')['me'],_0x1f4c95=new ot(_0x1f2329['start'],_0x1f2329['end']);this['_trackingSessionId']&&(_0x22f3ae['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfbfc48,meta:_0xbe6104}of this['_findSuggestions'](_0x1f4c95,'insertion'))if(_0xbe6104['isOwn']&&!_0xbe6104['isNextTo']){if(_0xfbfc48['isMultiRange']){const _0x11566a=_0xfbfc48['getRanges']()['filter'](_0x23e5cd=>'$graveyard'!=_0x23e5cd['root']['rootName']);if(_0x11566a['every'](_0x152738=>_0x1f4c95['containsRange'](_0x152738,!0x0))&&_0xfbfc48['discard'](),_0x11566a['some'](_0xce4f=>_0xce4f['containsRange'](_0x1f4c95,!0x0))){const _0x51fdf4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f17fc,'accept');return this['forceDefaultExecution'](()=>_0x51fdf4([_0x1f4c95],null,_0x22f3ae)),null;}}else{const _0x3900d4=_0x1f4c95['getIntersection'](_0xfbfc48['getFirstRange']());null!==_0x3900d4&&_0xfbfc48['_onDiscard']([_0x3900d4],null,_0x22f3ae);}}if(_0x1f4c95['detach'](),_0x1f4c95['isCollapsed']||'$graveyard'==_0x1f4c95['root']['rootName'])return null;let _0x147ff5=null,_0x57e929=_0x1f4c95['start'],_0xda429a=_0x1f4c95['end'];const _0xf9e868=this['_findSuggestions'](_0x1f4c95,'deletion');for(const {suggestion:_0x30d5d2,meta:_0x44f0a9}of _0xf9e868){const _0x40402f=this['_model']['createRange'](_0x57e929,_0xda429a);if(_0x44f0a9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44f0a9['containsRangeInObject']&&!_0x44f0a9['isInsideObject'])){if(_0x30d5d2['isMultiRange']){if(!pn(_0x30d5d2,_0x22f3ae))continue;let _0x55a833=!0x0;for(const _0x3b0ff5 of _0x30d5d2['getRanges']()){if(_0x3b0ff5['containsRange'](_0x40402f,!0x0))return _0x30d5d2;_0x40402f['containsRange'](_0x3b0ff5)||(_0x55a833=!0x1);}_0x55a833&&_0x30d5d2['discard']();}else{const _0xa7b1de=_0x30d5d2['getFirstRange']();if(_0xa7b1de['containsRange'](_0x40402f,!0x0))return _0x30d5d2;if(!pn(_0x30d5d2,_0x22f3ae)){_0x40402f['containsRange'](_0xa7b1de)?_0x30d5d2['removeMarkers']():_0xa7b1de['containsPosition'](_0x57e929)?_0x57e929=_0xa7b1de['end']:_0xa7b1de['containsPosition'](_0xda429a)&&(_0xda429a=_0xa7b1de['start']);continue;}_0x57e929=_0x57e929['isBefore'](_0xa7b1de['start'])?_0x57e929:_0xa7b1de['start'],_0xda429a=_0xda429a['isAfter'](_0xa7b1de['end'])?_0xda429a:_0xa7b1de['end'],_0x22f3ae=Object['assign']({},_0x30d5d2['attributes']),_0x147ff5?_0xa7b1de['start']['isBefore'](_0x147ff5['getFirstRange']()['start'])?(_0x147ff5['removeMarkers'](),_0x147ff5=_0x30d5d2):_0x30d5d2['removeMarkers']():_0x147ff5=_0x30d5d2;}}}if(_0x147ff5)return this['_setSuggestionRange'](_0x147ff5,this['_model']['createRange'](_0x57e929,_0xda429a)),_0x147ff5;{const _0x5008a2=_0x3223bf(),_0x5d1c00=this['_model']['createRange'](_0x57e929,_0xda429a),_0x396eaf=_0x3bc816['id'],_0x4a0293=_0x3f17fc?'deletion:'+_0x3f17fc:'deletion',_0x1e5396=this['_setSuggestionData']({'id':_0x5008a2,'type':_0x4a0293,'createdAt':new Date(),'authorId':_0x396eaf,'attributes':_0x22f3ae});return this['_addSuggestionMarker'](_0x4a0293,_0x5008a2,_0x396eaf,_0x5d1c00),_0x1e5396;}}markMultiRangeDeletion(_0x56fec3,_0x17c027='multi',_0x28789d={}){const _0x35077b=this['editor']['plugins']['get']('Users')['me'],_0x21f43d=_0x56fec3['map'](_0x592d77=>new ot(_0x592d77['start'],_0x592d77['end'])),_0x2f353c=new Set();this['_trackingSessionId']&&(_0x28789d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4c45f8,meta:_0xd9f0bb}of this['_findSuggestions'](_0x21f43d,'insertion'))_0xd9f0bb['isOwn']&&!_0xd9f0bb['isNextTo']&&_0x2f353c['add'](_0x4c45f8);for(const _0x16246b of _0x2f353c)if(_0x16246b['isMultiRange']){const _0x12c490=_0x16246b['getRanges']();if(_0x16246b['attributes']&&_0x16246b['attributes']['skipNestingCheck']||_0x12c490['every'](_0x26d40b=>_0x21f43d['some'](_0x2d5790=>_0x2d5790['containsRange'](_0x26d40b,!0x0)))&&_0x16246b['discard'](),_0x21f43d['every'](_0x2b3d4a=>_0x12c490['some'](_0x559c10=>_0x559c10['containsRange'](_0x2b3d4a,!0x0)))){const _0x2c5fe1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'accept');return this['forceDefaultExecution'](()=>_0x2c5fe1(_0x56fec3,null,_0x28789d)),null;}}else{const _0x1b31b3=_0x16246b['getFirstRange']();if(_0x21f43d['some'](_0xfb4eda=>_0xfb4eda['containsRange'](_0x1b31b3,!0x0))&&_0x16246b['discard'](),_0x21f43d['every'](_0x243733=>_0x1b31b3['containsRange'](_0x243733,!0x0))){const _0x133eae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'accept');return this['forceDefaultExecution'](()=>_0x133eae(_0x21f43d,null,_0x28789d)),null;}}const _0x51b2d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17c027,'join');let _0x1b88cc=null;for(const _0x2ca825 of this['getSuggestions']())if(_0x2ca825['author']['id']==_0x35077b['id']&&_0x2ca825['isInContent']&&'deletion'==_0x2ca825['type']&&_0x2ca825['subType']==_0x17c027&&pn(_0x2ca825,_0x28789d)&&(_0x51b2d6(_0x2ca825['getRanges'](),_0x21f43d)||_0x51b2d6(_0x21f43d,_0x2ca825['getRanges']()))){if(_0x1b88cc){if(_0x2ca825['commentThread']&&_0x2ca825['commentThread']['length'])continue;for(const _0x108e0f of _0x2ca825['getRanges']())_0x1b88cc['isIntersectingWithRange'](_0x108e0f)||_0x1b88cc['addRange'](_0x108e0f);_0x2ca825['removeMarkers']();}else{_0x1b88cc=_0x2ca825;for(const _0x5a90df of _0x21f43d)_0x2ca825['isIntersectingWithRange'](_0x5a90df)||_0x2ca825['addRange'](_0x5a90df);}}if(_0x1b88cc)return _0x1b88cc;_0x2f353c['clear']();for(const {suggestion:_0x1ade60,meta:_0x4b2dc5}of this['_findSuggestions'](_0x21f43d,'deletion'))_0x4b2dc5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b2dc5['containsRangeInObject']&&!_0x4b2dc5['isInsideObject'])&&pn(_0x1ade60,_0x28789d)&&_0x2f353c['add'](_0x1ade60);for(const _0x265e3f of _0x2f353c){const _0x5341e8=_0x265e3f['getRanges']();if((!_0x28789d||!_0x28789d['skipNestingCheck'])&&_0x21f43d['every'](_0x4ac111=>_0x5341e8['some'](_0x2bf1e4=>_0x2bf1e4['containsRange'](_0x4ac111,!0x0))))return _0x265e3f;_0x265e3f['attributes']&&_0x265e3f['attributes']['skipNestingCheck']||_0x5341e8['every'](_0x45fa60=>_0x21f43d['some'](_0xc3cad4=>_0xc3cad4['containsRange'](_0x45fa60,!0x0)))&&_0x265e3f['discard']();}const _0x418e6d=_0x3223bf(),_0x2de621=_0x35077b['id'],_0x58f73d='deletion:'+_0x17c027,_0x4cc425=this['_setSuggestionData']({'id':_0x418e6d,'type':_0x58f73d,'createdAt':new Date(),'authorId':_0x2de621,'attributes':_0x28789d});for(const _0x3c877f of _0x21f43d)_0x3c877f['detach'](),_0x3c877f['isCollapsed']||'$graveyard'==_0x3c877f['root']['rootName']||this['_addSuggestionMarker'](_0x58f73d,_0x418e6d,_0x2de621,_0x3c877f,Mt['getMultiRangeId']());return _0x4cc425;}markAttributeChange(_0x57ea9d,_0x1eb2fa,_0x31d64d,_0x4566dc,_0x57ecdd){if(_0x57ea9d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32255b=this['editor']['plugins']['get']('Users')['me']['id'],_0x451b4e=Array['from'](this['_suggestions']['values']())['filter'](_0x41a60a=>'attribute'==_0x41a60a['type']&&_0x41a60a['data']['key']==_0x1eb2fa&&_0x41a60a['isIntersectingWithRange'](_0x57ea9d));if(this['_trackingSessionId']&&(_0x57ecdd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1786a3=this['_findSuggestions'](_0x57ea9d,'insertion')['filter'](({meta:_0x31fd3a})=>_0x31fd3a['isOwn']&&!_0x31fd3a['isInsideObject']&&!_0x31fd3a['isNextTo'])['map'](({suggestion:_0x26fb0c})=>_0x26fb0c);_0x451b4e['unshift'](..._0x1786a3);}const _0x15f42d=new Map([[_0x57ea9d,_0x31d64d]]);for(const _0x2eae96 of _0x451b4e){const _0x4b3a64='attribute'==_0x2eae96['type']?_0x2eae96['data']['oldValue']:void 0x0,_0xf6b8dd=_0x2eae96['getFirstRange'](),_0x383ab7=Array['from'](_0x15f42d['keys']())['find'](_0x499eee=>_0x499eee['isIntersecting'](_0xf6b8dd));if(!_0x383ab7)continue;const _0x3a09fd=_0x383ab7['getDifference'](_0xf6b8dd);this['_suggestionsConversion']['isBlockAttribute'](_0x1eb2fa)&&'insertion'==_0x2eae96['type']&&0x0!=_0x3a09fd['length']||(_0x15f42d['delete'](_0x383ab7),_0x3a09fd['forEach'](_0x16832c=>{_0x15f42d['set'](_0x16832c,_0x31d64d);}),'insertion'!=_0x2eae96['type']&&_0x4b3a64!=_0x4566dc&&_0x15f42d['set'](_0x383ab7['getIntersection'](_0xf6b8dd),_0x4b3a64));}const _0x3782fd=[];for(const [_0x4f56f2,_0x58aada]of _0x15f42d){const _0x1d67b0=_0x3223bf(),_0x317c4a={'key':_0x1eb2fa,'oldValue':_0x58aada,'newValue':_0x4566dc};_0x1eb2fa['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':_0x1eb2fa});const _0x1a4d96=('attribute:'+_0x1eb2fa+'|'+dn({'newValue':_0x4566dc}))['substring'](0x0,0x3c),_0x35d632=this['_setSuggestionData']({'id':_0x1d67b0,'type':_0x1a4d96,'data':_0x317c4a,'createdAt':new Date(),'authorId':_0x32255b,'attributes':_0x57ecdd});_0x3782fd['push'](_0x35d632),this['_addSuggestionMarker'](_0x1a4d96,_0x1d67b0,_0x32255b,_0x4f56f2);}return _0x3782fd;}enableDefaultAttributesIntegration(_0x1a7760){this['enableCommand'](_0x1a7760,(_0x27fa47,..._0x17baae)=>{this['recordAttributeChanges'](()=>{_0x27fa47(..._0x17baae);});});}startTrackingSession(_0x22a252){return this['_trackingSessionId']=void 0x0!==_0x22a252?_0x22a252:_0x3223bf(),this['_trackingSessionId'];}_getAttributeKey(_0x4b1ab6){return'attribute'==_0x4b1ab6['type']?In(_0x4b1ab6['subType']):null;}_applyOperationsAsSuggestions(_0x433db4){if(0x0==_0x433db4['length'])return;const _0x7c842b=this['editor'],_0x511a4b=_0x7c842b['plugins']['get'](_0xc88042),_0x463005=[],_0xa656b8=_0x44a083=>{const _0x8fb27f=_0x44a083['_aiSource'];return _0x8fb27f?{'@ai':{'type':_0x8fb27f}}:{};},_0x3ab23b=(_0x1cfde2,_0x2cd3cd,_0x44447f)=>{for(let _0x2d2f17=_0x2cd3cd;_0x2d2f17<_0x1cfde2['operations']['length'];_0x2d2f17++){const _0x3ab942=_0x1cfde2['operations'][_0x2d2f17];'marker'===_0x3ab942['type']&&(_0x3ab942['_aiSource']=_0x44447f);}};_0x7c842b['model']['change'](_0x13f694=>{for(let _0xb5dbf9=0x0;_0xb5dbf9<_0x433db4['length'];_0xb5dbf9++){const _0x1f51a3=_0x433db4[_0xb5dbf9],_0x112daf=_0x1f51a3['_aiSource'],_0x19fcd7=_0x13f694['batch']['operations']['length'];if(_0x1f51a3['baseVersion']=_0x7c842b['model']['document']['version'],_0x1f51a3['isDocumentOperation']=!0x0,!_0x12593f(_0x1f51a3)){if(_0x511a4b['isMarkedRemoveOperation'](_0x1f51a3)){const _0x23644b=_0x1088e8(_0x1f51a3['newRange'],_0x7c842b['model']);_0x463005['unshift']({'range':ot['fromRange'](_0x23644b),'opAttributes':_0xa656b8(_0x1f51a3),'aiSource':_0x112daf});}else{switch(_0x1f51a3['type']){case'rename':{const _0x1adbc6=_0x1f51a3['oldName'],_0xa91ffd=_0x1f51a3['newName'];if(_0x1adbc6==_0xa91ffd)break;_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x91b4a3='$elementName',_0x470ec4=_0x1f51a3['position'],_0x3f845f=_0x7c842b['model']['createRange'](_0x470ec4,_0x7c842b['model']['createPositionAt'](_0x470ec4['nodeAfter'],'end'));this['markAttributeChange'](_0x3f845f,_0x91b4a3,_0x1adbc6,_0xa91ffd,{..._0xa656b8(_0x1f51a3),'groupId':_0x3223bf()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2ca758=_0x1f51a3['oldValue'],_0x641ba2=_0x1f51a3['newValue'];if(_0x2ca758==_0x641ba2)break;_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x514aad=_0x1f51a3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x514aad))break;const _0x2d32ab=_0x1088e8(_0x1f51a3['range'],_0x7c842b['model']);this['markAttributeChange'](_0x2d32ab,_0x514aad,_0x2ca758,_0x641ba2,{..._0xa656b8(_0x1f51a3),'groupId':_0x3223bf()});break;}case'insert':{if(_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3),_0x433db4[_0xb5dbf9+0x1]&&'move'==_0x433db4[_0xb5dbf9+0x1]['type'])break;const _0x2c6c9f=_0x1f51a3['position'],_0x41bd85=_0x1f51a3['howMany'],_0x2006b3=_0x1088e8(_0x7c842b['model']['createRange'](_0x2c6c9f,_0x2c6c9f['getShiftedBy'](_0x41bd85)),_0x7c842b['model']);this['markInsertion'](_0x2006b3,null,{..._0xa656b8(_0x1f51a3)});break;}case'split':{_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);const _0x561345=_0x1f51a3['splitPosition'],_0x49263f=_0x1f51a3['moveTargetPosition'],_0x51b893=_0x7c842b['model']['createRange'](_0x561345,_0x49263f);this['markInsertion'](_0x51b893,null,{..._0xa656b8(_0x1f51a3)});break;}case'move':case'remove':_0x13f694['batch']['addOperation'](_0x1f51a3),_0x7c842b['model']['applyOperation'](_0x1f51a3);}_0x112daf&&_0x3ab23b(_0x13f694['batch'],_0x19fcd7,_0x112daf);}}}for(const {range:_0x211746,opAttributes:_0x41111b,aiSource:_0x473601}of _0x463005){const _0x4f0ff9=_0x13f694['batch']['operations']['length'];_0x211746['detach'](),this['markDeletion'](_0x211746,null,{..._0x41111b}),_0x473601&&_0x3ab23b(_0x13f694['batch'],_0x4f0ff9,_0x473601);}});}_setSuggestionRange(_0x3d184e,_0x379a5d){const _0x3c6cf1=_0x3d184e['getFirstMarker']();this['_model']['change'](_0x1e4bda=>{_0x1e4bda['updateMarker'](_0x3c6cf1,{'range':_0x379a5d});});}_addThreadToSuggestion(_0xb07406){const _0x170e89=_0xb07406['id'],_0x39941e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x170e89)||this['_commentsRepository']['addCommentThread']({'channelId':_0x39941e,'threadId':_0x170e89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x414a49=this['_commentsRepository']['getCommentThread'](_0x170e89);_0x414a49['unbind']('isRemovable'),_0x414a49['isRemovable']=!0x1,_0xb07406['commentThread']=_0x414a49;}_checkSuggestionCorrectness(_0x494b13,_0xff383f,_0x1ef81e,_0x1538d7){if(_0x494b13['type']!=_0xff383f||_0x494b13['subType']!=_0x1ef81e||_0x494b13['creator']['id']!=_0x1538d7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x531c91('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x44c289,_0xeb0d66){const _0x309483=_0x44c289['getFirstRange']();if(_0xeb0d66['isEqual'](_0x309483))_0x44c289['removeMarkers']();else{if(_0x309483['containsRange'](_0xeb0d66)){const _0x4911c4=this['_model']['createPositionAt'](_0xeb0d66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x309483['start'],_0x4911c4));const _0x364447=_0x3223bf(),_0x15568e=_0x44c289['creator']['id'],_0x3b3825=_0x44c289['type']+':'+_0x44c289['subType'];this['_setSuggestionData']({'id':_0x364447,'type':_0x3b3825,'createdAt':new Date(),'authorId':_0x15568e,'data':_0x44c289['data'],'attributes':_0x44c289['attributes']});const _0x4ac2b7=this['_model']['createPositionAt'](_0xeb0d66['end']['parent'],'after'),_0x4adb5b=this['_model']['createRange'](_0x4ac2b7,_0x309483['end']);this['_addSuggestionMarker'](_0x3b3825,_0x364447,_0x15568e,_0x4adb5b);}else{if(_0x309483['containsPosition'](_0xeb0d66['start'])){const _0x15e444=this['_model']['createPositionAt'](_0xeb0d66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x309483['start'],_0x15e444));}else{const _0x3d10d0=this['_model']['createPositionAt'](_0xeb0d66['end']['parent'],'after');this['_setSuggestionRange'](_0x44c289,this['_model']['createRange'](_0x3d10d0,_0x309483['end']));}}}}_rangeIsInLocalUserInsertion(_0x85ce5e){for(const {suggestion:_0x4029b2,meta:_0x373771}of this['_findSuggestions'](_0x85ce5e,'insertion')){if(!_0x373771['isOwn'])continue;const _0x31449f=_0x4029b2['getRanges']();for(const _0x3efc95 of _0x31449f)if(!_0x85ce5e['getDifference'](_0x3efc95)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x580d60){return this['editor']['plugins']['get']('Users')['getUser'](_0x580d60);}_getExternalAuthor(_0x25549f){const _0x3cb0ab=this['editor']['plugins']['get']('Users'),_0x353569=_0x5e550b('external:'+_0x25549f),_0x212d74=_0x3cb0ab['getUser'](_0x353569);return _0x212d74||_0x3cb0ab['addUser']({'id':_0x353569,'name':_0x25549f});}_createSuggestion(_0x4753f9,_0x27c9ac,_0x4c6b29,_0x14af40,_0x3cef98,_0x229f33){const _0x6099e2=this['_getAuthorFromId'](_0x14af40);if(!_0x6099e2)throw new _0x531c91('track-changes-user-not-found',this,{'authorId':_0x14af40,'suggestionId':_0x4c6b29});const _0x1179fc=this['_suggestionFactory']['buildSuggestion'](_0x4753f9,_0x27c9ac,_0x4c6b29,_0x6099e2,_0x3cef98,_0x3e3681=>{this['_updateSuggestionData'](_0x4c6b29,{'attributes':_0x3e3681});const _0x51fd0a=this['getSuggestion'](_0x4c6b29);this['_joinWithAdjacentSuggestions'](new Set([_0x51fd0a])),this['_refreshSuggestionsChain'](new Set([_0x51fd0a]));},_0x229f33);return this['listenTo'](_0x1179fc,'accept',()=>{this['_updateSuggestionData'](_0x4c6b29,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1179fc,'discard',()=>{this['_updateSuggestionData'](_0x4c6b29,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c6b29,_0x1179fc),this['_suggestionState']['set'](_0x1179fc,'notReady'),_0x1179fc;}_breakSuggestionMarker(_0x720247,_0x12c0de,_0x2a6127){const _0x4401a4=_0x720247['getFirstRange'](),_0x227352=_0x4401a4['start'],_0x5449fb=_0x4401a4['end'];this['_setSuggestionRange'](_0x720247,this['_model']['createRange'](_0x227352,_0x12c0de));const _0x4d30fa=_0x3223bf(),_0x33552f=_0x720247['creator']['id'],_0x4693a6=_0x720247['type']+(_0x720247['subType']?':'+_0x720247['subType']:'');this['_setSuggestionData']({'id':_0x4d30fa,'type':_0x4693a6,'createdAt':new Date(),'authorId':_0x33552f,'originalSuggestionId':_0x720247['_originalSuggestionId']||_0x720247['id'],'attributes':_0x720247['attributes'],'data':_0x720247['data']});const _0x1f43b8=this['_getAttributeKey'](_0x720247);('formatBlock'==_0x720247['type']||_0x1f43b8&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f43b8))&&(_0x2a6127=this['_model']['createPositionBefore'](_0x2a6127['parent'])),this['_addSuggestionMarker'](_0x4693a6,_0x4d30fa,_0x33552f,this['_model']['createRange'](_0x2a6127,_0x5449fb));}_findSuggestions(_0x5a7b97,_0x1eea22=null){const _0x4e03fd=[],_0x32d96a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5a7b97)||(_0x5a7b97=[_0x5a7b97]);for(const _0x462c3a of this['getSuggestions']()){if(!_0x462c3a['isInContent'])continue;if(_0x1eea22&&_0x462c3a['type']!=_0x1eea22)continue;let _0x3753ab=!0x1;for(const _0x493d4b of _0x462c3a['getRanges']()){for(const _0x15e45d of _0x5a7b97){const _0x25ebb3=_0x15e45d['start']['isEqual'](_0x493d4b['end'])||_0x15e45d['end']['isEqual'](_0x493d4b['start']);if(_0x25ebb3||_0x15e45d['getIntersection'](_0x493d4b)){const _0x313628=_0x15e45d['containsRange'](_0x493d4b)&&cn(this['_model']['schema'],_0x493d4b['start'],_0x15e45d),_0xc78ccb=_0x493d4b['containsRange'](_0x15e45d)&&cn(this['_model']['schema'],_0x15e45d['start'],_0x493d4b);_0x4e03fd['push']({'suggestion':_0x462c3a,'meta':{'isOwn':_0x32d96a==_0x462c3a['author'],'isNextTo':_0x25ebb3,'isInsideObject':_0x313628,'containsRangeInObject':_0xc78ccb}}),_0x3753ab=!0x0;break;}}if(_0x3753ab)break;}}return _0x4e03fd;}_addSuggestionMarker(_0x27cfa1,_0x43ede8,_0x2646c9,_0x3fd9ce,_0x55cc70){this['_model']['change'](_0x6faa62=>{let _0x215d55='suggestion:'+_0x27cfa1+':'+_0x43ede8+':'+_0x2646c9;_0x55cc70&&(_0x215d55=_0x215d55+':'+_0x55cc70),_0x6faa62['addMarker'](_0x215d55,{'range':_0x3fd9ce,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x4892fc){const _0x336f3d=_0x4892fc['previous'],_0x3aa6fd=_0x4892fc['next'];_0x4892fc['previous']=null,_0x4892fc['next']=null,null!=_0x336f3d&&_0x336f3d['next']==_0x4892fc&&(_0x336f3d['next']=_0x3aa6fd),null!=_0x3aa6fd&&_0x3aa6fd['previous']==_0x4892fc&&(_0x3aa6fd['previous']=_0x336f3d),'ready'==this['_suggestionState']['get'](_0x4892fc)&&(this['_suggestionState']['set'](_0x4892fc,'removed'),this['fire']('suggestionUnloaded',_0x4892fc,_0x336f3d,_0x3aa6fd));}_setSuggestionData(_0x2ec7ea){const _0x217913=_0x2ec7ea['id'],_0x50202b=this['addSuggestionData'](_0x2ec7ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x20b04b=this['editor']['plugins']['get']('PendingActions'),_0x5b90a1=_0x50202b['hasComments'],_0x1f6bc7=_0x50202b['subType']?_0x50202b['type']+':'+_0x50202b['subType']:_0x50202b['type'],_0x4b98da=this['editor']['locale'],_0x55651b=_0x20b04b['add'](Ot(_0x4b98da,'PENDING_ACTION_SUGGESTION')),_0x136e2e={'id':_0x217913,'type':_0x1f6bc7,'hasComments':_0x5b90a1,'data':_0x2ec7ea['data']||null,'originalSuggestionId':_0x2ec7ea['originalSuggestionId']||null,'attributes':_0x50202b['attributes']};this['_adapter']['addSuggestion'](_0x136e2e)['then'](_0x3a4410=>{_0x50202b['_saved']=!0x0,_0x20b04b['remove'](_0x55651b),_0x3a4410&&_0x3a4410['createdAt']&&(this['_suggestions']['get'](_0x217913)['createdAt']=_0x3a4410['createdAt']);})['catch'](_0x4a8686=>{throw _0x2a998d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50202b['discard']();}),_0x50202b['stopListening'](),this['_suggestions']['delete'](_0x50202b['id']),this['_suggestionState']['delete'](_0x50202b),_0x4a8686;});}return _0x50202b;}_updateSuggestionData(_0x27dbc2,_0x31476c){const _0x296165=this['editor']['plugins']['get']('PendingActions'),_0x1b284d=this['getSuggestion'](_0x27dbc2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b284d['_saved']){const _0x5055f4=_0x296165['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x27dbc2,_0x31476c)['then'](()=>{_0x296165['remove'](_0x5055f4);});}else _0x1b284d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x27dbc2,_0x31476c);});}}_getSuggestionData(_0x40585b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x531c91('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x40585b);}_handleNewSuggestionMarker(_0xc9686c){const {id:_0x4ffc76,type:_0x112cd9,subType:_0x5740ee,authorId:_0x33b03e}=et(_0xc9686c),_0x16127f=this['_suggestions']['get'](_0x4ffc76)||this['_createSuggestion'](_0x112cd9,_0x5740ee,_0x4ffc76,_0x33b03e,{});switch(this['_checkSuggestionCorrectness'](_0x16127f,_0x112cd9,_0x5740ee,_0x33b03e),this['_suggestionState']['get'](_0x16127f)){case'notReady':this['_getSuggestionData'](_0x4ffc76)['then'](_0x18045f=>{let _0x3436ac=Promise['resolve']();_0x18045f['hasComments']&&(_0x3436ac=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ffc76})),_0x3436ac['then'](()=>{this['addSuggestionData'](_0x18045f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16127f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ffc76,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16127f,'ready'),this['fire']('suggestionLoaded',_0x16127f);break;case'ready':this['fire']('suggestionChanged',_0x16127f);}return _0x16127f['addMarkerName'](_0xc9686c),_0x16127f;}_refreshSuggestionsChain(_0x4cf4cf){const _0x8d10cf=Array['from'](_0x4cf4cf),_0x18492c=_0x8d10cf['filter'](_0x48d40a=>'attribute'==_0x48d40a['type']);this['_refreshAttributeSuggestionsChain'](_0x18492c);const _0x370667=_0x8d10cf['filter'](_0x553c40=>!_0x553c40['isMultiRange']&&'attribute'!=_0x553c40['type']),_0x49e657=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32a3a7=>!_0x32a3a7['isMultiRange']&&'attribute'!=_0x32a3a7['type']),_0x52ca7d=_0x49e657['filter'](_0x3189a5=>!_0x4cf4cf['has'](_0x3189a5)),_0x529fe8=new Map(_0x49e657['map'](_0x3b22aa=>[_0x3b22aa,this['_suggestionFactory']['getSuggestionCallback'](_0x3b22aa['type'],_0x3b22aa['subType'],'chain')])),_0x3da1de=new Map(_0x49e657['map'](_0x52b7fc=>[_0x52b7fc,_0x52b7fc['getFirstRange']()])),_0xa0388d=new Set(),_0x370ca3=new Set();for(let _0x4193e1=0x0;_0x4193e1<_0x370667['length'];_0x4193e1++)_0x4e9f59(_0x370667[_0x4193e1],_0x370667,_0x4193e1+0x1);for(let _0x2c21f9=0x0;_0x2c21f9<_0x370667['length'];_0x2c21f9++)_0x4e9f59(_0x370667[_0x2c21f9],_0x52ca7d,0x0);const _0x22f1a8=new Set();for(let _0x1170e4=0x0;_0x1170e4<_0x370667['length'];_0x1170e4++){const _0x42b2e2=_0x370667[_0x1170e4];!_0x370ca3['has'](_0x42b2e2)&&_0x42b2e2['previous']&&(_0x22f1a8['add'](_0x42b2e2['previous']),_0x42b2e2['previous']['next']===_0x42b2e2&&(_0x42b2e2['previous']['next']=null),_0x42b2e2['previous']=null),!_0xa0388d['has'](_0x42b2e2)&&_0x42b2e2['next']&&(_0x22f1a8['add'](_0x42b2e2['next']),_0x42b2e2['next']['previous']===_0x42b2e2&&(_0x42b2e2['next']['previous']=null),_0x42b2e2['next']=null);}function _0x4e9f59(_0x3f2941,_0xb10d3c,_0x445107){for(let _0x4de318=_0x445107;_0x4de318<_0xb10d3c['length'];_0x4de318++){const _0x2cb14c=_0xa00f5b(_0x3f2941,_0xb10d3c[_0x4de318]);_0x2cb14c&&(_0x2cb14c[0x0]['next']=_0x2cb14c[0x1],_0x2cb14c[0x1]['previous']=_0x2cb14c[0x0],_0xa0388d['add'](_0x2cb14c[0x0]),_0x370ca3['add'](_0x2cb14c[0x1]));}}function _0xa00f5b(_0x353b05,_0x2b67a1){if(_0x353b05['author']['id']!==_0x2b67a1['author']['id'])return null;const _0x252a83=_0x529fe8['get'](_0x353b05)(_0x353b05,_0x2b67a1,_0x3da1de['get'](_0x353b05),_0x3da1de['get'](_0x2b67a1));return _0x252a83&&_0x529fe8['get'](_0x2b67a1)(_0x353b05,_0x2b67a1,_0x3da1de['get'](_0x353b05),_0x3da1de['get'](_0x2b67a1))?_0x252a83[0x1]['commentThread']&&_0x252a83[0x1]['commentThread']['length']?null:_0x252a83:null;}_0x22f1a8['size']&&this['_refreshSuggestionsChain'](_0x22f1a8);}_refreshAttributeSuggestionsChain(_0x5563da){if(0x0==_0x5563da['length'])return;const _0xfa05ca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aa896=>'attribute'==_0x5aa896['type']&&_0x5aa896['_isDataLoaded']),_0x49cd10=[],_0x44fb15=new Map();for(const _0x292128 of _0xfa05ca){const _0x242d65=_0x5e550b(_0x292128['attributes']);_0x44fb15['has'](_0x242d65)||(_0x44fb15['set'](_0x242d65,_0x49cd10['length']),_0x49cd10['push']([])),_0x49cd10[_0x44fb15['get'](_0x242d65)]['push'](_0x292128);}!(function(){_0x49cd10['sort']((_0x396ebf,_0x29dc32)=>{const _0x1e8ff7=_0x396ebf[0x0]['createdAt'],_0x3de7ea=_0x29dc32[0x0]['createdAt'];return _0x1e8ff7==_0x3de7ea?_0x396ebf[0x0]['attributes']['groupId']<_0x29dc32[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e8ff7<_0x3de7ea?-0x1:0x1;});for(const _0x30b967 of _0x49cd10)_0x30b967['sort']((_0xf524a2,_0x416233)=>_0xf524a2['id']<_0x416233['id']?-0x1:0x1);}());for(let _0x365338=0x0;_0x365338<_0x49cd10['length'];_0x365338++){if(0x0==_0x49cd10[_0x365338]['length'])continue;const _0xd40fa8=[];for(let _0x3ce588=_0x365338+0x1;_0x3ce588<_0x49cd10['length'];_0x3ce588++)0x0!=_0x49cd10[_0x3ce588]['length']&&_0x2209a8(_0x49cd10[_0x365338],_0x49cd10[_0x3ce588])&&_0xd40fa8['push'](_0x3ce588);for(const _0x300431 of _0xd40fa8)_0x49cd10[_0x365338]=_0x49cd10[_0x365338]['concat'](_0x49cd10[_0x300431]),_0x49cd10[_0x300431]=[];}for(const _0x467312 of _0x49cd10)for(let _0x3961db=0x0;_0x3961db<_0x467312['length'];_0x3961db++){const _0x196711=_0x467312[_0x3961db+0x1]||null;_0x467312[_0x3961db]['next']!==_0x196711&&(_0x467312[_0x3961db]['next']=_0x196711);}for(const _0x284fd3 of _0x49cd10)for(let _0x312930=0x0;_0x312930<_0x284fd3['length'];_0x312930++){const _0x7894a5=_0x284fd3[_0x312930-0x1]||null;_0x284fd3[_0x312930]['previous']!==_0x7894a5&&(_0x284fd3[_0x312930]['previous']=_0x7894a5);}function _0x2209a8(_0x422d6d,_0x44aa59){return(_0x422d6d[0x0]['attributes']['groupId']===_0x44aa59[0x0]['attributes']['groupId']||_0x422d6d[0x0]['author']===_0x44aa59[0x0]['author'])&&(!!function(_0x164d4d,_0x17cc0a){return!_0x164d4d['hasComments']&&!_0x17cc0a['hasComments']||(!_0x164d4d['hasComments']||!_0x17cc0a['hasComments'])&&(!!(_0x164d4d['hasComments']&&_0x17cc0a['createdAt']<_0x164d4d['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x17cc0a['hasComments']&&_0x164d4d['createdAt']<_0x17cc0a['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x422d6d[0x0],_0x44aa59[0x0])&&(!!lt(ut(_0x422d6d[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x44aa59[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x422d6d[0x0]['attributes']['groupId']==_0x44aa59[0x0]['attributes']['groupId']||_0x422d6d[0x0]['attributes']['trackingSessionId']===_0x44aa59[0x0]['attributes']['trackingSessionId']&&(!!_0x422d6d['every'](_0x49e119=>_0x44aa59['some'](_0x31de2d=>_0x49e119['getFirstRange']()['isEqual'](_0x31de2d['getFirstRange']())))&&_0x44aa59['every'](_0x26fc6f=>_0x422d6d['some'](_0x22833b=>_0x26fc6f['getFirstRange']()['isEqual'](_0x22833b['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x2fa4fa){const _0x168bc7=Array['from'](_0x2fa4fa),_0x1d617d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x8bab8f=_0x1d617d['filter'](_0x4de708=>!_0x2fa4fa['has'](_0x4de708)),_0x4cb378=new Map(_0x168bc7['map'](_0xdc0c4a=>[_0xdc0c4a,this['_suggestionFactory']['getSuggestionCallback'](_0xdc0c4a['type'],_0xdc0c4a['subType'],'join')])),_0x18972c=new Map(_0x1d617d['map'](_0x2742d9=>[_0x2742d9,_0x2742d9['getRanges']()]));for(let _0x1fce04=0x0;_0x1fce04<_0x168bc7['length'];_0x1fce04++)if(_0x3c649d(this,_0x168bc7[_0x1fce04],_0x168bc7,_0x1fce04+0x1))return!0x0;for(let _0x6c5654=0x0;_0x6c5654<_0x168bc7['length'];_0x6c5654++)if(_0x3c649d(this,_0x168bc7[_0x6c5654],_0x8bab8f,0x0))return!0x0;return!0x1;function _0x3c649d(_0x390886,_0x1597e0,_0x319aed,_0x5d18a8){for(let _0x5f1e19=_0x5d18a8;_0x5f1e19<_0x319aed['length'];_0x5f1e19++){const _0x5defef=_0x319aed[_0x5f1e19];if(_0x5defef['type']!==_0x1597e0['type']||_0x5defef['author']['id']!==_0x1597e0['author']['id']||_0x5defef['subType']!==_0x1597e0['subType'])continue;if(!_n(_0x1597e0,_0x5defef))continue;if('attribute'==_0x1597e0['type']&&_0x1597e0['data']['oldValue']!=_0x5defef['data']['oldValue'])continue;if('attribute'==_0x1597e0['type']&&_0x390886['_suggestionsConversion']['isBlockAttribute'](_0x1597e0['data']['key']))continue;if('formatBlock'==_0x1597e0['type']){const _0x1a6772=_0x390886['editor']['model'],_0x270e36=_0x1597e0['getContainedElement']();if(_0x270e36&&(_0x1a6772['schema']['isObject'](_0x270e36)||_0x1a6772['schema']['isLimit'](_0x270e36)))continue;}const _0x2664fd=_0x4cb378['get'](_0x1597e0),_0x5e119a=_0x18972c['get'](_0x1597e0),_0x14abac=_0x18972c['get'](_0x5defef),_0x4cb686=_0x1597e0['commentThread']&&_0x1597e0['commentThread']['length'],_0x4a2941=_0x5defef['commentThread']&&_0x5defef['commentThread']['length'];if(!_0x4cb686&&_0x2664fd(_0x14abac,_0x5e119a))return _0x390886['_joinSuggestions'](_0x5defef,_0x1597e0),_0x18972c['delete'](_0x1597e0),!0x0;if(!_0x4a2941&&_0x2664fd(_0x5e119a,_0x14abac))return _0x390886['_joinSuggestions'](_0x1597e0,_0x5defef),_0x18972c['delete'](_0x5defef),!0x0;}return!0x1;}}_joinSuggestions(_0x18be6f,_0x1b63c7){if(_0x18be6f['isMultiRange']){for(const _0x135677 of _0x1b63c7['getRanges']())_0x18be6f['addRange'](_0x135677);}else{const _0x17ecda=_0x1b63c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x18be6f,this['_model']['createRange'](_0x18be6f['getFirstRange']()['start'],_0x17ecda));}_0x1b63c7['removeMarkers']();}_getMarkerAnnouncementText(_0x32fc43,_0x4ca806,_0x5bde6e){const _0x1b06e3=_0x32fc43['startsWith']('format')||_0x32fc43['startsWith']('attribute')?'FORMATTING':_0x32fc43['toUpperCase']();return Ot(this['editor']['locale'],_0x4ca806+'_'+_0x1b06e3+'_SUGGESTION_ANNOUNCEMENT',_0x5bde6e);}_initAriaMarkerChangeAnnouncements(){const _0x284af6=this['editor'];if(!_0x284af6['ui'])return;const {ariaLiveAnnouncer:_0x415e3b}=_0x284af6['ui'];nt(this['_model'],({left:_0x2b8b65,entered:_0x4a4f28})=>{for(const _0x708d6 of _0x2b8b65){const {group:_0x38451e,type:_0x30c280}=et(_0x708d6['name']);if('suggestion'===_0x38451e){_0x415e3b['announce'](this['_getMarkerAnnouncementText'](_0x30c280,'LEAVE'));break;}}for(const _0x206642 of _0x4a4f28){const {group:_0x22b0cc,type:_0x152aa3}=et(_0x206642['name']);if('suggestion'===_0x22b0cc){_0x415e3b['announce'](this['_getMarkerAnnouncementText'](_0x152aa3,'ENTER',_0x263f96(_0x48a7da)));break;}}});}_processAttributeChanges(_0x2e6ebb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x7564c8=this['editor'],_0x278e76=_0x7564c8['model']['document']['differ']['getChanges']();if(0x0==_0x278e76['length'])return!0x1;const _0x1e89bf=[],_0x1e7ce4=_0x278e76['filter'](_0x2a3587=>'attribute'==_0x2a3587['type']),_0x5bfeb2=_0x278e76['filter'](_0x5b6241=>'insert'==_0x5b6241['type']&&'$text'!=_0x5b6241['name']),_0x51408c=_0x278e76['filter'](_0x49e846=>'remove'==_0x49e846['type']&&'$text'!=_0x49e846['name']);for(const _0x394e9c of _0x1e7ce4)_0x1e89bf['push']({'key':_0x394e9c['attributeKey'],'newValue':_0x394e9c['attributeNewValue'],'oldValue':_0x394e9c['attributeOldValue'],'range':mn(_0x394e9c['range'],_0x7564c8['model'])});for(const _0x53febb of _0x5bfeb2){const _0x33f2ff=_0x51408c['find'](_0x4a1f55=>_0x4a1f55['position']['isEqual'](_0x53febb['position']));_0x33f2ff&&_0x1e89bf['push']({'key':rn,'newValue':_0x53febb['name'],'oldValue':_0x33f2ff['name'],'range':_0x7564c8['model']['createRangeOn'](_0x53febb['position']['nodeAfter'])});}return 0x0!=_0x1e89bf['length']&&this['_reduceExistingSuggestions'](_0x2e6ebb,_0x1e89bf);}_processAttributeSuggestions(_0x29548a){let _0x6de4=!0x1;const _0x761e8f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27a5ac=>_0x27a5ac['data']['newRange']&&_0x27a5ac['name']['startsWith']('suggestion:attribute:'));for(const _0x5bbfb3 of _0x761e8f){const {subType:_0x2a7771,id:_0x295ff2}=et(_0x5bbfb3['name']),_0x43cabf=_0x2a7771['split']('|')[0x0];for(const _0x2038d5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2038d5['id']!=_0x295ff2&&'attribute'==_0x2038d5['type']&&_0x2038d5['data']&&_0x2038d5['data']['key']==_0x43cabf&&_0x2038d5['getFirstRange']()['isIntersecting'](_0x5bbfb3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2038d5,_0x5bbfb3['data']['newRange'],_0x29548a),_0x6de4=!0x0);}return _0x6de4;}recordAttributeChanges(_0x5f2036){this['_recordAttributeSuggestions']=!0x0,_0x5f2036();}_reduceExistingSuggestions(_0x2acd1d,_0x35ac1e){if(0x0==_0x35ac1e['length'])return!0x1;let _0x2adce4=!0x1;for(const _0x2e31e1 of _0x35ac1e){const _0x2c38d4=this['_findSuggestions'](_0x2e31e1['range'],'attribute')['filter'](_0x4644fe=>!_0x4644fe['meta']['isNextTo'])['map'](_0x2c7c39=>_0x2c7c39['suggestion']),_0x47dedf=_0x5e550b({'newValue':_0x2e31e1['newValue']});_0x2c38d4['filter'](_0x43fe59=>{const [_0x5a1596,_0x1a6676]=_0x43fe59['subType']['split']('|');return _0x5a1596==_0x2e31e1['key']&&_0x1a6676!=_0x47dedf;})['forEach'](_0x5e8d2e=>{this['_reduceSuggestionAttributeRange'](_0x5e8d2e,_0x2e31e1['range'],_0x2acd1d),_0x2adce4=!0x0;});}return _0x2adce4;}_reduceSuggestionAttributeRange(_0x5d436c,_0x159ec4,_0x5e2dd4){const _0x2526d8=_0x5d436c['getFirstRange']()['getDifference'](_0x159ec4);0x0!==_0x2526d8['length']?0x1!==_0x2526d8['length']?this['_breakSuggestionMarker'](_0x5d436c,_0x159ec4['start'],_0x159ec4['end']):this['_setSuggestionRange'](_0x5d436c,_0x2526d8[0x0]):_0x5e2dd4['removeMarker'](_0x5d436c['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x553b07){this['_editor']=_0x553b07,this['_model']=_0x553b07['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x32d84b,_0x36a56a,_0x45e1e4,_0x5884a4,_0x2be26e,_0x175b13,_0x37b2f6){return new Mt(this['_model'],{'type':_0x32d84b,'subType':_0x36a56a,'id':_0x45e1e4,'originalSuggestionId':_0x37b2f6,'author':_0x5884a4,'creator':_0x5884a4,'attributes':_0x2be26e,'onAttributesChange':_0x175b13,'onAccept':(..._0x3fed9c)=>this['getSuggestionCallback'](_0x32d84b,_0x36a56a,'accept')(..._0x3fed9c),'onDiscard':(..._0x21ef8e)=>this['getSuggestionCallback'](_0x32d84b,_0x36a56a,'discard')(..._0x21ef8e)});}registerCustomCallback(_0x8d61d1,_0x1cb7f3,_0x43796f,_0xe6030c){const _0x211b28=_0x8d61d1+':'+_0x1cb7f3+':'+_0x43796f;this['_customCallbacks']['set'](_0x211b28,_0xe6030c);}getSuggestionCallback(_0x6395a4,_0x48f29f,_0x5c790a){const _0x350861=_0x6395a4+':'+_0x48f29f+':'+_0x5c790a;return this['_customCallbacks']['get'](_0x350861)||this['_defaultCallbacks']['get'](_0x6395a4+':'+_0x5c790a);}_registerDefaultCallbacks(){const _0x312128=()=>!0x1,_0x13dbf7=_0x55962a=>{_0x55962a['sort']((_0x4f7dfc,_0x15b8ad)=>_0x4f7dfc['start']['isBefore'](_0x15b8ad['start'])?0x1:-0x1),this['_model']['change'](_0x6c63f7=>{for(const _0x411ab of _0x55962a){let _0x1b4337;_0x1b4337=_0x411ab['end']['isAtEnd']&&_0x411ab['end']['parent']==_0x411ab['start']['nodeAfter']?_0x6c63f7['createSelection'](_0x411ab['start']['nodeAfter'],'on'):_0x6c63f7['createSelection'](_0x411ab),this['_model']['deleteContent'](_0x1b4337,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x561d22=(_0x51bb34,_0x276ac9)=>{_0x276ac9&&this['_model']['change'](_0x248c25=>{const {commandName:_0x2135e5,commandParams:_0x5781b1=[]}=_0x276ac9,_0x730360=_0x51bb34['map'](_0x20330f=>(ln(_0x20330f)&&(_0x20330f=this['_model']['createRange'](_0x20330f['end'])),_0x20330f))['filter'](_0x5476b9=>'$graveyard'!==_0x5476b9['root']['rootName']);if(_0x730360['length']<0x1)return;const _0x30bbe2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3956d6=>ot['fromRange'](_0x3956d6));_0x248c25['setSelection'](_0x730360);for(const _0x3de3dd of this['_editor']['commands']['commands']())_0x3de3dd['refresh']();_0x5781b1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2135e5,..._0x5781b1);const _0x187499=_0x30bbe2['filter'](_0x17d525=>'$graveyard'!=_0x17d525['root']['rootName']);_0x187499['length']>0x0&&_0x248c25['setSelection'](_0x187499);for(const _0x45bb39 of _0x30bbe2)_0x45bb39['detach']();});},_0x3c7de2=(_0x1f0f99,_0x3cee17)=>0x1==_0x1f0f99['length']&&0x1==_0x3cee17['length']&&_0x1f0f99[0x0]['end']['isEqual'](_0x3cee17[0x0]['start']),_0x321306=(_0x744960,_0x1f9876,_0x4d9c62,_0xa0f528)=>Tn(_0x744960,_0x1f9876,_0x4d9c62,_0xa0f528)?[_0x744960,_0x1f9876]:Tn(_0x1f9876,_0x744960,_0xa0f528,_0x4d9c62)?[_0x1f9876,_0x744960]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x312128),this['_defaultCallbacks']['set']('insertion:discard',_0x13dbf7),this['_defaultCallbacks']['set']('insertion:join',_0x3c7de2),this['_defaultCallbacks']['set']('insertion:chain',_0x321306),this['_defaultCallbacks']['set']('deletion:accept',_0x13dbf7),this['_defaultCallbacks']['set']('deletion:discard',_0x312128),this['_defaultCallbacks']['set']('deletion:join',_0x3c7de2),this['_defaultCallbacks']['set']('deletion:chain',_0x321306),this['_defaultCallbacks']['set']('formatInline:accept',_0x561d22),this['_defaultCallbacks']['set']('formatInline:discard',_0x312128),this['_defaultCallbacks']['set']('formatInline:join',_0x3c7de2),this['_defaultCallbacks']['set']('formatInline:chain',_0x312128),this['_defaultCallbacks']['set']('formatBlock:accept',_0x561d22),this['_defaultCallbacks']['set']('formatBlock:discard',_0x312128),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c7de2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x312128),this['_defaultCallbacks']['set']('attribute:accept',_0x312128),this['_defaultCallbacks']['set']('attribute:discard',(_0x379677,_0x14d7cd)=>{if(!_0x14d7cd)return;const _0x26b207=this['_editor']['plugins']['get'](_0x5df0b9);this['_model']['change'](_0x3784b6=>{if('$elementName'==_0x14d7cd['key'])for(const _0x56eb7b of _0x379677){const _0x4580f0=_0x56eb7b['start']['nodeAfter'],_0x36c5ba=_0x14d7cd['oldValue'];_0x3784b6['rename'](_0x4580f0,_0x36c5ba);}else{if(_0x26b207['isBlockAttribute'](_0x14d7cd['key'])){for(const _0x32b5d6 of _0x379677)void 0x0!==_0x14d7cd['oldValue']?_0x3784b6['setAttribute'](_0x14d7cd['key'],_0x14d7cd['oldValue'],_0x32b5d6['start']['nodeAfter']):_0x3784b6['removeAttribute'](_0x14d7cd['key'],_0x32b5d6['start']['nodeAfter']);}else{for(const _0x2593b2 of _0x379677)_0x14d7cd['oldValue']?_0x3784b6['setAttribute'](_0x14d7cd['key'],_0x14d7cd['oldValue'],_0x2593b2):_0x3784b6['removeAttribute'](_0x14d7cd['key'],_0x2593b2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c7de2);}};function cn(_0x3c0997,_0x5e89f9,_0x3b3d51){for(const _0x14f337 of _0x5e89f9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x14f337['root']==_0x14f337)return!0x1;if(!_0x3b3d51['containsItem'](_0x14f337))return!0x1;if(_0x3c0997['isObject'](_0x14f337)||_0x3c0997['isLimit'](_0x14f337))return!0x0;}return!0x1;}function ln(_0x50bae5){return _0x50bae5['end']['parent']==_0x50bae5['start']['nodeAfter']&&_0x50bae5['end']['isAtStart'];}function un(_0x577bac,_0x313461,_0x204ea9,_0x256ce9){const _0x3c3712=_0x3f3200=>!_0x3f3200['item']['is']('$textProxy')&&!_0x256ce9['isObject'](_0x3f3200['item']),_0x149ac1=_0x577bac['start']['getLastMatchingPosition'](_0x3c3712),_0x3e593f=_0x577bac['end']['getLastMatchingPosition'](_0x3c3712,{'direction':'backward'});return(!_0x577bac['start']['isEqual'](_0x149ac1)||!_0x577bac['end']['isEqual'](_0x3e593f))&&(_0x149ac1['isBefore'](_0x3e593f)?_0x204ea9['updateMarker'](_0x313461,{'range':_0x204ea9['createRange'](_0x149ac1,_0x3e593f)}):_0x204ea9['removeMarker'](_0x313461),!0x0);}function dn(_0x1443d8){return _0x5e550b(_0x1443d8);}function hn(_0x51516d){const _0x1b06d1=_0x51516d['start']['nodeAfter'];return _0x1b06d1&&_0x1b06d1['is']('element');}function gn(_0x5038da){return ln(_0x5038da)||function(_0xdbe8b9){return _0xdbe8b9['start']['parent']==_0xdbe8b9['end']['nodeBefore']&&_0xdbe8b9['start']['isAtEnd'];}(_0x5038da);}function fn(_0x3de703,_0x495bec){try{const _0x3420a5=_0x3de703['getRange']();for(const _0x509460 of _0x495bec)if(_0x3de703!==_0x509460&&_0x3420a5&&_0x3420a5['isIntersecting'](_0x509460['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x412bdc,_0x2825d7){return null==_0x412bdc['end']['nodeBefore']&&_0x412bdc['end']['parent']==_0x412bdc['start']['nodeAfter']?En(_0x412bdc['start']['nodeAfter'],_0x2825d7):_0x412bdc;}function En(_0x36bec7,_0x5d9445){const _0x493889=_0x5d9445['schema']['isObject'](_0x36bec7)||_0x5d9445['schema']['isSelectable'](_0x36bec7);return _0x5d9445['createRange'](_0x5d9445['createPositionAt'](_0x36bec7,'before'),_0x493889?_0x5d9445['createPositionAfter'](_0x36bec7):_0x5d9445['createPositionAt'](_0x36bec7,'end'));}function Tn(_0x2e52aa,_0x1236bd,_0x5c6ebd,_0x205b4d){return!!_n(_0x2e52aa,_0x1236bd)&&_0x5c6ebd['end']['isEqual'](_0x205b4d['start']);}function _n(_0xb739c5,_0x533cee){if(!_0xb739c5['_isDataLoaded']||!_0x533cee['_isDataLoaded'])return!0x1;const _0x365c9b=new Set(Object['keys'](_0xb739c5['attributes'])),_0x3b44e9=new Set(Object['keys'](_0x533cee['attributes']));if(_0x365c9b['delete']('groupId'),_0x3b44e9['delete']('groupId'),0x0==_0x365c9b['size']&&0x0==_0x3b44e9['size'])return!0x0;if(_0x365c9b['size']!=_0x3b44e9['size'])return!0x1;const _0x112f04={..._0xb739c5['attributes']},_0x1ee98b={..._0x533cee['attributes']};return delete _0x112f04['groupId'],delete _0x1ee98b['groupId'],JSON['stringify'](_0x112f04)==JSON['stringify'](_0x1ee98b);}function pn(_0x2a6fdb,_0x361b39){const _0x278544=Ln(_0x2a6fdb['attributes']),_0x36b2f6=Ln(_0x361b39);if(!_0x2a6fdb['_isDataLoaded'])return!0x1;if(!lt(_0x278544['@ai'],_0x36b2f6['@ai']))return!0x1;for(const _0x27d3fa of Object['keys'](_0x36b2f6))if(!lt(_0x278544[_0x27d3fa],_0x36b2f6[_0x27d3fa]))return!0x1;return!0x0;}function Ln(_0x248c0d){const _0x10e5af=Object['assign']({},_0x248c0d);return delete _0x10e5af['skipNestingCheck'],delete _0x10e5af['tablePasteChainId'],_0x10e5af;}function In(_0x4c3a1e){return _0x4c3a1e['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0x43dfa7();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x36b272,_0x17d1a3,_0x465633,_0x247f7b){super(),this['model']=_0x17d1a3,this['view']=_0x465633,this['commentThreadController']=_0x247f7b,this['_editor']=_0x36b272,this['_acceptCommand']=_0x36b272['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36b272['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5306ae,_0x340608)=>_0x5306ae||_0x340608),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3565f8=>_0x3565f8&&this['_editor']['model']['canEditAt'](_0x17d1a3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x206d63=>_0x206d63&&this['_editor']['model']['canEditAt'](_0x17d1a3['getRanges']())),this['_pendingAction']=null,_0x465633['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x465633,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x465633,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x465633,'change:isDirty',()=>{_0x465633['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 _0xeed9cc=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xeed9cc);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x5c97c1{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xd1f639,_0x2fc904,_0x25a4e4,_0x16d487){super(_0xd1f639),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c933d(_0xd1f639,Ot(_0xd1f639,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2fc904['authoredAt']),this['bind']('authoredAt')['to'](_0x2fc904),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',_0x2fc904,'authoredAt',this,'descriptionParts',(_0x499633,_0x1fe30e,_0x7f0409)=>{const _0x21762d=_0x7f0409['map'](_0x5848d9=>It(_0x5848d9['content']))['join']('.\x20')+'.',_0x2dda59=_0x2fc904['aiSource']&&'author'===_0x16d487['showAISource']?_0x16d487['aiAuthor']['name']:_0x2fc904['author']['name'],_0x3cf9e9=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x499633-0x1,_0x2dda59,_0x1fe30e?_0x16d487['formatDateTime'](_0x1fe30e):'',new DOMParser()['parseFromString'](_0x21762d,'text/html')['body']['textContent']]);return _0x2fc904['aiSource']&&'pill'===_0x16d487['showAISource']?_0x3cf9e9+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3cf9e9;}),this['focusables']=new _0x2295e0(),this['focusTracker']=new _0x27c2e2(),this['keystrokes']=new _0x1b7ec1(),this['focusCycler']=new _0x2e49fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ca2eb=>_0x2ca2eb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2fc904,this['_localUser']=_0x25a4e4,this['_config']=_0x16d487,_0x16d487['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x444fb9}=this['_config'];this['commentsListView']=new _0x444fb9(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',_0x4ee1b9=>_0x4ee1b9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2ad6b9,_0x149025)=>_0x2ad6b9||!!_0x149025);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4929d3}=this['_config'],_0x387ebe=new _0x4929d3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x476403=_0x387ebe['commentInputView'];return _0x387ebe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x476403,'value',(_0x234dd4,_0x15113a,_0x37fb37)=>!!_0x37fb37||_0x234dd4&&!_0x15113a),_0x476403['on']('submit',(_0x3e6d6e,_0x4f3099)=>{this['fire']('addComment',_0x4f3099),_0x476403['editor']['setData']('');}),_0x476403['on']('cancel',()=>this['focus']()),_0x476403['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x387ebe;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x4c5251,_0xc0a3f0,_0x39d75a,_0x19134f){super(_0x4c5251,_0xc0a3f0,_0x39d75a,_0x19134f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22bea5=>_0x22bea5&&_0x22bea5[0x0]?_0x22bea5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e7771,_0x1c8b88)=>{let _0x4af3a5='';for(const _0x2d6805 of _0x4e7771)_0x4af3a5+='<p>'+It(_0x2d6805['content'],_0x2d6805['color'])+'</p>';return _0x1c8b88?_0x4af3a5:it(_0x4af3a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x19134f['SuggestionView'](_0x4c5251,_0xc0a3f0,{'formatDateTime':_0x19134f['formatDateTime'],'showAISource':_0x19134f['showAISource'],'aiAuthor':_0x19134f['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 _0x2a380b=this['bindTemplate'],_0x11f027=[this['suggestionView']];return this['commentsListView']&&_0x11f027['push'](this['commentsListView']),this['commentThreadInputView']&&_0x11f027['push'](this['commentThreadInputView']),_0x11f027['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2a380b['if']('isActive','ck-suggestion-wrapper--active'),_0x2a380b['to']('type',_0x1d5d34=>'ck-suggestion-'+_0x1d5d34),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':_0x2a380b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x11f027};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x5c97c1{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1cfa82,_0x17f873,_0x4fc066){super(_0x1cfa82),this['_model']=_0x17f873,this['_config']=_0x4fc066,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17f873),this['acceptButton']=this['_createButton'](Ot(_0x1cfa82,'Accept\x20suggestion'),_0x403898,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x1cfa82,'Discard\x20suggestion'),_0x120ab6,'ck-suggestion--discard','discardSuggestion','sw');const _0x364b10=!!_0x17f873['aiSource']&&'author'===_0x4fc066['showAISource'],_0x5fe4a7=_0x364b10?this['_createAIUser'](_0x4fc066['aiAuthor']):_0x17f873['author'],_0x4e778a=_0x364b10&&!_0x4fc066['aiAuthor']['avatar']?_0x55fbd9:void 0x0;this['userView']=new _0x72bb39(_0x1cfa82,_0x5fe4a7,this['getUserViewNotificationText'](),_0x4e778a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2295e0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x27c2e2(),this['keystrokes']=new _0x1b7ec1(),this['focusCycler']=new _0x2e49fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1750dc=>_0x1750dc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5a0b8f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5a0b8f['innerHTML']=this['description'],this['on']('change:description',(_0x506482,_0x54d05d,_0x25fdba)=>{_0x5a0b8f['innerHTML']=_0x25fdba;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x23d97a=this['bindTemplate'],_0x419107=[{'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':_0x23d97a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23d97a['to']('authoredAt',_0x240f0b=>this['_config']['formatDateTime'](_0x240f0b))}]}]},{'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']&&_0x419107['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x56a606=new _0x5a93f3(this['locale']);_0x56a606['set']({'icon':_0x24f981,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x419107['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x56a606]});}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':_0x419107}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x12d76e){return new _0x30dd6c({'id':'ck-ai-author','name':_0x12d76e['name'],'avatar':_0x12d76e['avatar'],'color':new _0x36ec60(0x0)});}_createButton(_0x2f0491,_0x40c844,_0x1ec8ae,_0x52ffb1,_0x10d9db){const _0x15068c=new _0x5d61b0(this['locale']);return _0x15068c['set']({'label':_0x2f0491,'icon':_0x40c844,'tooltip':!0x0,'tooltipPosition':_0x10d9db}),_0x15068c['extendTemplate']({'attributes':{'class':_0x1ec8ae}}),_0x15068c['on']('execute',()=>{this['fire'](_0x52ffb1,this['_model']['id']);}),_0x15068c;}_setupKeyboardNavigation(){const _0x5db0f0=this['element'];this['keystrokes']['listenTo'](_0x5db0f0);for(const _0x54613f of this['focusables'])this['focusTracker']['add'](_0x54613f['element']),this['keystrokes']['listenTo'](_0x54613f['element']);this['keystrokes']['set']('enter',(_0x531a81,_0x5be979)=>{_0x5db0f0===_0x531a81['target']&&(this['focusCycler']['focusFirst'](),_0x5be979());}),this['keystrokes']['set']('esc',(_0x5abf12,_0x36266f)=>{_0x5db0f0!==_0x5abf12['target']&&(this['focus'](),_0x36266f());});}},yn=class extends _0x3b6d8a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x1da799,_0x2a3df3,_0x15fa05,_0x454459];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b631e){super(_0x3b631e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5bc7e3=this['editor']['config'];_0x5bc7e3['define']('trackChanges.SuggestionThreadView',kn),_0x5bc7e3['define']('trackChanges.SuggestionView',Rn),_0x5bc7e3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5bc7e3['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x29cfe1,_0x281c58){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x483931,_0x57a5a8]of this['_handleControllerBuffer']){const _0x121406=this['_suggestionToController']['has'](_0x483931);_0x121406||_0x57a5a8?_0x121406&&_0x57a5a8&&this['_destroyController'](_0x483931):this['_initializeController'](_0x483931);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x454459)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x29cfe1,_0x281c58);}init(){const _0x342317=this['editor'],_0x13a7ef=_0x342317['plugins']['get'](on),_0x4037c6=_0x342317['plugins']['get'](_0x15fa05),_0x1db0f1=_0x342317['plugins']['get'](_0x454459),_0x23155a=_0x342317['plugins']['get'](_0x2a3df3);this['_addUIComponentsToFactory'](),_0x1db0f1['addSourceCollector'](()=>{const _0x1cdf0e=[];for(const [_0x361a25,_0x2db34d]of Array['from'](this['_suggestionToController'])){const _0x425e94=_0x361a25['getAllAdjacentSuggestions'](),_0x1ebdff=[];for(const _0x4f9e43 of _0x425e94){if(!_0x4f9e43['isInContent'])continue;if(_0x4f9e43['isMultiRange']){_0x1ebdff['push'](..._0x4f9e43['getRanges']());continue;}const _0x3a6912=_0x4f9e43['getFirstRange']();if(_0x1ebdff['length']>0x0){const _0x1d3d57=_0x1ebdff[0x0]['getJoined'](_0x3a6912);if(_0x1d3d57){_0x1ebdff[0x0]=_0x1d3d57;continue;}}_0x1ebdff['push'](_0x3a6912);}_0x1cdf0e['push']([_0x2db34d['view'],_0x1ebdff]);}return _0x1cdf0e;}),this['listenTo'](_0x13a7ef,'suggestionLoaded',(_0x5325ba,_0x1c0691)=>{this['listenTo'](_0x1c0691,'change:previous',(_0x3a7018,_0x10e008,_0x345ecb,_0x55e6e5)=>{_0x1c0691['isInContent']&&(null==_0x345ecb?(this['_updateController'](_0x55e6e5['head']),this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x1)):(this['_updateController'](_0x345ecb['head']),null==_0x55e6e5&&this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x0)));}),null!==_0x1c0691['previous']?this['_updateController'](_0x1c0691['head']):this['_handleSuggestionControllerDelayed'](_0x1c0691,!0x1);}),this['listenTo'](_0x13a7ef,'suggestionUnloaded',(_0x3b4c92,_0x36e61d,_0x443fea)=>{this['stopListening'](_0x36e61d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x36e61d),this['_suggestionToController']['has'](_0x36e61d)&&this['_destroyController'](_0x36e61d),_0x443fea&&this['_updateController'](_0x443fea['head']);}),this['listenTo'](_0x13a7ef,'suggestionChanged',(_0x17cc77,_0x12351c)=>{this['_updateController'](_0x12351c);}),this['listenTo'](_0x4037c6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23155a,'addComment',(_0x593da1,{threadId:_0x2b42ac,isFromAdapter:_0x996c9a})=>{if(_0x996c9a||!_0x13a7ef['hasSuggestion'](_0x2b42ac))return;const _0x1787df=_0x13a7ef['getSuggestion'](_0x2b42ac);this['_suggestionToController']['get'](_0x1787df)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c676a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7619c3;for(const _0xfc8334 in _0x3c676a){const _0x1b7956=_0xfc8334,_0x35a176=_0x3c676a[_0x1b7956];if('trackChangesLicenseKeyValid'==_0x35a176||'trackChangesLicenseKeyInvalid'==_0x35a176||'trackChangesLicenseKeyExpired'==_0x35a176||'trackChangesLicenseKeyDomainLimit'==_0x35a176||'trackChangesLicenseKeyNotAllowed'==_0x35a176||'trackChangesLicenseKeyEvaluationLimit'==_0x35a176||'trackChangesLicenseKeyUsageLimit'==_0x35a176){delete _0x3c676a[_0x1b7956],_0x7619c3=_0x35a176,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7619c3&&_0x3c676a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7619c3&&_0x3c676a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7619c3&&_0x3c676a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7619c3&&_0x3c676a['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x2fcd0e){const _0x3b7b10=this['_suggestionToController']['get'](_0x2fcd0e);return _0x3b7b10&&this['editor']['plugins']['get'](_0x15fa05)['getByInnerView'](_0x3b7b10['view'])||null;}getSuggestionForAnnotation(_0x20c41d){const _0x421330=this['_viewToController']['get'](_0x20c41d['innerView']);return _0x421330?_0x421330['model']:null;}_refreshActiveMarkers(){const _0x33cd79=this['editor']['plugins']['get'](_0x15fa05),_0x2b1f12=this['editor']['plugins']['get'](on),_0x2f2f81=Array['from'](_0x33cd79['activeAnnotations'],_0x3e4948=>_0x3e4948['innerView'])['filter'](_0x2e54d4=>this['_viewToController']['has'](_0x2e54d4)),_0x5c661d=[];for(const _0xcf6ea7 of _0x2f2f81){const _0x3bd569=this['_viewToController']['get'](_0xcf6ea7)['model']['getAllAdjacentSuggestions']();_0x5c661d['push'](..._0x3bd569['reduce']((_0xf8c95a,_0x21e4b8)=>[..._0xf8c95a,..._0x21e4b8['getMarkerNames']()],[]));}_0x2b1f12['activeMarkers']=_0x5c661d;}_addUIComponentsToFactory(){const _0x430862=this['editor'],_0x3b8c96=_0x430862['locale'],_0x448af0=Ot(_0x3b8c96,'Track\x20changes'),_0x4f36b9=new _0x649164([{'type':'switchbutton','model':new _0x12dea9({'withText':!0x0,'isToggleable':!0x0,'label':_0x448af0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x430862['plugins']['has']('TrackChangesPreview')&&_0x4f36b9['addMany']([{'type':'separator'},{'type':'button','model':new _0x12dea9({'withText':!0x0,'label':Ot(_0x3b8c96,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4a9400 of _0x4f36b9)if(Nn(_0x4a9400)){const _0x4fcf21=_0x430862['commands']['get'](_0x4a9400['model']['commandName']);_0x4a9400['model']['bind']('isOn','isEnabled')['to'](_0x4fcf21,'value','isEnabled');}_0x430862['ui']['componentFactory']['add']('trackChanges',_0x26e469=>this['_createToolbarButton'](_0x26e469,_0x4f36b9,_0x448af0)),_0x430862['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29b36a=>this['_createMenuBarMenu'](_0x29b36a,_0x4f36b9,_0x448af0));}_createToolbarButton(_0x563bf6,_0x5c1608,_0x13b18d){const _0x1ff814=_0x3bda66(_0x563bf6,_0x5d1b49),_0x35e813=this['editor']['commands']['get']('trackChanges');_0x1ff814['buttonView']['set']({'tooltip':_0x13b18d,'label':_0x13b18d,'icon':_0x3335e2}),_0x1ff814['buttonView']['bind']('isOn')['to'](_0x35e813,'value'),_0x1ff814['buttonView']['on']('execute',()=>{_0x35e813['execute'](),this['editor']['editing']['view']['focus']();}),_0x3c4a50(_0x1ff814,_0x5c1608,{'role':'menu'});const _0x1e321c=[];for(const _0x42b8c8 of _0x5c1608)Nn(_0x42b8c8)&&_0x1e321c['push'](this['editor']['commands']['get'](_0x42b8c8['model']['commandName']));const _0x2776f5=_0x1ff814['buttonView'];return _0x2776f5['actionView']['unbind']('isEnabled'),_0x2776f5['arrowView']['unbind']('isEnabled'),_0x2776f5['actionView']['bind']('isEnabled')['to'](_0x35e813,'isEnabled'),_0x2776f5['arrowView']['bind']('isEnabled')['toMany'](_0x1e321c,'isEnabled',(..._0x13898a)=>_0x13898a['some'](_0x42547c=>_0x42547c)),_0x1ff814['on']('execute',_0x37a80e=>{this['editor']['execute'](_0x37a80e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ff814;}_createMenuBarMenu(_0x1354aa,_0x532d92,_0xa42764){const _0x400f96=new _0x261371(_0x1354aa),_0x2aa36e=this['editor']['commands']['get']('trackChanges');_0x400f96['buttonView']['set']({'label':_0xa42764,'icon':_0x3335e2});const _0x3276d5=new _0x5b35bb(_0x1354aa);for(const _0x32fa5b of _0x532d92){if('separator'==_0x32fa5b['type']){_0x3276d5['items']['add'](new _0x37f5d1(_0x1354aa));continue;}const _0x4e692e=new _0x3831d2(_0x1354aa,_0x400f96),_0x3a5d60=new _0x3ac042(_0x1354aa),_0x4e3d60=_0x32fa5b['model'];_0x3a5d60['bind'](...Object['keys'](_0x4e3d60))['to'](_0x4e3d60),_0x3a5d60['delegate']('execute')['to'](_0x400f96),_0x3a5d60['on']('execute',()=>{this['editor']['execute'](_0x4e3d60['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e692e['children']['add'](_0x3a5d60),_0x3276d5['items']['add'](_0x4e692e);}return _0x400f96['bind']('isEnabled')['to'](_0x2aa36e,'isEnabled'),_0x400f96['panelView']['children']['add'](_0x3276d5),_0x400f96;}_initializeController(_0x3da1a9){const _0x1aa055=this['editor'],_0x584d97=_0x1aa055['config'],_0x48d112=_0x1aa055['plugins']['get'](_0x15fa05),_0x25d972=_0x1aa055['plugins']['get'](_0x2a3df3),_0x2732cb=_0x1aa055['plugins']['get'](_0x454459),_0x2e7e48=_0x1aa055['plugins']['get'](_0x1da799)['me'],_0x33c1b5=_0x584d97['get']('trackChanges')['SuggestionThreadView'],_0x5c8664=_0x584d97['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x579878,CommentThreadInputView:_0x46a4ec}=_0x1aa055['plugins']['get']('CommentsUI');let _0x4d2844,_0x3f8c92,_0x17de77;this['_annotationViews']['has'](_0x3da1a9['id'])?(_0x3f8c92=this['_annotationViews']['get'](_0x3da1a9['id']),_0x4d2844=_0x3f8c92['mainView']):(_0x4d2844=new _0x33c1b5(_0x1aa055['locale'],_0x3da1a9,_0x2e7e48,{'disableComments':this['_disableComments'],'editorConfig':{..._0x584d97['get']('comments.editorConfig'),'licenseKey':_0x584d97['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x584d97['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x584d97['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x584d97['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f24bf(_0x584d97['get']('locale'),_0x1aa055['locale']),'CommentView':_0x584d97['get']('comments')['CommentView'],'CommentsListView':_0x579878,'CommentThreadInputView':_0x46a4ec,'SuggestionView':_0x5c8664,'showAISource':_0x584d97['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x584d97['get']('trackChanges.aiAuthor'),'name':_0x584d97['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x1aa055['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4d2844['suggestionView']['acceptButton']['on']('execute',()=>{_0x1aa055['editing']['view']['focus']();}),_0x4d2844['suggestionView']['discardButton']['on']('execute',()=>{_0x1aa055['editing']['view']['focus']();}),_0x3f8c92=_0x48d112['createAnnotationView'](this['editor']['locale'],_0x4d2844),_0x3f8c92['bind']('isDirty')['to'](_0x4d2844,'isDirty'),_0x3f8c92['bind']('length')['to'](_0x4d2844),_0x3f8c92['bind']('type')['to'](_0x4d2844,'type',_0x238d55=>'suggestion-'+_0x238d55),_0x4d2844['on']('escape',()=>{_0x17de77['fire']('escape');}),this['_annotationViews']['set'](_0x3da1a9['id'],_0x3f8c92));const _0x298159=_0x25d972['createCommentThreadController'](_0x3da1a9['commentThread'],_0x4d2844),_0x2c586b=new bn(_0x1aa055,_0x3da1a9,_0x4d2844,_0x298159),_0x6e25e0=_0x3da1a9['getAllAdjacentSuggestions']()['filter'](_0xe7fc6f=>_0xe7fc6f['isInContent']);_0x4d2844['descriptionParts']=_0x1aa055['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x6e25e0),this['_suggestionToController']['set'](_0x3da1a9,_0x2c586b),this['_viewToController']['set'](_0x4d2844,_0x2c586b);const _0x2861f6=()=>{const _0x175fbe=[],_0x299c97=_0x3da1a9['getAllAdjacentSuggestions']()['filter'](_0x5d34b7=>_0x5d34b7['isInContent']);for(const _0x414aaa of _0x299c97)_0x175fbe['push'](..._0x414aaa['getMarkers']());return _0x5032c4(_0x1aa055['editing'],_0x175fbe);};_0x17de77=_0x48d112['createAnnotation']({'view':_0x3f8c92,'target':_0x2861f6,'type':()=>'suggestion-'+_0x2c586b['view']['type'],'isVisible':!!_0x2861f6()}),_0x25d972['_bindAnnotationToEditors'](_0x4d2844,_0x17de77),_0x48d112['add'](_0x17de77),_0x2732cb['registerAnnotation'](_0x17de77);}_destroyController(_0x1680f1){const _0x59f14b=this['editor']['plugins']['get'](_0x2a3df3),_0x378c7b=this['editor']['plugins']['get'](_0x15fa05),_0x313fe2=this['_suggestionToController']['get'](_0x1680f1),_0x16c446=_0x313fe2['view'],_0x42adee=_0x378c7b['getByInnerView'](_0x16c446);_0x59f14b['_unbindEditors'](_0x16c446),_0x42adee&&_0x378c7b['remove'](_0x42adee),this['_suggestionToController']['delete'](_0x1680f1),this['_viewToController']['delete'](_0x16c446),_0x313fe2['destroy']();}_updateController(_0x1d7dc7){if(!_0x1d7dc7['isInContent']||!this['_suggestionToController']['has'](_0x1d7dc7))return;const _0x55e710=this['editor']['plugins']['get'](on),_0x6fce5c=this['_suggestionToController']['get'](_0x1d7dc7),_0x17c5b6=_0x1d7dc7['getAllAdjacentSuggestions']();_0x6fce5c['view']['descriptionParts']=_0x55e710['descriptionFactory']['getDescriptions'](_0x17c5b6);}destroy(){for(const _0xd28053 of this['_suggestionToController']['keys']())this['_destroyController'](_0xd28053);for(const _0x1b91b0 of this['_annotationViews']['values']())_0x1b91b0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x53738b){return'model'in _0x53738b;}var Sn=class extends _0x3b6d8a{static get requires(){return[on,yn,_0x5c2500];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x361c1c){this['editor']['plugins']['get'](on)['adapter']=_0x361c1c;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x528fad){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x528fad);}getSuggestions({skipNotAttached:_0x527bf8=!0x1,toJSON:_0x1b7a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x527bf8,'toJSON':_0x1b7a95});}getSuggestion(_0xe10e3d){return this['editor']['plugins']['get'](on)['getSuggestion'](_0xe10e3d);}};const Mn=['Pagination'];var On=class extends _0x3b6d8a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5828fc=this['editor'];if(_0x5828fc['config']['define']('trackChangesData.editorCreator',_0x337466=>{const _0x2e1d7f=_0x5828fc['model']['document']['getRootNames']()['reduce']((_0x16d72d,_0x531a83)=>(_0x16d72d[_0x531a83]='',_0x16d72d),{});return _0x5828fc['constructor']['create'](_0x2e1d7f,_0x337466);}),'function'!=typeof _0x5828fc['config']['get']('trackChangesData')['editorCreator'])throw new _0x531c91('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x15685d){return Bn(this['editor'],!0x0,_0x15685d);}getDataWithDiscardedSuggestions(_0x3f44bc){return Bn(this['editor'],!0x1,_0x3f44bc);}},wn=class extends _0x3b6d8a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1de292){super(_0x1de292),this['result']='end',_0x1de292['editing']['view']['_overlayModeHint']='auto',_0x1de292['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x525c32){return void 0x0!==_0x525c32['getRootsAttributes'];}async function Bn(_0x805097,_0x5cc5a4,_0x114f6d){const _0x349d24=_0x43648c(_0x805097,Mn);if(_0x349d24['plugins']['push'](on,wn),Fn(_0x805097)){_0x349d24['roots']=Object['create'](null);for(const _0x2b2b62 of _0x805097['model']['document']['getRootNames']())_0x349d24['roots'][_0x2b2b62]={'modelAttributes':_0x805097['getRootAttributes'](_0x2b2b62)};}const _0x3ad39e=document['createDocumentFragment'](),_0x4b4b06=_0x805097['config']['get']('trackChangesData')['editorCreator'],_0x48c0ce=await _0x4b4b06(_0x349d24,()=>function(_0x4ded7c){const _0x2cb799=document['createElement']('div');return _0x4ded7c['appendChild'](_0x2cb799),_0x2cb799;}(_0x3ad39e));!function(_0x290d91,_0x33a994){const _0x318eef=_0x290d91['model']['document']['getRootNames']()['reduce']((_0x34da0b,_0x3c2bcd)=>(_0x34da0b[_0x3c2bcd]=_0x290d91['data']['get']({'rootName':_0x3c2bcd}),_0x34da0b),{}),_0x44bbb0=_0x290d91['plugins']['get']('Users')['users']['map'](_0x54a7e5=>({'id':_0x54a7e5['id'],'name':_0x54a7e5['name']})),_0x355a55=_0x290d91['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x380af6=_0x290d91['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16bb9f=_0x33a994['plugins']['get']('Users'),_0x2caeef=_0x33a994['plugins']['get']('TrackChangesEditing'),_0x2b51c5=_0x33a994['plugins']['get']('CommentsRepository');for(const _0x394a1b of _0x2b51c5['getCommentThreads']())_0x394a1b['remove']();for(const _0x179b97 of _0x44bbb0)_0x16bb9f['getUser'](_0x179b97['id'])||_0x16bb9f['addUser'](_0x179b97);_0x16bb9f['me']||_0x16bb9f['useAnonymousUser']();for(const _0x34d631 of _0x380af6)_0x2b51c5['addCommentThread'](_0x34d631);for(const _0x4704bc of _0x355a55)_0x2caeef['addSuggestionData'](_0x4704bc);_0x33a994['data']['set'](_0x318eef);}(_0x805097,_0x48c0ce),_0x48c0ce['execute'](_0x5cc5a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x5845f9=Fn(_0x48c0ce)?_0x48c0ce['getFullData'](_0x114f6d):_0x48c0ce['data']['get'](_0x114f6d);return await _0x48c0ce['destroy'](),_0x5845f9;}var vn=class extends _0x5c97c1{options;constructor(_0x3a8f54,_0x895676){super(_0x3a8f54),this['options']=_0x895676,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(_0x1652c3,_0x1335fe){if(!this['element'])return;const _0x338b15=[];for(const [_0x29c8aa,_0x3e7838]of _0x1652c3){const _0x511dd1=document['createElement']('div');_0x511dd1['setAttribute']('data-ck-root-name',_0x29c8aa),_0x511dd1['className']=_0x3e7838['classes']+'\x20ck-track-changes-preview__root-container',_0x511dd1['innerHTML']=_0x3e7838['content'],_0x338b15['push'](_0x511dd1);}_0x1335fe(this['element'],_0x338b15),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0xa07efb{constructor(_0x4cd2e0){super(_0x4cd2e0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x391a8b=this['editor'],_0x5f45ff=_0x391a8b['locale'],_0x48f10b=_0x391a8b['plugins']['get']('Dialog');let _0x209e29;const _0x4c4d2e=function(_0x456d88){const _0x1c641e={};if('editables'in _0x456d88['ui']['view']){for(const [_0xbd492c,_0x5d010d]of Object['entries'](_0x456d88['ui']['view']['editables']))_0x1c641e[_0xbd492c]=_0x5d010d['element'];}else _0x1c641e[_0x456d88['model']['document']['getRootNames']()[0x0]]=_0x456d88['ui']['view']['editable']['element'];return _0x1c641e;}(_0x391a8b),_0x4ae70d=function(_0x288c9d){let _0x30aad8=0x0;for(const _0x26b835 of Object['values'](_0x288c9d))_0x30aad8=Math['max'](_0x30aad8,_0x26b835['getBoundingClientRect']()['width']);let _0x43d1a5=0x0;for(const _0x7a5c4d of Object['values'](_0x288c9d))_0x43d1a5+=_0x7a5c4d['getBoundingClientRect']()['height'];const _0x5b0fd6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x30aad8,'height':Math['min'](_0x43d1a5,_0x5b0fd6)};}(_0x4c4d2e);_0x48f10b['show']({'id':'finalContentPreview','title':Ot(_0x5f45ff,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x5f45ff,{'dialogRects':_0x4ae70d}),'onHide':()=>{_0x209e29['detachFromDom']();},'onShow':()=>{_0x391a8b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x52859e=>{const _0x40c108=this['_standarizeRootsData'](_0x52859e,_0x391a8b,_0x4c4d2e);_0x48f10b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x40c108,_0x391a8b['config']['get']('trackChanges.preview.renderFunction'));}),_0x209e29=new _0x153785(_0x5f45ff,[_0x48f10b['view']]),_0x209e29['attachToDom'](),_0x209e29['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x391a8b['once']('destroy',()=>{_0x209e29['detachFromDom']();});const _0x2677b7=_0x48f10b['view']['headerView']['class'];_0x48f10b['view']['headerView']['class']=_0x2677b7?_0x2677b7+'\x20ck-reset_all':'ck-reset_all',_0x48f10b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x48f10b['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x242ea4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x41dcfa=_0x242ea4['previewMode'],_0x5a5f6d={};if('$labels'===_0x41dcfa){for(const _0x1906e7 of _0x242ea4['getMergeFieldsIds']())_0x5a5f6d[_0x1906e7]=_0x242ea4['getLabel'](_0x1906e7)||_0x1906e7;}else{const _0x2cad43='$defaultValues'===_0x41dcfa?_0x242ea4['getDefaultValues']():_0x242ea4['getDataSetValues'](_0x41dcfa,!0x0);for(const _0x1d2174 of Object['entries'](_0x2cad43)){const [_0x13e696,_0x54f959]=_0x1d2174;_0x5a5f6d[_0x13e696]=null!==_0x54f959?_0x54f959:_0x242ea4['getLabel'](_0x13e696)||_0x13e696;}}return{'mergeFieldsData':_0x5a5f6d};}_standarizeRootsData(_0x169d20,_0xb5516a,_0x1088f7){let _0x3676f1;_0x3676f1='string'==typeof _0x169d20?{[_0xb5516a['model']['document']['getRootNames']()[0x0]]:_0x169d20}:_0x169d20;const _0x255e3f=this['_fixMediaEmbeds'](_0x3676f1,_0xb5516a);return function(_0x44f021,_0x3a16c4){for(const [_0x976bf0,_0x1e21cd]of _0x44f021)_0x1e21cd['classes']=_0x3a16c4[_0x976bf0]['classList']['value']['replace']('ck-focused','');return _0x44f021;}(this['_sortRoots'](_0xb5516a)['reduce']((_0x12f8a6,_0x2d857c)=>(_0x12f8a6['push']([_0x2d857c,{'content':_0x255e3f[_0x2d857c],'classes':''}]),_0x12f8a6),[]),_0x1088f7);}['_fixMediaEmbeds'](_0x518777,_0x51db28){if(!_0x51db28['plugins']['has']('MediaEmbedEditing'))return _0x518777;const _0x49d513=_0x51db28['plugins']['get']('MediaEmbedEditing');for(const [_0x3f25bd,_0x18849c]of Object['entries'](_0x518777)){const _0x2e7743=document['createElement']('div');_0x2e7743['innerHTML']=_0x18849c,_0x2e7743['querySelectorAll']('figure.media')['forEach'](_0x181653=>{const _0xae217c=_0x181653['querySelector']('oembed');if(_0xae217c){const _0x53a10d=_0xae217c['getAttribute']('url');if(_0x53a10d){const _0x41a818=_0x49d513['registry']['getMediaViewElement'](new at(_0x51db28['editing']['view']['document']),_0x53a10d,{'elementName':'','renderForEditingView':!0x0}),_0x54198e=document['createElement']('div');_0x54198e['classList']['add']('ck-media__wrapper'),_0x41a818['render'](_0x54198e,_0x51db28['editing']['view']['domConverter']),_0xae217c['replaceWith'](_0x54198e);}}}),_0x518777[_0x3f25bd]=_0x2e7743['innerHTML'];}return _0x518777;}_sortRoots(_0x48bd9a){if(!function(_0x279661){return void 0x0!==_0x279661['getRootsAttributes'];}(_0x48bd9a))return _0x48bd9a['model']['document']['getRootNames']();const _0x366d93=[],_0x14ae10=new Map();for(const _0x32d250 of _0x48bd9a['model']['document']['getRootNames']()){const _0x522a08=_0x48bd9a['editing']['view']['getDomRoot'](_0x32d250)['getClientRects']()['item'](0x0);_0x366d93['push'](_0x32d250),_0x14ae10['set'](_0x32d250,_0x522a08);}return _0x366d93['sort']((_0x3b06ba,_0x1fbd0d)=>{const _0x5c9c6e=_0x14ae10['get'](_0x3b06ba),_0x12203a=_0x14ae10['get'](_0x1fbd0d);return _0x5c9c6e['y']-_0x12203a['y']||_0x5c9c6e['x']-_0x12203a['x'];}),_0x366d93;}},Un=class extends _0x3b6d8a{static get requires(){return[On,_0x9dd83e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e0299){super(_0x4e0299),_0x4e0299['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x4e0299['config']['define']('trackChanges.preview.renderFunction',(_0x2828bb,_0x1735c1)=>{for(const _0x11eb34 of _0x1735c1)_0x2828bb['appendChild'](_0x11eb34);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0x16d293,PendingActions as _0x4f7893,Plugin as _0x9bd549}from'@ckeditor/ckeditor5-core';import{Annotations as _0x59e02d,Comments as _0x435a16,CommentsRepository as _0x203ad7,EditorAnnotations as _0x38d953}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x354614,Collection as _0x312921,FocusTracker as _0x591c9e,KeystrokeHandler as _0x5b7cb6,ObservableMixin as _0x1377a3,getEnvKeystrokeText as _0x4d423e,insertToPriorityArray as _0x26314f,logWarning as _0x18c9eb,priorities as _0x2b2839,uid as _0x2e6a13}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x1e2770,IconCancel as _0x15d8dd,IconCheck as _0xf15df7,IconSparkle as _0x1fc493,IconTrackChanges as _0x5c9b3e}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1e8118,Dialog as _0x15cd88,FocusCycler as _0x7ae866,ListSeparatorView as _0x188ba7,MenuBarMenuListItemButtonView as _0x452ca1,MenuBarMenuListItemView as _0xdc420d,MenuBarMenuListView as _0x5d0013,MenuBarMenuView as _0x34c878,SplitButtonView as _0x2ed566,UIModel as _0x53a520,View as _0x50f806,ViewCollection as _0x32a053,addListToDropdown as _0x4a8502,createDropdown as _0x2112c8,normalizeColorOptions as _0x178ae1}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x30c9b4,CollaborationUserColor as _0x3b64d0,DocumentCompare as _0x2c9489,FOCUS_ANNOTATION_KEYSTROKE as _0x341358,LateFocusButtonView as _0x50d24e,PillView as _0x23bf39,SuggestionsConversion as _0x358b09,User as _0x44bfc7,UserView as _0x19bc2d,Users as _0xfe45c9,fixElementSuggestionRange as _0x425f5d,getAllMarkersDomElementsSorted as _0x136b64,getDateTimeFormatter as _0x49bb80,hashObject as _0x1724db,isInvalidAttributeOperation as _0x4a631e,sanitizeEditorConfig as _0x423519,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x16d293{['_enabledCommands'];constructor(_0x1c0522,_0x3bf49b){super(_0x1c0522),this['_enabledCommands']=_0x3bf49b,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 _0x12c81f of this['editor']['commands']['commands']())_0x12c81f['affectsData']&&!this['_enabledCommands']['has'](_0x12c81f)&&_0x12c81f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12c998 of this['editor']['commands']['commands']())_0x12c998['affectsData']&&!this['_enabledCommands']['has'](_0x12c998)&&_0x12c998['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x16d293{_suggestions;constructor(_0x1c007e,_0x4e9cbc){super(_0x1c007e),this['_suggestions']=_0x4e9cbc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1b2c){const _0x2dab4a=this['_suggestions']['get'](_0x1f1b2c);if(!_0x2dab4a)throw new _0x354614('track-changes-accept-suggestion-not-found',this);const _0x25276f=_0x2dab4a['getRanges']();this['editor']['model']['canEditAt'](_0x25276f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2dab4a);}},Lt=class extends _0x16d293{_suggestions;constructor(_0x1af48d,_0x572232){super(_0x1af48d),this['_suggestions']=_0x572232,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5df9ab){const _0x5b9811=this['_suggestions']['get'](_0x5df9ab);if(!_0x5b9811)throw new _0x354614('track-changes-discard-suggestion-not-found',this);const _0x360d5d=_0x5b9811['getRanges']();this['editor']['model']['canEditAt'](_0x360d5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5b9811);}};function It(_0x1d36f5,_0x2740b9){let _0x305162='';return _0x305162+=_0x1d36f5['split']('*')['map']((_0x570206,_0x3064d5)=>_0x3064d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x570206)+'</span>':At(_0x570206))['join'](''),_0x2740b9&&(_0x305162+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2740b9['value']+'\x22\x20title=\x22'+_0x2740b9['title']+'\x22></span>'),_0x305162;}function At(_0x41480a){const _0x5880e3=document['createElement']('span');return _0x5880e3['innerText']=_0x41480a,_0x5880e3['innerHTML'];}function bt(_0x2a1b05){return _0x2a1b05['sort']((_0x243603,_0x1d9aa7)=>'attribute'===_0x243603['type']&&'attribute'!==_0x1d9aa7['type']?-0x1:'attribute'!==_0x243603['type']&&'attribute'===_0x1d9aa7['type']?0x1:'deletion'==_0x243603['type']&&'deletion'!=_0x1d9aa7['type']?-0x1:'deletion'!=_0x243603['type']&&'deletion'==_0x1d9aa7['type']?0x1:0x0);}function Ct(_0x1028dd,_0x4f0cc9){let _0xfe71cf,_0x14db18=0x0;const _0x8f3b4e=[],_0x141176=_0x4f0cc9['schema'];for(;_0x14db18<_0x1028dd['length'];){const _0x1b821f=_0x1028dd[_0x14db18],_0x472306=_0x1028dd[_0x14db18+0x1];_0xfe71cf||(_0xfe71cf=_0x4f0cc9['createPositionBefore'](_0x1b821f)),kt(_0x4f0cc9,_0x1b821f,_0x472306)||(_0x8f3b4e['push'](_0x4f0cc9['createRange'](_0xfe71cf,_0x141176['isObject'](_0x1b821f)?_0x4f0cc9['createPositionAfter'](_0x1b821f):_0x4f0cc9['createPositionAt'](_0x1b821f,'end'))),_0xfe71cf=null),_0x14db18++;}return _0x8f3b4e;}function kt(_0x53101f,_0x96a406,_0x1f152e){if(!_0x1f152e)return!0x1;const _0x5505cd=_0x53101f['createPositionAfter'](_0x96a406),_0x50d597=_0x53101f['createPositionBefore'](_0x1f152e);return _0x5505cd['isTouching'](_0x50d597);}function Rt(_0x545d0c,_0x6e204b,_0x1ead40){for(;_0x1ead40['length'];){const _0x404335=_0x1ead40['splice'](0x0,0x64);_0x545d0c['change'](()=>{for(const _0x2f0fd0 of _0x404335)_0x2f0fd0['isInContent']&&_0x6e204b['execute'](_0x2f0fd0['id']);});}}var yt=class extends _0x16d293{['_command'];_suggestions;constructor(_0x429f96,_0x40690b,_0x2ad749){super(_0x429f96),this['_command']=_0x40690b,this['_suggestions']=_0x2ad749,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x476f5f=Array['from'](this['_suggestions']['values']())['some'](_0x1c5828=>_0x1c5828['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x476f5f;}execute(){const _0x481072=bt(Array['from'](this['_suggestions']['values']()));for(const _0x1c99f4 of _0x481072){const _0x3fb303=_0x1c99f4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fb303))return;}Rt(this['editor']['model'],this['_command'],_0x481072);}},Nt=class extends _0x16d293{['_command'];_suggestions;_selectedSuggestions;constructor(_0x55e5b8,_0x1597df,_0x3da6a8){super(_0x55e5b8),this['_command']=_0x1597df,this['_suggestions']=_0x3da6a8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2de699=this['editor']['model']['document']['selection'],_0x3fb7e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56996b,_0x33794f){const _0x2fa2fa=Array['from'](_0x56996b['getRanges']()),_0x4f6516=new Set();for(const _0x4d11b2 of _0x33794f)if(_0x4d11b2['isInContent']){for(const _0x186ebb of _0x2fa2fa)for(const _0x42f834 of _0x4d11b2['getRanges']())(_0x186ebb['isIntersecting'](_0x42f834)||_0x56996b['isCollapsed']&&!_0x4d11b2['isMultiRange']&&_0x4d11b2['next']&&_0x42f834['end']['isTouching'](_0x186ebb['start']))&&_0x4f6516['add'](_0x4d11b2);}return _0x4f6516;}(_0x2de699,_0x3fb7e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x1bc2ad=bt(Array['from'](this['_selectedSuggestions']));for(const _0x5da6f3 of _0x1bc2ad){const _0x13ebb3=_0x5da6f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ebb3))return;}Rt(this['editor']['model'],this['_command'],_0x1bc2ad);}};const St=/* #__PURE__ -- @preserve */
24
+ _0x1377a3();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x360592,_0x1fbd48){super(),this['id']=_0x1fbd48['id'],this['type']=_0x1fbd48['type'],this['subType']=_0x1fbd48['subType']||null,this['author']=_0x1fbd48['author'],this['creator']=_0x1fbd48['creator']||_0x1fbd48['author'],this['data']=null,this['_originalSuggestionId']=_0x1fbd48['originalSuggestionId']||null,this['_model']=_0x360592,this['_onAccept']=_0x1fbd48['onAccept'],this['_onDiscard']=_0x1fbd48['onDiscard'],this['_onAttributesChange']=_0x1fbd48['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fbd48['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 _0x267827=this;for(;_0x267827['previous'];)_0x267827=_0x267827['previous'];return _0x267827;}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'](_0x1dcb32){this['_markerNames']['add'](_0x1dcb32);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x58fc4d=>this['_model']['markers']['get'](_0x58fc4d))['filter'](_0x57fce2=>_0x57fce2);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ac18e=>{for(const _0x2274f7 of this['getMarkers']())_0x1ac18e['removeMarker'](_0x2274f7);}),this['_markerNames']['clear']();}['removeMarker'](_0x50b347){this['_model']['change'](_0x933633=>{_0x933633['removeMarker'](_0x50b347);}),this['_markerNames']['delete'](_0x50b347);}['addRange'](_0x1163a3){const _0xdbf62d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xdbf62d),this['_model']['change'](_0x136c3d=>{_0x136c3d['addMarker'](_0xdbf62d,{'range':_0x1163a3,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x5bdd90){for(const _0x4e136c of this['getRanges']())if(_0x4e136c['isIntersecting'](_0x5bdd90))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x461c4d=>_0x461c4d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x4f1069,_0x62cd6b)=>[..._0x4f1069,..._0x62cd6b['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4d3c50=this['getRanges']();if(0x1!=_0x4d3c50['length'])return null;const _0x4125eb=_0x4d3c50[0x0],_0x22be17=_0x4125eb['start']['nodeAfter'],_0xd3e72d=_0x4125eb['end']['nodeBefore'];return _0x22be17 instanceof st?_0x22be17!=_0xd3e72d?null:_0x22be17: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 _0x52310b=[];let _0x4cc240=this['head'];for(;_0x4cc240;)_0x52310b['push'](_0x4cc240),_0x4cc240=_0x4cc240['next'];return _0x52310b;}setAttribute(_0x48a6d8,_0xdbbb7b){const _0x230b01=ct(this['attributes']);dt(_0x230b01,_0x48a6d8,_0xdbbb7b),lt(_0x230b01,this['attributes'])||(this['attributes']=_0x230b01,this['_onAttributesChange'](_0x230b01));}removeAttribute(_0x16e2d8){const _0x277eb4=ct(this['attributes']);ht(_0x277eb4,_0x16e2d8),lt(_0x277eb4,this['attributes'])||(this['attributes']=_0x277eb4,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 _0x2e6a13()['substr'](0x1,0x5);}};function Ot(_0x1938b3,_0x4b2b56,_0x2e2e1f){const _0x2cd183=_0x1938b3['t'],t=_0x1938b3['t'];switch(_0x4b2b56){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',_0x2e2e1f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e2e1f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e2e1f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e2e1f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e2e1f);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',_0x2e2e1f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e2e1f);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',_0x2e2e1f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e2e1f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e2e1f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e2e1f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e2e1f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e2e1f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e2e1f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e2e1f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e2e1f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2e2e1f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2e2e1f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e2e1f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e2e1f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e2e1f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e2e1f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e2e1f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e2e1f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e2e1f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2e2e1f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2e2e1f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2e2e1f);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 _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e2e1f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e2e1f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4b2b56;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x212172,_0x5b713b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x212172,this['_locale']=_0x5b713b;}getDescriptions(_0x122f0b){const _0x59809e=[],_0x2c21d7=new Set(),_0x380e67=new Set();for(let _0x2b0e5c=0x0;_0x2b0e5c<_0x122f0b['length'];_0x2b0e5c++){const _0x2ed4bb=_0x122f0b[_0x2b0e5c];if(!_0x2ed4bb['isInContent'])continue;const _0x3fe482=this['_handleCustomCallbackDescription'](_0x2ed4bb);if(_0x3fe482){if(null!=_0x2ed4bb['subType']){if(_0x2c21d7['has'](_0x2ed4bb['subType']))continue;_0x2c21d7['add'](_0x2ed4bb['subType']);}_0x59809e['push'](_0x3fe482);}else{if('attribute'==_0x2ed4bb['type']){const _0x58e2cf=_0x2ed4bb['data']['key'];if(_0x380e67['has'](_0x58e2cf))continue;_0x380e67['add'](_0x2ed4bb['data']['key']),'$elementName'==_0x58e2cf?this['_handleRenameSuggestionDescription'](_0x59809e,_0x2ed4bb):this['_handleAttributeSuggestionDescription'](_0x59809e,_0x2ed4bb);continue;}'insertion'!=_0x2ed4bb['type']&&'deletion'!=_0x2ed4bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x59809e,_0x2ed4bb,_0x122f0b[_0x2b0e5c+0x1]);}}return this['_resolveDescriptionItems'](_0x59809e);}registerDescriptionCallback(_0x19eaff){this['_customCallbacks']['push'](_0x19eaff);}registerElementLabel(_0x49d107,_0x480359,_0x44365a=_0x2b2839['normal']){'function'==typeof _0x49d107?_0x26314f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d107,'label':_0x480359,'priority':_0x44365a}):this['_itemLabels']['set'](_0x49d107,_0x480359);}registerAttributeLabel(_0x29e4b0,_0x2465b0){this['_attributeLabels']['set'](_0x29e4b0,_0x2465b0);}getItemLabel(_0x537004,_0x50fcf0=0x1){let _0x445e9e;for(const _0x54bc0f of this['_itemLabelsCallbacks'])if(_0x54bc0f['matchingCallback'](_0x537004)){_0x445e9e=_0x54bc0f['label'];break;}return _0x445e9e||(_0x445e9e=this['_itemLabels']['get'](_0x537004['name'])),_0x445e9e?_0x445e9e(_0x50fcf0):0x1!==_0x50fcf0?_0x50fcf0+'\x20'+_0x537004['name']+'s':''+_0x537004['name'];}_addDescriptionItems(_0x1779c5,_0x1ea9e1){const _0x2c6b15=_0x1ea9e1['getFirstRange']()['getWalker'](),_0x34a914='insertion'==_0x1ea9e1['type']?'add':'remove';for(const _0x25448f of _0x2c6b15){const _0x1aa207=_0x25448f['item'],_0xc732ac=_0x1779c5[_0x1779c5['length']-0x1];if(_0x1aa207['is']('$textProxy'))_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),_0xc732ac&&'text'==_0xc732ac['type']?_0xc732ac[_0x34a914]+=_0x1aa207['data']:_0x1779c5['push']({'type':'text','add':'add'==_0x34a914?_0x1aa207['data']:'','remove':'remove'==_0x34a914?_0x1aa207['data']:''});else{if(this['_schema']['isObject'](_0x1aa207)){const _0x4212e3=_0x1aa207;if(_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),'elementEnd'==_0x25448f['type'])continue;_0xc732ac&&_0xc732ac['type']==_0x34a914+'Object'&&_0xc732ac['element']['name']==_0x4212e3['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'Object','element':_0x4212e3,'quantity':0x1}),_0x2c6b15['skip'](_0x61c6a4=>!('elementEnd'==_0x61c6a4['type']&&_0x61c6a4['item']==_0x1aa207));}else{if(this['_schema']['checkChild'](_0x1aa207,'$text')||_0x1aa207['is']('element','softBreak')){const _0x4fdece=_0x1aa207;if('add'==_0x34a914&&'elementStart'==_0x25448f['type']||'remove'==_0x34a914&&'elementEnd'==_0x25448f['type'])continue;if(_0xc732ac&&-0x1==_0xc732ac['type']['indexOf']('Container')){'text'==_0xc732ac['type']&&(_0xc732ac[_0x34a914]+='\x0a');continue;}let _0x11110e;if(_0x11110e='add'==_0x34a914?_0x4fdece['nextSibling']&&!this['_schema']['isObject'](_0x4fdece['nextSibling'])?_0x4fdece['nextSibling']:null:_0x4fdece['previousSibling']&&!this['_schema']['isObject'](_0x4fdece['previousSibling'])?_0x4fdece['previousSibling']:null,_0x4fdece['isEmpty']||_0x11110e&&_0x11110e['isEmpty']){const _0x2c5808=_0x11110e&&_0x11110e['isEmpty']?_0x11110e:_0x4fdece;_0xc732ac&&_0xc732ac['type']==_0x34a914+'EmptyContainer'&&_0xc732ac['element']['name']==_0x2c5808['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'EmptyContainer','element':_0x2c5808,'quantity':0x1});}else _0x1779c5['push']({'type':_0x34a914+'Container','element':_0x4fdece});}}}}}_resolveDescriptionItems(_0x27cc2c){const _0x1cca94=this['_locale'],_0x47f555=[],_0x23636c=[],_0x430f93=[];for(const _0x50675f of _0x27cc2c)switch(_0x50675f['type']){case'text':if(_0x50675f['add']=_0x50675f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x50675f['remove']=_0x50675f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x50675f['add']&&''!=_0x50675f['remove']){_0x47f555['push']({'type':'replace','content':Ot(_0x1cca94,'REPLACE_TEXT',['\x22'+_0x50675f['remove']+'\x22','\x22'+_0x50675f['add']+'\x22'])});continue;}if(null!=_0x50675f['add']['match'](/^ +$/)){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['add']['length']))});continue;}if(null!=_0x50675f['remove']['match'](/^ +$/)){_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['remove']['length']))});continue;}if(''!=_0x50675f['add']){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0','\x22'+_0x50675f['add']+'\x22')});continue;}_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0','\x22'+_0x50675f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addContainer':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Split:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeContainer':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Merge:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addFormat':_0x23636c['push'](_0x50675f['key']);continue;case'removeFormat':_0x430f93['push'](_0x50675f['key']);continue;default:_0x47f555['push'](_0x50675f);}if(_0x23636c['length']){const _0x495348=_0x23636c['map'](_0x324370=>this['_attributeLabels']['has'](_0x324370)?this['_attributeLabels']['get'](_0x324370):_0x324370)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x495348)});}if(_0x430f93['length']){const _0x1c5ebc=_0x430f93['map'](_0x1c46e1=>this['_attributeLabels']['has'](_0x1c46e1)?this['_attributeLabels']['get'](_0x1c46e1):_0x1c46e1)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c5ebc)});}return _0x47f555;}_handleCustomCallbackDescription(_0x3dd432){for(const _0x15dea5 of this['_customCallbacks']){const _0x2ff13a=_0x15dea5(_0x3dd432);if(_0x2ff13a&&'type'in _0x2ff13a)return _0x2ff13a;}}_handleAttributeSuggestionDescription(_0x37e9f2,_0xb7b699){const _0x3c4e4a=_0xb7b699['data'],_0x3f231a=void 0x0===_0x3c4e4a['newValue']?'removeFormat':'addFormat';_0x37e9f2['push']({'type':_0x3f231a,'key':_0x3c4e4a['key']});}_handleRenameSuggestionDescription(_0xa2cb19,_0x402bf9){_0xa2cb19['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x402bf9['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0xda17ec,_0x1c2ce0,_0x3b110d){if(this['_addDescriptionItems'](_0xda17ec,_0x1c2ce0),_0x3b110d&&_0x3b110d['getFirstRange']()&&!_0x1c2ce0['getFirstRange']()['end']['isEqual'](_0x3b110d['getFirstRange']()['start'])){const _0x2440d6=_0xda17ec[_0xda17ec['length']-0x1],_0x18f5c2='insertion'==_0x1c2ce0['type']?'add':'remove';_0x2440d6&&'text'==_0x2440d6['type']&&(_0x2440d6[_0x18f5c2]+='\x0a');}}},Ft=class extends _0x9bd549{afterInit(){const _0x4694e6=this['editor'],_0x1d3c59=_0x4694e6['plugins']['get']('TrackChangesEditing');_0x4694e6['commands']['get']('showAIAssistant')&&_0x1d3c59['enableCommand']('showAIAssistant');}},Bt=class extends _0x9bd549{afterInit(){const _0x372959=this['editor'],_0x19e942=_0x372959['plugins']['get']('TrackChangesEditing');_0x372959['commands']['get']('toggleAi')&&_0x19e942['enableCommand']('toggleAi');}},vt=class extends _0x9bd549{afterInit(){const _0x1c211e=this['editor'],_0x6873ac=_0x1c211e['plugins']['get']('TrackChangesEditing');_0x1c211e['commands']['get']('aiQuickAction')&&_0x6873ac['enableCommand']('aiQuickAction');}},Dt=class extends _0x9bd549{afterInit(){const _0x29ea5f=this['editor'],_0x4c49b7=_0x29ea5f['locale'];if(!_0x29ea5f['plugins']['has']('AlignmentEditing'))return;const _0x49ce7b=_0x29ea5f['plugins']['get']('TrackChangesEditing');_0x49ce7b['enableDefaultAttributesIntegration']('alignment'),_0x49ce7b['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x4c49b7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19d98e=this['editor'],_0x2465d5=_0x19d98e['locale'];_0x19d98e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b2e2=>{if('formatBlock'!=_0x40b2e2['type'])return;const {data:_0x31ca82}=_0x40b2e2;if(_0x31ca82&&'alignment'==_0x31ca82['commandName']){const _0xc0263e=_0x31ca82['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x2465d5,'*Format:*\x20%0',function(_0x2e9c20){switch(_0x2e9c20){case'left':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x2465d5,'FORMAT_JUSTIFY_TEXT');}}(_0xc0263e))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x9bd549{afterInit(){const _0x28799f=this['editor'],_0x379617=_0x28799f['plugins']['get']('TrackChangesEditing'),_0x536dba=_0x28799f['locale'];for(const _0xfbeff2 of Ut){if(!_0x28799f['plugins']['has'](_0xfbeff2))continue;const _0x505a92=_0xfbeff2['slice'](0x0,-0x7)['toLowerCase'](),_0x1e79fc='FORMAT_'+_0x505a92['toUpperCase']();_0x379617['enableDefaultAttributesIntegration'](_0x505a92),_0x379617['descriptionFactory']['registerAttributeLabel'](_0x505a92,Ot(_0x536dba,_0x1e79fc));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x324cf7=this['editor'],_0xbb120f=_0x324cf7['locale'],_0x323e71=_0x324cf7['plugins']['get']('TrackChangesEditing');function _0x90c6c9(_0x2e5495,_0x7d03ea){_0x323e71['descriptionFactory']['registerDescriptionCallback'](_0x4de9ad=>{if('formatInline'!=_0x4de9ad['type'])return;const {data:_0x77c542}=_0x4de9ad;return _0x77c542&&_0x77c542['commandName']===_0x2e5495?_0x77c542['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xbb120f,'*Format:*\x20%0',_0x7d03ea)}:{'type':'format','content':Ot(_0xbb120f,'*Remove\x20format:*\x20%0',_0x7d03ea)}:void 0x0;});}_0x90c6c9('bold',Ot(_0xbb120f,'FORMAT_BOLD')),_0x90c6c9('italic',Ot(_0xbb120f,'FORMAT_ITALIC')),_0x90c6c9('underline',Ot(_0xbb120f,'FORMAT_UNDERLINE')),_0x90c6c9('code',Ot(_0xbb120f,'FORMAT_CODE')),_0x90c6c9('strikethrough',Ot(_0xbb120f,'FORMAT_STRIKETHROUGH')),_0x90c6c9('subscript',Ot(_0xbb120f,'FORMAT_SUBSCRIPT')),_0x90c6c9('superscript',Ot(_0xbb120f,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x9bd549{afterInit(){const _0x2a2321=this['editor'],_0x5039a2=_0x2a2321['locale'];if(!_0x2a2321['plugins']['has']('BlockQuoteEditing'))return;const _0x2940fb=_0x2a2321['plugins']['get']('TrackChangesEditing'),_0x212439=this['editor']['commands']['get']('blockQuote');_0x2940fb['enableCommand']('blockQuote',(_0x19960b,_0x5ac0cb={})=>{const _0x364621=this['editor']['model']['document']['selection'],_0x77ffee=_0x5ac0cb&&void 0x0!==_0x5ac0cb['forceValue']?_0x5ac0cb['forceValue']:!_0x212439['value'];let _0x12513e=[];_0x12513e=Ct(_0x77ffee?Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x2d844a=>Gt(_0x2d844a)||function(_0x585a55,_0x55b8c5){const _0x4b6e46=_0x55b8c5['createContext'](_0x585a55['parent']);return!!_0x55b8c5['checkChild'](_0x4b6e46,'blockQuote')&&!!_0x55b8c5['checkChild'](_0x4b6e46['push']('blockQuote'),_0x585a55);}(_0x2d844a,this['editor']['model']['schema'])):Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x50773e=>Gt(_0x50773e)),_0x2a2321['model']),_0x2a2321['model']['change'](()=>{for(const _0x4f5685 of _0x12513e)_0x2940fb['markBlockFormat'](_0x4f5685,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x77ffee}]});});}),_0x2940fb['descriptionFactory']['registerDescriptionCallback'](_0x221b2e=>{const {data:_0x539e65}=_0x221b2e;if(_0x539e65&&'blockQuote'==_0x539e65['commandName']){const _0x493745=Ot(_0x5039a2,'ELEMENT_BLOCK_QUOTE');return _0x539e65['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x5039a2,'*Set\x20format:*\x20%0',_0x493745)}:{'type':'format','content':Ot(_0x5039a2,'*Remove\x20format:*\x20%0',_0x493745)};}});}};function Gt(_0x88b2af){return'blockQuote'==_0x88b2af['parent']['name'];}var Ht=class extends _0x9bd549{afterInit(){const _0x15a6e7=this['editor'],_0x5a3f82=_0x15a6e7['locale'],_0x43b1da=_0x15a6e7['plugins']['get']('TrackChangesEditing');_0x15a6e7['plugins']['has']('BookmarkEditing')&&(_0x43b1da['enableCommand']('insertBookmark'),_0x43b1da['enableDefaultAttributesIntegration']('updateBookmark'),_0x43b1da['descriptionFactory']['registerDescriptionCallback'](_0x28e451=>{if('insertion'!=_0x28e451['type']&&'deletion'!=_0x28e451['type']&&'attribute'!=_0x28e451['type'])return;const _0x146190=_0x28e451['getContainedElement']();if(null==_0x146190)return;if(!_0x146190['is']('element','bookmark'))return;const _0x12d5ff=_0x146190['getAttribute']('bookmarkId');if('insertion'==_0x28e451['type'])return{'type':'insertion','content':Ot(_0x5a3f82,'*Insert:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28e451['type'])return{'type':'deletion','content':Ot(_0x5a3f82,'*Remove:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};const {data:_0x4be337}=_0x28e451;return _0x4be337&&'bookmarkId'==_0x4be337['key']?{'type':'format','content':Ot(_0x5a3f82,'*Set\x20bookmark:*\x20%0','\x22'+_0x4be337['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x9bd549{afterInit(){const _0x884b9e=this['editor'];_0x884b9e['plugins']['has']('CaseChange')&&(_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x9bd549{afterInit(){const _0x431703=this['editor'];_0x431703['commands']['get']('ckbox')&&_0x431703['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x9bd549{static get requires(){return[gt,ft];}constructor(_0x230b5f){super(_0x230b5f),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x376783=this['editor'],_0x32d41e=_0x376783['plugins']['get']('ClipboardMarkersUtils'),_0x2dced6=_0x376783['plugins']['get'](ft);_0x32d41e['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2dced6['on']('outputTransformation',(_0x475cbd,_0x10cb45)=>{const _0xb4a8bb=this['_getSuggestionEntries'](_0x10cb45);for(const [_0x5bb480,_0x8235f1]of _0x10cb45['content']['markers']){const _0x3e499d=ot['_fromRangeInDocumentFragment'](_0x8235f1,_0x376783['model']);function _0x2ae23a(){_0x3e499d['detach'](),_0x10cb45['content']['markers']['delete'](_0x5bb480);}_0x3e499d['on']('change:drop',_0x2ae23a),(_0x5bb480['startsWith']('suggestion:')||_0x5bb480['startsWith']('comment:'))&&_0x3e499d['on']('change:range',()=>{_0x3e499d['isCollapsed']&&_0x2ae23a();}),_0x10cb45['content']['markers']['set'](_0x5bb480,_0x3e499d);}const _0x29f3a6=_0xb4a8bb['filter'](_0x4bb27b=>'deletion'===_0x4bb27b['meta']['type'])['map'](_0x548307=>_0x548307['modelRange']);if(this['_shouldSkipDeletions'](_0x29f3a6,_0x10cb45['content']))return[..._0xb4a8bb]['forEach'](_0x478c9b=>{_0x10cb45['content']['markers']['get'](_0x478c9b['markerName'])['detach'](),_0x10cb45['content']['markers']['delete'](_0x478c9b['markerName']);}),void this['_restoreRegularRanges'](_0x10cb45['content']['markers']);[..._0xb4a8bb]['forEach'](_0x5513ee=>{const _0x1a1920=_0x376783['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x5513ee['meta']['type'],_0x5513ee['meta']['subType'],'accept'),{markerName:_0x3751cf,meta:_0x4c4f2f}=_0x5513ee;if(_0x10cb45['content']['markers']['has'](_0x3751cf)){switch(_0x4c4f2f['type']){case'deletion':if('tableRow'===_0x4c4f2f['subType']||'tableColumn'===_0x4c4f2f['subType']){if(!_0x376783['plugins']['has']('TableUtils'))break;const _0x43601a=_0x376783['plugins']['get']('TableUtils'),_0x51fe0e=_0x43601a['getSelectionAffectedTableCells'](_0x376783['model']['createSelection'](_0x10cb45['content']['markers']['get'](_0x3751cf))),_0x1335af=_0x51fe0e[0x0]['findAncestor']('table');if('tableRow'===_0x4c4f2f['subType']){const {first:_0x30e57d,last:_0x47a10a}=_0x43601a['getRowIndexes'](_0x51fe0e);_0x43601a['removeRows'](_0x1335af,{'at':_0x30e57d,'rows':_0x47a10a-_0x30e57d+0x1});}else{const {first:_0x1db2fc,last:_0x12c378}=_0x43601a['getColumnIndexes'](_0x51fe0e);_0x43601a['removeColumns'](_0x1335af,{'at':_0x1db2fc,'columns':_0x12c378-_0x1db2fc+0x1});}break;}_0x1a1920([_0x10cb45['content']['markers']['get'](_0x3751cf)]);}_0x10cb45['content']['markers']['has'](_0x3751cf)&&(_0x10cb45['content']['markers']['get'](_0x3751cf)['detach'](),_0x10cb45['content']['markers']['delete'](_0x3751cf));}}),this['_restoreRegularRanges'](_0x10cb45['content']['markers']);});}_getSuggestionEntries(_0x244e2a){const _0x3fc613=_0x5ddb8c=>'dragstart'===_0x244e2a['method']?_0x5ddb8c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x5ddb8c;return Array['from'](_0x244e2a['content']['markers'])['map'](([_0x50c59f,_0x3cb0f3])=>({'markerName':_0x50c59f,'modelRange':_0x3cb0f3,'meta':et(_0x3fc613(_0x50c59f))}))['filter'](({meta:_0x429c3c})=>'suggestion'===_0x429c3c['group']);}_shouldSkipDeletions(_0x416f74,_0x2d2aae){if(!_0x416f74['length'])return!0x1;let _0x4bd520=[this['editor']['model']['createRangeIn'](_0x2d2aae)];for(const _0x862de2 of _0x416f74)_0x4bd520=_0x4bd520['flatMap'](_0xd754e9=>_0xd754e9['getDifference'](_0x862de2));return!_0x4bd520['some'](_0x1c99f6=>this['editor']['model']['hasContent'](_0x1c99f6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2b16f6){[..._0x2b16f6['keys']()]['forEach'](_0x3d2a4b=>{const _0x38a225=_0x2b16f6['get'](_0x3d2a4b);_0x38a225['detach'](),_0x2b16f6['set'](_0x3d2a4b,_0x38a225['toRange']());});}},jt=class extends _0x9bd549{afterInit(){const _0x2dccb4=this['editor'];if(!_0x2dccb4['plugins']['has']('CodeBlock'))return;const _0x424252=_0x2dccb4['plugins']['get']('TrackChangesEditing'),_0x1f8938=_0x2dccb4['locale'],_0x4ca020=_0x2dccb4['config']['get']('codeBlock')['languages'],_0x4d75c7=_0x2dccb4['commands']['get']('codeBlock');_0x424252['enableCommand']('indentCodeBlock'),_0x424252['enableCommand']('outdentCodeBlock'),_0x424252['enableCommand']('codeBlock',(_0x1469a2,_0x40ce27={})=>{const _0x2e3ea0=_0x2dccb4['model'],_0x14a6e7=_0x2dccb4['model']['document']['selection'],_0x319b87=_0x40ce27&&void 0x0!==_0x40ce27['forceValue']?_0x40ce27['forceValue']:!_0x4d75c7['value'];let _0x37d9eb;_0x40ce27['language']||(_0x40ce27['language']=_0x4ca020[0x0]['language']),_0x37d9eb=_0x319b87?Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x3260c8=>{return zt(_0x3260c8)||(_0x463a24=_0x3260c8,_0x42ba22=_0x2e3ea0['schema'],!_0x463a24['is']('rootElement')&&!_0x42ba22['isLimit'](_0x463a24)&&_0x42ba22['checkChild'](_0x463a24['parent'],'codeBlock'));var _0x463a24,_0x42ba22;}):Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x7b2d4d=>zt(_0x7b2d4d));const _0x20cf99=Ct(_0x37d9eb,_0x2e3ea0);_0x2e3ea0['change'](()=>{for(const _0x186a9b of _0x20cf99)_0x424252['markBlockFormat'](_0x186a9b,{'commandName':'codeBlock','commandParams':[{..._0x40ce27,'forceValue':_0x319b87}],'formatGroupId':'blockName'});});}),(_0x424252['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d1697=>Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',_0x4d1697)),_0x424252['descriptionFactory']['registerDescriptionCallback'](_0x5ba558=>{if('formatBlock'!=_0x5ba558['type'])return;const _0x4f9235=_0x1f8938['t'],{data:_0x5518de}=_0x5ba558;if(!_0x5518de||'codeBlock'!=_0x5518de['commandName'])return;const _0x480ad3=_0x5518de['commandParams'][0x0]['language'],_0x2f75cb=_0x4f9235(_0x4ca020['find'](_0x40c8f1=>_0x40c8f1['language']===_0x480ad3)['label'])['toLowerCase']();return _0x5518de['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1f8938,'*Set\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f75cb+')')}:{'type':'format','content':Ot(_0x1f8938,'*Remove\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x2778c3){return'codeBlock'==_0x2778c3['name'];}var Kt=class extends _0x9bd549{afterInit(){const _0x12e5eb=this['editor'];_0x12e5eb['plugins']['has']('CommentsEditing')&&_0x12e5eb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x9bd549{static get requires(){return[mt];}init(){const _0x42ebd1=this['editor'],_0xdda8de=_0x42ebd1['plugins']['get']('TrackChangesEditing');_0xdda8de['enableCommand']('delete');const _0x1d6970=_0x42ebd1['commands']['get']('deleteForward');_0xdda8de['enableCommand']('deleteForward',(_0x53c491,_0x58513b={})=>{const _0x400c22=_0x42ebd1['model']['createSelection'](_0x42ebd1['model']['document']['selection']);_0x400c22['isCollapsed']&&_0x42ebd1['model']['modifySelection'](_0x400c22,{'direction':'forward','unit':_0x58513b['unit']});const _0x5a0176=_0x400c22['getFirstRange'](),_0x4173cf=ot['fromRange'](_0x5a0176);let _0x45beaf;_0x53c491(_0x58513b),_0x45beaf='$graveyard'==_0x4173cf['root']['rootName']?_0x42ebd1['model']['createRange'](_0x5a0176['start']):_0x42ebd1['model']['createRange'](_0x4173cf['start'],_0x4173cf['end']),_0x4173cf['detach'](),_0x42ebd1['model']['enqueueChange'](_0x1d6970['buffer']['batch'],_0x9f2bf0=>{_0x1d6970['buffer']['lock'](),_0x9f2bf0['setSelection'](_0x9f2bf0['createRange'](_0x45beaf['end'])),_0x1d6970['buffer']['unlock']();});});}},qt=class extends _0x9bd549{afterInit(){const _0x47276e=this['editor'];if(!_0x47276e['plugins']['has']('ListEditing'))return;const _0x477c92=_0x47276e['locale'],_0x160096=_0x47276e['plugins']['get']('TrackChangesEditing'),_0x4516de=_0x47276e['plugins']['has']('TodoListEditing'),_0x5d9737=!!_0x47276e['config']['get']('list.multiBlock');function _0x30c15d(_0x4fd152){return{'type':'format','content':''+Ot(_0x477c92,'*Set\x20format:*\x20%0',_0x4fd152)};}function _0x1d6e00(_0x5200c0){return{'type':'format','content':''+Ot(_0x477c92,'*Remove\x20format:*\x20%0',_0x5200c0)};}_0x160096['enableDefaultAttributesIntegration']('numberedList'),_0x160096['enableDefaultAttributesIntegration']('bulletedList'),_0x160096['enableDefaultAttributesIntegration']('customNumberedList'),_0x160096['enableDefaultAttributesIntegration']('customBulletedList'),_0x160096['enableDefaultAttributesIntegration']('indentList'),_0x160096['enableDefaultAttributesIntegration']('outdentList'),_0x160096['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x160096['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d9737&&(_0x160096['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x160096['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4516de&&(_0x160096['enableDefaultAttributesIntegration']('todoList'),_0x160096['enableDefaultAttributesIntegration']('checkTodoList'),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x166c20=>{const {data:_0x33ab83}=_0x166c20;if(_0x33ab83&&'todoListChecked'==_0x33ab83['key'])return{'type':'format','content':_0x33ab83['newValue']?Ot(_0x477c92,'*Check\x20item*'):Ot(_0x477c92,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xb27082=>{if(_0xb27082['batch']['isUndo'])return!0x1;let _0x450c80=!0x1;const _0x400885=_0x160096['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f7628=>'todoListChecked'===_0x160096['_getAttributeKey'](_0x3f7628));for(const _0x5b2ca7 of _0x400885)'todo'!=_0x5b2ca7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x160096['_findSuggestions'](_0x5b2ca7['getFirstRange'](),'attribute')['find'](_0x4fd70e=>'listType'===_0x160096['_getAttributeKey'](_0x4fd70e['suggestion']))||(_0xb27082['removeMarker'](_0x5b2ca7['getFirstMarker']()),_0x450c80=!0x0));return _0x450c80;})),_0x160096['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x477c92,'FORMAT_INDENT'));const _0x3db429={'type':'format','content':''};_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x16bdf2=>{const {data:_0x428988}=_0x16bdf2;if(!_0x428988||'listType'!=_0x428988['key'])return;let _0x544abc=_0x16bdf2['head'];for(;_0x544abc;){if(_0x544abc['data']&&(('listStyle'==_0x544abc['data']['key']||'listMarkerStyle'==_0x544abc['data']['key'])&&(_0x544abc['data']['newValue']&&'default'!=_0x544abc['data']['newValue']||'default'!=_0x544abc['data']['oldValue']&&!_0x428988['newValue'])||!_0x5d9737&&'$elementName'==_0x544abc['data']['key']))return _0x3db429;_0x544abc=_0x544abc['next'];}if(null==_0x428988['newValue'])switch(_0x428988['oldValue']){case'bulleted':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}switch(_0x428988['newValue']){case'bulleted':return _0x30c15d(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30c15d(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30c15d(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x59d6f0=>{const {data:_0x1af39d}=_0x59d6f0;if(_0x1af39d&&'listIndent'==_0x1af39d['key'])return null==_0x1af39d['newValue']||null==_0x1af39d['oldValue']&&0x0==_0x1af39d['newValue']?_0x3db429:void 0x0;}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x4b8356=>{if('attribute'!=_0x4b8356['type'])return;const {data:_0x516c5f}=_0x4b8356;if(!_0x516c5f||'listItemId'!=_0x516c5f['key'])return;const _0x52da9f=Yt(_0x4b8356);return'newValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Merge:*\x20list\x20item')}:'oldValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Split:*\x20list\x20item')}:_0x3db429;}),_0x47276e['model']['document']['registerPostFixer'](_0x57e785=>this['listItemIdFixer'](_0x57e785)),_0x47276e['model']['document']['registerPostFixer'](_0x20c325=>this['noTrackChangesFixer'](_0x20c325)),_0x47276e['model']['document']['on']('change:data',(_0xc29492,_0x2ff07a)=>{if(_0x2ff07a['isUndo']||!_0x2ff07a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x2d7f10){if(_0x2d7f10['batch']['isUndo']||!_0x2d7f10['batch']['isLocal'])return!0x1;let _0x5aa104=!0x1;const _0x25ce7b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8fce9d=>_0x8fce9d['data']&&'listItemId'==_0x8fce9d['data']['key'])['filter'](_0x3c0aee=>_0x3c0aee['data']['newValue']&&_0x3c0aee['data']['oldValue']);for(const _0x5216e7 of _0x25ce7b)Yt(_0x5216e7)||(_0x2d7f10['removeMarker'](_0x5216e7['getFirstMarker']()),_0x5aa104=!0x0);return _0x5aa104;}['noTrackChangesFixer'](_0x13f854){if(_0x13f854['batch']['isUndo']||!_0x13f854['batch']['isLocal'])return!0x1;const _0x3a5625=this['editor']['model']['document']['differ'],_0x13c930=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13c930['trackChangesCommand']['value'])return!0x1;let _0x3d11e1=!0x1;const _0x3c0dc8=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1a61d0=_0x3a5625['getChanges']()['filter'](_0x3ff23c=>'attribute'==_0x3ff23c['type'])['filter'](_0x45883f=>_0x3c0dc8['has'](_0x45883f['attributeKey']));if(0x0==_0x1a61d0['length'])return _0x3d11e1;const _0x3820a2=new Set(_0x3a5625['getMarkersToAdd']()['filter'](_0x264625=>{if(!_0x264625['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x772885=et(_0x264625['name'])['subType']['split']('|')[0x0];return _0x3c0dc8['has'](_0x772885);})['map'](_0x213625=>et(_0x213625['name'])['id']));for(const _0x34a6ab of _0x1a61d0){const _0x21b307=_0x13c930['_findSuggestions'](_0x34a6ab['range'],'attribute')['filter'](_0x3101b3=>{if(_0x3101b3['meta']['isNextTo'])return!0x1;if(_0x3820a2['has'](_0x3101b3['suggestion']['id']))return!0x1;const _0x32d609=_0x13c930['_getAttributeKey'](_0x3101b3['suggestion']);return _0x3c0dc8['has'](_0x32d609);})['map'](_0x3d4244=>_0x3d4244['suggestion']);if(_0x21b307['length']){for(const _0x4971a4 of _0x21b307)_0x13f854['removeMarker'](_0x4971a4['getFirstMarker']());_0x3d11e1=!0x0;}}return _0x3d11e1;}['assureChains'](){const _0x4522dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5881a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4f9df6;const _0x5e71f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5978d4=>{if(_0x5978d4['data']['oldRange']||!_0x5978d4['data']['newRange'])return null;if(!_0x5978d4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x165368}=et(_0x5978d4['name']);if(!_0x4522dd['hasSuggestion'](_0x165368))return null;const _0x309122=_0x4522dd['getSuggestion'](_0x165368);return _0x5881a4['includes'](_0x309122['data']['key']);})['map'](_0x39bf3d=>{const {id:_0x434794}=et(_0x39bf3d['name']),_0x12f76f=_0x4522dd['getSuggestion'](_0x434794);return _0x4f9df6=_0x12f76f['attributes']['groupId'],_0x12f76f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e71f3['size'])return;const _0x3886ce=_0x4522dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304ca4=>'attribute'==_0x304ca4['type']&&_0x304ca4['data']&&_0x5881a4['includes'](_0x304ca4['data']['key'])&&_0x304ca4['attributes']['groupId']!=_0x4f9df6)['map'](_0x70f344=>({'listItem':_0x70f344['getFirstRange']()['start']['nodeAfter'],'groupId':_0x70f344['attributes']['groupId']})),_0x2c066d=new Set();for(const {groupId:_0x277904,listItem:_0x28b0f5}of _0x3886ce)_0x5e71f3['has'](_0x28b0f5)&&_0x2c066d['add'](_0x277904);for(const _0x324aa2 of _0x4522dd['getSuggestions']())_0x2c066d['has'](_0x324aa2['attributes']['groupId'])&&_0x324aa2['setAttribute']('groupId',_0x4f9df6);}_supportLegacySuggestions(){const _0x27532d=this['editor'],_0x438a0c=_0x27532d['locale'],_0xbfa068=_0x27532d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbfa068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x229ad8,_0x22f39f){const _0x905a35=[];for(let _0xa71b19 of _0x229ad8)_0xa71b19['start']['nodeAfter']===_0xa71b19['end']['parent']&&(_0xa71b19=_0x27532d['model']['createRange'](_0x27532d['model']['createPositionAt'](_0xa71b19['start']['nodeAfter'],0x0))),_0x905a35['push'](_0xa71b19);_0x27532d['model']['change'](_0x2f31f8=>{const _0x46a995=_0x27532d['model']['document']['selection'],_0xe9f387=Array['from'](_0x46a995['getRanges']())['map'](_0xbb1f97=>ot['fromRange'](_0xbb1f97));_0x2f31f8['setSelection'](_0x905a35),_0x27532d['commands']['get'](_0x22f39f['commandName'])['refresh'](),_0x22f39f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27532d['execute'](_0x22f39f['commandName'],..._0x22f39f['commandParams']),_0x2f31f8['setSelection'](_0xe9f387);for(const _0x184e2b of _0xe9f387)_0x184e2b['detach']();});}),_0xbfa068['descriptionFactory']['registerElementLabel'](function(_0xa9704c){const _0x46bf54=!_0x27532d['model']['schema']['isObject'](_0xa9704c),_0x58fc68=_0xa9704c['previousSibling'],_0x40b257=_0xa9704c['nextSibling'],_0x88eb5=_0xa9704c['getAttribute']('listItemId'),_0x29e047=!_0x58fc68||_0x58fc68['getAttribute']('listItemId')!==_0x88eb5,_0x239eee=!_0x40b257||_0x40b257['getAttribute']('listItemId')!==_0x88eb5;return _0x46bf54&&Boolean(_0x88eb5)&&_0x29e047&&_0x239eee;},_0x3e21c5=>Ot(_0x438a0c,'ELEMENT_LIST_ITEM',_0x3e21c5));}_registerLegacyDescription(){const _0x5dc13c=this['editor'],_0x57e93d=_0x5dc13c['locale'];function _0x108269(_0x537605){const _0x2336d7=_0x5dc13c['commands']['get']('bulletedList')['value'],_0x1f07bb=_0x5dc13c['commands']['get']('numberedList')['value'];return'numberedList'===_0x537605?_0x2336d7:_0x1f07bb;}_0x5dc13c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a0710){if('formatBlock'!=_0x4a0710['type'])return;const {data:_0x379f53}=_0x4a0710;if(!_0x379f53)return;let _0x1f7d60,_0x24d107,_0x308e,_0x5528c1;switch(_0x379f53['commandName']){case'bulletedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f7d60='*Indent:*\x20%0',_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f7d60=function(_0x306381){const _0x4ab34f=_0x306381['getFirstRange']();let _0x225366=_0x4ab34f['start']['nodeAfter'];for(;_0x225366&&_0x4ab34f['containsItem'](_0x225366);){if(_0x225366['getAttribute']('listIndent')>0x0)return!0x1;_0x225366=_0x225366['nextSibling'];}return!0x0;}(_0x4a0710)?Ot(_0x57e93d,'*Format:*\x20remove\x20from\x20%0',Ot(_0x57e93d,function(_0x198947){return'ELEMENT_'+_0x198947['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a0710))):Ot(_0x57e93d,'*Outdent:*\x20%0',Ot(_0x57e93d,'ELEMENT_LIST_ITEM')),_0x24d107={'type':'format','content':_0x1f7d60};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x379f53['multipleBlocks']&&(_0x1f7d60='*Merge:*\x20%0',_0x24d107={'type':'deletion','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))});}return _0x24d107;});}};function Yt(_0x4ca4bf){let _0x529b82=_0x4ca4bf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x529b82;){const _0x5bfb92=_0x529b82['getAttribute']('listItemId');if(!_0x5bfb92)return!0x1;if(_0x5bfb92==_0x4ca4bf['data']['newValue'])return'newValue';if(_0x5bfb92==_0x4ca4bf['data']['oldValue'])return'oldValue';_0x529b82=_0x529b82['previousSibling'];}return!0x1;}var Qt=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x395723=this['editor']['config']['get']('list.properties'),_0x6a33=this['editor']['plugins']['get']('TrackChangesEditing');_0x395723['styles']&&_0x6a33['enableDefaultAttributesIntegration']('listStyle'),_0x395723['reversed']&&_0x6a33['enableDefaultAttributesIntegration']('listReversed'),_0x395723['startIndex']&&_0x6a33['enableDefaultAttributesIntegration']('listStart');const _0x392e0e={'type':'format','content':''};_0x6a33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a8a49=this['editor']['locale'];_0x6a33['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x2a8a49,'FORMAT_LIST_REVERSED')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x27af53=>{const {data:_0x504b56}=_0x27af53;if(_0x504b56&&'listReversed'==_0x504b56['key'])return null==_0x504b56['newValue']||0x0==_0x504b56['newValue']&&null==_0x504b56['oldValue']?_0x392e0e:void 0x0;}),_0x6a33['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x2a8a49,'FORMAT_LIST_START')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x408db0=>{const {data:_0x1a4ca4}=_0x408db0;if(_0x1a4ca4&&'listStart'==_0x1a4ca4['key'])return null==_0x1a4ca4['newValue']||0x1==_0x1a4ca4['newValue']&&null==_0x1a4ca4['oldValue']?_0x392e0e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x789838=>{if(_0x789838['batch']['isUndo'])return!0x1;let _0x42160c=!0x1;const _0x1b87eb=_0x6a33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x176ee6=>{const _0x42c737=_0x6a33['_getAttributeKey'](_0x176ee6);return'listStart'==_0x42c737||'listReversed'==_0x42c737;});for(const _0x55be64 of _0x1b87eb){const _0x24a406=_0x55be64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x24a406&&'customNumbered'!=_0x24a406&&(_0x6a33['_findSuggestions'](_0x55be64['getFirstRange'](),'attribute')['find'](_0x102f8d=>'listType'==_0x6a33['_getAttributeKey'](_0x102f8d['suggestion']))||(_0x789838['removeMarker'](_0x55be64['getFirstMarker']()),_0x42160c=!0x0));}return _0x42160c;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3f9528){const _0x596e14=this['editor']['locale'],{data:_0x365901}=_0x3f9528,_0x263e5b={'type':'format','content':''};if(!_0x365901||'listStyle'!=_0x365901['key'])return;if(!_0x365901['oldValue'])return'default'==_0x365901['newValue']?_0x263e5b:{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};if(!_0x365901['newValue']){if('default'==_0x365901['oldValue'])return _0x263e5b;let _0x3cce72=_0x3f9528['head'];for(;_0x3cce72;){if(_0x3cce72['data']&&'listType'==_0x3cce72['data']['key']&&_0x3cce72['data']['newValue'])return _0x263e5b;_0x3cce72=_0x3cce72['next'];}return{'type':'format','content':''+Ot(_0x596e14,'*Remove\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['oldValue'])))};}if('default'!=_0x365901['newValue'])return{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};let _0x4ab4b2=_0x3f9528['head'];for(;_0x4ab4b2;){if(_0x4ab4b2['data']&&'listType'==_0x4ab4b2['data']['key']&&_0x4ab4b2['data']['newValue']&&_0x4ab4b2['data']['oldValue'])return _0x263e5b;_0x4ab4b2=_0x4ab4b2['next'];}return{'type':'format','content':Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,'ELEMENT_'+_0x3f9528['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x386e67=this['editor'],_0x4f1d23=_0x386e67['locale'];_0x386e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266437=>{if('formatBlock'!=_0x266437['type'])return;const {data:_0x1d2481}=_0x266437;if(!_0x1d2481)return;let _0x1b4c31,_0x558d57;switch(_0x1d2481['commandName']){case'listStyle':_0x1b4c31='*Change\x20to:*\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,Ot(_0x4f1d23,this['_getTranslationKeyForListStyle'](_0x1d2481['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b4c31=_0x1d2481['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31)};break;case'listStart':_0x1b4c31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,_0x1d2481['commandParams'][0x0]['startIndex'])};}return _0x558d57;});}_getTranslationKeyForListStyle(_0x2686e0){return'ELEMENT_'+(_0x3ebd56=_0x2686e0,Zt['includes'](_0x3ebd56)?'bulleted':Jt['includes'](_0x3ebd56)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x2686e0['toUpperCase']()['replace'](/-/g,'_');var _0x3ebd56;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x9bd549{afterInit(){const _0x2ef4b6=this['editor'];_0x2ef4b6['commands']['get']('emoji')&&_0x2ef4b6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x9bd549{static get requires(){return[Tt];}init(){const _0x5c1440=this['editor'],_0x128708=_0x5c1440['plugins']['get']('TrackChangesEditing'),_0x1e3954=_0x5c1440['commands']['get']('enter');_0x128708['enableCommand']('enter',()=>{_0x5c1440['model']['change'](_0x506e90=>{const _0x1b3b92=_0x5c1440['model']['document']['selection'],_0x7ed92d=_0x1b3b92['getFirstPosition'](),_0x5bdf8c=ot['fromRange'](_0x1b3b92['getFirstRange']());if(_0x1e3954['enterBlock'](_0x506e90)){const _0x5e84e9=_0x5c1440['model']['createPositionAt'](_0x7ed92d['parent']['nextSibling'],0x0),_0xd4a731=_0x506e90['createRange'](_0x7ed92d,_0x5e84e9);_0x128708['markInsertion'](_0xd4a731);}else _0x506e90['setSelection'](_0x506e90['createRange'](_0x5bdf8c['end']));_0x5bdf8c['detach'](),_0x1e3954['fire']('afterExecute',{'writer':_0x506e90});});});}},ne=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2ed9df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ed9df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2ed9df['enableCommand']('findNext'),_0x2ed9df['enableCommand']('findPrevious'),_0x2ed9df['enableCommand']('replace'),_0x2ed9df['enableCommand']('replaceAll');}['handleFindCommand'](_0x1c53a8,_0x550b0f,_0x35760c={}){const _0x2cbeb3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1c53a8(_0xcaef31=>{let _0x763459=('string'==typeof _0x550b0f?_0x2cbeb3['findByTextCallback'](_0x550b0f,_0x35760c):_0x550b0f)(_0xcaef31);Array['isArray'](_0x763459)&&(_0x763459={'results':_0x763459,'searchText':'string'==typeof _0x550b0f?_0x550b0f:''});const _0x2d1980=_0x763459['results']['filter'](_0x1c44da=>!0x1===this['_isInDeletionRange'](_0x1c44da,_0xcaef31['item']));return{..._0x763459,'results':_0x2d1980};},_0x35760c);}_isInDeletionRange(_0xc86b58,_0x157462){const _0x522cfe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['start']),this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['end']));for(const _0x567b42 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x522cfe['getIntersection'](_0x567b42['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x9bd549{afterInit(){const _0x298bba=this['editor']['locale'],_0x4558bf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2caa62,commandName:_0x2e4b2d}of ie)this['editor']['plugins']['has'](_0x2caa62)&&_0x4558bf['enableDefaultAttributesIntegration'](_0x2e4b2d);_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x298bba,'FORMAT_FONT_SIZE')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x298bba,'FORMAT_FONT_FAMILY')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x298bba,'FORMAT_FONT_COLOR')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x298bba,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b5c7c=this['editor'],_0x36e5d7=_0x5b5c7c['locale'];_0x5b5c7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15f2c3=>{const _0x5ce263=_0x36e5d7['t'];if('formatInline'!=_0x15f2c3['type'])return;const {data:_0x5d51c6}=_0x15f2c3;if(null!=_0x5d51c6){if('fontSize'==_0x5d51c6['commandName']){const _0x1ae0e6=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1ae0e6){const _0x1331dd=_0x5ce263(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43c26c=>_0x43c26c['model']==_0x1ae0e6)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20size:*\x20%0',_0x1331dd)};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d51c6['commandName']){const _0x4ef48c=_0x5d51c6['commandParams'][0x0]['value'];return _0x4ef48c?{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20family:*\x20%0',_0x4ef48c)}:{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d51c6['commandName']){const _0x1848d2=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1848d2){const _0x34f22e=_0x178ae1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c917e=>_0x5c917e['model']==_0x1848d2);let _0x1e2246=_0x1848d2,_0xe044b9='';return _0x34f22e&&(_0x1e2246=_0x34f22e['label'],_0xe044b9=_0x5ce263(_0x1e2246)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20color:*\x20%0',_0xe044b9)['trim'](),'color':{'value':_0x1848d2,'title':_0xe044b9||_0x1e2246}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d51c6['commandName']){const _0x541cf1=_0x5d51c6['commandParams'][0x0]['value'];if(_0x541cf1){const _0x7927a6=_0x178ae1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa7ca82=>_0xa7ca82['model']==_0x541cf1);let _0xb64d08=_0x541cf1,_0x5996f0='';return _0x7927a6&&(_0xb64d08=_0x7927a6['label'],_0x5996f0=_0x5ce263(_0xb64d08)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x5996f0)['trim'](),'color':{'value':_0x541cf1,'title':_0x5996f0||_0xb64d08}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x9bd549{afterInit(){const {plugins:_0x3467f4}=this['editor'];_0x3467f4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3467f4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53f8ef,plugins:_0x515a7d,commands:_0x22086d}=this['editor'],_0x32cacc=_0x515a7d['get']('TrackChangesEditing');_0x22086d['get']('footnotesStyle')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x22086d['get']('footnotesStart')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStart'),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x14fb71=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3a31e7,commands:_0x58bd74}=this['editor'];_0x58bd74['get']('insertFootnote')&&_0x14fb71['enableCommand']('insertFootnote'),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteRef',_0x28934e=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_REF',_0x28934e)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x204f97=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_DEFINITION',_0x204f97)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5009cd=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5009cd));}},oe=class extends _0x9bd549{afterInit(){const _0x2c09b6=this['editor'],_0xf288e=_0x2c09b6['plugins']['get']('TrackChangesEditing'),_0x5bb2be=_0x2c09b6['commands']['get']('copyFormat'),_0x3fae7d=_0x2c09b6['commands']['get']('pasteFormat');_0x5bb2be&&_0x3fae7d&&(_0xf288e['enableDefaultAttributesIntegration']('pasteFormat'),_0xf288e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x45d77a=this['editor'],_0x498c39=_0x45d77a['locale'];_0x45d77a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352348=>{if('formatBlock'!=_0x352348['type']&&'formatInline'!=_0x352348['type'])return;const {data:_0x127680}=_0x352348;if(_0x127680&&'pasteFormat'===_0x127680['commandName']){const _0x5884c0=[],_0x553ef0=_0x127680['commandParams'][0x0];for(const [_0x19c44f,_0x5a42cc]of Object['entries'](_0x553ef0))_0x5884c0['push'](ae(_0x45d77a,_0x19c44f,_0x5a42cc));return _0x5884c0['length']?{'type':'format','content':Ot(_0x498c39,'*Set\x20format\x20to:*\x20%0',_0x5884c0['join'](',\x20'))}:{'type':'format','content':Ot(_0x498c39,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x2d1b86,_0x34ecbd,_0x58b998){const _0xaa76c0=_0x2d1b86['locale']['t'],_0x31a0c0=_0x34ecbd['split'](/(?=[A-Z])/)['join']('\x20'),_0x2520a7=_0xaa76c0(_0x31a0c0['charAt'](0x0)['toUpperCase']()+_0x31a0c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58b998)return _0x2520a7;if('fontColor'===_0x34ecbd||'fontBackgroundColor'===_0x34ecbd){const _0x24258d=_0x178ae1(_0x2d1b86['config']['get']('fontColor.colors'))['find'](_0x12a8b7=>_0x12a8b7['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x24258d?_0xaa76c0(_0x24258d['label'])['toLowerCase']():_0x58b998)+')';}if('fontSize'===_0x34ecbd&&isNaN(parseFloat(_0x58b998))){const _0x253257=_0x2d1b86['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d1b86['config']['get']('fontSize.options'))['find'](_0x341b99=>_0x341b99['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x253257?_0xaa76c0(_0x253257['title'])['toLowerCase']():_0x58b998)+')';}return _0x2520a7+'\x20('+_0x58b998+')';}var ce=class extends _0x9bd549{afterInit(){const _0x48e910=this['editor'];if(!_0x48e910['plugins']['has']('GeneralHtmlSupport')||!_0x48e910['plugins']['has']('DataSchema'))return;const _0x2b429a=_0x48e910['plugins']['get']('TrackChangesEditing'),_0x444670=_0x48e910['plugins']['get']('GeneralHtmlSupport'),_0x22e477=_0x48e910['plugins']['get']('DataSchema'),_0x10de56=_0x48e910['locale'],_0x4d35cc=new Set(['htmlContent']);for(const _0x1e4e80 of _0x22e477['getDefinitionsForView'](/.*/,!0x1)){const _0x11a223=_0x1e4e80['view'],_0x396d88=_0x444670['getGhsAttributeNameForElement'](_0x11a223);_0x4d35cc['add'](_0x396d88),!_0x1e4e80['isInline']||_0x1e4e80['isObject']||'appliesToBlock'in _0x1e4e80&&_0x1e4e80['appliesToBlock']||_0x2b429a['descriptionFactory']['registerAttributeLabel'](_0x396d88,_0x11a223),_0x1e4e80['model']['startsWith']('html')&&_0x2b429a['descriptionFactory']['registerElementLabel'](_0x1e4e80['model'],_0x4db070=>Ot(_0x10de56,'ELEMENT_HTML_TAG',[_0x4db070,_0x11a223]));}_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x10de56,'FORMAT_RAW_HTML_CONTENT')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x10de56,'FORMAT_HTML_LIST_ITEM')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x10de56,'FORMAT_HTML_BULLETED_LIST')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x10de56,'FORMAT_HTML_NUMBERED_LIST')),_0x2b429a['descriptionFactory']['registerDescriptionCallback'](_0xf40aeb=>{if('attribute'!==_0xf40aeb['type'])return;const _0x467421=_0xf40aeb['data'];if(!_0x467421||!_0x4d35cc['has'](_0x467421['key']))return;if('htmlContent'===_0x467421['key'])return{'type':'format','content':Ot(_0x10de56,'*Change\x20%0\x20content*',Ot(_0x10de56,'ELEMENT_RAW_HTML'))};const {setItems:_0xf2d72f,removeItems:_0x4c3a54}=function(_0x2df38d,_0x12612d,_0x3a0f75){const _0x556ba0=[],_0x995f37=[],_0x5930a7=_0x2df38d['styles']??{},_0x3d01d3=_0x12612d['styles']??{};for(const _0x79f738 of new Set([...Object['keys'](_0x5930a7),...Object['keys'](_0x3d01d3)]))_0x5930a7[_0x79f738]!==_0x3d01d3[_0x79f738]&&(void 0x0===_0x3d01d3[_0x79f738]?_0x995f37['push'](_0x79f738):_0x556ba0['push'](_0x79f738+'\x20('+_0x3d01d3[_0x79f738]+')'));const _0x426ce4=Ot(_0x3a0f75,'FORMAT_HTML_CLASS'),_0x4ef6f2=new Set(_0x2df38d['classes']??[]),_0x367568=new Set(_0x12612d['classes']??[]),_0x45a922=[..._0x367568]['some'](_0x5ed7d7=>!_0x4ef6f2['has'](_0x5ed7d7)),_0x1716e0=[..._0x4ef6f2]['some'](_0x178764=>!_0x367568['has'](_0x178764));_0x45a922&&_0x556ba0['push'](_0x426ce4),_0x1716e0&&_0x995f37['push'](_0x426ce4);const _0x33bf5b=Ot(_0x3a0f75,'FORMAT_HTML_ATTRIBUTE'),_0x32a582=_0x2df38d['attributes']??{},_0x592d75=_0x12612d['attributes']??{};let _0x3d7dae=!0x1,_0x1ef294=!0x1;for(const _0x18f664 of new Set([...Object['keys'](_0x32a582),...Object['keys'](_0x592d75)]))_0x32a582[_0x18f664]!==_0x592d75[_0x18f664]&&(void 0x0===_0x592d75[_0x18f664]?_0x1ef294=!0x0:_0x3d7dae=!0x0);return _0x3d7dae&&_0x556ba0['push'](_0x33bf5b),_0x1ef294&&_0x995f37['push'](_0x33bf5b),{'setItems':_0x556ba0,'removeItems':_0x995f37};}(_0x467421['oldValue']??{},_0x467421['newValue']??{},_0x10de56);if(!_0xf2d72f['length']&&!_0x4c3a54['length'])return;const _0xcded86=[];return _0xf2d72f['length']&&_0xcded86['push'](Ot(_0x10de56,'*Set\x20format:*\x20%0',_0xf2d72f['join'](',\x20'))),_0x4c3a54['length']&&_0xcded86['push'](Ot(_0x10de56,'*Remove\x20format:*\x20%0',_0x4c3a54['join'](',\x20'))),{'type':'format','content':_0xcded86['join']('\x0a')};});}},le=class extends _0x9bd549{_headingOptions;afterInit(){const _0x5573a6=this['editor'];if(!_0x5573a6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5573a6['config']['get']('heading.options');const _0x3d73e0=_0x5573a6['locale'],_0x5722a3=_0x5573a6['plugins']['get']('TrackChangesEditing');_0x5722a3['enableDefaultAttributesIntegration']('heading');for(const _0x1fc503 of this['_headingOptions'])'paragraph'!=_0x1fc503['model']&&_0x5722a3['descriptionFactory']['registerElementLabel'](_0x1fc503['model'],_0x2302dd=>{const _0x547e97=this['_getHeadingLevel'](_0x1fc503['model']);return null!==_0x547e97?_0x3d19ab(_0x2302dd,_0x547e97):_0x309514(_0x2302dd,_0x1fc503['title']);});function _0x3d19ab(_0x5986e6,_0x5f0f77){return Ot(_0x3d73e0,'ELEMENT_HEADING',[_0x5986e6,_0x5f0f77]);}function _0x309514(_0x38ca67,_0x357d61){return Ot(_0x3d73e0,'ELEMENT_HEADING_CUSTOM',[_0x38ca67,_0x357d61]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1958d4=this['editor'],_0x4d8a03=_0x1958d4['locale'];function _0x40190a(_0x61604e,_0x6688e){return Ot(_0x4d8a03,'ELEMENT_HEADING_CUSTOM',[_0x61604e,_0x6688e]);}_0x1958d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e80d=>{if('formatBlock'!=_0x46e80d['type'])return;const {data:_0x408721}=_0x46e80d;if(_0x408721&&'heading'==_0x408721['commandName']){const _0x5fd74c=_0x408721['commandParams'][0x0]['value'],_0x5f48b0=this['_getHeadingLevel'](_0x5fd74c);if(null!==_0x5f48b0)return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',(_0x29e476=0x1,_0x3224c9=_0x5f48b0,Ot(_0x4d8a03,'ELEMENT_HEADING',[_0x29e476,_0x3224c9])))};const _0x715654=this['_headingOptions']['find'](_0xd7b24=>_0xd7b24['model']===_0x5fd74c)['title'];return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',_0x40190a(0x1,_0x715654))};}var _0x29e476,_0x3224c9;});}_getHeadingLevel(_0x5caf5b){const _0x962db4=_0x5caf5b['match'](/^heading(\d+)/);if(_0x962db4)return _0x962db4[0x1];const _0x2d19c1=this['_headingOptions']?.['find'](_0x1b7ec2=>_0x1b7ec2['model']==_0x5caf5b);if(_0x2d19c1&&_0x2d19c1['view']){const _0x5d650c=_0x2d19c1['view'],_0x5e2a1d=(_0x5d650c['name']??_0x5d650c)['match'](/^h(\d+)/);if(_0x5e2a1d)return _0x5e2a1d[0x1];}return null;}},ue=class extends _0x9bd549{afterInit(){const _0x3cee0a=this['editor'];if(!_0x3cee0a['plugins']['has']('HighlightEditing'))return;const _0x2f59f1=_0x3cee0a['plugins']['get']('TrackChangesEditing'),_0x2a706b=_0x3cee0a['locale'];_0x2f59f1['enableDefaultAttributesIntegration']('highlight'),_0x2f59f1['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x2a706b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x457f0a=this['editor'],_0x2a3b38=_0x457f0a['locale'];_0x457f0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ced25=>{if('formatInline'!=_0x3ced25['type'])return;const {data:_0x4e7a16}=_0x3ced25;if(_0x4e7a16&&'highlight'==_0x4e7a16['commandName']){const _0x5493c8=_0x2a3b38['t'],_0x21ba44=_0x4e7a16['commandParams'][0x0]['value'];if(_0x21ba44){const _0x3e659d=_0x457f0a['config']['get']('highlight.options')['find'](_0x43937d=>_0x43937d['model']==_0x21ba44),_0x154029=_0x5493c8(_0x3e659d['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2a3b38,'*Set\x20highlight:*\x20%0',_0x154029),'color':{'value':_0x3e659d['color'],'title':_0x3e659d['title']}};}return{'type':'format','content':Ot(_0x2a3b38,'*Remove\x20highlight*',Ot(_0x2a3b38,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x9bd549{afterInit(){const _0x2891ec=this['editor'];if(!_0x2891ec['plugins']['has']('HorizontalLineEditing'))return;_0x2891ec['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e4e7d=_0x2891ec['plugins']['get']('TrackChangesEditing'),_0x1ad283=_0x2891ec['locale'];_0x1e4e7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x574969=>Ot(_0x1ad283,'ELEMENT_HORIZONTAL_LINE',_0x574969));}},he=class extends _0x9bd549{afterInit(){const _0x5c3e64=this['editor'];if(!_0x5c3e64['plugins']['has']('HtmlEmbed'))return;const _0x3af3a7=_0x5c3e64['plugins']['get']('TrackChangesEditing'),_0x44405a=_0x5c3e64['locale'];_0x3af3a7['descriptionFactory']['registerElementLabel']('rawHtml',_0xaded1a=>Ot(_0x44405a,'ELEMENT_HTML_EMBED',_0xaded1a)),_0x3af3a7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3af3a7['descriptionFactory']['registerDescriptionCallback'](_0x22a2b2=>{if('attribute'!=_0x22a2b2['type'])return;const {data:_0x3facdf}=_0x22a2b2;if(_0x3facdf&&'value'==_0x3facdf['key']&&_0x22a2b2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1af8c3=Ot(_0x44405a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x44405a,'*Change\x20%0\x20content*',_0x1af8c3)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xafd541=this['editor'],_0x213f3e=_0xafd541['locale'];_0xafd541['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b57d2=>{if('formatBlock'!=_0x1b57d2['type'])return;const {data:_0x524413}=_0x1b57d2;if(_0x524413&&'htmlEmbed'==_0x524413['commandName']){const _0x290c13=Ot(_0x213f3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x213f3e,'*Change\x20%0\x20content*',_0x290c13)};}});}},ge=class extends _0x9bd549{afterInit(){const _0x45b027=this['editor'];if(!_0x45b027['plugins']['has']('ImageEditing'))return;const _0x48a2aa=_0x45b027['plugins']['get']('TrackChangesEditing'),_0x187b67=_0x45b027['plugins']['get']('ImageUtils'),_0x165a8d=_0x45b027['locale'];_0x48a2aa['enableCommand']('insertImage'),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageBlock',_0x5058a1=>Ot(_0x165a8d,'ELEMENT_IMAGE',_0x5058a1)),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageInline',_0x1a1c8c=>Ot(_0x165a8d,'ELEMENT_INLINE_IMAGE',_0x1a1c8c)),_0x48a2aa['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x165a8d,'ELEMENT_CAPTION')),_0x45b027['plugins']['has']('ImageUploadEditing')&&_0x48a2aa['enableCommand']('uploadImage'),_0x45b027['plugins']['has']('ImageBlockEditing')&&_0x45b027['plugins']['has']('ImageInlineEditing')&&(_0x48a2aa['enableCommand']('imageTypeInline',(_0x1a1492,_0x4627a8)=>{const _0xa368a2=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']);_0x45b027['model']['change'](()=>{_0x48a2aa['markBlockFormat'](_0xa368a2,{'commandName':'imageTypeInline','commandParams':[_0x4627a8]},[],'convertBlockImageToInline');});}),_0x48a2aa['enableCommand']('imageTypeBlock',(_0x7f9895,_0x3d985e)=>{_0x45b027['model']['change'](_0x426fc0=>{let _0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x4ea15a=rt['fromPosition'](_0x2cdeec['start'],'toPrevious'),_0xe3902e=rt['fromPosition'](_0x2cdeec['end'],'toNext');_0x48a2aa['forceDefaultExecution'](()=>_0x7f9895(_0x3d985e)),_0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x57c8e2=_0x426fc0['createRange'](_0x4ea15a,_0xe3902e);_0x4ea15a['detach'](),_0xe3902e['detach'](),_0x48a2aa['markBlockFormat'](_0x23cf1e,{'commandName':'imageTypeInline','commandParams':[_0x3d985e]},[],'convertInlineImageToBlock'),_0x57c8e2['start']['isBefore'](_0x2cdeec['start'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x57c8e2['start'],_0x2cdeec['start']),'convertInlineImageToBlock'),_0x2cdeec['end']['isBefore'](_0x57c8e2['end'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x2cdeec['end'],_0x57c8e2['end']),'convertInlineImageToBlock');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1bebbf])=>{const _0x524343=_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd62793=_0x1bebbf['start'],_0x4388b8=_0x1bebbf['end'];const _0x44016f=_0x45b027['model']['schema']['getNearestSelectionRange'](_0xd62793,'backward'),_0x4c6246=_0x45b027['model']['schema']['getNearestSelectionRange'](_0x4388b8,'forward');_0x44016f['isCollapsed']&&(_0xd62793=_0x44016f['start']),_0x4c6246['isCollapsed']&&(_0x4388b8=_0x4c6246['end']),_0x524343([_0x45b027['model']['createRange'](_0xd62793,_0x4388b8)]);}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf29745),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf29745)),_0x45b027['plugins']['has']('ImageCaptionEditing')&&(_0x48a2aa['enableCommand']('toggleImageCaption',(_0x251e16,_0x50ef60)=>{const _0x19911a=_0x45b027['plugins']['get']('ImageCaptionUtils');let _0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5);_0x45b027['model']['change'](()=>{if(_0x4fe56a)return void _0x48a2aa['markDeletion'](_0x45b027['model']['createRangeOn'](_0x4fe56a));const _0x5df2a1=_0x187b67['isBlockImage'](_0x19b9e5);_0x251e16(_0x50ef60),_0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5),_0x48a2aa['markInsertion'](_0x45b027['model']['createRangeOn'](_0x4fe56a),_0x5df2a1?null:'imageCaption');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf29745));const _0x2c7b5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x55b00c(_0x1a3891,_0x14f15f){const _0xb4deb6=_0x2c7b5d['findIndex'](({type:_0x1e4125,subType:_0x5d99df})=>_0x1a3891['type']==_0x1e4125&&_0x1a3891['subType']==_0x5d99df),_0x3f3a7e=_0x2c7b5d['findIndex'](({type:_0x4f62c8,subType:_0x1c6813})=>_0x14f15f['type']==_0x4f62c8&&_0x14f15f['subType']==_0x1c6813);if(_0xb4deb6<0x0||_0x3f3a7e<0x0)return!0x1;const _0x70b34e=_0x1a3891['getFirstRange'](),_0x4f67bc=_0x14f15f['getFirstRange']();if((0x0==_0xb4deb6||0x1==_0xb4deb6)&&0x2==_0x3f3a7e&&_0x70b34e['isIntersecting'](_0x4f67bc))return!0x0;if(0x2==_0xb4deb6&&0x3==_0x3f3a7e){const _0x43ad43=_0x48a2aa['_findSuggestions'](_0x70b34e,'insertion')['filter'](({suggestion:_0x43f9ae,meta:_0x356464})=>_0x356464['isOwn']&&'convertInlineImageToBlock'==_0x43f9ae['subType']);if(_0x43ad43['length']>0x1&&_0x4f67bc['end']['isEqual'](_0x70b34e['start']))return!0x0;if(0x1==_0x43ad43['length']&&(_0x70b34e['start']['isEqual'](_0x4f67bc['end'])||_0x70b34e['end']['isEqual'](_0x4f67bc['start'])))return!0x0;}if(0x3==_0xb4deb6&&0x3==_0x3f3a7e&&_0x70b34e['start']['isBefore'](_0x4f67bc['start'])){const _0x433a31=_0x70b34e['end']['nodeAfter'],_0x3a07a5=_0x4f67bc['start']['nodeBefore'];return _0x187b67['isBlockImage'](_0x433a31)&&_0x433a31===_0x3a07a5;}return!0x1;}function _0xf29745(_0xcc670c,_0x26539c){return _0x55b00c(_0xcc670c,_0x26539c)?[_0xcc670c,_0x26539c]:_0x55b00c(_0x26539c,_0xcc670c)?[_0x26539c,_0xcc670c]:null;}_0x45b027['plugins']['has']('ImageResize')&&(_0x48a2aa['enableDefaultAttributesIntegration']('resizeImage'),_0x48a2aa['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x165a8d,'FORMAT_IMAGE_SIZE'))),_0x45b027['plugins']['has']('ImageTextAlternativeEditing')&&_0x48a2aa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45b027['plugins']['has']('PictureEditing')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x227408=>{if('attribute'!=_0x227408['type'])return;const {data:_0x17120d}=_0x227408;return _0x17120d&&'sources'==_0x17120d['key']?{'type':'format','content':''}:void 0x0;}),_0x45b027['plugins']['has']('ImageSizeAttributes')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x4eeffa=>{if('attribute'!=_0x4eeffa['type'])return;const {data:_0x3ca58e}=_0x4eeffa;return!_0x3ca58e||'width'!=_0x3ca58e['key']&&'height'!=_0x3ca58e['key']?void 0x0:{'type':'format','content':''};}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x3e86a0=>{if(_0x2c7b5d['find'](({type:_0x509874,subType:_0xbf7eb4})=>_0x3e86a0['type']==_0x509874&&_0x3e86a0['subType']==_0xbf7eb4))return _0x3e86a0['previous']?{}:void 0x0;}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x305b8d=>{if('insertion'==_0x305b8d['type']||'deletion'==_0x305b8d['type']){const _0x3f35a0=_0x305b8d['getContainedElement']();if(_0x3f35a0&&_0x3f35a0['is']('element','caption'))return{'type':'insertion'==_0x305b8d['type']?'addObject':'removeObject','element':_0x3f35a0,'quantity':0x1};}}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x52670b=>'formatBlock'==_0x52670b['type']&&'convertInlineImageToBlock'==_0x52670b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52670b['type']&&'convertBlockImageToInline'==_0x52670b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x7e2172=>{if('attribute'!=_0x7e2172['type'])return;const {data:_0x57a32f}=_0x7e2172;if(!_0x57a32f||'alt'!=_0x57a32f['key'])return;const _0x49aa33=_0x57a32f['newValue'];return _0x49aa33?{'type':'format','content':Ot(_0x165a8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49aa33+'\x22')}:{'type':'format','content':Ot(_0x165a8d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5db348=this['editor'],_0x10706b=_0x5db348['locale'];_0x5db348['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a968c=>{if('formatBlock'!=_0x1a968c['type']&&'formatInline'!=_0x1a968c['type'])return;const {data:_0x6ece95}=_0x1a968c;if(_0x6ece95){if('imageTextAlternative'==_0x6ece95['commandName']){const _0x2e16f5=_0x6ece95['commandParams'][0x0]['newValue'];return _0x2e16f5?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e16f5+'\x22')}:{'type':'format','content':Ot(_0x10706b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6ece95['commandName']){const _0x1841ea=_0x6ece95['commandParams'][0x0]['width'];return _0x1841ea?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20width:*\x20%0',_0x1841ea)}:{'type':'format','content':Ot(_0x10706b,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b5393=this['editor']['locale'],_0xa55ae7=this['editor']['plugins']['get']('TrackChangesEditing');_0xa55ae7['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa55ae7['descriptionFactory']['registerDescriptionCallback'](_0xecc139=>{if('attribute'!=_0xecc139['type'])return;const {data:_0x34aa37}=_0xecc139;return _0x34aa37&&'src'==_0x34aa37['key']?_0x34aa37['newValue']&&_0x34aa37['oldValue']?{'type':'format','content':Ot(_0x3b5393,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4d20f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x171dfe=this['editor'],_0x2bc286=_0x171dfe['locale'];_0x171dfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x398ee5=>{if('formatBlock'!=_0x398ee5['type']&&'formatInline'!=_0x398ee5['type'])return;const {data:_0x40b71d}=_0x398ee5;return _0x40b71d&&'replaceImageSource'==_0x40b71d['commandName']?{'type':'format','content':Ot(_0x2bc286,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x9bd549{afterInit(){const _0x35c326=this['editor'];if(!_0x35c326['plugins']['has']('ImageStyleEditing'))return;const _0x17404f=_0x35c326['plugins']['get']('TrackChangesEditing'),_0x5e4e43=_0x35c326['plugins']['get']('ImageUtils'),_0xb55065={};_0x17404f['enableCommand']('imageStyle',(_0x428ec4,_0x28396a)=>{const _0xb4b54f=_0x35c326['plugins']['get']('Users')['me'],_0x203217=_0x35c326['commands']['get']('imageStyle');let _0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x2e2a85=_0x203217['value'];if(_0x2e2a85==_0x28396a['value'])return;if(_0x28396a['value']&&_0x5e4e43['isInlineImage'](_0x491306)&&!_0x203217['isStyleEnabled'](_0x28396a['value']))return;const _0x46662a={'commandName':'imageStyle','commandParams':[_0x28396a],'formatGroupId':_0x2e6a13()};_0x35c326['model']['change'](()=>{if(_0x17404f['getSuggestions']()['filter'](_0x478cf6=>_0x478cf6['isInContent']&&_0xb4b54f==_0x478cf6['author']&&('formatBlock'==_0x478cf6['type']||'formatInline'==_0x478cf6['type'])&&('imageStylePreApply'==_0x478cf6['subType']||'imageStylePostApply'==_0x478cf6['subType'])&&_0x478cf6['getFirstRange']()['isEqual'](_0x310721))['forEach'](_0x3aebb2=>_0x17404f['discardSuggestion'](_0x3aebb2['head'])),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x203217['refresh'](),_0x35c326['commands']['get']('imageTypeInline')['refresh'](),_0x35c326['commands']['get']('imageTypeBlock')['refresh'](),_0x2e2a85=_0x203217['value'],_0x2e2a85!=_0x28396a['value'])return _0x5e4e43['isInlineImage'](_0x491306)&&_0x203217['shouldConvertImageType'](_0x28396a['value'],_0x491306)?(_0x428ec4({..._0x28396a,'setImageSizes':!0x1}),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),void _0x17404f['markBlockFormat'](_0x491306,{..._0x46662a,'commandReversedParams':[{'value':_0x2e2a85||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e4e43['isBlockImage'](_0x491306)?_0x17404f['markBlockFormat'](_0x491306,_0x46662a,[],'imageStylePostApply'):_0x17404f['markInlineFormat'](_0x310721,_0x46662a,'imageStylePostApply'));});});for(const _0x709b20 of _0x35c326['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xb55065[_0x709b20['name']]=_0x709b20['title']['toLowerCase']();_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f2808])=>{_0x5e4e43['setImageNaturalSizeAttributes'](_0x4f2808['getContainedElement']());}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c0f69,_0x3bfb72)=>{_0x17404f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c0f69,{'commandName':_0x3bfb72['commandName'],'commandParams':_0x3bfb72['commandReversedParams']});}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6a8c73,_0x3f4d63){return _0x43b316(_0x6a8c73,_0x3f4d63)?[_0x6a8c73,_0x3f4d63]:_0x43b316(_0x3f4d63,_0x6a8c73)?[_0x3f4d63,_0x6a8c73]:null;});const _0x59fc3c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43b316(_0x57603b,_0x3007a2){const _0x5352e7=_0x59fc3c['findIndex'](({type:_0x5c21f2,subType:_0xae2411})=>_0x57603b['type']==_0x5c21f2&&_0x57603b['subType']==_0xae2411),_0x2b8ef7=_0x59fc3c['findIndex'](({type:_0x1e0a97,subType:_0xeef976})=>_0x3007a2['type']==_0x1e0a97&&_0x3007a2['subType']==_0xeef976);if(_0x5352e7<0x0||_0x2b8ef7<0x0)return!0x1;const _0x2e6e93=_0x57603b['getFirstRange'](),_0x20bdaa=_0x3007a2['getFirstRange']();if((0x0==_0x5352e7||0x1==_0x5352e7)&&0x2==_0x2b8ef7&&_0x2e6e93['isIntersecting'](_0x20bdaa))return!0x0;if(0x2==_0x5352e7&&0x3==_0x2b8ef7){const _0x364642=_0x17404f['_findSuggestions'](_0x2e6e93,'insertion')['filter'](({suggestion:_0x1ab3e0,meta:_0x2558a7})=>_0x2558a7['isOwn']&&'convertInlineImageToBlock'==_0x1ab3e0['subType']);if(_0x364642['length']>0x1&&_0x20bdaa['end']['isEqual'](_0x2e6e93['start']))return!0x0;if(0x1==_0x364642['length']&&(_0x2e6e93['start']['isEqual'](_0x20bdaa['end'])||_0x2e6e93['end']['isEqual'](_0x20bdaa['start'])))return!0x0;}if(0x3==_0x5352e7&&0x3==_0x2b8ef7&&_0x2e6e93['start']['isBefore'](_0x20bdaa['start'])){const _0x2fcd37=_0x2e6e93['end']['nodeAfter'],_0x231e24=_0x20bdaa['start']['nodeBefore'];return _0x5e4e43['isBlockImage'](_0x2fcd37)&&_0x2fcd37===_0x231e24;}return!0x1;}_0x35c326['model']['document']['registerPostFixer'](()=>{let _0x4a8be6=!0x1;const _0x253653=Array['from'](_0x35c326['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b7406,data:_0x2c299c}of _0x253653){const {group:_0x259d7f,type:_0x5b1892,subType:_0x149bf8,id:_0x261c7b}=et(_0x2b7406);if('suggestion'==_0x259d7f&&_0x17404f['hasSuggestion'](_0x261c7b)){if('formatBlock'==_0x5b1892&&('imageStylePreApply'==_0x149bf8||'imageStylePostApply'==_0x149bf8)){const _0x50c241=_0x17404f['getSuggestion'](_0x261c7b);if(_0x2c299c['newRange']){const _0x3a8aea=_0x50c241['getFirstRange']()['getContainedElement']();if(_0x5e4e43['isBlockImage'](_0x3a8aea))continue;_0x17404f['discardSuggestion'](_0x50c241),_0x4a8be6=!0x0;}}if('insertion'==_0x5b1892&&'imageCaption'==_0x149bf8&&!_0x2c299c['newRange']){const _0x304fa0=_0x17404f['getSuggestion'](_0x261c7b);_0x304fa0['next']&&_0x304fa0['next']['isInContent']&&(_0x17404f['discardSuggestion'](_0x304fa0['next']),_0x4a8be6=!0x0);}}}return _0x4a8be6;}),this['_registerLegacyDescription'](_0xb55065);}_registerLegacyDescription(_0x4169fa){const _0x42afc6=this['editor'],_0x11d345=_0x42afc6['locale'];_0x42afc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a1bb=>{if('formatBlock'!=_0x47a1bb['type']&&'formatInline'!=_0x47a1bb['type'])return;const {data:_0x477581}=_0x47a1bb;if(!_0x477581||'imageStyle'!=_0x477581['commandName'])return;const _0x49af10=_0x477581['commandParams'][0x0]['value'];return _0x1a3e17('side'===_0x49af10?Ot(_0x11d345,'FORMAT_SIDE_IMAGE'):_0x4169fa[_0x49af10]||_0x49af10);function _0x1a3e17(_0x14820e){return{'type':'format','content':Ot(_0x11d345,'*Format:*\x20%0',_0x14820e)};}});}},Ee=class extends _0x9bd549{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x193520){super(_0x193520),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x376fb4=this['editor'],_0x29f0e1=_0x376fb4['commands']['get']('importWord'),_0x39e544=_0x376fb4['commands']['get']('trackChanges');_0x29f0e1&&(_0x29f0e1['on']('execute',(_0x4ed729,[,_0x766790])=>{this['_trackChangesValueDuringImport']=_0x39e544['value'],_0x766790['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29f0e1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29f0e1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x39e544['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x376fb4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x53bb6e,_0x2701fd){const {suggestions:_0x7908fa}=_0x2701fd,_0x21ab46=this['editor']['commands']['get']('trackChanges'),_0x53d928=_0x21ab46['value'];this['_trackChangesValueDuringImport']!==_0x53d928&&(_0x21ab46['execute'](),this['_trackChangesExecuted']=!0x0),_0x7908fa&&_0x7908fa['forEach'](({id:_0x5a748d,type:_0x3a759c,author:_0x525b32,created_at:_0x16f1b6})=>{const _0x1629fd={'id':_0x5a748d,'type':_0x3a759c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x525b32,'createdAt':_0x16f1b6?new Date(_0x16f1b6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1629fd);});}},Te=class extends _0x9bd549{afterInit(){const _0x3189d5=this['editor'],_0x28c1e6=_0x3189d5['plugins']['get']('TrackChangesEditing');if(_0x3189d5['plugins']['has']('IndentEditing')&&(_0x28c1e6['enableCommand']('indent'),_0x28c1e6['enableCommand']('outdent')),_0x3189d5['plugins']['has']('IndentBlock')){for(const _0x4e1c42 of['indentBlock','outdentBlock'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4e1c42);if(_0x3189d5['plugins']['has']('ListEditing')){for(const _0x4ce902 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4ce902);}}const _0x36feaa=_0x3189d5['locale'];_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x36feaa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1a6222=this['editor'],_0x526413=_0x1a6222['locale'],_0x5be367=_0x1a6222['plugins']['get']('TrackChangesEditing');_0x5be367['descriptionFactory']['registerDescriptionCallback'](_0x2bf52e=>{if('formatBlock'!=_0x2bf52e['type'])return;const {data:_0x4a873c}=_0x2bf52e;if(!_0x4a873c)return;if('indentBlock'!=_0x4a873c['commandName']&&'outdentBlock'!=_0x4a873c['commandName'])return;const _0x4f1ce4=_0x2bf52e['getItems']()[0x0],_0x17f1cf=_0x5be367['descriptionFactory']['getItemLabel'](_0x4f1ce4);return'indentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Indent:*\x20%0',_0x17f1cf)}:'outdentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Outdent:*\x20%0',_0x17f1cf)}:void 0x0;});}},_e=class extends _0x9bd549{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x9bd549{afterInit(){const _0x2d5aa7=this['editor'];if(!_0x2d5aa7['plugins']['has']('LinkEditing'))return;const _0x1bdc1e=_0x2d5aa7['plugins']['get']('TrackChangesEditing'),_0x4dd563=_0x2d5aa7['commands']['get']('link');_0x1bdc1e['enableDefaultAttributesIntegration']('link'),_0x1bdc1e['enableDefaultAttributesIntegration']('unlink');for(const _0x53b6b7 of _0x4dd563['manualDecorators'])_0x1bdc1e['descriptionFactory']['registerAttributeLabel'](_0x53b6b7['id'],'link\x20('+_0x53b6b7['label']['toLowerCase']()+')');_0x1bdc1e['descriptionFactory']['registerDescriptionCallback'](_0x498e0e=>{if('attribute'!=_0x498e0e['type'])return;const {data:_0x4746f1}=_0x498e0e;if(!_0x4746f1||'linkHref'!=_0x4746f1['key'])return;const _0x59389e=_0x4746f1['newValue'],_0x2d5be3=_0x2d5aa7['locale'];return{'type':'format','content':null==_0x59389e?Ot(_0x2d5be3,'*Remove\x20link*'):Ot(_0x2d5be3,'*Set\x20link:*\x20%0','\x22'+_0x59389e+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2844f5=this['editor'],_0x40daa7=_0x2844f5['locale'];_0x2844f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b6a09=>{if('formatInline'!=_0x5b6a09['type'])return;const {data:_0x3564d0}=_0x5b6a09;if(_0x3564d0){if('link'==_0x3564d0['commandName']){const _0x298156=_0x3564d0['commandParams'][0x0];return{'type':'format','content':Ot(_0x40daa7,'*Set\x20link:*\x20%0','\x22'+_0x298156+'\x22')};}return'unlink'==_0x3564d0['commandName']?{'type':'format','content':Ot(_0x40daa7,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x9bd549{afterInit(){const _0x42a93c=this['editor'],_0x52a696=_0x42a93c['locale'];if(!_0x42a93c['plugins']['has']('LegacyListEditing'))return;const _0x1d8c40=_0x42a93c['plugins']['get']('TrackChangesEditing'),_0x54e0cd=_0x42a93c['plugins']['has']('LegacyTodoListEditing');function _0xd9669d(_0x2708f6){return()=>{const _0x1ba9bf=_0x42a93c['model']['document']['selection'],_0x3a3117=_0x42a93c['commands']['get'](_0x2708f6);if(_0x3a3117['value'])return void _0x42a93c['execute']('paragraph',{});const _0x17fad1=_0x2708f6['slice'](0x0,-0x4),_0x2762b3=function(_0x21d31a,_0x443065,_0x4af08f){let _0x226999=Array['from'](_0x21d31a)['filter'](_0x6f28e3=>function(_0x470bf2,_0xf790f4){return _0xf790f4['checkChild'](_0x470bf2['parent'],'listItem')&&!_0xf790f4['isObject'](_0x470bf2);}(_0x6f28e3,_0x4af08f));_0x226999=_0x226999['filter'](_0xf41e25=>!_0xf41e25['is']('element','listItem')||_0xf41e25['getAttribute']('listType')!=_0x443065);const _0x5016c1=new Set();for(const _0x8c7ae4 of _0x226999)_0x8c7ae4['is']('element','listItem')?_0x5016c1['add'](Ie(_0x8c7ae4)):_0x5016c1['add'](_0x8c7ae4);return Array['from'](_0x5016c1);}(_0x1ba9bf['getSelectedBlocks'](),_0x17fad1,_0x42a93c['model']['schema']);_0x42a93c['model']['change'](()=>{for(const _0x4a2e9f of _0x2762b3)_0x1d8c40['markBlockFormat'](_0x4a2e9f,{'commandName':_0x2708f6,'commandParams':[{'forceValue':!_0x3a3117['value']}],'formatGroupId':'blockName'},Ae(_0x4a2e9f));});};}function _0x3d4a7c(_0x1afa60){return()=>{const _0x1e244f=function(_0x5969cb){let _0xd2efa8=Array['from'](_0x5969cb);const _0x41aeca=_0xd2efa8['findIndex'](_0x3ee4e8=>'listItem'!=_0x3ee4e8['name']);return _0x41aeca>-0x1&&(_0xd2efa8=_0xd2efa8['slice'](0x0,_0x41aeca)),_0xd2efa8;}(_0x42a93c['model']['document']['selection']['getSelectedBlocks']()),_0x54b7c9=_0x42a93c['model']['createRange'](_0x42a93c['model']['createPositionAt'](_0x1e244f[0x0],'before'),_0x42a93c['model']['createPositionAt'](_0x1e244f[_0x1e244f['length']-0x1],'end'));_0x42a93c['model']['change'](()=>{_0x1d8c40['markBlockFormat'](_0x54b7c9,{'commandName':_0x1afa60,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f7ea9){const _0x28cfab=new Set();for(const _0x31c9a2 of _0x2f7ea9){let _0x131021=_0x31c9a2['nextSibling'];for(;_0x131021&&_0x131021['getAttribute']('listIndent')>_0x31c9a2['getAttribute']('listIndent');)_0x28cfab['add'](_0x131021),_0x131021=_0x131021['nextSibling'];}return Array['from'](_0x28cfab);}(_0x1e244f));});};}_0x1d8c40['enableCommand']('numberedList',_0xd9669d('numberedList')),_0x1d8c40['enableCommand']('bulletedList',_0xd9669d('bulletedList')),_0x54e0cd&&_0x1d8c40['enableCommand']('todoList',_0xd9669d('todoList')),_0x1d8c40['enableCommand']('indentList',_0x3d4a7c('indentList')),_0x1d8c40['enableCommand']('outdentList',_0x3d4a7c('outdentList')),_0x54e0cd&&_0x1d8c40['enableCommand']('checkTodoList',()=>{const _0x484283=_0x42a93c['commands']['get']('checkTodoList'),_0xad1166=Array['from'](_0x484283['_selectedElements']);_0xad1166['filter'](_0x550d58=>_0x550d58['getAttribute']('todoListChecked')!=_0x484283['value']),_0x42a93c['model']['change'](()=>{for(const _0x1676e2 of _0xad1166)_0x1d8c40['markBlockFormat'](_0x1676e2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x484283['value']}]});});}),_0x1d8c40['descriptionFactory']['registerElementLabel']('listItem',_0x29b203=>Ot(_0x52a696,'ELEMENT_LIST_ITEM',_0x29b203)),_0x1d8c40['descriptionFactory']['registerDescriptionCallback'](_0x48f591=>{if('formatBlock'!=_0x48f591['type']&&'formatInline'!=_0x48f591['type'])return;const {data:_0x35e2c8}=_0x48f591;if(_0x35e2c8){if('numberedList'==_0x35e2c8['commandName']||'bulletedList'==_0x35e2c8['commandName']||'todoList'==_0x35e2c8['commandName'])switch(_0x35e2c8['commandName']['replace']('List','')){case'bulleted':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Indent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Outdent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35e2c8['commandName'])return _0x35e2c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x52a696,'*Check\x20item*')}:{'type':'format','content':Ot(_0x52a696,'*Uncheck\x20item*')};}function _0x3ccb00(_0x2dc534){return{'type':'format','content':Ot(_0x52a696,'*Change\x20to:*\x20%0',_0x2dc534)};}});}};function Ie(_0x55f8f3){const _0x12863e=_0x55f8f3['getAttribute']('listIndent');if(0x0==_0x12863e)return _0x55f8f3;let _0x24c725=_0x55f8f3;for(;_0x55f8f3['previousSibling']&&_0x55f8f3['previousSibling']['is']('element','listItem');){const _0x52cd93=_0x55f8f3['previousSibling']['getAttribute']('listIndent');if(_0x52cd93==_0x12863e)_0x24c725=_0x55f8f3['previousSibling'];else{if(_0x52cd93<_0x12863e)break;}_0x55f8f3=_0x55f8f3['previousSibling'];}return _0x24c725;}function Ae(_0x5f47ef){const _0x56a0be=[];if(_0x5f47ef['is']('element','listItem')&&_0x5f47ef['getAttribute']('listIndent')>0x0){let _0x3c1391=_0x5f47ef['nextSibling'];for(;_0x3c1391&&'listItem'==_0x3c1391['name']&&_0x3c1391['getAttribute']('listIndent')==_0x5f47ef['getAttribute']('listIndent');)_0x56a0be['push'](_0x3c1391),_0x3c1391=_0x3c1391['nextSibling'];}return _0x56a0be;}var be=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39b28c=this['editor']['config']['get']('list.properties'),_0x5ef98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b28c['styles']&&_0x5ef98a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39b28c['reversed']&&_0x5ef98a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39b28c['startIndex']&&_0x5ef98a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ef98a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x247120,_0x3ee0e8={}){const _0xce204f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a7f89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xce204f['markMultiRangeBlockFormat'](_0x5a7f89,{'commandName':'listStyle','commandParams':[{'type':_0x3ee0e8['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x471eae,_0x4b7d42={}){const _0x304493=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21e528=this['_getSuggestionBlocks'](_0x277f30=>_0x277f30['is']('element','listItem')&&'numbered'===_0x277f30['getAttribute']('listType'));if(_0x21e528['length']<0x1)return;const _0x3b41d0=_0x21e528['map'](_0x5f190b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f190b,'before'),this['editor']['model']['createPositionAt'](_0x5f190b,0x0)));this['editor']['model']['change'](()=>{_0x304493['markMultiRangeBlockFormat'](_0x3b41d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b7d42['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0xd54d4a,_0x3a73e5={}){const _0x47bec4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x231962=this['_getSuggestionBlocks'](_0x3e4fab=>_0x3e4fab['is']('element','listItem')&&'numbered'===_0x3e4fab['getAttribute']('listType'));if(_0x231962['length']<0x1)return;const _0xdc253b=_0x231962['map'](_0x5ac928=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ac928,'before'),this['editor']['model']['createPositionAt'](_0x5ac928,0x0)));this['editor']['model']['change'](()=>{_0x47bec4['markMultiRangeBlockFormat'](_0xdc253b,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a73e5['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x106e32){if('formatBlock'!=_0x106e32['type']&&'formatInline'!=_0x106e32['type'])return;const _0x39d73d=this['editor']['locale'],{data:_0x50a657}=_0x106e32;if(!_0x50a657)return;let _0x1991c2,_0x1d32da;switch(_0x50a657['commandName']){case'listStyle':_0x1991c2='*Change\x20to:*\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,Ot(_0x39d73d,this['_getTranslationKeyForListStyle'](_0x50a657['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1991c2=_0x50a657['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2)};break;case'listStart':_0x1991c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,_0x50a657['commandParams'][0x0]['startIndex'])};}return _0x1d32da;}_getSuggestionBlocksForListStyle(){const _0x4df4b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e104c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e104c[0x0]?.['is']('element','listItem')&&_0x1e104c['unshift'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e104c[_0x1e104c['length']-0x1]?.['is']('element','listItem')&&_0x1e104c['push'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e104c=[...new Set(_0x1e104c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e104c=_0x1e104c['filter'](_0x39cc8c=>_0x39cc8c['is']('element','listItem'))),_0x1e104c;}_getSuggestionBlocks(_0x53da32){const _0x1c0458=this['editor']['plugins']['get']('LegacyListUtils');let _0x44a86d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53da32)['map'](_0x24b73d=>{const _0x3df525=this['editor']['model']['createPositionAt'](_0x24b73d,0x0);return[..._0x1c0458['getSiblingNodes'](_0x3df525,'backward'),..._0x1c0458['getSiblingNodes'](_0x3df525,'forward')];})['flat']();return _0x44a86d=[...new Set(_0x44a86d)],_0x44a86d;}_getTranslationKeyForListStyle(_0x926e5b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x926e5b)||'default')['toUpperCase']()+'_LIST_'+_0x926e5b['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x9bd549{afterInit(){const _0x3ec8c2=this['editor'];if(!_0x3ec8c2['plugins']['has']('MediaEmbedEditing'))return;const _0x24f94=_0x3ec8c2['plugins']['get']('TrackChangesEditing'),_0x3d501b=_0x3ec8c2['locale'];_0x24f94['enableCommand']('mediaEmbed'),_0x24f94['descriptionFactory']['registerElementLabel']('media',_0x40793f=>Ot(_0x3d501b,'ELEMENT_MEDIA',_0x40793f)),_0x3ec8c2['plugins']['has']('MediaEmbedResizeEditing')&&(_0x24f94['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x24f94['descriptionFactory']['registerDescriptionCallback'](_0x4626d1=>{if('attribute'!=_0x4626d1['type'])return;const {data:_0x16a562}=_0x4626d1;if(!_0x16a562||'resizedWidth'!=_0x16a562['key'])return;const _0x53e589=_0x4626d1['getContainedElement']();if(!_0x53e589||!_0x53e589['is']('element','media'))return;const _0x271f92=Ot(_0x3d501b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3d501b,'*Set\x20format:*\x20%0',_0x271f92)};}));}},ke=class extends _0x9bd549{afterInit(){const _0x274351=this['editor'];if(!_0x274351['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x19613d=_0x274351['plugins']['get']('TrackChangesEditing'),_0x27c4e3=_0x274351['locale'],_0x107499=_0x274351['plugins']['get']('MediaEmbedStyleEditing'),_0x5ad4fa={};for(const _0x3b6b8b of _0x107499['normalizedStyles'])_0x5ad4fa[_0x3b6b8b['name']]=_0x3b6b8b['title']['toLowerCase']();const _0x306e63=_0x107499['normalizedStyles']['find'](_0x2f276b=>_0x2f276b['isDefault'])?.['name'];_0x19613d['enableCommand']('mediaStyle',(_0x527811,_0x120593)=>{const _0x4e8911=_0x274351['plugins']['get']('Users')['me'],_0x71be1f=_0x274351['commands']['get']('mediaStyle'),_0x2dfbf9=function(_0x4b36c1){const _0x7ac845=_0x4b36c1['model']['document']['selection']['getSelectedElement']();return _0x7ac845&&_0x7ac845['is']('element','media')?_0x7ac845:null;}(_0x274351);if(!_0x2dfbf9)return;const _0xca0e0d=_0x274351['model']['createRangeOn'](_0x2dfbf9);let _0x3cd6d0=_0x71be1f['value'];if(_0x3cd6d0==_0x120593['value'])return;const _0x4ab83e={'commandName':'mediaStyle','commandParams':[_0x120593],'formatGroupId':_0x2e6a13()};_0x274351['model']['change'](()=>{_0x19613d['getSuggestions']()['filter'](_0x3ff858=>_0x3ff858['isInContent']&&_0x4e8911==_0x3ff858['author']&&'formatBlock'==_0x3ff858['type']&&'mediaStylePostApply'==_0x3ff858['subType']&&_0x3ff858['getFirstRange']()['isEqual'](_0xca0e0d))['forEach'](_0x5a656d=>_0x19613d['discardSuggestion'](_0x5a656d['head'])),_0x71be1f['refresh'](),_0x3cd6d0=_0x71be1f['value'],_0x3cd6d0!=_0x120593['value']&&_0x19613d['markBlockFormat'](_0x2dfbf9,{..._0x4ab83e,'commandReversedParams':[{'value':'string'==typeof _0x3cd6d0?_0x3cd6d0:null}]},[],'mediaStylePostApply');});}),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1295a9,_0x291009)=>{_0x19613d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1295a9,{'commandName':_0x291009['commandName'],'commandParams':_0x291009['commandReversedParams']});}),_0x19613d['descriptionFactory']['registerDescriptionCallback'](_0x2f4201=>{if('formatBlock'!=_0x2f4201['type'])return;const {data:_0x55e754}=_0x2f4201;if(!_0x55e754||'mediaStyle'!=_0x55e754['commandName'])return;const _0xd908a0=_0x55e754['commandParams'][0x0]['value']||_0x306e63;if(!_0xd908a0)return;const _0x217d94=_0x5ad4fa[_0xd908a0]||_0xd908a0;return{'type':'format','content':Ot(_0x27c4e3,'*Format:*\x20%0',_0x217d94)};});}},Re=class extends _0x9bd549{afterInit(){const _0x34fef8=this['editor'];_0x34fef8['plugins']['has']('MentionEditing')&&_0x34fef8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x9bd549{afterInit(){const _0x36f4b0=this['editor'];if(!_0x36f4b0['plugins']['has']('MergeFieldsEditing'))return;const _0x24770a=_0x36f4b0['plugins']['get']('TrackChangesEditing'),_0x287fc5=_0x36f4b0['locale'];_0x24770a['enableCommand']('insertMergeField'),_0x24770a['enableCommand']('insertMergeFieldBlock'),_0x24770a['enableCommand']('insertMergeFieldImage'),_0x24770a['descriptionFactory']['registerElementLabel']('mergeField',_0x3356f8=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x3356f8)),_0x24770a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20c9b2=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x20c9b2)),_0x24770a['descriptionFactory']['registerDescriptionCallback'](_0x1d4dc7=>{if('insertion'!=_0x1d4dc7['type']&&'deletion'!=_0x1d4dc7['type'])return;const _0x17f646=_0x1d4dc7['getContainedElement']();if(null==_0x17f646)return;const _0x5edd26=_0x36f4b0['plugins']['get']('MergeFieldsEditing');let _0x57b9ea;switch(_0x5edd26['getMergeFieldType'](_0x17f646)){case null:return;case'image':{const _0x31b47f=_0x5edd26['unwrapAffixes'](_0x17f646['getAttribute']('src'));_0x57b9ea=_0x5edd26['getLabel'](_0x31b47f)||_0x31b47f;break;}default:{const _0x11003d=_0x17f646['getAttribute']('id');_0x57b9ea=_0x5edd26['getLabel'](_0x11003d)||_0x11003d;break;}}return'insertion'==_0x1d4dc7['type']?{'type':'insertion','content':Ot(_0x287fc5,'*Insert:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x287fc5,'*Remove:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x9bd549{afterInit(){const _0x2e101e=this['editor'],_0x341f71=_0x2e101e['plugins']['get']('TrackChangesEditing');_0x2e101e['plugins']['has']('MultiLevelList')&&(_0x341f71['enableDefaultAttributesIntegration']('multiLevelList'),_0x341f71['descriptionFactory']['registerDescriptionCallback'](_0x5132d7=>this['handleDescriptions'](_0x5132d7)));}handleDescriptions(_0x5a8714){const _0x33eb6a=this['editor']['locale'],{data:_0x36628c}=_0x5a8714,_0x3e6970={'type':'format','content':''};if(_0x36628c&&'listMarkerStyle'==_0x36628c['key']){if(!_0x36628c['oldValue'])return{'type':'format','content':Ot(_0x33eb6a,'*Set\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['newValue']+')'};if(!_0x36628c['newValue']){let _0x2437a4=_0x5a8714['head'];for(;_0x2437a4;){if(_0x2437a4['data']&&'listType'==_0x2437a4['data']['key']&&_0x2437a4['data']['newValue'])return _0x3e6970;_0x2437a4=_0x2437a4['next'];}return{'type':'format','content':Ot(_0x33eb6a,'*Remove\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['oldValue']+')'};}}}},Se=class extends _0x9bd549{afterInit(){const _0x3ac10f=this['editor'];if(!_0x3ac10f['plugins']['has']('PageBreakEditing'))return;_0x3ac10f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x19237a=_0x3ac10f['plugins']['get']('TrackChangesEditing'),_0x40c0b4=_0x3ac10f['locale'];_0x19237a['descriptionFactory']['registerElementLabel']('pageBreak',_0x501e7f=>Ot(_0x40c0b4,'ELEMENT_PAGE_BREAK',_0x501e7f));}},Me=class extends _0x9bd549{afterInit(){const _0x2d1869=this['editor'];if(!_0x2d1869['plugins']['has']('Paragraph'))return;const _0x22639d=_0x2d1869['locale'],_0x18f891=_0x2d1869['plugins']['get']('TrackChangesEditing');_0x18f891['descriptionFactory']['registerElementLabel']('paragraph',_0x411c65=>Ot(_0x22639d,'ELEMENT_PARAGRAPH',_0x411c65)),_0x18f891['enableDefaultAttributesIntegration']('paragraph'),_0x18f891['enableCommand']('insertParagraph');const _0x54fcf5=_0x18f891['descriptionFactory'];_0x54fcf5['registerDescriptionCallback'](_0x37436f=>{if('insertion'!==_0x37436f['type'])return;const {start:_0x4521d0,end:_0x4d6734}=_0x37436f['getFirstRange']();if(!_0x4521d0['isTouching'](_0x4d6734)||!_0x4521d0['nodeAfter'])return;const _0x25f540=_0x2d1869['model']['schema'],_0x70045a=_0x4521d0['nodeAfter'];return _0x25f540['isBlock'](_0x70045a)&&!_0x25f540['isLimit'](_0x70045a)&&_0x25f540['checkChild'](_0x70045a,'$text')?{'type':'insertion','content':Ot(_0x22639d,'*Insert:*\x20%0',_0x54fcf5['getItemLabel'](_0x70045a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3cebb3=this['editor'],_0x30284c=_0x3cebb3['locale'];_0x3cebb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fc0b=>{if('formatBlock'!=_0x39fc0b['type'])return;const {data:_0x4e302b}=_0x39fc0b;return _0x4e302b&&'paragraph'==_0x4e302b['commandName']?{'type':'format','content':Ot(_0x30284c,'*Change\x20to:*\x20%0',Ot(_0x30284c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x9bd549{afterInit(){const _0x9db802=this['editor'];_0x9db802['commands']['get']('replaceSource')&&_0x9db802['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x9bd549{afterInit(){const _0x5177dc=this['editor'];_0x5177dc['plugins']['has']('RemoveFormatEditing')&&(_0x5177dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58df58=this['editor'];_0x58df58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x859efd=>{if('formatBlock'!=_0x859efd['type']&&'formatInline'!=_0x859efd['type'])return;const {data:_0x5cb6d9}=_0x859efd;return _0x5cb6d9&&'removeFormat'==_0x5cb6d9['commandName']?{'type':'format','content':Ot(_0x58df58['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x9bd549{afterInit(){const _0x45484a=this['editor'];if(!_0x45484a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b1e03=_0x45484a['plugins']['get']('TrackChangesEditing');_0x3b1e03['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b1e03['enableCommand']('goToNextRestrictedEditingException');const _0xcb4526=_0x45484a['plugins']['get']('RestrictedEditingModeEditing');_0xcb4526['enableCommand']('trackChanges'),_0xcb4526['enableCommand']('acceptSuggestion'),_0xcb4526['enableCommand']('discardSuggestion'),_0xcb4526['enableCommand']('acceptAllSuggestions'),_0xcb4526['enableCommand']('discardAllSuggestions'),_0xcb4526['enableCommand']('acceptSelectedSuggestions'),_0xcb4526['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x9bd549{afterInit(){const _0x468436=this['editor'];if(!_0x468436['plugins']['has']('ShiftEnter'))return;const _0x221062=_0x468436['plugins']['get']('TrackChangesEditing');_0x221062['enableCommand']('shiftEnter'),_0x221062['descriptionFactory']['registerElementLabel']('softBreak',_0x4f6dd6=>Ot(_0x468436['locale'],'ELEMENT_LINE_BREAK',_0x4f6dd6));}};function ve(_0xebe290,_0x4bd351,_0x2718a7){const _0x51584b=[];for(const _0x2e7f35 of _0x4bd351['getItems']())_0x2e7f35['hasAttribute'](_0xebe290)&&_0x51584b['push'](_0x2718a7['createRangeOn'](_0x2e7f35));return _0x51584b;}var De=class extends _0x9bd549{afterInit(){const _0x76e4fe=this['editor'],_0x4b4f50=_0x76e4fe['plugins']['get']('TrackChangesEditing');_0x76e4fe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4b4f50['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5bebac=this['editor'],_0xaeed79=_0x5bebac['model'],_0x326e42=_0x5bebac['locale'],_0x483c35=_0x5bebac['plugins']['get']('TrackChangesEditing'),_0x4a110d='restrictedEditingException',_0x530591=_0x5bebac['commands']['get'](_0x4a110d);_0x483c35['enableCommand'](_0x4a110d,(_0x438201,_0x3e3a92={})=>{const _0x542f3c=_0xaeed79['document']['selection'];if(_0x542f3c['isCollapsed'])return void _0x438201(_0x3e3a92);const _0x470515=void 0x0!==_0x3e3a92['forceValue']?_0x3e3a92['forceValue']:!_0x530591['value'];_0xaeed79['change'](()=>{const _0x1e9cd7=Array['from'](_0x542f3c['getRanges']());for(const _0x3c31b4 of _0x1e9cd7){const _0x40b37a=_0x470515?[_0x3c31b4]:ve(_0x4a110d,_0x3c31b4,_0xaeed79);for(const _0x5118eb of _0x40b37a)_0x483c35['markInlineFormat'](_0x5118eb,{'commandName':_0x4a110d,'commandParams':[{'forceValue':_0x470515}]});}});}),_0x483c35['descriptionFactory']['registerDescriptionCallback'](_0x211038=>{if('formatBlock'!=_0x211038['type']&&'formatInline'!=_0x211038['type'])return;const {data:_0x43526a}=_0x211038;return _0x43526a&&_0x43526a['commandName']==_0x4a110d?_0x43526a['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5663a9=this['editor'],_0xb9ca9=_0x5663a9['locale'],_0x398115=_0x5663a9['plugins']['get']('TrackChangesEditing'),_0x4ba78b='restrictedEditingExceptionBlock',_0x2b4f42=this['editor']['commands']['get'](_0x4ba78b);_0x398115['enableCommand'](_0x4ba78b,(_0x58bfcd,_0x4c6fc7={})=>{const _0x5b9711=this['editor']['model']['document']['selection'],_0x2e02bf=_0x4c6fc7&&void 0x0!==_0x4c6fc7['forceValue']?_0x4c6fc7['forceValue']:!_0x2b4f42['value'];let _0x5449af=[];_0x5449af=Ct(_0x2e02bf?Array['from'](_0x5b9711['getSelectedBlocks']())['filter'](_0x391f15=>function(_0x25b1a9){return!!_0x25b1a9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x391f15)||function(_0x4b9485,_0x4787a4){const _0x4b218b=_0x4787a4['createContext'](_0x4b9485['parent']);return!!_0x4787a4['checkChild'](_0x4b218b,'restrictedEditingException')&&!!_0x4787a4['checkChild'](_0x4b218b['push']('restrictedEditingException'),_0x4b9485);}(_0x391f15,this['editor']['model']['schema'])):Array['from'](_0x5b9711['getSelectedBlocks']())['map'](_0x23ecb7=>function(_0x248f99){let _0x3ad377=_0x248f99;for(;_0x3ad377['parent'];){if('restrictedEditingException'==_0x3ad377['parent']['name'])return _0x3ad377;_0x3ad377=_0x3ad377['parent'];}return null;}(_0x23ecb7))['filter'](_0x4c27dc=>!!_0x4c27dc),_0x5663a9['model']),_0x5663a9['model']['change'](()=>{for(const _0x16e47e of _0x5449af)_0x398115['markBlockFormat'](_0x16e47e,{'commandName':_0x4ba78b,'commandParams':[{'forceValue':_0x2e02bf}]});});}),_0x398115['descriptionFactory']['registerDescriptionCallback'](_0x134431=>{const {data:_0x473f52}=_0x134431;if(_0x473f52&&_0x473f52['commandName']==_0x4ba78b)return _0x473f52['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x9bd549{afterInit(){const _0x3c52ef=this['editor'];_0x3c52ef['plugins']['has']('Style')&&_0x3c52ef['plugins']['has']('DataSchema')&&(_0x3c52ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x27cd0c=this['editor'],_0x76b97e=_0x27cd0c['locale'];_0x27cd0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52b5e5=>{if('formatBlock'!=_0x52b5e5['type']&&'formatInline'!=_0x52b5e5['type'])return;const {data:_0x31f8ea}=_0x52b5e5;return _0x31f8ea&&'style'===_0x31f8ea['commandName']?_0x31f8ea['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x76b97e,'*Set\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x76b97e,'*Remove\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x9bd549{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x41b2e3){super(_0x41b2e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x3f335d=this['editor'],_0x5b8c28=_0x3f335d['model']['document']['selection'];if(!_0x3f335d['plugins']['has']('TableEditing'))return;const _0x4f1ca6=_0x3f335d['locale'],_0x24c07d=_0x3f335d['plugins']['get']('TrackChangesEditing'),_0x412434=_0x3f335d['plugins']['get']('TableUtils');_0x24c07d['descriptionFactory']['registerElementLabel']('table',_0x4ce934=>Ot(_0x4f1ca6,'ELEMENT_TABLE',_0x4ce934)),this['_setupColumnsRowsFixing'](),_0x24c07d['enableCommand']('insertTable'),_0x24c07d['enableCommand']('selectTableRow'),_0x24c07d['enableCommand']('selectTableColumn');for(const _0x4ab5c6 of['insertTableRowAbove','insertTableRowBelow']){const _0x10a552=_0x3f335d['commands']['get'](_0x4ab5c6);_0x24c07d['enableCommand'](_0x4ab5c6,_0x17bb0a=>{_0x3f335d['model']['change'](_0x14a882=>{_0x17bb0a();const _0x439347='above'===_0x10a552['order'],_0x3abd5c=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x25698c=_0x412434['getRowIndexes'](_0x3abd5c),_0x1ec3ff=_0x439347?_0x25698c['first']-0x1:_0x25698c['last']+0x1,_0xc97d55=_0x3abd5c[0x0]['findAncestor']('table'),_0x5ebdae=_0x412434['createTableWalker'](_0xc97d55,{'startRow':_0x1ec3ff,'endRow':_0x1ec3ff}),_0x44b628=Array['from'](_0x5ebdae)['map'](_0x20978b=>_0x14a882['createRangeOn'](_0x20978b['cell']));_0x24c07d['markMultiRangeInsertion'](_0x44b628,'tableRow');});});}for(const _0x516e42 of['insertTableColumnLeft','insertTableColumnRight']){const _0x39f916=_0x3f335d['commands']['get'](_0x516e42);_0x24c07d['enableCommand'](_0x516e42,_0x5aefb7=>{_0x3f335d['model']['change'](_0x5ce3fd=>{_0x5aefb7();const _0x370e9c='left'===_0x39f916['order'],_0x4c7788=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x176126=_0x412434['getColumnIndexes'](_0x4c7788),_0x2ee49f=_0x370e9c?_0x176126['first']-0x1:_0x176126['last']+0x1,_0x35f6dd=_0x4c7788[0x0]['findAncestor']('table'),_0x9a5793=_0x412434['createTableWalker'](_0x35f6dd,{'startRow':0x0,'column':_0x2ee49f,'includeAllSlots':!0x1}),_0x126d4d=Array['from'](_0x9a5793)['map'](_0x1ef773=>_0x5ce3fd['createRangeOn'](_0x1ef773['cell']));_0x24c07d['markMultiRangeInsertion'](_0x126d4d,'tableColumn');});});}for(const _0x4db958 of['removeTableRow','removeTableColumn']){const _0x32f91e=_0x4db958['substr'](0xb),_0x2ca4ad=_0x32f91e['toLowerCase'](),_0x2c019c=_0x2ca4ad['substr'](0x0,0x3)+'span',_0x97973c='table'+_0x32f91e,_0x19761c='min'+_0x32f91e,_0x1d60c6='max'+_0x32f91e;_0x24c07d['enableCommand'](_0x4db958,()=>{_0x3f335d['model']['change'](_0x18a436=>{const _0xe607dd=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x408adb=_0xe607dd[0x0]['findAncestor']('table');let _0x47a3f2;if('removeTableRow'==_0x4db958){const _0x959be1=_0x412434['getRowIndexes'](_0xe607dd);_0x47a3f2={'startRow':_0x959be1['first'],'endRow':_0x959be1['last'],'includeAllSlots':!0x0};}else{const _0x434c19=_0x412434['getColumnIndexes'](_0xe607dd);_0x47a3f2={'startColumn':_0x434c19['first'],'endColumn':_0x434c19['last'],'includeAllSlots':!0x0};}const _0x2c7840=_0x412434['createTableWalker'](_0x408adb,_0x47a3f2),_0x3bd277=Array['from'](_0x2c7840)['map'](({cell:_0xb368ab})=>_0xb368ab),_0x3139e7=xe(_0x3bd277['filter'](_0x5723be=>_0x5723be['hasAttribute'](_0x2c019c))),_0x1cd8fc=xe(_0x3bd277['filter'](_0x1b3188=>!_0x1b3188['hasAttribute'](_0x2c019c)))['map'](_0x4dbb87=>_0x18a436['createRangeOn'](_0x4dbb87)),_0x2a7e8d=_0x24c07d['markMultiRangeDeletion'](_0x1cd8fc,_0x97973c);if(_0x2a7e8d&&('tableRow'==_0x2a7e8d['subType']||'tableColumn'==_0x2a7e8d['subType'])){const _0x6211e8=this['_getSuggestionCoords'](_0x2a7e8d);for(const _0x54d4bc of _0x3139e7){const _0x3a94f6=_0x18a436['createRangeOn'](_0x54d4bc),_0x11067b=_0x412434['getCellLocation'](_0x54d4bc),_0x4144a6=_0x54d4bc['getAttribute'](_0x2c019c)-0x1,_0x510346=_0x6211e8[_0x19761c],_0x107fdc=_0x6211e8[_0x1d60c6];_0x510346<=_0x11067b[_0x2ca4ad]&&_0x11067b[_0x2ca4ad]+_0x4144a6<=_0x107fdc&&_0x2a7e8d['addRange'](_0x3a94f6);}}});});}function _0x2fe696(_0x229f5f){const _0x5f221a=Array['from'](_0x5b8c28['getRanges']())['map'](_0x459d5f=>ot['fromRange'](_0x459d5f));_0x3f335d['model']['change'](_0xe2ac08=>{const _0x854e79=_0xe2ac08['batch'];_0x229f5f=_0x229f5f['filter'](_0x5f252a=>'$graveyard'!=_0x5f252a['root']['rootName']),_0xe2ac08['setSelection'](_0x229f5f),_0x3f335d['commands']['get']('removeTableRow')['refresh'](),_0x3f335d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f335d['model']['enqueueChange'](()=>{_0x3f335d['model']['enqueueChange'](_0x854e79,_0xa5dcaf=>{const _0x49c283=_0x5f221a['filter'](_0x2272b5=>'$graveyard'!=_0x2272b5['root']['rootName']);_0x49c283['length']>0x0&&_0xa5dcaf['setSelection'](_0x49c283);for(const _0x5c2bee of _0x5f221a)_0x5c2bee['detach']();});});});}function _0x5e6926(_0x39d618){_0x3f335d['model']['change'](_0x4e7748=>{const _0x554dc9=Array['from'](_0x5b8c28['getRanges']())['map'](_0x58deec=>ot['fromRange'](_0x58deec)),_0x361171=[];for(const _0xef33b3 of _0x39d618)for(const _0x5c14f2 of _0xef33b3['getItems']({'shallow':!0x0}))_0x361171['push'](_0x5c14f2);for(const _0x926c87 of _0x361171)'$graveyard'!=_0x926c87['root']['rootName']&&(_0x4e7748['setSelection'](_0x4e7748['createPositionAt'](_0x926c87,0x0)),_0x3f335d['commands']['get']('removeTableColumn')['refresh'](),_0x3f335d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x11a00c=_0x554dc9['filter'](_0xd5db5=>'$graveyard'!=_0xd5db5['root']['rootName']);_0x11a00c['length']>0x0&&_0x4e7748['setSelection'](_0x11a00c);for(const _0x1b52d0 of _0x554dc9)_0x1b52d0['detach']();});}function _0x61b941(_0x4b30b7,_0x4e3bd7){return _0x4e3bd7['every'](_0x3f9082=>_0x4b30b7['some'](_0x4c0eb0=>_0x4c0eb0['end']['isEqual'](_0x3f9082['start'])||_0x3f9082['end']['isEqual'](_0x4c0eb0['start'])));}function _0x4a6a46(_0x2fb15f,_0xbb225c){return!_0x2fb15f['some'](_0x47a7ea=>_0xbb225c['some'](_0xb6e394=>_0x47a7ea['isIntersecting'](_0xb6e394)))&&_0x2fb15f['some'](_0x26ac04=>_0xbb225c['some'](_0xa73071=>_0x26ac04['end']['isTouching'](_0xa73071['start'])));}_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x42ac00=>{if('insertion'!=_0x42ac00['type']&&'deletion'!=_0x42ac00['type'])return;const _0xd662e7=_0x42ac00['getContainedElement']();if(null!=_0xd662e7&&_0xd662e7['is']('element','table')){if('insertion'==_0x42ac00['type']){const _0x3b2bc1=_0x42ac00['getItems']()['filter'](_0x218ccf=>_0x218ccf['is']('$textProxy'))['map'](_0x58f0e4=>_0x58f0e4['data']);if(_0x3b2bc1['length'])return{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b2bc1['join']('\x20')+'\x22'))};}if('deletion'==_0x42ac00['type']){const _0x5145f2=_0x42ac00['getItems']()['filter'](_0x17236a=>_0x17236a['is']('$textProxy'))['map'](_0x42db2=>_0x42db2['data']);if(_0x5145f2['length'])return{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5145f2['join']('\x20')+'\x22'))};}}}),_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x2b337e=>{if('tableRow'==_0x2b337e['subType']){const _0x2c95ea=_0x2b337e['getItems']()['filter'](_0x17b779=>_0x17b779['is']('$textProxy'))['map'](_0x56e9d8=>_0x56e9d8['data']),_0x91c294=this['_getSuggestionCoords'](_0x2b337e),_0xed9ff3=_0x91c294['maxRow']-_0x91c294['minRow']+0x1;if('insertion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};if('deletion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};}if('tableColumn'==_0x2b337e['subType']){const _0x3a4a98=_0x2b337e['getItems']()['filter'](_0x3158b5=>_0x3158b5['is']('$textProxy'))['map'](_0x36f7c9=>_0x36f7c9['data']),_0x1a0b85=this['_getSuggestionCoords'](_0x2b337e),_0x4d1f6c=_0x1a0b85['maxColumn']-_0x1a0b85['minColumn']+0x1;if('insertion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};if('deletion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};}}),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a6a46),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a6a46);}_acceptFormatSuggestionCallbackFactory(){const _0x5d2eee=this['editor'],_0x15d1ed=_0x5d2eee['model']['document']['selection'];return(_0x5e6c22,_0x1babb0)=>{_0x5d2eee['model']['change'](_0x240e06=>{const {commandName:_0x27a6d7,commandParams:_0x59ba39}=_0x1babb0;let _0x3b86d3=_0x5e6c22[0x0]['end']['nodeBefore'];_0x59ba39&&_0x59ba39[0x0]&&!0x1===_0x59ba39[0x0]['forceValue']&&(_0x3b86d3=_0x5e6c22[0x0]['start']['nodeAfter']);const _0x25ded3=_0x240e06['createRangeIn'](_0x3b86d3);if('$graveyard'==_0x25ded3['root']['rootName'])return;const _0x372af1=Array['from'](_0x15d1ed['getRanges']())['map'](_0x2145a6=>ot['fromRange'](_0x2145a6));_0x240e06['setSelection'](_0x25ded3),_0x5d2eee['commands']['get'](_0x27a6d7)['refresh'](),_0x59ba39['push']({'forceDefaultExecution':!0x0}),_0x5d2eee['execute'](_0x27a6d7,..._0x59ba39);const _0x32a2fc=_0x372af1['filter'](_0x51eb38=>'$graveyard'!=_0x51eb38['root']['rootName']);_0x32a2fc['length']>0x0&&_0x240e06['setSelection'](_0x32a2fc);for(const _0x5aae09 of _0x372af1)_0x5aae09['detach']();});};}_getCoordsForCells(_0x57a288){const _0x55ee21=this['editor']['plugins']['get']('TableUtils');let _0x3a2313=Number['MAX_SAFE_INTEGER'],_0x5e4f94=Number['MIN_SAFE_INTEGER'],_0x2d4318=Number['MAX_SAFE_INTEGER'],_0x5647ef=Number['MIN_SAFE_INTEGER'];for(const _0x45940e of _0x57a288){if('$graveyard'==_0x45940e['root']['rootName'])continue;const {row:_0x4871e7,column:_0x262da3}=_0x55ee21['getCellLocation'](_0x45940e),_0x170c67=_0x45940e['hasAttribute']('rowspan')?_0x45940e['getAttribute']('rowspan')-0x1:0x0,_0x25c8af=_0x45940e['hasAttribute']('colspan')?_0x45940e['getAttribute']('colspan')-0x1:0x0;_0x3a2313=_0x4871e7<_0x3a2313?_0x4871e7:_0x3a2313,_0x5e4f94=_0x4871e7+_0x170c67>_0x5e4f94?_0x4871e7+_0x170c67:_0x5e4f94,_0x2d4318=_0x262da3<_0x2d4318?_0x262da3:_0x2d4318,_0x5647ef=_0x262da3+_0x25c8af>_0x5647ef?_0x262da3+_0x25c8af:_0x5647ef;}return{'minRow':_0x3a2313,'maxRow':_0x5e4f94,'minColumn':_0x2d4318,'maxColumn':_0x5647ef};}_setupColumnsRowsFixing(){const _0x125bf6=this['editor'],_0x55a70e=_0x125bf6['plugins']['get']('TrackChangesEditing'),_0x3ee91d=_0x125bf6['plugins']['get']('TableUtils');_0x125bf6['model']['document']['on']('change:data',()=>{const _0x3e99cd=Array['from'](_0x125bf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15ccd0,data:_0x46dc14}of _0x3e99cd){const {group:_0x3dddeb,id:_0x37a0df,subType:_0x51ab45}=et(_0x15ccd0);if('suggestion'!=_0x3dddeb)continue;if(null!=_0x46dc14['oldRange'])continue;const _0x5512c2=_0x55a70e['getSuggestion'](_0x37a0df);this['_tablePostFixingSubtypes']['includes'](_0x51ab45)&&this['_tableSuggestions']['add'](_0x5512c2);}},{'priority':'low'});const _0x5a2862=(_0x40e08e,_0x38b298)=>{let _0x35999c=!0x1;const _0x2fc973=_0x38b298['createRangeOn'](_0x40e08e),_0x5e3767=_0x40e08e['findAncestor']('table'),_0x15fc49=_0x3ee91d['getCellLocation'](_0x40e08e);for(const _0x105be7 of this['_tableSuggestions']){const _0x374485=_0x105be7['subType'],_0x2892e5=_0x374485['startsWith']('tablePaste'),_0x344559=_0x374485['substr'](_0x2892e5?0xa:0x5),_0x2559de=_0x344559['toLowerCase'](),_0x399ad7=_0x2559de['substr'](0x0,0x3)+'span',_0x3dc32a='min'+_0x344559,_0x2333fa='max'+_0x344559;if(!_0x105be7['isInContent'])continue;if(_0x5e3767!=_0x105be7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x105be7['isIntersectingWithRange'](_0x2fc973))continue;const _0x5483b5=_0x40e08e['hasAttribute'](_0x399ad7)?_0x40e08e['getAttribute'](_0x399ad7)-0x1:0x0,_0x14a2ba=this['_getSuggestionCoords'](_0x105be7),_0x10c226=_0x14a2ba[_0x3dc32a],_0x2641a0=_0x14a2ba[_0x2333fa];_0x10c226<=_0x15fc49[_0x2559de]&&_0x15fc49[_0x2559de]+_0x5483b5<=_0x2641a0&&(_0x105be7['addRange'](_0x2fc973),_0x35999c=!0x0);}return _0x35999c;};_0x125bf6['model']['document']['registerPostFixer'](_0x1e3265=>{let _0x448f0d=!0x1;for(const _0x5dce9f of _0x125bf6['model']['document']['differ']['getChanges']())if('insert'==_0x5dce9f['type']){if('tableRow'==_0x5dce9f['name']){for(const _0x34e491 of _0x5dce9f['position']['nodeAfter']['getChildren']())_0x448f0d=_0x448f0d||_0x5a2862(_0x34e491,_0x1e3265);}else'tableCell'==_0x5dce9f['name']&&(_0x448f0d=_0x448f0d||_0x5a2862(_0x5dce9f['position']['nodeAfter'],_0x1e3265));}return _0x448f0d;});}_getSuggestionCoords(_0x19d326){return this['_getCoordsForCells'](_0x19d326['getRanges']()['map'](_0x6a17de=>_0x6a17de['start']['nodeAfter']));}};function xe(_0x373419){return Array['from'](new Set(_0x373419)['values']());}var Ge=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x21c8ec=this['editor'],_0x31a6e9=_0x21c8ec['model']['document']['selection'],_0x5b27ca=_0x21c8ec['locale'];if(!_0x21c8ec['plugins']['has']('TableEditing'))return;const _0x287334=_0x21c8ec['plugins']['get']('TrackChangesEditing'),_0x2b35d2=_0x21c8ec['plugins']['get']('TableUtils'),_0x4a42c5=_0x21c8ec['plugins']['get'](Pe);_0x4a42c5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x287334['enableCommand']('mergeTableCells',()=>{const _0x19e2db=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']);_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x19e2db,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21c8ec['commands']['get']('mergeTableCells')['on']('execute',(_0x2248b7,_0x2feb86)=>{_0x21c8ec['commands']['get']('trackChanges')['value']&&(_0x2feb86['length']>0x0&&_0x2feb86[_0x2feb86['length']-0x1]&&_0x2feb86[_0x2feb86['length']-0x1]['forceDefaultExecution']||_0x287334['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2248b7['stop']());},{'priority':'highest'});for(const _0x6fbf8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x517836=_0x21c8ec['commands']['get'](_0x6fbf8a);_0x287334['enableCommand'](_0x6fbf8a,()=>{const _0x37e572=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1571a0=>_0x1571a0['is']('element','tableCell')),_0x595a3f=_0x517836['value'];_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat']([_0x37e572,_0x595a3f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55ac9d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17e66e=_0x21c8ec['commands']['get'](_0x55ac9d);_0x287334['enableCommand'](_0x55ac9d,()=>{const _0x24dd03=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']),_0x2b0f38=_0x24dd03[0x0]['findAncestor']('table'),_0x42e922=new Set();for(const _0x5af9c8 of _0x24dd03){const {column:_0xee39b4,row:_0x2c1bce}=_0x2b35d2['getCellLocation'](_0x5af9c8),_0x19f333='horizontally'==_0x17e66e['direction']?_0x2b35d2['createTableWalker'](_0x2b0f38,{'startRow':_0x2c1bce,'endRow':_0x2c1bce,'includeAllSlots':!0x0}):_0x2b35d2['createTableWalker'](_0x2b0f38,{'column':_0xee39b4,'includeAllSlots':!0x0});for(const {cell:_0x51b1ac}of _0x19f333)_0x42e922['add'](_0x51b1ac);}_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x24dd03,{'commandName':_0x55ac9d,'commandParams':[]},Array['from'](_0x42e922),_0x55ac9d);});});}_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x3848e8=>{if('formatBlock'!=_0x3848e8['type']&&'formatInline'!=_0x3848e8['type'])return;const {data:_0x273004}=_0x3848e8;return _0x273004&&'mergeTableCells'==_0x273004['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Merge\x20cells*')}:void 0x0;}),_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x2fdd35=>{if('formatBlock'!=_0x2fdd35['type']&&'formatInline'!=_0x2fdd35['type'])return;const {data:_0x1470b8}=_0x2fdd35;return _0x1470b8?'splitTableCellVertically'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e2279=_0x4a42c5['_acceptFormatSuggestionCallbackFactory']();for(const _0x413649 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x413649,'accept',_0x3e2279);for(const _0x41145f of['splitTableCellVertically','splitTableCellHorizontally'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41145f,'accept',_0x9a383d=>{_0x21c8ec['model']['change'](_0xedb00d=>{const _0x4f187b=Array['from'](_0x9a383d)['filter'](_0x50e6dc=>'$graveyard'!=_0x50e6dc['root']['rootName']&&!!_0x50e6dc['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4f187b['length'])return;const _0x16760f=Array['from'](_0x31a6e9['getRanges']())['map'](_0x472945=>ot['fromRange'](_0x472945));_0xedb00d['setSelection'](_0x4f187b),_0x21c8ec['commands']['get'](_0x41145f)['refresh'](),_0x21c8ec['execute'](_0x41145f,{'forceDefaultExecution':!0x0});const _0x18afc6=_0x16760f['filter'](_0x330bd1=>'$graveyard'!=_0x330bd1['root']['rootName']);_0x18afc6['length']>0x0&&_0xedb00d['setSelection'](_0x18afc6);for(const _0x3a851f of _0x16760f)_0x3a851f['detach']();});});_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17c3f7=>{_0x21c8ec['model']['change'](_0x22faf3=>{const _0x548113=Array['from'](_0x31a6e9['getRanges']())['map'](_0x2d7051=>ot['fromRange'](_0x2d7051));_0x22faf3['setSelection'](_0x17c3f7),_0x21c8ec['commands']['get']('mergeTableCells')['refresh'](),_0x21c8ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14fd36=_0x548113['filter'](_0x1c91ba=>'$graveyard'!=_0x1c91ba['root']['rootName']);_0x14fd36['length']>0x0&&_0x22faf3['setSelection'](_0x14fd36);for(const _0x24433f of _0x548113)_0x24433f['detach']();});});for(const _0x3cbdec of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43ef2a=_0x21c8ec['commands']['get'](_0x3cbdec);_0x43ef2a['on']('set:isEnabled',(_0x561a31,_0x3945ef,_0x37a254)=>{if(_0x37a254){const _0x18bb3a=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10877c=>_0x10877c['is']('element','tableCell'));this['_areMergableCells'](_0x43ef2a['value'],_0x18bb3a)||(_0x561a31['return']=!0x1,_0x561a31['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x35beaf=this['editor']['commands']['get']('mergeTableCells'),_0xcb959e=this['editor']['plugins']['get']('TableUtils');if(!_0x35beaf['isEnabled'])return!0x1;const _0x4b29a2=_0xcb959e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x982a62 of _0x4b29a2)for(const _0x46e874 of _0x4b29a2)if(_0x982a62!=_0x46e874&&!this['_areMergableCells'](_0x982a62,_0x46e874))return!0x1;return!0x0;}['_areMergableCells'](_0x2331b7,_0x52bf04){const _0x26b4c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9d0711=this['editor']['model']['createRangeOn'](_0x2331b7),_0x3cd8ed=this['editor']['model']['createRangeOn'](_0x52bf04),_0x433ec9=new Set(),_0x2eb111=new Set();for(const _0x3c34d3 of _0x26b4c7['getSuggestions']())if(('insertion'==_0x3c34d3['type']||'deletion'==_0x3c34d3['type']||'mergeTableCells'==_0x3c34d3['subType'])&&_0x3c34d3['isInContent']){for(const _0x211218 of _0x3c34d3['getRanges']())_0x211218['containsRange'](_0x9d0711,!0x0)&&_0x433ec9['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']),_0x211218['containsRange'](_0x3cd8ed,!0x0)&&_0x2eb111['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']);}if(_0x433ec9['size']!=_0x2eb111['size'])return!0x1;for(const _0x26fa72 of _0x433ec9)if(!_0x2eb111['has'](_0x26fa72))return!0x1;return!0x0;}},He=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4b14b1=this['editor'];if(!_0x4b14b1['plugins']['has']('TableEditing'))return;const _0x54b440=_0x4b14b1['locale'],_0x3fd54b=_0x4b14b1['plugins']['get']('TrackChangesEditing');_0x3fd54b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fd54b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x54b440,'FORMAT_HEADER_ROW')),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x54b440,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3b50fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580f34=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x580f34),_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x580f34),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4a403b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a6352=this['editor']['plugins']['get']('TableUtils');function _0x5dc593({showActiveMarker:_0x255f60=!0x0,setDataAttribute:_0x135af5=!0x0}={}){return(_0x4674ca,_0x29781c,_0x2845d3)=>{const {type:_0x49bad4,id:_0x5e6f2a}=et(_0x29781c['markerName']);if(!_0x4a403b['hasSuggestion'](_0x5e6f2a))return;const _0x1b6a5b=_0x4a403b['getSuggestion'](_0x5e6f2a),_0x1e8d16=_0x1b6a5b['data'];if('formatBlock'!=_0x1b6a5b['type']||!_0x1e8d16||'setTableColumnHeader'!=_0x1e8d16['commandName'])return;if(_0x29781c['item'])return void _0x4674ca['stop']();if(!_0x2845d3['consumable']['consume'](_0x29781c['markerRange'],_0x4674ca['name']))return;const _0xe30bca=_0x29781c['markerRange']['start']['nodeAfter'],_0x212980=_0x29781c['markerRange']['end']['nodeBefore'],_0x5547b6=_0xe30bca['parent']['parent'],{column:_0x32355b}=_0x5a6352['getCellLocation'](_0xe30bca),{column:_0x1f17f7}=_0x5a6352['getCellLocation'](_0x212980);for(let _0x278d6a=_0x32355b;_0x278d6a<=_0x1f17f7;_0x278d6a++){const _0x1ab279=_0x5a6352['createTableWalker'](_0x5547b6,{'column':_0x278d6a,'includeAllSlots':!0x1});for(const _0x42cd8b of _0x1ab279){const _0x87618f=_0x42cd8b['cell'],_0x5f37bc=_0x2845d3['mapper']['toViewElement'](_0x87618f);_0x2845d3['writer']['addClass']('ck-suggestion-marker-'+_0x49bad4,_0x5f37bc),_0x135af5&&_0x2845d3['writer']['setAttribute']('data-suggestion',_0x5e6f2a,_0x5f37bc),_0x2845d3['mapper']['bindElementToMarker'](_0x5f37bc,_0x29781c['markerName']),_0x255f60&&(_0x4a403b['activeMarkers']['includes'](_0x29781c['markerName'])?_0x2845d3['writer']['addClass']('ck-suggestion-marker--active',_0x5f37bc):_0x2845d3['writer']['removeClass']('ck-suggestion-marker--active',_0x5f37bc));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5dc593(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34d9ac,_0x3e4c97,_0x559148)=>{_0x559148['options']['showSuggestionHighlights']&&_0x5dc593({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34d9ac,_0x3e4c97,_0x559148);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4b4220,_0x1539ca,_0x3c3c40)=>{const {type:_0x1d001b,id:_0x499200}=et(_0x1539ca['markerName']);if(!_0x4a403b['hasSuggestion'](_0x499200))return;const _0x2a02b5=_0x4a403b['getSuggestion'](_0x499200),_0x29fd12=_0x2a02b5['data'];if('formatBlock'!=_0x2a02b5['type']||!_0x29fd12||'setTableColumnHeader'!=_0x29fd12['commandName'])return;const _0x34f39e=_0x3c3c40['mapper']['markerNameToElements'](_0x1539ca['markerName']);if(_0x34f39e){for(const _0x4be8f3 of _0x34f39e)_0x3c3c40['writer']['removeClass']('ck-suggestion-marker-'+_0x1d001b,_0x4be8f3),_0x3c3c40['writer']['removeClass']('ck-suggestion-marker--active',_0x4be8f3),_0x3c3c40['writer']['removeAttribute']('data-suggestion',_0x4be8f3),_0x3c3c40['mapper']['unbindElementFromMarkerName'](_0x4be8f3,_0x1539ca['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x5acfd7=this['editor'],_0x2c833d=_0x5acfd7['locale'];function _0x51279f(_0x4b289b){return{'type':'format','content':Ot(_0x2c833d,'*Format:*\x20%0',_0x4b289b)};}_0x5acfd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f84e2=>{if('formatBlock'!=_0x3f84e2['type'])return;const {data:_0x3c6789}=_0x3f84e2;return _0x3c6789?'setTableRowHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_ROW')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_COLUMN')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x2a47c1=this['editor'];if(!_0x2a47c1['plugins']['has']('TableEditing')||!_0x2a47c1['config']['get']('table.enableFooters'))return;const _0x51527a=_0x2a47c1['locale'],_0x558a43=_0x2a47c1['plugins']['get']('TrackChangesEditing');_0x558a43['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x558a43['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x51527a,'FORMAT_FOOTER_ROW'));}},We=class extends _0x9bd549{afterInit(){const _0x4b47cf=this['editor'],_0x52e71f=_0x4b47cf['locale'],_0x302832=_0x4b47cf['plugins']['get']('TrackChangesEditing');function _0xc3d88f(_0x58b968){return{'type':'format','content':''+Ot(_0x52e71f,'*Set\x20table\x20type:*\x20%0',_0x58b968)};}_0x4b47cf['plugins']['has']('TableLayout')&&(_0x302832['enableCommand']('insertTableLayout'),_0x302832['enableDefaultAttributesIntegration']('tableType'),_0x302832['descriptionFactory']['registerElementLabel'](_0xdf4289=>_0xdf4289['is']('element','table')&&'layout'===_0xdf4289['getAttribute']('tableType'),_0x67e9d4=>Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE',_0x67e9d4)),_0x302832['descriptionFactory']['registerDescriptionCallback'](_0x278829=>{const {data:_0x2902ea}=_0x278829;if(_0x2902ea&&'tableType'==_0x2902ea['key'])switch(_0x2902ea['newValue']){case'layout':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ve['map'](_0x403c02=>[_0x403c02,null]));var ze=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4cbef5=this['editor'];if(!_0x4cbef5['plugins']['has']('TableClipboard'))return;const _0x4e9699=_0x4cbef5['plugins']['get']('TrackChangesEditing'),_0x3a8204=_0x4cbef5['plugins']['get']('TableUtils'),_0x5d99c8=_0x4cbef5['plugins']['get'](Pe),_0x4f8c44=_0x4cbef5['plugins']['get']('TableClipboard'),_0x1cd511=_0x4cbef5['plugins']['get']('TableSelection'),_0x3919cc=_0x4cbef5['plugins']['get'](ft);_0x5d99c8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4cbef5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4cbef5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f5cf0=null,_0x5277f0=!0x1;_0x3919cc['on']('contentInsertion',(_0x460894,_0x37b763)=>{_0x5277f0='paste'===_0x37b763['method'];}),_0x4cbef5['model']['on']('insertContent',(_0x33cde6,_0x293361)=>{if(!_0x5277f0&&null===_0x1cd511['getSelectedTableCells']())return;const [_0x5dc9e7,_0x30f7db]=_0x293361,_0x3cc385=_0x293361[_0x293361['length']-0x1];_0x3cc385&&_0x3cc385['forceDefaultExecution']||_0x4e9699['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28ec8c,_0xfed37c,_0x2af85a,_0x314edb,_0x41bd29){if(_0xfed37c&&!_0xfed37c['is']('documentSelection'))return!0x1;const _0x11dcc4=_0x41bd29['getTableIfOnlyTableInContent'](_0x28ec8c,_0x2af85a);if(!_0x11dcc4||!Xe(_0x11dcc4,void 0x0,_0x314edb))return!0x1;const _0x2c1d7d=_0x314edb['getSelectionAffectedTableCells'](_0x2af85a['document']['selection']);if(!_0x2c1d7d['length'])return!0x1;const _0x70dd2c=_0x2c1d7d[0x0]['findAncestor']('table'),_0x307850=_0x314edb['getRowIndexes'](_0x2c1d7d),_0x57588e=_0x314edb['getColumnIndexes'](_0x2c1d7d),_0x1ff04e={'startRow':_0x307850['first'],'endRow':_0x307850['last'],'startColumn':_0x57588e['first'],'endColumn':_0x57588e['last']};return 0x1==_0x2c1d7d['length']&&(_0x1ff04e['endRow']+=_0x314edb['getRows'](_0x11dcc4)-0x1,_0x1ff04e['endColumn']+=_0x314edb['getColumns'](_0x11dcc4)-0x1),Xe(_0x70dd2c,_0x1ff04e,_0x314edb);}(_0x5dc9e7,_0x30f7db,_0x4cbef5['model'],_0x3a8204,_0x4f8c44)&&(_0x33cde6['stop'](),_0x2f5cf0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4cbef5['model']['change'](()=>{_0x4cbef5['model']['insertContent'](_0x293361[0x0],_0x293361[0x1],_0x293361[0x2],{'forceDefaultExecution':!0x0});const _0x2ff7e4=_0x2e6a13(),{rowInsertionRanges:_0x288082,columnInsertionRanges:_0x2ce034,insertionRanges:_0x20f5e2,deletionRanges:_0x3b6824,cells:_0x540698}=_0x2f5cf0;_0x288082['length']&&_0x4e9699['markMultiRangeInsertion'](_0x288082,'tablePasteRow',{'tablePasteChainId':_0x2ff7e4}),_0x2ce034['length']&&_0x4e9699['markMultiRangeInsertion'](_0x2ce034,'tablePasteColumn',{'tablePasteChainId':_0x2ff7e4}),_0x20f5e2['length']&&(_0x4e9699['markMultiRangeInsertion'](_0x20f5e2,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x20f5e2['forEach'](_0x54c8da=>_0x54c8da['detach']?.())),_0x3b6824['length']&&(_0x4e9699['markMultiRangeDeletion'](_0x3b6824,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x3b6824['forEach'](_0x38c27c=>_0x38c27c['detach']?.()));const _0x102e53=_0x4e9699['markMultiRangeBlockFormat'](_0x540698['map'](({element:_0x5a8724})=>_0x5a8724),{'formatGroupId':_0x2e6a13()},[],'tablePasteCell',{'tablePasteChainId':_0x2ff7e4});if(_0x102e53){const _0x4e8400=_0x102e53['getMarkers'](),_0x587cb1=[];for(const {element:_0xf8f4ef,attributes:_0x15904c}of _0x540698){if(!_0x15904c)continue;const _0x18f05f=_0x4cbef5['model']['createRangeOn'](_0xf8f4ef),_0x3794cc=_0x4e8400['find'](_0x2c1910=>_0x2c1910['getRange']()['isEqual'](_0x18f05f));_0x3794cc&&_0x587cb1['push']([_0x3794cc['name'],_0x15904c]);}_0x587cb1['length']&&_0x102e53['setAttribute']('markerAttributes',Object['fromEntries'](_0x587cb1));}_0x2f5cf0=null;}));},{'priority':_0x2b2839['high']+0xa}),_0x3919cc['on']('contentInsertion',()=>{_0x5277f0=!0x1;},{'priority':'lowest'}),_0x4cbef5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a3abe,_0x50efcc)=>{const [_0x33698f,_0x1f5248,,_0x38df20]=_0x50efcc;if(!_0x2f5cf0)return;_0x2a3abe['stop']();const _0x50f496=_0x33698f['cell'],_0x35ec98=_0x1f5248,_0x1307fa=Ke(_0x50f496),_0x101ca4=Ke(_0x35ec98);_0x2a3abe['return']=_0x50f496;let _0x208594=null,_0x48270c=null;if(_0x101ca4||_0x1307fa){if(_0x1307fa&&!_0x101ca4){_0x38df20['remove'](_0x50f496['getChild'](0x0));for(const _0x504778 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x504778,_0x50f496,'end');const _0x4f7b78=_0x2f5cf0['rowInsertionIndexes']['includes'](_0x33698f['row']),_0x38ccd7=_0x2f5cf0['columnInsertionIndexes']['includes'](_0x33698f['column']);_0x4f7b78||_0x38ccd7||(_0x208594=ot['fromRange'](_0x38df20['createRangeIn'](_0x50f496)));}else _0x101ca4&&!_0x1307fa&&(_0x48270c=_0x38df20['createRangeIn'](_0x50f496));}else{const _0x424a71=_0x38df20['createElement']('tableCellSuggestion'),_0x5b3bdb=_0x38df20['createElement']('tableCellSuggestion');_0x38df20['wrap'](_0x38df20['createRangeIn'](_0x50f496),_0x5b3bdb),_0x38df20['insert'](_0x424a71,_0x50f496,0x0);for(const _0x3679c8 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x3679c8,_0x424a71,'end');_0x208594=ot['fromRange'](_0x38df20['createRangeOn'](_0x424a71)),_0x48270c=ot['fromRange'](_0x38df20['createRangeOn'](_0x5b3bdb));}const _0x2aa08f=Array['from'](_0x35ec98['getAttributes']())['filter'](([_0x5d7f33])=>Ve['includes'](_0x5d7f33));_0x2f5cf0['cells']['push']({'element':_0x50f496,'attributes':_0x2aa08f['length']?Object['fromEntries'](_0x2aa08f):null}),_0x208594&&_0x2f5cf0['insertionRanges']['push'](_0x208594),_0x48270c&&_0x2f5cf0['deletionRanges']['push'](_0x48270c);},{'priority':'high'}),_0x3a8204['on']('insertColumns',(_0x3c7da3,_0x244f79)=>{const [_0x2a3853,_0x2c7a54={}]=_0x244f79;if(!_0x2f5cf0)return;const _0x37dcec=_0x2c7a54['at']||0x0,_0x2f7d2e=_0x2c7a54['columns']||0x1;_0x2f5cf0['columnInsertionIndexes']=new Array(_0x2f7d2e)['fill'](_0x37dcec)['map']((_0x2485bf,_0x1f2896)=>_0x2485bf+_0x1f2896);for(const {cell:_0x4576b7}of _0x3a8204['createTableWalker'](_0x2a3853,{'startColumn':_0x37dcec,'endColumn':_0x37dcec+_0x2f7d2e-0x1}))_0x2f5cf0['columnInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x4576b7));},{'priority':'low'}),_0x3a8204['on']('insertRows',(_0x127461,_0x5ae58a)=>{const [_0x1341f3,_0x4f8fa1={}]=_0x5ae58a;if(!_0x2f5cf0)return;const _0xc35c7a=_0x4f8fa1['at']||0x0,_0x509b13=_0x4f8fa1['rows']||0x1;_0x2f5cf0['rowInsertionIndexes']=new Array(_0x509b13)['fill'](_0xc35c7a)['map']((_0x30419d,_0x22272a)=>_0x30419d+_0x22272a);for(const {cell:_0x39385c}of _0x3a8204['createTableWalker'](_0x1341f3,{'startRow':_0xc35c7a,'endRow':_0xc35c7a+_0x509b13-0x1}))_0x2f5cf0['rowInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x39385c));},{'priority':'low'}),_0x4e9699['descriptionFactory']['registerDescriptionCallback'](_0x4fcca1=>{if(_0x4fcca1['subType']&&_0x4fcca1['subType']['startsWith']('tablePaste'))return _0x4fcca1['previous']?{}:{'type':'insertion','content':Ot(_0x4cbef5['locale'],'*Replace\x20table\x20cells*')};});const _0x589565=()=>!0x1;for(const _0x25f88d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('deletion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25f88d,'join',_0x589565);_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a2f8e,_0x3c30fa,_0xa6d46b)=>{const _0x4dca5c=_0x4a2f8e['map'](_0x54ed71=>_0x54ed71['getContainedElement']())['filter'](_0x4d28ef=>_0x4d28ef),_0x27db32=new Map(_0x4dca5c['map'](_0x55cf0f=>[_0x55cf0f,null]));if(_0x2f5cf0){for(const {element:_0x3bc054,attributes:_0xd7340a}of _0x2f5cf0['cells'])_0xd7340a&&_0x27db32['set'](_0x3bc054,_0xd7340a);}else{if(_0xa6d46b&&_0xa6d46b['markerAttributes'])for(const [_0x227911,_0x4bec34]of Object['entries'](_0xa6d46b['markerAttributes'])){const _0x5c2951=_0x4cbef5['model']['markers']['get'](_0x227911),_0x3ef361=_0x5c2951?_0x5c2951['getRange']()['getContainedElement']():null;_0x3ef361&&_0x27db32['set'](_0x3ef361,_0x4bec34);}}_0x4cbef5['model']['change'](_0x5785e7=>{for(const [_0x2e7b30,_0x2a0fd9]of _0x27db32)_0x5785e7['setAttributes']({...je,..._0x2a0fd9},_0x2e7b30);});});const _0x264a4d=(_0x2b76f2,_0x5c1c78)=>{_0x4e9699['_suggestionFactory']['registerCustomCallback'](_0x2b76f2,'tablePaste',_0x5c1c78,(_0x33381c,_0x2dbf3e,_0x4901b4)=>{_0x4cbef5['model']['change'](_0x3d9c78=>{const _0x3e552b=[];for(const _0x7467f5 of _0x33381c){const _0x224cff=_0x7467f5['start']['nodeAfter'];_0x224cff['is']('element','tableCellSuggestion')&&_0x3e552b['push'](_0x224cff);}_0x4e9699['_suggestionFactory']['getSuggestionCallback'](_0x2b76f2,null,_0x5c1c78)(_0x33381c,_0x2dbf3e,_0x4901b4);for(const _0x2880ca of _0x3e552b)'$graveyard'!=_0x2880ca['root']['rootName']&&_0x3d9c78['unwrap'](_0x2880ca);});});};_0x264a4d('insertion','accept'),_0x264a4d('insertion','discard'),_0x264a4d('deletion','accept'),_0x264a4d('deletion','discard'),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x19ef31=>{const _0xf876d8=_0x19ef31['map'](_0x37ee5c=>_0x37ee5c['getContainedElement']()),_0x419396=_0xf876d8[0x0]['findAncestor']('table'),{minRow:_0x1ffeff,maxRow:_0x1930c6}=_0x5d99c8['_getCoordsForCells'](_0xf876d8);_0x3a8204['removeRows'](_0x419396,{'at':_0x1ffeff,'rows':_0x1930c6-_0x1ffeff+0x1});}),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x301355=>{const _0x1c7d63=_0x301355['map'](_0x5b90b9=>_0x5b90b9['getContainedElement']()),_0x189a98=_0x1c7d63[0x0]['findAncestor']('table'),{minColumn:_0x31a708,maxColumn:_0x497d49}=_0x5d99c8['_getCoordsForCells'](_0x1c7d63);_0x3a8204['removeColumns'](_0x189a98,{'at':_0x31a708,'columns':_0x497d49-_0x31a708+0x1});});const _0x58699a=(_0xd1af14,_0x3fb1bb)=>{if(!_0x3fb1bb['subType']||!_0x3fb1bb['subType']['startsWith']('tablePaste'))return;const _0x4984fd=_0x3fb1bb['attributes']['tablePasteChainId'],_0x2d4069=_0x4e9699['getSuggestions']()['filter'](_0x568c2e=>_0x568c2e['isInContent']&&_0x568c2e['attributes']&&_0x568c2e['attributes']['tablePasteChainId']==_0x4984fd);_0x2d4069['length']&&_0x3fb1bb['getAllAdjacentSuggestions']()['length']!=_0x2d4069['length']&&_0x2d4069['reduce']((_0x11d093,_0x4fa242)=>(_0x11d093['next']=_0x4fa242,_0x4fa242['previous']=_0x11d093,_0x4fa242));};function _0x3debe2(_0x5cfcf1,_0x514787=!0x0){const {id:_0x4ff712,authorId:_0x22f460}=et(_0x5cfcf1['markerName']),_0x50050e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e093a=_0x4e9699['activeMarkers']['includes'](_0x5cfcf1['markerName']);return _0x5e093a&&_0x50050e['push']('ck-suggestion-marker--active'),{'classes':_0x50050e,'attributes':{'data-suggestion':_0x4ff712,'data-author-id':_0x22f460},'priority':_0x5e093a&&_0x514787?0xbc2:0xbb8};}_0x4e9699['on']('suggestionLoaded',_0x58699a,{'priority':'high'}),_0x4e9699['on']('suggestionUnloaded',_0x58699a,{'priority':'high'}),_0x4cbef5['model']['document']['registerPostFixer'](()=>{let _0x2c9cd5=!0x1;const _0x581614=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc3dc,data:_0x100578}of _0x581614){const {group:_0x46374e,type:_0x2ba21a,id:_0x3a50ef}=et(_0x3fc3dc);if('suggestion'!=_0x46374e||'deletion'!=_0x2ba21a||_0x100578['oldRange'])continue;if(!_0x4e9699['hasSuggestion'](_0x3a50ef))continue;const _0x46f670=_0x4e9699['getSuggestion'](_0x3a50ef)['getRanges'](),_0x4cc462=_0x4cbef5['plugins']['get']('Users')['me'];for(const _0x4ed939 of _0x4e9699['getSuggestions']())if(_0x4ed939['isInContent']&&_0x4ed939['author']==_0x4cc462&&'formatBlock'==_0x4ed939['type']&&'tablePasteCell'==_0x4ed939['subType']&&_0x4ed939['getRanges']()['every'](_0x1f39cc=>_0x46f670['some'](_0x50ff62=>_0x50ff62['containsRange'](_0x1f39cc,!0x0)))){for(const _0x4c3ee9 of _0x4ed939['getAllAdjacentSuggestions']())_0x4c3ee9['isInContent']&&(_0x4c3ee9['discard'](),_0x2c9cd5=!0x0);}}return _0x2c9cd5;}),_0x4cbef5['model']['document']['registerPostFixer'](_0xdeb214=>{const _0x358c5c=_0x4cbef5['commands']['get']('redo');if(!_0x358c5c||!_0x358c5c['_createdBatches']['has'](_0xdeb214['batch']))return!0x1;let _0x234aac=!0x1;const _0x24f40f=_0x4cbef5['plugins']['get']('Users')['me'],_0x159d96=_0x4cbef5['model']['document']['differ']['getChanges'](),_0x28e175=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x156a15,data:_0xa21596})=>{const {group:_0x11231a,subType:_0x141f40,authorId:_0x320063}=et(_0x156a15);return'suggestion'==_0x11231a&&'tablePaste'==_0x141f40&&_0x320063==_0x24f40f['id']&&!_0xa21596['oldRange'];});for(const _0x303a88 of _0x159d96){if('insert'!=_0x303a88['type']||'tableCellSuggestion'!=_0x303a88['name']||0x1!=_0x303a88['length'])continue;const _0x3c3204=_0xdeb214['createRange'](_0x303a88['position'],_0x303a88['position']['getShiftedBy'](0x1));if(!_0x28e175['find'](({data:_0x42aa4a})=>_0x42aa4a['newRange']['isEqual'](_0x3c3204))){for(const {name:_0x15b1ed,data:_0x3cc0d2}of _0x28e175)if(_0x3c3204['containsRange'](_0x3cc0d2['newRange'])){_0xdeb214['updateMarker'](_0x15b1ed,{'range':_0x3c3204}),_0x234aac=!0x0;break;}}}return _0x234aac;}),_0x4cbef5['model']['document']['registerPostFixer'](_0x3d1a99=>{let _0x8eaacc=!0x1;const _0x2951d5=_0x4cbef5['plugins']['get']('Users')['me'],_0x35fa61=_0x4e9699['getSuggestions']()['filter'](_0x40ba23=>_0x40ba23['isInContent']&&_0x40ba23['author']==_0x2951d5),_0x1630bc=new Set(),_0x3f98db=new Set();for(const _0x2f691c of _0x35fa61)if('tablePaste'==_0x2f691c['subType'])for(const _0x581fca of _0x2f691c['getMarkers']()){const _0x289302=_0x581fca['getRange']()['getContainedElement']();if(_0x289302){if(_0x289302['is']('element','tableCellSuggestion')&&Ke(_0x289302)){_0x2f691c['removeMarker'](_0x581fca['name']),_0x1630bc['add'](_0x289302),_0x8eaacc=!0x0;const _0x2df403=_0x289302['nextSibling'],_0xaad945=_0x289302['previousSibling'],_0xb2304d=_0x2df403&&_0x2df403['is']('element','tableCellSuggestion'),_0x464805=_0xaad945&&_0xaad945['is']('element','tableCellSuggestion');_0xb2304d&&!_0x1630bc['has'](_0x2df403)&&_0x3f98db['add'](_0x2df403),_0x464805&&!_0x1630bc['has'](_0xaad945)&&_0x3f98db['add'](_0xaad945);}else _0x289302['is']('element','paragraph')&&_0x289302['isEmpty']&&(_0x2f691c['removeMarker'](_0x581fca['name']),_0x8eaacc=!0x0);}}else{if('tablePasteCell'==_0x2f691c['subType']){if(!_0x2f691c['attributes']||!_0x2f691c['attributes']['tablePasteChainId'])continue;const _0x59cfc9=_0x2f691c['attributes']['markerAttributes'];if(_0x59cfc9&&Object['keys'](_0x59cfc9)['length'])continue;const _0x2ca634=_0x2f691c['attributes']['tablePasteChainId'];let _0x56b72f=!0x0,_0x447036=!0x0;for(const _0x22ba4e of _0x35fa61)if(_0x22ba4e['subType']&&_0x22ba4e['subType']['startsWith']('tablePaste')){if(!_0x22ba4e['attributes']['tablePasteChainId']){_0x447036=!0x1;break;}if(_0x22ba4e['id']!=_0x2f691c['id']&&_0x22ba4e['attributes']['tablePasteChainId']==_0x2ca634){_0x56b72f=!0x1;break;}}_0x447036&&_0x56b72f&&(_0x2f691c['removeMarkers'](),_0x8eaacc=!0x0);}}for(const _0x4080cb of _0x1630bc)_0x3d1a99['remove'](_0x4080cb);for(const _0x5c75f6 of _0x3f98db)_0x3d1a99['unwrap'](_0x5c75f6);return _0x8eaacc;}),_0x4cbef5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4914d2=>_0x3debe2(_0x4914d2),'converterPriority':'high'}),_0x4cbef5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x348510,_0x19d4ce)=>_0x19d4ce['options']['showSuggestionHighlights']?_0x3debe2(_0x348510,!0x1):null,'converterPriority':'high'});const _0x4c88ed=_0x4cbef5['editing']['view'];this['listenTo'](_0x4c88ed['document'],'clipboardOutput',(_0x15aec1,_0x5143c5)=>{const _0x12bd1b=[];for(const _0x2021aa of _0x4c88ed['createRangeIn'](_0x5143c5['content'])['getItems']())_0x2021aa['is']('element','suggestion-td')&&_0x12bd1b['push'](_0x2021aa);_0x4c88ed['change'](_0x464e7b=>{for(const _0x4f1aa7 of _0x12bd1b)_0x464e7b['move'](_0x464e7b['createRangeIn'](_0x4f1aa7),_0x464e7b['createPositionBefore'](_0x4f1aa7)),_0x464e7b['remove'](_0x4f1aa7);});});}};function Ke(_0x4fc819){if(_0x4fc819['isEmpty'])return!0x0;const _0x418ed9=_0x4fc819['getChild'](0x0);return _0x418ed9['is']('element','paragraph')&&_0x418ed9['isEmpty'];}function Xe(_0x591f30,_0x1cb490={},_0x4f3838){for(const {isAnchor:_0x5de5ac,cellHeight:_0x2e8b5b,cellWidth:_0x3cb5fb}of _0x4f3838['createTableWalker'](_0x591f30,{'includeAllSlots':!0x0,..._0x1cb490}))if(!_0x5de5ac||0x1!=_0x2e8b5b||0x1!=_0x3cb5fb)return!0x1;return!0x0;}var qe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x12a839=this['editor']['plugins']['get']('TrackChangesEditing');_0x12a839['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x12a839['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x101a8f=_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x26e408,_0x36e999)=>{_0x101a8f(_0x26e408,_0x36e999),this['_restoreCellWidths'](_0x26e408[0x0]['start']['nodeAfter'],_0x36e999['commandParams'][0x0]['cellWidths']);}),_0x12a839['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3a3f6d,_0x533f84){const _0x12a326=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a1700=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd8e07f=_0x533f84['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x310999=_0x1a1700['getColumnGroupElement'](_0xd8e07f);let _0x1d3fb4=_0x310999?_0x1a1700['getTableColumnsWidths'](_0x310999):null,_0x3d673e=_0xd8e07f['getAttribute']('tableWidth')||null;const _0x365126=_0x533f84['tableWidth']||_0x3d673e,_0x1f4858=_0x533f84['columnWidths']||_0x1d3fb4;let _0x3dbd41=this['_getCellWidths'](_0xd8e07f);const _0x414634=this['_foldResizeTableSuggestion'](_0xd8e07f);_0x414634&&(_0x3d673e=_0x414634['tableWidth'],_0x1d3fb4=_0x414634['columnWidths'],_0x3dbd41=_0x414634['cellWidths']||_0x3dbd41),_0x3a3f6d({'table':_0xd8e07f,'tableWidth':_0x365126,'columnWidths':_0x1f4858}),_0x12a326['markBlockFormat'](_0xd8e07f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d673e,'columnWidths':_0x1d3fb4,'cellWidths':_0x3dbd41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x27c83c,_0xc32c78={}){if(void 0x0===_0xc32c78['value']||''===_0xc32c78['value'])return void _0x27c83c(_0xc32c78);const _0x3566b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46ce8d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5176a4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xc32c78['batch']||(_0xc32c78['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xc32c78['batch'],()=>{const _0x45ccd8=_0x46ce8d['getColumnGroupElement'](_0x5176a4);let _0x5ee071=_0x45ccd8?_0x46ce8d['getTableColumnsWidths'](_0x45ccd8):null,_0x3967b4=_0x5176a4['getAttribute']('tableWidth')||null,_0x34c334=this['_getCellWidths'](_0x5176a4);const _0x5374d0=this['_foldResizeTableSuggestion'](_0x5176a4,!0x0);_0x5374d0&&(_0x3967b4=_0x5374d0['tableWidth'],_0x5ee071=_0x5374d0['columnWidths'],_0x34c334=_0x5374d0['cellWidths']||_0x34c334),_0x27c83c(_0xc32c78),_0x3566b8['markBlockFormat'](_0x5176a4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3967b4,'columnWidths':_0x5ee071,'cellWidths':_0x34c334}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x1886d1,_0x549205=!0x1){const _0x53dbac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x770f7c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a17e5 of _0x53dbac['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ece94=_0x5a17e5['getContainedElement']();if('resizeTable'===_0x5a17e5['subType']&&_0x3ece94===_0x1886d1){_0x5a17e5['author']!==_0x770f7c&&(_0x549205?_0x5a17e5['removeMarkers']():_0x5a17e5['discard']());const _0x724e5b=_0x5a17e5['data']['commandParams'];return{'tableWidth':_0x724e5b[0x0]['tableWidth'],'columnWidths':_0x724e5b[0x0]['columnWidths'],'cellWidths':_0x724e5b[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x315cc7){const _0x545c5b=[];for(const _0x29eefa of _0x315cc7['getChildren']())if(_0x29eefa['is']('element','tableRow')){for(const _0x27fbee of _0x29eefa['getChildren']())_0x545c5b['push'](_0x27fbee['getAttribute']('tableCellWidth')||null);}return _0x545c5b;}_restoreCellWidths(_0x453b10,_0x5c7f24){_0x5c7f24&&this['editor']['model']['change'](_0x4c754a=>{let _0x25e04e=0x0;for(const _0x1341f7 of _0x453b10['getChildren']())if(_0x1341f7['is']('element','tableRow'))for(const _0x4cc836 of _0x1341f7['getChildren']()){const _0x4f442c=_0x5c7f24[_0x25e04e++];_0x4f442c&&_0x4c754a['setAttribute']('tableCellWidth',_0x4f442c,_0x4cc836);}});}handleSuggestionDescription(_0x458b60){if('formatBlock'!=_0x458b60['type']&&'formatInline'!=_0x458b60['type'])return;const {data:_0x181366}=_0x458b60;return _0x181366&&'resizeTable'===_0x181366['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x9bd549{afterInit(){const _0x10731d=this['editor'];_0x10731d['plugins']['has']('Template')&&_0x10731d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x9bd549{afterInit(){const _0x17bc7e=this['editor'];if(!_0x17bc7e['commands']['get']('insertTableOfContents'))return;_0x17bc7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f61b9=_0x17bc7e['plugins']['get']('TrackChangesEditing'),_0x2d2230=_0x17bc7e['locale'];_0x3f61b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x570ed1=>Ot(_0x2d2230,'ELEMENT_TABLE_OF_CONTENTS',_0x570ed1));}},Ze=class extends _0x9bd549{afterInit(){const _0x1f672c=this['editor'];_0x1f672c['plugins']['has']('Title')&&(_0x1f672c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1f672c['locale'],'ELEMENT_TITLE')),_0x1f672c['model']['document']['registerPostFixer'](_0x39f4d0=>{let _0x40696f=!0x1;const _0x65e20a=Array['from'](_0x1f672c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b13bc,data:_0x2a8459}of _0x65e20a){const {group:_0x5f2dec}=et(_0x5b13bc);if('suggestion'!==_0x5f2dec||!_0x2a8459['newRange'])continue;const _0x38599c=_0x2a8459['newRange'],_0x27cb15=_0x38599c['end']['nodeBefore'];if(!_0x27cb15||!_0x27cb15['is']('element','title-content'))continue;if(!_0x38599c['start']['isTouching'](_0x38599c['end']))continue;const _0x552700=_0x1f672c['model']['schema']['getNearestSelectionRange'](_0x38599c['end'],'forward');if(_0x552700&&_0x552700['isCollapsed']){const _0x37a497=_0x39f4d0['createRange'](_0x38599c['start'],_0x552700['start']);_0x37a497['isEqual'](_0x38599c)||(_0x39f4d0['updateMarker'](_0x5b13bc,{'range':_0x37a497}),_0x40696f=!0x0);}_0x40696f||(_0x39f4d0['removeMarker'](_0x5b13bc),_0x40696f=!0x0);}return _0x40696f;}));}},Je=class extends _0x9bd549{afterInit(){const _0x3046e8=this['editor'],_0xed4740=_0x3046e8['plugins']['get']('TrackChangesEditing');_0x3046e8['plugins']['has']('Uploadcare')&&(_0xed4740['enableCommand']('uploadcare'),_0x3046e8['plugins']['has']('UploadcareImageEdit')&&(_0xed4740['enableCommand']('uploadcareImageEdit'),_0xed4740['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xed4740['descriptionFactory']['registerDescriptionCallback'](_0x920549=>{if('attribute'!=_0x920549['type'])return;const {data:_0x134fdf}=_0x920549;return _0x134fdf&&'uploadcareImageId'==_0x134fdf['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x9bd549{afterInit(){const _0xce3c4d=this['editor'],_0x566b3f=_0xce3c4d['plugins']['get']('TrackChangesEditing');_0xce3c4d['plugins']['has']('UndoEditing')&&(_0x566b3f['enableCommand']('undo'),_0x566b3f['enableCommand']('redo'));}},en=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x501294=this['editor'];_0x501294['plugins']['has']('TableCaptionEditing')&&_0x501294['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x9bd549{tableProperties;tableCellProperties;constructor(_0x28bf93){super(_0x28bf93),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 _0x2b6a5e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x426578 of this['tableProperties'])_0x2b6a5e['enableCommand'](_0x426578,(_0x657732,_0x536e6f)=>{const _0x5c56d4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x426578,[_0x5c56d4],this['tableProperties'],'tableProperties',_0x657732,_0x536e6f);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8fd700,_0x2a9692)=>this['handleDiscardAction'](this['tableProperties'],_0x8fd700,_0x2a9692)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a1192 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2a1192)&&_0x2b6a5e['enableCommand'](_0x2a1192,(_0x451187,_0x4016c6)=>{const _0x5e6584=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a1192,_0x5e6584,this['tableCellProperties'],'tableCellProperties',_0x451187,_0x4016c6);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6dfabd,_0x46f3e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6dfabd,_0x46f3e4)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2b6a5e['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2b6a5e['descriptionFactory']['registerDescriptionCallback'](_0x17ea0a=>this['handleSuggestionDescription'](_0x17ea0a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x306c1d,_0x4dac43,_0xd749fe,_0x32201a,_0x18b558,_0x18a51d){const _0x4c73f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18a51d['batch'],()=>{for(const _0x17d1fc of _0x4dac43)if(this['_getSuggestion'](_0x17d1fc,_0x32201a))_0x18b558(_0x18a51d);else{const _0xc10dd2={};for(const _0x487df0 of _0xd749fe){const _0x21bb74=_0x17d1fc['getAttribute'](_0x487df0);void 0x0!==_0x21bb74&&(_0xc10dd2[_0x487df0]=_0x21bb74);}const _0xc7fdb3=this['_getResizedColumnWidths'](_0x17d1fc);_0xc7fdb3&&(_0xc10dd2['columnWidths']=_0xc7fdb3),_0x18b558(_0x18a51d),_0x4c73f0['markBlockFormat'](_0x17d1fc,{'commandParams':[_0xc10dd2]},[],_0x32201a);}});}handleDiscardAction(_0x5b5a17,_0x586d5b,_0x58f3ef){const _0x4bb590=_0x586d5b[0x0]['start']['nodeAfter'],_0x3c09da=_0x58f3ef['commandParams'][0x0];this['editor']['model']['change'](_0x5ae3ad=>{for(const _0x4615ad of _0x5b5a17)void 0x0!==_0x3c09da[_0x4615ad]?_0x5ae3ad['setAttribute'](_0x4615ad,_0x3c09da[_0x4615ad],_0x4bb590):_0x5ae3ad['removeAttribute'](_0x4615ad,_0x4bb590);if(_0x3c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x4c1f25=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x279368=_0x4c1f25['getColumnGroupElement'](_0x4bb590);if(_0x279368){const _0x248097=_0x4c1f25['getTableColumnsWidths'](_0x279368),_0x36ad81=_0x4bb590['getAttribute']('tableWidth');if(('string'==typeof _0x36ad81&&_0x36ad81['trim']()['endsWith']('px'))!==_0x248097['some'](_0x310d7f=>'string'==typeof _0x310d7f&&_0x310d7f['endsWith']('px'))){const _0x4afd27=_0x4c1f25['getTableColumnElements'](_0x279368);_0x3c09da['columnWidths']['forEach']((_0x3db0e1,_0x15573a)=>{_0x4afd27[_0x15573a]&&_0x5ae3ad['setAttribute']('columnWidth',_0x3db0e1,_0x4afd27[_0x15573a]);});}}}});}_getResizedColumnWidths(_0x231747){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x231747['is']('element','table'))return;const _0x198dbc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x466ec6=_0x198dbc['getColumnGroupElement'](_0x231747);return _0x466ec6?_0x198dbc['getTableColumnsWidths'](_0x466ec6):void 0x0;}handleSuggestionDescription(_0x58ae34){if(_0x58ae34['data'])switch(_0x58ae34['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x2af16e,_0x445838){const _0x402da8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x430ab2 of _0x402da8['getSuggestions']({'skipNotAttached':!0x0})){const _0x117ba0=_0x430ab2['getContainedElement']();if(_0x430ab2['subType']===_0x445838&&_0x117ba0===_0x2af16e)return _0x430ab2;}return null;}_registerTablePropertiesAttributes(){const _0xbc1b19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cdd29=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4bc5e0 of _0x5cdd29){const _0x5ddb13=_0x4bc5e0['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xbc1b19['descriptionFactory']['registerAttributeLabel'](_0x4bc5e0,Ot(this['editor']['locale'],'FORMAT_'+_0x5ddb13));}}},sn=class extends _0x9bd549{afterInit(){const _0x2d8ae3=this['editor'];if(!_0x2d8ae3['plugins']['has']('LineHeight'))return;const _0x95370f=_0x2d8ae3['plugins']['get']('TrackChangesEditing'),_0x52d2c4=_0x2d8ae3['locale'];_0x95370f['enableDefaultAttributesIntegration']('lineHeight'),_0x95370f['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x52d2c4,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x9bd549{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x203ad7,_0x358b09,_0xfe45c9,_0x4f7893,_0x2c9489,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45af0f){super(_0x45af0f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d6c9c,_0x331792,_0x11c831,_0x4dbbe3)=>{this['_model']['change'](()=>{for(const _0x30fb4a of[..._0x4dbbe3,..._0x11c831])this['_model']['markers']['has'](_0x30fb4a)&&_0x45af0f['editing']['reconvertMarker'](_0x30fb4a);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45af0f['plugins']['get'](_0x203ad7),this['_suggestionsConversion']=_0x45af0f['plugins']['get'](_0x358b09),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45af0f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45af0f['config']['get']('trackChanges.trackFormatChanges'),_0x45af0f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45af0f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x45af0f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4f9135=this['editor'];_0x4f9135['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x22a783,{writer:_0xb78b6c})=>{let _0x374dc9='suggestion:'+_0x22a783['getAttribute']('suggestion-type')+':'+_0x22a783['getAttribute']('id');return _0x22a783['getAttribute']('marker-count')&&(_0x374dc9+=':'+_0x22a783['getAttribute']('marker-count')),_0xb78b6c['createElement']('$marker',{'data-name':_0x374dc9});}}),_0x4f9135['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f9135['model']['document']['registerPostFixer'](_0xb0c7b9=>{let _0x1789bc=!0x1;const _0x418d8f=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']()),_0xe54dbf=new Set();for(const {name:_0x5a5123,data:_0x2354ea}of _0x418d8f){const {group:_0x1bd1b3,type:_0x480ee9,subType:_0x5c8e1f,id:_0x5e5d51}=et(_0x5a5123);if('suggestion'!==_0x1bd1b3)continue;const _0x261eaa=_0x5c8e1f?'suggestion:'+_0x480ee9+':'+_0x5c8e1f+':'+_0x5e5d51:'suggestion:'+_0x480ee9+':'+_0x5e5d51,_0x5332e9=_0x4f9135['model']['markers']['getMarkersGroup'](_0x261eaa),_0x34f4ec=_0x4f9135['model']['markers']['get'](_0x5a5123),_0x4b5fb0=this['_suggestions']['get'](_0x5e5d51);if(null!=_0x2354ea['newRange']){'formatInline'==_0x480ee9&&(_0x1789bc=_0x1789bc||un(_0x2354ea['newRange'],_0x5a5123,_0xb0c7b9,_0x4f9135['model']['schema']));const _0x3bc312='attribute'==_0x480ee9&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x5c8e1f)),_0x328915='attribute'==_0x480ee9&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x5c8e1f));if(_0x2354ea['newRange']['isCollapsed']||'$graveyard'==_0x2354ea['newRange']['root']['rootName']||'formatBlock'==_0x480ee9&&!hn(_0x2354ea['newRange'])||_0x3bc312&&!hn(_0x2354ea['newRange'])||_0x328915&&gn(_0x2354ea['newRange'])||'deletion'==_0x480ee9&&gn(_0x2354ea['newRange'])||_0x34f4ec&&fn(_0x34f4ec,_0x5332e9))_0xb0c7b9['removeMarker'](_0x5a5123),_0x1789bc=!0x0;else{if(!_0x4b5fb0||!_0x4b5fb0['isInContent'])continue;if(_0x2354ea['newRange']&&_0x2354ea['oldRange']&&_0x2354ea['newRange']['isEqual'](_0x2354ea['oldRange']))continue;_0xe54dbf['add'](_0x4b5fb0);}}}return _0xe54dbf['size']>0x0&&(_0x1789bc=!!this['_joinWithAdjacentSuggestions'](_0xe54dbf)||_0x1789bc),_0x1789bc;}),_0x4f9135['model']['document']['registerPostFixer'](_0x5c9d33=>{let _0x1e919b=!0x1;for(const _0x148885 of _0x4f9135['model']['document']['differ']['getChanges']())if('insert'==_0x148885['type'])for(const _0x2164d6 of this['_suggestions']['values']()){if(_0x2164d6['isMultiRange']||!_0x2164d6['isInContent'])continue;const _0x11cdd2='formatBlock'==_0x2164d6['type'],_0x2ed835=this['_getAttributeKey'](_0x2164d6),_0x10b926=_0x2ed835&&this['_suggestionsConversion']['isBlockAttribute'](_0x2ed835);if(!_0x11cdd2&&!_0x10b926)continue;const _0x3bc5b1=_0x2164d6['getFirstRange']();if(_0x3bc5b1['start']['parent']!=_0x3bc5b1['end']['parent']&&!_0x3bc5b1['end']['isAtEnd']){const _0x2e0663=_0x4f9135['model']['createPositionAt'](_0x3bc5b1['start']['nodeAfter'],'end'),_0x434914=_0x4f9135['model']['createRange'](_0x3bc5b1['start'],_0x2e0663);_0x5c9d33['updateMarker'](_0x2164d6['getFirstMarker'](),{'range':_0x434914}),_0x1e919b=!0x0;}}return _0x1e919b;}),_0x4f9135['model']['document']['registerPostFixer'](_0x4c4b00=>this['_processAttributeChanges'](_0x4c4b00)),_0x4f9135['model']['document']['registerPostFixer'](_0xd7d43=>!_0xd7d43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd7d43)),_0x4f9135['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f9135['model']['document']['on']('change:data',(_0x40e819,_0x48cfac)=>{if(!_0x48cfac['isLocal']||_0x48cfac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ef1d7=_0x4f9135['model']['document']['differ']['getChanges']();if(0x0==_0x3ef1d7['length'])return;const _0x5377a9=[],_0x466e17=_0x3ef1d7['filter'](_0x1bc317=>'attribute'==_0x1bc317['type']),_0x4cc155=_0x3ef1d7['filter'](_0x98629a=>'insert'==_0x98629a['type']&&'$text'!=_0x98629a['name']);for(const _0x3a2cdd of _0x466e17)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3a2cdd['attributeKey'])&&_0x5377a9['push']({'key':_0x3a2cdd['attributeKey'],'newValue':_0x3a2cdd['attributeNewValue'],'oldValue':_0x3a2cdd['attributeOldValue'],'range':mn(_0x3a2cdd['range'],_0x4f9135['model'])});for(const _0x88b9c9 of _0x4cc155){if('rename'!=_0x88b9c9['action']&&'refresh'!=_0x88b9c9['action'])continue;const _0x5d0748=En(_0x88b9c9['position']['nodeAfter'],_0x4f9135['model']),_0x3bd44d=_0x88b9c9['before'];'rename'==_0x88b9c9['action']&&_0x5377a9['push']({'key':rn,'newValue':_0x88b9c9['name'],'oldValue':_0x3bd44d['name'],'range':_0x5d0748});for(const [_0x3ad3e9,_0x1d5d01]of _0x3bd44d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3ad3e9))continue;const _0x508710=_0x88b9c9['attributes']['get'](_0x3ad3e9);_0x1d5d01!==_0x508710&&_0x5377a9['push']({'key':_0x3ad3e9,'newValue':_0x508710,'oldValue':_0x1d5d01,'range':_0x5d0748});}for(const [_0x170a76,_0x490fef]of _0x88b9c9['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x170a76)&&(_0x3bd44d['attributes']['has'](_0x170a76)||_0x5377a9['push']({'key':_0x170a76,'newValue':_0x490fef,'oldValue':null,'range':_0x5d0748}));}0x0!=_0x5377a9['length']&&_0x4f9135['model']['enqueueChange'](_0x48cfac,_0xeaa8a9=>{const _0x38b15e=_0x2e6a13();for(const {range:_0x2b0eb9,key:_0x519832,oldValue:_0x2545bc,newValue:_0x31b5f7}of _0x5377a9)this['markAttributeChange'](_0x2b0eb9,_0x519832,_0x2545bc,_0x31b5f7,{'groupId':_0x38b15e});this['_reduceExistingSuggestions'](_0xeaa8a9,_0x5377a9);});},{'priority':'lowest'}),_0x4f9135['model']['markers']['on']('update:suggestion',(_0x493bb1,_0xd0ede5,_0x5506b5)=>{if(null==_0x5506b5){const {id:_0x499ea1}=et(_0xd0ede5['name']),_0x154bf6=this['_suggestions']['get'](_0x499ea1);_0x154bf6&&_0x154bf6['addMarkerName'](_0xd0ede5['name']);}}),_0x4f9135['model']['document']['on']('change:data',()=>{const _0x542370=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']())['filter'](_0x495c8c=>'suggestion'===et(_0x495c8c['name'])['group']);if(0x0===_0x542370['length'])return;_0x542370['sort']((_0x3c3a12,_0x170155)=>{const _0x4c82a3=_0x3c3a12['data']['oldRange'],_0xcc1fb1=_0x170155['data']['oldRange'];return null===_0x4c82a3&&null===_0xcc1fb1?0x0:null===_0x4c82a3&&null!==_0xcc1fb1?-0x1:null!==_0x4c82a3&&null===_0xcc1fb1?0x1:_0x4c82a3['start']['isBefore'](_0xcc1fb1['start'])?-0x1:0x1;});const _0x57e19c=new Set(),_0x4538f0=new Set();for(const {name:_0x5def4c,data:_0x16d009}of _0x542370){const {id:_0x1e1a3b}=et(_0x5def4c);if(null===_0x16d009['oldRange']){const _0x2f2988=this['_handleNewSuggestionMarker'](_0x5def4c);_0x4538f0['add'](_0x2f2988);}else{const _0x4e1c0e=this['_suggestions']['get'](_0x1e1a3b);null!==_0x16d009['newRange']||_0x4e1c0e['isInContent']?(_0x57e19c['add'](_0x4e1c0e['head']),_0x4538f0['add'](_0x4e1c0e)):this['_removeSuggestion'](_0x4e1c0e);}}_0x4538f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x4538f0);for(const _0x1ea47d of _0x57e19c)this['fire']('suggestionChanged',_0x1ea47d);}),_0x4f9135['model']['on']('applyOperation',(_0x12b767,_0x290a18)=>{const _0x1c7ebd=_0x290a18[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c7ebd['isDocumentOperation'])return;if(_0x1c7ebd['batch']['isUndo']||!_0x1c7ebd['batch']['isLocal'])return;let _0x1ba590,_0x3eb7fa;switch(_0x1c7ebd['type']){case'insert':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['position']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;case'split':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['splitPosition']),_0x3eb7fa=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['moveTargetPosition']);break;case'move':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['targetPosition']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;default:return;}const _0x2c060c=_0x4f9135['model']['createRange'](_0x1ba590,_0x3eb7fa);_0x4f9135['model']['change'](()=>{for(const {suggestion:_0x3d4a1a,meta:_0x4f6147}of this['_findSuggestions'](_0x2c060c)){if(_0x3d4a1a['isMultiRange'])continue;if('formatInline'==_0x3d4a1a['type'])continue;const _0x17da63=this['_getAttributeKey'](_0x3d4a1a);if(_0x17da63&&this['_suggestionsConversion']['isBlockAttribute'](_0x17da63)&&'split'!=_0x1c7ebd['type'])continue;const _0x328457=_0x3d4a1a['data']&&_0x3d4a1a['data']['multipleBlocks'];('formatBlock'!=_0x3d4a1a['type']||'split'==_0x1c7ebd['type']&&!_0x328457)&&(_0x4f6147['containsRangeInObject']||'insertion'==_0x3d4a1a['type']&&_0x4f6147['isOwn']||_0x3d4a1a['getFirstRange']()['containsRange'](_0x2c060c)&&this['_breakSuggestionMarker'](_0x3d4a1a,_0x1ba590,_0x3eb7fa));}});},{'priority':'lowest'}),_0x4f9135['model']['on']('deleteContent',(_0x103535,_0x172f68)=>{const _0x4067b1=_0x172f68[0x0],_0x373dc6=_0x172f68[0x1];if(_0x373dc6&&_0x373dc6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4067b1['isCollapsed'])return;const _0xcb5a4b=_0x4f9135['model']['schema'],{start:_0x46ddc3,end:_0x1198a0}=_0x4067b1['getFirstRange'](),_0x41f5d0=_0x46ddc3['nodeAfter']&&_0xcb5a4b['isLimit'](_0x46ddc3['nodeAfter'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x46ddc3,'forward'),_0x547abb=_0x1198a0['nodeBefore']&&_0xcb5a4b['isLimit'](_0x1198a0['nodeBefore'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x1198a0,'backward'),_0x4db3ca=_0x4f9135['model']['createRange'](_0x41f5d0?_0x41f5d0['start']:_0x46ddc3,_0x547abb?_0x547abb['end']:_0x1198a0);_0x4f9135['model']['change'](_0x4f722c=>{this['markDeletion'](_0x4db3ca);const _0x59dde0=_0x4f9135['model']['schema']['getNearestSelectionRange'](_0x4db3ca['start']);_0x4067b1['is']('documentSelection')?_0x4f722c['setSelection'](_0x59dde0):_0x4067b1['setTo'](_0x59dde0);}),_0x103535['stop']();},{'priority':_0x2b2839['normal']+0xa}),_0x4f9135['model']['on']('insertContent',(_0x317b81,_0x47605b)=>{const _0x86d576=_0x47605b[_0x47605b['length']-0x1];_0x86d576&&_0x86d576['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f9135['model']['change'](()=>{let _0x2dc0b2=_0x4f9135['model']['insertContent'](_0x47605b[0x0],_0x47605b[0x1],_0x47605b[0x2],{'forceDefaultExecution':!0x0});if(!_0x2dc0b2)return;_0x317b81['return']=_0x2dc0b2['clone']();const _0x1db76e=_0x2dc0b2['end']['nodeBefore'],_0x137d6f=_0x4f9135['model']['schema'];_0x1db76e&&_0x137d6f['isBlock'](_0x1db76e)&&!_0x137d6f['isObject'](_0x1db76e)&&(_0x2dc0b2=_0x4f9135['model']['createRange'](_0x2dc0b2['start'],_0x4f9135['model']['createPositionAt'](_0x1db76e,'end'))),this['markInsertion'](_0x2dc0b2);}),_0x317b81['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d2a56=new pt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('acceptSuggestion',_0x3d2a56),this['enableCommand']('acceptSuggestion');const _0xafb1ac=new Lt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('discardSuggestion',_0xafb1ac),this['enableCommand']('discardSuggestion'),_0x4f9135['commands']['add']('acceptAllSuggestions',new yt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f9135['commands']['add']('discardAllSuggestions',new yt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f9135['commands']['add']('acceptSelectedSuggestions',new Nt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f9135['commands']['add']('discardSelectedSuggestions',new Nt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10513c=_0x4f9135['plugins']['get'](_0x203ad7);this['listenTo'](_0x10513c,'addComment',(_0x3c9585,{threadId:_0x9b2814})=>{const _0x5710f5=this['_suggestions']['get'](_0x9b2814);_0x5710f5&&_0x5710f5['commentThread']&&0x1===_0x5710f5['commentThread']['length']&&this['_updateSuggestionData'](_0x9b2814,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10513c,'removeComment',(_0x969447,{threadId:_0xd59438})=>{const _0x106937=this['_suggestions']['get'](_0xd59438);_0x106937&&_0x106937['commentThread']&&!_0x106937['commentThread']['length']&&this['_updateSuggestionData'](_0xd59438,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x46a1a4){const _0x1d89bf='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x267d7f=0x79158,_0x195b30=window['Date']['now'](),_0x30392f=_0x46a1a4['editor'],_0x2d0b7d=new window['Promise'](_0x102600=>{_0x30392f['once']('ready',_0x102600);}),_0x10fb3f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x10221d=_0x30392f['config']['get']('licenseKey');async function _0x3b37c9(){let _0x276394,_0x15dec1=null,_0x5c799c=null;try{return'GPL'==_0x10221d?'NotAllowed':(_0x276394=_0x5dc09b(),_0x276394?(_0x276394['usageEndpoint']&&(_0x5c799c=_0x1525ac(_0x276394['usageEndpoint'],_0x276394['jti'])),await _0x1ea715()?_0x5cc7ec()?_0x23cb6a()?'Expired':_0x54650b()?('evaluation'==_0x276394['licenseType']&&(_0x15dec1=_0x1ddeee('EvaluationLimit')),await _0xdb49bf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x23cb6a(){const _0x7d6a42=['evaluation','trial']['includes'](_0x276394['licenseType'])?_0x195b30/0x3e8:0xe10*_0x267d7f;return _0x276394['exp']<_0x7d6a42;}function _0x5cc7ec(){const _0x2c417a=_0x276394['features'];if(!_0x2c417a)return!0x1;if(_0x2c417a['includes']('*'))return!0x0;if(_0x2c417a['includes']('TC'))return!0x0;if(_0x2c417a['includes']('RTC')){if(_0x1d9c94())return!0x0;if(_0x5678e9()||_0x546101())return!0x0;}return!0x1;}function _0x54650b(){const _0x18df40=_0x276394['licensedHosts'];if(!_0x18df40||0x0==_0x18df40['length'])return!0x0;const {hostname:_0x9f4428}=new URL(window['location']['href']);if(_0x18df40['includes'](_0x9f4428))return!0x0;const _0x1e48ee=_0x9f4428['split']('.');return _0x18df40['filter'](_0x59c194=>_0x59c194['includes']('*'))['map'](_0x12aff3=>_0x12aff3['split']('.'))['filter'](_0x4bc2dc=>_0x4bc2dc['length']<=_0x1e48ee['length'])['map'](_0x28c1cf=>Array(_0x1e48ee['length']-_0x28c1cf['length'])['fill']('*'===_0x28c1cf[0x0]?'*':'')['concat'](_0x28c1cf))['some'](_0x4d01b9=>_0x1e48ee['every']((_0x45b62b,_0x20a3ee)=>_0x4d01b9[_0x20a3ee]===_0x45b62b||'*'===_0x4d01b9[_0x20a3ee]));}function _0xdb49bf(){return _0x15dec1&&_0x5c799c?new window['Promise']((_0x16e5c6,_0x397306)=>{_0x15dec1['then'](_0x16e5c6,_0x397306),_0x5c799c['then'](_0x5f19e2=>{'Valid'!=_0x5f19e2&&_0x16e5c6(_0x5f19e2);},_0x397306);}):_0x15dec1||_0x5c799c||'Valid';}}function _0x1525ac(_0x1819e1,_0x47db27){return new window['Promise'](_0x54da38=>{if(_0x201c5d())return _0x54da38('Valid');_0x2f4f84(),_0x30392f['decorate']('_sendUsageRequest');let _0x2e43a7=!0x1;const _0x41b265=_0x2e6a13();function _0x440ea8(_0x20ab7b){return!!_0x20ab7b&&('object'==typeof _0x20ab7b||'function'==typeof _0x20ab7b)&&'function'==typeof _0x20ab7b['then']&&'function'==typeof _0x20ab7b['catch'];}function _0x531f59(_0xc4d2c6){_0x41145a(_0xc4d2c6)['then'](_0x33de58=>_0x33de58&&'ok'==_0x33de58['status']?_0x2bef83(_0x1461a8(_0x41b265+_0x47db27))!=_0x33de58['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18aab7=>(_0x47cc1a(),_0x18aab7),()=>{const _0x781a41=_0x45709b();return null==_0x781a41?(_0x47cc1a(),'Valid'):_0x195b30-_0x781a41>0x240c8400?'UsageLimit':'Valid';})['then'](_0x54da38)['catch'](()=>{_0x54da38('UsageLimit');});const _0x5e2a29=0x36ee80;function _0x47cc1a(){const _0x15ee5f='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x21c369=_0x5a8d8c(_0x2bef83(window['Math']['ceil'](_0x195b30/_0x5e2a29)));window['localStorage']['setItem'](_0x15ee5f,_0x21c369);}function _0x45709b(){const _0x2f5157='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x4d0635=window['localStorage']['getItem'](_0x2f5157);return _0x4d0635?window['parseInt'](_0x5a8d8c(_0x4d0635),0x10)*_0x5e2a29:null;}function _0x41145a(_0x5401c9){return new window['Promise']((_0xe00b01,_0x1619fa)=>{_0x5401c9['then'](_0xe00b01,_0x1619fa),window['setTimeout'](_0x1619fa,0x1d4c0);});}}_0x30392f['on']('_sendUsageRequest',(_0x5d227f,_0x1d8b8d)=>{if(_0x1d8b8d[0x0]!=_0x1819e1)return _0x54da38('UsageLimit');_0x1d8b8d[0x1]={..._0x1d8b8d[0x1],'requestId':_0x41b265};},{'priority':'high'}),_0x30392f['on']('_sendUsageRequest',_0x4a313b=>{_0x440ea8(_0x4a313b['return'])&&(_0x2e43a7=!0x0,_0x531f59(_0x4a313b['return']));},{'priority':'low'}),_0x2d0b7d['then'](()=>{_0x2e43a7||_0x54da38('UsageLimit');});});function _0x201c5d(){return'auto'==_0x30392f['editing']['view']['_overlayModeHint'];}function _0x2f4f84(){_0x30392f['editing']['view']['_overlayModeHint']='auto';}}function _0x1ddeee(_0x2d9b49){const _0x2b1302=[new window['Promise'](_0x535327=>setTimeout(_0x535327,0x93ecc)),_0x2d0b7d['then'](()=>new window['Promise'](_0x5dee09=>{let _0x961165=0x0;_0x30392f['model']['on']('applyOperation',(_0x23cdc5,_0x34154f)=>{_0x34154f[0x0]['isDocumentOperation']&&_0x961165++,0x5e8==_0x961165&&(_0x5dee09(),_0x23cdc5['off']());});}))];return window['Promise']['race'](_0x2b1302)['then'](()=>_0x2d9b49);}async function _0x54fcbe(){await _0x2d0b7d,_0x30392f['model']['change']=_0x1646db,_0x30392f['model']['enqueueChange']=_0x1646db,_0x30392f['enableReadOnlyMode']('model');}function _0x1d9c94(){return _0x594fab('WebSocketGateway')&&'connected'==_0x11d438('WebSocketGateway')['state'];}function _0x5678e9(){return _0x594fab('RevisionViewerIntegration');}function _0x546101(){return _0x594fab('TrackChangesDataGetter');}function _0x1c7e2f(_0x2bc24e){const _0x40b2bb=_0x54da6b();_0x30392f[_0x40b2bb]='trackChangesLicenseKey'+_0x2bc24e,'Valid'!=_0x2bc24e&&_0x54fcbe();}function _0x54da6b(){const _0x5cb127=window['String'](window['performance']['now']())['replace']('.','');let _0x121e87='R';for(let _0x341edf=0x0;_0x341edf<_0x5cb127['length'];_0x341edf+=0x2){let _0x5d6cd2=window['parseInt'](_0x5cb127['substring'](_0x341edf,_0x341edf+0x2));_0x5d6cd2>=0x3e&&(_0x5d6cd2-=0x3e),_0x121e87+=_0x1d89bf[_0x5d6cd2];}return _0x121e87;}function _0x5dc09b(){const _0x182c4b=_0x10221d['split']('.');if(0x3!=_0x182c4b['length'])return null;return _0x3f7d3f(_0x182c4b[0x1]);function _0x3f7d3f(_0x3e8cad){const _0x488f47=_0x26ae3c(_0x3e8cad);return _0x488f47&&_0x3a0571()?_0x488f47:null;function _0x3a0571(){const _0x1ca281=_0x488f47['jti'],_0x3d993f=window['parseInt'](_0x1ca281['substring'](_0x1ca281['length']-0x8),0x10),_0x1f8a59={..._0x488f47,'jti':_0x1ca281['substring'](0x0,_0x1ca281['length']-0x8)};return delete _0x1f8a59['vc'],_0x1461a8(_0x1f8a59)==_0x3d993f;}}}async function _0x1ea715(){let _0x800d99=!0x0;try{const [_0xc6491d,_0x4f6a20,_0xe5ebd8]=_0x10221d['split']('.');return _0x173d91(_0xc6491d),await _0x325b8c(_0xc6491d,_0x4f6a20,_0xe5ebd8),_0x800d99;}catch{return!0x1;}function _0x173d91(_0x3874db){const _0x25f069=_0x26ae3c(_0x3874db);_0x25f069&&'ES256'==_0x25f069['alg']||(_0x800d99=!0x1);}async function _0x325b8c(_0x17f1c5,_0x449058,_0x4b83e7){const _0x12d029=window['Uint8Array']['from'](_0x4e7680(_0x4b83e7),_0x371bf3=>_0x371bf3['charCodeAt'](0x0)),_0x1191de=new window['TextEncoder']()['encode'](_0x17f1c5+'.'+_0x449058),_0x307524=window['crypto']['subtle'];if(!_0x307524)return;const _0x16fb77=await _0x307524['importKey']('jwk',_0x10fb3f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x307524['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x16fb77,_0x12d029,_0x1191de)||(_0x800d99=!0x1);}}function _0x26ae3c(_0x2f46b0){return _0x2f46b0['startsWith']('ey')?JSON['parse'](_0x4e7680(_0x2f46b0)):null;}function _0x4e7680(_0x153ead){return window['atob'](_0x153ead['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1461a8(_0x226ade){let _0xb165c1=0x1505;function _0xe21ff7(_0x11450b){for(let _0x12afed=0x0;_0x12afed<_0x11450b['length'];_0x12afed++){const _0x1d01a0=_0x11450b['charCodeAt'](_0x12afed);_0xb165c1=(_0xb165c1<<0x5)+_0xb165c1+_0x1d01a0,_0xb165c1&=_0xb165c1;}}function _0x497329(_0x3dfd42){Array['isArray'](_0x3dfd42)?_0x3dfd42['forEach'](_0x497329):_0x3dfd42&&'object'==typeof _0x3dfd42?Object['entries'](_0x3dfd42)['sort']()['forEach'](([_0x3721c9,_0x3fad33])=>{_0xe21ff7(_0x3721c9),_0x497329(_0x3fad33);}):_0xe21ff7(window['String'](_0x3dfd42));}return _0x497329(_0x226ade),_0xb165c1>>>0x0;}function _0x2bef83(_0x5ecd7a){return _0x5ecd7a['toString'](0x10)['padStart'](0x8,'0');}function _0x5a8d8c(_0x10ca15){return _0x10ca15['split']('')['reverse']()['join']('');}function _0x594fab(_0x3f5f57){return _0x30392f['plugins']['has'](_0x3f5f57);}function _0x11d438(_0x1d32dc){return _0x30392f['plugins']['get'](_0x1d32dc);}function _0x1646db(){}_0x1c7e2f(await _0x3b37c9());}(this);}set adapter(_0x22b827){if(this['_adapter'])throw new _0x354614('track-changes-adapter-already-set',this);this['_adapter']=_0x22b827;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1c7135=!0x1,toJSON:_0x24b009=!0x1}={}){const _0x5136c9=[];for(const _0x23bb9f of this['_suggestions']['values']())_0x1c7135&&!_0x23bb9f['isInContent']||_0x5136c9['push'](_0x23bb9f);return _0x24b009?_0x5136c9['map'](_0x382b10=>_0x382b10['toJSON']()):_0x5136c9;}getSuggestion(_0x37ef8d){const _0x1a4b1a=this['_suggestions']['get'](_0x37ef8d);if(!_0x1a4b1a)throw new _0x354614('track-changes-suggestion-not-found',this);return _0x1a4b1a;}hasSuggestion(_0x1093d6){return this['_suggestions']['has'](_0x1093d6);}addSuggestionData(_0x98b8f5){const {authorId:_0x1fb9c2,id:_0x20a4cb,originalSuggestionId:_0xceabbc,attributes:_0x55b102}=_0x98b8f5,[_0x3773a5,_0x3de986]=_0x98b8f5['type']['split'](':'),_0x425419=this['_suggestions']['get'](_0x20a4cb)||this['_createSuggestion'](_0x3773a5,_0x3de986,_0x20a4cb,_0x1fb9c2,_0x55b102,_0xceabbc);if(this['_addThreadToSuggestion'](_0x425419),this['_checkSuggestionCorrectness'](_0x425419,_0x3773a5,_0x3de986||null,_0x1fb9c2),_0x425419['createdAt']=_0x98b8f5['createdAt'],_0x425419['_isDataLoaded']=!0x0,_0x55b102&&_0x55b102['@external']){const _0x4a5d59=_0x55b102['@external'],_0x2f00fe=this['_getExternalAuthor'](_0x4a5d59['authorName']);_0x425419['authoredAt']=_0x4a5d59['createdAt'],_0x425419['author']=_0x2f00fe;}else _0x425419['authoredAt']=_0x98b8f5['createdAt'];switch(_0x98b8f5['data']&&(_0x425419['data']=_0x98b8f5['data']),_0x98b8f5['attributes']&&(_0x425419['attributes']=_0x98b8f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x425419['_saved']=!0x0),this['_suggestionState']['get'](_0x425419)){case'notReady':this['_suggestionState']['set'](_0x425419,'dataReady');break;case'markerReady':_0x425419['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x425419])),this['_refreshSuggestionsChain'](new Set([_0x425419])),this['_suggestionState']['set'](_0x425419,'ready'),this['fire']('suggestionLoaded',_0x425419)):this['_suggestionState']['set'](_0x425419,'removed');}return _0x425419;}acceptSuggestion(_0x4e46df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ef010 of _0x4e46df['getAllAdjacentSuggestions']())_0x3ef010['accept']();});});}discardSuggestion(_0x208bb8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f090 of _0x208bb8['getAllAdjacentSuggestions']())_0x26f090['discard']();});});}['enableCommand'](_0x5f88ef,_0x3be466){const _0x3f54f2=this['editor']['commands']['get'](_0x5f88ef);if(!_0x3f54f2)throw new _0x354614('track-changes-command-not-found',this,{'commandName':_0x5f88ef});if(this['_enabledCommands']['has'](_0x3f54f2))throw new _0x354614('track-changes-enable-command-twice',this,{'commandName':_0x5f88ef});this['_enabledCommands']['add'](_0x3f54f2),_0x3be466&&_0x3f54f2['on']('execute',(_0x5d0134,_0x2f5965)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f5965['length']>0x0&&_0x2f5965[_0x2f5965['length']-0x1]&&_0x2f5965[_0x2f5965['length']-0x1]['forceDefaultExecution']?_0x2f5965['pop']():(_0x5d0134['return']=_0x3be466((..._0x3f6a36)=>_0x3f54f2['execute'](..._0x3f6a36,{'forceDefaultExecution':!0x0}),..._0x2f5965),_0x5d0134['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x211a1a){let _0x3b6902,_0x13ac9b;const _0xaef1c8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b6902=_0x211a1a();}catch(_0x37b39f){_0x13ac9b=_0x37b39f;}return _0xaef1c8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x13ac9b&&_0x354614['rethrowUnexpectedError'](_0x13ac9b,this),_0x3b6902;}markInsertion(_0x53ed1d,_0x4bdff2=null,_0x2e4dfe={}){if(_0x53ed1d['isCollapsed'])return null;const _0x39432c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2e4dfe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x289306,meta:_0xa230d2}of this['_findSuggestions'](_0x53ed1d,'insertion'))if(_0xa230d2['isOwn']){if(!_0xa230d2['isNextTo']){if(_0xa230d2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x289306,_0x2e4dfe))continue;return _0x289306;}if(pn(_0x289306,_0x2e4dfe))return _0x289306;this['_breakSuggestionMarker'](_0x289306,_0x53ed1d['start'],_0x53ed1d['end']);break;}if(_0x4bdff2==_0x289306['subType']&&pn(_0x289306,_0x2e4dfe)){const _0x5dbcdb=_0x289306['getFirstRange']();return _0x5dbcdb['start']['isEqual'](_0x53ed1d['end'])?this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x53ed1d['start'],_0x5dbcdb['end'])):this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x5dbcdb['start'],_0x53ed1d['end'])),_0x289306;}}const _0x2d669c=_0x2e6a13(),_0x26cdbf=_0x39432c['id'],_0x159cc1=_0x4bdff2?'insertion:'+_0x4bdff2:'insertion',_0x22bea9=this['_setSuggestionData']({'id':_0x2d669c,'type':_0x159cc1,'createdAt':new Date(),'authorId':_0x26cdbf,'attributes':_0x2e4dfe});return this['_addSuggestionMarker'](_0x159cc1,_0x2d669c,_0x26cdbf,_0x53ed1d),_0x22bea9;}markMultiRangeInsertion(_0x2f3e43,_0x3a8861='multi',_0x523827={}){const _0x8b33c2=this['editor']['plugins']['get']('Users')['me'],_0x3cdf38=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8861,'join');this['_trackingSessionId']&&(_0x523827['trackingSessionId']=this['_trackingSessionId']);for(const _0x161d97 of this['getSuggestions']())if(_0x161d97['author']['id']==_0x8b33c2['id']&&'insertion'==_0x161d97['type']&&_0x161d97['subType']==_0x3a8861&&pn(_0x161d97,_0x523827)&&(_0x3cdf38(_0x161d97['getRanges'](),_0x2f3e43)||_0x3cdf38(_0x2f3e43,_0x161d97['getRanges']()))){for(const _0x481726 of _0x2f3e43)_0x161d97['addRange'](_0x481726);return _0x161d97;}for(const {suggestion:_0x3a2e99,meta:_0x3f25a4}of this['_findSuggestions'](_0x2f3e43,'insertion')){if(!_0x3f25a4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f25a4['containsRangeInObject'])continue;if(!pn(_0x3a2e99,_0x523827))continue;let _0x35c204=!0x0;for(const _0x3c947a of _0x3a2e99['getRanges']())for(const _0x26d98f of _0x2f3e43)if(!_0x3c947a['containsRange'](_0x26d98f)){_0x35c204=!0x1;break;}if(_0x35c204)return _0x3a2e99;}const _0x4e7d63=_0x2e6a13(),_0xf25ba2=_0x8b33c2['id'],_0x2abe19='insertion:'+_0x3a8861,_0x573745=this['_setSuggestionData']({'id':_0x4e7d63,'type':_0x2abe19,'createdAt':new Date(),'authorId':_0xf25ba2,'attributes':_0x523827});for(const _0x5950b3 of _0x2f3e43)this['_addSuggestionMarker'](_0x2abe19,_0x4e7d63,_0xf25ba2,_0x5950b3,Mt['getMultiRangeId']());return _0x573745;}markInlineFormat(_0x267c24,_0x3e556d,_0x29fc3c=null,_0x19cbfb={}){if(_0x29fc3c=_0x29fc3c||dn(_0x3e556d),_0x267c24['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x19cbfb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x359bef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');return this['forceDefaultExecution'](()=>_0x359bef([_0x267c24],_0x3e556d,_0x19cbfb)),null;}const _0xb89c6e=this['editor']['plugins']['get']('Users')['me'],_0x280cad=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4147ea,meta:_0x228147}of this['_findSuggestions'](_0x267c24,'insertion'))_0x228147['isOwn']&&!_0x228147['isInsideObject']&&_0x280cad['push'](..._0x4147ea['getRanges']());}const _0x231b5e=function(_0x4d48f6,_0x15cce8){const _0x22e607=[];for(const _0x36730f of _0x15cce8){const _0x2f2fb4=_0x4d48f6['getIntersection'](_0x36730f);_0x2f2fb4&&_0x22e607['push'](_0x2f2fb4);}return _0x22e607;}(_0x267c24,_0x280cad),_0x3dab9c=function(_0x51d00d,_0x4f0cf4){const _0x44e393=[_0x51d00d];for(const _0x550ab4 of _0x4f0cf4){let _0x3c2917=0x0;for(;_0x3c2917<_0x44e393['length'];){const _0x2e68c3=_0x44e393[_0x3c2917]['getDifference'](_0x550ab4);_0x44e393['splice'](_0x3c2917,0x1,..._0x2e68c3),_0x3c2917+=_0x2e68c3['length'];}}return _0x44e393;}(_0x267c24,_0x280cad);_0x231b5e['length']&&this['_model']['change'](()=>{for(const _0x2ebd34 of _0x231b5e){const _0x54fde4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');this['forceDefaultExecution'](()=>_0x54fde4([_0x2ebd34],_0x3e556d,_0x19cbfb));}});for(const _0xb69423 of _0x3dab9c){let _0x2220c3=null,_0x2591d3=_0xb69423['start'],_0x8b02c4=_0xb69423['end'];for(const {suggestion:_0x413cd9,meta:_0x4988e7}of this['_findSuggestions'](_0xb69423,'formatInline')){if(!_0x4988e7['isOwn'])continue;if(_0x413cd9['subType']!=_0x29fc3c)continue;if(!pn(_0x413cd9,_0x19cbfb))continue;const _0x24b613=_0x413cd9['getFirstRange']();if(_0x24b613['containsRange'](_0xb69423,!0x0))return null;_0x2591d3=_0x2591d3['isBefore'](_0x24b613['start'])?_0x2591d3:_0x24b613['start'],_0x8b02c4=_0x8b02c4['isAfter'](_0x24b613['end'])?_0x8b02c4:_0x24b613['end'],_0x2220c3?_0x24b613['start']['isBefore'](_0x2220c3['getFirstRange']()['start'])?(_0x2220c3['removeMarkers'](),_0x2220c3=_0x413cd9):_0x413cd9['removeMarkers']():_0x2220c3=_0x413cd9;}const _0x50bf7b=this['_model']['createRange'](_0x2591d3,_0x8b02c4);if(_0x2220c3)this['_setSuggestionRange'](_0x2220c3,_0x50bf7b);else{const _0xe798e2=_0x2e6a13(),_0x423759=_0xb89c6e['id'];this['_setSuggestionData']({'id':_0xe798e2,'type':'formatInline:'+_0x29fc3c,'data':_0x3e556d,'createdAt':new Date(),'authorId':_0x423759,'attributes':_0x19cbfb}),this['_addSuggestionMarker']('formatInline:'+_0x29fc3c,_0xe798e2,_0x423759,_0x50bf7b);}}return null;}markBlockFormat(_0xb58d03,_0x19d491,_0x3f377c=[],_0x2c9706=null,_0x2002e9={}){_0x19d491['formatGroupId']||(_0x19d491['formatGroupId']=_0x19d491['commandName']),_0x19d491['multipleBlocks']=_0xb58d03['is']('range'),_0x2c9706=_0x2c9706||dn(_0x19d491);const _0x183e33=_0x3f377c['map'](_0x1fd5e3=>En(_0x1fd5e3,this['_model'])),_0x3a6f0a=_0xb58d03['is']('range')?_0xb58d03:En(_0xb58d03,this['_model']);if(this['_trackingSessionId']&&(_0x2002e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xeaa016=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0xeaa016([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}_0x183e33['push'](_0x3a6f0a);let _0xc40173=!0x0;for(const _0x12f449 of _0x183e33)if(!this['_rangeIsInLocalUserInsertion'](_0x12f449)){_0xc40173=!0x1;break;}if(_0xc40173&&'always'!==this['_trackFormatChanges']){const _0x3f8777=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0x3f8777([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}let _0x172bbf=null,_0xc2641d=_0x3a6f0a['start'],_0x38f6ac=_0x3a6f0a['end'];for(const {suggestion:_0x25373,meta:_0x375ef4}of this['_findSuggestions'](_0x3a6f0a,'formatBlock')){if(!_0x375ef4['isOwn'])continue;if(_0x375ef4['isNextTo']||_0x375ef4['containsRangeInObject']||_0x375ef4['isInsideObject'])continue;if(_0x25373['data']['formatGroupId']!=_0x19d491['formatGroupId'])continue;if(!pn(_0x25373,_0x2002e9))continue;const _0x1c1193=_0x25373['getFirstRange']();if(_0x25373['subType']==_0x2c9706){if(_0x1c1193['containsRange'](_0x3a6f0a,!0x0))return null;_0xc2641d=_0xc2641d['isBefore'](_0x1c1193['start'])?_0xc2641d:_0x1c1193['start'],_0x38f6ac=_0x38f6ac['isAfter'](_0x1c1193['end'])?_0x38f6ac:_0x1c1193['end'],_0x172bbf?_0x1c1193['start']['isBefore'](_0x172bbf['getFirstRange']()['start'])?(_0x172bbf['removeMarkers'](),_0x172bbf=_0x25373):_0x25373['removeMarkers']():_0x172bbf=_0x25373;}else{const _0x237388=_0x3a6f0a['getIntersection'](_0x1c1193);this['_cutOutSuggestionMarker'](_0x25373,_0x237388);}}const _0xb045ab=this['editor']['plugins']['get']('Users')['me'],_0x1b950e=_0x2e6a13(),_0x450754=_0xb045ab['id'];if(_0x172bbf)return this['_setSuggestionRange'](_0x172bbf,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x172bbf;{const _0x1592d9=this['_setSuggestionData']({'id':_0x1b950e,'type':'formatBlock:'+_0x2c9706,'data':_0x19d491,'createdAt':new Date(),'authorId':_0x450754,'attributes':_0x2002e9});return this['_addSuggestionMarker']('formatBlock:'+_0x2c9706,_0x1b950e,_0x450754,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x1592d9;}}markMultiRangeBlockFormat(_0xa840c6,_0x16b8c5,_0x3bf926=[],_0x582434=null,_0x5ef669={}){_0x16b8c5['formatGroupId']||(_0x16b8c5['formatGroupId']=_0x16b8c5['commandName']);const _0x5bdea8=_0xa840c6[0x0];_0x16b8c5['multipleBlocks']=_0x5bdea8['is']('range'),_0x582434=_0x582434||dn(_0x16b8c5);const _0x323a3e=_0x3bf926['map'](_0x1496bf=>En(_0x1496bf,this['_model'])),_0x4ec1d1=_0x5bdea8['is']('range')?_0xa840c6:_0xa840c6['map'](_0x574ce9=>En(_0x574ce9,this['_model']));if(this['_trackingSessionId']&&(_0x5ef669['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1451be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x1451be(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}_0x323a3e['push'](..._0x4ec1d1);let _0x49eb14=!0x0;for(const _0x26c00a of _0x323a3e)if(!this['_rangeIsInLocalUserInsertion'](_0x26c00a)){_0x49eb14=!0x1;break;}if(_0x49eb14&&'always'!==this['_trackFormatChanges']){const _0x318f12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x318f12(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}const _0x555283=this['editor']['plugins']['get']('Users')['me'];for(const _0x16bdaf of this['getSuggestions']()){const _0x50d16e=_0x16bdaf['data'];if(_0x16bdaf['author']['id']!=_0x555283['id'])continue;if('formatBlock'!=_0x16bdaf['type']||_0x50d16e['formatGroupId']!=_0x16b8c5['formatGroupId'])continue;if(!pn(_0x16bdaf,_0x5ef669))continue;const _0x17b44d=_0x16bdaf['subType']==_0x582434;for(let _0x3fa060=0x0;_0x3fa060<_0x4ec1d1['length'];_0x3fa060++){const _0x1d029d=_0x4ec1d1[_0x3fa060];for(const _0x1597c9 of _0x16bdaf['getMarkers']()){const _0x240a59=_0x1597c9['getRange']();if(_0x1d029d['isEqual'](_0x240a59)){_0x17b44d?(_0x4ec1d1['splice'](_0x3fa060,0x1),_0x3fa060--):_0x16bdaf['removeMarker'](_0x1597c9['name']);break;}}}}if(0x0==_0x4ec1d1['length'])return null;const _0x1327ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'join');for(const _0x505ed2 of this['getSuggestions']()){const _0x5de2e5=_0x505ed2['data'];if(_0x505ed2['author']['id']==_0x555283['id']&&('formatBlock'==_0x505ed2['type']&&_0x5de2e5['formatGroupId']==_0x16b8c5['formatGroupId']&&_0x505ed2['subType']==_0x582434&&pn(_0x505ed2,_0x5ef669)&&(_0x1327ec(_0x505ed2['getRanges'](),_0x4ec1d1)||_0x1327ec(_0x4ec1d1,_0x505ed2['getRanges']())))){for(const _0x14b65c of _0x4ec1d1)_0x505ed2['addRange'](_0x14b65c);return _0x505ed2;}}const _0x44daeb=_0x2e6a13(),_0x3a5747=_0x555283['id'],_0x1e91d5='formatBlock:'+_0x582434,_0x29b144=this['_setSuggestionData']({'id':_0x44daeb,'type':_0x1e91d5,'data':_0x16b8c5,'createdAt':new Date(),'authorId':_0x3a5747,'attributes':_0x5ef669});for(const _0x235afc of _0x4ec1d1)this['_addSuggestionMarker'](_0x1e91d5,_0x44daeb,_0x3a5747,_0x235afc,Mt['getMultiRangeId']());return _0x29b144;}markDeletion(_0x11de48,_0x3be4c1=null,_0x139da4={}){if(_0x11de48['isCollapsed'])return null;const _0x31d351=this['editor']['plugins']['get']('Users')['me'],_0x3c5fe6=new ot(_0x11de48['start'],_0x11de48['end']);this['_trackingSessionId']&&(_0x139da4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2dd3ce,meta:_0x54d1a4}of this['_findSuggestions'](_0x3c5fe6,'insertion'))if(_0x54d1a4['isOwn']&&!_0x54d1a4['isNextTo']){if(_0x2dd3ce['isMultiRange']){const _0x520932=_0x2dd3ce['getRanges']()['filter'](_0x32dfe1=>'$graveyard'!=_0x32dfe1['root']['rootName']);if(_0x520932['every'](_0x2628a9=>_0x3c5fe6['containsRange'](_0x2628a9,!0x0))&&_0x2dd3ce['discard'](),_0x520932['some'](_0x234af0=>_0x234af0['containsRange'](_0x3c5fe6,!0x0))){const _0x40a393=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be4c1,'accept');return this['forceDefaultExecution'](()=>_0x40a393([_0x3c5fe6],null,_0x139da4)),null;}}else{const _0x2790b8=_0x3c5fe6['getIntersection'](_0x2dd3ce['getFirstRange']());null!==_0x2790b8&&_0x2dd3ce['_onDiscard']([_0x2790b8],null,_0x139da4);}}if(_0x3c5fe6['detach'](),_0x3c5fe6['isCollapsed']||'$graveyard'==_0x3c5fe6['root']['rootName'])return null;let _0x5390af=null,_0x59387d=_0x3c5fe6['start'],_0x5095b5=_0x3c5fe6['end'];const _0x15c5de=this['_findSuggestions'](_0x3c5fe6,'deletion');for(const {suggestion:_0x494c79,meta:_0x4bdd3d}of _0x15c5de){const _0x3a5c1d=this['_model']['createRange'](_0x59387d,_0x5095b5);if(_0x4bdd3d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4bdd3d['containsRangeInObject']&&!_0x4bdd3d['isInsideObject'])){if(_0x494c79['isMultiRange']){if(!pn(_0x494c79,_0x139da4))continue;let _0x481656=!0x0;for(const _0x9a3c8c of _0x494c79['getRanges']()){if(_0x9a3c8c['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;_0x3a5c1d['containsRange'](_0x9a3c8c)||(_0x481656=!0x1);}_0x481656&&_0x494c79['discard']();}else{const _0x476fe6=_0x494c79['getFirstRange']();if(_0x476fe6['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;if(!pn(_0x494c79,_0x139da4)){_0x3a5c1d['containsRange'](_0x476fe6)?_0x494c79['removeMarkers']():_0x476fe6['containsPosition'](_0x59387d)?_0x59387d=_0x476fe6['end']:_0x476fe6['containsPosition'](_0x5095b5)&&(_0x5095b5=_0x476fe6['start']);continue;}_0x59387d=_0x59387d['isBefore'](_0x476fe6['start'])?_0x59387d:_0x476fe6['start'],_0x5095b5=_0x5095b5['isAfter'](_0x476fe6['end'])?_0x5095b5:_0x476fe6['end'],_0x139da4=Object['assign']({},_0x494c79['attributes']),_0x5390af?_0x476fe6['start']['isBefore'](_0x5390af['getFirstRange']()['start'])?(_0x5390af['removeMarkers'](),_0x5390af=_0x494c79):_0x494c79['removeMarkers']():_0x5390af=_0x494c79;}}}if(_0x5390af)return this['_setSuggestionRange'](_0x5390af,this['_model']['createRange'](_0x59387d,_0x5095b5)),_0x5390af;{const _0x39a56a=_0x2e6a13(),_0x3bc131=this['_model']['createRange'](_0x59387d,_0x5095b5),_0x477804=_0x31d351['id'],_0x4d32f8=_0x3be4c1?'deletion:'+_0x3be4c1:'deletion',_0x58677=this['_setSuggestionData']({'id':_0x39a56a,'type':_0x4d32f8,'createdAt':new Date(),'authorId':_0x477804,'attributes':_0x139da4});return this['_addSuggestionMarker'](_0x4d32f8,_0x39a56a,_0x477804,_0x3bc131),_0x58677;}}markMultiRangeDeletion(_0x2b499c,_0x2fd845='multi',_0xde69dd={}){const _0x36b1a8=this['editor']['plugins']['get']('Users')['me'],_0x1788a9=_0x2b499c['map'](_0x2a2ddb=>new ot(_0x2a2ddb['start'],_0x2a2ddb['end'])),_0xea661b=new Set();this['_trackingSessionId']&&(_0xde69dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa622fe,meta:_0x5b9aa2}of this['_findSuggestions'](_0x1788a9,'insertion'))_0x5b9aa2['isOwn']&&!_0x5b9aa2['isNextTo']&&_0xea661b['add'](_0xa622fe);for(const _0x4e310f of _0xea661b)if(_0x4e310f['isMultiRange']){const _0x3ca3bc=_0x4e310f['getRanges']();if(_0x4e310f['attributes']&&_0x4e310f['attributes']['skipNestingCheck']||_0x3ca3bc['every'](_0x197351=>_0x1788a9['some'](_0x3b0701=>_0x3b0701['containsRange'](_0x197351,!0x0)))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x18566a=>_0x3ca3bc['some'](_0x5546fd=>_0x5546fd['containsRange'](_0x18566a,!0x0)))){const _0x41aac5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x41aac5(_0x2b499c,null,_0xde69dd)),null;}}else{const _0x1913e5=_0x4e310f['getFirstRange']();if(_0x1788a9['some'](_0x58590a=>_0x58590a['containsRange'](_0x1913e5,!0x0))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x511d59=>_0x1913e5['containsRange'](_0x511d59,!0x0))){const _0x366824=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x366824(_0x1788a9,null,_0xde69dd)),null;}}const _0x11349c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'join');let _0x1cf024=null;for(const _0x69a1a6 of this['getSuggestions']())if(_0x69a1a6['author']['id']==_0x36b1a8['id']&&_0x69a1a6['isInContent']&&'deletion'==_0x69a1a6['type']&&_0x69a1a6['subType']==_0x2fd845&&pn(_0x69a1a6,_0xde69dd)&&(_0x11349c(_0x69a1a6['getRanges'](),_0x1788a9)||_0x11349c(_0x1788a9,_0x69a1a6['getRanges']()))){if(_0x1cf024){if(_0x69a1a6['commentThread']&&_0x69a1a6['commentThread']['length'])continue;for(const _0x1f63fd of _0x69a1a6['getRanges']())_0x1cf024['isIntersectingWithRange'](_0x1f63fd)||_0x1cf024['addRange'](_0x1f63fd);_0x69a1a6['removeMarkers']();}else{_0x1cf024=_0x69a1a6;for(const _0x552eb0 of _0x1788a9)_0x69a1a6['isIntersectingWithRange'](_0x552eb0)||_0x69a1a6['addRange'](_0x552eb0);}}if(_0x1cf024)return _0x1cf024;_0xea661b['clear']();for(const {suggestion:_0x5a97e8,meta:_0x15ffbd}of this['_findSuggestions'](_0x1788a9,'deletion'))_0x15ffbd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15ffbd['containsRangeInObject']&&!_0x15ffbd['isInsideObject'])&&pn(_0x5a97e8,_0xde69dd)&&_0xea661b['add'](_0x5a97e8);for(const _0x452f89 of _0xea661b){const _0x5fd6e6=_0x452f89['getRanges']();if((!_0xde69dd||!_0xde69dd['skipNestingCheck'])&&_0x1788a9['every'](_0xdd8bbe=>_0x5fd6e6['some'](_0x47f628=>_0x47f628['containsRange'](_0xdd8bbe,!0x0))))return _0x452f89;_0x452f89['attributes']&&_0x452f89['attributes']['skipNestingCheck']||_0x5fd6e6['every'](_0x28cd56=>_0x1788a9['some'](_0x1771a3=>_0x1771a3['containsRange'](_0x28cd56,!0x0)))&&_0x452f89['discard']();}const _0x20ef1a=_0x2e6a13(),_0x5a4d2c=_0x36b1a8['id'],_0x4a3cbe='deletion:'+_0x2fd845,_0x53754e=this['_setSuggestionData']({'id':_0x20ef1a,'type':_0x4a3cbe,'createdAt':new Date(),'authorId':_0x5a4d2c,'attributes':_0xde69dd});for(const _0x454f8c of _0x1788a9)_0x454f8c['detach'](),_0x454f8c['isCollapsed']||'$graveyard'==_0x454f8c['root']['rootName']||this['_addSuggestionMarker'](_0x4a3cbe,_0x20ef1a,_0x5a4d2c,_0x454f8c,Mt['getMultiRangeId']());return _0x53754e;}markAttributeChange(_0x531385,_0x1ee037,_0x425739,_0x1d95c1,_0x147cce){if(_0x531385['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xdcfd48=this['editor']['plugins']['get']('Users')['me']['id'],_0x15511d=Array['from'](this['_suggestions']['values']())['filter'](_0x1abe5f=>'attribute'==_0x1abe5f['type']&&_0x1abe5f['data']['key']==_0x1ee037&&_0x1abe5f['isIntersectingWithRange'](_0x531385));if(this['_trackingSessionId']&&(_0x147cce['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x22858f=this['_findSuggestions'](_0x531385,'insertion')['filter'](({meta:_0x4d6487})=>_0x4d6487['isOwn']&&!_0x4d6487['isInsideObject']&&!_0x4d6487['isNextTo'])['map'](({suggestion:_0x51497c})=>_0x51497c);_0x15511d['unshift'](..._0x22858f);}const _0x54308d=new Map([[_0x531385,_0x425739]]);for(const _0x1db59a of _0x15511d){const _0x6c14a0='attribute'==_0x1db59a['type']?_0x1db59a['data']['oldValue']:void 0x0,_0x22764b=_0x1db59a['getFirstRange'](),_0x28d098=Array['from'](_0x54308d['keys']())['find'](_0x11b9c9=>_0x11b9c9['isIntersecting'](_0x22764b));if(!_0x28d098)continue;const _0x4bb5db=_0x28d098['getDifference'](_0x22764b);this['_suggestionsConversion']['isBlockAttribute'](_0x1ee037)&&'insertion'==_0x1db59a['type']&&0x0!=_0x4bb5db['length']||(_0x54308d['delete'](_0x28d098),_0x4bb5db['forEach'](_0x6b447c=>{_0x54308d['set'](_0x6b447c,_0x425739);}),'insertion'!=_0x1db59a['type']&&_0x6c14a0!=_0x1d95c1&&_0x54308d['set'](_0x28d098['getIntersection'](_0x22764b),_0x6c14a0));}const _0x5ae469=[];for(const [_0x7db8e2,_0x45d378]of _0x54308d){const _0x4531e5=_0x2e6a13(),_0x5aff85={'key':_0x1ee037,'oldValue':_0x45d378,'newValue':_0x1d95c1};_0x1ee037['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':_0x1ee037});const _0x3d761b=('attribute:'+_0x1ee037+'|'+dn({'newValue':_0x1d95c1}))['substring'](0x0,0x3c),_0x116719=this['_setSuggestionData']({'id':_0x4531e5,'type':_0x3d761b,'data':_0x5aff85,'createdAt':new Date(),'authorId':_0xdcfd48,'attributes':_0x147cce});_0x5ae469['push'](_0x116719),this['_addSuggestionMarker'](_0x3d761b,_0x4531e5,_0xdcfd48,_0x7db8e2);}return _0x5ae469;}enableDefaultAttributesIntegration(_0x4fde67){this['enableCommand'](_0x4fde67,(_0x33eb2d,..._0x1a064e)=>{this['recordAttributeChanges'](()=>{_0x33eb2d(..._0x1a064e);});});}startTrackingSession(_0x1e9afa){return this['_trackingSessionId']=void 0x0!==_0x1e9afa?_0x1e9afa:_0x2e6a13(),this['_trackingSessionId'];}_getAttributeKey(_0x219536){return'attribute'==_0x219536['type']?In(_0x219536['subType']):null;}_applyOperationsAsSuggestions(_0x4da695){if(0x0==_0x4da695['length'])return;const _0x41cf2c=this['editor'],_0xf6ffe=_0x41cf2c['plugins']['get'](_0x2c9489),_0xa96bed=[],_0x5beb74=_0x39da45=>{const _0x122417=_0x39da45['_aiSource'];return _0x122417?{'@ai':{'type':_0x122417}}:{};},_0x5c9761=(_0x19f3b8,_0x423ef2,_0x1cfc4a)=>{for(let _0x37f18e=_0x423ef2;_0x37f18e<_0x19f3b8['operations']['length'];_0x37f18e++){const _0x52e9a2=_0x19f3b8['operations'][_0x37f18e];'marker'===_0x52e9a2['type']&&(_0x52e9a2['_aiSource']=_0x1cfc4a);}};_0x41cf2c['model']['change'](_0x5880f6=>{for(let _0x4d34bd=0x0;_0x4d34bd<_0x4da695['length'];_0x4d34bd++){const _0x4d324e=_0x4da695[_0x4d34bd],_0x535bd2=_0x4d324e['_aiSource'],_0x2100ea=_0x5880f6['batch']['operations']['length'];if(_0x4d324e['baseVersion']=_0x41cf2c['model']['document']['version'],_0x4d324e['isDocumentOperation']=!0x0,!_0x4a631e(_0x4d324e)){if(_0xf6ffe['isMarkedRemoveOperation'](_0x4d324e)){const _0x2da2d2=_0x425f5d(_0x4d324e['newRange'],_0x41cf2c['model']);_0xa96bed['unshift']({'range':ot['fromRange'](_0x2da2d2),'opAttributes':_0x5beb74(_0x4d324e),'aiSource':_0x535bd2});}else{switch(_0x4d324e['type']){case'rename':{const _0x2cbae5=_0x4d324e['oldName'],_0x152a50=_0x4d324e['newName'];if(_0x2cbae5==_0x152a50)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x213ebf='$elementName',_0x32e4eb=_0x4d324e['position'],_0x4840d4=_0x41cf2c['model']['createRange'](_0x32e4eb,_0x41cf2c['model']['createPositionAt'](_0x32e4eb['nodeAfter'],'end'));this['markAttributeChange'](_0x4840d4,_0x213ebf,_0x2cbae5,_0x152a50,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x19b4aa=_0x4d324e['oldValue'],_0x3a061e=_0x4d324e['newValue'];if(_0x19b4aa==_0x3a061e)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4e0e9a=_0x4d324e['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4e0e9a))break;const _0x1302d5=_0x425f5d(_0x4d324e['range'],_0x41cf2c['model']);this['markAttributeChange'](_0x1302d5,_0x4e0e9a,_0x19b4aa,_0x3a061e,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'insert':{if(_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e),_0x4da695[_0x4d34bd+0x1]&&'move'==_0x4da695[_0x4d34bd+0x1]['type'])break;const _0x39a035=_0x4d324e['position'],_0x3b6232=_0x4d324e['howMany'],_0x1af7f7=_0x425f5d(_0x41cf2c['model']['createRange'](_0x39a035,_0x39a035['getShiftedBy'](_0x3b6232)),_0x41cf2c['model']);this['markInsertion'](_0x1af7f7,null,{..._0x5beb74(_0x4d324e)});break;}case'split':{_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4fca3a=_0x4d324e['splitPosition'],_0x5bd5d2=_0x4d324e['moveTargetPosition'],_0x450871=_0x41cf2c['model']['createRange'](_0x4fca3a,_0x5bd5d2);this['markInsertion'](_0x450871,null,{..._0x5beb74(_0x4d324e)});break;}case'move':case'remove':_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);}_0x535bd2&&_0x5c9761(_0x5880f6['batch'],_0x2100ea,_0x535bd2);}}}for(const {range:_0x4727c1,opAttributes:_0x2b885a,aiSource:_0x1f5e6f}of _0xa96bed){const _0x199dc5=_0x5880f6['batch']['operations']['length'];_0x4727c1['detach'](),this['markDeletion'](_0x4727c1,null,{..._0x2b885a}),_0x1f5e6f&&_0x5c9761(_0x5880f6['batch'],_0x199dc5,_0x1f5e6f);}});}_setSuggestionRange(_0xe512eb,_0x1ae341){const _0x227d96=_0xe512eb['getFirstMarker']();this['_model']['change'](_0x4d755b=>{_0x4d755b['updateMarker'](_0x227d96,{'range':_0x1ae341});});}_addThreadToSuggestion(_0x4c8d5d){const _0x521642=_0x4c8d5d['id'],_0x3c8e04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x521642)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3c8e04,'threadId':_0x521642,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e50d4=this['_commentsRepository']['getCommentThread'](_0x521642);_0x4e50d4['unbind']('isRemovable'),_0x4e50d4['isRemovable']=!0x1,_0x4c8d5d['commentThread']=_0x4e50d4;}_checkSuggestionCorrectness(_0x34f06e,_0xd69fe0,_0x318713,_0x5e8cec){if(_0x34f06e['type']!=_0xd69fe0||_0x34f06e['subType']!=_0x318713||_0x34f06e['creator']['id']!=_0x5e8cec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x354614('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x312fb1,_0x433299){const _0xb813f4=_0x312fb1['getFirstRange']();if(_0x433299['isEqual'](_0xb813f4))_0x312fb1['removeMarkers']();else{if(_0xb813f4['containsRange'](_0x433299)){const _0x5e4b3a=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x5e4b3a));const _0x1a207a=_0x2e6a13(),_0x1cf18a=_0x312fb1['creator']['id'],_0x83a4c5=_0x312fb1['type']+':'+_0x312fb1['subType'];this['_setSuggestionData']({'id':_0x1a207a,'type':_0x83a4c5,'createdAt':new Date(),'authorId':_0x1cf18a,'data':_0x312fb1['data'],'attributes':_0x312fb1['attributes']});const _0x405250=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after'),_0x3c4898=this['_model']['createRange'](_0x405250,_0xb813f4['end']);this['_addSuggestionMarker'](_0x83a4c5,_0x1a207a,_0x1cf18a,_0x3c4898);}else{if(_0xb813f4['containsPosition'](_0x433299['start'])){const _0x1d49e0=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x1d49e0));}else{const _0xea3f36=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xea3f36,_0xb813f4['end']));}}}}_rangeIsInLocalUserInsertion(_0x3e2498){for(const {suggestion:_0x696e80,meta:_0xa81d60}of this['_findSuggestions'](_0x3e2498,'insertion')){if(!_0xa81d60['isOwn'])continue;const _0x3907f9=_0x696e80['getRanges']();for(const _0x134c36 of _0x3907f9)if(!_0x3e2498['getDifference'](_0x134c36)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x49ffe0){return this['editor']['plugins']['get']('Users')['getUser'](_0x49ffe0);}_getExternalAuthor(_0x46e322){const _0x144585=this['editor']['plugins']['get']('Users'),_0x511213=_0x1724db('external:'+_0x46e322),_0x5f0c91=_0x144585['getUser'](_0x511213);return _0x5f0c91||_0x144585['addUser']({'id':_0x511213,'name':_0x46e322});}_createSuggestion(_0x28731d,_0x67f366,_0x36ed79,_0x33ea0f,_0x49c004,_0x1d00c7){const _0x266dde=this['_getAuthorFromId'](_0x33ea0f);if(!_0x266dde)throw new _0x354614('track-changes-user-not-found',this,{'authorId':_0x33ea0f,'suggestionId':_0x36ed79});const _0x3f0e35=this['_suggestionFactory']['buildSuggestion'](_0x28731d,_0x67f366,_0x36ed79,_0x266dde,_0x49c004,_0xbd325=>{this['_updateSuggestionData'](_0x36ed79,{'attributes':_0xbd325});const _0x53609b=this['getSuggestion'](_0x36ed79);this['_joinWithAdjacentSuggestions'](new Set([_0x53609b])),this['_refreshSuggestionsChain'](new Set([_0x53609b]));},_0x1d00c7);return this['listenTo'](_0x3f0e35,'accept',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f0e35,'discard',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x36ed79,_0x3f0e35),this['_suggestionState']['set'](_0x3f0e35,'notReady'),_0x3f0e35;}_breakSuggestionMarker(_0x518c0d,_0x4232cf,_0x658ad4){const _0x4a23ab=_0x518c0d['getFirstRange'](),_0x1738f2=_0x4a23ab['start'],_0xffbc67=_0x4a23ab['end'];this['_setSuggestionRange'](_0x518c0d,this['_model']['createRange'](_0x1738f2,_0x4232cf));const _0x589776=_0x2e6a13(),_0x13fee0=_0x518c0d['creator']['id'],_0x1849ac=_0x518c0d['type']+(_0x518c0d['subType']?':'+_0x518c0d['subType']:'');this['_setSuggestionData']({'id':_0x589776,'type':_0x1849ac,'createdAt':new Date(),'authorId':_0x13fee0,'originalSuggestionId':_0x518c0d['_originalSuggestionId']||_0x518c0d['id'],'attributes':_0x518c0d['attributes'],'data':_0x518c0d['data']});const _0x48aa65=this['_getAttributeKey'](_0x518c0d);('formatBlock'==_0x518c0d['type']||_0x48aa65&&this['_suggestionsConversion']['isBlockAttribute'](_0x48aa65))&&(_0x658ad4=this['_model']['createPositionBefore'](_0x658ad4['parent'])),this['_addSuggestionMarker'](_0x1849ac,_0x589776,_0x13fee0,this['_model']['createRange'](_0x658ad4,_0xffbc67));}_findSuggestions(_0x44b7b,_0x1f777b=null){const _0x48b908=[],_0x5edf99=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44b7b)||(_0x44b7b=[_0x44b7b]);for(const _0x406e33 of this['getSuggestions']()){if(!_0x406e33['isInContent'])continue;if(_0x1f777b&&_0x406e33['type']!=_0x1f777b)continue;let _0x371b95=!0x1;for(const _0xf713a1 of _0x406e33['getRanges']()){for(const _0x45d3b3 of _0x44b7b){const _0x2bb69a=_0x45d3b3['start']['isEqual'](_0xf713a1['end'])||_0x45d3b3['end']['isEqual'](_0xf713a1['start']);if(_0x2bb69a||_0x45d3b3['getIntersection'](_0xf713a1)){const _0x76d7a2=_0x45d3b3['containsRange'](_0xf713a1)&&cn(this['_model']['schema'],_0xf713a1['start'],_0x45d3b3),_0x27fbcb=_0xf713a1['containsRange'](_0x45d3b3)&&cn(this['_model']['schema'],_0x45d3b3['start'],_0xf713a1);_0x48b908['push']({'suggestion':_0x406e33,'meta':{'isOwn':_0x5edf99==_0x406e33['author'],'isNextTo':_0x2bb69a,'isInsideObject':_0x76d7a2,'containsRangeInObject':_0x27fbcb}}),_0x371b95=!0x0;break;}}if(_0x371b95)break;}}return _0x48b908;}_addSuggestionMarker(_0x11b10d,_0xbda245,_0x2679bb,_0x33d81b,_0x4dfe53){this['_model']['change'](_0x15bc5f=>{let _0x2de677='suggestion:'+_0x11b10d+':'+_0xbda245+':'+_0x2679bb;_0x4dfe53&&(_0x2de677=_0x2de677+':'+_0x4dfe53),_0x15bc5f['addMarker'](_0x2de677,{'range':_0x33d81b,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x3e66c0){const _0x1f9e0f=_0x3e66c0['previous'],_0x4d61f1=_0x3e66c0['next'];_0x3e66c0['previous']=null,_0x3e66c0['next']=null,null!=_0x1f9e0f&&_0x1f9e0f['next']==_0x3e66c0&&(_0x1f9e0f['next']=_0x4d61f1),null!=_0x4d61f1&&_0x4d61f1['previous']==_0x3e66c0&&(_0x4d61f1['previous']=_0x1f9e0f),'ready'==this['_suggestionState']['get'](_0x3e66c0)&&(this['_suggestionState']['set'](_0x3e66c0,'removed'),this['fire']('suggestionUnloaded',_0x3e66c0,_0x1f9e0f,_0x4d61f1));}_setSuggestionData(_0x1ecdb1){const _0x26a48e=_0x1ecdb1['id'],_0x150f8e=this['addSuggestionData'](_0x1ecdb1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e3c3=this['editor']['plugins']['get']('PendingActions'),_0x12bfb4=_0x150f8e['hasComments'],_0x2e80b4=_0x150f8e['subType']?_0x150f8e['type']+':'+_0x150f8e['subType']:_0x150f8e['type'],_0xc3de94=this['editor']['locale'],_0x185ebf=_0x50e3c3['add'](Ot(_0xc3de94,'PENDING_ACTION_SUGGESTION')),_0x2824cb={'id':_0x26a48e,'type':_0x2e80b4,'hasComments':_0x12bfb4,'data':_0x1ecdb1['data']||null,'originalSuggestionId':_0x1ecdb1['originalSuggestionId']||null,'attributes':_0x150f8e['attributes']};this['_adapter']['addSuggestion'](_0x2824cb)['then'](_0x4383d6=>{_0x150f8e['_saved']=!0x0,_0x50e3c3['remove'](_0x185ebf),_0x4383d6&&_0x4383d6['createdAt']&&(this['_suggestions']['get'](_0x26a48e)['createdAt']=_0x4383d6['createdAt']);})['catch'](_0x9ab1bf=>{throw _0x18c9eb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x150f8e['discard']();}),_0x150f8e['stopListening'](),this['_suggestions']['delete'](_0x150f8e['id']),this['_suggestionState']['delete'](_0x150f8e),_0x9ab1bf;});}return _0x150f8e;}_updateSuggestionData(_0x46953a,_0x3822bb){const _0x4d66f3=this['editor']['plugins']['get']('PendingActions'),_0x292be4=this['getSuggestion'](_0x46953a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292be4['_saved']){const _0x1b9810=_0x4d66f3['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46953a,_0x3822bb)['then'](()=>{_0x4d66f3['remove'](_0x1b9810);});}else _0x292be4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46953a,_0x3822bb);});}}_getSuggestionData(_0x2b9f84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x354614('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b9f84);}_handleNewSuggestionMarker(_0x355846){const {id:_0x3fd41f,type:_0x423033,subType:_0x2ad507,authorId:_0x342e7e}=et(_0x355846),_0x29bfad=this['_suggestions']['get'](_0x3fd41f)||this['_createSuggestion'](_0x423033,_0x2ad507,_0x3fd41f,_0x342e7e,{});switch(this['_checkSuggestionCorrectness'](_0x29bfad,_0x423033,_0x2ad507,_0x342e7e),this['_suggestionState']['get'](_0x29bfad)){case'notReady':this['_getSuggestionData'](_0x3fd41f)['then'](_0x309a5d=>{let _0x42acf9=Promise['resolve']();_0x309a5d['hasComments']&&(_0x42acf9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fd41f})),_0x42acf9['then'](()=>{this['addSuggestionData'](_0x309a5d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29bfad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fd41f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29bfad,'ready'),this['fire']('suggestionLoaded',_0x29bfad);break;case'ready':this['fire']('suggestionChanged',_0x29bfad);}return _0x29bfad['addMarkerName'](_0x355846),_0x29bfad;}_refreshSuggestionsChain(_0x456f6d){const _0x4db2c0=Array['from'](_0x456f6d),_0x1709d6=_0x4db2c0['filter'](_0x32823e=>'attribute'==_0x32823e['type']);this['_refreshAttributeSuggestionsChain'](_0x1709d6);const _0x1fc263=_0x4db2c0['filter'](_0x1a5ce3=>!_0x1a5ce3['isMultiRange']&&'attribute'!=_0x1a5ce3['type']),_0x12d3ed=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17d911=>!_0x17d911['isMultiRange']&&'attribute'!=_0x17d911['type']),_0x2a8438=_0x12d3ed['filter'](_0x4bfc77=>!_0x456f6d['has'](_0x4bfc77)),_0xb7b2e2=new Map(_0x12d3ed['map'](_0x449be2=>[_0x449be2,this['_suggestionFactory']['getSuggestionCallback'](_0x449be2['type'],_0x449be2['subType'],'chain')])),_0x4f786d=new Map(_0x12d3ed['map'](_0xa42a09=>[_0xa42a09,_0xa42a09['getFirstRange']()])),_0x58ebba=new Set(),_0x4bf110=new Set();for(let _0x5e4488=0x0;_0x5e4488<_0x1fc263['length'];_0x5e4488++)_0x2dffcf(_0x1fc263[_0x5e4488],_0x1fc263,_0x5e4488+0x1);for(let _0x52b0e4=0x0;_0x52b0e4<_0x1fc263['length'];_0x52b0e4++)_0x2dffcf(_0x1fc263[_0x52b0e4],_0x2a8438,0x0);const _0x44018e=new Set();for(let _0x3afdb5=0x0;_0x3afdb5<_0x1fc263['length'];_0x3afdb5++){const _0x56b7d8=_0x1fc263[_0x3afdb5];!_0x4bf110['has'](_0x56b7d8)&&_0x56b7d8['previous']&&(_0x44018e['add'](_0x56b7d8['previous']),_0x56b7d8['previous']['next']===_0x56b7d8&&(_0x56b7d8['previous']['next']=null),_0x56b7d8['previous']=null),!_0x58ebba['has'](_0x56b7d8)&&_0x56b7d8['next']&&(_0x44018e['add'](_0x56b7d8['next']),_0x56b7d8['next']['previous']===_0x56b7d8&&(_0x56b7d8['next']['previous']=null),_0x56b7d8['next']=null);}function _0x2dffcf(_0x25fa2d,_0x24a76c,_0x2371b3){for(let _0x4aba2c=_0x2371b3;_0x4aba2c<_0x24a76c['length'];_0x4aba2c++){const _0x4eda19=_0x1592db(_0x25fa2d,_0x24a76c[_0x4aba2c]);_0x4eda19&&(_0x4eda19[0x0]['next']=_0x4eda19[0x1],_0x4eda19[0x1]['previous']=_0x4eda19[0x0],_0x58ebba['add'](_0x4eda19[0x0]),_0x4bf110['add'](_0x4eda19[0x1]));}}function _0x1592db(_0x49fc5d,_0x285fa1){if(_0x49fc5d['author']['id']!==_0x285fa1['author']['id'])return null;const _0x5d8496=_0xb7b2e2['get'](_0x49fc5d)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1));return _0x5d8496&&_0xb7b2e2['get'](_0x285fa1)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1))?_0x5d8496[0x1]['commentThread']&&_0x5d8496[0x1]['commentThread']['length']?null:_0x5d8496:null;}_0x44018e['size']&&this['_refreshSuggestionsChain'](_0x44018e);}_refreshAttributeSuggestionsChain(_0x401ab8){if(0x0==_0x401ab8['length'])return;const _0xde55d8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22d887=>'attribute'==_0x22d887['type']&&_0x22d887['_isDataLoaded']),_0x43d1e0=[],_0x466406=new Map();for(const _0x5671c1 of _0xde55d8){const _0x2648ba=_0x1724db(_0x5671c1['attributes']);_0x466406['has'](_0x2648ba)||(_0x466406['set'](_0x2648ba,_0x43d1e0['length']),_0x43d1e0['push']([])),_0x43d1e0[_0x466406['get'](_0x2648ba)]['push'](_0x5671c1);}!(function(){_0x43d1e0['sort']((_0x4bab76,_0x587c2f)=>{const _0x99b9d4=_0x4bab76[0x0]['createdAt'],_0x1caa6d=_0x587c2f[0x0]['createdAt'];return _0x99b9d4==_0x1caa6d?_0x4bab76[0x0]['attributes']['groupId']<_0x587c2f[0x0]['attributes']['groupId']?-0x1:0x1:_0x99b9d4<_0x1caa6d?-0x1:0x1;});for(const _0x3464ba of _0x43d1e0)_0x3464ba['sort']((_0xf48a48,_0x29c128)=>_0xf48a48['id']<_0x29c128['id']?-0x1:0x1);}());for(let _0x29a311=0x0;_0x29a311<_0x43d1e0['length'];_0x29a311++){if(0x0==_0x43d1e0[_0x29a311]['length'])continue;const _0x27bfa1=[];for(let _0x437e80=_0x29a311+0x1;_0x437e80<_0x43d1e0['length'];_0x437e80++)0x0!=_0x43d1e0[_0x437e80]['length']&&_0x46c041(_0x43d1e0[_0x29a311],_0x43d1e0[_0x437e80])&&_0x27bfa1['push'](_0x437e80);for(const _0x414a6f of _0x27bfa1)_0x43d1e0[_0x29a311]=_0x43d1e0[_0x29a311]['concat'](_0x43d1e0[_0x414a6f]),_0x43d1e0[_0x414a6f]=[];}for(const _0x11bbec of _0x43d1e0)for(let _0x50528a=0x0;_0x50528a<_0x11bbec['length'];_0x50528a++){const _0xdec08f=_0x11bbec[_0x50528a+0x1]||null;_0x11bbec[_0x50528a]['next']!==_0xdec08f&&(_0x11bbec[_0x50528a]['next']=_0xdec08f);}for(const _0x3720e8 of _0x43d1e0)for(let _0xb0458c=0x0;_0xb0458c<_0x3720e8['length'];_0xb0458c++){const _0x24e380=_0x3720e8[_0xb0458c-0x1]||null;_0x3720e8[_0xb0458c]['previous']!==_0x24e380&&(_0x3720e8[_0xb0458c]['previous']=_0x24e380);}function _0x46c041(_0x107667,_0x5730a0){return(_0x107667[0x0]['attributes']['groupId']===_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['author']===_0x5730a0[0x0]['author'])&&(!!function(_0x497a16,_0x588171){return!_0x497a16['hasComments']&&!_0x588171['hasComments']||(!_0x497a16['hasComments']||!_0x588171['hasComments'])&&(!!(_0x497a16['hasComments']&&_0x588171['createdAt']<_0x497a16['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x588171['hasComments']&&_0x497a16['createdAt']<_0x588171['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x107667[0x0],_0x5730a0[0x0])&&(!!lt(ut(_0x107667[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x5730a0[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x107667[0x0]['attributes']['groupId']==_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['attributes']['trackingSessionId']===_0x5730a0[0x0]['attributes']['trackingSessionId']&&(!!_0x107667['every'](_0x1e171e=>_0x5730a0['some'](_0xfeed06=>_0x1e171e['getFirstRange']()['isEqual'](_0xfeed06['getFirstRange']())))&&_0x5730a0['every'](_0x19e98b=>_0x107667['some'](_0x380071=>_0x19e98b['getFirstRange']()['isEqual'](_0x380071['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x5d1333){const _0x139b01=Array['from'](_0x5d1333),_0x3c8d1a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36be56=_0x3c8d1a['filter'](_0xa340d9=>!_0x5d1333['has'](_0xa340d9)),_0x522bff=new Map(_0x139b01['map'](_0x2910f2=>[_0x2910f2,this['_suggestionFactory']['getSuggestionCallback'](_0x2910f2['type'],_0x2910f2['subType'],'join')])),_0x33484d=new Map(_0x3c8d1a['map'](_0x135ad0=>[_0x135ad0,_0x135ad0['getRanges']()]));for(let _0x2dbc77=0x0;_0x2dbc77<_0x139b01['length'];_0x2dbc77++)if(_0x2cece8(this,_0x139b01[_0x2dbc77],_0x139b01,_0x2dbc77+0x1))return!0x0;for(let _0x5485e6=0x0;_0x5485e6<_0x139b01['length'];_0x5485e6++)if(_0x2cece8(this,_0x139b01[_0x5485e6],_0x36be56,0x0))return!0x0;return!0x1;function _0x2cece8(_0x4d5940,_0x3e52be,_0x2c17e5,_0x3c47ad){for(let _0x1cc0a5=_0x3c47ad;_0x1cc0a5<_0x2c17e5['length'];_0x1cc0a5++){const _0x56fa36=_0x2c17e5[_0x1cc0a5];if(_0x56fa36['type']!==_0x3e52be['type']||_0x56fa36['author']['id']!==_0x3e52be['author']['id']||_0x56fa36['subType']!==_0x3e52be['subType'])continue;if(!_n(_0x3e52be,_0x56fa36))continue;if('attribute'==_0x3e52be['type']&&_0x3e52be['data']['oldValue']!=_0x56fa36['data']['oldValue'])continue;if('attribute'==_0x3e52be['type']&&_0x4d5940['_suggestionsConversion']['isBlockAttribute'](_0x3e52be['data']['key']))continue;if('formatBlock'==_0x3e52be['type']){const _0x46f259=_0x4d5940['editor']['model'],_0x58e995=_0x3e52be['getContainedElement']();if(_0x58e995&&(_0x46f259['schema']['isObject'](_0x58e995)||_0x46f259['schema']['isLimit'](_0x58e995)))continue;}const _0x564d7d=_0x522bff['get'](_0x3e52be),_0x365752=_0x33484d['get'](_0x3e52be),_0x182323=_0x33484d['get'](_0x56fa36),_0x50918b=_0x3e52be['commentThread']&&_0x3e52be['commentThread']['length'],_0x1bd99e=_0x56fa36['commentThread']&&_0x56fa36['commentThread']['length'];if(!_0x50918b&&_0x564d7d(_0x182323,_0x365752))return _0x4d5940['_joinSuggestions'](_0x56fa36,_0x3e52be),_0x33484d['delete'](_0x3e52be),!0x0;if(!_0x1bd99e&&_0x564d7d(_0x365752,_0x182323))return _0x4d5940['_joinSuggestions'](_0x3e52be,_0x56fa36),_0x33484d['delete'](_0x56fa36),!0x0;}return!0x1;}}_joinSuggestions(_0x36a91b,_0x28bc07){if(_0x36a91b['isMultiRange']){for(const _0x155092 of _0x28bc07['getRanges']())_0x36a91b['addRange'](_0x155092);}else{const _0x2da125=_0x28bc07['getFirstRange']()['end'];this['_setSuggestionRange'](_0x36a91b,this['_model']['createRange'](_0x36a91b['getFirstRange']()['start'],_0x2da125));}_0x28bc07['removeMarkers']();}_getMarkerAnnouncementText(_0x2856be,_0x10c32a,_0x54399c){const _0x1d230f=_0x2856be['startsWith']('format')||_0x2856be['startsWith']('attribute')?'FORMATTING':_0x2856be['toUpperCase']();return Ot(this['editor']['locale'],_0x10c32a+'_'+_0x1d230f+'_SUGGESTION_ANNOUNCEMENT',_0x54399c);}_initAriaMarkerChangeAnnouncements(){const _0x568b03=this['editor'];if(!_0x568b03['ui'])return;const {ariaLiveAnnouncer:_0x2dc772}=_0x568b03['ui'];nt(this['_model'],({left:_0x30530a,entered:_0x1341af})=>{for(const _0x321053 of _0x30530a){const {group:_0x2f1337,type:_0x4da563}=et(_0x321053['name']);if('suggestion'===_0x2f1337){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4da563,'LEAVE'));break;}}for(const _0x5887fd of _0x1341af){const {group:_0x5521f8,type:_0x4db227}=et(_0x5887fd['name']);if('suggestion'===_0x5521f8){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4db227,'ENTER',_0x4d423e(_0x341358)));break;}}});}_processAttributeChanges(_0x1ef470){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c297b=this['editor'],_0x42e74=_0x3c297b['model']['document']['differ']['getChanges']();if(0x0==_0x42e74['length'])return!0x1;const _0x29976b=[],_0x1e9335=_0x42e74['filter'](_0x53ba0e=>'attribute'==_0x53ba0e['type']),_0x1129cb=_0x42e74['filter'](_0x541173=>'insert'==_0x541173['type']&&'$text'!=_0x541173['name']),_0x4b4637=_0x42e74['filter'](_0x12fd51=>'remove'==_0x12fd51['type']&&'$text'!=_0x12fd51['name']);for(const _0x192268 of _0x1e9335)_0x29976b['push']({'key':_0x192268['attributeKey'],'newValue':_0x192268['attributeNewValue'],'oldValue':_0x192268['attributeOldValue'],'range':mn(_0x192268['range'],_0x3c297b['model'])});for(const _0x2a5caf of _0x1129cb){const _0x68692b=_0x4b4637['find'](_0x4f8254=>_0x4f8254['position']['isEqual'](_0x2a5caf['position']));_0x68692b&&_0x29976b['push']({'key':rn,'newValue':_0x2a5caf['name'],'oldValue':_0x68692b['name'],'range':_0x3c297b['model']['createRangeOn'](_0x2a5caf['position']['nodeAfter'])});}return 0x0!=_0x29976b['length']&&this['_reduceExistingSuggestions'](_0x1ef470,_0x29976b);}_processAttributeSuggestions(_0x56577d){let _0x936fdd=!0x1;const _0x54c5ec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b816c=>_0x5b816c['data']['newRange']&&_0x5b816c['name']['startsWith']('suggestion:attribute:'));for(const _0x14e9aa of _0x54c5ec){const {subType:_0x2ca158,id:_0x17c9fa}=et(_0x14e9aa['name']),_0x363750=_0x2ca158['split']('|')[0x0];for(const _0x4c3b4f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c3b4f['id']!=_0x17c9fa&&'attribute'==_0x4c3b4f['type']&&_0x4c3b4f['data']&&_0x4c3b4f['data']['key']==_0x363750&&_0x4c3b4f['getFirstRange']()['isIntersecting'](_0x14e9aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c3b4f,_0x14e9aa['data']['newRange'],_0x56577d),_0x936fdd=!0x0);}return _0x936fdd;}recordAttributeChanges(_0xd8e529){this['_recordAttributeSuggestions']=!0x0,_0xd8e529();}_reduceExistingSuggestions(_0x2611a0,_0xb4dbcc){if(0x0==_0xb4dbcc['length'])return!0x1;let _0x12a4dc=!0x1;for(const _0x18292c of _0xb4dbcc){const _0x8b9581=this['_findSuggestions'](_0x18292c['range'],'attribute')['filter'](_0x233dbf=>!_0x233dbf['meta']['isNextTo'])['map'](_0x34fbc6=>_0x34fbc6['suggestion']),_0x18154b=_0x1724db({'newValue':_0x18292c['newValue']});_0x8b9581['filter'](_0x3dd671=>{const [_0x1f198a,_0x38ba3c]=_0x3dd671['subType']['split']('|');return _0x1f198a==_0x18292c['key']&&_0x38ba3c!=_0x18154b;})['forEach'](_0xfab23f=>{this['_reduceSuggestionAttributeRange'](_0xfab23f,_0x18292c['range'],_0x2611a0),_0x12a4dc=!0x0;});}return _0x12a4dc;}_reduceSuggestionAttributeRange(_0x33f851,_0x430507,_0xd2e41a){const _0x4ca6dd=_0x33f851['getFirstRange']()['getDifference'](_0x430507);0x0!==_0x4ca6dd['length']?0x1!==_0x4ca6dd['length']?this['_breakSuggestionMarker'](_0x33f851,_0x430507['start'],_0x430507['end']):this['_setSuggestionRange'](_0x33f851,_0x4ca6dd[0x0]):_0xd2e41a['removeMarker'](_0x33f851['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x27789d){this['_editor']=_0x27789d,this['_model']=_0x27789d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x8a1c68,_0x179339,_0x575bc9,_0x3b7301,_0x72b31b,_0x14b494,_0x2aa7ff){return new Mt(this['_model'],{'type':_0x8a1c68,'subType':_0x179339,'id':_0x575bc9,'originalSuggestionId':_0x2aa7ff,'author':_0x3b7301,'creator':_0x3b7301,'attributes':_0x72b31b,'onAttributesChange':_0x14b494,'onAccept':(..._0x454390)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'accept')(..._0x454390),'onDiscard':(..._0x26cc83)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'discard')(..._0x26cc83)});}registerCustomCallback(_0x10f1ea,_0x36c818,_0x46063c,_0x200ae2){const _0x317664=_0x10f1ea+':'+_0x36c818+':'+_0x46063c;this['_customCallbacks']['set'](_0x317664,_0x200ae2);}getSuggestionCallback(_0x24ccec,_0x59a581,_0x5c322e){const _0x3a18ab=_0x24ccec+':'+_0x59a581+':'+_0x5c322e;return this['_customCallbacks']['get'](_0x3a18ab)||this['_defaultCallbacks']['get'](_0x24ccec+':'+_0x5c322e);}_registerDefaultCallbacks(){const _0x38995e=()=>!0x1,_0x2b1891=_0x5e05a5=>{_0x5e05a5['sort']((_0x787cb7,_0x4b4abd)=>_0x787cb7['start']['isBefore'](_0x4b4abd['start'])?0x1:-0x1),this['_model']['change'](_0x443a35=>{for(const _0x2f9d45 of _0x5e05a5){let _0x1d1f70;_0x1d1f70=_0x2f9d45['end']['isAtEnd']&&_0x2f9d45['end']['parent']==_0x2f9d45['start']['nodeAfter']?_0x443a35['createSelection'](_0x2f9d45['start']['nodeAfter'],'on'):_0x443a35['createSelection'](_0x2f9d45),this['_model']['deleteContent'](_0x1d1f70,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c758c=(_0x32820e,_0x183918)=>{_0x183918&&this['_model']['change'](_0x56cfe2=>{const {commandName:_0x7b9363,commandParams:_0x19b9b4=[]}=_0x183918,_0x551cdf=_0x32820e['map'](_0x8bdca0=>(ln(_0x8bdca0)&&(_0x8bdca0=this['_model']['createRange'](_0x8bdca0['end'])),_0x8bdca0))['filter'](_0xcf19e0=>'$graveyard'!==_0xcf19e0['root']['rootName']);if(_0x551cdf['length']<0x1)return;const _0x4a27d4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8da29b=>ot['fromRange'](_0x8da29b));_0x56cfe2['setSelection'](_0x551cdf);for(const _0x50261d of this['_editor']['commands']['commands']())_0x50261d['refresh']();_0x19b9b4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7b9363,..._0x19b9b4);const _0x5427ca=_0x4a27d4['filter'](_0x5bc709=>'$graveyard'!=_0x5bc709['root']['rootName']);_0x5427ca['length']>0x0&&_0x56cfe2['setSelection'](_0x5427ca);for(const _0x4a23cf of _0x4a27d4)_0x4a23cf['detach']();});},_0x594953=(_0x50ce32,_0x1b1c37)=>0x1==_0x50ce32['length']&&0x1==_0x1b1c37['length']&&_0x50ce32[0x0]['end']['isEqual'](_0x1b1c37[0x0]['start']),_0x25e03d=(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)=>Tn(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)?[_0x2094db,_0x6afaa6]:Tn(_0x6afaa6,_0x2094db,_0x58f591,_0x1a4786)?[_0x6afaa6,_0x2094db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38995e),this['_defaultCallbacks']['set']('insertion:discard',_0x2b1891),this['_defaultCallbacks']['set']('insertion:join',_0x594953),this['_defaultCallbacks']['set']('insertion:chain',_0x25e03d),this['_defaultCallbacks']['set']('deletion:accept',_0x2b1891),this['_defaultCallbacks']['set']('deletion:discard',_0x38995e),this['_defaultCallbacks']['set']('deletion:join',_0x594953),this['_defaultCallbacks']['set']('deletion:chain',_0x25e03d),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatInline:discard',_0x38995e),this['_defaultCallbacks']['set']('formatInline:join',_0x594953),this['_defaultCallbacks']['set']('formatInline:chain',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:join',_0x594953),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38995e),this['_defaultCallbacks']['set']('attribute:accept',_0x38995e),this['_defaultCallbacks']['set']('attribute:discard',(_0xe99485,_0x34b114)=>{if(!_0x34b114)return;const _0x5b4c9e=this['_editor']['plugins']['get'](_0x358b09);this['_model']['change'](_0x2def74=>{if('$elementName'==_0x34b114['key'])for(const _0xd1f1c5 of _0xe99485){const _0x21304b=_0xd1f1c5['start']['nodeAfter'],_0x8a7598=_0x34b114['oldValue'];_0x2def74['rename'](_0x21304b,_0x8a7598);}else{if(_0x5b4c9e['isBlockAttribute'](_0x34b114['key'])){for(const _0x19f662 of _0xe99485)void 0x0!==_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x19f662['start']['nodeAfter']):_0x2def74['removeAttribute'](_0x34b114['key'],_0x19f662['start']['nodeAfter']);}else{for(const _0x169caf of _0xe99485)_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x169caf):_0x2def74['removeAttribute'](_0x34b114['key'],_0x169caf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x594953);}};function cn(_0x4aba1f,_0xd93787,_0x1613e8){for(const _0x3e15a3 of _0xd93787['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3e15a3['root']==_0x3e15a3)return!0x1;if(!_0x1613e8['containsItem'](_0x3e15a3))return!0x1;if(_0x4aba1f['isObject'](_0x3e15a3)||_0x4aba1f['isLimit'](_0x3e15a3))return!0x0;}return!0x1;}function ln(_0x523d68){return _0x523d68['end']['parent']==_0x523d68['start']['nodeAfter']&&_0x523d68['end']['isAtStart'];}function un(_0xd5816a,_0x55fe0e,_0x127c21,_0x16592f){const _0x400ec0=_0x2140c0=>!_0x2140c0['item']['is']('$textProxy')&&!_0x16592f['isObject'](_0x2140c0['item']),_0x18a938=_0xd5816a['start']['getLastMatchingPosition'](_0x400ec0),_0x5b39bd=_0xd5816a['end']['getLastMatchingPosition'](_0x400ec0,{'direction':'backward'});return(!_0xd5816a['start']['isEqual'](_0x18a938)||!_0xd5816a['end']['isEqual'](_0x5b39bd))&&(_0x18a938['isBefore'](_0x5b39bd)?_0x127c21['updateMarker'](_0x55fe0e,{'range':_0x127c21['createRange'](_0x18a938,_0x5b39bd)}):_0x127c21['removeMarker'](_0x55fe0e),!0x0);}function dn(_0x42fea3){return _0x1724db(_0x42fea3);}function hn(_0x30a869){const _0x178d08=_0x30a869['start']['nodeAfter'];return _0x178d08&&_0x178d08['is']('element');}function gn(_0x31baf3){return ln(_0x31baf3)||function(_0x4337b1){return _0x4337b1['start']['parent']==_0x4337b1['end']['nodeBefore']&&_0x4337b1['start']['isAtEnd'];}(_0x31baf3);}function fn(_0x5aebb0,_0x4a527d){try{const _0xc11d85=_0x5aebb0['getRange']();for(const _0x34064c of _0x4a527d)if(_0x5aebb0!==_0x34064c&&_0xc11d85&&_0xc11d85['isIntersecting'](_0x34064c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1f4f62,_0x2147bd){return null==_0x1f4f62['end']['nodeBefore']&&_0x1f4f62['end']['parent']==_0x1f4f62['start']['nodeAfter']?En(_0x1f4f62['start']['nodeAfter'],_0x2147bd):_0x1f4f62;}function En(_0x74e184,_0x2cffcd){const _0x17799c=_0x2cffcd['schema']['isObject'](_0x74e184)||_0x2cffcd['schema']['isSelectable'](_0x74e184);return _0x2cffcd['createRange'](_0x2cffcd['createPositionAt'](_0x74e184,'before'),_0x17799c?_0x2cffcd['createPositionAfter'](_0x74e184):_0x2cffcd['createPositionAt'](_0x74e184,'end'));}function Tn(_0x411c4e,_0x1ff6c0,_0x214102,_0x1c64d0){return!!_n(_0x411c4e,_0x1ff6c0)&&_0x214102['end']['isEqual'](_0x1c64d0['start']);}function _n(_0x2f7b00,_0x5fb4e9){if(!_0x2f7b00['_isDataLoaded']||!_0x5fb4e9['_isDataLoaded'])return!0x1;const _0x48b833=new Set(Object['keys'](_0x2f7b00['attributes'])),_0x561636=new Set(Object['keys'](_0x5fb4e9['attributes']));if(_0x48b833['delete']('groupId'),_0x561636['delete']('groupId'),0x0==_0x48b833['size']&&0x0==_0x561636['size'])return!0x0;if(_0x48b833['size']!=_0x561636['size'])return!0x1;const _0x1438e8={..._0x2f7b00['attributes']},_0x3b197c={..._0x5fb4e9['attributes']};return delete _0x1438e8['groupId'],delete _0x3b197c['groupId'],JSON['stringify'](_0x1438e8)==JSON['stringify'](_0x3b197c);}function pn(_0x4834c5,_0x59ca8e){const _0x2713b1=Ln(_0x4834c5['attributes']),_0x429aec=Ln(_0x59ca8e);if(!_0x4834c5['_isDataLoaded'])return!0x1;if(!lt(_0x2713b1['@ai'],_0x429aec['@ai']))return!0x1;for(const _0x4cbb44 of Object['keys'](_0x429aec))if(!lt(_0x2713b1[_0x4cbb44],_0x429aec[_0x4cbb44]))return!0x1;return!0x0;}function Ln(_0x1c6671){const _0x4a38b3=Object['assign']({},_0x1c6671);return delete _0x4a38b3['skipNestingCheck'],delete _0x4a38b3['tablePasteChainId'],_0x4a38b3;}function In(_0x4a9eae){return _0x4a9eae['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x1377a3();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0xb725df,_0x3db51f,_0x59c731,_0x41a7e6){super(),this['model']=_0x3db51f,this['view']=_0x59c731,this['commentThreadController']=_0x41a7e6,this['_editor']=_0xb725df,this['_acceptCommand']=_0xb725df['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xb725df['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x312c1d,_0x43df50)=>_0x312c1d||_0x43df50),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32df82=>_0x32df82&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x6e018c=>_0x6e018c&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['_pendingAction']=null,_0x59c731['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59c731,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59c731,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59c731,'change:isDirty',()=>{_0x59c731['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 _0x24013a=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24013a);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x50f806{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e1a0b,_0x47c2e8,_0x21f3b7,_0x4ba7a2){super(_0x3e1a0b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30c9b4(_0x3e1a0b,Ot(_0x3e1a0b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47c2e8['authoredAt']),this['bind']('authoredAt')['to'](_0x47c2e8),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',_0x47c2e8,'authoredAt',this,'descriptionParts',(_0xfd980b,_0x3d5012,_0x29c1ee)=>{const _0x54ccba=_0x29c1ee['map'](_0x42b1cf=>It(_0x42b1cf['content']))['join']('.\x20')+'.',_0x5c5f58=_0x47c2e8['aiSource']&&'author'===_0x4ba7a2['showAISource']?_0x4ba7a2['aiAuthor']['name']:_0x47c2e8['author']['name'],_0x381493=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfd980b-0x1,_0x5c5f58,_0x3d5012?_0x4ba7a2['formatDateTime'](_0x3d5012):'',new DOMParser()['parseFromString'](_0x54ccba,'text/html')['body']['textContent']]);return _0x47c2e8['aiSource']&&'pill'===_0x4ba7a2['showAISource']?_0x381493+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x381493;}),this['focusables']=new _0x32a053(),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bde38=>_0x2bde38['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47c2e8,this['_localUser']=_0x21f3b7,this['_config']=_0x4ba7a2,_0x4ba7a2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x538629}=this['_config'];this['commentsListView']=new _0x538629(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',_0x660403=>_0x660403+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21cad6,_0x12c0bf)=>_0x21cad6||!!_0x12c0bf);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4e08ed}=this['_config'],_0x22f288=new _0x4e08ed(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49d00a=_0x22f288['commentInputView'];return _0x22f288['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49d00a,'value',(_0x24317e,_0x26ece7,_0x1afe55)=>!!_0x1afe55||_0x24317e&&!_0x26ece7),_0x49d00a['on']('submit',(_0x48b616,_0x4f53c9)=>{this['fire']('addComment',_0x4f53c9),_0x49d00a['editor']['setData']('');}),_0x49d00a['on']('cancel',()=>this['focus']()),_0x49d00a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22f288;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b){super(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x434f11=>_0x434f11&&_0x434f11[0x0]?_0x434f11[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528732,_0x19ac49)=>{let _0x8929c7='';for(const _0x3380da of _0x528732)_0x8929c7+='<p>'+It(_0x3380da['content'],_0x3380da['color'])+'</p>';return _0x19ac49?_0x8929c7:it(_0x8929c7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x11070b['SuggestionView'](_0x216ac1,_0x254b7f,{'formatDateTime':_0x11070b['formatDateTime'],'showAISource':_0x11070b['showAISource'],'aiAuthor':_0x11070b['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 _0x582f5a=this['bindTemplate'],_0x302fa8=[this['suggestionView']];return this['commentsListView']&&_0x302fa8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x302fa8['push'](this['commentThreadInputView']),_0x302fa8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x582f5a['if']('isActive','ck-suggestion-wrapper--active'),_0x582f5a['to']('type',_0x2ed5a2=>'ck-suggestion-'+_0x2ed5a2),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':_0x582f5a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x302fa8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x50f806{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x493035,_0x494700,_0xc1e1ba){super(_0x493035),this['_model']=_0x494700,this['_config']=_0xc1e1ba,this['set']('description',''),this['bind']('authoredAt')['to'](_0x494700),this['acceptButton']=this['_createButton'](Ot(_0x493035,'Accept\x20suggestion'),_0xf15df7,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x493035,'Discard\x20suggestion'),_0x15d8dd,'ck-suggestion--discard','discardSuggestion','sw');const _0x7390fb=!!_0x494700['aiSource']&&'author'===_0xc1e1ba['showAISource'],_0x34ef7d=_0x7390fb?this['_createAIUser'](_0xc1e1ba['aiAuthor']):_0x494700['author'],_0x490442=_0x7390fb&&!_0xc1e1ba['aiAuthor']['avatar']?_0x1e2770:void 0x0;this['userView']=new _0x19bc2d(_0x493035,_0x34ef7d,this['getUserViewNotificationText'](),_0x490442),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32a053([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4acb=>_0x4acb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x29e4ef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x29e4ef['innerHTML']=this['description'],this['on']('change:description',(_0x164261,_0x2bc9d8,_0x5e0e8d)=>{_0x29e4ef['innerHTML']=_0x5e0e8d;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3ca96a=this['bindTemplate'],_0x16561a=[{'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':_0x3ca96a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ca96a['to']('authoredAt',_0x5b4df2=>this['_config']['formatDateTime'](_0x5b4df2))}]}]},{'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']&&_0x16561a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x548b86=new _0x23bf39(this['locale']);_0x548b86['set']({'icon':_0x1fc493,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x16561a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x548b86]});}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':_0x16561a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x14d83a){return new _0x44bfc7({'id':'ck-ai-author','name':_0x14d83a['name'],'avatar':_0x14d83a['avatar'],'color':new _0x3b64d0(0x0)});}_createButton(_0x3a2735,_0x52a969,_0x3add2a,_0x35418d,_0x18cca2){const _0x34898d=new _0x50d24e(this['locale']);return _0x34898d['set']({'label':_0x3a2735,'icon':_0x52a969,'tooltip':!0x0,'tooltipPosition':_0x18cca2}),_0x34898d['extendTemplate']({'attributes':{'class':_0x3add2a}}),_0x34898d['on']('execute',()=>{this['fire'](_0x35418d,this['_model']['id']);}),_0x34898d;}_setupKeyboardNavigation(){const _0x4f6532=this['element'];this['keystrokes']['listenTo'](_0x4f6532);for(const _0x4292d1 of this['focusables'])this['focusTracker']['add'](_0x4292d1['element']),this['keystrokes']['listenTo'](_0x4292d1['element']);this['keystrokes']['set']('enter',(_0x959bb0,_0x4c7857)=>{_0x4f6532===_0x959bb0['target']&&(this['focusCycler']['focusFirst'](),_0x4c7857());}),this['keystrokes']['set']('esc',(_0x164216,_0x2b90ba)=>{_0x4f6532!==_0x164216['target']&&(this['focus'](),_0x2b90ba());});}},yn=class extends _0x9bd549{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0xfe45c9,_0x203ad7,_0x59e02d,_0x38d953];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590a3c){super(_0x590a3c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f8f63=this['editor']['config'];_0x3f8f63['define']('trackChanges.SuggestionThreadView',kn),_0x3f8f63['define']('trackChanges.SuggestionView',Rn),_0x3f8f63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f8f63['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x50464d,_0x32e128){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48d234,_0x5064f4]of this['_handleControllerBuffer']){const _0x277cbf=this['_suggestionToController']['has'](_0x48d234);_0x277cbf||_0x5064f4?_0x277cbf&&_0x5064f4&&this['_destroyController'](_0x48d234):this['_initializeController'](_0x48d234);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x38d953)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50464d,_0x32e128);}init(){const _0x3758aa=this['editor'],_0x53d523=_0x3758aa['plugins']['get'](on),_0xe31ad3=_0x3758aa['plugins']['get'](_0x59e02d),_0x4f4686=_0x3758aa['plugins']['get'](_0x38d953),_0x28fd97=_0x3758aa['plugins']['get'](_0x203ad7);this['_addUIComponentsToFactory'](),_0x4f4686['addSourceCollector'](()=>{const _0x299bb6=[];for(const [_0x3641d4,_0x3429c8]of Array['from'](this['_suggestionToController'])){const _0x5ab363=_0x3641d4['getAllAdjacentSuggestions'](),_0x1a0c16=[];for(const _0x32b6a3 of _0x5ab363){if(!_0x32b6a3['isInContent'])continue;if(_0x32b6a3['isMultiRange']){_0x1a0c16['push'](..._0x32b6a3['getRanges']());continue;}const _0x2e7c2c=_0x32b6a3['getFirstRange']();if(_0x1a0c16['length']>0x0){const _0x426518=_0x1a0c16[0x0]['getJoined'](_0x2e7c2c);if(_0x426518){_0x1a0c16[0x0]=_0x426518;continue;}}_0x1a0c16['push'](_0x2e7c2c);}_0x299bb6['push']([_0x3429c8['view'],_0x1a0c16]);}return _0x299bb6;}),this['listenTo'](_0x53d523,'suggestionLoaded',(_0x1f919d,_0x540296)=>{this['listenTo'](_0x540296,'change:previous',(_0x3e12e0,_0x10765e,_0x38c8cd,_0x152197)=>{_0x540296['isInContent']&&(null==_0x38c8cd?(this['_updateController'](_0x152197['head']),this['_handleSuggestionControllerDelayed'](_0x540296,!0x1)):(this['_updateController'](_0x38c8cd['head']),null==_0x152197&&this['_handleSuggestionControllerDelayed'](_0x540296,!0x0)));}),null!==_0x540296['previous']?this['_updateController'](_0x540296['head']):this['_handleSuggestionControllerDelayed'](_0x540296,!0x1);}),this['listenTo'](_0x53d523,'suggestionUnloaded',(_0x445366,_0x29931f,_0x291238)=>{this['stopListening'](_0x29931f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29931f),this['_suggestionToController']['has'](_0x29931f)&&this['_destroyController'](_0x29931f),_0x291238&&this['_updateController'](_0x291238['head']);}),this['listenTo'](_0x53d523,'suggestionChanged',(_0xd9acfa,_0x47d79c)=>{this['_updateController'](_0x47d79c);}),this['listenTo'](_0xe31ad3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x28fd97,'addComment',(_0x365965,{threadId:_0xaf9363,isFromAdapter:_0x528132})=>{if(_0x528132||!_0x53d523['hasSuggestion'](_0xaf9363))return;const _0x109fad=_0x53d523['getSuggestion'](_0xaf9363);this['_suggestionToController']['get'](_0x109fad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1af41c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x82fc1e;for(const _0x33b034 in _0x1af41c){const _0x396c16=_0x33b034,_0x49e71e=_0x1af41c[_0x396c16];if('trackChangesLicenseKeyValid'==_0x49e71e||'trackChangesLicenseKeyInvalid'==_0x49e71e||'trackChangesLicenseKeyExpired'==_0x49e71e||'trackChangesLicenseKeyDomainLimit'==_0x49e71e||'trackChangesLicenseKeyNotAllowed'==_0x49e71e||'trackChangesLicenseKeyEvaluationLimit'==_0x49e71e||'trackChangesLicenseKeyUsageLimit'==_0x49e71e){delete _0x1af41c[_0x396c16],_0x82fc1e=_0x49e71e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x82fc1e&&_0x1af41c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x82fc1e&&_0x1af41c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x82fc1e&&_0x1af41c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x1b28cf){const _0x351192=this['_suggestionToController']['get'](_0x1b28cf);return _0x351192&&this['editor']['plugins']['get'](_0x59e02d)['getByInnerView'](_0x351192['view'])||null;}getSuggestionForAnnotation(_0x2317dd){const _0x3c7ec4=this['_viewToController']['get'](_0x2317dd['innerView']);return _0x3c7ec4?_0x3c7ec4['model']:null;}_refreshActiveMarkers(){const _0x476d4c=this['editor']['plugins']['get'](_0x59e02d),_0x423938=this['editor']['plugins']['get'](on),_0x365e8d=Array['from'](_0x476d4c['activeAnnotations'],_0x924ac=>_0x924ac['innerView'])['filter'](_0x3fe8a5=>this['_viewToController']['has'](_0x3fe8a5)),_0xdcd290=[];for(const _0x51ad13 of _0x365e8d){const _0x127576=this['_viewToController']['get'](_0x51ad13)['model']['getAllAdjacentSuggestions']();_0xdcd290['push'](..._0x127576['reduce']((_0x85e974,_0x1c937c)=>[..._0x85e974,..._0x1c937c['getMarkerNames']()],[]));}_0x423938['activeMarkers']=_0xdcd290;}_addUIComponentsToFactory(){const _0x3eabef=this['editor'],_0x354724=_0x3eabef['locale'],_0x6b0a3d=Ot(_0x354724,'Track\x20changes'),_0x8a6b1c=new _0x312921([{'type':'switchbutton','model':new _0x53a520({'withText':!0x0,'isToggleable':!0x0,'label':_0x6b0a3d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3eabef['plugins']['has']('TrackChangesPreview')&&_0x8a6b1c['addMany']([{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x337926 of _0x8a6b1c)if(Nn(_0x337926)){const _0x25ff74=_0x3eabef['commands']['get'](_0x337926['model']['commandName']);_0x337926['model']['bind']('isOn','isEnabled')['to'](_0x25ff74,'value','isEnabled');}_0x3eabef['ui']['componentFactory']['add']('trackChanges',_0x5ecbe9=>this['_createToolbarButton'](_0x5ecbe9,_0x8a6b1c,_0x6b0a3d)),_0x3eabef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e91d6=>this['_createMenuBarMenu'](_0x1e91d6,_0x8a6b1c,_0x6b0a3d));}_createToolbarButton(_0x4ed820,_0x41a075,_0x3bd831){const _0x5cd39b=_0x2112c8(_0x4ed820,_0x2ed566),_0x7a1175=this['editor']['commands']['get']('trackChanges');_0x5cd39b['buttonView']['set']({'tooltip':_0x3bd831,'label':_0x3bd831,'icon':_0x5c9b3e}),_0x5cd39b['buttonView']['bind']('isOn')['to'](_0x7a1175,'value'),_0x5cd39b['buttonView']['on']('execute',()=>{_0x7a1175['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a8502(_0x5cd39b,_0x41a075,{'role':'menu'});const _0x2a1ddf=[];for(const _0x3d7494 of _0x41a075)Nn(_0x3d7494)&&_0x2a1ddf['push'](this['editor']['commands']['get'](_0x3d7494['model']['commandName']));const _0x253318=_0x5cd39b['buttonView'];return _0x253318['actionView']['unbind']('isEnabled'),_0x253318['arrowView']['unbind']('isEnabled'),_0x253318['actionView']['bind']('isEnabled')['to'](_0x7a1175,'isEnabled'),_0x253318['arrowView']['bind']('isEnabled')['toMany'](_0x2a1ddf,'isEnabled',(..._0x569793)=>_0x569793['some'](_0x2a2ae8=>_0x2a2ae8)),_0x5cd39b['on']('execute',_0x7b48a5=>{this['editor']['execute'](_0x7b48a5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5cd39b;}_createMenuBarMenu(_0x32dbe3,_0x204678,_0x4c9b91){const _0x2d56e9=new _0x34c878(_0x32dbe3),_0x2024f2=this['editor']['commands']['get']('trackChanges');_0x2d56e9['buttonView']['set']({'label':_0x4c9b91,'icon':_0x5c9b3e});const _0x24d0c0=new _0x5d0013(_0x32dbe3);for(const _0x25cf1c of _0x204678){if('separator'==_0x25cf1c['type']){_0x24d0c0['items']['add'](new _0x188ba7(_0x32dbe3));continue;}const _0x1f2494=new _0xdc420d(_0x32dbe3,_0x2d56e9),_0x2bba29=new _0x452ca1(_0x32dbe3),_0xe6ecd0=_0x25cf1c['model'];_0x2bba29['bind'](...Object['keys'](_0xe6ecd0))['to'](_0xe6ecd0),_0x2bba29['delegate']('execute')['to'](_0x2d56e9),_0x2bba29['on']('execute',()=>{this['editor']['execute'](_0xe6ecd0['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f2494['children']['add'](_0x2bba29),_0x24d0c0['items']['add'](_0x1f2494);}return _0x2d56e9['bind']('isEnabled')['to'](_0x2024f2,'isEnabled'),_0x2d56e9['panelView']['children']['add'](_0x24d0c0),_0x2d56e9;}_initializeController(_0x2d47d5){const _0x135c86=this['editor'],_0x5c04ce=_0x135c86['config'],_0xa3d5ba=_0x135c86['plugins']['get'](_0x59e02d),_0x402a34=_0x135c86['plugins']['get'](_0x203ad7),_0x27c14e=_0x135c86['plugins']['get'](_0x38d953),_0x2eb6ee=_0x135c86['plugins']['get'](_0xfe45c9)['me'],_0x87a382=_0x5c04ce['get']('trackChanges')['SuggestionThreadView'],_0x710eb8=_0x5c04ce['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2833ac,CommentThreadInputView:_0x4cb231}=_0x135c86['plugins']['get']('CommentsUI');let _0x31c7fa,_0x58ab04,_0x28e12f;this['_annotationViews']['has'](_0x2d47d5['id'])?(_0x58ab04=this['_annotationViews']['get'](_0x2d47d5['id']),_0x31c7fa=_0x58ab04['mainView']):(_0x31c7fa=new _0x87a382(_0x135c86['locale'],_0x2d47d5,_0x2eb6ee,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5c04ce['get']('comments.editorConfig'),'licenseKey':_0x5c04ce['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c04ce['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49bb80(_0x5c04ce['get']('locale'),_0x135c86['locale']),'CommentView':_0x5c04ce['get']('comments')['CommentView'],'CommentsListView':_0x2833ac,'CommentThreadInputView':_0x4cb231,'SuggestionView':_0x710eb8,'showAISource':_0x5c04ce['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5c04ce['get']('trackChanges.aiAuthor'),'name':_0x5c04ce['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x135c86['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x31c7fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x31c7fa['suggestionView']['discardButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x58ab04=_0xa3d5ba['createAnnotationView'](this['editor']['locale'],_0x31c7fa),_0x58ab04['bind']('isDirty')['to'](_0x31c7fa,'isDirty'),_0x58ab04['bind']('length')['to'](_0x31c7fa),_0x58ab04['bind']('type')['to'](_0x31c7fa,'type',_0x2de8fa=>'suggestion-'+_0x2de8fa),_0x31c7fa['on']('escape',()=>{_0x28e12f['fire']('escape');}),this['_annotationViews']['set'](_0x2d47d5['id'],_0x58ab04));const _0x1266b4=_0x402a34['createCommentThreadController'](_0x2d47d5['commentThread'],_0x31c7fa),_0x30ff20=new bn(_0x135c86,_0x2d47d5,_0x31c7fa,_0x1266b4),_0x577e3c=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x336749=>_0x336749['isInContent']);_0x31c7fa['descriptionParts']=_0x135c86['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x577e3c),this['_suggestionToController']['set'](_0x2d47d5,_0x30ff20),this['_viewToController']['set'](_0x31c7fa,_0x30ff20);const _0x2c9d23=()=>{const _0x431971=[],_0x3a9fb1=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x302d57=>_0x302d57['isInContent']);for(const _0x1915dd of _0x3a9fb1)_0x431971['push'](..._0x1915dd['getMarkers']());return _0x136b64(_0x135c86['editing'],_0x431971);};_0x28e12f=_0xa3d5ba['createAnnotation']({'view':_0x58ab04,'target':_0x2c9d23,'type':()=>'suggestion-'+_0x30ff20['view']['type'],'isVisible':!!_0x2c9d23()}),_0x402a34['_bindAnnotationToEditors'](_0x31c7fa,_0x28e12f),_0xa3d5ba['add'](_0x28e12f),_0x27c14e['registerAnnotation'](_0x28e12f);}_destroyController(_0x54a4b8){const _0x188f84=this['editor']['plugins']['get'](_0x203ad7),_0x1dc793=this['editor']['plugins']['get'](_0x59e02d),_0x313384=this['_suggestionToController']['get'](_0x54a4b8),_0x338c55=_0x313384['view'],_0x2ce5fd=_0x1dc793['getByInnerView'](_0x338c55);_0x188f84['_unbindEditors'](_0x338c55),_0x2ce5fd&&_0x1dc793['remove'](_0x2ce5fd),this['_suggestionToController']['delete'](_0x54a4b8),this['_viewToController']['delete'](_0x338c55),_0x313384['destroy']();}_updateController(_0x12d872){if(!_0x12d872['isInContent']||!this['_suggestionToController']['has'](_0x12d872))return;const _0x2d98fb=this['editor']['plugins']['get'](on),_0x49ee79=this['_suggestionToController']['get'](_0x12d872),_0x2d8023=_0x12d872['getAllAdjacentSuggestions']();_0x49ee79['view']['descriptionParts']=_0x2d98fb['descriptionFactory']['getDescriptions'](_0x2d8023);}destroy(){for(const _0x3499b7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3499b7);for(const _0x339372 of this['_annotationViews']['values']())_0x339372['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x15ea22){return'model'in _0x15ea22;}var Sn=class extends _0x9bd549{static get requires(){return[on,yn,_0x435a16];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3dd871){this['editor']['plugins']['get'](on)['adapter']=_0x3dd871;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x57e5a8){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x57e5a8);}getSuggestions({skipNotAttached:_0x5cfa4e=!0x1,toJSON:_0x131929=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5cfa4e,'toJSON':_0x131929});}getSuggestion(_0x58debc){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x58debc);}};const Mn=['Pagination'];var On=class extends _0x9bd549{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ec73f=this['editor'];if(_0x4ec73f['config']['define']('trackChangesData.editorCreator',_0x4bf035=>{const _0x1d2f8c=_0x4ec73f['model']['document']['getRootNames']()['reduce']((_0x43df39,_0x161b93)=>(_0x43df39[_0x161b93]='',_0x43df39),{});return _0x4ec73f['constructor']['create'](_0x1d2f8c,_0x4bf035);}),'function'!=typeof _0x4ec73f['config']['get']('trackChangesData')['editorCreator'])throw new _0x354614('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1e883e){return Bn(this['editor'],!0x0,_0x1e883e);}getDataWithDiscardedSuggestions(_0x2eb5bf){return Bn(this['editor'],!0x1,_0x2eb5bf);}},wn=class extends _0x9bd549{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2438a5){super(_0x2438a5),this['result']='end',_0x2438a5['editing']['view']['_overlayModeHint']='auto',_0x2438a5['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x13ce1a){return void 0x0!==_0x13ce1a['getRootsAttributes'];}async function Bn(_0x158898,_0x480854,_0x98ef1f){const _0x2963ca=_0x423519(_0x158898,Mn);if(_0x2963ca['plugins']['push'](on,wn),Fn(_0x158898)){_0x2963ca['roots']=Object['create'](null);for(const _0x15b81f of _0x158898['model']['document']['getRootNames']())_0x2963ca['roots'][_0x15b81f]={'modelAttributes':_0x158898['getRootAttributes'](_0x15b81f)};}const _0xea4247=document['createDocumentFragment'](),_0x4b6cc7=_0x158898['config']['get']('trackChangesData')['editorCreator'],_0x5a004b=await _0x4b6cc7(_0x2963ca,()=>function(_0x59cc17){const _0x1613ff=document['createElement']('div');return _0x59cc17['appendChild'](_0x1613ff),_0x1613ff;}(_0xea4247));!function(_0x2ae655,_0x418104){const _0x682888=_0x2ae655['model']['document']['getRootNames']()['reduce']((_0x21be86,_0x58ed0d)=>(_0x21be86[_0x58ed0d]=_0x2ae655['data']['get']({'rootName':_0x58ed0d}),_0x21be86),{}),_0x35142a=_0x2ae655['plugins']['get']('Users')['users']['map'](_0x186834=>({'id':_0x186834['id'],'name':_0x186834['name']})),_0x54d438=_0x2ae655['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1371b4=_0x2ae655['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32aa69=_0x418104['plugins']['get']('Users'),_0x2e3b87=_0x418104['plugins']['get']('TrackChangesEditing'),_0x2c4ef1=_0x418104['plugins']['get']('CommentsRepository');for(const _0x3364ff of _0x2c4ef1['getCommentThreads']())_0x3364ff['remove']();for(const _0x50480c of _0x35142a)_0x32aa69['getUser'](_0x50480c['id'])||_0x32aa69['addUser'](_0x50480c);_0x32aa69['me']||_0x32aa69['useAnonymousUser']();for(const _0x9faf53 of _0x1371b4)_0x2c4ef1['addCommentThread'](_0x9faf53);for(const _0x3841f5 of _0x54d438)_0x2e3b87['addSuggestionData'](_0x3841f5);_0x418104['data']['set'](_0x682888);}(_0x158898,_0x5a004b),_0x5a004b['execute'](_0x480854?'acceptAllSuggestions':'discardAllSuggestions');const _0x572cc6=Fn(_0x5a004b)?_0x5a004b['getFullData'](_0x98ef1f):_0x5a004b['data']['get'](_0x98ef1f);return await _0x5a004b['destroy'](),_0x572cc6;}var vn=class extends _0x50f806{options;constructor(_0xaec245,_0x5409e3){super(_0xaec245),this['options']=_0x5409e3,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(_0x2e0f88,_0xda6b78){if(!this['element'])return;const _0x521b73=[];for(const [_0x4ddb29,_0x26a2ae]of _0x2e0f88){const _0x4a8e20=document['createElement']('div');_0x4a8e20['setAttribute']('data-ck-root-name',_0x4ddb29),_0x4a8e20['className']=_0x26a2ae['classes']+'\x20ck-track-changes-preview__root-container',_0x4a8e20['innerHTML']=_0x26a2ae['content'],_0x521b73['push'](_0x4a8e20);}_0xda6b78(this['element'],_0x521b73),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x16d293{constructor(_0x4c5c09){super(_0x4c5c09),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1a32d3=this['editor'],_0x23a437=_0x1a32d3['locale'],_0x1374be=_0x1a32d3['plugins']['get']('Dialog');let _0x522418;const _0x4d3736=function(_0x516ee8){const _0x42a70b={};if('editables'in _0x516ee8['ui']['view']){for(const [_0x31c39a,_0x3bf226]of Object['entries'](_0x516ee8['ui']['view']['editables']))_0x42a70b[_0x31c39a]=_0x3bf226['element'];}else _0x42a70b[_0x516ee8['model']['document']['getRootNames']()[0x0]]=_0x516ee8['ui']['view']['editable']['element'];return _0x42a70b;}(_0x1a32d3),_0x2d808c=function(_0x4b0219){let _0x34ad96=0x0;for(const _0x39f2e4 of Object['values'](_0x4b0219))_0x34ad96=Math['max'](_0x34ad96,_0x39f2e4['getBoundingClientRect']()['width']);let _0x5f2ecd=0x0;for(const _0x5deac0 of Object['values'](_0x4b0219))_0x5f2ecd+=_0x5deac0['getBoundingClientRect']()['height'];const _0x31553a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x34ad96,'height':Math['min'](_0x5f2ecd,_0x31553a)};}(_0x4d3736);_0x1374be['show']({'id':'finalContentPreview','title':Ot(_0x23a437,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x23a437,{'dialogRects':_0x2d808c}),'onHide':()=>{_0x522418['detachFromDom']();},'onShow':()=>{_0x1a32d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x464ec5=>{const _0x17fc87=this['_standarizeRootsData'](_0x464ec5,_0x1a32d3,_0x4d3736);_0x1374be['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17fc87,_0x1a32d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x522418=new _0x1e8118(_0x23a437,[_0x1374be['view']]),_0x522418['attachToDom'](),_0x522418['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a32d3['once']('destroy',()=>{_0x522418['detachFromDom']();});const _0x35177c=_0x1374be['view']['headerView']['class'];_0x1374be['view']['headerView']['class']=_0x35177c?_0x35177c+'\x20ck-reset_all':'ck-reset_all',_0x1374be['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1374be['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe13f0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16756f=_0xe13f0e['previewMode'],_0x364829={};if('$labels'===_0x16756f){for(const _0x58233f of _0xe13f0e['getMergeFieldsIds']())_0x364829[_0x58233f]=_0xe13f0e['getLabel'](_0x58233f)||_0x58233f;}else{const _0x302b23='$defaultValues'===_0x16756f?_0xe13f0e['getDefaultValues']():_0xe13f0e['getDataSetValues'](_0x16756f,!0x0);for(const _0x262b9d of Object['entries'](_0x302b23)){const [_0x2b653e,_0x3b6a4e]=_0x262b9d;_0x364829[_0x2b653e]=null!==_0x3b6a4e?_0x3b6a4e:_0xe13f0e['getLabel'](_0x2b653e)||_0x2b653e;}}return{'mergeFieldsData':_0x364829};}_standarizeRootsData(_0x62412,_0x2292e0,_0x4e9fb3){let _0x32d440;_0x32d440='string'==typeof _0x62412?{[_0x2292e0['model']['document']['getRootNames']()[0x0]]:_0x62412}:_0x62412;const _0x4eae98=this['_fixMediaEmbeds'](_0x32d440,_0x2292e0);return function(_0x234aff,_0x4c0a1f){for(const [_0x11d4fb,_0x455f61]of _0x234aff)_0x455f61['classes']=_0x4c0a1f[_0x11d4fb]['classList']['value']['replace']('ck-focused','');return _0x234aff;}(this['_sortRoots'](_0x2292e0)['reduce']((_0x5e21a3,_0xb85a90)=>(_0x5e21a3['push']([_0xb85a90,{'content':_0x4eae98[_0xb85a90],'classes':''}]),_0x5e21a3),[]),_0x4e9fb3);}['_fixMediaEmbeds'](_0x81b957,_0x4ac98f){if(!_0x4ac98f['plugins']['has']('MediaEmbedEditing'))return _0x81b957;const _0x2d64a2=_0x4ac98f['plugins']['get']('MediaEmbedEditing');for(const [_0x5beb43,_0x47704c]of Object['entries'](_0x81b957)){const _0x29df66=document['createElement']('div');_0x29df66['innerHTML']=_0x47704c,_0x29df66['querySelectorAll']('figure.media')['forEach'](_0x38165e=>{const _0x55b985=_0x38165e['querySelector']('oembed');if(_0x55b985){const _0x3502b4=_0x55b985['getAttribute']('url');if(_0x3502b4){const _0x497145=_0x2d64a2['registry']['getMediaViewElement'](new at(_0x4ac98f['editing']['view']['document']),_0x3502b4,{'elementName':'','renderForEditingView':!0x0}),_0x437ff5=document['createElement']('div');_0x437ff5['classList']['add']('ck-media__wrapper'),_0x497145['render'](_0x437ff5,_0x4ac98f['editing']['view']['domConverter']),_0x55b985['replaceWith'](_0x437ff5);}}}),_0x81b957[_0x5beb43]=_0x29df66['innerHTML'];}return _0x81b957;}_sortRoots(_0x3c519b){if(!function(_0x513b32){return void 0x0!==_0x513b32['getRootsAttributes'];}(_0x3c519b))return _0x3c519b['model']['document']['getRootNames']();const _0x57ee7a=[],_0xf15415=new Map();for(const _0x220631 of _0x3c519b['model']['document']['getRootNames']()){const _0xf0a3fc=_0x3c519b['editing']['view']['getDomRoot'](_0x220631)['getClientRects']()['item'](0x0);_0x57ee7a['push'](_0x220631),_0xf15415['set'](_0x220631,_0xf0a3fc);}return _0x57ee7a['sort']((_0x1110ec,_0xa429c1)=>{const _0x55cfdf=_0xf15415['get'](_0x1110ec),_0x553ed0=_0xf15415['get'](_0xa429c1);return _0x55cfdf['y']-_0x553ed0['y']||_0x55cfdf['x']-_0x553ed0['x'];}),_0x57ee7a;}},Un=class extends _0x9bd549{static get requires(){return[On,_0x15cd88];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x539c15){super(_0x539c15),_0x539c15['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x539c15['config']['define']('trackChanges.preview.renderFunction',(_0x11ab1c,_0x1a0b2d)=>{for(const _0x51de62 of _0x1a0b2d)_0x11ab1c['appendChild'](_0x51de62);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};