@ckeditor/ckeditor5-track-changes 48.1.0-alpha.8 → 48.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x34a0df,Plugin as _0x40e6e8,PendingActions as _0xcf9ddf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0xfd6006,Annotations as _0xe7d6fa,EditorAnnotations as _0x4cdd92,Comments as _0x30ece3}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x39508c,ObservableMixin as _0x2fa907,uid as _0x5bdaf9,priorities as _0x47ef2c,insertToPriorityArray as _0x1c74f1,logWarning as _0x995e46,getEnvKeystrokeText as _0x54ce12,FocusTracker as _0x4587e6,KeystrokeHandler as _0x4b9860,Collection as _0x21c64a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4dc961,IconCancel as _0x13289a,IconTrackChanges as _0x4d400d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3d7480,View as _0x13db81,ViewCollection as _0x50b7e0,FocusCycler as _0x332e99,UIModel as _0x371bdb,createDropdown as _0x4be376,SplitButtonView as _0xc3efb,addListToDropdown as _0x2fc987,MenuBarMenuView as _0x21a499,MenuBarMenuListView as _0x6cd25d,ListSeparatorView as _0x372b10,MenuBarMenuListItemView as _0x1d2e19,MenuBarMenuListItemButtonView as _0x24d5a3,BodyCollection as _0x347ddb,Dialog as _0x1abf3f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4e67eb,SuggestionsConversion as _0x6f2dbb,Users as _0x28a6ab,DocumentCompare as _0x5e953e,fixElementSuggestionRange as _0x40840e,hashObject as _0x2461a5,surroundingMarkersDetector as _0x440ad8,FOCUS_ANNOTATION_KEYSTROKE as _0xbae3dd,AriaDescriptionView as _0x3975d4,setupThreadKeyboardNavigation as _0x3d2b16,trimHtml as _0x45c4cd,UserView as _0x33f779,LateFocusButtonView as _0x1d23bb,getDateTimeFormatter as _0xcd4b37,getAllMarkersDomElementsSorted as _0x4044ac,sanitizeEditorConfig as _0x30df67}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x1fca72,ModelLiveRange as _0x2db68d,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x34a0df{['_enabledCommands'];constructor(_0x55dad2,_0x2d01fc){super(_0x55dad2),this['_enabledCommands']=_0x2d01fc,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 _0x4900ba of this['editor']['commands']['commands']())_0x4900ba['affectsData']&&!this['_enabledCommands']['has'](_0x4900ba)&&_0x4900ba['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2bc3e5 of this['editor']['commands']['commands']())_0x2bc3e5['affectsData']&&!this['_enabledCommands']['has'](_0x2bc3e5)&&_0x2bc3e5['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x34a0df{['_suggestions'];constructor(_0x37a039,_0x42c137){super(_0x37a039),this['_suggestions']=_0x42c137,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5aeedd){const _0x3edbe6=this['_suggestions']['get'](_0x5aeedd);if(!_0x3edbe6)throw new _0x39508c('track-changes-accept-suggestion-not-found',this);const _0x484e3d=_0x3edbe6['getRanges']();this['editor']['model']['canEditAt'](_0x484e3d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3edbe6);}}class ft extends _0x34a0df{['_suggestions'];constructor(_0x1ada1a,_0x3fa531){super(_0x1ada1a),this['_suggestions']=_0x3fa531,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17bd09){const _0x2a69dd=this['_suggestions']['get'](_0x17bd09);if(!_0x2a69dd)throw new _0x39508c('track-changes-discard-suggestion-not-found',this);const _0x4601e6=_0x2a69dd['getRanges']();this['editor']['model']['canEditAt'](_0x4601e6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2a69dd);}}function gt(_0x3f9777,_0x1a3aca){let _0x33f9f1='';return _0x33f9f1+=_0x3f9777['split']('*')['map']((_0x3b641a,_0x4390ba)=>_0x4390ba%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x3b641a)+'</span>':mt(_0x3b641a))['join'](''),_0x1a3aca&&(_0x33f9f1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a3aca['value']+'\x22\x20title=\x22'+_0x1a3aca['title']+'\x22></span>'),_0x33f9f1;}function mt(_0x2deaff){const _0x4439fd=document['createElement']('span');return _0x4439fd['innerText']=_0x2deaff,_0x4439fd['innerHTML'];}function Et(_0x2670c0){return _0x2670c0['sort']((_0x3fd358,_0x4cf30e)=>'attribute'===_0x3fd358['type']&&'attribute'!==_0x4cf30e['type']?-0x1:'attribute'!==_0x3fd358['type']&&'attribute'===_0x4cf30e['type']?0x1:'deletion'==_0x3fd358['type']&&'deletion'!=_0x4cf30e['type']?-0x1:'deletion'!=_0x3fd358['type']&&'deletion'==_0x4cf30e['type']?0x1:0x0);}function Tt(_0x33ecf4,_0x3eaa08){let _0x38f566,_0x5a9db2=0x0;const _0x2d9a65=[],_0x1f7058=_0x3eaa08['schema'];for(;_0x5a9db2<_0x33ecf4['length'];){const _0x3d510e=_0x33ecf4[_0x5a9db2],_0x229d52=_0x33ecf4[_0x5a9db2+0x1];_0x38f566||(_0x38f566=_0x3eaa08['createPositionBefore'](_0x3d510e)),_t(_0x3eaa08,_0x3d510e,_0x229d52)||(_0x2d9a65['push'](_0x3eaa08['createRange'](_0x38f566,_0x1f7058['isObject'](_0x3d510e)?_0x3eaa08['createPositionAfter'](_0x3d510e):_0x3eaa08['createPositionAt'](_0x3d510e,'end'))),_0x38f566=null),_0x5a9db2++;}return _0x2d9a65;}function _t(_0x2f7536,_0x20ddf4,_0x127c5c){if(!_0x127c5c)return!0x1;const _0x529f44=_0x2f7536['createPositionAfter'](_0x20ddf4),_0x389822=_0x2f7536['createPositionBefore'](_0x127c5c);return _0x529f44['isTouching'](_0x389822);}function pt(_0x705b0a,_0x53014c,_0x5e4d8e){for(;_0x5e4d8e['length'];){const _0x1ca44a=_0x5e4d8e['splice'](0x0,0x64);_0x705b0a['change'](()=>{for(const _0x1366f2 of _0x1ca44a)_0x1366f2['isInContent']&&_0x53014c['execute'](_0x1366f2['id']);});}}class Lt extends _0x34a0df{['_command'];['_suggestions'];constructor(_0x27cbe2,_0x364fff,_0x1f272f){super(_0x27cbe2),this['_command']=_0x364fff,this['_suggestions']=_0x1f272f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1bbb14=Array['from'](this['_suggestions']['values']())['some'](_0x105fad=>_0x105fad['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1bbb14;}['execute'](){const _0x97ce5d=Et(Array['from'](this['_suggestions']['values']()));for(const _0x1b7d60 of _0x97ce5d){const _0x19d291=_0x1b7d60['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19d291))return;}pt(this['editor']['model'],this['_command'],_0x97ce5d);}}class It extends _0x34a0df{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5c9d23,_0x17039a,_0x12e240){super(_0x5c9d23),this['_command']=_0x17039a,this['_suggestions']=_0x12e240,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x255246=this['editor']['model']['document']['selection'],_0x234e2f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x25bb7a,_0x2f100f){const _0x27af54=Array['from'](_0x25bb7a['getRanges']()),_0x623d94=new Set();for(const _0x2b6c67 of _0x2f100f)if(_0x2b6c67['isInContent']){for(const _0x2b4d5d of _0x27af54)for(const _0x39db28 of _0x2b6c67['getRanges']())(_0x2b4d5d['isIntersecting'](_0x39db28)||_0x25bb7a['isCollapsed']&&!_0x2b6c67['isMultiRange']&&_0x2b6c67['next']&&_0x39db28['end']['isTouching'](_0x2b4d5d['start']))&&_0x623d94['add'](_0x2b6c67);}return _0x623d94;}(_0x255246,_0x234e2f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x46258f=Et(Array['from'](this['_selectedSuggestions']));for(const _0x1a5406 of _0x46258f){const _0x2f05f6=_0x1a5406['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f05f6))return;}pt(this['editor']['model'],this['_command'],_0x46258f);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x2fa907(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2d55da,_0x2ff9fe){super(),this['id']=_0x2ff9fe['id'],this['type']=_0x2ff9fe['type'],this['subType']=_0x2ff9fe['subType']||null,this['author']=_0x2ff9fe['author'],this['creator']=_0x2ff9fe['creator']||_0x2ff9fe['author'],this['isExternal']=Boolean(_0x2ff9fe['attributes']&&_0x2ff9fe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2ff9fe['originalSuggestionId']||null,this['_model']=_0x2d55da,this['_onAccept']=_0x2ff9fe['onAccept'],this['_onDiscard']=_0x2ff9fe['onDiscard'],this['_onAttributesChange']=_0x2ff9fe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2ff9fe['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1850bf=this;for(;_0x1850bf['previous'];)_0x1850bf=_0x1850bf['previous'];return _0x1850bf;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3ac275){this['_markerNames']['add'](_0x3ac275);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x98813=>this['_model']['markers']['get'](_0x98813))['filter'](_0x125212=>_0x125212);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ef447=>{for(const _0x128ada of this['getMarkers']())_0x1ef447['removeMarker'](_0x128ada);}),this['_markerNames']['clear']();}['removeMarker'](_0x55d8c4){this['_model']['change'](_0x39a219=>{_0x39a219['removeMarker'](_0x55d8c4);}),this['_markerNames']['delete'](_0x55d8c4);}['addRange'](_0x27b7cd){const _0x21dad2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x21dad2),this['_model']['change'](_0x3ab37b=>{_0x3ab37b['addMarker'](_0x21dad2,{'range':_0x27b7cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b43f3){for(const _0x503e89 of this['getRanges']())if(_0x503e89['isIntersecting'](_0x4b43f3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2421d6=>_0x2421d6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f38f5,_0x3e8b08)=>[..._0x4f38f5,..._0x3e8b08['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3160ce=this['getRanges']();if(0x1!=_0x3160ce['length'])return null;const _0x2799f3=_0x3160ce[0x0],_0x4ef3fd=_0x2799f3['start']['nodeAfter'],_0x2752d7=_0x2799f3['end']['nodeBefore'];return _0x4ef3fd instanceof _0x1fca72?_0x4ef3fd!=_0x2752d7?null:_0x4ef3fd: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 _0x143479=[];let _0x338341=this['head'];for(;_0x338341;)_0x143479['push'](_0x338341),_0x338341=_0x338341['next'];return _0x143479;}['setAttribute'](_0x5d39f5,_0x4703ee){const _0x46fed9=nt(this['attributes']);it(_0x46fed9,_0x5d39f5,_0x4703ee),st(_0x46fed9,this['attributes'])||(this['attributes']=_0x46fed9,this['_onAttributesChange'](_0x46fed9));}['removeAttribute'](_0x533455){const _0x3bac23=nt(this['attributes']);rt(_0x3bac23,_0x533455),st(_0x3bac23,this['attributes'])||(this['attributes']=_0x3bac23,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 _0x5bdaf9()['substr'](0x1,0x5);}}function At(_0x2063c,_0x2e8772,_0x5dcf2c){const _0x19bb18=_0x2063c['t'],t=_0x2063c['t'];switch(_0x2e8772){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',_0x5dcf2c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5dcf2c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5dcf2c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5dcf2c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5dcf2c);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',_0x5dcf2c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5dcf2c);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',_0x5dcf2c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5dcf2c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5dcf2c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5dcf2c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5dcf2c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5dcf2c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5dcf2c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5dcf2c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5dcf2c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5dcf2c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5dcf2c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5dcf2c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5dcf2c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5dcf2c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5dcf2c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5dcf2c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5dcf2c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5dcf2c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5dcf2c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5dcf2c);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});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'},_0x5dcf2c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5dcf2c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5dcf2c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5dcf2c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5dcf2c);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'},_0x5dcf2c);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_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'},_0x5dcf2c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5dcf2c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5dcf2c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5dcf2c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5dcf2c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5dcf2c);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'EXTERNAL_AVATAR':return _0x19bb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5dcf2c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x19bb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5dcf2c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5dcf2c);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'},_0x5dcf2c);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'},_0x5dcf2c);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'},_0x5dcf2c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e8772;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x47420b,_0x413c64){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x47420b,this['_locale']=_0x413c64;}['getDescriptions'](_0x390a09){const _0x2e3886=[],_0x2d2017=new Set(),_0x3aa86e=new Set();for(let _0x4a4057=0x0;_0x4a4057<_0x390a09['length'];_0x4a4057++){const _0xff525a=_0x390a09[_0x4a4057];if(!_0xff525a['isInContent'])continue;const _0x511c9f=this['_handleCustomCallbackDescription'](_0xff525a);if(_0x511c9f){if(null!=_0xff525a['subType']){if(_0x2d2017['has'](_0xff525a['subType']))continue;_0x2d2017['add'](_0xff525a['subType']);}_0x2e3886['push'](_0x511c9f);}else{if('attribute'==_0xff525a['type']){const _0x40b776=_0xff525a['data']['key'];if(_0x3aa86e['has'](_0x40b776))continue;_0x3aa86e['add'](_0xff525a['data']['key']),_0x40b776==Ke?this['_handleRenameSuggestionDescription'](_0x2e3886,_0xff525a):this['_handleAttributeSuggestionDescription'](_0x2e3886,_0xff525a);continue;}'insertion'!=_0xff525a['type']&&'deletion'!=_0xff525a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2e3886,_0xff525a,_0x390a09[_0x4a4057+0x1]);}}return this['_resolveDescriptionItems'](_0x2e3886);}['registerDescriptionCallback'](_0x84ff66){this['_customCallbacks']['push'](_0x84ff66);}['registerElementLabel'](_0x41c44c,_0x431d7d,_0x364e9c=_0x47ef2c['normal']){'function'==typeof _0x41c44c?_0x1c74f1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x41c44c,'label':_0x431d7d,'priority':_0x364e9c}):this['_itemLabels']['set'](_0x41c44c,_0x431d7d);}['registerAttributeLabel'](_0x2a89a5,_0x2372a8){this['_attributeLabels']['set'](_0x2a89a5,_0x2372a8);}['getItemLabel'](_0xfa1a7b,_0x2a2973=0x1){let _0x55e421;for(const _0xe2c5c1 of this['_itemLabelsCallbacks'])if(_0xe2c5c1['matchingCallback'](_0xfa1a7b)){_0x55e421=_0xe2c5c1['label'];break;}return _0x55e421||(_0x55e421=this['_itemLabels']['get'](_0xfa1a7b['name'])),_0x55e421?_0x55e421(_0x2a2973):0x1!==_0x2a2973?_0x2a2973+'\x20'+_0xfa1a7b['name']+'s':''+_0xfa1a7b['name'];}['_addDescriptionItems'](_0x4d373c,_0x35239b){const _0x4b8bcd=_0x35239b['getFirstRange']()['getWalker'](),_0x2c78fd='insertion'==_0x35239b['type']?'add':'remove';for(const _0x2086b6 of _0x4b8bcd){const _0x1b9395=_0x2086b6['item'],_0x1131da=_0x4d373c[_0x4d373c['length']-0x1];if(_0x1b9395['is']('$textProxy'))_0x1131da&&_0x1131da['type']['indexOf']('Container')>-0x1&&_0x4d373c['pop'](),_0x1131da&&'text'==_0x1131da['type']?_0x1131da[_0x2c78fd]+=_0x1b9395['data']:_0x4d373c['push']({'type':'text','add':'add'==_0x2c78fd?_0x1b9395['data']:'','remove':'remove'==_0x2c78fd?_0x1b9395['data']:''});else{if(this['_schema']['isObject'](_0x1b9395)){const _0x2dfbb4=_0x1b9395;if(_0x1131da&&_0x1131da['type']['indexOf']('Container')>-0x1&&_0x4d373c['pop'](),'elementEnd'==_0x2086b6['type'])continue;_0x1131da&&_0x1131da['type']==_0x2c78fd+'Object'&&_0x1131da['element']['name']==_0x2dfbb4['name']?_0x1131da['quantity']++:_0x4d373c['push']({'type':_0x2c78fd+'Object','element':_0x2dfbb4,'quantity':0x1}),_0x4b8bcd['skip'](_0x151a34=>!('elementEnd'==_0x151a34['type']&&_0x151a34['item']==_0x1b9395));}else{if(this['_schema']['checkChild'](_0x1b9395,'$text')||_0x1b9395['is']('element','softBreak')){const _0x4a5efe=_0x1b9395;if('add'==_0x2c78fd&&'elementStart'==_0x2086b6['type']||'remove'==_0x2c78fd&&'elementEnd'==_0x2086b6['type'])continue;if(_0x1131da&&-0x1==_0x1131da['type']['indexOf']('Container')){'text'==_0x1131da['type']&&(_0x1131da[_0x2c78fd]+='\x0a');continue;}let _0x17881c;if(_0x17881c='add'==_0x2c78fd?_0x4a5efe['nextSibling']&&!this['_schema']['isObject'](_0x4a5efe['nextSibling'])?_0x4a5efe['nextSibling']:null:_0x4a5efe['previousSibling']&&!this['_schema']['isObject'](_0x4a5efe['previousSibling'])?_0x4a5efe['previousSibling']:null,_0x4a5efe['isEmpty']||_0x17881c&&_0x17881c['isEmpty']){const _0x4b3ef0=_0x17881c&&_0x17881c['isEmpty']?_0x17881c:_0x4a5efe;_0x1131da&&_0x1131da['type']==_0x2c78fd+'EmptyContainer'&&_0x1131da['element']['name']==_0x4b3ef0['name']?_0x1131da['quantity']++:_0x4d373c['push']({'type':_0x2c78fd+'EmptyContainer','element':_0x4b3ef0,'quantity':0x1});}else _0x4d373c['push']({'type':_0x2c78fd+'Container','element':_0x4a5efe});}}}}}['_resolveDescriptionItems'](_0x1c73a6){const _0x3852c0=this['_locale'],_0x46662b=[],_0x41cd69=[],_0x5997e1=[];for(const _0x28e965 of _0x1c73a6)switch(_0x28e965['type']){case'text':if(_0x28e965['add']=_0x28e965['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28e965['remove']=_0x28e965['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28e965['add']&&''!=_0x28e965['remove']){_0x46662b['push']({'type':'replace','content':At(_0x3852c0,'REPLACE_TEXT',['\x22'+_0x28e965['remove']+'\x22','\x22'+_0x28e965['add']+'\x22'])});continue;}if(null!=_0x28e965['add']['match'](/^ +$/)){_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0',At(_0x3852c0,'ELEMENT_SPACE',_0x28e965['add']['length']))});continue;}if(null!=_0x28e965['remove']['match'](/^ +$/)){_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0',At(_0x3852c0,'ELEMENT_SPACE',_0x28e965['remove']['length']))});continue;}if(''!=_0x28e965['add']){_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0','\x22'+_0x28e965['add']+'\x22')});continue;}_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0','\x22'+_0x28e965['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'addContainer':_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Split:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'removeContainer':_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Merge:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'addFormat':_0x41cd69['push'](_0x28e965['key']);continue;case'removeFormat':_0x5997e1['push'](_0x28e965['key']);continue;default:_0x46662b['push'](_0x28e965);}if(_0x41cd69['length']){const _0x5854e3=_0x41cd69['map'](_0x72972d=>this['_attributeLabels']['has'](_0x72972d)?this['_attributeLabels']['get'](_0x72972d):_0x72972d)['join'](',\x20');_0x46662b['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x5854e3)});}if(_0x5997e1['length']){const _0x19d737=_0x5997e1['map'](_0x55fe86=>this['_attributeLabels']['has'](_0x55fe86)?this['_attributeLabels']['get'](_0x55fe86):_0x55fe86)['join'](',\x20');_0x46662b['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x19d737)});}return _0x46662b;}['_handleCustomCallbackDescription'](_0x311cc9){for(const _0x5eb0cf of this['_customCallbacks']){const _0x52601b=_0x5eb0cf(_0x311cc9);if(_0x52601b&&'type'in _0x52601b)return _0x52601b;}}['_handleAttributeSuggestionDescription'](_0x244578,_0x52f81c){const _0x3c1fea=_0x52f81c['data'],_0xb4ae5b=void 0x0===_0x3c1fea['newValue']?'removeFormat':'addFormat';_0x244578['push']({'type':_0xb4ae5b,'key':_0x3c1fea['key']});}['_handleRenameSuggestionDescription'](_0x313eeb,_0x3e897b){_0x313eeb['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3e897b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x438676,_0x3e43b7,_0x49cc01){if(this['_addDescriptionItems'](_0x438676,_0x3e43b7),_0x49cc01&&_0x49cc01['getFirstRange']()&&!_0x3e43b7['getFirstRange']()['end']['isEqual'](_0x49cc01['getFirstRange']()['start'])){const _0x4d5fdd=_0x438676[_0x438676['length']-0x1],_0x4805ca='insertion'==_0x3e43b7['type']?'add':'remove';_0x4d5fdd&&'text'==_0x4d5fdd['type']&&(_0x4d5fdd[_0x4805ca]+='\x0a');}}}class Ct extends _0x40e6e8{['afterInit'](){const _0x34459b=this['editor'],_0x2439c3=_0x34459b['plugins']['get']('TrackChangesEditing');_0x34459b['commands']['get']('showAIAssistant')&&_0x2439c3['enableCommand']('showAIAssistant');}}class yt extends _0x40e6e8{['afterInit'](){const _0x5e0492=this['editor'],_0x32148b=_0x5e0492['plugins']['get']('TrackChangesEditing');_0x5e0492['commands']['get']('toggleAi')&&_0x32148b['enableCommand']('toggleAi');}}class Nt extends _0x40e6e8{['afterInit'](){const _0x58a48a=this['editor'],_0x1c78da=_0x58a48a['plugins']['get']('TrackChangesEditing');_0x58a48a['commands']['get']('aiQuickAction')&&_0x1c78da['enableCommand']('aiQuickAction');}}class Rt extends _0x40e6e8{['afterInit'](){const _0x5377b0=this['editor'],_0x428f94=_0x5377b0['locale'];if(!_0x5377b0['plugins']['has']('AlignmentEditing'))return;const _0x1dc2dc=_0x5377b0['plugins']['get']('TrackChangesEditing');_0x1dc2dc['enableDefaultAttributesIntegration']('alignment'),_0x1dc2dc['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x428f94,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d259=this['editor'],_0x4ab435=_0x20d259['locale'];_0x20d259['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e15d7=>{if('formatBlock'!=_0x5e15d7['type'])return;const {data:_0x3ff87c}=_0x5e15d7;if(_0x3ff87c&&'alignment'==_0x3ff87c['commandName']){const _0xfc4e79=_0x3ff87c['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x4ab435,'*Format:*\x20%0',function(_0x4a31c2){switch(_0x4a31c2){case'left':return At(_0x4ab435,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x4ab435,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x4ab435,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x4ab435,'FORMAT_JUSTIFY_TEXT');}}(_0xfc4e79))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x40e6e8{['afterInit'](){const _0x180211=this['editor'],_0x4a3d7b=_0x180211['plugins']['get']('TrackChangesEditing'),_0x926339=_0x180211['locale'];for(const _0x419d60 of St){if(!_0x180211['plugins']['has'](_0x419d60))continue;const _0x25f6eb=_0x419d60['slice'](0x0,-0x7)['toLowerCase'](),_0x20efa3='FORMAT_'+_0x25f6eb['toUpperCase']();_0x4a3d7b['enableDefaultAttributesIntegration'](_0x25f6eb),_0x4a3d7b['descriptionFactory']['registerAttributeLabel'](_0x25f6eb,At(_0x926339,_0x20efa3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e2f3c=this['editor'],_0x5abcc7=_0x5e2f3c['locale'],_0x22fc8b=_0x5e2f3c['plugins']['get']('TrackChangesEditing');function _0x5adf54(_0x282e80,_0x3a2000){_0x22fc8b['descriptionFactory']['registerDescriptionCallback'](_0x43e58f=>{if('formatInline'!=_0x43e58f['type'])return;const {data:_0x2fc8d5}=_0x43e58f;return _0x2fc8d5&&_0x2fc8d5['commandName']===_0x282e80?_0x2fc8d5['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5abcc7,'*Format:*\x20%0',_0x3a2000)}:{'type':'format','content':At(_0x5abcc7,'*Remove\x20format:*\x20%0',_0x3a2000)}:void 0x0;});}_0x5adf54('bold',At(_0x5abcc7,'FORMAT_BOLD')),_0x5adf54('italic',At(_0x5abcc7,'FORMAT_ITALIC')),_0x5adf54('underline',At(_0x5abcc7,'FORMAT_UNDERLINE')),_0x5adf54('code',At(_0x5abcc7,'FORMAT_CODE')),_0x5adf54('strikethrough',At(_0x5abcc7,'FORMAT_STRIKETHROUGH')),_0x5adf54('subscript',At(_0x5abcc7,'FORMAT_SUBSCRIPT')),_0x5adf54('superscript',At(_0x5abcc7,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x40e6e8{['afterInit'](){const _0x20c40f=this['editor'],_0xf01fbc=_0x20c40f['locale'];if(!_0x20c40f['plugins']['has']('BlockQuoteEditing'))return;const _0x2d1d09=_0x20c40f['plugins']['get']('TrackChangesEditing'),_0x3892d1=this['editor']['commands']['get']('blockQuote');_0x2d1d09['enableCommand']('blockQuote',(_0x505c8c,_0x27346d={})=>{const _0x175052=this['editor']['model']['document']['selection'],_0x2555ea=_0x27346d&&void 0x0!==_0x27346d['forceValue']?_0x27346d['forceValue']:!_0x3892d1['value'];let _0x275ac0=[];if(_0x2555ea){const _0x3083c9=Array['from'](_0x175052['getSelectedBlocks']())['filter'](_0x43616a=>wt(_0x43616a)||function(_0x4d6204,_0x259ea3){const _0xff5b33=_0x259ea3['checkChild'](_0x4d6204['parent'],'blockQuote'),_0x57fdce=_0x259ea3['checkChild'](['$root','blockQuote'],_0x4d6204);return _0xff5b33&&_0x57fdce;}(_0x43616a,this['editor']['model']['schema']));_0x275ac0=Tt(_0x3083c9,_0x20c40f['model']);}else{const _0x35b20f=Array['from'](_0x175052['getSelectedBlocks']())['filter'](_0x389cbd=>wt(_0x389cbd));_0x275ac0=Tt(_0x35b20f,_0x20c40f['model']);}_0x20c40f['model']['change'](()=>{for(const _0x146223 of _0x275ac0)_0x2d1d09['markBlockFormat'](_0x146223,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2555ea}]});});}),_0x2d1d09['descriptionFactory']['registerDescriptionCallback'](_0x2a6082=>{const {data:_0x39c3c7}=_0x2a6082;if(_0x39c3c7&&'blockQuote'==_0x39c3c7['commandName']){const _0x39a28a=At(_0xf01fbc,'ELEMENT_BLOCK_QUOTE');return _0x39c3c7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xf01fbc,'*Set\x20format:*\x20%0',_0x39a28a)}:{'type':'format','content':At(_0xf01fbc,'*Remove\x20format:*\x20%0',_0x39a28a)};}});}}function wt(_0x4d54ee){return'blockQuote'==_0x4d54ee['parent']['name'];}class Bt extends _0x40e6e8{['afterInit'](){const _0xb3d857=this['editor'],_0x4d20c0=_0xb3d857['locale'],_0x656544=_0xb3d857['plugins']['get']('TrackChangesEditing');_0xb3d857['plugins']['has']('BookmarkEditing')&&(_0x656544['enableCommand']('insertBookmark'),_0x656544['enableDefaultAttributesIntegration']('updateBookmark'),_0x656544['descriptionFactory']['registerDescriptionCallback'](_0x38ce66=>{if('insertion'!=_0x38ce66['type']&&'deletion'!=_0x38ce66['type']&&'attribute'!=_0x38ce66['type'])return;const _0x1bc0d5=_0x38ce66['getContainedElement']();if(null==_0x1bc0d5)return;if(!_0x1bc0d5['is']('element','bookmark'))return;const _0x454d13=_0x1bc0d5['getAttribute']('bookmarkId');if('insertion'==_0x38ce66['type'])return{'type':'insertion','content':At(_0x4d20c0,'*Insert:*\x20%0','\x22'+_0x454d13+'\x22\x20'+At(_0x4d20c0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x38ce66['type'])return{'type':'deletion','content':At(_0x4d20c0,'*Remove:*\x20%0','\x22'+_0x454d13+'\x22\x20'+At(_0x4d20c0,'ELEMENT_BOOKMARK'))};const {data:_0x17dd88}=_0x38ce66;if(!_0x17dd88||'bookmarkId'!=_0x17dd88['key'])return;return{'type':'format','content':At(_0x4d20c0,'*Set\x20bookmark:*\x20%0','\x22'+_0x17dd88['newValue']+'\x22')};}));}}class Ft extends _0x40e6e8{['afterInit'](){const _0x3907c9=this['editor'];_0x3907c9['plugins']['has']('CaseChange')&&(_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x40e6e8{['afterInit'](){const _0x4aa3b2=this['editor'];_0x4aa3b2['commands']['get']('ckbox')&&_0x4aa3b2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x40e6e8{['afterInit'](){const _0x2be102=this['editor'];if(!_0x2be102['plugins']['has']('CodeBlock'))return;const _0x5c6111=_0x2be102['plugins']['get']('TrackChangesEditing'),_0x1eb42a=_0x2be102['locale'],_0x4ba791=_0x2be102['config']['get']('codeBlock')['languages'],_0x46c0ae=_0x2be102['commands']['get']('codeBlock');_0x5c6111['enableCommand']('indentCodeBlock'),_0x5c6111['enableCommand']('outdentCodeBlock'),_0x5c6111['enableCommand']('codeBlock',(_0x595427,_0x373a9a={})=>{const _0x57d678=_0x2be102['model'],_0x2213e0=_0x2be102['model']['document']['selection'],_0x36995d=_0x373a9a&&void 0x0!==_0x373a9a['forceValue']?_0x373a9a['forceValue']:!_0x46c0ae['value'];let _0x4e617b;_0x373a9a['language']||(_0x373a9a['language']=_0x4ba791[0x0]['language']),_0x4e617b=_0x36995d?Array['from'](_0x2213e0['getSelectedBlocks']())['filter'](_0x5bf8a1=>xt(_0x5bf8a1)||function(_0x423c83,_0x26aed9){if(_0x423c83['is']('rootElement')||_0x26aed9['isLimit'](_0x423c83))return!0x1;return _0x26aed9['checkChild'](_0x423c83['parent'],'codeBlock');}(_0x5bf8a1,_0x57d678['schema'])):Array['from'](_0x2213e0['getSelectedBlocks']())['filter'](_0x1dbdaf=>xt(_0x1dbdaf));const _0x3e29b9=Tt(_0x4e617b,_0x57d678);_0x57d678['change'](()=>{for(const _0x20695d of _0x3e29b9)_0x5c6111['markBlockFormat'](_0x20695d,{'commandName':'codeBlock','commandParams':[{..._0x373a9a,'forceValue':_0x36995d}],'formatGroupId':'blockName'});});}),(_0x5c6111['descriptionFactory']['registerElementLabel']('codeBlock',_0x5b14b7=>At(_0x1eb42a,'ELEMENT_CODE_BLOCK',_0x5b14b7)),_0x5c6111['descriptionFactory']['registerDescriptionCallback'](_0x36a396=>{if('formatBlock'!=_0x36a396['type'])return;const _0x1728c6=_0x1eb42a['t'],{data:_0xf05dc8}=_0x36a396;if(!_0xf05dc8||'codeBlock'!=_0xf05dc8['commandName'])return;const _0x46d74d=_0xf05dc8['commandParams'][0x0]['language'],_0x30b20a=_0x1728c6(_0x4ba791['find'](_0xb9ec35=>_0xb9ec35['language']===_0x46d74d)['label'])['toLowerCase']();return _0xf05dc8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1eb42a,'*Set\x20format:*\x20%0',At(_0x1eb42a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30b20a+')')}:{'type':'format','content':At(_0x1eb42a,'*Remove\x20format:*\x20%0',At(_0x1eb42a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2d36de){return'codeBlock'==_0x2d36de['name'];}class Pt extends _0x40e6e8{['afterInit'](){const _0x139d33=this['editor'];if(!_0x139d33['plugins']['has']('CommentsEditing'))return;_0x139d33['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x40e6e8{static get['requires'](){return[at];}['init'](){const _0x4aca73=this['editor'],_0x1574f4=_0x4aca73['plugins']['get']('TrackChangesEditing');_0x1574f4['enableCommand']('delete');const _0x551d9b=_0x4aca73['commands']['get']('deleteForward');_0x1574f4['enableCommand']('deleteForward',(_0x1c7eac,_0x42d99a={})=>{const _0x5e6c9a=_0x4aca73['model']['createSelection'](_0x4aca73['model']['document']['selection']);_0x5e6c9a['isCollapsed']&&_0x4aca73['model']['modifySelection'](_0x5e6c9a,{'direction':'forward','unit':_0x42d99a['unit']});const _0x2a26b8=_0x5e6c9a['getFirstRange'](),_0x57c4ad=_0x2db68d['fromRange'](_0x2a26b8);let _0x274761;_0x1c7eac(_0x42d99a),_0x274761='$graveyard'==_0x57c4ad['root']['rootName']?_0x4aca73['model']['createRange'](_0x2a26b8['start']):_0x4aca73['model']['createRange'](_0x57c4ad['start'],_0x57c4ad['end']),_0x57c4ad['detach'](),_0x4aca73['model']['enqueueChange'](_0x551d9b['buffer']['batch'],_0x502c81=>{_0x551d9b['buffer']['lock'](),_0x502c81['setSelection'](_0x502c81['createRange'](_0x274761['end'])),_0x551d9b['buffer']['unlock']();});});}}class Gt extends _0x40e6e8{['afterInit'](){const _0x144752=this['editor'];if(!_0x144752['plugins']['has']('ListEditing'))return;const _0x221cc0=_0x144752['locale'],_0x470ea0=_0x144752['plugins']['get']('TrackChangesEditing'),_0x2ca692=_0x144752['plugins']['has']('TodoListEditing'),_0x5ec0ae=!!_0x144752['config']['get']('list.multiBlock');function _0x2b9db9(_0x384c8a){return{'type':'format','content':''+At(_0x221cc0,'*Set\x20format:*\x20%0',_0x384c8a)};}function _0x7295c9(_0x107070){return{'type':'format','content':''+At(_0x221cc0,'*Remove\x20format:*\x20%0',_0x107070)};}_0x470ea0['enableDefaultAttributesIntegration']('numberedList'),_0x470ea0['enableDefaultAttributesIntegration']('bulletedList'),_0x470ea0['enableDefaultAttributesIntegration']('customNumberedList'),_0x470ea0['enableDefaultAttributesIntegration']('customBulletedList'),_0x470ea0['enableDefaultAttributesIntegration']('indentList'),_0x470ea0['enableDefaultAttributesIntegration']('outdentList'),_0x470ea0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x470ea0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ec0ae&&(_0x470ea0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x470ea0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ca692&&(_0x470ea0['enableDefaultAttributesIntegration']('todoList'),_0x470ea0['enableDefaultAttributesIntegration']('checkTodoList'),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x3c34f9=>{const {data:_0x4e699a}=_0x3c34f9;if(_0x4e699a&&'todoListChecked'==_0x4e699a['key'])return{'type':'format','content':_0x4e699a['newValue']?At(_0x221cc0,'*Check\x20item*'):At(_0x221cc0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x28f722=>{if(_0x28f722['batch']['isUndo'])return!0x1;let _0xe61488=!0x1;const _0x3c515f=_0x470ea0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234174=>'todoListChecked'===_0x470ea0['_getAttributeKey'](_0x234174));for(const _0xbee475 of _0x3c515f){'todo'!=_0xbee475['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x470ea0['_findSuggestions'](_0xbee475['getFirstRange'](),'attribute')['find'](_0x335590=>'listType'===_0x470ea0['_getAttributeKey'](_0x335590['suggestion']))||(_0x28f722['removeMarker'](_0xbee475['getFirstMarker']()),_0xe61488=!0x0));}return _0xe61488;})),_0x470ea0['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x221cc0,'FORMAT_INDENT'));const _0x316d9a={'type':'format','content':''};_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x5e2299=>{const {data:_0x494fe6}=_0x5e2299;if(!_0x494fe6||'listType'!=_0x494fe6['key'])return;let _0x5c8715=_0x5e2299['head'];for(;_0x5c8715;){if(_0x5c8715['data']&&(('listStyle'==_0x5c8715['data']['key']||'listMarkerStyle'==_0x5c8715['data']['key'])&&(_0x5c8715['data']['newValue']&&'default'!=_0x5c8715['data']['newValue']||'default'!=_0x5c8715['data']['oldValue']&&!_0x494fe6['newValue'])||!_0x5ec0ae&&_0x5c8715['data']['key']==Ke))return _0x316d9a;_0x5c8715=_0x5c8715['next'];}if(null==_0x494fe6['newValue'])switch(_0x494fe6['oldValue']){case'bulleted':return _0x7295c9(At(_0x221cc0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7295c9(At(_0x221cc0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7295c9(At(_0x221cc0,'ELEMENT_TODO_LIST'));}switch(_0x494fe6['newValue']){case'bulleted':return _0x2b9db9(At(_0x221cc0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b9db9(At(_0x221cc0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b9db9(At(_0x221cc0,'ELEMENT_TODO_LIST'));}}),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x1a1e89=>{const {data:_0x48ef57}=_0x1a1e89;if(_0x48ef57&&'listIndent'==_0x48ef57['key'])return null==_0x48ef57['newValue']||null==_0x48ef57['oldValue']&&0x0==_0x48ef57['newValue']?_0x316d9a:void 0x0;}),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x580ab9=>{if('attribute'!=_0x580ab9['type'])return;const {data:_0x40a773}=_0x580ab9;if(!_0x40a773||'listItemId'!=_0x40a773['key'])return;const _0x334900=Ht(_0x580ab9);return'newValue'==_0x334900?{'type':'format','content':At(_0x221cc0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x334900?{'type':'format','content':At(_0x221cc0,'*Split:*\x20list\x20item')}:_0x316d9a;}),_0x144752['model']['document']['registerPostFixer'](_0x52b790=>this['listItemIdFixer'](_0x52b790)),_0x144752['model']['document']['registerPostFixer'](_0x1a5867=>this['noTrackChangesFixer'](_0x1a5867)),_0x144752['model']['document']['on']('change:data',(_0x5f51f1,_0x6aa600)=>{if(_0x6aa600['isUndo']||!_0x6aa600['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf65dd6){if(_0xf65dd6['batch']['isUndo']||!_0xf65dd6['batch']['isLocal'])return!0x1;let _0x4229dd=!0x1;const _0x3a925b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e7c42=>_0x4e7c42['data']&&'listItemId'==_0x4e7c42['data']['key'])['filter'](_0x1f117f=>_0x1f117f['data']['newValue']&&_0x1f117f['data']['oldValue']);for(const _0x4439ac of _0x3a925b)Ht(_0x4439ac)||(_0xf65dd6['removeMarker'](_0x4439ac['getFirstMarker']()),_0x4229dd=!0x0);return _0x4229dd;}['noTrackChangesFixer'](_0x4e295d){if(_0x4e295d['batch']['isUndo']||!_0x4e295d['batch']['isLocal'])return!0x1;const _0x1d951d=this['editor']['model']['document']['differ'],_0x2f3245=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2f3245['trackChangesCommand']['value'])return!0x1;let _0x3271e8=!0x1;const _0x26aaef=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x4ad828=_0x1d951d['getChanges']()['filter'](_0x3c767d=>'attribute'==_0x3c767d['type'])['filter'](_0x2540bc=>_0x26aaef['has'](_0x2540bc['attributeKey']));if(0x0==_0x4ad828['length'])return _0x3271e8;const _0x29d751=new Set(_0x1d951d['getMarkersToAdd']()['filter'](_0x18cd2e=>{if(!_0x18cd2e['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x5979b2=_0x4e67eb(_0x18cd2e['name'])['subType']['split']('|')[0x0];return _0x26aaef['has'](_0x5979b2);})['map'](_0x31a20c=>_0x4e67eb(_0x31a20c['name'])['id']));for(const _0x23e9b4 of _0x4ad828){const _0x4510b2=_0x2f3245['_findSuggestions'](_0x23e9b4['range'],'attribute')['filter'](_0x4ff6c2=>{if(_0x4ff6c2['meta']['isNextTo'])return!0x1;if(_0x29d751['has'](_0x4ff6c2['suggestion']['id']))return!0x1;const _0x3a691e=_0x2f3245['_getAttributeKey'](_0x4ff6c2['suggestion']);return _0x26aaef['has'](_0x3a691e);})['map'](_0x3335f6=>_0x3335f6['suggestion']);if(_0x4510b2['length']){for(const _0x236b1d of _0x4510b2)_0x4e295d['removeMarker'](_0x236b1d['getFirstMarker']());_0x3271e8=!0x0;}}return _0x3271e8;}['assureChains'](){const _0x4b92c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x84d1f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1377e7;const _0x4c47da=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdbcd7e=>{if(_0xdbcd7e['data']['oldRange']||!_0xdbcd7e['data']['newRange'])return null;if(!_0xdbcd7e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ffa83}=_0x4e67eb(_0xdbcd7e['name']);if(!_0x4b92c8['hasSuggestion'](_0x1ffa83))return null;const _0xc67c14=_0x4b92c8['getSuggestion'](_0x1ffa83);return _0x84d1f2['includes'](_0xc67c14['data']['key']);})['map'](_0x3b0f8d=>{const {id:_0x26ff57}=_0x4e67eb(_0x3b0f8d['name']),_0x23b916=_0x4b92c8['getSuggestion'](_0x26ff57);return _0x1377e7=_0x23b916['attributes']['groupId'],_0x23b916['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c47da['size'])return;const _0x41aaf5=_0x4b92c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a397f=>'attribute'==_0x4a397f['type']&&_0x4a397f['data']&&_0x84d1f2['includes'](_0x4a397f['data']['key'])&&_0x4a397f['attributes']['groupId']!=_0x1377e7)['map'](_0x10f250=>({'listItem':_0x10f250['getFirstRange']()['start']['nodeAfter'],'groupId':_0x10f250['attributes']['groupId']})),_0x153951=new Set();for(const {groupId:_0x2dfdc7,listItem:_0x1ac996}of _0x41aaf5)_0x4c47da['has'](_0x1ac996)&&_0x153951['add'](_0x2dfdc7);for(const _0x4982ca of _0x4b92c8['getSuggestions']())_0x153951['has'](_0x4982ca['attributes']['groupId'])&&_0x4982ca['setAttribute']('groupId',_0x1377e7);}['_supportLegacySuggestions'](){const _0x45fb19=this['editor'],_0x4449c4=_0x45fb19['locale'],_0x11e6df=_0x45fb19['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x11e6df['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a5372,_0x10eb14){const _0x38627b=[];for(let _0x2bb1fe of _0x1a5372)_0x2bb1fe['start']['nodeAfter']===_0x2bb1fe['end']['parent']&&(_0x2bb1fe=_0x45fb19['model']['createRange'](_0x45fb19['model']['createPositionAt'](_0x2bb1fe['start']['nodeAfter'],0x0))),_0x38627b['push'](_0x2bb1fe);_0x45fb19['model']['change'](_0x25de48=>{const _0x5d440c=_0x45fb19['model']['document']['selection'],_0x49cf28=Array['from'](_0x5d440c['getRanges']())['map'](_0x37c9f2=>_0x2db68d['fromRange'](_0x37c9f2));_0x25de48['setSelection'](_0x38627b),_0x45fb19['commands']['get'](_0x10eb14['commandName'])['refresh'](),_0x10eb14['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45fb19['execute'](_0x10eb14['commandName'],..._0x10eb14['commandParams']),_0x25de48['setSelection'](_0x49cf28);for(const _0x178d7f of _0x49cf28)_0x178d7f['detach']();});}),_0x11e6df['descriptionFactory']['registerElementLabel'](function(_0x48b43e){const _0x3965cc=!_0x45fb19['model']['schema']['isObject'](_0x48b43e),_0x351707=_0x48b43e['previousSibling'],_0x1b87d7=_0x48b43e['nextSibling'],_0x314ff7=_0x48b43e['getAttribute']('listItemId'),_0x2c16e4=!_0x351707||_0x351707['getAttribute']('listItemId')!==_0x314ff7,_0x4c5a0b=!_0x1b87d7||_0x1b87d7['getAttribute']('listItemId')!==_0x314ff7;return _0x3965cc&&Boolean(_0x314ff7)&&_0x2c16e4&&_0x4c5a0b;},_0xca753=>At(_0x4449c4,'ELEMENT_LIST_ITEM',_0xca753));}['_registerLegacyDescription'](){const _0xcbc231=this['editor'],_0x52f07a=_0xcbc231['locale'];function _0x201d96(_0x48b194){const _0x4b0666=_0xcbc231['commands']['get']('bulletedList')['value'],_0x5b6cc3=_0xcbc231['commands']['get']('numberedList')['value'];return'numberedList'===_0x48b194?_0x4b0666:_0x5b6cc3;}_0xcbc231['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xda2260){if('formatBlock'!=_0xda2260['type'])return;const {data:_0x41515d}=_0xda2260;if(!_0x41515d)return;let _0x5b105b,_0x5aa24c,_0x696a06,_0x1f5eae;switch(_0x41515d['commandName']){case'bulletedList':_0x696a06=_0x41515d['commandParams'][0x0]['forceValue'],_0x1f5eae=_0x201d96(_0x41515d['commandName']),_0x5b105b=_0x696a06?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5eae&&_0xcbc231['config']['get']('list.multiBlock')||(_0x5b105b='*Change\x20to:*\x20%0'),_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x696a06=_0x41515d['commandParams'][0x0]['forceValue'],_0x1f5eae=_0x201d96(_0x41515d['commandName']),_0x5b105b=_0x696a06?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5eae&&_0xcbc231['config']['get']('list.multiBlock')||(_0x5b105b='*Change\x20to:*\x20%0'),_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b105b='*Indent:*\x20%0',_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b105b=function(_0x18c750){const _0x35b62f=_0x18c750['getFirstRange']();let _0x393f16=_0x35b62f['start']['nodeAfter'];for(;_0x393f16&&_0x35b62f['containsItem'](_0x393f16);){if(_0x393f16['getAttribute']('listIndent')>0x0)return!0x1;_0x393f16=_0x393f16['nextSibling'];}return!0x0;}(_0xda2260)?At(_0x52f07a,'*Format:*\x20remove\x20from\x20%0',At(_0x52f07a,function(_0x1c8d0a){return'ELEMENT_'+_0x1c8d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xda2260))):At(_0x52f07a,'*Outdent:*\x20%0',At(_0x52f07a,'ELEMENT_LIST_ITEM')),_0x5aa24c={'type':'format','content':_0x5b105b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41515d['multipleBlocks']&&(_0x5b105b='*Merge:*\x20%0',_0x5aa24c={'type':'deletion','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_LIST_ITEM'))});}return _0x5aa24c;});}}function Ht(_0x96f198){let _0x8e04a9=_0x96f198['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8e04a9;){const _0xdeb88=_0x8e04a9['getAttribute']('listItemId');if(!_0xdeb88)return!0x1;if(_0xdeb88==_0x96f198['data']['newValue'])return'newValue';if(_0xdeb88==_0x96f198['data']['oldValue'])return'oldValue';_0x8e04a9=_0x8e04a9['previousSibling'];}return!0x1;}class $t extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58acb7=this['editor']['config']['get']('list.properties'),_0x2d27db=this['editor']['plugins']['get']('TrackChangesEditing');_0x58acb7['styles']&&_0x2d27db['enableDefaultAttributesIntegration']('listStyle'),_0x58acb7['reversed']&&_0x2d27db['enableDefaultAttributesIntegration']('listReversed'),_0x58acb7['startIndex']&&_0x2d27db['enableDefaultAttributesIntegration']('listStart');const _0x7727e9={'type':'format','content':''};_0x2d27db['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1391d1=this['editor']['locale'];_0x2d27db['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1391d1,'FORMAT_LIST_REVERSED')),_0x2d27db['descriptionFactory']['registerDescriptionCallback'](_0x5a10f8=>{const {data:_0x512e05}=_0x5a10f8;if(_0x512e05&&'listReversed'==_0x512e05['key'])return null==_0x512e05['newValue']||0x0==_0x512e05['newValue']&&null==_0x512e05['oldValue']?_0x7727e9:void 0x0;}),_0x2d27db['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1391d1,'FORMAT_LIST_START')),_0x2d27db['descriptionFactory']['registerDescriptionCallback'](_0x15092e=>{const {data:_0x190def}=_0x15092e;if(_0x190def&&'listStart'==_0x190def['key'])return null==_0x190def['newValue']||0x1==_0x190def['newValue']&&null==_0x190def['oldValue']?_0x7727e9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4f0664=>{if(_0x4f0664['batch']['isUndo'])return!0x1;let _0x4774bb=!0x1;const _0x1d7acf=_0x2d27db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42f027=>{const _0x45bd6c=_0x2d27db['_getAttributeKey'](_0x42f027);return'listStart'==_0x45bd6c||'listReversed'==_0x45bd6c;});for(const _0x51d5d7 of _0x1d7acf){const _0x280359=_0x51d5d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x280359||'customNumbered'==_0x280359)continue;_0x2d27db['_findSuggestions'](_0x51d5d7['getFirstRange'](),'attribute')['find'](_0xaf445e=>'listType'==_0x2d27db['_getAttributeKey'](_0xaf445e['suggestion']))||(_0x4f0664['removeMarker'](_0x51d5d7['getFirstMarker']()),_0x4774bb=!0x0);}return _0x4774bb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5db836){const _0x23f42d=this['editor']['locale'],{data:_0x154811}=_0x5db836,_0x2c94f7={'type':'format','content':''};if(!_0x154811||'listStyle'!=_0x154811['key'])return;if(!_0x154811['oldValue'])return'default'==_0x154811['newValue']?_0x2c94f7:{'type':'format','content':''+At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['newValue'])))};if(!_0x154811['newValue']){if('default'==_0x154811['oldValue'])return _0x2c94f7;let _0x3f418c=_0x5db836['head'];for(;_0x3f418c;){if(_0x3f418c['data']&&'listType'==_0x3f418c['data']['key']&&_0x3f418c['data']['newValue'])return _0x2c94f7;_0x3f418c=_0x3f418c['next'];}return{'type':'format','content':''+At(_0x23f42d,'*Remove\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['oldValue'])))};}if('default'!=_0x154811['newValue'])return{'type':'format','content':''+At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['newValue'])))};let _0x58c5ff=_0x5db836['head'];for(;_0x58c5ff;){if(_0x58c5ff['data']&&'listType'==_0x58c5ff['data']['key']&&_0x58c5ff['data']['newValue']&&_0x58c5ff['data']['oldValue'])return _0x2c94f7;_0x58c5ff=_0x58c5ff['next'];}return{'type':'format','content':At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,'ELEMENT_'+_0x5db836['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x591382=this['editor'],_0x43778a=_0x591382['locale'];_0x591382['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1279fd=>{if('formatBlock'!=_0x1279fd['type'])return;const {data:_0x40629b}=_0x1279fd;if(!_0x40629b)return;let _0x1bc45d,_0x211d62;switch(_0x40629b['commandName']){case'listStyle':_0x1bc45d='*Change\x20to:*\x20%0',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d,At(_0x43778a,this['_getTranslationKeyForListStyle'](_0x40629b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bc45d=_0x40629b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d)};break;case'listStart':_0x1bc45d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d,_0x40629b['commandParams'][0x0]['startIndex'])};}return _0x211d62;});}['_getTranslationKeyForListStyle'](_0x37833c){return'ELEMENT_'+function(_0x2ed22f){if(Wt['includes'](_0x2ed22f))return'bulleted';if(Vt['includes'](_0x2ed22f))return'numbered';return null;}(_0x37833c)['toUpperCase']()+'_LIST_'+_0x37833c['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x40e6e8{['afterInit'](){const _0x2891f5=this['editor'];_0x2891f5['commands']['get']('emoji')&&_0x2891f5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x40e6e8{static get['requires'](){return[lt];}['init'](){const _0x115030=this['editor'],_0x1120a4=_0x115030['plugins']['get']('TrackChangesEditing'),_0x1fe5bf=_0x115030['commands']['get']('enter');_0x1120a4['enableCommand']('enter',()=>{_0x115030['model']['change'](_0x213945=>{const _0x335f6f=_0x115030['model']['document']['selection'],_0x2adb6b=_0x335f6f['getFirstPosition'](),_0x2d96b3=_0x2db68d['fromRange'](_0x335f6f['getFirstRange']());if(_0x1fe5bf['enterBlock'](_0x213945)){const _0x1ef632=_0x115030['model']['createPositionAt'](_0x2adb6b['parent']['nextSibling'],0x0),_0x2d1654=_0x213945['createRange'](_0x2adb6b,_0x1ef632);_0x1120a4['markInsertion'](_0x2d1654);}else _0x213945['setSelection'](_0x213945['createRange'](_0x2d96b3['end']));_0x2d96b3['detach'](),_0x1fe5bf['fire']('afterExecute',{'writer':_0x213945});});});}}class Kt extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x438185=this['editor']['plugins']['get']('TrackChangesEditing');_0x438185['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x438185['enableCommand']('findNext'),_0x438185['enableCommand']('findPrevious'),_0x438185['enableCommand']('replace'),_0x438185['enableCommand']('replaceAll');}['handleFindCommand'](_0x13a98e,_0x1f4f6c,_0x5b6e19={}){const _0x59df74=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13a98e(_0x219bb6=>{let _0x67f053=('string'==typeof _0x1f4f6c?_0x59df74['findByTextCallback'](_0x1f4f6c,_0x5b6e19):_0x1f4f6c)(_0x219bb6);Array['isArray'](_0x67f053)&&(_0x67f053={'results':_0x67f053,'searchText':'string'==typeof _0x1f4f6c?_0x1f4f6c:''});const _0x2a3971=_0x67f053['results']['filter'](_0x3f546b=>!0x1===this['_isInDeletionRange'](_0x3f546b,_0x219bb6['item']));return{..._0x67f053,'results':_0x2a3971};},_0x5b6e19);}['_isInDeletionRange'](_0x11da7a,_0x20cdb9){const _0x4de4a2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20cdb9,_0x11da7a['start']),this['editor']['model']['createPositionAt'](_0x20cdb9,_0x11da7a['end']));for(const _0x54a6d3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4de4a2['getIntersection'](_0x54a6d3['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x40e6e8{['afterInit'](){const _0x18091a=this['editor']['locale'],_0x28ddb2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x35eea7,commandName:_0x43bc85}of Xt)this['editor']['plugins']['has'](_0x35eea7)&&_0x28ddb2['enableDefaultAttributesIntegration'](_0x43bc85);_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x18091a,'FORMAT_FONT_SIZE')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x18091a,'FORMAT_FONT_FAMILY')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x18091a,'FORMAT_FONT_COLOR')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x18091a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bbe06=this['editor'],_0xdd82bc=_0x3bbe06['locale'];_0x3bbe06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46120b=>{const _0x1b00fb=_0xdd82bc['t'];if('formatInline'!=_0x46120b['type'])return;const {data:_0x5595bb}=_0x46120b;if(null!=_0x5595bb){if('fontSize'==_0x5595bb['commandName']){const _0x5e7771=_0x5595bb['commandParams'][0x0]['value'];if(_0x5e7771){const _0x3ceab6=_0x1b00fb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e99c5=>_0x4e99c5['model']==_0x5e7771)['title'])['toLowerCase']();return{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20size:*\x20%0',_0x3ceab6)};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5595bb['commandName']){const _0x3a145d=_0x5595bb['commandParams'][0x0]['value'];return _0x3a145d?{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20family:*\x20%0',_0x3a145d)}:{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5595bb['commandName']){const _0x19982a=_0x5595bb['commandParams'][0x0]['value'];if(_0x19982a){const _0x481b8f=_0x3d7480(this['editor']['config']['get']('fontColor.colors'))['find'](_0x27f854=>_0x27f854['model']==_0x19982a);let _0x246ccc=_0x19982a,_0x1ba101='';return _0x481b8f&&(_0x246ccc=_0x481b8f['label'],_0x1ba101=_0x1b00fb(_0x246ccc)['toLowerCase']()),{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20color:*\x20%0',_0x1ba101)['trim'](),'color':{'value':_0x19982a,'title':_0x1ba101||_0x246ccc}};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5595bb['commandName']){const _0x59c59d=_0x5595bb['commandParams'][0x0]['value'];if(_0x59c59d){const _0x1181b3=_0x3d7480(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59a44d=>_0x59a44d['model']==_0x59c59d);let _0x57a9b6=_0x59c59d,_0xcc7335='';return _0x1181b3&&(_0x57a9b6=_0x1181b3['label'],_0xcc7335=_0x1b00fb(_0x57a9b6)['toLowerCase']()),{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20background\x20color:*\x20%0',_0xcc7335)['trim'](),'color':{'value':_0x59c59d,'title':_0xcc7335||_0x57a9b6}};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x40e6e8{['afterInit'](){const {plugins:_0x460c12}=this['editor'];_0x460c12['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x460c12['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x368186,plugins:_0x1de44f,commands:_0xe6021}=this['editor'],_0xb1ca19=_0x1de44f['get']('TrackChangesEditing');_0xe6021['get']('footnotesStyle')&&_0xb1ca19['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe6021['get']('footnotesStart')&&_0xb1ca19['enableDefaultAttributesIntegration']('footnotesStart'),_0xb1ca19['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x368186,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xb1ca19['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x368186,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x50536f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4e80bd,commands:_0x38386d}=this['editor'];_0x38386d['get']('insertFootnote')&&_0x50536f['enableCommand']('insertFootnote'),_0x50536f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1ca1eb=>At(_0x4e80bd,'ELEMENT_FOOTNOTE_REF',_0x1ca1eb)),_0x50536f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4ea4d0=>At(_0x4e80bd,'ELEMENT_FOOTNOTE_DEFINITION',_0x4ea4d0)),_0x50536f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2515f0=>At(_0x4e80bd,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2515f0));}}class Qt extends _0x40e6e8{['afterInit'](){const _0x2a60bf=this['editor'],_0x5dab4d=_0x2a60bf['plugins']['get']('TrackChangesEditing'),_0x6d19c9=_0x2a60bf['commands']['get']('copyFormat'),_0x5e7595=_0x2a60bf['commands']['get']('pasteFormat');_0x6d19c9&&_0x5e7595&&(_0x5dab4d['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dab4d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49b36a=this['editor'],_0x348ee2=_0x49b36a['locale'];_0x49b36a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x505706=>{if('formatBlock'!=_0x505706['type']&&'formatInline'!=_0x505706['type'])return;const {data:_0x3fda47}=_0x505706;if(_0x3fda47&&'pasteFormat'===_0x3fda47['commandName']){const _0x4802e7=[],_0x4987cd=_0x3fda47['commandParams'][0x0];for(const [_0x501a7d,_0x13ae24]of Object['entries'](_0x4987cd))_0x4802e7['push'](Zt(_0x49b36a,_0x501a7d,_0x13ae24));return _0x4802e7['length']?{'type':'format','content':At(_0x348ee2,'*Set\x20format\x20to:*\x20%0',_0x4802e7['join'](',\x20'))}:{'type':'format','content':At(_0x348ee2,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x252544,_0x222612,_0x14cc81){const _0x383f56=_0x252544['locale']['t'],_0x1404c0=_0x222612['split'](/(?=[A-Z])/)['join']('\x20'),_0x37165b=_0x383f56(_0x1404c0['charAt'](0x0)['toUpperCase']()+_0x1404c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x14cc81)return _0x37165b;if('fontColor'===_0x222612||'fontBackgroundColor'===_0x222612){const _0x521aee=_0x3d7480(_0x252544['config']['get']('fontColor.colors'))['find'](_0x64ee7f=>_0x64ee7f['model']==_0x14cc81);return _0x37165b+'\x20('+(_0x521aee?_0x383f56(_0x521aee['label'])['toLowerCase']():_0x14cc81)+')';}if('fontSize'===_0x222612&&isNaN(parseFloat(_0x14cc81))){const _0x3d1c04=_0x252544['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x252544['config']['get']('fontSize.options'))['find'](_0x38c221=>_0x38c221['model']==_0x14cc81);return _0x37165b+'\x20('+(_0x3d1c04?_0x383f56(_0x3d1c04['title'])['toLowerCase']():_0x14cc81)+')';}return _0x37165b+'\x20('+_0x14cc81+')';}class Jt extends _0x40e6e8{['_headingOptions'];['afterInit'](){const _0x58adc4=this['editor'];if(!_0x58adc4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x58adc4['config']['get']('heading.options');const _0x4935de=_0x58adc4['locale'],_0x16ecb6=_0x58adc4['plugins']['get']('TrackChangesEditing');_0x16ecb6['enableDefaultAttributesIntegration']('heading');for(const _0x4eb6d2 of this['_headingOptions'])'paragraph'!=_0x4eb6d2['model']&&_0x16ecb6['descriptionFactory']['registerElementLabel'](_0x4eb6d2['model'],_0x46e1e2=>{const _0x3dfcd8=this['_getHeadingLevel'](_0x4eb6d2['model']);return null!==_0x3dfcd8?_0x3230ca(_0x46e1e2,_0x3dfcd8):_0x132c8f(_0x46e1e2,_0x4eb6d2['title']);});function _0x3230ca(_0x30fc73,_0x18187c){return At(_0x4935de,'ELEMENT_HEADING',[_0x30fc73,_0x18187c]);}function _0x132c8f(_0x5b8cc2,_0x21e11f){return At(_0x4935de,'ELEMENT_HEADING_CUSTOM',[_0x5b8cc2,_0x21e11f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516ccf=this['editor'],_0x540a4a=_0x516ccf['locale'];function _0x3b9067(_0x232ec1,_0x5105b3){return At(_0x540a4a,'ELEMENT_HEADING_CUSTOM',[_0x232ec1,_0x5105b3]);}_0x516ccf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eea81=>{if('formatBlock'!=_0x4eea81['type'])return;const {data:_0x16a9c3}=_0x4eea81;if(_0x16a9c3&&'heading'==_0x16a9c3['commandName']){const _0x3a2316=_0x16a9c3['commandParams'][0x0]['value'],_0x2a1084=this['_getHeadingLevel'](_0x3a2316);if(null!==_0x2a1084)return{'type':'format','content':At(_0x540a4a,'*Change\x20to:*\x20%0',(_0x28af48=0x1,_0x57bd7d=_0x2a1084,At(_0x540a4a,'ELEMENT_HEADING',[_0x28af48,_0x57bd7d])))};const _0x47bf07=this['_headingOptions']['find'](_0x429318=>_0x429318['model']===_0x3a2316)['title'];return{'type':'format','content':At(_0x540a4a,'*Change\x20to:*\x20%0',_0x3b9067(0x1,_0x47bf07))};}var _0x28af48,_0x57bd7d;});}['_getHeadingLevel'](_0x3ac200){const _0x41282a=_0x3ac200['match'](/^heading(\d+)/);if(_0x41282a)return _0x41282a[0x1];const _0x4faf4b=this['_headingOptions']?.['find'](_0x272a46=>_0x272a46['model']==_0x3ac200);if(_0x4faf4b&&_0x4faf4b['view']){const _0x1f4265=_0x4faf4b['view'],_0x416208=(_0x1f4265['name']??_0x1f4265)['match'](/^h(\d+)/);if(_0x416208)return _0x416208[0x1];}return null;}}class te extends _0x40e6e8{['afterInit'](){const _0x50318f=this['editor'];if(!_0x50318f['plugins']['has']('HighlightEditing'))return;const _0x56f16e=_0x50318f['plugins']['get']('TrackChangesEditing'),_0x841593=_0x50318f['locale'];_0x56f16e['enableDefaultAttributesIntegration']('highlight'),_0x56f16e['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x841593,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48282a=this['editor'],_0x2b85fa=_0x48282a['locale'];_0x48282a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38029a=>{if('formatInline'!=_0x38029a['type'])return;const {data:_0x4e944c}=_0x38029a;if(_0x4e944c&&'highlight'==_0x4e944c['commandName']){const _0x4633ea=_0x2b85fa['t'],_0x52a201=_0x4e944c['commandParams'][0x0]['value'];if(_0x52a201){const _0x31da4d=_0x48282a['config']['get']('highlight.options')['find'](_0x6de1c0=>_0x6de1c0['model']==_0x52a201),_0x26193a=_0x4633ea(_0x31da4d['title'])['toLowerCase']();return{'type':'format','content':At(_0x2b85fa,'*Set\x20highlight:*\x20%0',_0x26193a),'color':{'value':_0x31da4d['color'],'title':_0x31da4d['title']}};}return{'type':'format','content':At(_0x2b85fa,'*Remove\x20highlight*',At(_0x2b85fa,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x40e6e8{['afterInit'](){const _0x17d660=this['editor'];if(!_0x17d660['plugins']['has']('HorizontalLineEditing'))return;_0x17d660['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x124b72=_0x17d660['plugins']['get']('TrackChangesEditing'),_0x3bec20=_0x17d660['locale'];_0x124b72['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a35e3=>At(_0x3bec20,'ELEMENT_HORIZONTAL_LINE',_0x1a35e3));}}class ne extends _0x40e6e8{['afterInit'](){const _0x346aab=this['editor'];if(!_0x346aab['plugins']['has']('HtmlEmbed'))return;const _0x917699=_0x346aab['plugins']['get']('TrackChangesEditing'),_0x42fb8a=_0x346aab['locale'];_0x917699['descriptionFactory']['registerElementLabel']('rawHtml',_0x26ba62=>At(_0x42fb8a,'ELEMENT_HTML_EMBED',_0x26ba62)),_0x917699['enableDefaultAttributesIntegration']('htmlEmbed'),_0x917699['descriptionFactory']['registerDescriptionCallback'](_0x53fe28=>{if('attribute'!=_0x53fe28['type'])return;const {data:_0xc975fd}=_0x53fe28;if(_0xc975fd&&'value'==_0xc975fd['key']&&_0x53fe28['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x37a8a4=At(_0x42fb8a,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x42fb8a,'*Change\x20%0\x20content*',_0x37a8a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3de12c=this['editor'],_0x5651f5=_0x3de12c['locale'];_0x3de12c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f9d4c=>{if('formatBlock'!=_0x6f9d4c['type'])return;const {data:_0x172875}=_0x6f9d4c;if(_0x172875&&'htmlEmbed'==_0x172875['commandName']){const _0x550760=At(_0x5651f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x5651f5,'*Change\x20%0\x20content*',_0x550760)};}});}}class ie extends _0x40e6e8{['afterInit'](){const _0xbaca8b=this['editor'];if(!_0xbaca8b['plugins']['has']('ImageEditing'))return;const _0x2a449e=_0xbaca8b['plugins']['get']('TrackChangesEditing'),_0x4eaa95=_0xbaca8b['plugins']['get']('ImageUtils'),_0x4dd032=_0xbaca8b['locale'];_0x2a449e['enableCommand']('insertImage'),_0x2a449e['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c6887=>At(_0x4dd032,'ELEMENT_IMAGE',_0x2c6887)),_0x2a449e['descriptionFactory']['registerElementLabel']('imageInline',_0x489ade=>At(_0x4dd032,'ELEMENT_INLINE_IMAGE',_0x489ade)),_0x2a449e['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x4dd032,'ELEMENT_CAPTION')),_0xbaca8b['plugins']['has']('ImageUploadEditing')&&_0x2a449e['enableCommand']('uploadImage'),_0xbaca8b['plugins']['has']('ImageBlockEditing')&&_0xbaca8b['plugins']['has']('ImageInlineEditing')&&(_0x2a449e['enableCommand']('imageTypeInline',(_0x548fb6,_0x4f4d4b)=>{const _0x488361=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']);_0xbaca8b['model']['change'](()=>{_0x2a449e['markBlockFormat'](_0x488361,{'commandName':'imageTypeInline','commandParams':[_0x4f4d4b]},[],'convertBlockImageToInline');});}),_0x2a449e['enableCommand']('imageTypeBlock',(_0x599cd1,_0x38e0e8)=>{_0xbaca8b['model']['change'](_0x309e6e=>{let _0x1af36d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4faa5e=_0x309e6e['createRangeOn'](_0x1af36d);const _0x420b2d=tt['fromPosition'](_0x4faa5e['start'],'toPrevious'),_0x1e999f=tt['fromPosition'](_0x4faa5e['end'],'toNext');_0x2a449e['forceDefaultExecution'](()=>_0x599cd1(_0x38e0e8)),_0x1af36d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4faa5e=_0x309e6e['createRangeOn'](_0x1af36d);const _0x32e4ff=_0x309e6e['createRange'](_0x420b2d,_0x1e999f);_0x420b2d['detach'](),_0x1e999f['detach'](),_0x2a449e['markBlockFormat'](_0x1af36d,{'commandName':'imageTypeInline','commandParams':[_0x38e0e8]},[],'convertInlineImageToBlock'),_0x32e4ff['start']['isBefore'](_0x4faa5e['start'])&&_0x2a449e['markInsertion'](_0x309e6e['createRange'](_0x32e4ff['start'],_0x4faa5e['start']),'convertInlineImageToBlock'),_0x4faa5e['end']['isBefore'](_0x32e4ff['end'])&&_0x2a449e['markInsertion'](_0x309e6e['createRange'](_0x4faa5e['end'],_0x32e4ff['end']),'convertInlineImageToBlock');});}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a449e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x21a26f])=>{const _0x53b2a4=_0x2a449e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5bea70=_0x21a26f['start'],_0x11b48f=_0x21a26f['end'];const _0x2c2077=_0xbaca8b['model']['schema']['getNearestSelectionRange'](_0x5bea70,'backward'),_0x2101eb=_0xbaca8b['model']['schema']['getNearestSelectionRange'](_0x11b48f,'forward');_0x2c2077['isCollapsed']&&(_0x5bea70=_0x2c2077['start']),_0x2101eb['isCollapsed']&&(_0x11b48f=_0x2101eb['end']),_0x53b2a4([_0xbaca8b['model']['createRange'](_0x5bea70,_0x11b48f)]);}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4b8731),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4b8731)),_0xbaca8b['plugins']['has']('ImageCaptionEditing')&&(_0x2a449e['enableCommand']('toggleImageCaption',(_0x2ada79,_0x1fa883)=>{const _0x4e75a3=_0xbaca8b['plugins']['get']('ImageCaptionUtils');let _0x5e496d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4646e8=_0x4e75a3['getCaptionFromImageModelElement'](_0x5e496d);_0xbaca8b['model']['change'](()=>{if(_0x4646e8)return void _0x2a449e['markDeletion'](_0xbaca8b['model']['createRangeOn'](_0x4646e8));const _0x2e9a2f=_0x4eaa95['isBlockImage'](_0x5e496d);_0x2ada79(_0x1fa883),_0x5e496d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4646e8=_0x4e75a3['getCaptionFromImageModelElement'](_0x5e496d),_0x2a449e['markInsertion'](_0xbaca8b['model']['createRangeOn'](_0x4646e8),_0x2e9a2f?null:'imageCaption');});}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4b8731));const _0x13b086=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50e263(_0x307c43,_0x100520){const _0x56760c=_0x13b086['findIndex'](({type:_0x1f06c7,subType:_0x502a88})=>_0x307c43['type']==_0x1f06c7&&_0x307c43['subType']==_0x502a88),_0x381171=_0x13b086['findIndex'](({type:_0x25b86d,subType:_0x3d7236})=>_0x100520['type']==_0x25b86d&&_0x100520['subType']==_0x3d7236);if(_0x56760c<0x0||_0x381171<0x0)return!0x1;const _0x183689=_0x307c43['getFirstRange'](),_0x1fe6a5=_0x100520['getFirstRange']();if((0x0==_0x56760c||0x1==_0x56760c)&&0x2==_0x381171&&_0x183689['isIntersecting'](_0x1fe6a5))return!0x0;if(0x2==_0x56760c&&0x3==_0x381171){const _0x4753fe=_0x2a449e['_findSuggestions'](_0x183689,'insertion')['filter'](({suggestion:_0x10addc,meta:_0x2f6276})=>_0x2f6276['isOwn']&&'convertInlineImageToBlock'==_0x10addc['subType']);if(_0x4753fe['length']>0x1&&_0x1fe6a5['end']['isEqual'](_0x183689['start']))return!0x0;if(0x1==_0x4753fe['length']&&(_0x183689['start']['isEqual'](_0x1fe6a5['end'])||_0x183689['end']['isEqual'](_0x1fe6a5['start'])))return!0x0;}if(0x3==_0x56760c&&0x3==_0x381171&&_0x183689['start']['isBefore'](_0x1fe6a5['start'])){const _0x4fda57=_0x183689['end']['nodeAfter'],_0x43aec6=_0x1fe6a5['start']['nodeBefore'];return _0x4eaa95['isBlockImage'](_0x4fda57)&&_0x4fda57===_0x43aec6;}return!0x1;}function _0x4b8731(_0x636a52,_0x57fb8b){return _0x50e263(_0x636a52,_0x57fb8b)?[_0x636a52,_0x57fb8b]:_0x50e263(_0x57fb8b,_0x636a52)?[_0x57fb8b,_0x636a52]:null;}_0xbaca8b['plugins']['has']('ImageResize')&&(_0x2a449e['enableDefaultAttributesIntegration']('resizeImage'),_0x2a449e['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x4dd032,'FORMAT_IMAGE_SIZE'))),_0xbaca8b['plugins']['has']('ImageTextAlternativeEditing')&&_0x2a449e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xbaca8b['plugins']['has']('PictureEditing')&&_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x35e123=>{if('attribute'!=_0x35e123['type'])return;const {data:_0x3f11ea}=_0x35e123;return _0x3f11ea&&'sources'==_0x3f11ea['key']?{'type':'format','content':''}:void 0x0;}),_0xbaca8b['plugins']['has']('ImageSizeAttributes')&&_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x45ad29=>{if('attribute'!=_0x45ad29['type'])return;const {data:_0x45acb9}=_0x45ad29;return!_0x45acb9||'width'!=_0x45acb9['key']&&'height'!=_0x45acb9['key']?void 0x0:{'type':'format','content':''};}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0xbcc448=>{if(!!_0x13b086['find'](({type:_0x16eeed,subType:_0x4312dd})=>_0xbcc448['type']==_0x16eeed&&_0xbcc448['subType']==_0x4312dd))return _0xbcc448['previous']?{}:void 0x0;}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x1140f2=>{if('insertion'==_0x1140f2['type']||'deletion'==_0x1140f2['type']){const _0x277f26=_0x1140f2['getContainedElement']();if(_0x277f26&&_0x277f26['is']('element','caption'))return{'type':'insertion'==_0x1140f2['type']?'addObject':'removeObject','element':_0x277f26,'quantity':0x1};}}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x39a41f=>'formatBlock'==_0x39a41f['type']&&'convertInlineImageToBlock'==_0x39a41f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x39a41f['type']&&'convertBlockImageToInline'==_0x39a41f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x716033=>{if('attribute'!=_0x716033['type'])return;const {data:_0x309e8a}=_0x716033;if(!_0x309e8a||'alt'!=_0x309e8a['key'])return;const _0x2948b2=_0x309e8a['newValue'];return _0x2948b2?{'type':'format','content':At(_0x4dd032,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2948b2+'\x22')}:{'type':'format','content':At(_0x4dd032,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb44fe6=this['editor'],_0x51d430=_0xb44fe6['locale'];_0xb44fe6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5640f0=>{if('formatBlock'!=_0x5640f0['type']&&'formatInline'!=_0x5640f0['type'])return;const {data:_0x5579f5}=_0x5640f0;if(_0x5579f5){if('imageTextAlternative'==_0x5579f5['commandName']){const _0x566391=_0x5579f5['commandParams'][0x0]['newValue'];return _0x566391?{'type':'format','content':At(_0x51d430,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x566391+'\x22')}:{'type':'format','content':At(_0x51d430,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5579f5['commandName']){const _0x3b36e7=_0x5579f5['commandParams'][0x0]['width'];return _0x3b36e7?{'type':'format','content':At(_0x51d430,'*Set\x20image\x20width:*\x20%0',_0x3b36e7)}:{'type':'format','content':At(_0x51d430,'*Reset\x20image\x20width*')};}}});}}class se extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x149168=this['editor']['locale'],_0x12b2ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x12b2ee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12b2ee['descriptionFactory']['registerDescriptionCallback'](_0x11dc7a=>{if('attribute'!=_0x11dc7a['type'])return;const {data:_0x3d8a88}=_0x11dc7a;return _0x3d8a88&&'src'==_0x3d8a88['key']?_0x3d8a88['newValue']&&_0x3d8a88['oldValue']?{'type':'format','content':At(_0x149168,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x248ca3=this['editor']['plugins']['get']('TrackChangesEditing');_0x248ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x248ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x248ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4693d5=this['editor'],_0x394820=_0x4693d5['locale'];_0x4693d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1270ee=>{if('formatBlock'!=_0x1270ee['type']&&'formatInline'!=_0x1270ee['type'])return;const {data:_0x2f046a}=_0x1270ee;if(!_0x2f046a||'replaceImageSource'!=_0x2f046a['commandName'])return;return{'type':'format','content':At(_0x394820,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x40e6e8{['afterInit'](){const _0x20a574=this['editor'];if(!_0x20a574['plugins']['has']('ImageStyleEditing'))return;const _0x15232e=_0x20a574['plugins']['get']('TrackChangesEditing'),_0x162b1b=_0x20a574['plugins']['get']('ImageUtils'),_0x4dd223={};_0x15232e['enableCommand']('imageStyle',(_0x3d44fc,_0x338d29)=>{const _0xc1c572=_0x20a574['plugins']['get']('Users')['me'],_0xdc2ba=_0x20a574['commands']['get']('imageStyle');let _0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),_0x53a977=_0x20a574['model']['createRangeOn'](_0x1f9e51),_0x38cb67=_0xdc2ba['value'];if(_0x38cb67==_0x338d29['value'])return;const _0x28420c={'commandName':'imageStyle','commandParams':[_0x338d29],'formatGroupId':_0x5bdaf9()};_0x20a574['model']['change'](()=>{if(_0x15232e['getSuggestions']()['filter'](_0x29c128=>_0x29c128['isInContent']&&_0xc1c572==_0x29c128['author']&&('formatBlock'==_0x29c128['type']||'formatInline'==_0x29c128['type'])&&('imageStylePreApply'==_0x29c128['subType']||'imageStylePostApply'==_0x29c128['subType'])&&_0x29c128['getFirstRange']()['isEqual'](_0x53a977))['forEach'](_0x4af31e=>_0x15232e['discardSuggestion'](_0x4af31e['head'])),_0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),_0x53a977=_0x20a574['model']['createRangeOn'](_0x1f9e51),_0xdc2ba['refresh'](),_0x20a574['commands']['get']('imageTypeInline')['refresh'](),_0x20a574['commands']['get']('imageTypeBlock')['refresh'](),_0x38cb67=_0xdc2ba['value'],_0x38cb67!=_0x338d29['value'])return _0x162b1b['isInlineImage'](_0x1f9e51)&&_0xdc2ba['shouldConvertImageType'](_0x338d29['value'],_0x1f9e51)?(_0x3d44fc({..._0x338d29,'setImageSizes':!0x1}),_0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),void _0x15232e['markBlockFormat'](_0x1f9e51,{..._0x28420c,'commandReversedParams':[{'value':_0x38cb67||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x162b1b['isBlockImage'](_0x1f9e51)?_0x15232e['markBlockFormat'](_0x1f9e51,_0x28420c,[],'imageStylePostApply'):_0x15232e['markInlineFormat'](_0x53a977,_0x28420c,'imageStylePostApply'));});});for(const _0x3e30ab of _0x20a574['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4dd223[_0x3e30ab['name']]=_0x3e30ab['title']['toLowerCase']();_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35c519])=>{_0x162b1b['setImageNaturalSizeAttributes'](_0x35c519['getContainedElement']());}),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11c67f,_0x2a3cad)=>{_0x15232e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11c67f,{'commandName':_0x2a3cad['commandName'],'commandParams':_0x2a3cad['commandReversedParams']});}),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e557d,_0x33526c){if(_0x198fff(_0x2e557d,_0x33526c))return[_0x2e557d,_0x33526c];if(_0x198fff(_0x33526c,_0x2e557d))return[_0x33526c,_0x2e557d];return null;});const _0x33c0c0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x198fff(_0x449d38,_0x1e449b){const _0x1f4868=_0x33c0c0['findIndex'](({type:_0x326762,subType:_0x3d3899})=>_0x449d38['type']==_0x326762&&_0x449d38['subType']==_0x3d3899),_0x52fd11=_0x33c0c0['findIndex'](({type:_0x1d3207,subType:_0x20d036})=>_0x1e449b['type']==_0x1d3207&&_0x1e449b['subType']==_0x20d036);if(_0x1f4868<0x0||_0x52fd11<0x0)return!0x1;const _0xd857d6=_0x449d38['getFirstRange'](),_0x2432da=_0x1e449b['getFirstRange']();if((0x0==_0x1f4868||0x1==_0x1f4868)&&0x2==_0x52fd11&&_0xd857d6['isIntersecting'](_0x2432da))return!0x0;if(0x2==_0x1f4868&&0x3==_0x52fd11){const _0x22e9e0=_0x15232e['_findSuggestions'](_0xd857d6,'insertion')['filter'](({suggestion:_0x21476b,meta:_0x2b17c5})=>_0x2b17c5['isOwn']&&'convertInlineImageToBlock'==_0x21476b['subType']);if(_0x22e9e0['length']>0x1&&_0x2432da['end']['isEqual'](_0xd857d6['start']))return!0x0;if(0x1==_0x22e9e0['length']&&(_0xd857d6['start']['isEqual'](_0x2432da['end'])||_0xd857d6['end']['isEqual'](_0x2432da['start'])))return!0x0;}if(0x3==_0x1f4868&&0x3==_0x52fd11&&_0xd857d6['start']['isBefore'](_0x2432da['start'])){const _0x3390c0=_0xd857d6['end']['nodeAfter'],_0x59c094=_0x2432da['start']['nodeBefore'];return _0x162b1b['isBlockImage'](_0x3390c0)&&_0x3390c0===_0x59c094;}return!0x1;}_0x20a574['model']['document']['registerPostFixer'](()=>{let _0x8fd38d=!0x1;const _0x28a801=Array['from'](_0x20a574['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x319578,data:_0xdb3d0a}of _0x28a801){const {group:_0x3e8651,type:_0x4be21b,subType:_0x419fb9,id:_0x4e13c7}=_0x4e67eb(_0x319578);if('suggestion'==_0x3e8651&&_0x15232e['hasSuggestion'](_0x4e13c7)){if('formatBlock'==_0x4be21b&&('imageStylePreApply'==_0x419fb9||'imageStylePostApply'==_0x419fb9)){const _0x151b51=_0x15232e['getSuggestion'](_0x4e13c7);if(_0xdb3d0a['newRange']){const _0x47af4b=_0x151b51['getFirstRange']()['getContainedElement']();if(_0x162b1b['isBlockImage'](_0x47af4b))continue;_0x15232e['discardSuggestion'](_0x151b51),_0x8fd38d=!0x0;}}if('insertion'==_0x4be21b&&'imageCaption'==_0x419fb9&&!_0xdb3d0a['newRange']){const _0x1dd727=_0x15232e['getSuggestion'](_0x4e13c7);_0x1dd727['next']&&_0x1dd727['next']['isInContent']&&(_0x15232e['discardSuggestion'](_0x1dd727['next']),_0x8fd38d=!0x0);}}}return _0x8fd38d;}),this['_registerLegacyDescription'](_0x4dd223);}['_registerLegacyDescription'](_0x7a0b5a){const _0xae64d4=this['editor'],_0x4b7b79=_0xae64d4['locale'];_0xae64d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353bc7=>{if('formatBlock'!=_0x353bc7['type']&&'formatInline'!=_0x353bc7['type'])return;const {data:_0x4ff4dc}=_0x353bc7;if(!_0x4ff4dc||'imageStyle'!=_0x4ff4dc['commandName'])return;const _0x4ac583=_0x4ff4dc['commandParams'][0x0]['value'];return _0x1f00ee('side'===_0x4ac583?At(_0x4b7b79,'FORMAT_SIDE_IMAGE'):_0x7a0b5a[_0x4ac583]||_0x4ac583);function _0x1f00ee(_0x4803ed){return{'type':'format','content':At(_0x4b7b79,'*Format:*\x20%0',_0x4803ed)};}});}}class oe extends _0x40e6e8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x23fb7b){super(_0x23fb7b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xfad4ca=this['editor'],_0x296951=_0xfad4ca['commands']['get']('importWord'),_0x536874=_0xfad4ca['commands']['get']('trackChanges');_0x296951&&(_0x296951['on']('execute',(_0x4dbf18,[,_0x258c98])=>{this['_trackChangesValueDuringImport']=_0x536874['value'],_0x258c98['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x296951,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x296951,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x536874['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xfad4ca['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c69a5,_0x3da560){const {suggestions:_0x442e1b}=_0x3da560,_0x17ec11=this['editor']['commands']['get']('trackChanges'),_0xe12720=_0x17ec11['value'];this['_trackChangesValueDuringImport']!==_0xe12720&&(_0x17ec11['execute'](),this['_trackChangesExecuted']=!0x0),_0x442e1b&&_0x442e1b['forEach'](({id:_0x3b91fd,type:_0x237687,author:_0x4cf05f,created_at:_0xfd1737})=>{const _0x3b9150={'id':_0x3b91fd,'type':_0x237687,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4cf05f,'createdAt':_0xfd1737?new Date(_0xfd1737):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3b9150);});}}class ae extends _0x40e6e8{['afterInit'](){const _0x193256=this['editor'],_0x3d73b3=_0x193256['plugins']['get']('TrackChangesEditing');if(_0x193256['plugins']['has']('IndentEditing')&&(_0x3d73b3['enableCommand']('indent'),_0x3d73b3['enableCommand']('outdent')),_0x193256['plugins']['has']('IndentBlock')){for(const _0x5a3c78 of['indentBlock','outdentBlock'])_0x3d73b3['enableDefaultAttributesIntegration'](_0x5a3c78);if(_0x193256['plugins']['has']('ListEditing')){for(const _0x705f3b of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3d73b3['enableDefaultAttributesIntegration'](_0x705f3b);}}const _0x1ee406=_0x193256['locale'];_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x1ee406,'FORMAT_INDENT')),_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x1ee406,'FORMAT_INDENT')),_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x1ee406,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3878e7=this['editor'],_0x564207=_0x3878e7['locale'],_0x49d43d=_0x3878e7['plugins']['get']('TrackChangesEditing');_0x49d43d['descriptionFactory']['registerDescriptionCallback'](_0x877e48=>{if('formatBlock'!=_0x877e48['type'])return;const {data:_0x4f5911}=_0x877e48;if(!_0x4f5911)return;if('indentBlock'!=_0x4f5911['commandName']&&'outdentBlock'!=_0x4f5911['commandName'])return;const _0x5e6be7=_0x877e48['getItems']()[0x0],_0x43e80a=_0x49d43d['descriptionFactory']['getItemLabel'](_0x5e6be7);return'indentBlock'==_0x4f5911['commandName']?{'type':'format','content':At(_0x564207,'*Indent:*\x20%0',_0x43e80a)}:'outdentBlock'==_0x4f5911['commandName']?{'type':'format','content':At(_0x564207,'*Outdent:*\x20%0',_0x43e80a)}:void 0x0;});}}class ce extends _0x40e6e8{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x40e6e8{['afterInit'](){const _0x24d2b0=this['editor'];if(!_0x24d2b0['plugins']['has']('LinkEditing'))return;const _0x57fce9=_0x24d2b0['plugins']['get']('TrackChangesEditing'),_0x213159=_0x24d2b0['commands']['get']('link');_0x57fce9['enableDefaultAttributesIntegration']('link'),_0x57fce9['enableDefaultAttributesIntegration']('unlink');for(const _0xaa5308 of _0x213159['manualDecorators'])_0x57fce9['descriptionFactory']['registerAttributeLabel'](_0xaa5308['id'],'link\x20('+_0xaa5308['label']['toLowerCase']()+')');_0x57fce9['descriptionFactory']['registerDescriptionCallback'](_0x391072=>{if('attribute'!=_0x391072['type'])return;const {data:_0x189db1}=_0x391072;if(!_0x189db1||'linkHref'!=_0x189db1['key'])return;const _0xcd235d=_0x189db1['newValue'],_0x26a8cc=_0x24d2b0['locale'];return{'type':'format','content':null==_0xcd235d?At(_0x26a8cc,'*Remove\x20link*'):At(_0x26a8cc,'*Set\x20link:*\x20%0','\x22'+_0xcd235d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x711991=this['editor'],_0xdac9e1=_0x711991['locale'];_0x711991['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290dcd=>{if('formatInline'!=_0x290dcd['type'])return;const {data:_0x5e1a82}=_0x290dcd;if(_0x5e1a82){if('link'==_0x5e1a82['commandName']){const _0x2376ee=_0x5e1a82['commandParams'][0x0];return{'type':'format','content':At(_0xdac9e1,'*Set\x20link:*\x20%0','\x22'+_0x2376ee+'\x22')};}return'unlink'==_0x5e1a82['commandName']?{'type':'format','content':At(_0xdac9e1,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x40e6e8{['afterInit'](){const _0x29f010=this['editor'],_0x2c8878=_0x29f010['locale'];if(!_0x29f010['plugins']['has']('LegacyListEditing'))return;const _0x3c6e82=_0x29f010['plugins']['get']('TrackChangesEditing'),_0xb77a31=_0x29f010['plugins']['has']('LegacyTodoListEditing');function _0x6067a7(_0x1cd262){return()=>{const _0x644671=_0x29f010['model']['document']['selection'],_0x463d65=_0x29f010['commands']['get'](_0x1cd262);if(_0x463d65['value'])return void _0x29f010['execute']('paragraph',{});const _0x231ec1=_0x1cd262['slice'](0x0,-0x4),_0x54f4b0=function(_0x4ce216,_0x3b499d,_0x2469a1){let _0x31135b=Array['from'](_0x4ce216)['filter'](_0x3d8d70=>function(_0xcda2df,_0x29bf24){return _0x29bf24['checkChild'](_0xcda2df['parent'],'listItem')&&!_0x29bf24['isObject'](_0xcda2df);}(_0x3d8d70,_0x2469a1));_0x31135b=_0x31135b['filter'](_0xb4bf12=>!_0xb4bf12['is']('element','listItem')||_0xb4bf12['getAttribute']('listType')!=_0x3b499d);const _0x52c209=new Set();for(const _0x367949 of _0x31135b)_0x367949['is']('element','listItem')?_0x52c209['add'](he(_0x367949)):_0x52c209['add'](_0x367949);return Array['from'](_0x52c209);}(_0x644671['getSelectedBlocks'](),_0x231ec1,_0x29f010['model']['schema']);_0x29f010['model']['change'](()=>{for(const _0x106b08 of _0x54f4b0)_0x3c6e82['markBlockFormat'](_0x106b08,{'commandName':_0x1cd262,'commandParams':[{'forceValue':!_0x463d65['value']}],'formatGroupId':'blockName'},de(_0x106b08));});};}function _0x2fbec1(_0x2853ed){return()=>{const _0x37260c=function(_0x3c5232){let _0x5b009d=Array['from'](_0x3c5232);const _0x21e403=_0x5b009d['findIndex'](_0x3458c3=>'listItem'!=_0x3458c3['name']);return _0x21e403>-0x1&&(_0x5b009d=_0x5b009d['slice'](0x0,_0x21e403)),_0x5b009d;}(_0x29f010['model']['document']['selection']['getSelectedBlocks']()),_0x52d295=_0x29f010['model']['createRange'](_0x29f010['model']['createPositionAt'](_0x37260c[0x0],'before'),_0x29f010['model']['createPositionAt'](_0x37260c[_0x37260c['length']-0x1],'end'));_0x29f010['model']['change'](()=>{_0x3c6e82['markBlockFormat'](_0x52d295,{'commandName':_0x2853ed,'commandParams':[],'formatGroupId':'listIndent'},function(_0x438fe1){const _0x17c831=new Set();for(const _0x22b9fc of _0x438fe1){let _0x7415c0=_0x22b9fc['nextSibling'];for(;_0x7415c0&&_0x7415c0['getAttribute']('listIndent')>_0x22b9fc['getAttribute']('listIndent');)_0x17c831['add'](_0x7415c0),_0x7415c0=_0x7415c0['nextSibling'];}return Array['from'](_0x17c831);}(_0x37260c));});};}_0x3c6e82['enableCommand']('numberedList',_0x6067a7('numberedList')),_0x3c6e82['enableCommand']('bulletedList',_0x6067a7('bulletedList')),_0xb77a31&&_0x3c6e82['enableCommand']('todoList',_0x6067a7('todoList')),_0x3c6e82['enableCommand']('indentList',_0x2fbec1('indentList')),_0x3c6e82['enableCommand']('outdentList',_0x2fbec1('outdentList')),_0xb77a31&&_0x3c6e82['enableCommand']('checkTodoList',()=>{const _0x2b434d=_0x29f010['commands']['get']('checkTodoList'),_0x26c983=Array['from'](_0x2b434d['_selectedElements']);_0x26c983['filter'](_0x1987b3=>_0x1987b3['getAttribute']('todoListChecked')!=_0x2b434d['value']),_0x29f010['model']['change'](()=>{for(const _0x5e6b73 of _0x26c983)_0x3c6e82['markBlockFormat'](_0x5e6b73,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b434d['value']}]});});}),_0x3c6e82['descriptionFactory']['registerElementLabel']('listItem',_0x48bf82=>At(_0x2c8878,'ELEMENT_LIST_ITEM',_0x48bf82)),_0x3c6e82['descriptionFactory']['registerDescriptionCallback'](_0x4aae27=>{if('formatBlock'!=_0x4aae27['type']&&'formatInline'!=_0x4aae27['type'])return;const {data:_0x4c9ed6}=_0x4aae27;if(_0x4c9ed6){if('numberedList'==_0x4c9ed6['commandName']||'bulletedList'==_0x4c9ed6['commandName']||'todoList'==_0x4c9ed6['commandName'])switch(_0x4c9ed6['commandName']['replace']('List','')){case'bulleted':return _0x492884(At(_0x2c8878,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x492884(At(_0x2c8878,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x492884(At(_0x2c8878,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c9ed6['commandName'])return{'type':'format','content':At(_0x2c8878,'*Indent:*\x20%0',At(_0x2c8878,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c9ed6['commandName'])return{'type':'format','content':At(_0x2c8878,'*Outdent:*\x20%0',At(_0x2c8878,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c9ed6['commandName'])return _0x4c9ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2c8878,'*Check\x20item*')}:{'type':'format','content':At(_0x2c8878,'*Uncheck\x20item*')};}function _0x492884(_0x192898){return{'type':'format','content':At(_0x2c8878,'*Change\x20to:*\x20%0',_0x192898)};}});}}function he(_0x267a55){const _0x27cc1e=_0x267a55['getAttribute']('listIndent');if(0x0==_0x27cc1e)return _0x267a55;let _0x1e1b86=_0x267a55;for(;_0x267a55['previousSibling']&&_0x267a55['previousSibling']['is']('element','listItem');){const _0xdf2b47=_0x267a55['previousSibling']['getAttribute']('listIndent');if(_0xdf2b47==_0x27cc1e)_0x1e1b86=_0x267a55['previousSibling'];else{if(_0xdf2b47<_0x27cc1e)break;}_0x267a55=_0x267a55['previousSibling'];}return _0x1e1b86;}function de(_0x28c3cb){const _0x459d70=[];if(_0x28c3cb['is']('element','listItem')&&_0x28c3cb['getAttribute']('listIndent')>0x0){let _0x44f443=_0x28c3cb['nextSibling'];for(;_0x44f443&&'listItem'==_0x44f443['name']&&_0x44f443['getAttribute']('listIndent')==_0x28c3cb['getAttribute']('listIndent');)_0x459d70['push'](_0x44f443),_0x44f443=_0x44f443['nextSibling'];}return _0x459d70;}class fe extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4628c4=this['editor']['config']['get']('list.properties'),_0x51543f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4628c4['styles']&&_0x51543f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4628c4['reversed']&&_0x51543f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4628c4['startIndex']&&_0x51543f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51543f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc2cceb,_0x4be047={}){const _0x1d5743=this['editor']['plugins']['get']('TrackChangesEditing'),_0x708fd0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d5743['markMultiRangeBlockFormat'](_0x708fd0,{'commandName':'listStyle','commandParams':[{'type':_0x4be047['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e94d3,_0x210500={}){const _0x96d43e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47119a=this['_getSuggestionBlocks'](_0x547329=>_0x547329['is']('element','listItem')&&'numbered'===_0x547329['getAttribute']('listType'));if(_0x47119a['length']<0x1)return;const _0xa15479=_0x47119a['map'](_0x2792c8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2792c8,'before'),this['editor']['model']['createPositionAt'](_0x2792c8,0x0)));this['editor']['model']['change'](()=>{_0x96d43e['markMultiRangeBlockFormat'](_0xa15479,{'commandName':'listReversed','commandParams':[{'reversed':_0x210500['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x440029,_0x5f37cc={}){const _0x4fd427=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5310ec=this['_getSuggestionBlocks'](_0x5edfd5=>_0x5edfd5['is']('element','listItem')&&'numbered'===_0x5edfd5['getAttribute']('listType'));if(_0x5310ec['length']<0x1)return;const _0x1ca84f=_0x5310ec['map'](_0x8d6ccb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8d6ccb,'before'),this['editor']['model']['createPositionAt'](_0x8d6ccb,0x0)));this['editor']['model']['change'](()=>{_0x4fd427['markMultiRangeBlockFormat'](_0x1ca84f,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f37cc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29640d){if('formatBlock'!=_0x29640d['type']&&'formatInline'!=_0x29640d['type'])return;const _0xae89dc=this['editor']['locale'],{data:_0x3795ab}=_0x29640d;if(!_0x3795ab)return;let _0x44f2b0,_0xaca95;switch(_0x3795ab['commandName']){case'listStyle':_0x44f2b0='*Change\x20to:*\x20%0',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0,At(_0xae89dc,this['_getTranslationKeyForListStyle'](_0x3795ab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x44f2b0=_0x3795ab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0)};break;case'listStart':_0x44f2b0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0,_0x3795ab['commandParams'][0x0]['startIndex'])};}return _0xaca95;}['_getSuggestionBlocksForListStyle'](){const _0x136db1=this['editor']['plugins']['get']('LegacyListUtils');let _0x45709b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45709b[0x0]?.['is']('element','listItem')&&_0x45709b['unshift'](..._0x136db1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45709b[_0x45709b['length']-0x1]?.['is']('element','listItem')&&_0x45709b['push'](..._0x136db1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45709b=[...new Set(_0x45709b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45709b=_0x45709b['filter'](_0x3d4478=>_0x3d4478['is']('element','listItem'))),_0x45709b;}['_getSuggestionBlocks'](_0x4afe18){const _0x519ba9=this['editor']['plugins']['get']('LegacyListUtils');let _0x5357a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4afe18)['map'](_0x25373f=>{const _0x1f1daf=this['editor']['model']['createPositionAt'](_0x25373f,0x0);return[..._0x519ba9['getSiblingNodes'](_0x1f1daf,'backward'),..._0x519ba9['getSiblingNodes'](_0x1f1daf,'forward')];})['flat']();return _0x5357a4=[...new Set(_0x5357a4)],_0x5357a4;}['_getTranslationKeyForListStyle'](_0x304492){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x304492)||'default')['toUpperCase']()+'_LIST_'+_0x304492['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x40e6e8{['afterInit'](){const _0x29a76b=this['editor'];if(!_0x29a76b['plugins']['has']('MediaEmbedEditing'))return;const _0x476eb2=_0x29a76b['plugins']['get']('TrackChangesEditing'),_0x3c8926=_0x29a76b['locale'];_0x476eb2['enableCommand']('mediaEmbed'),_0x476eb2['descriptionFactory']['registerElementLabel']('media',_0x3d3e71=>At(_0x3c8926,'ELEMENT_MEDIA',_0x3d3e71));}}class me extends _0x40e6e8{['afterInit'](){const _0x5988d2=this['editor'];_0x5988d2['plugins']['has']('MentionEditing')&&_0x5988d2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x40e6e8{['afterInit'](){const _0x1e5890=this['editor'];if(!_0x1e5890['plugins']['has']('MergeFieldsEditing'))return;const _0x37cf66=_0x1e5890['plugins']['get']('TrackChangesEditing'),_0x155665=_0x1e5890['locale'];_0x37cf66['enableCommand']('insertMergeField'),_0x37cf66['enableCommand']('insertMergeFieldBlock'),_0x37cf66['enableCommand']('insertMergeFieldImage'),_0x37cf66['descriptionFactory']['registerElementLabel']('mergeField',_0x5c9c19=>At(_0x155665,'ELEMENT_MERGE_FIELD',_0x5c9c19)),_0x37cf66['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x468ac2=>At(_0x155665,'ELEMENT_MERGE_FIELD',_0x468ac2)),_0x37cf66['descriptionFactory']['registerDescriptionCallback'](_0x211c1b=>{if('insertion'!=_0x211c1b['type']&&'deletion'!=_0x211c1b['type'])return;const _0x3891f2=_0x211c1b['getContainedElement']();if(null==_0x3891f2)return;const _0x4f1f47=_0x1e5890['plugins']['get']('MergeFieldsEditing');let _0x21dc2f;switch(_0x4f1f47['getMergeFieldType'](_0x3891f2)){case null:return;case'image':{const _0x263e49=_0x4f1f47['unwrapAffixes'](_0x3891f2['getAttribute']('src'));_0x21dc2f=_0x4f1f47['getLabel'](_0x263e49)||_0x263e49;break;}default:{const _0x23b20c=_0x3891f2['getAttribute']('id');_0x21dc2f=_0x4f1f47['getLabel'](_0x23b20c)||_0x23b20c;break;}}return'insertion'==_0x211c1b['type']?{'type':'insertion','content':At(_0x155665,'*Insert:*\x20%0','\x22'+_0x21dc2f+'\x22\x20'+At(_0x155665,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x155665,'*Remove:*\x20%0','\x22'+_0x21dc2f+'\x22\x20'+At(_0x155665,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x40e6e8{['afterInit'](){const _0x27479e=this['editor'],_0x4c510d=_0x27479e['plugins']['get']('TrackChangesEditing');_0x27479e['plugins']['has']('MultiLevelList')&&(_0x4c510d['enableDefaultAttributesIntegration']('multiLevelList'),_0x4c510d['descriptionFactory']['registerDescriptionCallback'](_0x2bbc1e=>this['handleDescriptions'](_0x2bbc1e)));}['handleDescriptions'](_0x18767b){const _0x342fa4=this['editor']['locale'],{data:_0x34ce73}=_0x18767b,_0x592b41={'type':'format','content':''};if(_0x34ce73&&'listMarkerStyle'==_0x34ce73['key']){if(!_0x34ce73['oldValue'])return{'type':'format','content':At(_0x342fa4,'*Set\x20format:*\x20%0',At(_0x342fa4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34ce73['newValue']+')'};if(!_0x34ce73['newValue']){let _0x565aa9=_0x18767b['head'];for(;_0x565aa9;){if(_0x565aa9['data']&&'listType'==_0x565aa9['data']['key']&&_0x565aa9['data']['newValue'])return _0x592b41;_0x565aa9=_0x565aa9['next'];}return{'type':'format','content':At(_0x342fa4,'*Remove\x20format:*\x20%0',At(_0x342fa4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34ce73['oldValue']+')'};}}}}class _e extends _0x40e6e8{['afterInit'](){const _0xa2fd01=this['editor'];if(!_0xa2fd01['plugins']['has']('PageBreakEditing'))return;_0xa2fd01['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5779b0=_0xa2fd01['plugins']['get']('TrackChangesEditing'),_0x3375e6=_0xa2fd01['locale'];_0x5779b0['descriptionFactory']['registerElementLabel']('pageBreak',_0x5beb85=>At(_0x3375e6,'ELEMENT_PAGE_BREAK',_0x5beb85));}}class pe extends _0x40e6e8{['afterInit'](){const _0x11c483=this['editor'];if(!_0x11c483['plugins']['has']('Paragraph'))return;const _0x4fe396=_0x11c483['locale'],_0x1dcdc1=_0x11c483['plugins']['get']('TrackChangesEditing');_0x1dcdc1['descriptionFactory']['registerElementLabel']('paragraph',_0x577052=>At(_0x4fe396,'ELEMENT_PARAGRAPH',_0x577052)),_0x1dcdc1['enableDefaultAttributesIntegration']('paragraph'),_0x1dcdc1['enableCommand']('insertParagraph');const _0x39830c=_0x1dcdc1['descriptionFactory'];_0x39830c['registerDescriptionCallback'](_0x1290ef=>{if('insertion'!==_0x1290ef['type'])return;const {start:_0x38f4dd,end:_0x50657e}=_0x1290ef['getFirstRange']();if(!_0x38f4dd['isTouching'](_0x50657e)||!_0x38f4dd['nodeAfter'])return;const _0x251614=_0x11c483['model']['schema'],_0x4926e6=_0x38f4dd['nodeAfter'];return _0x251614['isBlock'](_0x4926e6)&&!_0x251614['isLimit'](_0x4926e6)&&_0x251614['checkChild'](_0x4926e6,'$text')?{'type':'insertion','content':At(_0x4fe396,'*Insert:*\x20%0',_0x39830c['getItemLabel'](_0x4926e6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2419c5=this['editor'],_0x2e5145=_0x2419c5['locale'];_0x2419c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c614f=>{if('formatBlock'!=_0x5c614f['type'])return;const {data:_0xc0cdb3}=_0x5c614f;return _0xc0cdb3&&'paragraph'==_0xc0cdb3['commandName']?{'type':'format','content':At(_0x2e5145,'*Change\x20to:*\x20%0',At(_0x2e5145,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x40e6e8{['afterInit'](){const _0x1ff369=this['editor'];_0x1ff369['commands']['get']('replaceSource')&&_0x1ff369['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x40e6e8{['afterInit'](){const _0x1fd3d6=this['editor'];if(!_0x1fd3d6['plugins']['has']('RemoveFormatEditing'))return;_0x1fd3d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592aa6=this['editor'];_0x592aa6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14231c=>{if('formatBlock'!=_0x14231c['type']&&'formatInline'!=_0x14231c['type'])return;const {data:_0x43427b}=_0x14231c;return _0x43427b&&'removeFormat'==_0x43427b['commandName']?{'type':'format','content':At(_0x592aa6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x40e6e8{['afterInit'](){const _0x5dd759=this['editor'];if(!_0x5dd759['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x75db78=_0x5dd759['plugins']['get']('TrackChangesEditing');_0x75db78['enableCommand']('goToPreviousRestrictedEditingException'),_0x75db78['enableCommand']('goToNextRestrictedEditingException');const _0x29a3d2=_0x5dd759['plugins']['get']('RestrictedEditingModeEditing');_0x29a3d2['enableCommand']('trackChanges'),_0x29a3d2['enableCommand']('acceptSuggestion'),_0x29a3d2['enableCommand']('discardSuggestion'),_0x29a3d2['enableCommand']('acceptAllSuggestions'),_0x29a3d2['enableCommand']('discardAllSuggestions'),_0x29a3d2['enableCommand']('acceptSelectedSuggestions'),_0x29a3d2['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x40e6e8{['afterInit'](){const _0x33fcbe=this['editor'];if(!_0x33fcbe['plugins']['has']('ShiftEnter'))return;const _0x11c5c4=_0x33fcbe['plugins']['get']('TrackChangesEditing');_0x11c5c4['enableCommand']('shiftEnter'),_0x11c5c4['descriptionFactory']['registerElementLabel']('softBreak',_0x11aa0b=>At(_0x33fcbe['locale'],'ELEMENT_LINE_BREAK',_0x11aa0b));}}function ke(_0x5dfc2a,_0x416030,_0x5bd2d4){const _0x501869=[];for(const _0x289c92 of _0x416030['getItems']())_0x289c92['hasAttribute'](_0x5dfc2a)&&_0x501869['push'](_0x5bd2d4['createRangeOn'](_0x289c92));return _0x501869;}class Ce extends _0x40e6e8{['afterInit'](){const _0x132471=this['editor'],_0x9dc98c=_0x132471['plugins']['get']('TrackChangesEditing');_0x132471['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x9dc98c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x38e839=this['editor'],_0x2da147=_0x38e839['model'],_0x361a49=_0x38e839['locale'],_0x42bcce=_0x38e839['plugins']['get']('TrackChangesEditing'),_0x4ba79f='restrictedEditingException',_0x2c2e4a=_0x38e839['commands']['get'](_0x4ba79f);_0x42bcce['enableCommand'](_0x4ba79f,(_0x14f558,_0x521897={})=>{const _0x35bd46=_0x2da147['document']['selection'];if(_0x35bd46['isCollapsed'])return void _0x14f558(_0x521897);const _0x104698=void 0x0!==_0x521897['forceValue']?_0x521897['forceValue']:!_0x2c2e4a['value'];_0x2da147['change'](()=>{const _0x2a4135=Array['from'](_0x35bd46['getRanges']());for(const _0x25fd66 of _0x2a4135){const _0x5666f9=_0x104698?[_0x25fd66]:ke(_0x4ba79f,_0x25fd66,_0x2da147);for(const _0x5103da of _0x5666f9)_0x42bcce['markInlineFormat'](_0x5103da,{'commandName':_0x4ba79f,'commandParams':[{'forceValue':_0x104698}]});}});}),_0x42bcce['descriptionFactory']['registerDescriptionCallback'](_0x521654=>{if('formatBlock'!=_0x521654['type']&&'formatInline'!=_0x521654['type'])return;const {data:_0x1c44c8}=_0x521654;return _0x1c44c8&&_0x1c44c8['commandName']==_0x4ba79f?_0x1c44c8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x361a49,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x361a49,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x55ed23=this['editor'],_0x473aa8=_0x55ed23['locale'],_0x3ce7bb=_0x55ed23['plugins']['get']('TrackChangesEditing'),_0x439870='restrictedEditingExceptionBlock',_0x35de72=this['editor']['commands']['get'](_0x439870);_0x3ce7bb['enableCommand'](_0x439870,(_0x936648,_0x4839ed={})=>{const _0xb78a44=this['editor']['model']['document']['selection'],_0x373b2b=_0x4839ed&&void 0x0!==_0x4839ed['forceValue']?_0x4839ed['forceValue']:!_0x35de72['value'];let _0x51dea9=[];if(_0x373b2b){const _0x13c48f=Array['from'](_0xb78a44['getSelectedBlocks']())['filter'](_0x17beda=>function(_0x45eabc){return!!_0x45eabc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x17beda)||function(_0x3dbe9e,_0x401598){const _0x1f6606=_0x401598['createContext'](_0x3dbe9e['parent']);if(!_0x401598['checkChild'](_0x1f6606,'restrictedEditingException'))return!0x1;if(!_0x401598['checkChild'](_0x1f6606['push']('restrictedEditingException'),_0x3dbe9e))return!0x1;return!0x0;}(_0x17beda,this['editor']['model']['schema']));_0x51dea9=Tt(_0x13c48f,_0x55ed23['model']);}else{const _0x5396c1=Array['from'](_0xb78a44['getSelectedBlocks']())['map'](_0x6fb6c3=>function(_0x2d4ff6){let _0x581d3c=_0x2d4ff6;for(;_0x581d3c['parent'];){if('restrictedEditingException'==_0x581d3c['parent']['name'])return _0x581d3c;_0x581d3c=_0x581d3c['parent'];}return null;}(_0x6fb6c3))['filter'](_0x2423b5=>!!_0x2423b5);_0x51dea9=Tt(_0x5396c1,_0x55ed23['model']);}_0x55ed23['model']['change'](()=>{for(const _0x2f167f of _0x51dea9)_0x3ce7bb['markBlockFormat'](_0x2f167f,{'commandName':_0x439870,'commandParams':[{'forceValue':_0x373b2b}]});});}),_0x3ce7bb['descriptionFactory']['registerDescriptionCallback'](_0x1b5508=>{const {data:_0x1b593e}=_0x1b5508;if(_0x1b593e&&_0x1b593e['commandName']==_0x439870)return _0x1b593e['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x473aa8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x473aa8,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x40e6e8{['afterInit'](){const _0x2aafdd=this['editor'];if(!_0x2aafdd['plugins']['has']('Style')||!_0x2aafdd['plugins']['has']('DataSchema'))return;const _0x566368=_0x2aafdd['plugins']['get']('TrackChangesEditing'),_0xd769b8=_0x2aafdd['locale'],_0x499816=_0x2aafdd['config']['get']('style')||{},_0x1da012=_0x2aafdd['plugins']['get']('GeneralHtmlSupport'),_0xa55c0d=_0x2aafdd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2aafdd['plugins']['get']('DataSchema'),_0x499816['definitions']);_0x566368['enableDefaultAttributesIntegration']('style');const _0x5b71ac=new Set();for(const _0x553966 of _0xa55c0d['block']){const _0x956f87=_0x1da012['getGhsAttributeNameForElement'](_0x553966['element']);_0x5b71ac['add'](_0x956f87);}const _0x1bb399=new Set();for(const _0x266dae of _0xa55c0d['inline']){const _0x76f54a=_0x1da012['getGhsAttributeNameForElement'](_0x266dae['element']);_0x1bb399['add'](_0x76f54a);for(const _0x2595c5 of _0x266dae['ghsAttributes'])_0x1bb399['add'](_0x2595c5);}for(const _0x1a8b0a of _0x5b71ac)_0x566368['descriptionFactory']['registerAttributeLabel'](_0x1a8b0a,At(_0xd769b8,'FORMAT_STYLE'));for(const _0x1d96cd of _0x1bb399)_0x566368['descriptionFactory']['registerAttributeLabel'](_0x1d96cd,At(_0xd769b8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e6429=this['editor'],_0xa9a983=_0x1e6429['locale'];_0x1e6429['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44753a=>{if('formatBlock'!=_0x44753a['type']&&'formatInline'!=_0x44753a['type'])return;const {data:_0x2feebd}=_0x44753a;return _0x2feebd&&'style'===_0x2feebd['commandName']?_0x2feebd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa9a983,'*Set\x20format:*\x20%0',_0x2feebd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0xa9a983,'*Remove\x20format:*\x20%0',_0x2feebd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x40e6e8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x699793){super(_0x699793),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a7a22=this['editor'],_0x826edb=_0x2a7a22['model']['document']['selection'];if(!_0x2a7a22['plugins']['has']('TableEditing'))return;const _0x3ed837=_0x2a7a22['locale'],_0x39c595=_0x2a7a22['plugins']['get']('TrackChangesEditing'),_0x391f6b=_0x2a7a22['plugins']['get']('TableUtils');_0x39c595['descriptionFactory']['registerElementLabel']('table',_0x262797=>At(_0x3ed837,'ELEMENT_TABLE',_0x262797)),this['_setupColumnsRowsFixing'](),_0x39c595['enableCommand']('insertTable'),_0x39c595['enableCommand']('selectTableRow'),_0x39c595['enableCommand']('selectTableColumn');for(const _0x301c1f of['insertTableRowAbove','insertTableRowBelow']){const _0x484ef9=_0x2a7a22['commands']['get'](_0x301c1f);_0x39c595['enableCommand'](_0x301c1f,_0x544dec=>{_0x2a7a22['model']['change'](_0x252ab5=>{_0x544dec();const _0x5ba37b='above'===_0x484ef9['order'],_0x5b5902=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x42fd3a=_0x391f6b['getRowIndexes'](_0x5b5902),_0x3d9ea6=_0x5ba37b?_0x42fd3a['first']-0x1:_0x42fd3a['last']+0x1,_0x26ff11=_0x5b5902[0x0]['findAncestor']('table'),_0x59e053=_0x391f6b['createTableWalker'](_0x26ff11,{'startRow':_0x3d9ea6,'endRow':_0x3d9ea6}),_0x2416a3=Array['from'](_0x59e053)['map'](_0x560898=>_0x252ab5['createRangeOn'](_0x560898['cell']));_0x39c595['markMultiRangeInsertion'](_0x2416a3,'tableRow');});});}for(const _0x3c8575 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3bf448=_0x2a7a22['commands']['get'](_0x3c8575);_0x39c595['enableCommand'](_0x3c8575,_0x320a21=>{_0x2a7a22['model']['change'](_0x80bb3b=>{_0x320a21();const _0x45a881='left'===_0x3bf448['order'],_0x3752db=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x25df9a=_0x391f6b['getColumnIndexes'](_0x3752db),_0x175cdc=_0x45a881?_0x25df9a['first']-0x1:_0x25df9a['last']+0x1,_0x390993=_0x3752db[0x0]['findAncestor']('table'),_0x522edc=_0x391f6b['createTableWalker'](_0x390993,{'startRow':0x0,'column':_0x175cdc,'includeAllSlots':!0x1}),_0xcf3709=Array['from'](_0x522edc)['map'](_0x2e2f1e=>_0x80bb3b['createRangeOn'](_0x2e2f1e['cell']));_0x39c595['markMultiRangeInsertion'](_0xcf3709,'tableColumn');});});}for(const _0x340b1d of['removeTableRow','removeTableColumn']){const _0x6ab1f3=_0x340b1d['substr'](0xb),_0x5c7eb8=_0x6ab1f3['toLowerCase'](),_0x616ece=_0x5c7eb8['substr'](0x0,0x3)+'span',_0x45baf5='table'+_0x6ab1f3,_0x51a10c='min'+_0x6ab1f3,_0x1a920b='max'+_0x6ab1f3;_0x39c595['enableCommand'](_0x340b1d,()=>{_0x2a7a22['model']['change'](_0x545dbe=>{const _0x11ce65=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x32df70=_0x11ce65[0x0]['findAncestor']('table');let _0x5b6ed7;if('removeTableRow'==_0x340b1d){const _0x5827da=_0x391f6b['getRowIndexes'](_0x11ce65);_0x5b6ed7={'startRow':_0x5827da['first'],'endRow':_0x5827da['last'],'includeAllSlots':!0x0};}else{const _0xe372da=_0x391f6b['getColumnIndexes'](_0x11ce65);_0x5b6ed7={'startColumn':_0xe372da['first'],'endColumn':_0xe372da['last'],'includeAllSlots':!0x0};}const _0xc4aa7b=_0x391f6b['createTableWalker'](_0x32df70,_0x5b6ed7),_0x2021a4=Array['from'](_0xc4aa7b)['map'](({cell:_0x2eb57f})=>_0x2eb57f),_0x93c4dd=Re(_0x2021a4['filter'](_0x507950=>_0x507950['hasAttribute'](_0x616ece))),_0x19b9fd=Re(_0x2021a4['filter'](_0x1fbc62=>!_0x1fbc62['hasAttribute'](_0x616ece)))['map'](_0x2e4927=>_0x545dbe['createRangeOn'](_0x2e4927)),_0x4c6858=_0x39c595['markMultiRangeDeletion'](_0x19b9fd,_0x45baf5);if(_0x4c6858&&('tableRow'==_0x4c6858['subType']||'tableColumn'==_0x4c6858['subType'])){const _0x24d442=this['_getSuggestionCoords'](_0x4c6858);for(const _0x3ab7bb of _0x93c4dd){const _0xc10a00=_0x545dbe['createRangeOn'](_0x3ab7bb),_0x3ae476=_0x391f6b['getCellLocation'](_0x3ab7bb),_0x1d4dc0=_0x3ab7bb['getAttribute'](_0x616ece)-0x1,_0x54caae=_0x24d442[_0x51a10c],_0x3b6d03=_0x24d442[_0x1a920b];_0x54caae<=_0x3ae476[_0x5c7eb8]&&_0x3ae476[_0x5c7eb8]+_0x1d4dc0<=_0x3b6d03&&_0x4c6858['addRange'](_0xc10a00);}}});});}function _0x30b844(_0x31dcd0){const _0x2f2e1=Array['from'](_0x826edb['getRanges']())['map'](_0x5cff06=>_0x2db68d['fromRange'](_0x5cff06));_0x2a7a22['model']['change'](_0x150327=>{const _0x4d949c=_0x150327['batch'];_0x31dcd0=_0x31dcd0['filter'](_0x33b1bc=>'$graveyard'!=_0x33b1bc['root']['rootName']),_0x150327['setSelection'](_0x31dcd0),_0x2a7a22['commands']['get']('removeTableRow')['refresh'](),_0x2a7a22['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a7a22['model']['enqueueChange'](()=>{_0x2a7a22['model']['enqueueChange'](_0x4d949c,_0x55156b=>{const _0x30f97d=_0x2f2e1['filter'](_0x5da239=>'$graveyard'!=_0x5da239['root']['rootName']);_0x30f97d['length']>0x0&&_0x55156b['setSelection'](_0x30f97d);for(const _0x18e3e9 of _0x2f2e1)_0x18e3e9['detach']();});});});}function _0xf03149(_0x2005eb){_0x2a7a22['model']['change'](_0x23dc91=>{const _0x4a97b5=Array['from'](_0x826edb['getRanges']())['map'](_0x2f0592=>_0x2db68d['fromRange'](_0x2f0592)),_0x319581=[];for(const _0x57049f of _0x2005eb)for(const _0x414193 of _0x57049f['getItems']({'shallow':!0x0}))_0x319581['push'](_0x414193);for(const _0x36ce06 of _0x319581)'$graveyard'!=_0x36ce06['root']['rootName']&&(_0x23dc91['setSelection'](_0x23dc91['createPositionAt'](_0x36ce06,0x0)),_0x2a7a22['commands']['get']('removeTableColumn')['refresh'](),_0x2a7a22['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb9e81f=_0x4a97b5['filter'](_0x3aca6a=>'$graveyard'!=_0x3aca6a['root']['rootName']);_0xb9e81f['length']>0x0&&_0x23dc91['setSelection'](_0xb9e81f);for(const _0x4a4e07 of _0x4a97b5)_0x4a4e07['detach']();});}function _0x43e3bf(_0xc171b0,_0x58df72){return _0x58df72['every'](_0x4ce92b=>_0xc171b0['some'](_0x576bf9=>_0x576bf9['end']['isEqual'](_0x4ce92b['start'])||_0x4ce92b['end']['isEqual'](_0x576bf9['start'])));}function _0x4241f4(_0x53c971,_0x582f63){return!_0x53c971['some'](_0x163adb=>_0x582f63['some'](_0x3460bd=>_0x163adb['isIntersecting'](_0x3460bd)))&&_0x53c971['some'](_0x154218=>_0x582f63['some'](_0xa0eab6=>_0x154218['end']['isTouching'](_0xa0eab6['start'])));}_0x39c595['descriptionFactory']['registerDescriptionCallback'](_0x2d56e6=>{if('insertion'!=_0x2d56e6['type']&&'deletion'!=_0x2d56e6['type'])return;const _0x91bf57=_0x2d56e6['getContainedElement']();if(null!=_0x91bf57&&_0x91bf57['is']('element','table')){if('insertion'==_0x2d56e6['type']){const _0x403f64=_0x2d56e6['getItems']()['filter'](_0x4b6b7f=>_0x4b6b7f['is']('$textProxy'))['map'](_0x4fc015=>_0x4fc015['data']);if(_0x403f64['length'])return{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x403f64['join']('\x20')+'\x22'))};}if('deletion'==_0x2d56e6['type']){const _0x2c2ddd=_0x2d56e6['getItems']()['filter'](_0x3702c4=>_0x3702c4['is']('$textProxy'))['map'](_0x40f57e=>_0x40f57e['data']);if(_0x2c2ddd['length'])return{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c2ddd['join']('\x20')+'\x22'))};}}}),_0x39c595['descriptionFactory']['registerDescriptionCallback'](_0x4c1471=>{if('tableRow'==_0x4c1471['subType']){const _0x507a70=_0x4c1471['getItems']()['filter'](_0x30c638=>_0x30c638['is']('$textProxy'))['map'](_0x5535bc=>_0x5535bc['data']),_0x251bee=this['_getSuggestionCoords'](_0x4c1471),_0x3584db=_0x251bee['maxRow']-_0x251bee['minRow']+0x1;if('insertion'==_0x4c1471['type'])return _0x507a70['length']?{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3584db,'\x22'+_0x507a70['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW',_0x3584db))};if('deletion'==_0x4c1471['type'])return _0x507a70['length']?{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3584db,'\x22'+_0x507a70['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW',_0x3584db))};}if('tableColumn'==_0x4c1471['subType']){const _0x149d36=_0x4c1471['getItems']()['filter'](_0xf28f02=>_0xf28f02['is']('$textProxy'))['map'](_0x7668e3=>_0x7668e3['data']),_0x178a7c=this['_getSuggestionCoords'](_0x4c1471),_0x2d74ad=_0x178a7c['maxColumn']-_0x178a7c['minColumn']+0x1;if('insertion'==_0x4c1471['type'])return _0x149d36['length']?{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d74ad,'\x22'+_0x149d36['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN',_0x2d74ad))};if('deletion'==_0x4c1471['type'])return _0x149d36['length']?{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d74ad,'\x22'+_0x149d36['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN',_0x2d74ad))};}}),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30b844),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30b844),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xf03149),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xf03149),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x43e3bf),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x43e3bf),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4241f4),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4241f4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ef64a=this['editor'],_0x2850ee=_0x1ef64a['model']['document']['selection'];return(_0x5a0521,_0x2db728)=>{_0x1ef64a['model']['change'](_0x5825c3=>{const {commandName:_0x1965c7,commandParams:_0x57fb26}=_0x2db728;let _0x55d258=_0x5a0521[0x0]['end']['nodeBefore'];_0x57fb26&&_0x57fb26[0x0]&&!0x1===_0x57fb26[0x0]['forceValue']&&(_0x55d258=_0x5a0521[0x0]['start']['nodeAfter']);const _0x29fcce=_0x5825c3['createRangeIn'](_0x55d258);if('$graveyard'==_0x29fcce['root']['rootName'])return;const _0x23bca1=Array['from'](_0x2850ee['getRanges']())['map'](_0x3126d7=>_0x2db68d['fromRange'](_0x3126d7));_0x5825c3['setSelection'](_0x29fcce),_0x1ef64a['commands']['get'](_0x1965c7)['refresh'](),_0x57fb26['push']({'forceDefaultExecution':!0x0}),_0x1ef64a['execute'](_0x1965c7,..._0x57fb26);const _0x13ccf0=_0x23bca1['filter'](_0x3084a2=>'$graveyard'!=_0x3084a2['root']['rootName']);_0x13ccf0['length']>0x0&&_0x5825c3['setSelection'](_0x13ccf0);for(const _0x3c2b74 of _0x23bca1)_0x3c2b74['detach']();});};}['_getCoordsForCells'](_0x1449fa){const _0x557f6d=this['editor']['plugins']['get']('TableUtils');let _0x21ec9d=Number['MAX_SAFE_INTEGER'],_0x3225cb=Number['MIN_SAFE_INTEGER'],_0x4d9b76=Number['MAX_SAFE_INTEGER'],_0x14cb12=Number['MIN_SAFE_INTEGER'];for(const _0x401588 of _0x1449fa){if('$graveyard'==_0x401588['root']['rootName'])continue;const {row:_0xb7ecdb,column:_0x16764b}=_0x557f6d['getCellLocation'](_0x401588),_0x5bbb8f=_0x401588['hasAttribute']('rowspan')?_0x401588['getAttribute']('rowspan')-0x1:0x0,_0x4c9763=_0x401588['hasAttribute']('colspan')?_0x401588['getAttribute']('colspan')-0x1:0x0;_0x21ec9d=_0xb7ecdb<_0x21ec9d?_0xb7ecdb:_0x21ec9d,_0x3225cb=_0xb7ecdb+_0x5bbb8f>_0x3225cb?_0xb7ecdb+_0x5bbb8f:_0x3225cb,_0x4d9b76=_0x16764b<_0x4d9b76?_0x16764b:_0x4d9b76,_0x14cb12=_0x16764b+_0x4c9763>_0x14cb12?_0x16764b+_0x4c9763:_0x14cb12;}return{'minRow':_0x21ec9d,'maxRow':_0x3225cb,'minColumn':_0x4d9b76,'maxColumn':_0x14cb12};}['_setupColumnsRowsFixing'](){const _0x2d59a2=this['editor'],_0x29e2b0=_0x2d59a2['plugins']['get']('TrackChangesEditing'),_0x3bb7e1=_0x2d59a2['plugins']['get']('TableUtils');_0x2d59a2['model']['document']['on']('change:data',()=>{const _0x19fac1=Array['from'](_0x2d59a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd3b445,data:_0x1fc06b}of _0x19fac1){const {group:_0x21a702,id:_0x316f81,subType:_0x58dbb3}=_0x4e67eb(_0xd3b445);if('suggestion'!=_0x21a702)continue;if(null!=_0x1fc06b['oldRange'])continue;const _0x191516=_0x29e2b0['getSuggestion'](_0x316f81);this['_tablePostFixingSubtypes']['includes'](_0x58dbb3)&&this['_tableSuggestions']['add'](_0x191516);}},{'priority':'low'});const _0x178407=(_0x4f6442,_0x10919e)=>{let _0x3e7b88=!0x1;const _0x636ad1=_0x10919e['createRangeOn'](_0x4f6442),_0x21233f=_0x4f6442['findAncestor']('table'),_0x241f37=_0x3bb7e1['getCellLocation'](_0x4f6442);for(const _0x45790f of this['_tableSuggestions']){const _0x29290e=_0x45790f['subType'],_0xbb4372=_0x29290e['startsWith']('tablePaste'),_0x1a3764=_0x29290e['substr'](_0xbb4372?0xa:0x5),_0x56d107=_0x1a3764['toLowerCase'](),_0x29f266=_0x56d107['substr'](0x0,0x3)+'span',_0xd33358='min'+_0x1a3764,_0xd0c79d='max'+_0x1a3764;if(!_0x45790f['isInContent'])continue;if(_0x21233f!=_0x45790f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45790f['isIntersectingWithRange'](_0x636ad1))continue;const _0x59f617=_0x4f6442['hasAttribute'](_0x29f266)?_0x4f6442['getAttribute'](_0x29f266)-0x1:0x0,_0x37b2ce=this['_getSuggestionCoords'](_0x45790f),_0x4d5972=_0x37b2ce[_0xd33358],_0x41bf98=_0x37b2ce[_0xd0c79d];_0x4d5972<=_0x241f37[_0x56d107]&&_0x241f37[_0x56d107]+_0x59f617<=_0x41bf98&&(_0x45790f['addRange'](_0x636ad1),_0x3e7b88=!0x0);}return _0x3e7b88;};_0x2d59a2['model']['document']['registerPostFixer'](_0x278755=>{let _0x35af91=!0x1;for(const _0x493cae of _0x2d59a2['model']['document']['differ']['getChanges']())if('insert'==_0x493cae['type']){if('tableRow'==_0x493cae['name']){for(const _0xfe151f of _0x493cae['position']['nodeAfter']['getChildren']())_0x35af91=_0x35af91||_0x178407(_0xfe151f,_0x278755);}else'tableCell'==_0x493cae['name']&&(_0x35af91=_0x35af91||_0x178407(_0x493cae['position']['nodeAfter'],_0x278755));}return _0x35af91;});}['_getSuggestionCoords'](_0x30030b){return this['_getCoordsForCells'](_0x30030b['getRanges']()['map'](_0xa87cf3=>_0xa87cf3['start']['nodeAfter']));}}function Re(_0x41d2b1){return Array['from'](new Set(_0x41d2b1)['values']());}class Se extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x5a1c44=this['editor'],_0x433a0f=_0x5a1c44['model']['document']['selection'],_0x1a7ef3=_0x5a1c44['locale'];if(!_0x5a1c44['plugins']['has']('TableEditing'))return;const _0x21786b=_0x5a1c44['plugins']['get']('TrackChangesEditing'),_0x47f8e2=_0x5a1c44['plugins']['get']('TableUtils'),_0x19d7ef=_0x5a1c44['plugins']['get'](Ne);_0x19d7ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21786b['enableCommand']('mergeTableCells',()=>{const _0x5973db=_0x47f8e2['getSelectionAffectedTableCells'](_0x5a1c44['model']['document']['selection']);_0x5a1c44['model']['change'](()=>{_0x21786b['markMultiRangeBlockFormat'](_0x5973db,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a1c44['commands']['get']('mergeTableCells')['on']('execute',(_0x35ba77,_0x2bed9c)=>{_0x5a1c44['commands']['get']('trackChanges')['value']&&(_0x2bed9c['length']>0x0&&_0x2bed9c[_0x2bed9c['length']-0x1]&&_0x2bed9c[_0x2bed9c['length']-0x1]['forceDefaultExecution']||_0x21786b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35ba77['stop']());},{'priority':'highest'});for(const _0x4ca425 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x330947=_0x5a1c44['commands']['get'](_0x4ca425);_0x21786b['enableCommand'](_0x4ca425,()=>{const _0x488f4c=_0x5a1c44['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d3f70=>_0x4d3f70['is']('element','tableCell')),_0x1bd47b=_0x330947['value'];_0x5a1c44['model']['change'](()=>{_0x21786b['markMultiRangeBlockFormat']([_0x488f4c,_0x1bd47b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x32f070 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52e942=_0x5a1c44['commands']['get'](_0x32f070);_0x21786b['enableCommand'](_0x32f070,()=>{const _0x8d4cc5=_0x47f8e2['getSelectionAffectedTableCells'](_0x5a1c44['model']['document']['selection'])[0x0],_0x5eb692=_0x8d4cc5['findAncestor']('table'),{column:_0x53dfc1,row:_0x5b1bc4}=_0x47f8e2['getCellLocation'](_0x8d4cc5);let _0x2a9c75=[];if('horizontally'==_0x52e942['direction']){const _0x2b3daa=_0x47f8e2['createTableWalker'](_0x5eb692,{'startRow':_0x5b1bc4,'endRow':_0x5b1bc4,'includeAllSlots':!0x0});_0x2a9c75=Array['from'](_0x2b3daa)['map'](_0x207349=>_0x207349['cell']);}else{const _0x4868c4=_0x47f8e2['createTableWalker'](_0x5eb692,{'column':_0x53dfc1,'includeAllSlots':!0x0});_0x2a9c75=Array['from'](_0x4868c4)['map'](_0x4fffec=>_0x4fffec['cell']);}_0x5a1c44['model']['change'](_0x2e03c3=>{_0x21786b['markBlockFormat'](_0x2e03c3['createRangeOn'](_0x8d4cc5),{'commandName':_0x32f070,'commandParams':[]},_0x2a9c75,_0x32f070);});});}_0x21786b['descriptionFactory']['registerDescriptionCallback'](_0x2a6559=>{if('formatBlock'!=_0x2a6559['type']&&'formatInline'!=_0x2a6559['type'])return;const {data:_0x1238d5}=_0x2a6559;return _0x1238d5&&'mergeTableCells'==_0x1238d5['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Merge\x20cells*')}:void 0x0;}),_0x21786b['descriptionFactory']['registerDescriptionCallback'](_0x1aa1b7=>{if('formatBlock'!=_0x1aa1b7['type']&&'formatInline'!=_0x1aa1b7['type'])return;const {data:_0x37a887}=_0x1aa1b7;return _0x37a887?'splitTableCellVertically'==_0x37a887['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x37a887['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1532c3=_0x19d7ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x1309cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1309cf,'accept',_0x1532c3);for(const _0x54bf61 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54bf61,'accept',_0x1532c3);_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46c8e8=>{_0x5a1c44['model']['change'](_0x746998=>{const _0x21b85c=Array['from'](_0x433a0f['getRanges']())['map'](_0x392e76=>_0x2db68d['fromRange'](_0x392e76));_0x746998['setSelection'](_0x46c8e8),_0x5a1c44['commands']['get']('mergeTableCells')['refresh'](),_0x5a1c44['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56bde3=_0x21b85c['filter'](_0x380fff=>'$graveyard'!=_0x380fff['root']['rootName']);_0x56bde3['length']>0x0&&_0x746998['setSelection'](_0x56bde3);for(const _0xd2d81a of _0x21b85c)_0xd2d81a['detach']();});});for(const _0x4673d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x822c40=_0x5a1c44['commands']['get'](_0x4673d0);_0x822c40['on']('set:isEnabled',(_0x1e767e,_0x5a1d30,_0x1cd0c0)=>{if(_0x1cd0c0){const _0x25be1a=_0x5a1c44['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bb307=>_0x5bb307['is']('element','tableCell'));this['_areMergableCells'](_0x822c40['value'],_0x25be1a)||(_0x1e767e['return']=!0x1,_0x1e767e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5a96ee=this['editor']['commands']['get']('mergeTableCells'),_0x5b0d0c=this['editor']['plugins']['get']('TableUtils');if(!_0x5a96ee['isEnabled'])return!0x1;const _0x378357=_0x5b0d0c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2faa94 of _0x378357)for(const _0x439e5c of _0x378357)if(_0x2faa94!=_0x439e5c&&!this['_areMergableCells'](_0x2faa94,_0x439e5c))return!0x1;return!0x0;}['_areMergableCells'](_0x49d1e1,_0x763cbf){const _0x3601f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe04523=this['editor']['model']['createRangeOn'](_0x49d1e1),_0x585aa8=this['editor']['model']['createRangeOn'](_0x763cbf),_0x51da0f=new Set(),_0x3f25f7=new Set();for(const _0x7731e of _0x3601f0['getSuggestions']())if(('insertion'==_0x7731e['type']||'deletion'==_0x7731e['type']||'mergeTableCells'==_0x7731e['subType'])&&_0x7731e['isInContent']){for(const _0x1cbe1a of _0x7731e['getRanges']())_0x1cbe1a['containsRange'](_0xe04523,!0x0)&&_0x51da0f['add'](_0x7731e['type']+':'+_0x7731e['author']['id']),_0x1cbe1a['containsRange'](_0x585aa8,!0x0)&&_0x3f25f7['add'](_0x7731e['type']+':'+_0x7731e['author']['id']);}if(_0x51da0f['size']!=_0x3f25f7['size'])return!0x1;for(const _0x39a088 of _0x51da0f)if(!_0x3f25f7['has'](_0x39a088))return!0x1;return!0x0;}}class Me extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x5d1871=this['editor'];if(!_0x5d1871['plugins']['has']('TableEditing'))return;const _0x5fb6bd=_0x5d1871['locale'],_0x515d61=_0x5d1871['plugins']['get']('TrackChangesEditing');_0x515d61['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x515d61['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x515d61['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x5fb6bd,'FORMAT_HEADER_ROW')),_0x515d61['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x5fb6bd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12d87e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d0a7=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x12d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x44d0a7),_0x12d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x44d0a7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x8a124f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef2ce=this['editor']['plugins']['get']('TableUtils');function _0x1b312f({showActiveMarker:_0x48066e=!0x0,setDataAttribute:_0x3a6616=!0x0}={}){return(_0x1dc92d,_0x1b3c49,_0x376fec)=>{const {type:_0x75d8fd,id:_0x15126b}=_0x4e67eb(_0x1b3c49['markerName']);if(!_0x8a124f['hasSuggestion'](_0x15126b))return;const _0x344ec3=_0x8a124f['getSuggestion'](_0x15126b),_0x1b4f5a=_0x344ec3['data'];if('formatBlock'!=_0x344ec3['type']||!_0x1b4f5a||'setTableColumnHeader'!=_0x1b4f5a['commandName'])return;if(_0x1b3c49['item'])return void _0x1dc92d['stop']();if(!_0x376fec['consumable']['consume'](_0x1b3c49['markerRange'],_0x1dc92d['name']))return;const _0x4619f4=_0x1b3c49['markerRange']['start']['nodeAfter'],_0x5af7c5=_0x1b3c49['markerRange']['end']['nodeBefore'],_0x196f2d=_0x4619f4['parent']['parent'],{column:_0x1c1dca}=_0x4ef2ce['getCellLocation'](_0x4619f4),{column:_0xa9195a}=_0x4ef2ce['getCellLocation'](_0x5af7c5);for(let _0x351127=_0x1c1dca;_0x351127<=_0xa9195a;_0x351127++){const _0x29a38f=_0x4ef2ce['createTableWalker'](_0x196f2d,{'column':_0x351127,'includeAllSlots':!0x1});for(const _0x5423fb of _0x29a38f){const _0x16fd0d=_0x5423fb['cell'],_0x584ec9=_0x376fec['mapper']['toViewElement'](_0x16fd0d);_0x376fec['writer']['addClass']('ck-suggestion-marker-'+_0x75d8fd,_0x584ec9),_0x3a6616&&_0x376fec['writer']['setAttribute']('data-suggestion',_0x15126b,_0x584ec9),_0x376fec['mapper']['bindElementToMarker'](_0x584ec9,_0x1b3c49['markerName']),_0x48066e&&(_0x8a124f['activeMarkers']['includes'](_0x1b3c49['markerName'])?_0x376fec['writer']['addClass']('ck-suggestion-marker--active',_0x584ec9):_0x376fec['writer']['removeClass']('ck-suggestion-marker--active',_0x584ec9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b312f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x128f6e,_0x5b69ff,_0x475750)=>{_0x475750['options']['showSuggestionHighlights']&&_0x1b312f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x128f6e,_0x5b69ff,_0x475750);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3abbfe,_0x52a6d0,_0x2cb0cb)=>{const {type:_0x2d0011,id:_0x114782}=_0x4e67eb(_0x52a6d0['markerName']);if(!_0x8a124f['hasSuggestion'](_0x114782))return;const _0x3e1477=_0x8a124f['getSuggestion'](_0x114782),_0x2fb73b=_0x3e1477['data'];if('formatBlock'!=_0x3e1477['type']||!_0x2fb73b||'setTableColumnHeader'!=_0x2fb73b['commandName'])return;const _0xc9f0ae=_0x2cb0cb['mapper']['markerNameToElements'](_0x52a6d0['markerName']);if(_0xc9f0ae){for(const _0x593c01 of _0xc9f0ae)_0x2cb0cb['writer']['removeClass']('ck-suggestion-marker-'+_0x2d0011,_0x593c01),_0x2cb0cb['writer']['removeClass']('ck-suggestion-marker--active',_0x593c01),_0x2cb0cb['writer']['removeAttribute']('data-suggestion',_0x593c01),_0x2cb0cb['mapper']['unbindElementFromMarkerName'](_0x593c01,_0x52a6d0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4e3cb8=this['editor'],_0x17a173=_0x4e3cb8['locale'];function _0x1f9080(_0x4fff0c){return{'type':'format','content':At(_0x17a173,'*Format:*\x20%0',_0x4fff0c)};}_0x4e3cb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b28cb=>{if('formatBlock'!=_0x1b28cb['type'])return;const {data:_0x5c6a5a}=_0x1b28cb;if(_0x5c6a5a){if('setTableRowHeader'==_0x5c6a5a['commandName']){const _0x1cc3cd=_0x5c6a5a['commandParams'][0x0]['forceValue'];return _0x1f9080(At(_0x17a173,_0x1cc3cd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c6a5a['commandName']){const _0x5330db=_0x5c6a5a['commandParams'][0x0]['forceValue'];return _0x1f9080(At(_0x17a173,_0x5330db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x1a1cfa=this['editor'];if(!_0x1a1cfa['plugins']['has']('TableEditing')||!_0x1a1cfa['config']['get']('table.enableFooters'))return;const _0x3b80a0=_0x1a1cfa['locale'],_0x297573=_0x1a1cfa['plugins']['get']('TrackChangesEditing');_0x297573['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x297573['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x3b80a0,'FORMAT_FOOTER_ROW'));}}class we extends _0x40e6e8{['afterInit'](){const _0x1189e1=this['editor'],_0x56b359=_0x1189e1['locale'],_0x1e4b2b=_0x1189e1['plugins']['get']('TrackChangesEditing');function _0x451f62(_0x2a4e9b){return{'type':'format','content':''+At(_0x56b359,'*Set\x20table\x20type:*\x20%0',_0x2a4e9b)};}_0x1189e1['plugins']['has']('TableLayout')&&(_0x1e4b2b['enableCommand']('insertTableLayout'),_0x1e4b2b['enableDefaultAttributesIntegration']('tableType'),_0x1e4b2b['descriptionFactory']['registerElementLabel'](_0x4c6157=>_0x4c6157['is']('element','table')&&'layout'===_0x4c6157['getAttribute']('tableType'),_0x227836=>At(_0x56b359,'ELEMENT_LAYOUT_TABLE',_0x227836)),_0x1e4b2b['descriptionFactory']['registerDescriptionCallback'](_0x12191b=>{const {data:_0x1c57a}=_0x12191b;if(_0x1c57a&&'tableType'==_0x1c57a['key'])switch(_0x1c57a['newValue']){case'layout':return _0x451f62(At(_0x56b359,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x451f62(At(_0x56b359,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x96581c=>[_0x96581c,null]));class De extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x23999c=this['editor'];if(!_0x23999c['plugins']['has']('TableClipboard'))return;const _0x186e42=_0x23999c['plugins']['get']('TrackChangesEditing'),_0x15e1bb=_0x23999c['plugins']['get']('TableUtils'),_0x2fbd10=_0x23999c['plugins']['get'](Ne),_0x4cae63=_0x23999c['plugins']['get']('TableClipboard'),_0x3d5eac=_0x23999c['plugins']['get']('TableSelection'),_0x1e83f9=_0x23999c['plugins']['get'](ut);_0x2fbd10['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x23999c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x23999c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b8a56=null,_0x51e550=!0x1;_0x1e83f9['on']('contentInsertion',(_0x5b1027,_0x26e830)=>{_0x51e550='paste'===_0x26e830['method'];}),_0x23999c['model']['on']('insertContent',(_0x24e548,_0x478a23)=>{if(!_0x51e550&&null===_0x3d5eac['getSelectedTableCells']())return;const [_0x368d35,_0x465810]=_0x478a23,_0x3f3c53=_0x478a23[_0x478a23['length']-0x1];_0x3f3c53&&_0x3f3c53['forceDefaultExecution']||_0x186e42['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x451f08,_0x1b7c64,_0x2cc44b,_0x1ec680,_0x32f2cc){if(_0x1b7c64&&!_0x1b7c64['is']('documentSelection'))return!0x1;const _0x251d42=_0x32f2cc['getTableIfOnlyTableInContent'](_0x451f08,_0x2cc44b);if(!_0x251d42||!xe(_0x251d42,void 0x0,_0x1ec680))return!0x1;const _0x4fd456=_0x1ec680['getSelectionAffectedTableCells'](_0x2cc44b['document']['selection']);if(!_0x4fd456['length'])return!0x1;const _0x282bab=_0x4fd456[0x0]['findAncestor']('table'),_0x123e1c=_0x1ec680['getRowIndexes'](_0x4fd456),_0x4f1768=_0x1ec680['getColumnIndexes'](_0x4fd456),_0xca3241={'startRow':_0x123e1c['first'],'endRow':_0x123e1c['last'],'startColumn':_0x4f1768['first'],'endColumn':_0x4f1768['last']};return 0x1==_0x4fd456['length']&&(_0xca3241['endRow']+=_0x1ec680['getRows'](_0x251d42)-0x1,_0xca3241['endColumn']+=_0x1ec680['getColumns'](_0x251d42)-0x1),xe(_0x282bab,_0xca3241,_0x1ec680);}(_0x368d35,_0x465810,_0x23999c['model'],_0x15e1bb,_0x4cae63)&&(_0x24e548['stop'](),_0x1b8a56={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x23999c['model']['change'](()=>{_0x23999c['model']['insertContent'](_0x478a23[0x0],_0x478a23[0x1],_0x478a23[0x2],{'forceDefaultExecution':!0x0});const _0x540346=_0x5bdaf9(),{rowInsertionRanges:_0x1f6b9d,columnInsertionRanges:_0x3ff6f2,insertionRanges:_0x43c644,deletionRanges:_0x53ac6f,cells:_0x4360f6}=_0x1b8a56;_0x1f6b9d['length']&&_0x186e42['markMultiRangeInsertion'](_0x1f6b9d,'tablePasteRow',{'tablePasteChainId':_0x540346}),_0x3ff6f2['length']&&_0x186e42['markMultiRangeInsertion'](_0x3ff6f2,'tablePasteColumn',{'tablePasteChainId':_0x540346}),_0x43c644['length']&&(_0x186e42['markMultiRangeInsertion'](_0x43c644,'tablePaste',{'tablePasteChainId':_0x540346,'skipNestingCheck':!0x0}),_0x43c644['forEach'](_0x256a3d=>_0x256a3d['detach']?.())),_0x53ac6f['length']&&(_0x186e42['markMultiRangeDeletion'](_0x53ac6f,'tablePaste',{'tablePasteChainId':_0x540346,'skipNestingCheck':!0x0}),_0x53ac6f['forEach'](_0x427436=>_0x427436['detach']?.()));const _0x83ddfc=_0x186e42['markMultiRangeBlockFormat'](_0x4360f6['map'](({element:_0x5d384c})=>_0x5d384c),{'formatGroupId':_0x5bdaf9()},[],'tablePasteCell',{'tablePasteChainId':_0x540346});if(_0x83ddfc){const _0x15dc7f=_0x83ddfc['getMarkers'](),_0x5c476b=[];for(const {element:_0xf9b369,attributes:_0x480dc1}of _0x4360f6){if(!_0x480dc1)continue;const _0x39e6f1=_0x23999c['model']['createRangeOn'](_0xf9b369),_0x3eb537=_0x15dc7f['find'](_0x41bfcf=>_0x41bfcf['getRange']()['isEqual'](_0x39e6f1));_0x3eb537&&_0x5c476b['push']([_0x3eb537['name'],_0x480dc1]);}_0x5c476b['length']&&_0x83ddfc['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c476b));}_0x1b8a56=null;}));},{'priority':_0x47ef2c['high']+0xa}),_0x1e83f9['on']('contentInsertion',()=>{_0x51e550=!0x1;},{'priority':'lowest'}),_0x23999c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2abbfd,_0x40cc38)=>{const [_0x34f4a0,_0xd50679,,_0x31a1ef]=_0x40cc38;if(!_0x1b8a56)return;_0x2abbfd['stop']();const _0x389172=_0x34f4a0['cell'],_0x5216e6=_0xd50679,_0x4cccb6=ve(_0x389172),_0x339c3f=ve(_0x5216e6);_0x2abbfd['return']=_0x389172;let _0xcf2fbf=null,_0x549cf9=null;if(_0x339c3f||_0x4cccb6){if(_0x4cccb6&&!_0x339c3f){_0x31a1ef['remove'](_0x389172['getChild'](0x0));for(const _0x34728d of Array['from'](_0x5216e6['getChildren']()))_0x31a1ef['insert'](_0x34728d,_0x389172,'end');const _0x526b80=_0x1b8a56['rowInsertionIndexes']['includes'](_0x34f4a0['row']),_0x5f10bc=_0x1b8a56['columnInsertionIndexes']['includes'](_0x34f4a0['column']);_0x526b80||_0x5f10bc||(_0xcf2fbf=_0x2db68d['fromRange'](_0x31a1ef['createRangeIn'](_0x389172)));}else _0x339c3f&&!_0x4cccb6&&(_0x549cf9=_0x31a1ef['createRangeIn'](_0x389172));}else{const _0x2c79ce=_0x31a1ef['createElement']('tableCellSuggestion'),_0x43af06=_0x31a1ef['createElement']('tableCellSuggestion');_0x31a1ef['wrap'](_0x31a1ef['createRangeIn'](_0x389172),_0x43af06),_0x31a1ef['insert'](_0x2c79ce,_0x389172,0x0);for(const _0x3122fa of Array['from'](_0x5216e6['getChildren']()))_0x31a1ef['insert'](_0x3122fa,_0x2c79ce,'end');_0xcf2fbf=_0x2db68d['fromRange'](_0x31a1ef['createRangeOn'](_0x2c79ce)),_0x549cf9=_0x2db68d['fromRange'](_0x31a1ef['createRangeOn'](_0x43af06));}const _0x35a43b=Array['from'](_0x5216e6['getAttributes']())['filter'](([_0x30dff9])=>Be['includes'](_0x30dff9));_0x1b8a56['cells']['push']({'element':_0x389172,'attributes':_0x35a43b['length']?Object['fromEntries'](_0x35a43b):null}),_0xcf2fbf&&_0x1b8a56['insertionRanges']['push'](_0xcf2fbf),_0x549cf9&&_0x1b8a56['deletionRanges']['push'](_0x549cf9);},{'priority':'high'}),_0x15e1bb['on']('insertColumns',(_0x128c5c,_0x945ad9)=>{const [_0x2c3c41,_0xf3256e={}]=_0x945ad9;if(!_0x1b8a56)return;const _0x2661b4=_0xf3256e['at']||0x0,_0x52f226=_0xf3256e['columns']||0x1;_0x1b8a56['columnInsertionIndexes']=new Array(_0x52f226)['fill'](_0x2661b4)['map']((_0x219af7,_0x2597c4)=>_0x219af7+_0x2597c4);for(const {cell:_0x1a9ddf}of _0x15e1bb['createTableWalker'](_0x2c3c41,{'startColumn':_0x2661b4,'endColumn':_0x2661b4+_0x52f226-0x1}))_0x1b8a56['columnInsertionRanges']['push'](_0x23999c['model']['createRangeOn'](_0x1a9ddf));},{'priority':'low'}),_0x15e1bb['on']('insertRows',(_0xbd3d79,_0x47c901)=>{const [_0x583b80,_0x5b6283={}]=_0x47c901;if(!_0x1b8a56)return;const _0x270343=_0x5b6283['at']||0x0,_0x174a4d=_0x5b6283['rows']||0x1;_0x1b8a56['rowInsertionIndexes']=new Array(_0x174a4d)['fill'](_0x270343)['map']((_0x1ed0f5,_0x4e4fc1)=>_0x1ed0f5+_0x4e4fc1);for(const {cell:_0x47ee81}of _0x15e1bb['createTableWalker'](_0x583b80,{'startRow':_0x270343,'endRow':_0x270343+_0x174a4d-0x1}))_0x1b8a56['rowInsertionRanges']['push'](_0x23999c['model']['createRangeOn'](_0x47ee81));},{'priority':'low'}),_0x186e42['descriptionFactory']['registerDescriptionCallback'](_0x129049=>{if(_0x129049['subType']&&_0x129049['subType']['startsWith']('tablePaste'))return _0x129049['previous']?{}:{'type':'insertion','content':At(_0x23999c['locale'],'*Replace\x20table\x20cells*')};});const _0x53a13d=()=>!0x1;for(const _0x9706b3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion',_0x9706b3,'join',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('deletion',_0x9706b3,'join',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9706b3,'join',_0x53a13d);_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e4146,_0x4d888b,_0x149f15)=>{const _0x3f2cce=_0x5e4146['map'](_0x29a66f=>_0x29a66f['getContainedElement']())['filter'](_0x3ec334=>_0x3ec334),_0x698219=new Map(_0x3f2cce['map'](_0x3401bd=>[_0x3401bd,null]));if(_0x1b8a56){for(const {element:_0x157735,attributes:_0x418ac3}of _0x1b8a56['cells'])_0x418ac3&&_0x698219['set'](_0x157735,_0x418ac3);}else{if(_0x149f15&&_0x149f15['markerAttributes'])for(const [_0x16b258,_0xdd9d72]of Object['entries'](_0x149f15['markerAttributes'])){const _0x3f18f5=_0x23999c['model']['markers']['get'](_0x16b258),_0x18660d=_0x3f18f5?_0x3f18f5['getRange']()['getContainedElement']():null;_0x18660d&&_0x698219['set'](_0x18660d,_0xdd9d72);}}_0x23999c['model']['change'](_0x483750=>{for(const [_0x560022,_0x592cd0]of _0x698219)_0x483750['setAttributes']({...Fe,..._0x592cd0},_0x560022);});});const _0x472271=(_0x479ae7,_0x26b037)=>{_0x186e42['_suggestionFactory']['registerCustomCallback'](_0x479ae7,'tablePaste',_0x26b037,(_0x4f757d,_0x395e5e,_0x57f72c)=>{_0x23999c['model']['change'](_0x576b4f=>{const _0x4c9c0a=[];for(const _0xdf1a5c of _0x4f757d){const _0x52808f=_0xdf1a5c['start']['nodeAfter'];_0x52808f['is']('element','tableCellSuggestion')&&_0x4c9c0a['push'](_0x52808f);}_0x186e42['_suggestionFactory']['getSuggestionCallback'](_0x479ae7,null,_0x26b037)(_0x4f757d,_0x395e5e,_0x57f72c);for(const _0x3da763 of _0x4c9c0a)'$graveyard'!=_0x3da763['root']['rootName']&&_0x576b4f['unwrap'](_0x3da763);});});};_0x472271('insertion','accept'),_0x472271('insertion','discard'),_0x472271('deletion','accept'),_0x472271('deletion','discard'),_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59ab94=>{const _0x298f4d=_0x59ab94['map'](_0x172144=>_0x172144['getContainedElement']()),_0xd01ea8=_0x298f4d[0x0]['findAncestor']('table'),{minRow:_0x28f8ac,maxRow:_0x506093}=_0x2fbd10['_getCoordsForCells'](_0x298f4d);_0x15e1bb['removeRows'](_0xd01ea8,{'at':_0x28f8ac,'rows':_0x506093-_0x28f8ac+0x1});}),_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b1506=>{const _0x5b10e2=_0x1b1506['map'](_0x188e29=>_0x188e29['getContainedElement']()),_0x386d21=_0x5b10e2[0x0]['findAncestor']('table'),{minColumn:_0x2401ca,maxColumn:_0x17af4f}=_0x2fbd10['_getCoordsForCells'](_0x5b10e2);_0x15e1bb['removeColumns'](_0x386d21,{'at':_0x2401ca,'columns':_0x17af4f-_0x2401ca+0x1});});const _0x4280db=(_0x3b2143,_0x29489a)=>{if(!_0x29489a['subType']||!_0x29489a['subType']['startsWith']('tablePaste'))return;const _0x41ae87=_0x29489a['attributes']['tablePasteChainId'],_0x473158=_0x186e42['getSuggestions']()['filter'](_0x266e8e=>_0x266e8e['isInContent']&&_0x266e8e['attributes']&&_0x266e8e['attributes']['tablePasteChainId']==_0x41ae87);_0x473158['length']&&_0x29489a['getAllAdjacentSuggestions']()['length']!=_0x473158['length']&&_0x473158['reduce']((_0x323c91,_0x1588c5)=>(_0x323c91['next']=_0x1588c5,_0x1588c5['previous']=_0x323c91,_0x1588c5));};function _0x436657(_0x4f3afc,_0x3701c1=!0x0){const {id:_0x302400,authorId:_0x2a2232}=_0x4e67eb(_0x4f3afc['markerName']),_0x267a42=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c1064=_0x186e42['activeMarkers']['includes'](_0x4f3afc['markerName']);return _0x5c1064&&_0x267a42['push']('ck-suggestion-marker--active'),{'classes':_0x267a42,'attributes':{'data-suggestion':_0x302400,'data-author-id':_0x2a2232},'priority':_0x5c1064&&_0x3701c1?0xbc2:0xbb8};}_0x186e42['on']('suggestionLoaded',_0x4280db,{'priority':'high'}),_0x186e42['on']('suggestionUnloaded',_0x4280db,{'priority':'high'}),_0x23999c['model']['document']['registerPostFixer'](()=>{let _0x3aef4f=!0x1;const _0x2f26ff=Array['from'](_0x23999c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31f2e5,data:_0x2aa878}of _0x2f26ff){const {group:_0x33519a,type:_0xd4c018,id:_0x4ff278}=_0x4e67eb(_0x31f2e5);if('suggestion'!=_0x33519a||'deletion'!=_0xd4c018||_0x2aa878['oldRange'])continue;if(!_0x186e42['hasSuggestion'](_0x4ff278))continue;const _0x2ab6b4=_0x186e42['getSuggestion'](_0x4ff278)['getRanges'](),_0x47cf83=_0x23999c['plugins']['get']('Users')['me'];for(const _0x4a2569 of _0x186e42['getSuggestions']()){if(!_0x4a2569['isInContent']||_0x4a2569['author']!=_0x47cf83)continue;if('formatBlock'!=_0x4a2569['type']||'tablePasteCell'!=_0x4a2569['subType'])continue;if(_0x4a2569['getRanges']()['every'](_0x3ee2ae=>_0x2ab6b4['some'](_0x25b5ae=>_0x25b5ae['containsRange'](_0x3ee2ae,!0x0)))){for(const _0x38c35e of _0x4a2569['getAllAdjacentSuggestions']())_0x38c35e['isInContent']&&(_0x38c35e['discard'](),_0x3aef4f=!0x0);}}}return _0x3aef4f;}),_0x23999c['model']['document']['registerPostFixer'](_0x4d35d4=>{const _0x487041=_0x23999c['commands']['get']('redo');if(!_0x487041||!_0x487041['_createdBatches']['has'](_0x4d35d4['batch']))return!0x1;let _0x45b7b4=!0x1;const _0x348415=_0x23999c['plugins']['get']('Users')['me'],_0x560366=_0x23999c['model']['document']['differ']['getChanges'](),_0xfbba4c=Array['from'](_0x23999c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x310316,data:_0x4c66f6})=>{const {group:_0x21bc59,subType:_0x545dac,authorId:_0x145e80}=_0x4e67eb(_0x310316);return'suggestion'==_0x21bc59&&'tablePaste'==_0x545dac&&_0x145e80==_0x348415['id']&&!_0x4c66f6['oldRange'];});for(const _0x462f74 of _0x560366){if('insert'!=_0x462f74['type']||'tableCellSuggestion'!=_0x462f74['name']||0x1!=_0x462f74['length'])continue;const _0x4b59a7=_0x4d35d4['createRange'](_0x462f74['position'],_0x462f74['position']['getShiftedBy'](0x1));if(!_0xfbba4c['find'](({data:_0x1e0ee9})=>_0x1e0ee9['newRange']['isEqual'](_0x4b59a7))){for(const {name:_0x53e1ae,data:_0x3c8b76}of _0xfbba4c)if(_0x4b59a7['containsRange'](_0x3c8b76['newRange'])){_0x4d35d4['updateMarker'](_0x53e1ae,{'range':_0x4b59a7}),_0x45b7b4=!0x0;break;}}}return _0x45b7b4;}),_0x23999c['model']['document']['registerPostFixer'](_0x2fcaa3=>{let _0x19afe9=!0x1;const _0x1fcf31=_0x23999c['plugins']['get']('Users')['me'],_0x390d1a=_0x186e42['getSuggestions']()['filter'](_0x2b73fe=>_0x2b73fe['isInContent']&&_0x2b73fe['author']==_0x1fcf31),_0x150219=new Set(),_0xc5ffad=new Set();for(const _0x380025 of _0x390d1a)if('tablePaste'==_0x380025['subType'])for(const _0x295091 of _0x380025['getMarkers']()){const _0x57b021=_0x295091['getRange']()['getContainedElement']();if(_0x57b021){if(_0x57b021['is']('element','tableCellSuggestion')&&ve(_0x57b021)){_0x380025['removeMarker'](_0x295091['name']),_0x150219['add'](_0x57b021),_0x19afe9=!0x0;const _0x5dc8af=_0x57b021['nextSibling'],_0x21e60e=_0x57b021['previousSibling'],_0x4992f7=_0x5dc8af&&_0x5dc8af['is']('element','tableCellSuggestion'),_0x263353=_0x21e60e&&_0x21e60e['is']('element','tableCellSuggestion');_0x4992f7&&!_0x150219['has'](_0x5dc8af)&&_0xc5ffad['add'](_0x5dc8af),_0x263353&&!_0x150219['has'](_0x21e60e)&&_0xc5ffad['add'](_0x21e60e);}else _0x57b021['is']('element','paragraph')&&_0x57b021['isEmpty']&&(_0x380025['removeMarker'](_0x295091['name']),_0x19afe9=!0x0);}}else{if('tablePasteCell'==_0x380025['subType']){if(!_0x380025['attributes']||!_0x380025['attributes']['tablePasteChainId'])continue;const _0x46315f=_0x380025['attributes']['markerAttributes'];if(_0x46315f&&Object['keys'](_0x46315f)['length'])continue;const _0x184e4c=_0x380025['attributes']['tablePasteChainId'];let _0x3189be=!0x0,_0x43a9ce=!0x0;for(const _0x455982 of _0x390d1a)if(_0x455982['subType']&&_0x455982['subType']['startsWith']('tablePaste')){if(!_0x455982['attributes']['tablePasteChainId']){_0x43a9ce=!0x1;break;}if(_0x455982['id']!=_0x380025['id']&&_0x455982['attributes']['tablePasteChainId']==_0x184e4c){_0x3189be=!0x1;break;}}_0x43a9ce&&_0x3189be&&(_0x380025['removeMarkers'](),_0x19afe9=!0x0);}}for(const _0xc86a19 of _0x150219)_0x2fcaa3['remove'](_0xc86a19);for(const _0x3be401 of _0xc5ffad)_0x2fcaa3['unwrap'](_0x3be401);return _0x19afe9;}),_0x23999c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x270630=>_0x436657(_0x270630),'converterPriority':'high'}),_0x23999c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x8dd9f7,_0x42188b)=>_0x42188b['options']['showSuggestionHighlights']?_0x436657(_0x8dd9f7,!0x1):null,'converterPriority':'high'});const _0x521670=_0x23999c['editing']['view'];this['listenTo'](_0x521670['document'],'clipboardOutput',(_0x8d6d45,_0x576259)=>{const _0x55d2b9=[];for(const _0x5bc2f7 of _0x521670['createRangeIn'](_0x576259['content'])['getItems']())_0x5bc2f7['is']('element','suggestion-td')&&_0x55d2b9['push'](_0x5bc2f7);_0x521670['change'](_0x3b74d4=>{for(const _0x206c4f of _0x55d2b9)_0x3b74d4['move'](_0x3b74d4['createRangeIn'](_0x206c4f),_0x3b74d4['createPositionBefore'](_0x206c4f)),_0x3b74d4['remove'](_0x206c4f);});});}}function ve(_0xb9fb6c){if(_0xb9fb6c['isEmpty'])return!0x0;const _0x5d5c62=_0xb9fb6c['getChild'](0x0);return _0x5d5c62['is']('element','paragraph')&&_0x5d5c62['isEmpty'];}function xe(_0x553b57,_0x3f2cb5={},_0x281407){for(const {isAnchor:_0x474361,cellHeight:_0x14afc1,cellWidth:_0x547edc}of _0x281407['createTableWalker'](_0x553b57,{'includeAllSlots':!0x0,..._0x3f2cb5}))if(!_0x474361||0x1!=_0x14afc1||0x1!=_0x547edc)return!0x1;return!0x0;}class Pe extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14160d=this['editor']['plugins']['get']('TrackChangesEditing');_0x14160d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14160d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14160d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14160d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14160d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14160d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x90b54c,_0x34be6a){const _0xadd198=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177811=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d21ae=_0x34be6a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd4006f=_0x177811['getColumnGroupElement'](_0x4d21ae);let _0x324981=_0xd4006f?_0x177811['getTableColumnsWidths'](_0xd4006f):null,_0x1c7255=_0x4d21ae['getAttribute']('tableWidth')||null;const _0x2a4851=_0x34be6a['tableWidth']||_0x1c7255,_0x235cdc=_0x34be6a['columnWidths']||_0x324981,_0x18eb2b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f272f of _0xadd198['getSuggestions']()){const _0x57204a=_0x4f272f['getContainedElement']();if('resizeTable'===_0x4f272f['subType']&&_0x57204a===_0x4d21ae){_0x4f272f['author']!==_0x18eb2b&&_0x4f272f['discard']();const _0x5cf124=_0x4f272f['data']['commandParams'];_0x1c7255=_0x5cf124[0x0]['tableWidth'],_0x324981=_0x5cf124[0x0]['columnWidths'];break;}}_0x90b54c({'table':_0x4d21ae,'tableWidth':_0x2a4851,'columnWidths':_0x235cdc}),_0xadd198['markBlockFormat'](_0x4d21ae,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c7255,'columnWidths':_0x324981}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2253fb){if('formatBlock'!=_0x2253fb['type']&&'formatInline'!=_0x2253fb['type'])return;const {data:_0x1b16b4}=_0x2253fb;if(_0x1b16b4&&'resizeTable'===_0x1b16b4['formatGroupId']){const _0x15e3e6='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x15e3e6)};}}}class Ue extends _0x40e6e8{['afterInit'](){const _0x2b7c48=this['editor'];_0x2b7c48['plugins']['has']('Template')&&_0x2b7c48['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x40e6e8{['afterInit'](){const _0x41f247=this['editor'];if(!_0x41f247['commands']['get']('insertTableOfContents'))return;_0x41f247['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f9ffb=_0x41f247['plugins']['get']('TrackChangesEditing'),_0x1c83df=_0x41f247['locale'];_0x1f9ffb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ce8e6=>At(_0x1c83df,'ELEMENT_TABLE_OF_CONTENTS',_0x3ce8e6));}}class He extends _0x40e6e8{['afterInit'](){const _0x283ea5=this['editor'];if(!_0x283ea5['plugins']['has']('Title'))return;_0x283ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x283ea5['locale'],'ELEMENT_TITLE')),_0x283ea5['model']['document']['registerPostFixer'](_0x4a64d6=>{let _0xa68e99=!0x1;const _0x14882f=Array['from'](_0x283ea5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53e120,data:_0x5d07b7}of _0x14882f){const {group:_0x3d8f47}=_0x4e67eb(_0x53e120);if('suggestion'!==_0x3d8f47||!_0x5d07b7['newRange'])continue;const _0x371c63=_0x5d07b7['newRange'],_0x4c8067=_0x371c63['end']['nodeBefore'];if(!_0x4c8067||!_0x4c8067['is']('element','title-content'))continue;if(!_0x371c63['start']['isTouching'](_0x371c63['end']))continue;const _0x2f6c04=_0x283ea5['model']['schema']['getNearestSelectionRange'](_0x371c63['end'],'forward');if(_0x2f6c04&&_0x2f6c04['isCollapsed']){const _0x5d4f71=_0x4a64d6['createRange'](_0x371c63['start'],_0x2f6c04['start']);_0x5d4f71['isEqual'](_0x371c63)||(_0x4a64d6['updateMarker'](_0x53e120,{'range':_0x5d4f71}),_0xa68e99=!0x0);}_0xa68e99||(_0x4a64d6['removeMarker'](_0x53e120),_0xa68e99=!0x0);}return _0xa68e99;});}}class $e extends _0x40e6e8{['afterInit'](){const _0x4af368=this['editor'],_0x4e80d9=_0x4af368['plugins']['get']('TrackChangesEditing');_0x4af368['plugins']['has']('Uploadcare')&&(_0x4e80d9['enableCommand']('uploadcare'),_0x4af368['plugins']['has']('UploadcareImageEdit')&&(_0x4e80d9['enableCommand']('uploadcareImageEdit'),_0x4e80d9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e80d9['descriptionFactory']['registerDescriptionCallback'](_0x251748=>{if('attribute'!=_0x251748['type'])return;const {data:_0x2c41b9}=_0x251748;return _0x2c41b9&&'uploadcareImageId'==_0x2c41b9['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x40e6e8{['afterInit'](){const _0x35c0ab=this['editor'],_0x3b2703=_0x35c0ab['plugins']['get']('TrackChangesEditing');_0x35c0ab['plugins']['has']('UndoEditing')&&(_0x3b2703['enableCommand']('undo'),_0x3b2703['enableCommand']('redo'));}}class Ve extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x553c12=this['editor'];if(!_0x553c12['plugins']['has']('TableCaptionEditing'))return;_0x553c12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x40e6e8{['tableProperties'];['tableCellProperties'];constructor(_0x1e5a13){super(_0x1e5a13),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 _0x11e282=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x262b53 of this['tableProperties'])_0x11e282['enableCommand'](_0x262b53,(_0x138520,_0x35465f)=>{const _0x4d727f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x262b53,[_0x4d727f],this['tableProperties'],'tableProperties',_0x138520,_0x35465f);});_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11e282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xbc9cb4,_0x134922)=>this['handleDiscardAction'](this['tableProperties'],_0xbc9cb4,_0x134922)),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15e582 of this['tableCellProperties'])this['editor']['commands']['get'](_0x15e582)&&_0x11e282['enableCommand'](_0x15e582,(_0x181768,_0x5c3f8b)=>{const _0x5bdbc9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15e582,_0x5bdbc9,this['tableCellProperties'],'tableCellProperties',_0x181768,_0x5c3f8b);});_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11e282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3c563e,_0x1c196d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3c563e,_0x1c196d)),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x11e282['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x11e282['descriptionFactory']['registerDescriptionCallback'](_0x430b86=>this['handleSuggestionDescription'](_0x430b86)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4f7eec,_0x4f56ff,_0x4a64fb,_0x5e0b3f,_0x5f49b0,_0x266754){const _0x2efee0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x266754['batch'],()=>{for(const _0x4cf94f of _0x4f56ff){if(this['_getSuggestion'](_0x4cf94f,_0x5e0b3f))_0x5f49b0(_0x266754);else{const _0x1b8fd3={};for(const _0xedb36 of _0x4a64fb){const _0xdc6ad4=_0x4cf94f['getAttribute'](_0xedb36);void 0x0!==_0xdc6ad4&&(_0x1b8fd3[_0xedb36]=_0xdc6ad4);}_0x5f49b0(_0x266754),_0x2efee0['markBlockFormat'](_0x4cf94f,{'commandParams':[_0x1b8fd3]},[],_0x5e0b3f);}}});}['handleDiscardAction'](_0x37d867,_0x51e6ed,_0x41edc0){const _0x2bdb4d=_0x51e6ed[0x0]['start']['nodeAfter'],_0x584623=_0x41edc0['commandParams'][0x0];this['editor']['model']['change'](_0x5853f9=>{for(const _0x2215cd of _0x37d867)void 0x0!==_0x584623[_0x2215cd]?_0x5853f9['setAttribute'](_0x2215cd,_0x584623[_0x2215cd],_0x2bdb4d):_0x5853f9['removeAttribute'](_0x2215cd,_0x2bdb4d);});}['handleSuggestionDescription'](_0x3ef4b){if(_0x3ef4b['data'])switch(_0x3ef4b['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1aa6e5,_0x4f6674){const _0x399b98=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c00cf of _0x399b98['getSuggestions']({'skipNotAttached':!0x0})){const _0x3aee72=_0x4c00cf['getContainedElement']();if(_0x4c00cf['subType']===_0x4f6674&&_0x3aee72===_0x1aa6e5)return _0x4c00cf;}return null;}['_registerTablePropertiesAttributes'](){const _0x1df89c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x822908=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x73d373 of _0x822908){const _0x2f4632=_0x73d373['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1df89c['descriptionFactory']['registerAttributeLabel'](_0x73d373,At(this['editor']['locale'],'FORMAT_'+_0x2f4632));}}}class ze extends _0x40e6e8{['afterInit'](){const _0x37a2d1=this['editor'];if(!_0x37a2d1['plugins']['has']('LineHeight'))return;const _0x11055e=_0x37a2d1['plugins']['get']('TrackChangesEditing'),_0x1c9f6c=_0x37a2d1['locale'];_0x11055e['enableDefaultAttributesIntegration']('lineHeight'),_0x11055e['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x1c9f6c,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x40e6e8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xfd6006,_0x6f2dbb,_0x28a6ab,_0xcf9ddf,_0x5e953e,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x155ad1){super(_0x155ad1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e7362,_0x5ac44e,_0x52cfec,_0x10b678)=>{this['_model']['change'](()=>{for(const _0x953a6e of[..._0x10b678,..._0x52cfec])this['_model']['markers']['has'](_0x953a6e)&&_0x155ad1['editing']['reconvertMarker'](_0x953a6e);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x155ad1['plugins']['get'](_0xfd6006),this['_suggestionsConversion']=_0x155ad1['plugins']['get'](_0x6f2dbb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x155ad1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x155ad1['config']['get']('trackChanges.trackFormatChanges'),_0x155ad1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x155ad1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x155ad1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27909e=this['editor'];_0x27909e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10d9ef,{writer:_0x2adb3a})=>{let _0x528db0='suggestion:'+_0x10d9ef['getAttribute']('suggestion-type')+':'+_0x10d9ef['getAttribute']('id');return _0x10d9ef['getAttribute']('marker-count')&&(_0x528db0+=':'+_0x10d9ef['getAttribute']('marker-count')),_0x2adb3a['createElement']('$marker',{'data-name':_0x528db0});}}),_0x27909e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27909e['model']['document']['registerPostFixer'](_0x5911b4=>{let _0x3f33b8=!0x1;const _0x4eb390=Array['from'](_0x27909e['model']['document']['differ']['getChangedMarkers']()),_0x4724b6=new Set();for(const {name:_0x43c499,data:_0x2dc0df}of _0x4eb390){const {group:_0x48e7b2,type:_0x4c8af4,subType:_0x1010a9,id:_0xd8064b}=_0x4e67eb(_0x43c499);if('suggestion'!==_0x48e7b2)continue;const _0x55cd0f=_0x1010a9?'suggestion:'+_0x4c8af4+':'+_0x1010a9+':'+_0xd8064b:'suggestion:'+_0x4c8af4+':'+_0xd8064b,_0x3abf03=_0x27909e['model']['markers']['getMarkersGroup'](_0x55cd0f),_0x3b3e67=_0x27909e['model']['markers']['get'](_0x43c499),_0x2f633a=this['_suggestions']['get'](_0xd8064b);if(null!=_0x2dc0df['newRange']){'formatInline'==_0x4c8af4&&(_0x3f33b8=_0x3f33b8||Ze(_0x2dc0df['newRange'],_0x43c499,_0x5911b4,_0x27909e['model']['schema']));const _0x3bdf78='attribute'==_0x4c8af4&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x1010a9)),_0x8e90e0='attribute'==_0x4c8af4&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x1010a9));if(_0x2dc0df['newRange']['isCollapsed']||'$graveyard'==_0x2dc0df['newRange']['root']['rootName']||'formatBlock'==_0x4c8af4&&!tn(_0x2dc0df['newRange'])||_0x3bdf78&&!tn(_0x2dc0df['newRange'])||_0x8e90e0&&en(_0x2dc0df['newRange'])||'deletion'==_0x4c8af4&&en(_0x2dc0df['newRange'])||_0x3b3e67&&nn(_0x3b3e67,_0x3abf03))_0x5911b4['removeMarker'](_0x43c499),_0x3f33b8=!0x0;else{if(!_0x2f633a||!_0x2f633a['isInContent'])continue;if(_0x2dc0df['newRange']&&_0x2dc0df['oldRange']&&_0x2dc0df['newRange']['isEqual'](_0x2dc0df['oldRange']))continue;_0x4724b6['add'](_0x2f633a);}}}return _0x4724b6['size']>0x0&&(_0x3f33b8=!!this['_joinWithAdjacentSuggestions'](_0x4724b6)||_0x3f33b8),_0x3f33b8;}),_0x27909e['model']['document']['registerPostFixer'](_0x30d0aa=>{let _0x5f0019=!0x1;for(const _0x5e4d57 of _0x27909e['model']['document']['differ']['getChanges']())if('insert'==_0x5e4d57['type'])for(const _0x4fec9a of this['_suggestions']['values']()){if(_0x4fec9a['isMultiRange']||!_0x4fec9a['isInContent'])continue;const _0x5ae1cc='formatBlock'==_0x4fec9a['type'],_0x5f5d08=this['_getAttributeKey'](_0x4fec9a),_0x523ee9=_0x5f5d08&&this['_suggestionsConversion']['isBlockAttribute'](_0x5f5d08);if(!_0x5ae1cc&&!_0x523ee9)continue;const _0xb3daa5=_0x4fec9a['getFirstRange']();if(_0xb3daa5['start']['parent']!=_0xb3daa5['end']['parent']&&!_0xb3daa5['end']['isAtEnd']){const _0x72fc38=_0x27909e['model']['createPositionAt'](_0xb3daa5['start']['nodeAfter'],'end'),_0x56fc2d=_0x27909e['model']['createRange'](_0xb3daa5['start'],_0x72fc38);_0x30d0aa['updateMarker'](_0x4fec9a['getFirstMarker'](),{'range':_0x56fc2d}),_0x5f0019=!0x0;}}return _0x5f0019;}),_0x27909e['model']['document']['registerPostFixer'](_0x597667=>this['_processAttributeChanges'](_0x597667)),_0x27909e['model']['document']['registerPostFixer'](_0x45106f=>!_0x45106f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x45106f)),_0x27909e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27909e['model']['document']['on']('change:data',(_0x41d1c9,_0x1f90ff)=>{if(!_0x1f90ff['isLocal']||_0x1f90ff['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x418f35=_0x27909e['model']['document']['differ']['getChanges']();if(0x0==_0x418f35['length'])return;const _0x21b2ad=[],_0x52de4f=_0x418f35['filter'](_0x12fec1=>'attribute'==_0x12fec1['type']),_0x3830cd=_0x418f35['filter'](_0x427991=>'insert'==_0x427991['type']&&'$text'!=_0x427991['name']);for(const _0x80f98e of _0x52de4f)this['_suggestionsConversion']['isRegisteredAttribute'](_0x80f98e['attributeKey'])&&_0x21b2ad['push']({'key':_0x80f98e['attributeKey'],'newValue':_0x80f98e['attributeNewValue'],'oldValue':_0x80f98e['attributeOldValue'],'range':sn(_0x80f98e['range'],_0x27909e['model'])});for(const _0x367a37 of _0x3830cd){if('rename'!=_0x367a37['action']&&'refresh'!=_0x367a37['action'])continue;const _0x1d710f=rn(_0x367a37['position']['nodeAfter'],_0x27909e['model']),_0x501cee=_0x367a37['before'];'rename'==_0x367a37['action']&&_0x21b2ad['push']({'key':Ke,'newValue':_0x367a37['name'],'oldValue':_0x501cee['name'],'range':_0x1d710f});for(const [_0x4b406c,_0x35268f]of _0x501cee['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b406c))continue;const _0x5501a1=_0x367a37['attributes']['get'](_0x4b406c);_0x35268f!==_0x5501a1&&_0x21b2ad['push']({'key':_0x4b406c,'newValue':_0x5501a1,'oldValue':_0x35268f,'range':_0x1d710f});}for(const [_0x503154,_0x1d7ea9]of _0x367a37['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x503154)&&(_0x501cee['attributes']['has'](_0x503154)||_0x21b2ad['push']({'key':_0x503154,'newValue':_0x1d7ea9,'oldValue':null,'range':_0x1d710f}));}0x0!=_0x21b2ad['length']&&_0x27909e['model']['enqueueChange'](_0x1f90ff,_0x15064a=>{const _0x388bcc=_0x5bdaf9();for(const {range:_0x22c3c1,key:_0x19e755,oldValue:_0x58c5e4,newValue:_0x479fa9}of _0x21b2ad)this['markAttributeChange'](_0x22c3c1,_0x19e755,_0x58c5e4,_0x479fa9,{'groupId':_0x388bcc});this['_reduceExistingSuggestions'](_0x15064a,_0x21b2ad);});},{'priority':'lowest'}),_0x27909e['model']['markers']['on']('update:suggestion',(_0x39eeae,_0x1fceee,_0x4b0d5f)=>{if(null==_0x4b0d5f){const {id:_0x48503f}=_0x4e67eb(_0x1fceee['name']),_0x157e01=this['_suggestions']['get'](_0x48503f);_0x157e01&&_0x157e01['addMarkerName'](_0x1fceee['name']);}}),_0x27909e['model']['document']['on']('change:data',()=>{const _0x5c81c5=Array['from'](_0x27909e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3faa93=>'suggestion'===_0x4e67eb(_0x3faa93['name'])['group']);if(0x0===_0x5c81c5['length'])return;_0x5c81c5['sort']((_0x559b40,_0x550c7b)=>{const _0x1ae666=_0x559b40['data']['oldRange'],_0xa6c0a8=_0x550c7b['data']['oldRange'];return null===_0x1ae666&&null===_0xa6c0a8?0x0:null===_0x1ae666&&null!==_0xa6c0a8?-0x1:null!==_0x1ae666&&null===_0xa6c0a8?0x1:_0x1ae666['start']['isBefore'](_0xa6c0a8['start'])?-0x1:0x1;});const _0x458bd6=new Set(),_0x18b579=new Set();for(const {name:_0x1d8192,data:_0x5b65e5}of _0x5c81c5){const {id:_0x3d6e23}=_0x4e67eb(_0x1d8192);if(null===_0x5b65e5['oldRange']){const _0x3d20ef=this['_handleNewSuggestionMarker'](_0x1d8192);_0x18b579['add'](_0x3d20ef);}else{const _0x238f76=this['_suggestions']['get'](_0x3d6e23);null!==_0x5b65e5['newRange']||_0x238f76['isInContent']?(_0x458bd6['add'](_0x238f76['head']),_0x18b579['add'](_0x238f76)):this['_removeSuggestion'](_0x238f76);}}_0x18b579['size']>0x0&&this['_refreshSuggestionsChain'](_0x18b579);for(const _0x4ca10f of _0x458bd6)this['fire']('suggestionChanged',_0x4ca10f);}),_0x27909e['model']['on']('applyOperation',(_0x3c77cd,_0x489e92)=>{const _0x1f97c1=_0x489e92[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f97c1['isDocumentOperation'])return;if(_0x1f97c1['batch']['isUndo']||!_0x1f97c1['batch']['isLocal'])return;let _0x427512,_0x13a056;switch(_0x1f97c1['type']){case'insert':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['position']),_0x13a056=_0x427512['getShiftedBy'](_0x1f97c1['howMany']);break;case'split':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['splitPosition']),_0x13a056=_0x27909e['model']['createPositionAt'](_0x1f97c1['moveTargetPosition']);break;case'move':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['targetPosition']),_0x13a056=_0x427512['getShiftedBy'](_0x1f97c1['howMany']);break;default:return;}const _0x40959e=_0x27909e['model']['createRange'](_0x427512,_0x13a056);_0x27909e['model']['change'](()=>{for(const {suggestion:_0x90c65d,meta:_0x3e3020}of this['_findSuggestions'](_0x40959e)){if(_0x90c65d['isMultiRange'])continue;if('formatInline'==_0x90c65d['type'])continue;const _0x1cb1b1=this['_getAttributeKey'](_0x90c65d);if(_0x1cb1b1&&this['_suggestionsConversion']['isBlockAttribute'](_0x1cb1b1)&&'split'!=_0x1f97c1['type'])continue;const _0x2b3c95=_0x90c65d['data']&&_0x90c65d['data']['multipleBlocks'];('formatBlock'!=_0x90c65d['type']||'split'==_0x1f97c1['type']&&!_0x2b3c95)&&(_0x3e3020['containsRangeInObject']||'insertion'==_0x90c65d['type']&&_0x3e3020['isOwn']||_0x90c65d['getFirstRange']()['containsRange'](_0x40959e)&&this['_breakSuggestionMarker'](_0x90c65d,_0x427512,_0x13a056));}});},{'priority':'lowest'}),_0x27909e['model']['on']('deleteContent',(_0x4773c,_0x1ff9e1)=>{const _0x38064e=_0x1ff9e1[0x0],_0x3a22a3=_0x1ff9e1[0x1];if(_0x3a22a3&&_0x3a22a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38064e['isCollapsed'])return;const _0x34a851=_0x27909e['model']['schema'],{start:_0x5db943,end:_0x2b4564}=_0x38064e['getFirstRange'](),_0x1d83fa=_0x5db943['nodeAfter']&&_0x34a851['isLimit'](_0x5db943['nodeAfter'])?null:_0x34a851['getNearestSelectionRange'](_0x5db943,'forward'),_0x530a74=_0x2b4564['nodeBefore']&&_0x34a851['isLimit'](_0x2b4564['nodeBefore'])?null:_0x34a851['getNearestSelectionRange'](_0x2b4564,'backward'),_0x19b2ce=_0x27909e['model']['createRange'](_0x1d83fa?_0x1d83fa['start']:_0x5db943,_0x530a74?_0x530a74['end']:_0x2b4564);_0x27909e['model']['change'](_0x1b16bb=>{this['markDeletion'](_0x19b2ce);const _0x249f8b=_0x27909e['model']['schema']['getNearestSelectionRange'](_0x19b2ce['start']);_0x38064e['is']('documentSelection')?_0x1b16bb['setSelection'](_0x249f8b):_0x38064e['setTo'](_0x249f8b);}),_0x4773c['stop']();},{'priority':_0x47ef2c['normal']+0xa}),_0x27909e['model']['on']('insertContent',(_0xbd4312,_0x14b175)=>{const _0x1d3cb4=_0x14b175[_0x14b175['length']-0x1];_0x1d3cb4&&_0x1d3cb4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27909e['model']['change'](()=>{let _0x4c04c2=_0x27909e['model']['insertContent'](_0x14b175[0x0],_0x14b175[0x1],_0x14b175[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c04c2)return;_0xbd4312['return']=_0x4c04c2['clone']();const _0x3ef7a6=_0x4c04c2['end']['nodeBefore'],_0x6a1edc=_0x27909e['model']['schema'];_0x3ef7a6&&_0x6a1edc['isBlock'](_0x3ef7a6)&&!_0x6a1edc['isObject'](_0x3ef7a6)&&(_0x4c04c2=_0x27909e['model']['createRange'](_0x4c04c2['start'],_0x27909e['model']['createPositionAt'](_0x3ef7a6,'end'))),this['markInsertion'](_0x4c04c2);}),_0xbd4312['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xa64cb7=new dt(_0x27909e,this['_suggestions']);_0x27909e['commands']['add']('acceptSuggestion',_0xa64cb7),this['enableCommand']('acceptSuggestion');const _0x5e1403=new ft(_0x27909e,this['_suggestions']);_0x27909e['commands']['add']('discardSuggestion',_0x5e1403),this['enableCommand']('discardSuggestion'),_0x27909e['commands']['add']('acceptAllSuggestions',new Lt(_0x27909e,_0xa64cb7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27909e['commands']['add']('discardAllSuggestions',new Lt(_0x27909e,_0x5e1403,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27909e['commands']['add']('acceptSelectedSuggestions',new It(_0x27909e,_0xa64cb7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27909e['commands']['add']('discardSelectedSuggestions',new It(_0x27909e,_0x5e1403,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1d4a8b=_0x27909e['plugins']['get'](_0xfd6006);this['listenTo'](_0x1d4a8b,'addComment',(_0x119e38,{threadId:_0x46c0de})=>{const _0x57306d=this['_suggestions']['get'](_0x46c0de);_0x57306d&&_0x57306d['commentThread']&&0x1===_0x57306d['commentThread']['length']&&this['_updateSuggestionData'](_0x46c0de,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1d4a8b,'removeComment',(_0x3701dd,{threadId:_0x3108d0})=>{const _0x2eb79d=this['_suggestions']['get'](_0x3108d0);_0x2eb79d&&_0x2eb79d['commentThread']&&!_0x2eb79d['commentThread']['length']&&this['_updateSuggestionData'](_0x3108d0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x38512e){const _0x21d511=_0x4f729a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x87f8a7=0x3d8d0df,_0x137c2e=0x3df592f^_0x87f8a7,_0x2275f3=window[_0x4f729a([0x44,0x61,0x74,0x65])][_0x4f729a([0x6e,0x6f,0x77])](),_0x351ac2=_0x38512e[_0x4f729a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50024d=new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c360=>{_0x351ac2[_0x4f729a([0x6f,0x6e,0x63,0x65])](_0x4f729a([0x72,0x65,0x61,0x64,0x79]),_0x36c360);}),_0x2884a8={[_0x4f729a([0x6b,0x74,0x79])]:_0x4f729a([0x45,0x43]),[_0x4f729a([0x75,0x73,0x65])]:_0x4f729a([0x73,0x69,0x67]),[_0x4f729a([0x63,0x72,0x76])]:_0x4f729a([0x50,0x2d,0x32,0x35,0x36]),[_0x4f729a([0x78])]:_0x4f729a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4f729a([0x79])]:_0x4f729a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4f729a([0x61,0x6c,0x67])]:_0x4f729a([0x45,0x53,0x32,0x35,0x36])},_0x4e5331=_0x351ac2[_0x4f729a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f729a([0x67,0x65,0x74])](_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f840(){let _0x3d9340,_0xe9084b=null,_0x184c49=null;try{if(_0x4e5331==_0x4f729a([0x47,0x50,0x4c]))return _0x4f729a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d9340=_0x3f367d(),!_0x3d9340)return _0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d9340[_0x4f729a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184c49=_0x3a0a2b(_0x3d9340[_0x4f729a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d9340[_0x4f729a([0x6a,0x74,0x69])])),await _0x37b3ea()?_0x2d5f57()?_0x5f21b5()?_0x4f729a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b88f6()?(_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f729a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe9084b=_0x3648fe(_0x4f729a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15632a()):_0x4f729a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f729a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f21b5(){const _0x151bfa=[_0x4f729a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f729a([0x74,0x72,0x69,0x61,0x6c])][_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2275f3/0x3e8:0xe10*_0x137c2e;return _0x3d9340[_0x4f729a([0x65,0x78,0x70])]<_0x151bfa;}function _0x2d5f57(){const _0x4461fd=_0x3d9340[_0x4f729a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4461fd)return!0x1;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x2a])))return!0x0;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x54,0x43])))return!0x0;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x52,0x54,0x43]))){if(_0x4bce7f())return!0x0;if(_0x1187be()||_0x158db9())return!0x0;}return!0x1;}function _0x4b88f6(){const _0x5aa734=_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aa734||0x0==_0x5aa734[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x504bc4}=new URL(window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aa734[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504bc4))return!0x0;const _0x4ff476=_0x504bc4[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e]));return _0x5aa734[_0x4f729a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b6546=>_0x5b6546[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x2a])))[_0x4f729a([0x6d,0x61,0x70])](_0x1a8254=>_0x1a8254[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e])))[_0x4f729a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361f63=>_0x361f63[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ff476[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f729a([0x6d,0x61,0x70])](_0xfd5c27=>Array(_0x4ff476[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd5c27[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f729a([0x66,0x69,0x6c,0x6c])](_0xfd5c27[0x0]===_0x4f729a([0x2a])?_0x4f729a([0x2a]):'')[_0x4f729a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd5c27))[_0x4f729a([0x73,0x6f,0x6d,0x65])](_0x218e26=>_0x4ff476[_0x4f729a([0x65,0x76,0x65,0x72,0x79])]((_0x5ce158,_0x5d597f)=>_0x218e26[_0x5d597f]===_0x5ce158||_0x218e26[_0x5d597f]===_0x4f729a([0x2a])));}function _0x15632a(){return _0xe9084b&&_0x184c49?new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x488a9a,_0x7c9ac9)=>{_0xe9084b[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x488a9a,_0x7c9ac9),_0x184c49[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x2709ed=>{_0x2709ed!=_0x4f729a([0x56,0x61,0x6c,0x69,0x64])&&_0x488a9a(_0x2709ed);},_0x7c9ac9);}):_0xe9084b||_0x184c49||_0x4f729a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a0a2b(_0x3e1438,_0x5b8c98){return new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ceb44=>{if(_0x491f43())return _0x4ceb44(_0x4f729a([0x56,0x61,0x6c,0x69,0x64]));_0x2747e6(),_0x351ac2[_0x4f729a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f3fbf=!0x1;const _0x1d51a1=_0x5bdaf9();function _0x169600(_0x40f1b9){return!!_0x40f1b9&&(typeof _0x40f1b9===_0x4f729a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40f1b9===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40f1b9[_0x4f729a([0x74,0x68,0x65,0x6e])]===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40f1b9[_0x4f729a([0x63,0x61,0x74,0x63,0x68])]===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x295ab2(_0x202c2f){_0x282ba1(_0x202c2f)[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x5b565f=>{if(!_0x5b565f||_0x5b565f[_0x4f729a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f729a([0x6f,0x6b]))return _0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5885d9(_0x3dcc25(_0x1d51a1+_0x5b8c98))!=_0x5b565f[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f729a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x37001b=>(_0xe52357(),_0x37001b),()=>{const _0x3b3676=_0x3f16e1();return null==_0x3b3676?(_0xe52357(),_0x4f729a([0x56,0x61,0x6c,0x69,0x64])):_0x4f729a(_0x2275f3-_0x3b3676>(0x27d454df^_0x87f8a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x4ceb44)[_0x4f729a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc2efd8=0x3ee3e5f^_0x87f8a7;function _0xe52357(){const _0x1e978e=_0x4f729a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5885d9(_0x3dcc25(_0x3e1438)),_0x2be32e=_0x230f62(_0x5885d9(window[_0x4f729a([0x4d,0x61,0x74,0x68])][_0x4f729a([0x63,0x65,0x69,0x6c])](_0x2275f3/_0xc2efd8)));window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f729a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e978e,_0x2be32e);}function _0x3f16e1(){const _0x8009a6=_0x4f729a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5885d9(_0x3dcc25(_0x3e1438)),_0x25d727=window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f729a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8009a6);return _0x25d727?window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230f62(_0x25d727),0x10)*_0xc2efd8:null;}function _0x282ba1(_0x9c3ed5){return new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x211ceb,_0x4d38eb)=>{_0x9c3ed5[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x211ceb,_0x4d38eb),window[_0x4f729a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d38eb,0x3d9041f^_0x87f8a7);});}}_0x351ac2[_0x4f729a([0x6f,0x6e])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38d026,_0x6454f)=>{if(_0x6454f[0x0]!=_0x3e1438)return _0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6454f[0x1]={..._0x6454f[0x1],[_0x4f729a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d51a1};},{[_0x4f729a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f729a([0x68,0x69,0x67,0x68])}),_0x351ac2[_0x4f729a([0x6f,0x6e])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cdf2b=>{_0x169600(_0x5cdf2b[_0x4f729a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f3fbf=!0x0,_0x295ab2(_0x5cdf2b[_0x4f729a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f729a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f729a([0x6c,0x6f,0x77])}),_0x50024d[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>{_0x2f3fbf||_0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x491f43(){return _0x351ac2[_0x4f729a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f729a([0x76,0x69,0x65,0x77])][_0x4f729a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f729a([0x61,0x75,0x74,0x6f]);}function _0x2747e6(){_0x351ac2[_0x4f729a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f729a([0x76,0x69,0x65,0x77])][_0x4f729a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f729a([0x61,0x75,0x74,0x6f]);}}function _0x3648fe(_0x3ab828){const _0x54fc0f=[new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58eab5=>setTimeout(_0x58eab5,0x3d1ee13^_0x87f8a7)),_0x50024d[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f65c7=>{let _0x45a447=0x0;_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x6f,0x6e])](_0x4f729a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x100bab,_0x584300)=>{_0x584300[0x0][_0x4f729a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45a447++,_0x45a447==(0x3d8d537^_0x87f8a7)&&(_0x1f65c7(),_0x100bab[_0x4f729a([0x6f,0x66,0x66])]());});}))];return window[_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f729a([0x72,0x61,0x63,0x65])](_0x54fc0f)[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>_0x3ab828);}async function _0x5d83c9(){await _0x50024d,_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xefedb2,_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xefedb2,_0x351ac2[_0x4f729a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bce7f(){return _0xa3b4bd(_0x4f729a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c7e0f(_0x4f729a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f729a([0x73,0x74,0x61,0x74,0x65])]==_0x4f729a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1187be(){return _0xa3b4bd(_0x4f729a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x158db9(){return _0xa3b4bd(_0x4f729a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54883c(_0x511265){const _0x389be9=_0x218cee();_0x351ac2[_0x389be9]=_0x4f729a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x511265,_0x511265!=_0x4f729a([0x56,0x61,0x6c,0x69,0x64])&&_0x5d83c9();}function _0x218cee(){const _0x54fabf=window[_0x4f729a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f729a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f729a([0x6e,0x6f,0x77])]())[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f729a([0x2e]),'');let _0x434202=_0x4f729a([0x52]);for(let _0x42a139=0x0;_0x42a139<_0x54fabf[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a139+=0x2){let _0x1169f2=window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54fabf[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42a139,_0x42a139+0x2));_0x1169f2>=_0x21d511[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1169f2-=_0x21d511[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x434202+=_0x21d511[_0x1169f2];}return _0x434202;}function _0x3f367d(){const _0x9ba4a2=_0x4e5331[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e]));if(0x3!=_0x9ba4a2[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3756bc(_0x9ba4a2[0x1]);function _0x3756bc(_0x33ba3f){const _0x4a39da=_0x4c0b74(_0x33ba3f);return _0x4a39da&&_0x22d387()?_0x4a39da:null;function _0x22d387(){const _0x51ac8a=_0x4a39da[_0x4f729a([0x6a,0x74,0x69])],_0x1cf1fa=window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ac8a[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ac8a[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e6fea={..._0x4a39da,[_0x4f729a([0x6a,0x74,0x69])]:_0x51ac8a[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51ac8a[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e6fea[_0x4f729a([0x76,0x63])],_0x3dcc25(_0x3e6fea)==_0x1cf1fa;}}}async function _0x37b3ea(){let _0x3e2d37=!0x0;try{const _0x34250e=_0x4e5331[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e])),[_0x3b3fb9,_0x2c7413,_0x132104]=_0x34250e;return _0x508769(_0x3b3fb9),await _0x327731(_0x3b3fb9,_0x2c7413,_0x132104),_0x3e2d37;}catch{return!0x1;}function _0x508769(_0x301ba6){const _0x557dae=_0x4c0b74(_0x301ba6);_0x557dae&&_0x557dae[_0x4f729a([0x61,0x6c,0x67])]==_0x4f729a([0x45,0x53,0x32,0x35,0x36])||(_0x3e2d37=!0x1);}async function _0x327731(_0x86c313,_0x4028cb,_0x2aea09){const _0x7e72f7=window[_0x4f729a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f729a([0x66,0x72,0x6f,0x6d])](_0x2b8874(_0x2aea09),_0x45a93f=>_0x45a93f[_0x4f729a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f6bd7=new window[(_0x4f729a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f729a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x86c313+_0x4f729a([0x2e])+_0x4028cb),_0x5b0029=window[_0x4f729a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f729a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b0029)return;const _0x5c7924=await _0x5b0029[_0x4f729a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f729a([0x6a,0x77,0x6b]),_0x2884a8,{[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x45,0x43,0x44,0x53,0x41]),[_0x4f729a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f729a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b0029[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x45,0x43,0x44,0x53,0x41]),[_0x4f729a([0x68,0x61,0x73,0x68])]:{[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c7924,_0x7e72f7,_0x4f6bd7)||(_0x3e2d37=!0x1);}}function _0x4c0b74(_0x434c86){return _0x434c86[_0x4f729a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f729a([0x65,0x79]))?JSON[_0x4f729a([0x70,0x61,0x72,0x73,0x65])](_0x2b8874(_0x434c86)):null;}function _0x2b8874(_0x206c99){return window[_0x4f729a([0x61,0x74,0x6f,0x62])](_0x206c99[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f729a([0x2b]))[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f729a([0x2f])));}function _0x3dcc25(_0x7ce0e9){let _0x1ba8ec=0x1505;function _0x28cc47(_0x4bf37e){for(let _0x104eed=0x0;_0x104eed<_0x4bf37e[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104eed++){const _0x32832c=_0x4bf37e[_0x4f729a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x104eed);_0x1ba8ec=(_0x1ba8ec<<0x5)+_0x1ba8ec+_0x32832c,_0x1ba8ec&=_0x1ba8ec;}}function _0x49855a(_0x54e7fd){Array[_0x4f729a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54e7fd)?_0x54e7fd[_0x4f729a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49855a):_0x54e7fd&&typeof _0x54e7fd==_0x4f729a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f729a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54e7fd)[_0x4f729a([0x73,0x6f,0x72,0x74])]()[_0x4f729a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14e2db,_0x50dad0])=>{_0x28cc47(_0x14e2db),_0x49855a(_0x50dad0);}):_0x28cc47(window[_0x4f729a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54e7fd));}return _0x49855a(_0x7ce0e9),_0x1ba8ec>>>0x0;}function _0x5885d9(_0x41247c){return _0x41247c[_0x4f729a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f729a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f729a([0x30]));}function _0x230f62(_0x220971){return _0x220971[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f729a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f729a([0x6a,0x6f,0x69,0x6e])]('');}function _0xa3b4bd(_0x54c6d8){return _0x351ac2[_0x4f729a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f729a([0x68,0x61,0x73])](_0x54c6d8);}function _0x2c7e0f(_0x69365a){return _0x351ac2[_0x4f729a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f729a([0x67,0x65,0x74])](_0x69365a);}function _0xefedb2(){}function _0x4f729a(_0x5bec3e){return _0x5bec3e['map'](_0x24a4d1=>String['fromCharCode'](_0x24a4d1))['join']('');}_0x54883c(await _0x27f840());}(this);}set['adapter'](_0x28f56e){if(this['_adapter'])throw new _0x39508c('track-changes-adapter-already-set',this);this['_adapter']=_0x28f56e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x236c7f=!0x1,toJSON:_0x1678af=!0x1}={}){const _0x1002a4=[];for(const _0x2d0971 of this['_suggestions']['values']())_0x236c7f&&!_0x2d0971['isInContent']||_0x1002a4['push'](_0x2d0971);return _0x1678af?_0x1002a4['map'](_0x144849=>_0x144849['toJSON']()):_0x1002a4;}['getSuggestion'](_0x9d43bb){const _0xd4a870=this['_suggestions']['get'](_0x9d43bb);if(!_0xd4a870)throw new _0x39508c('track-changes-suggestion-not-found',this);return _0xd4a870;}['hasSuggestion'](_0x2fd56b){return this['_suggestions']['has'](_0x2fd56b);}['addSuggestionData'](_0x58402f){const {authorId:_0x370c92,id:_0x52f8c0,originalSuggestionId:_0x3e6ca4,attributes:_0x420d63}=_0x58402f,[_0x2aa028,_0x5d6643]=_0x58402f['type']['split'](':'),_0x10f937=this['_suggestions']['get'](_0x52f8c0)||this['_createSuggestion'](_0x2aa028,_0x5d6643,_0x52f8c0,_0x370c92,_0x420d63,_0x3e6ca4);if(this['_addThreadToSuggestion'](_0x10f937),this['_checkSuggestionCorrectness'](_0x10f937,_0x2aa028,_0x5d6643||null,_0x370c92),_0x10f937['createdAt']=_0x58402f['createdAt'],_0x10f937['_isDataLoaded']=!0x0,_0x420d63&&_0x420d63['@external']){const _0x360644=_0x420d63['@external'],_0x4e7d3a=this['_getExternalAuthor'](_0x360644['authorName']);_0x10f937['authoredAt']=_0x360644['createdAt'],_0x10f937['author']=_0x4e7d3a,_0x10f937['isExternal']=!0x0;}else _0x10f937['authoredAt']=_0x58402f['createdAt'];switch(_0x58402f['data']&&(_0x10f937['data']=_0x58402f['data']),_0x58402f['attributes']&&(_0x10f937['attributes']=_0x58402f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x10f937['_saved']=!0x0),this['_suggestionState']['get'](_0x10f937)){case'notReady':this['_suggestionState']['set'](_0x10f937,'dataReady');break;case'markerReady':_0x10f937['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x10f937])),this['_refreshSuggestionsChain'](new Set([_0x10f937])),this['_suggestionState']['set'](_0x10f937,'ready'),this['fire']('suggestionLoaded',_0x10f937)):this['_suggestionState']['set'](_0x10f937,'removed');}return _0x10f937;}['acceptSuggestion'](_0x4a0899){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x97446b of _0x4a0899['getAllAdjacentSuggestions']())_0x97446b['accept']();});});}['discardSuggestion'](_0x2fbb29){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b2f9c of _0x2fbb29['getAllAdjacentSuggestions']())_0x1b2f9c['discard']();});});}['enableCommand'](_0x56f51c,_0x420524){const _0x1ae436=this['editor']['commands']['get'](_0x56f51c);if(!_0x1ae436)throw new _0x39508c('track-changes-command-not-found',this,{'commandName':_0x56f51c});if(this['_enabledCommands']['has'](_0x1ae436))throw new _0x39508c('track-changes-enable-command-twice',this,{'commandName':_0x56f51c});this['_enabledCommands']['add'](_0x1ae436),_0x420524&&_0x1ae436['on']('execute',(_0x56b32f,_0x347900)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x347900['length']>0x0&&_0x347900[_0x347900['length']-0x1]&&_0x347900[_0x347900['length']-0x1]['forceDefaultExecution']?_0x347900['pop']():(_0x56b32f['return']=_0x420524((..._0x5443f8)=>_0x1ae436['execute'](..._0x5443f8,{'forceDefaultExecution':!0x0}),..._0x347900),_0x56b32f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6a6ab0){let _0x533ed5,_0x3f2d73;const _0x3b1b38=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x533ed5=_0x6a6ab0();}catch(_0x2af548){_0x3f2d73=_0x2af548;}return _0x3b1b38||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f2d73&&_0x39508c['rethrowUnexpectedError'](_0x3f2d73,this),_0x533ed5;}['markInsertion'](_0x53367e,_0x16946c=null,_0x2f1c7b={}){if(_0x53367e['isCollapsed'])return null;const _0x11e12d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2f1c7b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ddeac,meta:_0x131a8c}of this['_findSuggestions'](_0x53367e,'insertion'))if(_0x131a8c['isOwn']){if(!_0x131a8c['isNextTo']){if(_0x131a8c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x5ddeac,_0x2f1c7b))continue;return _0x5ddeac;}if(cn(_0x5ddeac,_0x2f1c7b))return _0x5ddeac;this['_breakSuggestionMarker'](_0x5ddeac,_0x53367e['start'],_0x53367e['end']);break;}if(_0x16946c==_0x5ddeac['subType']&&cn(_0x5ddeac,_0x2f1c7b)){const _0xcf253d=_0x5ddeac['getFirstRange']();return _0xcf253d['start']['isEqual'](_0x53367e['end'])?this['_setSuggestionRange'](_0x5ddeac,this['_model']['createRange'](_0x53367e['start'],_0xcf253d['end'])):this['_setSuggestionRange'](_0x5ddeac,this['_model']['createRange'](_0xcf253d['start'],_0x53367e['end'])),_0x5ddeac;}}const _0x3141fe=_0x5bdaf9(),_0x2b56ef=_0x11e12d['id'],_0x94b4b2=_0x16946c?'insertion:'+_0x16946c:'insertion',_0x580280=this['_setSuggestionData']({'id':_0x3141fe,'type':_0x94b4b2,'createdAt':new Date(),'authorId':_0x2b56ef,'attributes':_0x2f1c7b});return this['_addSuggestionMarker'](_0x94b4b2,_0x3141fe,_0x2b56ef,_0x53367e),_0x580280;}['markMultiRangeInsertion'](_0x526675,_0x274cef='multi',_0x2218f6={}){const _0x310c2f=this['editor']['plugins']['get']('Users')['me'],_0x351f8a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x274cef,'join');this['_trackingSessionId']&&(_0x2218f6['trackingSessionId']=this['_trackingSessionId']);for(const _0xe6658a of this['getSuggestions']())if(_0xe6658a['author']['id']==_0x310c2f['id']&&'insertion'==_0xe6658a['type']&&_0xe6658a['subType']==_0x274cef&&cn(_0xe6658a,_0x2218f6)&&(_0x351f8a(_0xe6658a['getRanges'](),_0x526675)||_0x351f8a(_0x526675,_0xe6658a['getRanges']()))){for(const _0x30bfe2 of _0x526675)_0xe6658a['addRange'](_0x30bfe2);return _0xe6658a;}for(const {suggestion:_0x2fb8e0,meta:_0x47e064}of this['_findSuggestions'](_0x526675,'insertion')){if(!_0x47e064['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47e064['containsRangeInObject'])continue;if(!cn(_0x2fb8e0,_0x2218f6))continue;let _0x2c98ce=!0x0;for(const _0x523271 of _0x2fb8e0['getRanges']())for(const _0x5df548 of _0x526675)if(!_0x523271['containsRange'](_0x5df548)){_0x2c98ce=!0x1;break;}if(_0x2c98ce)return _0x2fb8e0;}const _0x48fc29=_0x5bdaf9(),_0x44b808=_0x310c2f['id'],_0x39188f='insertion:'+_0x274cef,_0x93bdab=this['_setSuggestionData']({'id':_0x48fc29,'type':_0x39188f,'createdAt':new Date(),'authorId':_0x44b808,'attributes':_0x2218f6});for(const _0x1410bc of _0x526675)this['_addSuggestionMarker'](_0x39188f,_0x48fc29,_0x44b808,_0x1410bc,bt['getMultiRangeId']());return _0x93bdab;}['markInlineFormat'](_0x177acc,_0x331f78,_0xad6ccf=null,_0x534a8d={}){if(_0xad6ccf=_0xad6ccf||Je(_0x331f78),_0x177acc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x534a8d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28400d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xad6ccf,'accept');return this['forceDefaultExecution'](()=>_0x28400d([_0x177acc],_0x331f78,_0x534a8d)),null;}const _0x1f0235=this['editor']['plugins']['get']('Users')['me'],_0x2a1572=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x742a56,meta:_0x15fb1b}of this['_findSuggestions'](_0x177acc,'insertion'))_0x15fb1b['isOwn']&&!_0x15fb1b['isInsideObject']&&_0x2a1572['push'](..._0x742a56['getRanges']());}const _0x2b8ee8=function(_0x2bf0a1,_0x31944f){const _0xc891e3=[];for(const _0x5e411c of _0x31944f){const _0x56cdf0=_0x2bf0a1['getIntersection'](_0x5e411c);_0x56cdf0&&_0xc891e3['push'](_0x56cdf0);}return _0xc891e3;}(_0x177acc,_0x2a1572),_0x507099=function(_0x544a5a,_0x1dd8d1){const _0x72d556=[_0x544a5a];for(const _0x2b5d78 of _0x1dd8d1){let _0x448cf2=0x0;for(;_0x448cf2<_0x72d556['length'];){const _0x416106=_0x72d556[_0x448cf2]['getDifference'](_0x2b5d78);_0x72d556['splice'](_0x448cf2,0x1,..._0x416106),_0x448cf2+=_0x416106['length'];}}return _0x72d556;}(_0x177acc,_0x2a1572);_0x2b8ee8['length']&&this['_model']['change'](()=>{for(const _0xe359bb of _0x2b8ee8){const _0x37a2dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xad6ccf,'accept');this['forceDefaultExecution'](()=>_0x37a2dc([_0xe359bb],_0x331f78,_0x534a8d));}});for(const _0x251850 of _0x507099){let _0x56aaa2=null,_0x4834c7=_0x251850['start'],_0x3050c7=_0x251850['end'];for(const {suggestion:_0x3fa72e,meta:_0x5436d1}of this['_findSuggestions'](_0x251850,'formatInline')){if(!_0x5436d1['isOwn'])continue;if(_0x3fa72e['subType']!=_0xad6ccf)continue;if(!cn(_0x3fa72e,_0x534a8d))continue;const _0xf78bae=_0x3fa72e['getFirstRange']();if(_0xf78bae['containsRange'](_0x251850,!0x0))return null;_0x4834c7=_0x4834c7['isBefore'](_0xf78bae['start'])?_0x4834c7:_0xf78bae['start'],_0x3050c7=_0x3050c7['isAfter'](_0xf78bae['end'])?_0x3050c7:_0xf78bae['end'],_0x56aaa2?_0xf78bae['start']['isBefore'](_0x56aaa2['getFirstRange']()['start'])?(_0x56aaa2['removeMarkers'](),_0x56aaa2=_0x3fa72e):_0x3fa72e['removeMarkers']():_0x56aaa2=_0x3fa72e;}const _0x533139=this['_model']['createRange'](_0x4834c7,_0x3050c7);if(_0x56aaa2)this['_setSuggestionRange'](_0x56aaa2,_0x533139);else{const _0x4f611d=_0x5bdaf9(),_0x22680a=_0x1f0235['id'];this['_setSuggestionData']({'id':_0x4f611d,'type':'formatInline:'+_0xad6ccf,'data':_0x331f78,'createdAt':new Date(),'authorId':_0x22680a,'attributes':_0x534a8d}),this['_addSuggestionMarker']('formatInline:'+_0xad6ccf,_0x4f611d,_0x22680a,_0x533139);}}return null;}['markBlockFormat'](_0x4c0f75,_0x183720,_0x54d759=[],_0x147a43=null,_0x30e281={}){_0x183720['formatGroupId']||(_0x183720['formatGroupId']=_0x183720['commandName']),_0x183720['multipleBlocks']=_0x4c0f75['is']('range'),_0x147a43=_0x147a43||Je(_0x183720);const _0x50d8de=_0x54d759['map'](_0x4e2ff7=>rn(_0x4e2ff7,this['_model'])),_0x59de06=_0x4c0f75['is']('range')?_0x4c0f75:rn(_0x4c0f75,this['_model']);if(this['_trackingSessionId']&&(_0x30e281['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xbc5548=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a43,'accept');return this['forceDefaultExecution'](()=>_0xbc5548([_0x59de06],_0x183720,_0x30e281)),null;}_0x50d8de['push'](_0x59de06);let _0x4a7d79=!0x0;for(const _0x2761da of _0x50d8de)if(!this['_rangeIsInLocalUserInsertion'](_0x2761da)){_0x4a7d79=!0x1;break;}if(_0x4a7d79&&'always'!==this['_trackFormatChanges']){const _0x17c404=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a43,'accept');return this['forceDefaultExecution'](()=>_0x17c404([_0x59de06],_0x183720,_0x30e281)),null;}let _0x41b27c=null,_0x495e24=_0x59de06['start'],_0x2fdc54=_0x59de06['end'];for(const {suggestion:_0x3360e7,meta:_0xb6362f}of this['_findSuggestions'](_0x59de06,'formatBlock')){if(!_0xb6362f['isOwn'])continue;if(_0xb6362f['isNextTo']||_0xb6362f['containsRangeInObject']||_0xb6362f['isInsideObject'])continue;if(_0x3360e7['data']['formatGroupId']!=_0x183720['formatGroupId'])continue;if(!cn(_0x3360e7,_0x30e281))continue;const _0x55ae7f=_0x3360e7['getFirstRange']();if(_0x3360e7['subType']==_0x147a43){if(_0x55ae7f['containsRange'](_0x59de06,!0x0))return null;_0x495e24=_0x495e24['isBefore'](_0x55ae7f['start'])?_0x495e24:_0x55ae7f['start'],_0x2fdc54=_0x2fdc54['isAfter'](_0x55ae7f['end'])?_0x2fdc54:_0x55ae7f['end'],_0x41b27c?_0x55ae7f['start']['isBefore'](_0x41b27c['getFirstRange']()['start'])?(_0x41b27c['removeMarkers'](),_0x41b27c=_0x3360e7):_0x3360e7['removeMarkers']():_0x41b27c=_0x3360e7;}else{const _0x486c63=_0x59de06['getIntersection'](_0x55ae7f);this['_cutOutSuggestionMarker'](_0x3360e7,_0x486c63);}}const _0x225c27=this['editor']['plugins']['get']('Users')['me'],_0x173211=_0x5bdaf9(),_0x380dfa=_0x225c27['id'];if(_0x41b27c)return this['_setSuggestionRange'](_0x41b27c,this['_model']['createRange'](_0x495e24,_0x2fdc54)),_0x41b27c;{const _0x3b099d=this['_setSuggestionData']({'id':_0x173211,'type':'formatBlock:'+_0x147a43,'data':_0x183720,'createdAt':new Date(),'authorId':_0x380dfa,'attributes':_0x30e281});return this['_addSuggestionMarker']('formatBlock:'+_0x147a43,_0x173211,_0x380dfa,this['_model']['createRange'](_0x495e24,_0x2fdc54)),_0x3b099d;}}['markMultiRangeBlockFormat'](_0xc4fc5b,_0x403247,_0xe2b0b7=[],_0x108de2=null,_0x15cc4d={}){_0x403247['formatGroupId']||(_0x403247['formatGroupId']=_0x403247['commandName']);const _0x2f2fcd=_0xc4fc5b[0x0];_0x403247['multipleBlocks']=_0x2f2fcd['is']('range'),_0x108de2=_0x108de2||Je(_0x403247);const _0x1c48d2=_0xe2b0b7['map'](_0xd11448=>rn(_0xd11448,this['_model'])),_0x2fdf92=_0x2f2fcd['is']('range')?_0xc4fc5b:_0xc4fc5b['map'](_0x25e5da=>rn(_0x25e5da,this['_model']));if(this['_trackingSessionId']&&(_0x15cc4d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31a31c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'accept');return this['forceDefaultExecution'](()=>_0x31a31c(_0x2fdf92,_0x403247,_0x15cc4d)),null;}_0x1c48d2['push'](..._0x2fdf92);let _0x5a581c=!0x0;for(const _0x5ee458 of _0x1c48d2)if(!this['_rangeIsInLocalUserInsertion'](_0x5ee458)){_0x5a581c=!0x1;break;}if(_0x5a581c&&'always'!==this['_trackFormatChanges']){const _0x30797a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'accept');return this['forceDefaultExecution'](()=>_0x30797a(_0x2fdf92,_0x403247,_0x15cc4d)),null;}const _0x4d4a9e=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d2391 of this['getSuggestions']()){const _0x4f6f41=_0x4d2391['data'];if(_0x4d2391['author']['id']!=_0x4d4a9e['id'])continue;if('formatBlock'!=_0x4d2391['type']||_0x4f6f41['formatGroupId']!=_0x403247['formatGroupId'])continue;if(!cn(_0x4d2391,_0x15cc4d))continue;const _0x3daa3d=_0x4d2391['subType']==_0x108de2;for(let _0x5910ed=0x0;_0x5910ed<_0x2fdf92['length'];_0x5910ed++){const _0x4795ca=_0x2fdf92[_0x5910ed];for(const _0x36a802 of _0x4d2391['getMarkers']()){const _0x2a07d3=_0x36a802['getRange']();if(_0x4795ca['isEqual'](_0x2a07d3)){_0x3daa3d?(_0x2fdf92['splice'](_0x5910ed,0x1),_0x5910ed--):_0x4d2391['removeMarker'](_0x36a802['name']);break;}}}}if(0x0==_0x2fdf92['length'])return null;const _0x119705=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'join');for(const _0x2c5b57 of this['getSuggestions']()){const _0x2bb9c=_0x2c5b57['data'];if(_0x2c5b57['author']['id']==_0x4d4a9e['id']&&('formatBlock'==_0x2c5b57['type']&&_0x2bb9c['formatGroupId']==_0x403247['formatGroupId']&&_0x2c5b57['subType']==_0x108de2&&cn(_0x2c5b57,_0x15cc4d)&&(_0x119705(_0x2c5b57['getRanges'](),_0x2fdf92)||_0x119705(_0x2fdf92,_0x2c5b57['getRanges']())))){for(const _0x48cf92 of _0x2fdf92)_0x2c5b57['addRange'](_0x48cf92);return _0x2c5b57;}}const _0x4ed611=_0x5bdaf9(),_0x4fdde4=_0x4d4a9e['id'],_0xb8ac52='formatBlock:'+_0x108de2,_0x27b518=this['_setSuggestionData']({'id':_0x4ed611,'type':_0xb8ac52,'data':_0x403247,'createdAt':new Date(),'authorId':_0x4fdde4,'attributes':_0x15cc4d});for(const _0x3d4784 of _0x2fdf92)this['_addSuggestionMarker'](_0xb8ac52,_0x4ed611,_0x4fdde4,_0x3d4784,bt['getMultiRangeId']());return _0x27b518;}['markDeletion'](_0x1cad06,_0x3cd3bd=null,_0x28bf21={}){if(_0x1cad06['isCollapsed'])return null;const _0x5ae477=this['editor']['plugins']['get']('Users')['me'],_0x55c6c4=new _0x2db68d(_0x1cad06['start'],_0x1cad06['end']);this['_trackingSessionId']&&(_0x28bf21['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x38ae9e,meta:_0x5e1c21}of this['_findSuggestions'](_0x55c6c4,'insertion'))if(_0x5e1c21['isOwn']&&!_0x5e1c21['isNextTo']){if(_0x38ae9e['isMultiRange']){const _0x119101=_0x38ae9e['getRanges']()['filter'](_0x439959=>'$graveyard'!=_0x439959['root']['rootName']);_0x119101['every'](_0x381ba0=>_0x55c6c4['containsRange'](_0x381ba0,!0x0))&&_0x38ae9e['discard']();if(_0x119101['some'](_0x1c6082=>_0x1c6082['containsRange'](_0x55c6c4,!0x0))){const _0x20f79f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3cd3bd,'accept');return this['forceDefaultExecution'](()=>_0x20f79f([_0x55c6c4],null,_0x28bf21)),null;}}else{const _0x3f143d=_0x55c6c4['getIntersection'](_0x38ae9e['getFirstRange']());null!==_0x3f143d&&_0x38ae9e['_onDiscard']([_0x3f143d],null,_0x28bf21);}}if(_0x55c6c4['detach'](),_0x55c6c4['isCollapsed']||'$graveyard'==_0x55c6c4['root']['rootName'])return null;let _0x2d4d35=null,_0x37da35=_0x55c6c4['start'],_0xc1ab85=_0x55c6c4['end'];const _0x46a06c=this['_findSuggestions'](_0x55c6c4,'deletion');for(const {suggestion:_0x142fed,meta:_0x548e12}of _0x46a06c){const _0x202525=this['_model']['createRange'](_0x37da35,_0xc1ab85);if(_0x548e12['isOwn']&&(this['_mergeNestedSuggestions']||!_0x548e12['containsRangeInObject']&&!_0x548e12['isInsideObject'])){if(_0x142fed['isMultiRange']){if(!cn(_0x142fed,_0x28bf21))continue;let _0x1fa30f=!0x0;for(const _0x5f2701 of _0x142fed['getRanges']()){if(_0x5f2701['containsRange'](_0x202525,!0x0))return _0x142fed;_0x202525['containsRange'](_0x5f2701)||(_0x1fa30f=!0x1);}_0x1fa30f&&_0x142fed['discard']();}else{const _0x2642e0=_0x142fed['getFirstRange']();if(_0x2642e0['containsRange'](_0x202525,!0x0))return _0x142fed;if(!cn(_0x142fed,_0x28bf21)){_0x202525['containsRange'](_0x2642e0)?_0x142fed['removeMarkers']():_0x2642e0['containsPosition'](_0x37da35)?_0x37da35=_0x2642e0['end']:_0x2642e0['containsPosition'](_0xc1ab85)&&(_0xc1ab85=_0x2642e0['start']);continue;}_0x37da35=_0x37da35['isBefore'](_0x2642e0['start'])?_0x37da35:_0x2642e0['start'],_0xc1ab85=_0xc1ab85['isAfter'](_0x2642e0['end'])?_0xc1ab85:_0x2642e0['end'],_0x28bf21=Object['assign']({},_0x142fed['attributes']),_0x2d4d35?_0x2642e0['start']['isBefore'](_0x2d4d35['getFirstRange']()['start'])?(_0x2d4d35['removeMarkers'](),_0x2d4d35=_0x142fed):_0x142fed['removeMarkers']():_0x2d4d35=_0x142fed;}}}if(_0x2d4d35)return this['_setSuggestionRange'](_0x2d4d35,this['_model']['createRange'](_0x37da35,_0xc1ab85)),_0x2d4d35;{const _0x5e7dad=_0x5bdaf9(),_0x5eaf94=this['_model']['createRange'](_0x37da35,_0xc1ab85),_0xf26b07=_0x5ae477['id'],_0x51583c=_0x3cd3bd?'deletion:'+_0x3cd3bd:'deletion',_0x1754f8=this['_setSuggestionData']({'id':_0x5e7dad,'type':_0x51583c,'createdAt':new Date(),'authorId':_0xf26b07,'attributes':_0x28bf21});return this['_addSuggestionMarker'](_0x51583c,_0x5e7dad,_0xf26b07,_0x5eaf94),_0x1754f8;}}['markMultiRangeDeletion'](_0x5ddaa5,_0x16e132='multi',_0x57a4fc={}){const _0x426575=this['editor']['plugins']['get']('Users')['me'],_0x55b350=_0x5ddaa5['map'](_0x37e76d=>new _0x2db68d(_0x37e76d['start'],_0x37e76d['end'])),_0x24d6b1=new Set();this['_trackingSessionId']&&(_0x57a4fc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b40b1,meta:_0x518cda}of this['_findSuggestions'](_0x55b350,'insertion'))_0x518cda['isOwn']&&!_0x518cda['isNextTo']&&_0x24d6b1['add'](_0x5b40b1);for(const _0x337708 of _0x24d6b1)if(_0x337708['isMultiRange']){const _0xb930ea=_0x337708['getRanges']();(!_0x337708['attributes']||!_0x337708['attributes']['skipNestingCheck'])&&(_0xb930ea['every'](_0x161966=>_0x55b350['some'](_0x4074ac=>_0x4074ac['containsRange'](_0x161966,!0x0)))&&_0x337708['discard']());if(_0x55b350['every'](_0x53d57b=>_0xb930ea['some'](_0x1816c6=>_0x1816c6['containsRange'](_0x53d57b,!0x0)))){const _0x565046=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'accept');return this['forceDefaultExecution'](()=>_0x565046(_0x5ddaa5,null,_0x57a4fc)),null;}}else{const _0x4c54f9=_0x337708['getFirstRange']();_0x55b350['some'](_0x244b5d=>_0x244b5d['containsRange'](_0x4c54f9,!0x0))&&_0x337708['discard']();if(_0x55b350['every'](_0x2ef894=>_0x4c54f9['containsRange'](_0x2ef894,!0x0))){const _0x9c55b0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'accept');return this['forceDefaultExecution'](()=>_0x9c55b0(_0x55b350,null,_0x57a4fc)),null;}}const _0x248197=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'join');let _0x46af78=null;for(const _0x4110e9 of this['getSuggestions']())if(_0x4110e9['author']['id']==_0x426575['id']&&_0x4110e9['isInContent']&&'deletion'==_0x4110e9['type']&&_0x4110e9['subType']==_0x16e132&&cn(_0x4110e9,_0x57a4fc)&&(_0x248197(_0x4110e9['getRanges'](),_0x55b350)||_0x248197(_0x55b350,_0x4110e9['getRanges']()))){if(_0x46af78){if(_0x4110e9['commentThread']&&_0x4110e9['commentThread']['length'])continue;for(const _0x5af4b4 of _0x4110e9['getRanges']())_0x46af78['isIntersectingWithRange'](_0x5af4b4)||_0x46af78['addRange'](_0x5af4b4);_0x4110e9['removeMarkers']();}else{_0x46af78=_0x4110e9;for(const _0xa7fa68 of _0x55b350)_0x4110e9['isIntersectingWithRange'](_0xa7fa68)||_0x4110e9['addRange'](_0xa7fa68);}}if(_0x46af78)return _0x46af78;_0x24d6b1['clear']();for(const {suggestion:_0x5508e2,meta:_0x14f4f7}of this['_findSuggestions'](_0x55b350,'deletion'))_0x14f4f7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14f4f7['containsRangeInObject']&&!_0x14f4f7['isInsideObject'])&&cn(_0x5508e2,_0x57a4fc)&&_0x24d6b1['add'](_0x5508e2);for(const _0x465dc7 of _0x24d6b1){const _0x53051e=_0x465dc7['getRanges']();if(!_0x57a4fc||!_0x57a4fc['skipNestingCheck']){if(_0x55b350['every'](_0x218f9c=>_0x53051e['some'](_0x1a2f17=>_0x1a2f17['containsRange'](_0x218f9c,!0x0))))return _0x465dc7;}(!_0x465dc7['attributes']||!_0x465dc7['attributes']['skipNestingCheck'])&&(_0x53051e['every'](_0x569d2e=>_0x55b350['some'](_0x2971a8=>_0x2971a8['containsRange'](_0x569d2e,!0x0)))&&_0x465dc7['discard']());}const _0xa8c455=_0x5bdaf9(),_0x3af975=_0x426575['id'],_0x3d523a='deletion:'+_0x16e132,_0x118b53=this['_setSuggestionData']({'id':_0xa8c455,'type':_0x3d523a,'createdAt':new Date(),'authorId':_0x3af975,'attributes':_0x57a4fc});for(const _0xd72dcc of _0x55b350)_0xd72dcc['detach'](),_0xd72dcc['isCollapsed']||'$graveyard'==_0xd72dcc['root']['rootName']||this['_addSuggestionMarker'](_0x3d523a,_0xa8c455,_0x3af975,_0xd72dcc,bt['getMultiRangeId']());return _0x118b53;}['markAttributeChange'](_0x341370,_0x27f898,_0x124d8a,_0x5c0f15,_0x51e958){if(_0x341370['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x537a59=this['editor']['plugins']['get']('Users')['me']['id'],_0x561844=Array['from'](this['_suggestions']['values']())['filter'](_0x1b0121=>'attribute'==_0x1b0121['type']&&_0x1b0121['data']['key']==_0x27f898&&_0x1b0121['isIntersectingWithRange'](_0x341370));if(this['_trackingSessionId']&&(_0x51e958['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x48e51e=this['_findSuggestions'](_0x341370,'insertion')['filter'](({meta:_0x354db8})=>_0x354db8['isOwn']&&!_0x354db8['isInsideObject']&&!_0x354db8['isNextTo'])['map'](({suggestion:_0x33c972})=>_0x33c972);_0x561844['unshift'](..._0x48e51e);}const _0x5a3e9a=new Map([[_0x341370,_0x124d8a]]);for(const _0x2e0498 of _0x561844){const _0x49241e='attribute'==_0x2e0498['type']?_0x2e0498['data']['oldValue']:void 0x0,_0x3429db=_0x2e0498['getFirstRange'](),_0x539c69=Array['from'](_0x5a3e9a['keys']())['find'](_0x4a761a=>_0x4a761a['isIntersecting'](_0x3429db));if(!_0x539c69)continue;const _0x36cff1=_0x539c69['getDifference'](_0x3429db);this['_suggestionsConversion']['isBlockAttribute'](_0x27f898)&&'insertion'==_0x2e0498['type']&&0x0!=_0x36cff1['length']||(_0x5a3e9a['delete'](_0x539c69),_0x36cff1['forEach'](_0x49f7db=>{_0x5a3e9a['set'](_0x49f7db,_0x124d8a);}),'insertion'!=_0x2e0498['type']&&_0x49241e!=_0x5c0f15&&_0x5a3e9a['set'](_0x539c69['getIntersection'](_0x3429db),_0x49241e));}const _0x4cc3b4=[];for(const [_0x2267d9,_0x43fba1]of _0x5a3e9a){const _0x391eca=_0x5bdaf9(),_0x378362={'key':_0x27f898,'oldValue':_0x43fba1,'newValue':_0x5c0f15};_0x27f898['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':_0x27f898});const _0xb45fb7=('attribute:'+(_0x27f898+'|'+Je({'newValue':_0x5c0f15})))['substring'](0x0,0x3c),_0x11aa90=this['_setSuggestionData']({'id':_0x391eca,'type':_0xb45fb7,'data':_0x378362,'createdAt':new Date(),'authorId':_0x537a59,'attributes':_0x51e958});_0x4cc3b4['push'](_0x11aa90),this['_addSuggestionMarker'](_0xb45fb7,_0x391eca,_0x537a59,_0x2267d9);}return _0x4cc3b4;}['enableDefaultAttributesIntegration'](_0x37651e){this['enableCommand'](_0x37651e,(_0x51aabc,..._0x1994c9)=>{this['recordAttributeChanges'](()=>{_0x51aabc(..._0x1994c9);});});}['startTrackingSession'](_0x55568e){return this['_trackingSessionId']=void 0x0!==_0x55568e?_0x55568e:_0x5bdaf9(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b0817){return'attribute'==_0x2b0817['type']?un(_0x2b0817['subType']):null;}['_applyOperationsAsSuggestions'](_0x4a3125){if(0x0==_0x4a3125['length'])return;const _0x38a728=this['editor'],_0x11e987=_0x38a728['plugins']['get'](_0x5e953e),_0x180570=[];_0x38a728['model']['change'](_0x4793e2=>{for(let _0x30d545=0x0;_0x30d545<_0x4a3125['length'];_0x30d545++){const _0x5d1d80=_0x4a3125[_0x30d545];if(_0x5d1d80['baseVersion']=_0x38a728['model']['document']['version'],_0x5d1d80['isDocumentOperation']=!0x0,_0x11e987['isMarkedRemoveOperation'](_0x5d1d80)){const _0x1ab227=_0x40840e(_0x5d1d80['newRange'],_0x38a728['model']);_0x180570['unshift'](_0x2db68d['fromRange'](_0x1ab227));}else switch(_0x5d1d80['type']){case'rename':{const _0x15f344=_0x5d1d80['oldName'],_0xe690b=_0x5d1d80['newName'];if(_0x15f344==_0xe690b)break;_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x445406='$elementName',_0x44b94d=_0x5d1d80['position'],_0x154a3c=_0x38a728['model']['createRange'](_0x44b94d,_0x38a728['model']['createPositionAt'](_0x44b94d['nodeAfter'],'end'));this['markAttributeChange'](_0x154a3c,_0x445406,_0x15f344,_0xe690b,{'groupId':_0x5bdaf9()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xcaaf52=_0x5d1d80['oldValue'],_0xaa79a8=_0x5d1d80['newValue'];if(_0xcaaf52==_0xaa79a8)break;_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x4f9bfe=_0x5d1d80['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f9bfe))break;const _0x5f7760=_0x40840e(_0x5d1d80['range'],_0x38a728['model']);this['markAttributeChange'](_0x5f7760,_0x4f9bfe,_0xcaaf52,_0xaa79a8,{'groupId':_0x5bdaf9()});break;}case'insert':{_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);if(_0x4a3125[_0x30d545+0x1]&&'move'==_0x4a3125[_0x30d545+0x1]['type'])break;const _0x3a4190=_0x5d1d80['position'],_0x5f004b=_0x5d1d80['howMany'],_0xf1d014=_0x40840e(_0x38a728['model']['createRange'](_0x3a4190,_0x3a4190['getShiftedBy'](_0x5f004b)),_0x38a728['model']);this['markInsertion'](_0xf1d014);break;}case'split':{_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x3de26a=_0x5d1d80['splitPosition'],_0x1e89ab=_0x5d1d80['moveTargetPosition'];this['markInsertion'](_0x38a728['model']['createRange'](_0x3de26a,_0x1e89ab));break;}case'move':case'remove':_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);}}for(const _0x3be639 of _0x180570)_0x3be639['detach'](),this['markDeletion'](_0x3be639);});}['_setSuggestionRange'](_0x5b822c,_0xe25363){const _0x1abf71=_0x5b822c['getFirstMarker']();this['_model']['change'](_0x53f478=>{_0x53f478['updateMarker'](_0x1abf71,{'range':_0xe25363});});}['_addThreadToSuggestion'](_0x52dca2){const _0x334a42=_0x52dca2['id'],_0x1fe008=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x334a42)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1fe008,'threadId':_0x334a42,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1933a3=this['_commentsRepository']['getCommentThread'](_0x334a42);_0x1933a3['unbind']('isRemovable'),_0x1933a3['isRemovable']=!0x1,_0x52dca2['commentThread']=_0x1933a3;}['_checkSuggestionCorrectness'](_0x44cce3,_0xa8dae5,_0x41ed5a,_0xfc30f7){if(_0x44cce3['type']!=_0xa8dae5||_0x44cce3['subType']!=_0x41ed5a||_0x44cce3['creator']['id']!=_0xfc30f7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39508c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x42e0b6,_0x27d20c){const _0x468fce=_0x42e0b6['getFirstRange']();if(_0x27d20c['isEqual'](_0x468fce))_0x42e0b6['removeMarkers']();else{if(_0x468fce['containsRange'](_0x27d20c)){const _0x39f431=this['_model']['createPositionAt'](_0x27d20c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x468fce['start'],_0x39f431));const _0x44dd1b=_0x5bdaf9(),_0x1d5147=_0x42e0b6['creator']['id'],_0x4b830b=_0x42e0b6['type']+':'+_0x42e0b6['subType'];this['_setSuggestionData']({'id':_0x44dd1b,'type':_0x4b830b,'createdAt':new Date(),'authorId':_0x1d5147,'data':_0x42e0b6['data'],'attributes':_0x42e0b6['attributes']});const _0x2b4614=this['_model']['createPositionAt'](_0x27d20c['end']['parent'],'after'),_0x54b641=this['_model']['createRange'](_0x2b4614,_0x468fce['end']);this['_addSuggestionMarker'](_0x4b830b,_0x44dd1b,_0x1d5147,_0x54b641);}else{if(_0x468fce['containsPosition'](_0x27d20c['start'])){const _0x542ed9=this['_model']['createPositionAt'](_0x27d20c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x468fce['start'],_0x542ed9));}else{const _0x40c5f1=this['_model']['createPositionAt'](_0x27d20c['end']['parent'],'after');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x40c5f1,_0x468fce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35ccf6){for(const {suggestion:_0x976c06,meta:_0x5c3dfb}of this['_findSuggestions'](_0x35ccf6,'insertion')){if(!_0x5c3dfb['isOwn'])continue;const _0x439f63=_0x976c06['getRanges']();for(const _0x239d76 of _0x439f63)if(!_0x35ccf6['getDifference'](_0x239d76)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x259b64){return this['editor']['plugins']['get']('Users')['getUser'](_0x259b64);}['_getExternalAuthor'](_0x54580c){const _0x189c1b=this['editor']['plugins']['get']('Users'),_0x383d91=_0x2461a5('external:'+_0x54580c),_0x31ea44=_0x189c1b['getUser'](_0x383d91);return _0x31ea44||_0x189c1b['addUser']({'id':_0x383d91,'name':_0x54580c});}['_createSuggestion'](_0x5014e7,_0x12e0da,_0x43397c,_0x427ec0,_0x19d9d6,_0x3c9249){const _0x5eabc8=this['_getAuthorFromId'](_0x427ec0);if(!_0x5eabc8)throw new _0x39508c('track-changes-user-not-found',this,{'authorId':_0x427ec0,'suggestionId':_0x43397c});const _0xba4db7=this['_suggestionFactory']['buildSuggestion'](_0x5014e7,_0x12e0da,_0x43397c,_0x5eabc8,_0x19d9d6,_0x20ce96=>{this['_updateSuggestionData'](_0x43397c,{'attributes':_0x20ce96});const _0x39d7e5=this['getSuggestion'](_0x43397c);this['_joinWithAdjacentSuggestions'](new Set([_0x39d7e5])),this['_refreshSuggestionsChain'](new Set([_0x39d7e5]));},_0x3c9249);return this['listenTo'](_0xba4db7,'accept',()=>{this['_updateSuggestionData'](_0x43397c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xba4db7,'discard',()=>{this['_updateSuggestionData'](_0x43397c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43397c,_0xba4db7),this['_suggestionState']['set'](_0xba4db7,'notReady'),_0xba4db7;}['_breakSuggestionMarker'](_0x2841e0,_0x53da81,_0x163e16){const _0x4f698b=_0x2841e0['getFirstRange'](),_0x54c6cd=_0x4f698b['start'],_0x1a2555=_0x4f698b['end'];this['_setSuggestionRange'](_0x2841e0,this['_model']['createRange'](_0x54c6cd,_0x53da81));const _0x22eb3b=_0x5bdaf9(),_0x362058=_0x2841e0['creator']['id'],_0x2fe9b2=_0x2841e0['type']+(_0x2841e0['subType']?':'+_0x2841e0['subType']:'');this['_setSuggestionData']({'id':_0x22eb3b,'type':_0x2fe9b2,'createdAt':new Date(),'authorId':_0x362058,'originalSuggestionId':_0x2841e0['_originalSuggestionId']||_0x2841e0['id'],'attributes':_0x2841e0['attributes'],'data':_0x2841e0['data']});const _0x3cad52=this['_getAttributeKey'](_0x2841e0);('formatBlock'==_0x2841e0['type']||_0x3cad52&&this['_suggestionsConversion']['isBlockAttribute'](_0x3cad52))&&(_0x163e16=this['_model']['createPositionBefore'](_0x163e16['parent'])),this['_addSuggestionMarker'](_0x2fe9b2,_0x22eb3b,_0x362058,this['_model']['createRange'](_0x163e16,_0x1a2555));}['_findSuggestions'](_0x4700d9,_0x39d971=null){const _0x577a57=[],_0x5a3d53=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4700d9)||(_0x4700d9=[_0x4700d9]);for(const _0x13f05e of this['getSuggestions']()){if(!_0x13f05e['isInContent'])continue;if(_0x39d971&&_0x13f05e['type']!=_0x39d971)continue;let _0x126300=!0x1;for(const _0x561bf0 of _0x13f05e['getRanges']()){for(const _0x4b9bbb of _0x4700d9){const _0x110c41=_0x4b9bbb['start']['isEqual'](_0x561bf0['end'])||_0x4b9bbb['end']['isEqual'](_0x561bf0['start']);if(_0x110c41||_0x4b9bbb['getIntersection'](_0x561bf0)){const _0x489dc3=_0x4b9bbb['containsRange'](_0x561bf0)&&qe(this['_model']['schema'],_0x561bf0['start'],_0x4b9bbb),_0x4c1380=_0x561bf0['containsRange'](_0x4b9bbb)&&qe(this['_model']['schema'],_0x4b9bbb['start'],_0x561bf0);_0x577a57['push']({'suggestion':_0x13f05e,'meta':{'isOwn':_0x5a3d53==_0x13f05e['author'],'isNextTo':_0x110c41,'isInsideObject':_0x489dc3,'containsRangeInObject':_0x4c1380}}),_0x126300=!0x0;break;}}if(_0x126300)break;}}return _0x577a57;}['_addSuggestionMarker'](_0x3d8d86,_0x1a0a7f,_0x36adb0,_0x5db382,_0x38c0f2){this['_model']['change'](_0x4e5e66=>{let _0x2e0fa4='suggestion:'+_0x3d8d86+':'+_0x1a0a7f+':'+_0x36adb0;_0x38c0f2&&(_0x2e0fa4=_0x2e0fa4+':'+_0x38c0f2),_0x4e5e66['addMarker'](_0x2e0fa4,{'range':_0x5db382,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x40cc6d){const _0x3f8089=_0x40cc6d['previous'],_0x3a9c7a=_0x40cc6d['next'];_0x40cc6d['previous']=null,_0x40cc6d['next']=null,null!=_0x3f8089&&_0x3f8089['next']==_0x40cc6d&&(_0x3f8089['next']=_0x3a9c7a),null!=_0x3a9c7a&&_0x3a9c7a['previous']==_0x40cc6d&&(_0x3a9c7a['previous']=_0x3f8089),'ready'==this['_suggestionState']['get'](_0x40cc6d)&&(this['_suggestionState']['set'](_0x40cc6d,'removed'),this['fire']('suggestionUnloaded',_0x40cc6d,_0x3f8089,_0x3a9c7a));}['_setSuggestionData'](_0x5ab2bc){const _0x11decf=_0x5ab2bc['id'],_0x5660be=this['addSuggestionData'](_0x5ab2bc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x399ef1=this['editor']['plugins']['get']('PendingActions'),_0x5f26df=_0x5660be['hasComments'],_0x59fb5f=_0x5660be['subType']?_0x5660be['type']+':'+_0x5660be['subType']:_0x5660be['type'],_0x5212c9=this['editor']['locale'],_0x48b1d1=_0x399ef1['add'](At(_0x5212c9,'PENDING_ACTION_SUGGESTION')),_0x35b302={'id':_0x11decf,'type':_0x59fb5f,'hasComments':_0x5f26df,'data':_0x5ab2bc['data']||null,'originalSuggestionId':_0x5ab2bc['originalSuggestionId']||null,'attributes':_0x5660be['attributes']};this['_adapter']['addSuggestion'](_0x35b302)['then'](_0x452c31=>{_0x5660be['_saved']=!0x0,_0x399ef1['remove'](_0x48b1d1),_0x452c31&&_0x452c31['createdAt']&&(this['_suggestions']['get'](_0x11decf)['createdAt']=_0x452c31['createdAt']);})['catch'](_0x268fb0=>{throw _0x995e46('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5660be['discard']();}),_0x5660be['stopListening'](),this['_suggestions']['delete'](_0x5660be['id']),this['_suggestionState']['delete'](_0x5660be),_0x268fb0;});}return _0x5660be;}['_updateSuggestionData'](_0x49a337,_0x44e9c0){const _0x23e531=this['editor']['plugins']['get']('PendingActions'),_0x48ced5=this['getSuggestion'](_0x49a337);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48ced5['_saved']){const _0xb59b87=_0x23e531['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49a337,_0x44e9c0)['then'](()=>{_0x23e531['remove'](_0xb59b87);});}else _0x48ced5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49a337,_0x44e9c0);});}}['_getSuggestionData'](_0x10fd26){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x39508c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10fd26);}['_handleNewSuggestionMarker'](_0x16800d){const {id:_0x5bd6f0,type:_0x25f653,subType:_0x5bddcd,authorId:_0x2cefec}=_0x4e67eb(_0x16800d),_0x35fb3b=this['_suggestions']['get'](_0x5bd6f0)||this['_createSuggestion'](_0x25f653,_0x5bddcd,_0x5bd6f0,_0x2cefec,{});switch(this['_checkSuggestionCorrectness'](_0x35fb3b,_0x25f653,_0x5bddcd,_0x2cefec),this['_suggestionState']['get'](_0x35fb3b)){case'notReady':this['_getSuggestionData'](_0x5bd6f0)['then'](_0x1e4274=>{let _0x519f1a=Promise['resolve']();_0x1e4274['hasComments']&&(_0x519f1a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5bd6f0})),_0x519f1a['then'](()=>{this['addSuggestionData'](_0x1e4274)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35fb3b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5bd6f0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35fb3b,'ready'),this['fire']('suggestionLoaded',_0x35fb3b);break;case'ready':this['fire']('suggestionChanged',_0x35fb3b);}return _0x35fb3b['addMarkerName'](_0x16800d),_0x35fb3b;}['_refreshSuggestionsChain'](_0x359259){const _0x3f7e70=Array['from'](_0x359259),_0x3d0739=_0x3f7e70['filter'](_0x3afb0f=>'attribute'==_0x3afb0f['type']);this['_refreshAttributeSuggestionsChain'](_0x3d0739);const _0x2c15c0=_0x3f7e70['filter'](_0x186edb=>!_0x186edb['isMultiRange']&&'attribute'!=_0x186edb['type']),_0x7a76fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46caae=>!_0x46caae['isMultiRange']&&'attribute'!=_0x46caae['type']),_0x5a363c=_0x7a76fe['filter'](_0x1080c8=>!_0x359259['has'](_0x1080c8)),_0xa98c60=new Map(_0x7a76fe['map'](_0x4149d3=>[_0x4149d3,this['_suggestionFactory']['getSuggestionCallback'](_0x4149d3['type'],_0x4149d3['subType'],'chain')])),_0x1503a0=new Map(_0x7a76fe['map'](_0x3a1af4=>[_0x3a1af4,_0x3a1af4['getFirstRange']()])),_0x3ef736=new Set(),_0x10ae5b=new Set();for(let _0x1b65f0=0x0;_0x1b65f0<_0x2c15c0['length'];_0x1b65f0++)_0x70cd06(_0x2c15c0[_0x1b65f0],_0x2c15c0,_0x1b65f0+0x1);for(let _0x477c6e=0x0;_0x477c6e<_0x2c15c0['length'];_0x477c6e++)_0x70cd06(_0x2c15c0[_0x477c6e],_0x5a363c,0x0);const _0x53f226=new Set();for(let _0x123d6b=0x0;_0x123d6b<_0x2c15c0['length'];_0x123d6b++){const _0x3af6a0=_0x2c15c0[_0x123d6b];!_0x10ae5b['has'](_0x3af6a0)&&_0x3af6a0['previous']&&(_0x53f226['add'](_0x3af6a0['previous']),_0x3af6a0['previous']['next']===_0x3af6a0&&(_0x3af6a0['previous']['next']=null),_0x3af6a0['previous']=null),!_0x3ef736['has'](_0x3af6a0)&&_0x3af6a0['next']&&(_0x53f226['add'](_0x3af6a0['next']),_0x3af6a0['next']['previous']===_0x3af6a0&&(_0x3af6a0['next']['previous']=null),_0x3af6a0['next']=null);}function _0x70cd06(_0x2b698b,_0x204696,_0x4a34d3){for(let _0x4a7cbb=_0x4a34d3;_0x4a7cbb<_0x204696['length'];_0x4a7cbb++){const _0x2d1c19=_0x53a721(_0x2b698b,_0x204696[_0x4a7cbb]);_0x2d1c19&&(_0x2d1c19[0x0]['next']=_0x2d1c19[0x1],_0x2d1c19[0x1]['previous']=_0x2d1c19[0x0],_0x3ef736['add'](_0x2d1c19[0x0]),_0x10ae5b['add'](_0x2d1c19[0x1]));}}function _0x53a721(_0x526381,_0x7312cb){if(_0x526381['author']['id']!==_0x7312cb['author']['id'])return null;const _0x3d2706=_0xa98c60['get'](_0x526381)(_0x526381,_0x7312cb,_0x1503a0['get'](_0x526381),_0x1503a0['get'](_0x7312cb));if(!_0x3d2706)return null;return _0xa98c60['get'](_0x7312cb)(_0x526381,_0x7312cb,_0x1503a0['get'](_0x526381),_0x1503a0['get'](_0x7312cb))?_0x3d2706[0x1]['commentThread']&&_0x3d2706[0x1]['commentThread']['length']?null:_0x3d2706:null;}_0x53f226['size']&&this['_refreshSuggestionsChain'](_0x53f226);}['_refreshAttributeSuggestionsChain'](_0x13625e){if(0x0==_0x13625e['length'])return;const _0xcdce87=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x235b6d=>'attribute'==_0x235b6d['type']&&_0x235b6d['_isDataLoaded']),_0x1396e2=[],_0x4bfdb9=new Map();for(const _0x284a8b of _0xcdce87){const _0x19d8be=_0x2461a5(_0x284a8b['attributes']);_0x4bfdb9['has'](_0x19d8be)||(_0x4bfdb9['set'](_0x19d8be,_0x1396e2['length']),_0x1396e2['push']([]));const _0x32e5a7=_0x4bfdb9['get'](_0x19d8be);_0x1396e2[_0x32e5a7]['push'](_0x284a8b);}!(function(){_0x1396e2['sort']((_0x5825c9,_0x7b86c7)=>{const _0x2d6da1=_0x5825c9[0x0]['createdAt'],_0x5b1f16=_0x7b86c7[0x0]['createdAt'];return _0x2d6da1==_0x5b1f16?_0x5825c9[0x0]['attributes']['groupId']<_0x7b86c7[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d6da1<_0x5b1f16?-0x1:0x1;});for(const _0x2272d5 of _0x1396e2)_0x2272d5['sort']((_0x2698ce,_0xd37da)=>_0x2698ce['id']<_0xd37da['id']?-0x1:0x1);}());for(let _0x1c6130=0x0;_0x1c6130<_0x1396e2['length'];_0x1c6130++){if(0x0==_0x1396e2[_0x1c6130]['length'])continue;const _0x4de951=[];for(let _0x4768a9=_0x1c6130+0x1;_0x4768a9<_0x1396e2['length'];_0x4768a9++)0x0!=_0x1396e2[_0x4768a9]['length']&&_0x2da896(_0x1396e2[_0x1c6130],_0x1396e2[_0x4768a9])&&_0x4de951['push'](_0x4768a9);for(const _0x2f8cc0 of _0x4de951)_0x1396e2[_0x1c6130]=_0x1396e2[_0x1c6130]['concat'](_0x1396e2[_0x2f8cc0]),_0x1396e2[_0x2f8cc0]=[];}for(const _0x374037 of _0x1396e2)for(let _0x45f853=0x0;_0x45f853<_0x374037['length'];_0x45f853++){const _0x3eb022=_0x374037[_0x45f853+0x1]||null;_0x374037[_0x45f853]['next']!==_0x3eb022&&(_0x374037[_0x45f853]['next']=_0x3eb022);}for(const _0x45e0b6 of _0x1396e2)for(let _0x5718cf=0x0;_0x5718cf<_0x45e0b6['length'];_0x5718cf++){const _0x344a75=_0x45e0b6[_0x5718cf-0x1]||null;_0x45e0b6[_0x5718cf]['previous']!==_0x344a75&&(_0x45e0b6[_0x5718cf]['previous']=_0x344a75);}function _0x2da896(_0x2c80df,_0x20b056){if(_0x2c80df[0x0]['attributes']['groupId']!==_0x20b056[0x0]['attributes']['groupId']&&_0x2c80df[0x0]['author']!==_0x20b056[0x0]['author'])return!0x1;if(!function(_0x151b2e,_0x55fa0b){if(!_0x151b2e['hasComments']&&!_0x55fa0b['hasComments'])return!0x0;if(_0x151b2e['hasComments']&&_0x55fa0b['hasComments'])return!0x1;if(_0x151b2e['hasComments']&&_0x55fa0b['createdAt']<_0x151b2e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x55fa0b['hasComments']&&_0x151b2e['createdAt']<_0x55fa0b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c80df[0x0],_0x20b056[0x0]))return!0x1;const _0x491902=ot(_0x2c80df[0x0]['attributes'],['groupId','trackingSessionId']),_0x2951c1=ot(_0x20b056[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x491902,_0x2951c1))return!0x1;if(_0x2c80df[0x0]['attributes']['groupId']==_0x20b056[0x0]['attributes']['groupId'])return!0x0;if(_0x2c80df[0x0]['attributes']['trackingSessionId']!==_0x20b056[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c80df['every'](_0x4d7afb=>_0x20b056['some'](_0x354dd0=>_0x4d7afb['getFirstRange']()['isEqual'](_0x354dd0['getFirstRange']())))&&_0x20b056['every'](_0x10fb6d=>_0x2c80df['some'](_0x39ef4e=>_0x10fb6d['getFirstRange']()['isEqual'](_0x39ef4e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4a1617){const _0x2c4ddc=Array['from'](_0x4a1617),_0x554600=this['getSuggestions']({'skipNotAttached':!0x0}),_0x359ccd=_0x554600['filter'](_0x44efd3=>!_0x4a1617['has'](_0x44efd3)),_0x3dae5f=new Map(_0x2c4ddc['map'](_0x20b3d3=>[_0x20b3d3,this['_suggestionFactory']['getSuggestionCallback'](_0x20b3d3['type'],_0x20b3d3['subType'],'join')])),_0x58b268=new Map(_0x554600['map'](_0x12416c=>[_0x12416c,_0x12416c['getRanges']()]));for(let _0x4f93eb=0x0;_0x4f93eb<_0x2c4ddc['length'];_0x4f93eb++){if(_0x574c4b(this,_0x2c4ddc[_0x4f93eb],_0x2c4ddc,_0x4f93eb+0x1))return!0x0;}for(let _0x328140=0x0;_0x328140<_0x2c4ddc['length'];_0x328140++){if(_0x574c4b(this,_0x2c4ddc[_0x328140],_0x359ccd,0x0))return!0x0;}return!0x1;function _0x574c4b(_0x380407,_0xdb6222,_0x2980f0,_0x42ccf3){for(let _0x3e3bfe=_0x42ccf3;_0x3e3bfe<_0x2980f0['length'];_0x3e3bfe++){const _0x3b6724=_0x2980f0[_0x3e3bfe];if(_0x3b6724['type']!==_0xdb6222['type']||_0x3b6724['author']['id']!==_0xdb6222['author']['id']||_0x3b6724['subType']!==_0xdb6222['subType'])continue;if(!an(_0xdb6222,_0x3b6724))continue;if('attribute'==_0xdb6222['type']&&_0xdb6222['data']['oldValue']!=_0x3b6724['data']['oldValue'])continue;if('attribute'==_0xdb6222['type']&&_0x380407['_suggestionsConversion']['isBlockAttribute'](_0xdb6222['data']['key']))continue;if('formatBlock'==_0xdb6222['type']){const _0x5c4837=_0x380407['editor']['model'],_0x42f95d=_0xdb6222['getContainedElement']();if(_0x42f95d&&(_0x5c4837['schema']['isObject'](_0x42f95d)||_0x5c4837['schema']['isLimit'](_0x42f95d)))continue;}const _0x139d72=_0x3dae5f['get'](_0xdb6222),_0x3159d0=_0x58b268['get'](_0xdb6222),_0x49e299=_0x58b268['get'](_0x3b6724),_0x17eafd=_0xdb6222['commentThread']&&_0xdb6222['commentThread']['length'],_0x2a12a3=_0x3b6724['commentThread']&&_0x3b6724['commentThread']['length'];if(!_0x17eafd&&_0x139d72(_0x49e299,_0x3159d0))return _0x380407['_joinSuggestions'](_0x3b6724,_0xdb6222),_0x58b268['delete'](_0xdb6222),!0x0;if(!_0x2a12a3&&_0x139d72(_0x3159d0,_0x49e299))return _0x380407['_joinSuggestions'](_0xdb6222,_0x3b6724),_0x58b268['delete'](_0x3b6724),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33efbe,_0xb95323){if(_0x33efbe['isMultiRange']){for(const _0x259d47 of _0xb95323['getRanges']())_0x33efbe['addRange'](_0x259d47);}else{const _0x4b6a63=_0xb95323['getFirstRange']()['end'];this['_setSuggestionRange'](_0x33efbe,this['_model']['createRange'](_0x33efbe['getFirstRange']()['start'],_0x4b6a63));}_0xb95323['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b3af2,_0x30a22c,_0x3fc2b1){const _0x275046=_0x3b3af2['startsWith']('format')||_0x3b3af2['startsWith']('attribute')?'FORMATTING':_0x3b3af2['toUpperCase']();return At(this['editor']['locale'],_0x30a22c+'_'+_0x275046+'_SUGGESTION_ANNOUNCEMENT',_0x3fc2b1);}['_initAriaMarkerChangeAnnouncements'](){const _0x49831d=this['editor'];if(!_0x49831d['ui'])return;const {ariaLiveAnnouncer:_0x134551}=_0x49831d['ui'];_0x440ad8(this['_model'],({left:_0x460972,entered:_0x2eb3ee})=>{for(const _0x5cf698 of _0x460972){const {group:_0x5b9610,type:_0x58cef0}=_0x4e67eb(_0x5cf698['name']);if('suggestion'===_0x5b9610){_0x134551['announce'](this['_getMarkerAnnouncementText'](_0x58cef0,'LEAVE'));break;}}for(const _0xd0d927 of _0x2eb3ee){const {group:_0x4965d5,type:_0x4ec564}=_0x4e67eb(_0xd0d927['name']);if('suggestion'===_0x4965d5){_0x134551['announce'](this['_getMarkerAnnouncementText'](_0x4ec564,'ENTER',_0x54ce12(_0xbae3dd)));break;}}});}['_processAttributeChanges'](_0x46261f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c12c5=this['editor'],_0x56f16d=_0x1c12c5['model']['document']['differ']['getChanges']();if(0x0==_0x56f16d['length'])return!0x1;const _0x2c6fd9=[],_0x497bde=_0x56f16d['filter'](_0x5a4940=>'attribute'==_0x5a4940['type']),_0x377932=_0x56f16d['filter'](_0x342d85=>'insert'==_0x342d85['type']&&'$text'!=_0x342d85['name']),_0x57de56=_0x56f16d['filter'](_0x568561=>'remove'==_0x568561['type']&&'$text'!=_0x568561['name']);for(const _0x3a63dc of _0x497bde)_0x2c6fd9['push']({'key':_0x3a63dc['attributeKey'],'newValue':_0x3a63dc['attributeNewValue'],'oldValue':_0x3a63dc['attributeOldValue'],'range':sn(_0x3a63dc['range'],_0x1c12c5['model'])});for(const _0x1d36a8 of _0x377932){const _0x2e1130=_0x57de56['find'](_0xa542fb=>_0xa542fb['position']['isEqual'](_0x1d36a8['position']));_0x2e1130&&_0x2c6fd9['push']({'key':Ke,'newValue':_0x1d36a8['name'],'oldValue':_0x2e1130['name'],'range':_0x1c12c5['model']['createRangeOn'](_0x1d36a8['position']['nodeAfter'])});}return 0x0!=_0x2c6fd9['length']&&this['_reduceExistingSuggestions'](_0x46261f,_0x2c6fd9);}['_processAttributeSuggestions'](_0xf44f11){let _0x3781a2=!0x1;const _0x4e7eda=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcaef5b=>_0xcaef5b['data']['newRange']&&_0xcaef5b['name']['startsWith']('suggestion:attribute:'));for(const _0x58927a of _0x4e7eda){const {subType:_0x3a459f,id:_0x11d7d8}=_0x4e67eb(_0x58927a['name']),_0xb068a6=_0x3a459f['split']('|')[0x0];for(const _0x22d62b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22d62b['id']!=_0x11d7d8&&'attribute'==_0x22d62b['type']&&_0x22d62b['data']&&_0x22d62b['data']['key']==_0xb068a6&&_0x22d62b['getFirstRange']()['isIntersecting'](_0x58927a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22d62b,_0x58927a['data']['newRange'],_0xf44f11),_0x3781a2=!0x0);}return _0x3781a2;}['recordAttributeChanges'](_0x590560){this['_recordAttributeSuggestions']=!0x0,_0x590560();}['_reduceExistingSuggestions'](_0xceb165,_0x57c942){if(0x0==_0x57c942['length'])return!0x1;let _0x35662a=!0x1;for(const _0x2a606d of _0x57c942){const _0x4bda88=this['_findSuggestions'](_0x2a606d['range'],'attribute')['filter'](_0x2bf2e0=>!_0x2bf2e0['meta']['isNextTo'])['map'](_0x40aad2=>_0x40aad2['suggestion']),_0x1032f8=_0x2461a5({'newValue':_0x2a606d['newValue']});_0x4bda88['filter'](_0xaf5445=>{const [_0x104a5f,_0x5d58b3]=_0xaf5445['subType']['split']('|');return _0x104a5f==_0x2a606d['key']&&_0x5d58b3!=_0x1032f8;})['forEach'](_0x14a01b=>{this['_reduceSuggestionAttributeRange'](_0x14a01b,_0x2a606d['range'],_0xceb165),_0x35662a=!0x0;});}return _0x35662a;}['_reduceSuggestionAttributeRange'](_0x477271,_0x27501b,_0x42e971){const _0x3c8569=_0x477271['getFirstRange']()['getDifference'](_0x27501b);0x0!==_0x3c8569['length']?0x1!==_0x3c8569['length']?this['_breakSuggestionMarker'](_0x477271,_0x27501b['start'],_0x27501b['end']):this['_setSuggestionRange'](_0x477271,_0x3c8569[0x0]):_0x42e971['removeMarker'](_0x477271['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x272be2){this['_editor']=_0x272be2,this['_model']=_0x272be2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x88172a,_0x562368,_0x35bbbc,_0x266c2b,_0x52f9ec,_0x5006e4,_0x505d50){return new bt(this['_model'],{'type':_0x88172a,'subType':_0x562368,'id':_0x35bbbc,'originalSuggestionId':_0x505d50,'author':_0x266c2b,'creator':_0x266c2b,'attributes':_0x52f9ec,'onAttributesChange':_0x5006e4,'onAccept':(..._0x59e1f8)=>this['getSuggestionCallback'](_0x88172a,_0x562368,'accept')(..._0x59e1f8),'onDiscard':(..._0x549189)=>this['getSuggestionCallback'](_0x88172a,_0x562368,'discard')(..._0x549189)});}['registerCustomCallback'](_0x474080,_0x3e43a3,_0x6ea9e1,_0x3ff86f){const _0x51f755=_0x474080+':'+_0x3e43a3+':'+_0x6ea9e1;this['_customCallbacks']['set'](_0x51f755,_0x3ff86f);}['getSuggestionCallback'](_0x52ed17,_0x584b41,_0x476ac9){const _0x507e84=_0x52ed17+':'+_0x584b41+':'+_0x476ac9;return this['_customCallbacks']['get'](_0x507e84)||this['_defaultCallbacks']['get'](_0x52ed17+':'+_0x476ac9);}['_registerDefaultCallbacks'](){const _0x369557=()=>!0x1,_0x1422b7=_0x4886a0=>{_0x4886a0['sort']((_0x32a735,_0x44623f)=>_0x32a735['start']['isBefore'](_0x44623f['start'])?0x1:-0x1),this['_model']['change'](_0x29c39d=>{for(const _0xb054c6 of _0x4886a0){let _0x2cc328;_0x2cc328=_0xb054c6['end']['isAtEnd']&&_0xb054c6['end']['parent']==_0xb054c6['start']['nodeAfter']?_0x29c39d['createSelection'](_0xb054c6['start']['nodeAfter'],'on'):_0x29c39d['createSelection'](_0xb054c6),this['_model']['deleteContent'](_0x2cc328,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x182296=(_0x265924,_0x5b5239)=>{_0x5b5239&&this['_model']['change'](_0x32db7c=>{const {commandName:_0x345d3f,commandParams:_0x542b0f=[]}=_0x5b5239,_0x31249e=_0x265924['map'](_0x54fe59=>(Qe(_0x54fe59)&&(_0x54fe59=this['_model']['createRange'](_0x54fe59['end'])),_0x54fe59))['filter'](_0x24d8f6=>'$graveyard'!==_0x24d8f6['root']['rootName']);if(_0x31249e['length']<0x1)return;const _0x490f3b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x160343=>_0x2db68d['fromRange'](_0x160343));_0x32db7c['setSelection'](_0x31249e);for(const _0x11d9d0 of this['_editor']['commands']['commands']())_0x11d9d0['refresh']();_0x542b0f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x345d3f,..._0x542b0f);const _0x33fd3e=_0x490f3b['filter'](_0x2b3bb7=>'$graveyard'!=_0x2b3bb7['root']['rootName']);_0x33fd3e['length']>0x0&&_0x32db7c['setSelection'](_0x33fd3e);for(const _0x306062 of _0x490f3b)_0x306062['detach']();});},_0x14f52a=(_0x21aceb,_0x40a5f5)=>0x1==_0x21aceb['length']&&0x1==_0x40a5f5['length']&&_0x21aceb[0x0]['end']['isEqual'](_0x40a5f5[0x0]['start']),_0x3843cc=(_0x4f655f,_0x1eeb09,_0x4e3b98,_0x5a5fd4)=>on(_0x4f655f,_0x1eeb09,_0x4e3b98,_0x5a5fd4)?[_0x4f655f,_0x1eeb09]:on(_0x1eeb09,_0x4f655f,_0x5a5fd4,_0x4e3b98)?[_0x1eeb09,_0x4f655f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x369557),this['_defaultCallbacks']['set']('insertion:discard',_0x1422b7),this['_defaultCallbacks']['set']('insertion:join',_0x14f52a),this['_defaultCallbacks']['set']('insertion:chain',_0x3843cc),this['_defaultCallbacks']['set']('deletion:accept',_0x1422b7),this['_defaultCallbacks']['set']('deletion:discard',_0x369557),this['_defaultCallbacks']['set']('deletion:join',_0x14f52a),this['_defaultCallbacks']['set']('deletion:chain',_0x3843cc),this['_defaultCallbacks']['set']('formatInline:accept',_0x182296),this['_defaultCallbacks']['set']('formatInline:discard',_0x369557),this['_defaultCallbacks']['set']('formatInline:join',_0x14f52a),this['_defaultCallbacks']['set']('formatInline:chain',_0x369557),this['_defaultCallbacks']['set']('formatBlock:accept',_0x182296),this['_defaultCallbacks']['set']('formatBlock:discard',_0x369557),this['_defaultCallbacks']['set']('formatBlock:join',_0x14f52a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x369557),this['_defaultCallbacks']['set']('attribute:accept',_0x369557),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c04ac,_0x368e5b)=>{if(!_0x368e5b)return;const _0x23f8ed=this['_editor']['plugins']['get'](_0x6f2dbb);this['_model']['change'](_0x5d86=>{if(_0x368e5b['key']==Ke)for(const _0x337b69 of _0x2c04ac){const _0x159b9b=_0x337b69['start']['nodeAfter'],_0xa5f146=_0x368e5b['oldValue'];_0x5d86['rename'](_0x159b9b,_0xa5f146);}else{if(_0x23f8ed['isBlockAttribute'](_0x368e5b['key'])){for(const _0x3e74e7 of _0x2c04ac)void 0x0!==_0x368e5b['oldValue']?_0x5d86['setAttribute'](_0x368e5b['key'],_0x368e5b['oldValue'],_0x3e74e7['start']['nodeAfter']):_0x5d86['removeAttribute'](_0x368e5b['key'],_0x3e74e7['start']['nodeAfter']);}else{for(const _0xa4dfc9 of _0x2c04ac)_0x368e5b['oldValue']?_0x5d86['setAttribute'](_0x368e5b['key'],_0x368e5b['oldValue'],_0xa4dfc9):_0x5d86['removeAttribute'](_0x368e5b['key'],_0xa4dfc9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14f52a);}}function qe(_0x4af829,_0x221802,_0x3d7ea5){for(const _0x216d20 of _0x221802['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x216d20['root']==_0x216d20)return!0x1;if(!_0x3d7ea5['containsItem'](_0x216d20))return!0x1;if(_0x4af829['isObject'](_0x216d20)||_0x4af829['isLimit'](_0x216d20))return!0x0;}return!0x1;}function Qe(_0x5b39ee){return _0x5b39ee['end']['parent']==_0x5b39ee['start']['nodeAfter']&&_0x5b39ee['end']['isAtStart'];}function Ze(_0x490d4f,_0x2feec4,_0x5e33af,_0x5971bc){const _0x44cee1=_0x2c6a37=>!_0x2c6a37['item']['is']('$textProxy')&&!_0x5971bc['isObject'](_0x2c6a37['item']),_0x327d76=_0x490d4f['start']['getLastMatchingPosition'](_0x44cee1),_0x4b4518=_0x490d4f['end']['getLastMatchingPosition'](_0x44cee1,{'direction':'backward'});return(!_0x490d4f['start']['isEqual'](_0x327d76)||!_0x490d4f['end']['isEqual'](_0x4b4518))&&(_0x327d76['isBefore'](_0x4b4518)?_0x5e33af['updateMarker'](_0x2feec4,{'range':_0x5e33af['createRange'](_0x327d76,_0x4b4518)}):_0x5e33af['removeMarker'](_0x2feec4),!0x0);}function Je(_0x8b7749){return _0x2461a5(_0x8b7749);}function tn(_0x424c82){const _0x2a4191=_0x424c82['start']['nodeAfter'];return _0x2a4191&&_0x2a4191['is']('element');}function en(_0x4457c9){return Qe(_0x4457c9)||function(_0xd5d09b){return _0xd5d09b['start']['parent']==_0xd5d09b['end']['nodeBefore']&&_0xd5d09b['start']['isAtEnd'];}(_0x4457c9);}function nn(_0x315d4c,_0x512030){try{const _0x56a648=_0x315d4c['getRange']();for(const _0x2e7f7e of _0x512030)if(_0x315d4c!==_0x2e7f7e&&_0x56a648&&_0x56a648['isIntersecting'](_0x2e7f7e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x3a29b0,_0x1e9377){return null==_0x3a29b0['end']['nodeBefore']&&_0x3a29b0['end']['parent']==_0x3a29b0['start']['nodeAfter']?rn(_0x3a29b0['start']['nodeAfter'],_0x1e9377):_0x3a29b0;}function rn(_0x3f577a,_0x1ebe82){const _0x18d220=_0x1ebe82['schema']['isObject'](_0x3f577a)||_0x1ebe82['schema']['isSelectable'](_0x3f577a);return _0x1ebe82['createRange'](_0x1ebe82['createPositionAt'](_0x3f577a,'before'),_0x18d220?_0x1ebe82['createPositionAfter'](_0x3f577a):_0x1ebe82['createPositionAt'](_0x3f577a,'end'));}function on(_0x2a17cb,_0x4010e8,_0x5c873e,_0x51072e){return!!an(_0x2a17cb,_0x4010e8)&&_0x5c873e['end']['isEqual'](_0x51072e['start']);}function an(_0x405870,_0x82ff75){if(!_0x405870['_isDataLoaded']||!_0x82ff75['_isDataLoaded'])return!0x1;const _0x218c5a=new Set(Object['keys'](_0x405870['attributes'])),_0x416047=new Set(Object['keys'](_0x82ff75['attributes']));if(_0x218c5a['delete']('groupId'),_0x416047['delete']('groupId'),0x0==_0x218c5a['size']&&0x0==_0x416047['size'])return!0x0;if(_0x218c5a['size']!=_0x416047['size'])return!0x1;const _0x21741a={..._0x405870['attributes']},_0x582510={..._0x82ff75['attributes']};return delete _0x21741a['groupId'],delete _0x582510['groupId'],JSON['stringify'](_0x21741a)==JSON['stringify'](_0x582510);}function cn(_0x4958e2,_0x91f557){const _0x161156=ln(_0x4958e2['attributes']),_0x213823=ln(_0x91f557);if(!_0x4958e2['_isDataLoaded'])return!0x1;for(const _0x258a49 of Object['keys'](_0x213823))if(!st(_0x161156[_0x258a49],_0x213823[_0x258a49]))return!0x1;return!0x0;}function ln(_0x1e7fe5){const _0x5d2c29=Object['assign']({},_0x1e7fe5);return delete _0x5d2c29['skipNestingCheck'],delete _0x5d2c29['tablePasteChainId'],_0x5d2c29;}function un(_0x1b7714){return _0x1b7714['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x2fa907(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd741fe,_0x3d73a4,_0x2e20fa,_0x5e66c8){super(),this['model']=_0x3d73a4,this['view']=_0x2e20fa,this['commentThreadController']=_0x5e66c8,this['_editor']=_0xd741fe,this['_acceptCommand']=_0xd741fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd741fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x59bf5f,_0x367639)=>_0x59bf5f||_0x367639),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x284982=>_0x284982&&this['_editor']['model']['canEditAt'](_0x3d73a4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24de6d=>_0x24de6d&&this['_editor']['model']['canEditAt'](_0x3d73a4['getRanges']())),this['_pendingAction']=null,_0x2e20fa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e20fa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e20fa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e20fa,'change:isDirty',()=>{_0x2e20fa['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 _0x337ed1=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x337ed1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x13db81{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe23237,_0x9eb548,_0x14ee62,_0x2e51ec){super(_0xe23237),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3975d4(_0xe23237,At(_0xe23237,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9eb548['authoredAt']),this['bind']('authoredAt')['to'](_0x9eb548),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',_0x9eb548,'authoredAt',this,'descriptionParts',(_0x3efcfa,_0x236903,_0x2ce7fa)=>{const _0x5e1442=_0x2ce7fa['map'](_0x5ae39f=>gt(_0x5ae39f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3efcfa-0x1,_0x9eb548['author']['name'],_0x236903?_0x2e51ec['formatDateTime'](_0x236903):'',new DOMParser()['parseFromString'](_0x5e1442,'text/html')['body']['textContent']]);}),this['focusables']=new _0x50b7e0(),this['focusTracker']=new _0x4587e6(),this['keystrokes']=new _0x4b9860(),this['focusCycler']=new _0x332e99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5872ab=>_0x5872ab['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9eb548,this['_localUser']=_0x14ee62,this['_config']=_0x2e51ec,_0x2e51ec['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3d2b16(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ec8bf}=this['_config'];this['commentsListView']=new _0x1ec8bf(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',_0x2bb794=>_0x2bb794+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1220d2,_0xd51326)=>_0x1220d2||!!_0xd51326);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x302214}=this['_config'],_0x387f84=new _0x302214(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ef37c=_0x387f84['commentInputView'];return _0x387f84['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ef37c,'value',(_0x28f3cc,_0x2f6aac,_0x3f6b7f)=>!!_0x3f6b7f||_0x28f3cc&&!_0x2f6aac),_0x1ef37c['on']('submit',(_0x5f364d,_0x535902)=>{this['fire']('addComment',_0x535902),_0x1ef37c['editor']['setData']('');}),_0x1ef37c['on']('cancel',()=>this['focus']()),_0x1ef37c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x387f84;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x1d4088,_0x25f872,_0x150ff6,_0x3562c4){super(_0x1d4088,_0x25f872,_0x150ff6,_0x3562c4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdeb076=>_0xdeb076&&_0xdeb076[0x0]?_0xdeb076[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x13fe3a,_0x1e97fc)=>{let _0x4a0c5c='';for(const _0x3818be of _0x13fe3a)_0x4a0c5c+='<p>'+gt(_0x3818be['content'],_0x3818be['color'])+'</p>';return _0x1e97fc?_0x4a0c5c:_0x45c4cd(_0x4a0c5c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3562c4['SuggestionView'](_0x1d4088,_0x25f872,{'formatDateTime':_0x3562c4['formatDateTime']}),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 _0x2fd55d=this['bindTemplate'],_0x19f3ff=[this['suggestionView']];return this['commentsListView']&&_0x19f3ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x19f3ff['push'](this['commentThreadInputView']),_0x19f3ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2fd55d['if']('isActive','ck-suggestion-wrapper--active'),_0x2fd55d['to']('type',_0x2dfbd9=>'ck-suggestion-'+_0x2dfbd9),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':_0x2fd55d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x19f3ff};}['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));}}class gn extends _0x13db81{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4265b4,_0x3de5b0,_0x2c1561){super(_0x4265b4),this['_model']=_0x3de5b0,this['_config']=_0x2c1561,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3de5b0),this['acceptButton']=this['_createButton'](At(_0x4265b4,'Accept\x20suggestion'),_0x4dc961,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x4265b4,'Discard\x20suggestion'),_0x13289a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x33f779(_0x4265b4,_0x3de5b0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x50b7e0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4587e6(),this['keystrokes']=new _0x4b9860(),this['focusCycler']=new _0x332e99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f03bf=>_0x1f03bf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4678af=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4678af['innerHTML']=this['description'],this['on']('change:description',(_0x5d5d17,_0x56eace,_0x49dbbd)=>{_0x4678af['innerHTML']=_0x49dbbd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5d7ec8=this['bindTemplate'],_0x11652f=[{'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':_0x5d7ec8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5d7ec8['to']('authoredAt',_0xb15caf=>this['_config']['formatDateTime'](_0xb15caf))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x11652f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'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':_0x11652f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x45017b,_0x2cd0d4,_0x4ea356,_0x376db3,_0x173c9f){const _0x15ab78=new _0x1d23bb(this['locale']);return _0x15ab78['set']({'label':_0x45017b,'icon':_0x2cd0d4,'tooltip':!0x0,'tooltipPosition':_0x173c9f}),_0x15ab78['extendTemplate']({'attributes':{'class':_0x4ea356}}),_0x15ab78['on']('execute',()=>{this['fire'](_0x376db3,this['_model']['id']);}),_0x15ab78;}['_setupKeyboardNavigation'](){const _0xf424d=this['element'];this['keystrokes']['listenTo'](_0xf424d);for(const _0x107384 of this['focusables'])this['focusTracker']['add'](_0x107384['element']),this['keystrokes']['listenTo'](_0x107384['element']);this['keystrokes']['set']('enter',(_0x4b4312,_0x577607)=>{_0xf424d===_0x4b4312['target']&&(this['focusCycler']['focusFirst'](),_0x577607());}),this['keystrokes']['set']('esc',(_0x2bf116,_0x483758)=>{_0xf424d!==_0x2bf116['target']&&(this['focus'](),_0x483758());});}}class mn extends _0x40e6e8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x28a6ab,_0xfd6006,_0xe7d6fa,_0x4cdd92];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362519){super(_0x362519),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14e3ee=this['editor']['config'];_0x14e3ee['define']('trackChanges.SuggestionThreadView',fn),_0x14e3ee['define']('trackChanges.SuggestionView',gn),_0x14e3ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14e3ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55e81c,_0x5b73c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x400042,_0x42f99f]of this['_handleControllerBuffer']){const _0x5d6c19=this['_suggestionToController']['has'](_0x400042);_0x5d6c19||_0x42f99f?_0x5d6c19&&_0x42f99f&&this['_destroyController'](_0x400042):this['_initializeController'](_0x400042);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4cdd92)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55e81c,_0x5b73c9);}['init'](){const _0x280cd3=this['editor'],_0x3ddcdf=_0x280cd3['plugins']['get'](Xe),_0x413185=_0x280cd3['plugins']['get'](_0xe7d6fa),_0x433995=_0x280cd3['plugins']['get'](_0x4cdd92),_0x5a6cea=_0x280cd3['plugins']['get'](_0xfd6006);this['_addUIComponentsToFactory'](),_0x433995['addSourceCollector'](()=>{const _0x279c7a=[];for(const [_0x533662,_0x225c4e]of Array['from'](this['_suggestionToController'])){const _0x46746d=_0x533662['getAllAdjacentSuggestions'](),_0x350174=[];for(const _0x450165 of _0x46746d){if(!_0x450165['isInContent'])continue;if(_0x450165['isMultiRange']){_0x350174['push'](..._0x450165['getRanges']());continue;}const _0x205fbf=_0x450165['getFirstRange']();if(_0x350174['length']>0x0){const _0x36bd78=_0x350174[0x0]['getJoined'](_0x205fbf);if(_0x36bd78){_0x350174[0x0]=_0x36bd78;continue;}}_0x350174['push'](_0x205fbf);}_0x279c7a['push']([_0x225c4e['view'],_0x350174]);}return _0x279c7a;}),this['listenTo'](_0x3ddcdf,'suggestionLoaded',(_0x1c235e,_0x4cee3b)=>{this['listenTo'](_0x4cee3b,'change:previous',(_0x573f62,_0x588557,_0x1bbb5b,_0x1bc6cf)=>{_0x4cee3b['isInContent']&&(null==_0x1bbb5b?(this['_updateController'](_0x1bc6cf['head']),this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x1)):(this['_updateController'](_0x1bbb5b['head']),null==_0x1bc6cf&&this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x0)));}),null!==_0x4cee3b['previous']?this['_updateController'](_0x4cee3b['head']):this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x1);}),this['listenTo'](_0x3ddcdf,'suggestionUnloaded',(_0x5717ab,_0x3c8e07,_0x48d2dc)=>{this['stopListening'](_0x3c8e07,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c8e07),this['_suggestionToController']['has'](_0x3c8e07)&&this['_destroyController'](_0x3c8e07),_0x48d2dc&&this['_updateController'](_0x48d2dc['head']);}),this['listenTo'](_0x3ddcdf,'suggestionChanged',(_0x4dc67b,_0x200f94)=>{this['_updateController'](_0x200f94);}),this['listenTo'](_0x413185,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a6cea,'addComment',(_0xa6455,{threadId:_0x17befa,isFromAdapter:_0x2ba428})=>{if(_0x2ba428||!_0x3ddcdf['hasSuggestion'](_0x17befa))return;const _0x32e368=_0x3ddcdf['getSuggestion'](_0x17befa);this['_suggestionToController']['get'](_0x32e368)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36d878=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3976be;for(const _0x29c9f0 in _0x36d878){const _0x35d883=_0x29c9f0,_0x172ff9=_0x36d878[_0x35d883];if('trackChangesLicenseKeyValid'==_0x172ff9||'trackChangesLicenseKeyInvalid'==_0x172ff9||'trackChangesLicenseKeyExpired'==_0x172ff9||'trackChangesLicenseKeyDomainLimit'==_0x172ff9||'trackChangesLicenseKeyNotAllowed'==_0x172ff9||'trackChangesLicenseKeyEvaluationLimit'==_0x172ff9||'trackChangesLicenseKeyUsageLimit'==_0x172ff9){delete _0x36d878[_0x35d883],_0x3976be=_0x172ff9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3976be&&_0x36d878['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3976be&&_0x36d878['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3976be&&_0x36d878['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3976be&&_0x36d878['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3976be&&_0x36d878['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3976be&&_0x36d878['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4d5d7b){const _0x2b5872=this['_suggestionToController']['get'](_0x4d5d7b);if(!_0x2b5872)return null;return this['editor']['plugins']['get'](_0xe7d6fa)['getByInnerView'](_0x2b5872['view'])||null;}['getSuggestionForAnnotation'](_0x342cda){const _0x10f69e=this['_viewToController']['get'](_0x342cda['innerView']);return _0x10f69e?_0x10f69e['model']:null;}['_refreshActiveMarkers'](){const _0x3805e7=this['editor']['plugins']['get'](_0xe7d6fa),_0x18251e=this['editor']['plugins']['get'](Xe),_0x56e42a=Array['from'](_0x3805e7['activeAnnotations'],_0x38d206=>_0x38d206['innerView'])['filter'](_0x1d6ef8=>this['_viewToController']['has'](_0x1d6ef8)),_0x3b1e7c=[];for(const _0x217654 of _0x56e42a){const _0x39acb6=this['_viewToController']['get'](_0x217654)['model']['getAllAdjacentSuggestions']();_0x3b1e7c['push'](..._0x39acb6['reduce']((_0x227d74,_0x3391fa)=>[..._0x227d74,..._0x3391fa['getMarkerNames']()],[]));}_0x18251e['activeMarkers']=_0x3b1e7c;}['_addUIComponentsToFactory'](){const _0xb32cd5=this['editor'],_0x4ef0a8=_0xb32cd5['locale'],_0x5749d2=At(_0x4ef0a8,'Track\x20changes'),_0x5f2585=new _0x21c64a([{'type':'switchbutton','model':new _0x371bdb({'withText':!0x0,'isToggleable':!0x0,'label':_0x5749d2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb32cd5['plugins']['has']('TrackChangesPreview')&&_0x5f2585['addMany']([{'type':'separator'},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xcaacbd of _0x5f2585)if(En(_0xcaacbd)){const _0x3658db=_0xb32cd5['commands']['get'](_0xcaacbd['model']['commandName']);_0xcaacbd['model']['bind']('isOn','isEnabled')['to'](_0x3658db,'value','isEnabled');}_0xb32cd5['ui']['componentFactory']['add']('trackChanges',_0x5a7ff7=>this['_createToolbarButton'](_0x5a7ff7,_0x5f2585,_0x5749d2)),_0xb32cd5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x268811=>this['_createMenuBarMenu'](_0x268811,_0x5f2585,_0x5749d2));}['_createToolbarButton'](_0x462f80,_0x5df3a5,_0x5ca22){const _0x357cc6=_0x4be376(_0x462f80,_0xc3efb),_0x5c620b=this['editor']['commands']['get']('trackChanges');_0x357cc6['buttonView']['set']({'tooltip':_0x5ca22,'label':_0x5ca22,'icon':_0x4d400d}),_0x357cc6['buttonView']['bind']('isOn')['to'](_0x5c620b,'value'),_0x357cc6['buttonView']['on']('execute',()=>{_0x5c620b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2fc987(_0x357cc6,_0x5df3a5,{'role':'menu'});const _0x32ffdc=[];for(const _0x1bda20 of _0x5df3a5)En(_0x1bda20)&&_0x32ffdc['push'](this['editor']['commands']['get'](_0x1bda20['model']['commandName']));const _0x14a8a3=_0x357cc6['buttonView'];return _0x14a8a3['actionView']['unbind']('isEnabled'),_0x14a8a3['arrowView']['unbind']('isEnabled'),_0x14a8a3['actionView']['bind']('isEnabled')['to'](_0x5c620b,'isEnabled'),_0x14a8a3['arrowView']['bind']('isEnabled')['toMany'](_0x32ffdc,'isEnabled',(..._0x3e285c)=>_0x3e285c['some'](_0x506737=>_0x506737)),_0x357cc6['on']('execute',_0x32ac37=>{this['editor']['execute'](_0x32ac37['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x357cc6;}['_createMenuBarMenu'](_0x4896eb,_0x58541e,_0x70681f){const _0x90f204=new _0x21a499(_0x4896eb),_0x48365c=this['editor']['commands']['get']('trackChanges');_0x90f204['buttonView']['set']({'label':_0x70681f,'icon':_0x4d400d});const _0x2b461e=new _0x6cd25d(_0x4896eb);for(const _0x2abf74 of _0x58541e){if('separator'==_0x2abf74['type']){_0x2b461e['items']['add'](new _0x372b10(_0x4896eb));continue;}const _0xc751de=new _0x1d2e19(_0x4896eb,_0x90f204),_0x4e9514=new _0x24d5a3(_0x4896eb),_0x1d55f9=_0x2abf74['model'];_0x4e9514['bind'](...Object['keys'](_0x1d55f9))['to'](_0x1d55f9),_0x4e9514['delegate']('execute')['to'](_0x90f204),_0x4e9514['on']('execute',()=>{this['editor']['execute'](_0x1d55f9['commandName']),this['editor']['editing']['view']['focus']();}),_0xc751de['children']['add'](_0x4e9514),_0x2b461e['items']['add'](_0xc751de);}return _0x90f204['bind']('isEnabled')['to'](_0x48365c,'isEnabled'),_0x90f204['panelView']['children']['add'](_0x2b461e),_0x90f204;}['_initializeController'](_0x45d768){const _0x54f3f7=this['editor'],_0x1c5fe4=_0x54f3f7['config'],_0x18976a=_0x54f3f7['plugins']['get'](_0xe7d6fa),_0x245ab4=_0x54f3f7['plugins']['get'](_0xfd6006),_0x28a415=_0x54f3f7['plugins']['get'](_0x4cdd92),_0x5965c8=_0x54f3f7['plugins']['get'](_0x28a6ab)['me'],_0x35a734=_0x1c5fe4['get']('trackChanges')['SuggestionThreadView'],_0x1ed8ce=_0x1c5fe4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x388339,CommentThreadInputView:_0xeec57c}=_0x54f3f7['plugins']['get']('CommentsUI');let _0x43f2d8,_0x3130b0,_0x1fa642;this['_annotationViews']['has'](_0x45d768['id'])?(_0x3130b0=this['_annotationViews']['get'](_0x45d768['id']),_0x43f2d8=_0x3130b0['mainView']):(_0x43f2d8=new _0x35a734(_0x54f3f7['locale'],_0x45d768,_0x5965c8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c5fe4['get']('comments.editorConfig'),'licenseKey':_0x1c5fe4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c5fe4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c5fe4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c5fe4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcd4b37(_0x1c5fe4['get']('locale'),_0x54f3f7['locale']),'CommentView':_0x1c5fe4['get']('comments')['CommentView'],'CommentsListView':_0x388339,'CommentThreadInputView':_0xeec57c,'SuggestionView':_0x1ed8ce}),_0x43f2d8['suggestionView']['acceptButton']['on']('execute',()=>{_0x54f3f7['editing']['view']['focus']();}),_0x43f2d8['suggestionView']['discardButton']['on']('execute',()=>{_0x54f3f7['editing']['view']['focus']();}),_0x3130b0=_0x18976a['createAnnotationView'](this['editor']['locale'],_0x43f2d8),_0x3130b0['bind']('isDirty')['to'](_0x43f2d8,'isDirty'),_0x3130b0['bind']('length')['to'](_0x43f2d8),_0x3130b0['bind']('type')['to'](_0x43f2d8,'type',_0x44119b=>'suggestion-'+_0x44119b),_0x43f2d8['on']('escape',()=>{_0x1fa642['fire']('escape');}),this['_annotationViews']['set'](_0x45d768['id'],_0x3130b0));const _0x506c59=_0x245ab4['createCommentThreadController'](_0x45d768['commentThread'],_0x43f2d8),_0x438c0c=new hn(_0x54f3f7,_0x45d768,_0x43f2d8,_0x506c59),_0x10724d=_0x45d768['getAllAdjacentSuggestions']()['filter'](_0x49ab51=>_0x49ab51['isInContent']);_0x43f2d8['descriptionParts']=_0x54f3f7['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x10724d),this['_suggestionToController']['set'](_0x45d768,_0x438c0c),this['_viewToController']['set'](_0x43f2d8,_0x438c0c);const _0x97a5a8=()=>{const _0x18b869=[],_0x23b47b=_0x45d768['getAllAdjacentSuggestions']()['filter'](_0xad23f9=>_0xad23f9['isInContent']);for(const _0x15a60e of _0x23b47b)_0x18b869['push'](..._0x15a60e['getMarkers']());return _0x4044ac(_0x54f3f7['editing'],_0x18b869);};_0x1fa642=_0x18976a['createAnnotation']({'view':_0x3130b0,'target':_0x97a5a8,'type':()=>'suggestion-'+_0x438c0c['view']['type'],'isVisible':!!_0x97a5a8()}),_0x245ab4['_bindAnnotationToEditors'](_0x43f2d8,_0x1fa642),_0x18976a['add'](_0x1fa642),_0x28a415['registerAnnotation'](_0x1fa642);}['_destroyController'](_0x35c597){const _0x45c7a5=this['editor']['plugins']['get'](_0xfd6006),_0x277bdf=this['editor']['plugins']['get'](_0xe7d6fa),_0xf4bc32=this['_suggestionToController']['get'](_0x35c597),_0x171c7e=_0xf4bc32['view'],_0x5e87ec=_0x277bdf['getByInnerView'](_0x171c7e);_0x45c7a5['_unbindEditors'](_0x171c7e),_0x5e87ec&&_0x277bdf['remove'](_0x5e87ec),this['_suggestionToController']['delete'](_0x35c597),this['_viewToController']['delete'](_0x171c7e),_0xf4bc32['destroy']();}['_updateController'](_0x40d956){if(!_0x40d956['isInContent']||!this['_suggestionToController']['has'](_0x40d956))return;const _0x1bb97e=this['editor']['plugins']['get'](Xe),_0x3dfa33=this['_suggestionToController']['get'](_0x40d956),_0x2baed1=_0x40d956['getAllAdjacentSuggestions']();_0x3dfa33['view']['descriptionParts']=_0x1bb97e['descriptionFactory']['getDescriptions'](_0x2baed1);}['destroy'](){for(const _0x24707b of this['_suggestionToController']['keys']())this['_destroyController'](_0x24707b);for(const _0x45cc88 of this['_annotationViews']['values']())_0x45cc88['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x5de1cd){return'model'in _0x5de1cd;}class Tn extends _0x40e6e8{static get['requires'](){return[Xe,mn,_0x30ece3];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x13e177){this['editor']['plugins']['get'](Xe)['adapter']=_0x13e177;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x246dc2){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x246dc2);}['getSuggestions']({skipNotAttached:_0x5bcc33=!0x1,toJSON:_0x2f930d=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x5bcc33,'toJSON':_0x2f930d});}['getSuggestion'](_0x255c81){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x255c81);}}const _n=['Pagination'];class pn extends _0x40e6e8{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x248bcb=this['editor'];if(_0x248bcb['config']['define']('trackChangesData.editorCreator',_0x2b4485=>{const _0x598fc6=_0x248bcb['model']['document']['getRootNames']()['reduce']((_0x2013b4,_0x3bc6b7)=>(_0x2013b4[_0x3bc6b7]='',_0x2013b4),{});return _0x248bcb['constructor']['create'](_0x598fc6,_0x2b4485);}),'function'!=typeof _0x248bcb['config']['get']('trackChangesData')['editorCreator'])throw new _0x39508c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15a79f){return bn(this['editor'],!0x0,_0x15a79f);}['getDataWithDiscardedSuggestions'](_0x408a0a){return bn(this['editor'],!0x1,_0x408a0a);}}class Ln extends _0x40e6e8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4129c6){function _0x4e6de2(_0x5df0af){return _0x5df0af['map'](_0x32966b=>String['fromCharCode'](_0x32966b))['join']('');}super(_0x4129c6),this['result']='end',_0x4129c6[_0x4e6de2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e6de2([0x76,0x69,0x65,0x77])][_0x4e6de2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e6de2([0x61,0x75,0x74,0x6f]),_0x4129c6[_0x4e6de2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e6de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e6de2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e6de2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e6de2([0x6f,0x6b])});}['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 In(_0x4fb961){return void 0x0!==_0x4fb961['getRootsAttributes'];}async function bn(_0x1aa1bc,_0xc62e68,_0x3198b9){const _0x246204=_0x30df67(_0x1aa1bc,_n);if(_0x246204['plugins']['push'](Xe,Ln),In(_0x1aa1bc)){_0x246204['roots']=Object['create'](null);for(const _0x1d0cd7 of _0x1aa1bc['model']['document']['getRootNames']())_0x246204['roots'][_0x1d0cd7]={'modelAttributes':_0x1aa1bc['getRootAttributes'](_0x1d0cd7)};}const _0x3cea9e=document['createDocumentFragment'](),_0x552651=_0x1aa1bc['config']['get']('trackChangesData')['editorCreator'],_0xe5b773=await _0x552651(_0x246204,()=>function(_0x339897){const _0x1d1e86=document['createElement']('div');return _0x339897['appendChild'](_0x1d1e86),_0x1d1e86;}(_0x3cea9e));!function(_0x2aa855,_0x24619f){const _0x1a37bb=_0x2aa855['model']['document']['getRootNames']()['reduce']((_0x37c481,_0x4f6275)=>(_0x37c481[_0x4f6275]=_0x2aa855['data']['get']({'rootName':_0x4f6275}),_0x37c481),{}),_0x1a5b2b=_0x2aa855['plugins']['get']('Users')['users']['map'](_0x1d288a=>({'id':_0x1d288a['id'],'name':_0x1d288a['name']})),_0x302a31=_0x2aa855['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43c472=_0x2aa855['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4054ae=_0x24619f['plugins']['get']('Users'),_0x235f91=_0x24619f['plugins']['get']('TrackChangesEditing'),_0x28949c=_0x24619f['plugins']['get']('CommentsRepository');for(const _0x377beb of _0x28949c['getCommentThreads']())_0x377beb['remove']();for(const _0x5a9976 of _0x1a5b2b)_0x4054ae['getUser'](_0x5a9976['id'])||_0x4054ae['addUser'](_0x5a9976);_0x4054ae['me']||_0x4054ae['useAnonymousUser']();for(const _0x181f89 of _0x43c472)_0x28949c['addCommentThread'](_0x181f89);for(const _0x1dab3c of _0x302a31)_0x235f91['addSuggestionData'](_0x1dab3c);_0x24619f['data']['set'](_0x1a37bb);}(_0x1aa1bc,_0xe5b773),_0xe5b773['execute'](_0xc62e68?'acceptAllSuggestions':'discardAllSuggestions');const _0x43ca3a=In(_0xe5b773)?_0xe5b773['getFullData'](_0x3198b9):_0xe5b773['data']['get'](_0x3198b9);return await _0xe5b773['destroy'](),_0x43ca3a;}class An extends _0x13db81{['options'];constructor(_0x2875e9,_0x27c761){super(_0x2875e9),this['options']=_0x27c761,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'](_0x11e468,_0x1478b5){if(!this['element'])return;const _0xaa3474=[];for(const [_0x53c1c0,_0x483420]of _0x11e468){const _0x2bc35b=document['createElement']('div');_0x2bc35b['setAttribute']('data-ck-root-name',_0x53c1c0),_0x2bc35b['className']=_0x483420['classes']+'\x20ck-track-changes-preview__root-container',_0x2bc35b['innerHTML']=_0x483420['content'],_0xaa3474['push'](_0x2bc35b);}_0x1478b5(this['element'],_0xaa3474),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x34a0df{constructor(_0xb1f4f4){super(_0xb1f4f4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x65f718=this['editor'],_0x37b1b6=_0x65f718['locale'],_0x17abe7=_0x65f718['plugins']['get']('Dialog');let _0x28abdd;const _0x595b75=function(_0x17b86c){const _0x3aa4e0={};if('editables'in _0x17b86c['ui']['view']){for(const [_0x3dcb3c,_0x5881cc]of Object['entries'](_0x17b86c['ui']['view']['editables']))_0x3aa4e0[_0x3dcb3c]=_0x5881cc['element'];}else _0x3aa4e0[_0x17b86c['model']['document']['getRootNames']()[0x0]]=_0x17b86c['ui']['view']['editable']['element'];return _0x3aa4e0;}(_0x65f718),_0x29849f=function(_0x20198e){let _0x39e08d=0x0;for(const _0x24f4f1 of Object['values'](_0x20198e))_0x39e08d=Math['max'](_0x39e08d,_0x24f4f1['getBoundingClientRect']()['width']);let _0x465203=0x0;for(const _0x191b8d of Object['values'](_0x20198e))_0x465203+=_0x191b8d['getBoundingClientRect']()['height'];const _0xf06ee4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d3965=Math['min'](_0x465203,_0xf06ee4);return{'width':_0x39e08d,'height':_0x5d3965};}(_0x595b75);_0x17abe7['show']({'id':'finalContentPreview','title':At(_0x37b1b6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x37b1b6,{'dialogRects':_0x29849f}),'onHide':()=>{_0x28abdd['detachFromDom']();},'onShow':()=>{_0x65f718['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x491b60=>{const _0x2b9556=this['_standarizeRootsData'](_0x491b60,_0x65f718,_0x595b75);_0x17abe7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2b9556,_0x65f718['config']['get']('trackChanges.preview.renderFunction'));}),_0x28abdd=new _0x347ddb(_0x37b1b6,[_0x17abe7['view']]),_0x28abdd['attachToDom'](),_0x28abdd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x65f718['once']('destroy',()=>{_0x28abdd['detachFromDom']();});const _0x4cafb4=_0x17abe7['view']['headerView']['class'];_0x17abe7['view']['headerView']['class']=_0x4cafb4?_0x4cafb4+'\x20ck-reset_all':'ck-reset_all',_0x17abe7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x17abe7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x21f3e3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e1d90=_0x21f3e3['previewMode'],_0x58b520={};if('$labels'===_0x3e1d90){for(const _0x1ad219 of _0x21f3e3['getMergeFieldsIds']())_0x58b520[_0x1ad219]=_0x21f3e3['getLabel'](_0x1ad219)||_0x1ad219;}else{const _0x11b1d1='$defaultValues'===_0x3e1d90?_0x21f3e3['getDefaultValues']():_0x21f3e3['getDataSetValues'](_0x3e1d90,!0x0);for(const _0x310633 of Object['entries'](_0x11b1d1)){const [_0x52883c,_0x277b51]=_0x310633;_0x58b520[_0x52883c]=null!==_0x277b51?_0x277b51:_0x21f3e3['getLabel'](_0x52883c)||_0x52883c;}}return{'mergeFieldsData':_0x58b520};}['_standarizeRootsData'](_0x2d5d56,_0x565f9c,_0x11bce1){let _0x2b9b38;if('string'==typeof _0x2d5d56){const _0x577ed1=_0x565f9c['model']['document']['getRootNames']()[0x0];_0x2b9b38={[_0x577ed1]:_0x2d5d56};}else _0x2b9b38=_0x2d5d56;const _0x1f58c8=this['_fixMediaEmbeds'](_0x2b9b38,_0x565f9c),_0x5556bd=function(_0x383f22,_0x1d33a0){for(const [_0x1feaff,_0x30d2fb]of _0x383f22)_0x30d2fb['classes']=_0x1d33a0[_0x1feaff]['classList']['value']['replace']('ck-focused','');return _0x383f22;}(this['_sortRoots'](_0x565f9c)['reduce']((_0x126151,_0x6dd8e4)=>(_0x126151['push']([_0x6dd8e4,{'content':_0x1f58c8[_0x6dd8e4],'classes':''}]),_0x126151),[]),_0x11bce1);return _0x5556bd;}['_fixMediaEmbeds'](_0x385150,_0x7014b4){if(!_0x7014b4['plugins']['has']('MediaEmbedEditing'))return _0x385150;const _0xaad81d=_0x7014b4['plugins']['get']('MediaEmbedEditing');for(const [_0x7684c,_0x54b67b]of Object['entries'](_0x385150)){const _0xeabdf=document['createElement']('div');_0xeabdf['innerHTML']=_0x54b67b,(_0xeabdf['querySelectorAll']('figure.media')['forEach'](_0x2539d5=>{const _0x4c38dd=_0x2539d5['querySelector']('oembed');if(_0x4c38dd){const _0x45e5d6=_0x4c38dd['getAttribute']('url');if(_0x45e5d6){const _0x153732=_0xaad81d['registry']['getMediaViewElement'](new et(_0x7014b4['editing']['view']['document']),_0x45e5d6,{'elementName':'','renderForEditingView':!0x0}),_0x12ad2f=document['createElement']('div');_0x12ad2f['classList']['add']('ck-media__wrapper'),_0x153732['render'](_0x12ad2f,_0x7014b4['editing']['view']['domConverter']),_0x4c38dd['replaceWith'](_0x12ad2f);}}}),_0x385150[_0x7684c]=_0xeabdf['innerHTML']);}return _0x385150;}['_sortRoots'](_0x4e47c2){if(!function(_0x2abde4){return void 0x0!==_0x2abde4['getRootsAttributes'];}(_0x4e47c2))return _0x4e47c2['model']['document']['getRootNames']();const _0x20f6a3=[],_0x2a4a37=new Map();for(const _0x2dd598 of _0x4e47c2['model']['document']['getRootNames']()){const _0x2fe59c=_0x4e47c2['editing']['view']['getDomRoot'](_0x2dd598)['getClientRects']()['item'](0x0);_0x20f6a3['push'](_0x2dd598),_0x2a4a37['set'](_0x2dd598,_0x2fe59c);}return _0x20f6a3['sort']((_0x246930,_0x13c666)=>{const _0x37651d=_0x2a4a37['get'](_0x246930),_0x3f3a9a=_0x2a4a37['get'](_0x13c666);return _0x37651d['y']-_0x3f3a9a['y']||_0x37651d['x']-_0x3f3a9a['x'];}),_0x20f6a3;}}class Cn extends _0x40e6e8{static get['requires'](){return[pn,_0x1abf3f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1603bb){super(_0x1603bb),_0x1603bb['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x1603bb['config']['define']('trackChanges.preview.renderFunction',(_0x42b936,_0x3b5280)=>{for(const _0x532d58 of _0x3b5280)_0x42b936['appendChild'](_0x532d58);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0x4dd781,Plugin as _0x3000a5,PendingActions as _0x366661}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3b6cc3,Annotations as _0x56e9b1,EditorAnnotations as _0x359145,Comments as _0x41eb8f}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x1d5f66,ObservableMixin as _0x2cad71,uid as _0x59fa6d,priorities as _0x12b650,insertToPriorityArray as _0x567b35,logWarning as _0x29d360,getEnvKeystrokeText as _0x43c0a4,FocusTracker as _0x5c0eff,KeystrokeHandler as _0x14ab05,Collection as _0x1bdbf2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x464661,IconCancel as _0x58544e,IconTrackChanges as _0x1c5aba}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4b8cfa,View as _0x219eee,ViewCollection as _0x41b3a9,FocusCycler as _0x27ae21,UIModel as _0x38a215,createDropdown as _0x249d7a,SplitButtonView as _0x147e3d,addListToDropdown as _0x2d8af9,MenuBarMenuView as _0x167357,MenuBarMenuListView as _0xc933cf,ListSeparatorView as _0x51f4ef,MenuBarMenuListItemView as _0x17cfe5,MenuBarMenuListItemButtonView as _0x47a13f,BodyCollection as _0x3e0dbc,Dialog as _0x52b772}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2522cc,SuggestionsConversion as _0x54b9f2,Users as _0x1d950a,DocumentCompare as _0x1d267d,fixElementSuggestionRange as _0x18e42e,hashObject as _0x56801b,surroundingMarkersDetector as _0xf39aab,FOCUS_ANNOTATION_KEYSTROKE as _0x2f9019,AriaDescriptionView as _0x4a1a2d,setupThreadKeyboardNavigation as _0x414f5c,trimHtml as _0x47f1ed,UserView as _0xf77222,LateFocusButtonView as _0x3b1b8d,getDateTimeFormatter as _0x16d8dd,getAllMarkersDomElementsSorted as _0x35ad97,sanitizeEditorConfig as _0x2577bc}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x4de7c2,ModelLiveRange as _0x2192a8,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x4dd781{['_enabledCommands'];constructor(_0x3aa4fc,_0x600db4){super(_0x3aa4fc),this['_enabledCommands']=_0x600db4,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 _0x38ba7e of this['editor']['commands']['commands']())_0x38ba7e['affectsData']&&!this['_enabledCommands']['has'](_0x38ba7e)&&_0x38ba7e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xcfdf76 of this['editor']['commands']['commands']())_0xcfdf76['affectsData']&&!this['_enabledCommands']['has'](_0xcfdf76)&&_0xcfdf76['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x293016,_0x489527){super(_0x293016),this['_suggestions']=_0x489527,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x718012){const _0x1b4332=this['_suggestions']['get'](_0x718012);if(!_0x1b4332)throw new _0x1d5f66('track-changes-accept-suggestion-not-found',this);const _0x30c223=_0x1b4332['getRanges']();this['editor']['model']['canEditAt'](_0x30c223)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b4332);}}class DiscardSuggestionCommand extends _0x4dd781{['_suggestions'];constructor(_0x4136eb,_0x5c5153){super(_0x4136eb),this['_suggestions']=_0x5c5153,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ecb99){const _0x15da2d=this['_suggestions']['get'](_0x3ecb99);if(!_0x15da2d)throw new _0x1d5f66('track-changes-discard-suggestion-not-found',this);const _0x112fe3=_0x15da2d['getRanges']();this['editor']['model']['canEditAt'](_0x112fe3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15da2d);}}function ht(_0x5906c7,_0x579f4a){let _0x185321='';return _0x185321+=_0x5906c7['split']('*')['map']((_0x3d4d7c,_0x20ad8c)=>_0x20ad8c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x3d4d7c)+'</span>':gt(_0x3d4d7c))['join'](''),_0x579f4a&&(_0x185321+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x579f4a['value']+'\x22\x20title=\x22'+_0x579f4a['title']+'\x22></span>'),_0x185321;}function gt(_0x1e1f8c){const _0x3a06fb=document['createElement']('span');return _0x3a06fb['innerText']=_0x1e1f8c,_0x3a06fb['innerHTML'];}function dt(_0x30e730){return _0x30e730['sort']((_0x4f76ad,_0x314551)=>'attribute'===_0x4f76ad['type']&&'attribute'!==_0x314551['type']?-0x1:'attribute'!==_0x4f76ad['type']&&'attribute'===_0x314551['type']?0x1:'deletion'==_0x4f76ad['type']&&'deletion'!=_0x314551['type']?-0x1:'deletion'!=_0x4f76ad['type']&&'deletion'==_0x314551['type']?0x1:0x0);}function ft(_0x40b5a4,_0x10aae9){let _0x51e7ce,_0x1b0347=0x0;const _0x21a6d5=[],_0x3829b1=_0x10aae9['schema'];for(;_0x1b0347<_0x40b5a4['length'];){const _0x28ee05=_0x40b5a4[_0x1b0347],_0x2033c9=_0x40b5a4[_0x1b0347+0x1];_0x51e7ce||(_0x51e7ce=_0x10aae9['createPositionBefore'](_0x28ee05)),mt(_0x10aae9,_0x28ee05,_0x2033c9)||(_0x21a6d5['push'](_0x10aae9['createRange'](_0x51e7ce,_0x3829b1['isObject'](_0x28ee05)?_0x10aae9['createPositionAfter'](_0x28ee05):_0x10aae9['createPositionAt'](_0x28ee05,'end'))),_0x51e7ce=null),_0x1b0347++;}return _0x21a6d5;}function mt(_0x3140be,_0x1f48fd,_0x250d5a){if(!_0x250d5a)return!0x1;const _0x45d41d=_0x3140be['createPositionAfter'](_0x1f48fd),_0x3a528b=_0x3140be['createPositionBefore'](_0x250d5a);return _0x45d41d['isTouching'](_0x3a528b);}function Et(_0x2262af,_0x5a0022,_0x3fa8a1){for(;_0x3fa8a1['length'];){const _0x5d3b74=_0x3fa8a1['splice'](0x0,0x64);_0x2262af['change'](()=>{for(const _0xc4bb32 of _0x5d3b74)_0xc4bb32['isInContent']&&_0x5a0022['execute'](_0xc4bb32['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];constructor(_0x293394,_0x15d804,_0x3c185a){super(_0x293394),this['_command']=_0x15d804,this['_suggestions']=_0x3c185a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43e36d=Array['from'](this['_suggestions']['values']())['some'](_0x4fa44e=>_0x4fa44e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x43e36d;}['execute'](){const _0x33a281=dt(Array['from'](this['_suggestions']['values']()));for(const _0x4b52af of _0x33a281){const _0x332f34=_0x4b52af['getRanges']();if(!this['editor']['model']['canEditAt'](_0x332f34))return;}Et(this['editor']['model'],this['_command'],_0x33a281);}}class ExecuteOnSelectedSuggestionsCommand extends _0x4dd781{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2e264c,_0x5eeadc,_0x5cf371){super(_0x2e264c),this['_command']=_0x5eeadc,this['_suggestions']=_0x5cf371,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53ad7d=this['editor']['model']['document']['selection'],_0x3a137e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c6d8e,_0x573b68){const _0x37e79f=Array['from'](_0x4c6d8e['getRanges']()),_0x2453d5=new Set();for(const _0x3b6b69 of _0x573b68)if(_0x3b6b69['isInContent']){for(const _0x27f52a of _0x37e79f)for(const _0xd31bf7 of _0x3b6b69['getRanges']())(_0x27f52a['isIntersecting'](_0xd31bf7)||_0x4c6d8e['isCollapsed']&&!_0x3b6b69['isMultiRange']&&_0x3b6b69['next']&&_0xd31bf7['end']['isTouching'](_0x27f52a['start']))&&_0x2453d5['add'](_0x3b6b69);}return _0x2453d5;}(_0x53ad7d,_0x3a137e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x538f75=dt(Array['from'](this['_selectedSuggestions']));for(const _0x38130b of _0x538f75){const _0x4abf6c=_0x38130b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4abf6c))return;}Et(this['editor']['model'],this['_command'],_0x538f75);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
+ _0x2cad71(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2117f9,_0xe6233c){super(),this['id']=_0xe6233c['id'],this['type']=_0xe6233c['type'],this['subType']=_0xe6233c['subType']||null,this['author']=_0xe6233c['author'],this['creator']=_0xe6233c['creator']||_0xe6233c['author'],this['isExternal']=Boolean(_0xe6233c['attributes']&&_0xe6233c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe6233c['originalSuggestionId']||null,this['_model']=_0x2117f9,this['_onAccept']=_0xe6233c['onAccept'],this['_onDiscard']=_0xe6233c['onDiscard'],this['_onAttributesChange']=_0xe6233c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe6233c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x37ddd1=this;for(;_0x37ddd1['previous'];)_0x37ddd1=_0x37ddd1['previous'];return _0x37ddd1;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x25f6da){this['_markerNames']['add'](_0x25f6da);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x406f26=>this['_model']['markers']['get'](_0x406f26))['filter'](_0x4e569c=>_0x4e569c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3870e9=>{for(const _0x1e6106 of this['getMarkers']())_0x3870e9['removeMarker'](_0x1e6106);}),this['_markerNames']['clear']();}['removeMarker'](_0x386dab){this['_model']['change'](_0x206996=>{_0x206996['removeMarker'](_0x386dab);}),this['_markerNames']['delete'](_0x386dab);}['addRange'](_0x2ab317){const _0x1653a9='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1653a9),this['_model']['change'](_0xf07391=>{_0xf07391['addMarker'](_0x1653a9,{'range':_0x2ab317,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x42767a){for(const _0x34fc46 of this['getRanges']())if(_0x34fc46['isIntersecting'](_0x42767a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33c40f=>_0x33c40f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19bd37,_0x2a306f)=>[..._0x19bd37,..._0x2a306f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x126003=this['getRanges']();if(0x1!=_0x126003['length'])return null;const _0x2f6085=_0x126003[0x0],_0x4658f6=_0x2f6085['start']['nodeAfter'],_0x2a0802=_0x2f6085['end']['nodeBefore'];return _0x4658f6 instanceof _0x4de7c2?_0x4658f6!=_0x2a0802?null:_0x4658f6: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 _0x1b2341=[];let _0x1c1ea5=this['head'];for(;_0x1c1ea5;)_0x1b2341['push'](_0x1c1ea5),_0x1c1ea5=_0x1c1ea5['next'];return _0x1b2341;}['setAttribute'](_0x15b7a6,_0x2d8de3){const _0x5b53da=nt(this['attributes']);it(_0x5b53da,_0x15b7a6,_0x2d8de3),st(_0x5b53da,this['attributes'])||(this['attributes']=_0x5b53da,this['_onAttributesChange'](_0x5b53da));}['removeAttribute'](_0x4a741d){const _0x584edf=nt(this['attributes']);rt(_0x584edf,_0x4a741d),st(_0x584edf,this['attributes'])||(this['attributes']=_0x584edf,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 _0x59fa6d()['substr'](0x1,0x5);}}function Tt(_0x589460,_0x33060f,_0x2099e5){const _0x1f4100=_0x589460['t'],t=_0x589460['t'];switch(_0x33060f){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',_0x2099e5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2099e5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2099e5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2099e5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2099e5);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',_0x2099e5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2099e5);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',_0x2099e5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2099e5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2099e5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2099e5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2099e5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2099e5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2099e5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2099e5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2099e5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2099e5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2099e5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2099e5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2099e5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2099e5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2099e5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2099e5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2099e5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2099e5);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'},_0x2099e5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2099e5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2099e5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2099e5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2099e5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2099e5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2099e5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2099e5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});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'},_0x2099e5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2099e5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2099e5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2099e5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2099e5);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'},_0x2099e5);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_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'},_0x2099e5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2099e5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2099e5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2099e5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2099e5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2099e5);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'},_0x2099e5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2099e5);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'EXTERNAL_AVATAR':return _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2099e5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f4100({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2099e5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);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'},_0x2099e5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x33060f;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bdca3,_0x3ba551){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bdca3,this['_locale']=_0x3ba551;}['getDescriptions'](_0x1d1b43){const _0x32fe8d=[],_0x1a6386=new Set(),_0x45d207=new Set();for(let _0x14eb40=0x0;_0x14eb40<_0x1d1b43['length'];_0x14eb40++){const _0x21f7d1=_0x1d1b43[_0x14eb40];if(!_0x21f7d1['isInContent'])continue;const _0x3a4542=this['_handleCustomCallbackDescription'](_0x21f7d1);if(_0x3a4542){if(null!=_0x21f7d1['subType']){if(_0x1a6386['has'](_0x21f7d1['subType']))continue;_0x1a6386['add'](_0x21f7d1['subType']);}_0x32fe8d['push'](_0x3a4542);}else{if('attribute'==_0x21f7d1['type']){const _0x149b0f=_0x21f7d1['data']['key'];if(_0x45d207['has'](_0x149b0f))continue;_0x45d207['add'](_0x21f7d1['data']['key']),_0x149b0f==Ft?this['_handleRenameSuggestionDescription'](_0x32fe8d,_0x21f7d1):this['_handleAttributeSuggestionDescription'](_0x32fe8d,_0x21f7d1);continue;}'insertion'!=_0x21f7d1['type']&&'deletion'!=_0x21f7d1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fe8d,_0x21f7d1,_0x1d1b43[_0x14eb40+0x1]);}}return this['_resolveDescriptionItems'](_0x32fe8d);}['registerDescriptionCallback'](_0x19ba9e){this['_customCallbacks']['push'](_0x19ba9e);}['registerElementLabel'](_0x47f5b4,_0x32e454,_0x9fc7ca=_0x12b650['normal']){'function'==typeof _0x47f5b4?_0x567b35(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47f5b4,'label':_0x32e454,'priority':_0x9fc7ca}):this['_itemLabels']['set'](_0x47f5b4,_0x32e454);}['registerAttributeLabel'](_0x1e073a,_0x51ad4d){this['_attributeLabels']['set'](_0x1e073a,_0x51ad4d);}['getItemLabel'](_0x5f3a68,_0x25884e=0x1){let _0x1b1716;for(const _0x5bda9e of this['_itemLabelsCallbacks'])if(_0x5bda9e['matchingCallback'](_0x5f3a68)){_0x1b1716=_0x5bda9e['label'];break;}return _0x1b1716||(_0x1b1716=this['_itemLabels']['get'](_0x5f3a68['name'])),_0x1b1716?_0x1b1716(_0x25884e):0x1!==_0x25884e?_0x25884e+'\x20'+_0x5f3a68['name']+'s':''+_0x5f3a68['name'];}['_addDescriptionItems'](_0x45a45f,_0x222f68){const _0x56e872=_0x222f68['getFirstRange']()['getWalker'](),_0x5be8d2='insertion'==_0x222f68['type']?'add':'remove';for(const _0x137aea of _0x56e872){const _0x33dcd5=_0x137aea['item'],_0x1a249e=_0x45a45f[_0x45a45f['length']-0x1];if(_0x33dcd5['is']('$textProxy'))_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),_0x1a249e&&'text'==_0x1a249e['type']?_0x1a249e[_0x5be8d2]+=_0x33dcd5['data']:_0x45a45f['push']({'type':'text','add':'add'==_0x5be8d2?_0x33dcd5['data']:'','remove':'remove'==_0x5be8d2?_0x33dcd5['data']:''});else{if(this['_schema']['isObject'](_0x33dcd5)){const _0x2f77bd=_0x33dcd5;if(_0x1a249e&&_0x1a249e['type']['indexOf']('Container')>-0x1&&_0x45a45f['pop'](),'elementEnd'==_0x137aea['type'])continue;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'Object'&&_0x1a249e['element']['name']==_0x2f77bd['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'Object','element':_0x2f77bd,'quantity':0x1}),_0x56e872['skip'](_0xa17ab=>!('elementEnd'==_0xa17ab['type']&&_0xa17ab['item']==_0x33dcd5));}else{if(this['_schema']['checkChild'](_0x33dcd5,'$text')||_0x33dcd5['is']('element','softBreak')){const _0x1a2967=_0x33dcd5;if('add'==_0x5be8d2&&'elementStart'==_0x137aea['type']||'remove'==_0x5be8d2&&'elementEnd'==_0x137aea['type'])continue;if(_0x1a249e&&-0x1==_0x1a249e['type']['indexOf']('Container')){'text'==_0x1a249e['type']&&(_0x1a249e[_0x5be8d2]+='\x0a');continue;}let _0x16025d;if(_0x16025d='add'==_0x5be8d2?_0x1a2967['nextSibling']&&!this['_schema']['isObject'](_0x1a2967['nextSibling'])?_0x1a2967['nextSibling']:null:_0x1a2967['previousSibling']&&!this['_schema']['isObject'](_0x1a2967['previousSibling'])?_0x1a2967['previousSibling']:null,_0x1a2967['isEmpty']||_0x16025d&&_0x16025d['isEmpty']){const _0x40d3ed=_0x16025d&&_0x16025d['isEmpty']?_0x16025d:_0x1a2967;_0x1a249e&&_0x1a249e['type']==_0x5be8d2+'EmptyContainer'&&_0x1a249e['element']['name']==_0x40d3ed['name']?_0x1a249e['quantity']++:_0x45a45f['push']({'type':_0x5be8d2+'EmptyContainer','element':_0x40d3ed,'quantity':0x1});}else _0x45a45f['push']({'type':_0x5be8d2+'Container','element':_0x1a2967});}}}}}['_resolveDescriptionItems'](_0x25223d){const _0xf30164=this['_locale'],_0x44abc2=[],_0x5dbfeb=[],_0x35e48f=[];for(const _0x1428c2 of _0x25223d)switch(_0x1428c2['type']){case'text':if(_0x1428c2['add']=_0x1428c2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1428c2['remove']=_0x1428c2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1428c2['add']&&''!=_0x1428c2['remove']){_0x44abc2['push']({'type':'replace','content':Tt(_0xf30164,'REPLACE_TEXT',['\x22'+_0x1428c2['remove']+'\x22','\x22'+_0x1428c2['add']+'\x22'])});continue;}if(null!=_0x1428c2['add']['match'](/^ +$/)){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['add']['length']))});continue;}if(null!=_0x1428c2['remove']['match'](/^ +$/)){_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',Tt(_0xf30164,'ELEMENT_SPACE',_0x1428c2['remove']['length']))});continue;}if(''!=_0x1428c2['add']){_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0','\x22'+_0x1428c2['add']+'\x22')});continue;}_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0','\x22'+_0x1428c2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Insert:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Remove:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addContainer':_0x44abc2['push']({'type':'insertion','content':Tt(_0xf30164,'*Split:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'removeContainer':_0x44abc2['push']({'type':'deletion','content':Tt(_0xf30164,'*Merge:*\x20%0',this['getItemLabel'](_0x1428c2['element'],_0x1428c2['quantity']))});continue;case'addFormat':_0x5dbfeb['push'](_0x1428c2['key']);continue;case'removeFormat':_0x35e48f['push'](_0x1428c2['key']);continue;default:_0x44abc2['push'](_0x1428c2);}if(_0x5dbfeb['length']){const _0x310132=_0x5dbfeb['map'](_0x37c807=>this['_attributeLabels']['has'](_0x37c807)?this['_attributeLabels']['get'](_0x37c807):_0x37c807)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x310132)});}if(_0x35e48f['length']){const _0x3e7725=_0x35e48f['map'](_0x2dfa12=>this['_attributeLabels']['has'](_0x2dfa12)?this['_attributeLabels']['get'](_0x2dfa12):_0x2dfa12)['join'](',\x20');_0x44abc2['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e7725)});}return _0x44abc2;}['_handleCustomCallbackDescription'](_0x1a35f8){for(const _0x3b5f3d of this['_customCallbacks']){const _0x24d051=_0x3b5f3d(_0x1a35f8);if(_0x24d051&&'type'in _0x24d051)return _0x24d051;}}['_handleAttributeSuggestionDescription'](_0x24e932,_0x32f4e5){const _0x2a70c9=_0x32f4e5['data'],_0x94bbbf=void 0x0===_0x2a70c9['newValue']?'removeFormat':'addFormat';_0x24e932['push']({'type':_0x94bbbf,'key':_0x2a70c9['key']});}['_handleRenameSuggestionDescription'](_0x1725f3,_0x12e3ab){_0x1725f3['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x12e3ab['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x232e17,_0x508a3b,_0x434c48){if(this['_addDescriptionItems'](_0x232e17,_0x508a3b),_0x434c48&&_0x434c48['getFirstRange']()&&!_0x508a3b['getFirstRange']()['end']['isEqual'](_0x434c48['getFirstRange']()['start'])){const _0x4cfe1d=_0x232e17[_0x232e17['length']-0x1],_0x5ac810='insertion'==_0x508a3b['type']?'add':'remove';_0x4cfe1d&&'text'==_0x4cfe1d['type']&&(_0x4cfe1d[_0x5ac810]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3000a5{['afterInit'](){const _0x582903=this['editor'],_0xb46084=_0x582903['plugins']['get']('TrackChangesEditing');_0x582903['commands']['get']('showAIAssistant')&&_0xb46084['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3000a5{['afterInit'](){const _0x3880e6=this['editor'],_0x8504cc=_0x3880e6['plugins']['get']('TrackChangesEditing');_0x3880e6['commands']['get']('toggleAi')&&_0x8504cc['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3000a5{['afterInit'](){const _0x33bc21=this['editor'],_0xee198d=_0x33bc21['plugins']['get']('TrackChangesEditing');_0x33bc21['commands']['get']('aiQuickAction')&&_0xee198d['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3000a5{['afterInit'](){const _0x384687=this['editor'],_0x4cc9b4=_0x384687['locale'];if(!_0x384687['plugins']['has']('AlignmentEditing'))return;const _0x2d754c=_0x384687['plugins']['get']('TrackChangesEditing');_0x2d754c['enableDefaultAttributesIntegration']('alignment'),_0x2d754c['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4cc9b4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543adf=this['editor'],_0x1501a8=_0x543adf['locale'];_0x543adf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c0059=>{if('formatBlock'!=_0x3c0059['type'])return;const {data:_0x5c360e}=_0x3c0059;if(_0x5c360e&&'alignment'==_0x5c360e['commandName']){const _0x261f5f=_0x5c360e['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x1501a8,'*Format:*\x20%0',function(_0xe0b0ed){switch(_0xe0b0ed){case'left':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x1501a8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x1501a8,'FORMAT_JUSTIFY_TEXT');}}(_0x261f5f))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3000a5{['afterInit'](){const _0x17bc53=this['editor'],_0x147aa7=_0x17bc53['plugins']['get']('TrackChangesEditing'),_0x203d3d=_0x17bc53['locale'];for(const _0x17e59b of _t){if(!_0x17bc53['plugins']['has'](_0x17e59b))continue;const _0x7a43d9=_0x17e59b['slice'](0x0,-0x7)['toLowerCase'](),_0x42fa85='FORMAT_'+_0x7a43d9['toUpperCase']();_0x147aa7['enableDefaultAttributesIntegration'](_0x7a43d9),_0x147aa7['descriptionFactory']['registerAttributeLabel'](_0x7a43d9,Tt(_0x203d3d,_0x42fa85));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44059e=this['editor'],_0x1af12d=_0x44059e['locale'],_0x25dc55=_0x44059e['plugins']['get']('TrackChangesEditing');function _0x65cf29(_0x566cc4,_0x73d2a9){_0x25dc55['descriptionFactory']['registerDescriptionCallback'](_0x5d8759=>{if('formatInline'!=_0x5d8759['type'])return;const {data:_0x5efc35}=_0x5d8759;return _0x5efc35&&_0x5efc35['commandName']===_0x566cc4?_0x5efc35['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1af12d,'*Format:*\x20%0',_0x73d2a9)}:{'type':'format','content':Tt(_0x1af12d,'*Remove\x20format:*\x20%0',_0x73d2a9)}:void 0x0;});}_0x65cf29('bold',Tt(_0x1af12d,'FORMAT_BOLD')),_0x65cf29('italic',Tt(_0x1af12d,'FORMAT_ITALIC')),_0x65cf29('underline',Tt(_0x1af12d,'FORMAT_UNDERLINE')),_0x65cf29('code',Tt(_0x1af12d,'FORMAT_CODE')),_0x65cf29('strikethrough',Tt(_0x1af12d,'FORMAT_STRIKETHROUGH')),_0x65cf29('subscript',Tt(_0x1af12d,'FORMAT_SUBSCRIPT')),_0x65cf29('superscript',Tt(_0x1af12d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3000a5{['afterInit'](){const _0x26e52f=this['editor'],_0x3c8ee5=_0x26e52f['locale'];if(!_0x26e52f['plugins']['has']('BlockQuoteEditing'))return;const _0x4835f5=_0x26e52f['plugins']['get']('TrackChangesEditing'),_0x15fead=this['editor']['commands']['get']('blockQuote');_0x4835f5['enableCommand']('blockQuote',(_0x1681aa,_0x11e532={})=>{const _0x59beca=this['editor']['model']['document']['selection'],_0x29e42e=_0x11e532&&void 0x0!==_0x11e532['forceValue']?_0x11e532['forceValue']:!_0x15fead['value'];let _0x489622=[];if(_0x29e42e){const _0x3b10d2=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0x33fc5e=>pt(_0x33fc5e)||function(_0xc5544d,_0x4c97b4){const _0x3aecb2=_0x4c97b4['checkChild'](_0xc5544d['parent'],'blockQuote'),_0x5a89ac=_0x4c97b4['checkChild'](['$root','blockQuote'],_0xc5544d);return _0x3aecb2&&_0x5a89ac;}(_0x33fc5e,this['editor']['model']['schema']));_0x489622=ft(_0x3b10d2,_0x26e52f['model']);}else{const _0x4cf948=Array['from'](_0x59beca['getSelectedBlocks']())['filter'](_0xc93805=>pt(_0xc93805));_0x489622=ft(_0x4cf948,_0x26e52f['model']);}_0x26e52f['model']['change'](()=>{for(const _0x5748ca of _0x489622)_0x4835f5['markBlockFormat'](_0x5748ca,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29e42e}]});});}),_0x4835f5['descriptionFactory']['registerDescriptionCallback'](_0x13a80d=>{const {data:_0x3a4484}=_0x13a80d;if(_0x3a4484&&'blockQuote'==_0x3a4484['commandName']){const _0x571fe8=Tt(_0x3c8ee5,'ELEMENT_BLOCK_QUOTE');return _0x3a4484['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3c8ee5,'*Set\x20format:*\x20%0',_0x571fe8)}:{'type':'format','content':Tt(_0x3c8ee5,'*Remove\x20format:*\x20%0',_0x571fe8)};}});}}function pt(_0x282489){return'blockQuote'==_0x282489['parent']['name'];}class TrackChangesBookmark extends _0x3000a5{['afterInit'](){const _0x791d88=this['editor'],_0x12b9b5=_0x791d88['locale'],_0x27a65c=_0x791d88['plugins']['get']('TrackChangesEditing');_0x791d88['plugins']['has']('BookmarkEditing')&&(_0x27a65c['enableCommand']('insertBookmark'),_0x27a65c['enableDefaultAttributesIntegration']('updateBookmark'),_0x27a65c['descriptionFactory']['registerDescriptionCallback'](_0x566461=>{if('insertion'!=_0x566461['type']&&'deletion'!=_0x566461['type']&&'attribute'!=_0x566461['type'])return;const _0x44e673=_0x566461['getContainedElement']();if(null==_0x44e673)return;if(!_0x44e673['is']('element','bookmark'))return;const _0x323d25=_0x44e673['getAttribute']('bookmarkId');if('insertion'==_0x566461['type'])return{'type':'insertion','content':Tt(_0x12b9b5,'*Insert:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x566461['type'])return{'type':'deletion','content':Tt(_0x12b9b5,'*Remove:*\x20%0','\x22'+_0x323d25+'\x22\x20'+Tt(_0x12b9b5,'ELEMENT_BOOKMARK'))};const {data:_0x3fb01f}=_0x566461;if(!_0x3fb01f||'bookmarkId'!=_0x3fb01f['key'])return;return{'type':'format','content':Tt(_0x12b9b5,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fb01f['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3000a5{['afterInit'](){const _0x1c1b3d=this['editor'];_0x1c1b3d['plugins']['has']('CaseChange')&&(_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1c1b3d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3000a5{['afterInit'](){const _0x16cb6b=this['editor'];_0x16cb6b['commands']['get']('ckbox')&&_0x16cb6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3000a5{['afterInit'](){const _0x45a933=this['editor'];if(!_0x45a933['plugins']['has']('CodeBlock'))return;const _0xcadb95=_0x45a933['plugins']['get']('TrackChangesEditing'),_0x5a4a42=_0x45a933['locale'],_0x26a941=_0x45a933['config']['get']('codeBlock')['languages'],_0x2aa407=_0x45a933['commands']['get']('codeBlock');_0xcadb95['enableCommand']('indentCodeBlock'),_0xcadb95['enableCommand']('outdentCodeBlock'),_0xcadb95['enableCommand']('codeBlock',(_0x883951,_0x159ee8={})=>{const _0x59ab09=_0x45a933['model'],_0x4ff17b=_0x45a933['model']['document']['selection'],_0x4a37fb=_0x159ee8&&void 0x0!==_0x159ee8['forceValue']?_0x159ee8['forceValue']:!_0x2aa407['value'];let _0x250ed7;_0x159ee8['language']||(_0x159ee8['language']=_0x26a941[0x0]['language']),_0x250ed7=_0x4a37fb?Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x8d6d9c=>Ct(_0x8d6d9c)||function(_0x59198a,_0x1defbb){if(_0x59198a['is']('rootElement')||_0x1defbb['isLimit'](_0x59198a))return!0x1;return _0x1defbb['checkChild'](_0x59198a['parent'],'codeBlock');}(_0x8d6d9c,_0x59ab09['schema'])):Array['from'](_0x4ff17b['getSelectedBlocks']())['filter'](_0x4db193=>Ct(_0x4db193));const _0x3b84a7=ft(_0x250ed7,_0x59ab09);_0x59ab09['change'](()=>{for(const _0x380947 of _0x3b84a7)_0xcadb95['markBlockFormat'](_0x380947,{'commandName':'codeBlock','commandParams':[{..._0x159ee8,'forceValue':_0x4a37fb}],'formatGroupId':'blockName'});});}),(_0xcadb95['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f0faf=>Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',_0x2f0faf)),_0xcadb95['descriptionFactory']['registerDescriptionCallback'](_0x53432e=>{if('formatBlock'!=_0x53432e['type'])return;const _0x5bd247=_0x5a4a42['t'],{data:_0x4c5bcd}=_0x53432e;if(!_0x4c5bcd||'codeBlock'!=_0x4c5bcd['commandName'])return;const _0x3ebf94=_0x4c5bcd['commandParams'][0x0]['language'],_0x506fe6=_0x5bd247(_0x26a941['find'](_0x5255e4=>_0x5255e4['language']===_0x3ebf94)['label'])['toLowerCase']();return _0x4c5bcd['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5a4a42,'*Set\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x506fe6+')')}:{'type':'format','content':Tt(_0x5a4a42,'*Remove\x20format:*\x20%0',Tt(_0x5a4a42,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x218543){return'codeBlock'==_0x218543['name'];}class TrackChangesComments extends _0x3000a5{['afterInit'](){const _0x147492=this['editor'];if(!_0x147492['plugins']['has']('CommentsEditing'))return;_0x147492['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3000a5{static get['requires'](){return[at];}['init'](){const _0x395b7e=this['editor'],_0x18dfd7=_0x395b7e['plugins']['get']('TrackChangesEditing');_0x18dfd7['enableCommand']('delete');const _0x440c61=_0x395b7e['commands']['get']('deleteForward');_0x18dfd7['enableCommand']('deleteForward',(_0x3ce72e,_0x3090b7={})=>{const _0x34c24e=_0x395b7e['model']['createSelection'](_0x395b7e['model']['document']['selection']);_0x34c24e['isCollapsed']&&_0x395b7e['model']['modifySelection'](_0x34c24e,{'direction':'forward','unit':_0x3090b7['unit']});const _0x53b0ca=_0x34c24e['getFirstRange'](),_0x265970=_0x2192a8['fromRange'](_0x53b0ca);let _0x327692;_0x3ce72e(_0x3090b7),_0x327692='$graveyard'==_0x265970['root']['rootName']?_0x395b7e['model']['createRange'](_0x53b0ca['start']):_0x395b7e['model']['createRange'](_0x265970['start'],_0x265970['end']),_0x265970['detach'](),_0x395b7e['model']['enqueueChange'](_0x440c61['buffer']['batch'],_0x307d46=>{_0x440c61['buffer']['lock'](),_0x307d46['setSelection'](_0x307d46['createRange'](_0x327692['end'])),_0x440c61['buffer']['unlock']();});});}}class TrackChangesList extends _0x3000a5{['afterInit'](){const _0x3a4168=this['editor'];if(!_0x3a4168['plugins']['has']('ListEditing'))return;const _0x4cb455=_0x3a4168['locale'],_0x344316=_0x3a4168['plugins']['get']('TrackChangesEditing'),_0x57a851=_0x3a4168['plugins']['has']('TodoListEditing'),_0x2f7f2b=!!_0x3a4168['config']['get']('list.multiBlock');function _0x47f54a(_0xfb24e7){return{'type':'format','content':''+Tt(_0x4cb455,'*Set\x20format:*\x20%0',_0xfb24e7)};}function _0x26250e(_0x39b111){return{'type':'format','content':''+Tt(_0x4cb455,'*Remove\x20format:*\x20%0',_0x39b111)};}_0x344316['enableDefaultAttributesIntegration']('numberedList'),_0x344316['enableDefaultAttributesIntegration']('bulletedList'),_0x344316['enableDefaultAttributesIntegration']('customNumberedList'),_0x344316['enableDefaultAttributesIntegration']('customBulletedList'),_0x344316['enableDefaultAttributesIntegration']('indentList'),_0x344316['enableDefaultAttributesIntegration']('outdentList'),_0x344316['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x344316['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f7f2b&&(_0x344316['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x344316['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57a851&&(_0x344316['enableDefaultAttributesIntegration']('todoList'),_0x344316['enableDefaultAttributesIntegration']('checkTodoList'),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x411fe1=>{const {data:_0x21c6b3}=_0x411fe1;if(_0x21c6b3&&'todoListChecked'==_0x21c6b3['key'])return{'type':'format','content':_0x21c6b3['newValue']?Tt(_0x4cb455,'*Check\x20item*'):Tt(_0x4cb455,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x284b2f=>{if(_0x284b2f['batch']['isUndo'])return!0x1;let _0x491281=!0x1;const _0x55dfd=_0x344316['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x524925=>'todoListChecked'===_0x344316['_getAttributeKey'](_0x524925));for(const _0x21361b of _0x55dfd){'todo'!=_0x21361b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x344316['_findSuggestions'](_0x21361b['getFirstRange'](),'attribute')['find'](_0x276de1=>'listType'===_0x344316['_getAttributeKey'](_0x276de1['suggestion']))||(_0x284b2f['removeMarker'](_0x21361b['getFirstMarker']()),_0x491281=!0x0));}return _0x491281;})),_0x344316['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x4cb455,'FORMAT_INDENT'));const _0x1d67b4={'type':'format','content':''};_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x4ce443=>{const {data:_0x3bad94}=_0x4ce443;if(!_0x3bad94||'listType'!=_0x3bad94['key'])return;let _0x157c37=_0x4ce443['head'];for(;_0x157c37;){if(_0x157c37['data']&&(('listStyle'==_0x157c37['data']['key']||'listMarkerStyle'==_0x157c37['data']['key'])&&(_0x157c37['data']['newValue']&&'default'!=_0x157c37['data']['newValue']||'default'!=_0x157c37['data']['oldValue']&&!_0x3bad94['newValue'])||!_0x2f7f2b&&_0x157c37['data']['key']==Ft))return _0x1d67b4;_0x157c37=_0x157c37['next'];}if(null==_0x3bad94['newValue'])switch(_0x3bad94['oldValue']){case'bulleted':return _0x26250e(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26250e(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26250e(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}switch(_0x3bad94['newValue']){case'bulleted':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f54a(Tt(_0x4cb455,'ELEMENT_TODO_LIST'));}}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x5ca2fc=>{const {data:_0x411983}=_0x5ca2fc;if(_0x411983&&'listIndent'==_0x411983['key'])return null==_0x411983['newValue']||null==_0x411983['oldValue']&&0x0==_0x411983['newValue']?_0x1d67b4:void 0x0;}),_0x344316['descriptionFactory']['registerDescriptionCallback'](_0x3c8592=>{if('attribute'!=_0x3c8592['type'])return;const {data:_0x4c9435}=_0x3c8592;if(!_0x4c9435||'listItemId'!=_0x4c9435['key'])return;const _0x1902d4=kt(_0x3c8592);return'newValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1902d4?{'type':'format','content':Tt(_0x4cb455,'*Split:*\x20list\x20item')}:_0x1d67b4;}),_0x3a4168['model']['document']['registerPostFixer'](_0x5d4911=>this['listItemIdFixer'](_0x5d4911)),_0x3a4168['model']['document']['registerPostFixer'](_0x56ed49=>this['noTrackChangesFixer'](_0x56ed49)),_0x3a4168['model']['document']['on']('change:data',(_0x4373bc,_0x1f4cb0)=>{if(_0x1f4cb0['isUndo']||!_0x1f4cb0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3cc5d8){if(_0x3cc5d8['batch']['isUndo']||!_0x3cc5d8['batch']['isLocal'])return!0x1;let _0x4b006b=!0x1;const _0x3970c9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x316d2f=>_0x316d2f['data']&&'listItemId'==_0x316d2f['data']['key'])['filter'](_0x37e2f4=>_0x37e2f4['data']['newValue']&&_0x37e2f4['data']['oldValue']);for(const _0x3abb40 of _0x3970c9)kt(_0x3abb40)||(_0x3cc5d8['removeMarker'](_0x3abb40['getFirstMarker']()),_0x4b006b=!0x0);return _0x4b006b;}['noTrackChangesFixer'](_0xf64050){if(_0xf64050['batch']['isUndo']||!_0xf64050['batch']['isLocal'])return!0x1;const _0x381062=this['editor']['model']['document']['differ'],_0x58bfbb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58bfbb['trackChangesCommand']['value'])return!0x1;let _0x3381c3=!0x1;const _0x17a47c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x287fb2=_0x381062['getChanges']()['filter'](_0xf333b6=>'attribute'==_0xf333b6['type'])['filter'](_0x541c01=>_0x17a47c['has'](_0x541c01['attributeKey']));if(0x0==_0x287fb2['length'])return _0x3381c3;const _0x1d577e=new Set(_0x381062['getMarkersToAdd']()['filter'](_0x470e7f=>{if(!_0x470e7f['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x1343b7=_0x2522cc(_0x470e7f['name'])['subType']['split']('|')[0x0];return _0x17a47c['has'](_0x1343b7);})['map'](_0x4eba71=>_0x2522cc(_0x4eba71['name'])['id']));for(const _0x57e80a of _0x287fb2){const _0x149685=_0x58bfbb['_findSuggestions'](_0x57e80a['range'],'attribute')['filter'](_0x14c572=>{if(_0x14c572['meta']['isNextTo'])return!0x1;if(_0x1d577e['has'](_0x14c572['suggestion']['id']))return!0x1;const _0x1c4801=_0x58bfbb['_getAttributeKey'](_0x14c572['suggestion']);return _0x17a47c['has'](_0x1c4801);})['map'](_0x3c0be4=>_0x3c0be4['suggestion']);if(_0x149685['length']){for(const _0x5cc908 of _0x149685)_0xf64050['removeMarker'](_0x5cc908['getFirstMarker']());_0x3381c3=!0x0;}}return _0x3381c3;}['assureChains'](){const _0x245621=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3bbb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58b735;const _0x5f0c1c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10b198=>{if(_0x10b198['data']['oldRange']||!_0x10b198['data']['newRange'])return null;if(!_0x10b198['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51e181}=_0x2522cc(_0x10b198['name']);if(!_0x245621['hasSuggestion'](_0x51e181))return null;const _0xd3d4f5=_0x245621['getSuggestion'](_0x51e181);return _0x3e3bbb['includes'](_0xd3d4f5['data']['key']);})['map'](_0x40d759=>{const {id:_0xf27bc6}=_0x2522cc(_0x40d759['name']),_0xbdf7cf=_0x245621['getSuggestion'](_0xf27bc6);return _0x58b735=_0xbdf7cf['attributes']['groupId'],_0xbdf7cf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5f0c1c['size'])return;const _0x17e262=_0x245621['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1988f2=>'attribute'==_0x1988f2['type']&&_0x1988f2['data']&&_0x3e3bbb['includes'](_0x1988f2['data']['key'])&&_0x1988f2['attributes']['groupId']!=_0x58b735)['map'](_0x4d6068=>({'listItem':_0x4d6068['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d6068['attributes']['groupId']})),_0x194b32=new Set();for(const {groupId:_0x4e7cf6,listItem:_0x3ea88c}of _0x17e262)_0x5f0c1c['has'](_0x3ea88c)&&_0x194b32['add'](_0x4e7cf6);for(const _0x8a03e6 of _0x245621['getSuggestions']())_0x194b32['has'](_0x8a03e6['attributes']['groupId'])&&_0x8a03e6['setAttribute']('groupId',_0x58b735);}['_supportLegacySuggestions'](){const _0xbe2738=this['editor'],_0x6958ba=_0xbe2738['locale'],_0x10bc32=_0xbe2738['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x10bc32['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3644fa,_0x4d599a){const _0x4a4db5=[];for(let _0x2a449e of _0x3644fa)_0x2a449e['start']['nodeAfter']===_0x2a449e['end']['parent']&&(_0x2a449e=_0xbe2738['model']['createRange'](_0xbe2738['model']['createPositionAt'](_0x2a449e['start']['nodeAfter'],0x0))),_0x4a4db5['push'](_0x2a449e);_0xbe2738['model']['change'](_0x598666=>{const _0xd269f1=_0xbe2738['model']['document']['selection'],_0x2e0501=Array['from'](_0xd269f1['getRanges']())['map'](_0x156b3a=>_0x2192a8['fromRange'](_0x156b3a));_0x598666['setSelection'](_0x4a4db5),_0xbe2738['commands']['get'](_0x4d599a['commandName'])['refresh'](),_0x4d599a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbe2738['execute'](_0x4d599a['commandName'],..._0x4d599a['commandParams']),_0x598666['setSelection'](_0x2e0501);for(const _0x2abea3 of _0x2e0501)_0x2abea3['detach']();});}),_0x10bc32['descriptionFactory']['registerElementLabel'](function(_0x581157){const _0x4ae508=!_0xbe2738['model']['schema']['isObject'](_0x581157),_0xfaba81=_0x581157['previousSibling'],_0x5b573d=_0x581157['nextSibling'],_0x14a3a5=_0x581157['getAttribute']('listItemId'),_0x19c080=!_0xfaba81||_0xfaba81['getAttribute']('listItemId')!==_0x14a3a5,_0x51c616=!_0x5b573d||_0x5b573d['getAttribute']('listItemId')!==_0x14a3a5;return _0x4ae508&&Boolean(_0x14a3a5)&&_0x19c080&&_0x51c616;},_0x2324aa=>Tt(_0x6958ba,'ELEMENT_LIST_ITEM',_0x2324aa));}['_registerLegacyDescription'](){const _0xd4adab=this['editor'],_0x585820=_0xd4adab['locale'];function _0x2d4edb(_0x34fb62){const _0xd90472=_0xd4adab['commands']['get']('bulletedList')['value'],_0x15a358=_0xd4adab['commands']['get']('numberedList')['value'];return'numberedList'===_0x34fb62?_0xd90472:_0x15a358;}_0xd4adab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x27bd44){if('formatBlock'!=_0x27bd44['type'])return;const {data:_0x29eee7}=_0x27bd44;if(!_0x29eee7)return;let _0x1c8652,_0x1e0385,_0x52303a,_0x1d6675;switch(_0x29eee7['commandName']){case'bulletedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x52303a=_0x29eee7['commandParams'][0x0]['forceValue'],_0x1d6675=_0x2d4edb(_0x29eee7['commandName']),_0x1c8652=_0x52303a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d6675&&_0xd4adab['config']['get']('list.multiBlock')||(_0x1c8652='*Change\x20to:*\x20%0'),_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c8652='*Indent:*\x20%0',_0x1e0385={'type':'format','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c8652=function(_0x27f841){const _0x1ae519=_0x27f841['getFirstRange']();let _0x32a190=_0x1ae519['start']['nodeAfter'];for(;_0x32a190&&_0x1ae519['containsItem'](_0x32a190);){if(_0x32a190['getAttribute']('listIndent')>0x0)return!0x1;_0x32a190=_0x32a190['nextSibling'];}return!0x0;}(_0x27bd44)?Tt(_0x585820,'*Format:*\x20remove\x20from\x20%0',Tt(_0x585820,function(_0x322def){return'ELEMENT_'+_0x322def['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x27bd44))):Tt(_0x585820,'*Outdent:*\x20%0',Tt(_0x585820,'ELEMENT_LIST_ITEM')),_0x1e0385={'type':'format','content':_0x1c8652};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x29eee7['multipleBlocks']&&(_0x1c8652='*Merge:*\x20%0',_0x1e0385={'type':'deletion','content':Tt(_0x585820,_0x1c8652,Tt(_0x585820,'ELEMENT_LIST_ITEM'))});}return _0x1e0385;});}}function kt(_0x39fdb7){let _0x254d4f=_0x39fdb7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x254d4f;){const _0x2a4a82=_0x254d4f['getAttribute']('listItemId');if(!_0x2a4a82)return!0x1;if(_0x2a4a82==_0x39fdb7['data']['newValue'])return'newValue';if(_0x2a4a82==_0x39fdb7['data']['oldValue'])return'oldValue';_0x254d4f=_0x254d4f['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3fd448=this['editor']['config']['get']('list.properties'),_0x46fb8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fd448['styles']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStyle'),_0x3fd448['reversed']&&_0x46fb8b['enableDefaultAttributesIntegration']('listReversed'),_0x3fd448['startIndex']&&_0x46fb8b['enableDefaultAttributesIntegration']('listStart');const _0x11cead={'type':'format','content':''};_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x57a57d=this['editor']['locale'];_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x57a57d,'FORMAT_LIST_REVERSED')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0xf4b3e9=>{const {data:_0x38b5de}=_0xf4b3e9;if(_0x38b5de&&'listReversed'==_0x38b5de['key'])return null==_0x38b5de['newValue']||0x0==_0x38b5de['newValue']&&null==_0x38b5de['oldValue']?_0x11cead:void 0x0;}),_0x46fb8b['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x57a57d,'FORMAT_LIST_START')),_0x46fb8b['descriptionFactory']['registerDescriptionCallback'](_0x2d3875=>{const {data:_0xb07940}=_0x2d3875;if(_0xb07940&&'listStart'==_0xb07940['key'])return null==_0xb07940['newValue']||0x1==_0xb07940['newValue']&&null==_0xb07940['oldValue']?_0x11cead:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x578d2=>{if(_0x578d2['batch']['isUndo'])return!0x1;let _0x535d0c=!0x1;const _0x176f62=_0x46fb8b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x401f60=>{const _0x171f3=_0x46fb8b['_getAttributeKey'](_0x401f60);return'listStart'==_0x171f3||'listReversed'==_0x171f3;});for(const _0x1290fb of _0x176f62){const _0x49a550=_0x1290fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x49a550||'customNumbered'==_0x49a550)continue;_0x46fb8b['_findSuggestions'](_0x1290fb['getFirstRange'](),'attribute')['find'](_0x2f142d=>'listType'==_0x46fb8b['_getAttributeKey'](_0x2f142d['suggestion']))||(_0x578d2['removeMarker'](_0x1290fb['getFirstMarker']()),_0x535d0c=!0x0);}return _0x535d0c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32aad6){const _0x41b7cf=this['editor']['locale'],{data:_0x71d474}=_0x32aad6,_0x5150a1={'type':'format','content':''};if(!_0x71d474||'listStyle'!=_0x71d474['key'])return;if(!_0x71d474['oldValue'])return'default'==_0x71d474['newValue']?_0x5150a1:{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};if(!_0x71d474['newValue']){if('default'==_0x71d474['oldValue'])return _0x5150a1;let _0x535482=_0x32aad6['head'];for(;_0x535482;){if(_0x535482['data']&&'listType'==_0x535482['data']['key']&&_0x535482['data']['newValue'])return _0x5150a1;_0x535482=_0x535482['next'];}return{'type':'format','content':''+Tt(_0x41b7cf,'*Remove\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['oldValue'])))};}if('default'!=_0x71d474['newValue'])return{'type':'format','content':''+Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,this['_getTranslationKeyForListStyle'](_0x71d474['newValue'])))};let _0xc553af=_0x32aad6['head'];for(;_0xc553af;){if(_0xc553af['data']&&'listType'==_0xc553af['data']['key']&&_0xc553af['data']['newValue']&&_0xc553af['data']['oldValue'])return _0x5150a1;_0xc553af=_0xc553af['next'];}return{'type':'format','content':Tt(_0x41b7cf,'*Set\x20format:*\x20%0',Tt(_0x41b7cf,'ELEMENT_'+_0x32aad6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a4389=this['editor'],_0x1781c1=_0x4a4389['locale'];_0x4a4389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580d34=>{if('formatBlock'!=_0x580d34['type'])return;const {data:_0x197536}=_0x580d34;if(!_0x197536)return;let _0x4d794b,_0x57de98;switch(_0x197536['commandName']){case'listStyle':_0x4d794b='*Change\x20to:*\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,Tt(_0x1781c1,this['_getTranslationKeyForListStyle'](_0x197536['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d794b=_0x197536['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b)};break;case'listStart':_0x4d794b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57de98={'type':'format','content':Tt(_0x1781c1,_0x4d794b,_0x197536['commandParams'][0x0]['startIndex'])};}return _0x57de98;});}['_getTranslationKeyForListStyle'](_0x59cd4e){return'ELEMENT_'+function(_0x407c44){if(Lt['includes'](_0x407c44))return'bulleted';if(It['includes'](_0x407c44))return'numbered';return null;}(_0x59cd4e)['toUpperCase']()+'_LIST_'+_0x59cd4e['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3000a5{['afterInit'](){const _0x559e97=this['editor'];_0x559e97['commands']['get']('emoji')&&_0x559e97['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3000a5{static get['requires'](){return[lt];}['init'](){const _0x474a90=this['editor'],_0x47251c=_0x474a90['plugins']['get']('TrackChangesEditing'),_0x3b10c0=_0x474a90['commands']['get']('enter');_0x47251c['enableCommand']('enter',()=>{_0x474a90['model']['change'](_0x5b5bbe=>{const _0x217e62=_0x474a90['model']['document']['selection'],_0x4bf7fb=_0x217e62['getFirstPosition'](),_0x4debc1=_0x2192a8['fromRange'](_0x217e62['getFirstRange']());if(_0x3b10c0['enterBlock'](_0x5b5bbe)){const _0x28e801=_0x474a90['model']['createPositionAt'](_0x4bf7fb['parent']['nextSibling'],0x0),_0x3a4fdf=_0x5b5bbe['createRange'](_0x4bf7fb,_0x28e801);_0x47251c['markInsertion'](_0x3a4fdf);}else _0x5b5bbe['setSelection'](_0x5b5bbe['createRange'](_0x4debc1['end']));_0x4debc1['detach'](),_0x3b10c0['fire']('afterExecute',{'writer':_0x5b5bbe});});});}}class TrackChangesFindAndReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x79c2af=this['editor']['plugins']['get']('TrackChangesEditing');_0x79c2af['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x79c2af['enableCommand']('findNext'),_0x79c2af['enableCommand']('findPrevious'),_0x79c2af['enableCommand']('replace'),_0x79c2af['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d2568,_0x11d2b0,_0x5a34dc={}){const _0x361968=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d2568(_0x2a6278=>{let _0x200962=('string'==typeof _0x11d2b0?_0x361968['findByTextCallback'](_0x11d2b0,_0x5a34dc):_0x11d2b0)(_0x2a6278);Array['isArray'](_0x200962)&&(_0x200962={'results':_0x200962,'searchText':'string'==typeof _0x11d2b0?_0x11d2b0:''});const _0x55c3d7=_0x200962['results']['filter'](_0x3ede61=>!0x1===this['_isInDeletionRange'](_0x3ede61,_0x2a6278['item']));return{..._0x200962,'results':_0x55c3d7};},_0x5a34dc);}['_isInDeletionRange'](_0x50f739,_0xdb2905){const _0x38b983=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['start']),this['editor']['model']['createPositionAt'](_0xdb2905,_0x50f739['end']));for(const _0xe78147 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38b983['getIntersection'](_0xe78147['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3000a5{['afterInit'](){const _0x4547db=this['editor']['locale'],_0x4b09d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28eb47,commandName:_0x1b99d2}of bt)this['editor']['plugins']['has'](_0x28eb47)&&_0x4b09d6['enableDefaultAttributesIntegration'](_0x1b99d2);_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x4547db,'FORMAT_FONT_SIZE')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x4547db,'FORMAT_FONT_FAMILY')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x4547db,'FORMAT_FONT_COLOR')),_0x4b09d6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x4547db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f6488=this['editor'],_0x483234=_0x5f6488['locale'];_0x5f6488['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7d7d=>{const _0x3f1080=_0x483234['t'];if('formatInline'!=_0x1f7d7d['type'])return;const {data:_0x32340e}=_0x1f7d7d;if(null!=_0x32340e){if('fontSize'==_0x32340e['commandName']){const _0x17088d=_0x32340e['commandParams'][0x0]['value'];if(_0x17088d){const _0x39b98b=_0x3f1080(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xadbb75=>_0xadbb75['model']==_0x17088d)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20size:*\x20%0',_0x39b98b)};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x32340e['commandName']){const _0x5bde89=_0x32340e['commandParams'][0x0]['value'];return _0x5bde89?{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20family:*\x20%0',_0x5bde89)}:{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20family*')};}if('fontColor'==_0x32340e['commandName']){const _0x356fc5=_0x32340e['commandParams'][0x0]['value'];if(_0x356fc5){const _0x25d767=_0x4b8cfa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d5fb3=>_0x5d5fb3['model']==_0x356fc5);let _0x281165=_0x356fc5,_0x2d11e9='';return _0x25d767&&(_0x281165=_0x25d767['label'],_0x2d11e9=_0x3f1080(_0x281165)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20color:*\x20%0',_0x2d11e9)['trim'](),'color':{'value':_0x356fc5,'title':_0x2d11e9||_0x281165}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x32340e['commandName']){const _0x25bfea=_0x32340e['commandParams'][0x0]['value'];if(_0x25bfea){const _0x244e79=_0x4b8cfa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13fac8=>_0x13fac8['model']==_0x25bfea);let _0x37a610=_0x25bfea,_0x49b4d9='';return _0x244e79&&(_0x37a610=_0x244e79['label'],_0x49b4d9=_0x3f1080(_0x37a610)['toLowerCase']()),{'type':'format','content':Tt(_0x483234,'*Set\x20font\x20background\x20color:*\x20%0',_0x49b4d9)['trim'](),'color':{'value':_0x25bfea,'title':_0x49b4d9||_0x37a610}};}return{'type':'format','content':Tt(_0x483234,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3000a5{['afterInit'](){const {plugins:_0x2fad69}=this['editor'];_0x2fad69['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2fad69['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x375010,plugins:_0x405e16,commands:_0x33465b}=this['editor'],_0x870b78=_0x405e16['get']('TrackChangesEditing');_0x33465b['get']('footnotesStyle')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStyle'),_0x33465b['get']('footnotesStart')&&_0x870b78['enableDefaultAttributesIntegration']('footnotesStart'),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x870b78['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x375010,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2df2a9=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2d2637,commands:_0x3736a2}=this['editor'];_0x3736a2['get']('insertFootnote')&&_0x2df2a9['enableCommand']('insertFootnote'),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteRef',_0x46ab8c=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_REF',_0x46ab8c)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x46c697=>Tt(_0x2d2637,'ELEMENT_FOOTNOTE_DEFINITION',_0x46c697)),_0x2df2a9['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x357d32=>Tt(_0x2d2637,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x357d32));}}class TrackChangesFormatPainter extends _0x3000a5{['afterInit'](){const _0x12137f=this['editor'],_0x10aa86=_0x12137f['plugins']['get']('TrackChangesEditing'),_0xfb4e2f=_0x12137f['commands']['get']('copyFormat'),_0x1c25d0=_0x12137f['commands']['get']('pasteFormat');_0xfb4e2f&&_0x1c25d0&&(_0x10aa86['enableDefaultAttributesIntegration']('pasteFormat'),_0x10aa86['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x341229=this['editor'],_0x5ae1bf=_0x341229['locale'];_0x341229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd44710=>{if('formatBlock'!=_0xd44710['type']&&'formatInline'!=_0xd44710['type'])return;const {data:_0x2acab7}=_0xd44710;if(_0x2acab7&&'pasteFormat'===_0x2acab7['commandName']){const _0x53b6bc=[],_0x479c68=_0x2acab7['commandParams'][0x0];for(const [_0x16ae93,_0x39d150]of Object['entries'](_0x479c68))_0x53b6bc['push'](At(_0x341229,_0x16ae93,_0x39d150));return _0x53b6bc['length']?{'type':'format','content':Tt(_0x5ae1bf,'*Set\x20format\x20to:*\x20%0',_0x53b6bc['join'](',\x20'))}:{'type':'format','content':Tt(_0x5ae1bf,'*Remove\x20all\x20formatting*')};}});}}function At(_0x4bf670,_0x3968d4,_0x520544){const _0x3b60f1=_0x4bf670['locale']['t'],_0x5edf3b=_0x3968d4['split'](/(?=[A-Z])/)['join']('\x20'),_0x230c22=_0x3b60f1(_0x5edf3b['charAt'](0x0)['toUpperCase']()+_0x5edf3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x520544)return _0x230c22;if('fontColor'===_0x3968d4||'fontBackgroundColor'===_0x3968d4){const _0x2b9dac=_0x4b8cfa(_0x4bf670['config']['get']('fontColor.colors'))['find'](_0x3361c4=>_0x3361c4['model']==_0x520544);return _0x230c22+'\x20('+(_0x2b9dac?_0x3b60f1(_0x2b9dac['label'])['toLowerCase']():_0x520544)+')';}if('fontSize'===_0x3968d4&&isNaN(parseFloat(_0x520544))){const _0xc360e3=_0x4bf670['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4bf670['config']['get']('fontSize.options'))['find'](_0xc48d99=>_0xc48d99['model']==_0x520544);return _0x230c22+'\x20('+(_0xc360e3?_0x3b60f1(_0xc360e3['title'])['toLowerCase']():_0x520544)+')';}return _0x230c22+'\x20('+_0x520544+')';}class TrackChangesHeading extends _0x3000a5{['_headingOptions'];['afterInit'](){const _0x213887=this['editor'];if(!_0x213887['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x213887['config']['get']('heading.options');const _0x587467=_0x213887['locale'],_0x34735e=_0x213887['plugins']['get']('TrackChangesEditing');_0x34735e['enableDefaultAttributesIntegration']('heading');for(const _0x1e514e of this['_headingOptions'])'paragraph'!=_0x1e514e['model']&&_0x34735e['descriptionFactory']['registerElementLabel'](_0x1e514e['model'],_0x2c3910=>{const _0x3d746c=this['_getHeadingLevel'](_0x1e514e['model']);return null!==_0x3d746c?_0x33e9a1(_0x2c3910,_0x3d746c):_0x56482e(_0x2c3910,_0x1e514e['title']);});function _0x33e9a1(_0x11d8fe,_0x46e904){return Tt(_0x587467,'ELEMENT_HEADING',[_0x11d8fe,_0x46e904]);}function _0x56482e(_0x33a936,_0x489574){return Tt(_0x587467,'ELEMENT_HEADING_CUSTOM',[_0x33a936,_0x489574]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546e31=this['editor'],_0x33f2c1=_0x546e31['locale'];function _0x4088ba(_0x1fb34c,_0x3c952a){return Tt(_0x33f2c1,'ELEMENT_HEADING_CUSTOM',[_0x1fb34c,_0x3c952a]);}_0x546e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b838c=>{if('formatBlock'!=_0x3b838c['type'])return;const {data:_0x13d11c}=_0x3b838c;if(_0x13d11c&&'heading'==_0x13d11c['commandName']){const _0x50ad12=_0x13d11c['commandParams'][0x0]['value'],_0x40d417=this['_getHeadingLevel'](_0x50ad12);if(null!==_0x40d417)return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',(_0x2bb327=0x1,_0x3fd1dd=_0x40d417,Tt(_0x33f2c1,'ELEMENT_HEADING',[_0x2bb327,_0x3fd1dd])))};const _0x40b041=this['_headingOptions']['find'](_0x1bbd0c=>_0x1bbd0c['model']===_0x50ad12)['title'];return{'type':'format','content':Tt(_0x33f2c1,'*Change\x20to:*\x20%0',_0x4088ba(0x1,_0x40b041))};}var _0x2bb327,_0x3fd1dd;});}['_getHeadingLevel'](_0x82ac95){const _0xac649e=_0x82ac95['match'](/^heading(\d+)/);if(_0xac649e)return _0xac649e[0x1];const _0x3f528b=this['_headingOptions']?.['find'](_0x434453=>_0x434453['model']==_0x82ac95);if(_0x3f528b&&_0x3f528b['view']){const _0x1553cf=_0x3f528b['view'],_0x327f76=(_0x1553cf['name']??_0x1553cf)['match'](/^h(\d+)/);if(_0x327f76)return _0x327f76[0x1];}return null;}}class TrackChangesHighlight extends _0x3000a5{['afterInit'](){const _0x159665=this['editor'];if(!_0x159665['plugins']['has']('HighlightEditing'))return;const _0x9f9339=_0x159665['plugins']['get']('TrackChangesEditing'),_0x2bc604=_0x159665['locale'];_0x9f9339['enableDefaultAttributesIntegration']('highlight'),_0x9f9339['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2bc604,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x486195=this['editor'],_0x30bef5=_0x486195['locale'];_0x486195['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352802=>{if('formatInline'!=_0x352802['type'])return;const {data:_0x5efa73}=_0x352802;if(_0x5efa73&&'highlight'==_0x5efa73['commandName']){const _0x578288=_0x30bef5['t'],_0x53dd78=_0x5efa73['commandParams'][0x0]['value'];if(_0x53dd78){const _0x1f29ab=_0x486195['config']['get']('highlight.options')['find'](_0x2d46b2=>_0x2d46b2['model']==_0x53dd78),_0x5b6867=_0x578288(_0x1f29ab['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x30bef5,'*Set\x20highlight:*\x20%0',_0x5b6867),'color':{'value':_0x1f29ab['color'],'title':_0x1f29ab['title']}};}return{'type':'format','content':Tt(_0x30bef5,'*Remove\x20highlight*',Tt(_0x30bef5,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3000a5{['afterInit'](){const _0x50950e=this['editor'];if(!_0x50950e['plugins']['has']('HorizontalLineEditing'))return;_0x50950e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x7be8d8=_0x50950e['plugins']['get']('TrackChangesEditing'),_0x3ada28=_0x50950e['locale'];_0x7be8d8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cced0=>Tt(_0x3ada28,'ELEMENT_HORIZONTAL_LINE',_0x1cced0));}}class TrackChangesHtmlEmbed extends _0x3000a5{['afterInit'](){const _0xaa4f8a=this['editor'];if(!_0xaa4f8a['plugins']['has']('HtmlEmbed'))return;const _0x416a6a=_0xaa4f8a['plugins']['get']('TrackChangesEditing'),_0x512ecd=_0xaa4f8a['locale'];_0x416a6a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e677e=>Tt(_0x512ecd,'ELEMENT_HTML_EMBED',_0x5e677e)),_0x416a6a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x416a6a['descriptionFactory']['registerDescriptionCallback'](_0x13f80d=>{if('attribute'!=_0x13f80d['type'])return;const {data:_0x2510de}=_0x13f80d;if(_0x2510de&&'value'==_0x2510de['key']&&_0x13f80d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f4a94=Tt(_0x512ecd,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x512ecd,'*Change\x20%0\x20content*',_0x1f4a94)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe30393=this['editor'],_0x3fdfdf=_0xe30393['locale'];_0xe30393['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b855=>{if('formatBlock'!=_0x49b855['type'])return;const {data:_0x577aae}=_0x49b855;if(_0x577aae&&'htmlEmbed'==_0x577aae['commandName']){const _0x260904=Tt(_0x3fdfdf,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x3fdfdf,'*Change\x20%0\x20content*',_0x260904)};}});}}class TrackChangesImage extends _0x3000a5{['afterInit'](){const _0x186d29=this['editor'];if(!_0x186d29['plugins']['has']('ImageEditing'))return;const _0x121e30=_0x186d29['plugins']['get']('TrackChangesEditing'),_0x2741e7=_0x186d29['plugins']['get']('ImageUtils'),_0x431bdb=_0x186d29['locale'];_0x121e30['enableCommand']('insertImage'),_0x121e30['descriptionFactory']['registerElementLabel']('imageBlock',_0x41bd3f=>Tt(_0x431bdb,'ELEMENT_IMAGE',_0x41bd3f)),_0x121e30['descriptionFactory']['registerElementLabel']('imageInline',_0x126c8b=>Tt(_0x431bdb,'ELEMENT_INLINE_IMAGE',_0x126c8b)),_0x121e30['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x431bdb,'ELEMENT_CAPTION')),_0x186d29['plugins']['has']('ImageUploadEditing')&&_0x121e30['enableCommand']('uploadImage'),_0x186d29['plugins']['has']('ImageBlockEditing')&&_0x186d29['plugins']['has']('ImageInlineEditing')&&(_0x121e30['enableCommand']('imageTypeInline',(_0x55d2e7,_0x4f22a4)=>{const _0x33feb0=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']);_0x186d29['model']['change'](()=>{_0x121e30['markBlockFormat'](_0x33feb0,{'commandName':'imageTypeInline','commandParams':[_0x4f22a4]},[],'convertBlockImageToInline');});}),_0x121e30['enableCommand']('imageTypeBlock',(_0x4e5702,_0x4e3f7f)=>{_0x186d29['model']['change'](_0x20650d=>{let _0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x3a7ba7=tt['fromPosition'](_0x208793['start'],'toPrevious'),_0x444ca9=tt['fromPosition'](_0x208793['end'],'toNext');_0x121e30['forceDefaultExecution'](()=>_0x4e5702(_0x4e3f7f)),_0x324fc6=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x208793=_0x20650d['createRangeOn'](_0x324fc6);const _0x1ed780=_0x20650d['createRange'](_0x3a7ba7,_0x444ca9);_0x3a7ba7['detach'](),_0x444ca9['detach'](),_0x121e30['markBlockFormat'](_0x324fc6,{'commandName':'imageTypeInline','commandParams':[_0x4e3f7f]},[],'convertInlineImageToBlock'),_0x1ed780['start']['isBefore'](_0x208793['start'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x1ed780['start'],_0x208793['start']),'convertInlineImageToBlock'),_0x208793['end']['isBefore'](_0x1ed780['end'])&&_0x121e30['markInsertion'](_0x20650d['createRange'](_0x208793['end'],_0x1ed780['end']),'convertInlineImageToBlock');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x121e30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f3d0b])=>{const _0x29d6dc=_0x121e30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e3cfc=_0x5f3d0b['start'],_0xa40e78=_0x5f3d0b['end'];const _0x1d1c85=_0x186d29['model']['schema']['getNearestSelectionRange'](_0x2e3cfc,'backward'),_0x15185a=_0x186d29['model']['schema']['getNearestSelectionRange'](_0xa40e78,'forward');_0x1d1c85['isCollapsed']&&(_0x2e3cfc=_0x1d1c85['start']),_0x15185a['isCollapsed']&&(_0xa40e78=_0x15185a['end']),_0x29d6dc([_0x186d29['model']['createRange'](_0x2e3cfc,_0xa40e78)]);}),_0x121e30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x41a668),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x41a668)),_0x186d29['plugins']['has']('ImageCaptionEditing')&&(_0x121e30['enableCommand']('toggleImageCaption',(_0x173485,_0x2570ff)=>{const _0x148317=_0x186d29['plugins']['get']('ImageCaptionUtils');let _0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956);_0x186d29['model']['change'](()=>{if(_0x794119)return void _0x121e30['markDeletion'](_0x186d29['model']['createRangeOn'](_0x794119));const _0x2bc38a=_0x2741e7['isBlockImage'](_0xeba956);_0x173485(_0x2570ff),_0xeba956=_0x2741e7['getClosestSelectedImageElement'](_0x186d29['model']['document']['selection']),_0x794119=_0x148317['getCaptionFromImageModelElement'](_0xeba956),_0x121e30['markInsertion'](_0x186d29['model']['createRangeOn'](_0x794119),_0x2bc38a?null:'imageCaption');});}),_0x121e30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x41a668));const _0x38101f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39f121(_0x464746,_0x53250a){const _0xa4881c=_0x38101f['findIndex'](({type:_0x7b202c,subType:_0x4a2bfe})=>_0x464746['type']==_0x7b202c&&_0x464746['subType']==_0x4a2bfe),_0x3b930f=_0x38101f['findIndex'](({type:_0x4fb310,subType:_0x392847})=>_0x53250a['type']==_0x4fb310&&_0x53250a['subType']==_0x392847);if(_0xa4881c<0x0||_0x3b930f<0x0)return!0x1;const _0x5c4cf0=_0x464746['getFirstRange'](),_0x3ade8b=_0x53250a['getFirstRange']();if((0x0==_0xa4881c||0x1==_0xa4881c)&&0x2==_0x3b930f&&_0x5c4cf0['isIntersecting'](_0x3ade8b))return!0x0;if(0x2==_0xa4881c&&0x3==_0x3b930f){const _0x320e26=_0x121e30['_findSuggestions'](_0x5c4cf0,'insertion')['filter'](({suggestion:_0x48ea6f,meta:_0x352739})=>_0x352739['isOwn']&&'convertInlineImageToBlock'==_0x48ea6f['subType']);if(_0x320e26['length']>0x1&&_0x3ade8b['end']['isEqual'](_0x5c4cf0['start']))return!0x0;if(0x1==_0x320e26['length']&&(_0x5c4cf0['start']['isEqual'](_0x3ade8b['end'])||_0x5c4cf0['end']['isEqual'](_0x3ade8b['start'])))return!0x0;}if(0x3==_0xa4881c&&0x3==_0x3b930f&&_0x5c4cf0['start']['isBefore'](_0x3ade8b['start'])){const _0x567598=_0x5c4cf0['end']['nodeAfter'],_0x364618=_0x3ade8b['start']['nodeBefore'];return _0x2741e7['isBlockImage'](_0x567598)&&_0x567598===_0x364618;}return!0x1;}function _0x41a668(_0x1db4bd,_0x21144a){return _0x39f121(_0x1db4bd,_0x21144a)?[_0x1db4bd,_0x21144a]:_0x39f121(_0x21144a,_0x1db4bd)?[_0x21144a,_0x1db4bd]:null;}_0x186d29['plugins']['has']('ImageResize')&&(_0x121e30['enableDefaultAttributesIntegration']('resizeImage'),_0x121e30['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x431bdb,'FORMAT_IMAGE_SIZE'))),_0x186d29['plugins']['has']('ImageTextAlternativeEditing')&&_0x121e30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x186d29['plugins']['has']('PictureEditing')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x539389=>{if('attribute'!=_0x539389['type'])return;const {data:_0x163518}=_0x539389;return _0x163518&&'sources'==_0x163518['key']?{'type':'format','content':''}:void 0x0;}),_0x186d29['plugins']['has']('ImageSizeAttributes')&&_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x1c962d=>{if('attribute'!=_0x1c962d['type'])return;const {data:_0x1a7aab}=_0x1c962d;return!_0x1a7aab||'width'!=_0x1a7aab['key']&&'height'!=_0x1a7aab['key']?void 0x0:{'type':'format','content':''};}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x31ebf5=>{if(!!_0x38101f['find'](({type:_0x2a8b61,subType:_0x11ba16})=>_0x31ebf5['type']==_0x2a8b61&&_0x31ebf5['subType']==_0x11ba16))return _0x31ebf5['previous']?{}:void 0x0;}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x5a7bf2=>{if('insertion'==_0x5a7bf2['type']||'deletion'==_0x5a7bf2['type']){const _0x30da16=_0x5a7bf2['getContainedElement']();if(_0x30da16&&_0x30da16['is']('element','caption'))return{'type':'insertion'==_0x5a7bf2['type']?'addObject':'removeObject','element':_0x30da16,'quantity':0x1};}}),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x28daf7=>'formatBlock'==_0x28daf7['type']&&'convertInlineImageToBlock'==_0x28daf7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x28daf7['type']&&'convertBlockImageToInline'==_0x28daf7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x121e30['descriptionFactory']['registerDescriptionCallback'](_0x22cb07=>{if('attribute'!=_0x22cb07['type'])return;const {data:_0x569df4}=_0x22cb07;if(!_0x569df4||'alt'!=_0x569df4['key'])return;const _0x4be490=_0x569df4['newValue'];return _0x4be490?{'type':'format','content':Tt(_0x431bdb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4be490+'\x22')}:{'type':'format','content':Tt(_0x431bdb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b6bd=this['editor'],_0x4d9dbf=_0x15b6bd['locale'];_0x15b6bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c901e=>{if('formatBlock'!=_0x1c901e['type']&&'formatInline'!=_0x1c901e['type'])return;const {data:_0x57ee78}=_0x1c901e;if(_0x57ee78){if('imageTextAlternative'==_0x57ee78['commandName']){const _0x5945a3=_0x57ee78['commandParams'][0x0]['newValue'];return _0x5945a3?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5945a3+'\x22')}:{'type':'format','content':Tt(_0x4d9dbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57ee78['commandName']){const _0x374814=_0x57ee78['commandParams'][0x0]['width'];return _0x374814?{'type':'format','content':Tt(_0x4d9dbf,'*Set\x20image\x20width:*\x20%0',_0x374814)}:{'type':'format','content':Tt(_0x4d9dbf,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2be089=this['editor']['locale'],_0x288e65=this['editor']['plugins']['get']('TrackChangesEditing');_0x288e65['enableDefaultAttributesIntegration']('replaceImageSource'),_0x288e65['descriptionFactory']['registerDescriptionCallback'](_0x576d4b=>{if('attribute'!=_0x576d4b['type'])return;const {data:_0x3b4b6b}=_0x576d4b;return _0x3b4b6b&&'src'==_0x3b4b6b['key']?_0x3b4b6b['newValue']&&_0x3b4b6b['oldValue']?{'type':'format','content':Tt(_0x2be089,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d5863=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d5863['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2d5863['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b82c=this['editor'],_0x30ca89=_0x23b82c['locale'];_0x23b82c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23cc1=>{if('formatBlock'!=_0x23cc1['type']&&'formatInline'!=_0x23cc1['type'])return;const {data:_0x3c4e29}=_0x23cc1;if(!_0x3c4e29||'replaceImageSource'!=_0x3c4e29['commandName'])return;return{'type':'format','content':Tt(_0x30ca89,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3000a5{['afterInit'](){const _0x3daa49=this['editor'];if(!_0x3daa49['plugins']['has']('ImageStyleEditing'))return;const _0x2b007c=_0x3daa49['plugins']['get']('TrackChangesEditing'),_0x3942ab=_0x3daa49['plugins']['get']('ImageUtils'),_0x52a2b3={};_0x2b007c['enableCommand']('imageStyle',(_0x505a7b,_0x2b73b3)=>{const _0x20f174=_0x3daa49['plugins']['get']('Users')['me'],_0x546daf=_0x3daa49['commands']['get']('imageStyle');let _0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x4e8ca1=_0x546daf['value'];if(_0x4e8ca1==_0x2b73b3['value'])return;const _0x13da6c={'commandName':'imageStyle','commandParams':[_0x2b73b3],'formatGroupId':_0x59fa6d()};_0x3daa49['model']['change'](()=>{if(_0x2b007c['getSuggestions']()['filter'](_0x42050e=>_0x42050e['isInContent']&&_0x20f174==_0x42050e['author']&&('formatBlock'==_0x42050e['type']||'formatInline'==_0x42050e['type'])&&('imageStylePreApply'==_0x42050e['subType']||'imageStylePostApply'==_0x42050e['subType'])&&_0x42050e['getFirstRange']()['isEqual'](_0x291284))['forEach'](_0x444e95=>_0x2b007c['discardSuggestion'](_0x444e95['head'])),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),_0x291284=_0x3daa49['model']['createRangeOn'](_0x14535c),_0x546daf['refresh'](),_0x3daa49['commands']['get']('imageTypeInline')['refresh'](),_0x3daa49['commands']['get']('imageTypeBlock')['refresh'](),_0x4e8ca1=_0x546daf['value'],_0x4e8ca1!=_0x2b73b3['value'])return _0x3942ab['isInlineImage'](_0x14535c)&&_0x546daf['shouldConvertImageType'](_0x2b73b3['value'],_0x14535c)?(_0x505a7b({..._0x2b73b3,'setImageSizes':!0x1}),_0x14535c=_0x3942ab['getClosestSelectedImageElement'](_0x3daa49['model']['document']['selection']),void _0x2b007c['markBlockFormat'](_0x14535c,{..._0x13da6c,'commandReversedParams':[{'value':_0x4e8ca1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3942ab['isBlockImage'](_0x14535c)?_0x2b007c['markBlockFormat'](_0x14535c,_0x13da6c,[],'imageStylePostApply'):_0x2b007c['markInlineFormat'](_0x291284,_0x13da6c,'imageStylePostApply'));});});for(const _0x55343a of _0x3daa49['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52a2b3[_0x55343a['name']]=_0x55343a['title']['toLowerCase']();_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57c8df])=>{_0x3942ab['setImageNaturalSizeAttributes'](_0x57c8df['getContainedElement']());}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bd7dd,_0x225ccb)=>{_0x2b007c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bd7dd,{'commandName':_0x225ccb['commandName'],'commandParams':_0x225ccb['commandReversedParams']});}),_0x2b007c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2df2c0,_0x5dfa21){if(_0x5dfff9(_0x2df2c0,_0x5dfa21))return[_0x2df2c0,_0x5dfa21];if(_0x5dfff9(_0x5dfa21,_0x2df2c0))return[_0x5dfa21,_0x2df2c0];return null;});const _0x108a0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5dfff9(_0x5ab236,_0x42b443){const _0x12fa56=_0x108a0a['findIndex'](({type:_0x4027ce,subType:_0x2c8b23})=>_0x5ab236['type']==_0x4027ce&&_0x5ab236['subType']==_0x2c8b23),_0x1013f5=_0x108a0a['findIndex'](({type:_0x19365e,subType:_0x212991})=>_0x42b443['type']==_0x19365e&&_0x42b443['subType']==_0x212991);if(_0x12fa56<0x0||_0x1013f5<0x0)return!0x1;const _0x2e6934=_0x5ab236['getFirstRange'](),_0x4eea31=_0x42b443['getFirstRange']();if((0x0==_0x12fa56||0x1==_0x12fa56)&&0x2==_0x1013f5&&_0x2e6934['isIntersecting'](_0x4eea31))return!0x0;if(0x2==_0x12fa56&&0x3==_0x1013f5){const _0xd6738e=_0x2b007c['_findSuggestions'](_0x2e6934,'insertion')['filter'](({suggestion:_0x294452,meta:_0x1aa395})=>_0x1aa395['isOwn']&&'convertInlineImageToBlock'==_0x294452['subType']);if(_0xd6738e['length']>0x1&&_0x4eea31['end']['isEqual'](_0x2e6934['start']))return!0x0;if(0x1==_0xd6738e['length']&&(_0x2e6934['start']['isEqual'](_0x4eea31['end'])||_0x2e6934['end']['isEqual'](_0x4eea31['start'])))return!0x0;}if(0x3==_0x12fa56&&0x3==_0x1013f5&&_0x2e6934['start']['isBefore'](_0x4eea31['start'])){const _0x452f5c=_0x2e6934['end']['nodeAfter'],_0x47b323=_0x4eea31['start']['nodeBefore'];return _0x3942ab['isBlockImage'](_0x452f5c)&&_0x452f5c===_0x47b323;}return!0x1;}_0x3daa49['model']['document']['registerPostFixer'](()=>{let _0x156bb0=!0x1;const _0xaa4a93=Array['from'](_0x3daa49['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47ce26,data:_0x101256}of _0xaa4a93){const {group:_0x39ac8a,type:_0x5439fc,subType:_0x2a7d2e,id:_0x567a2e}=_0x2522cc(_0x47ce26);if('suggestion'==_0x39ac8a&&_0x2b007c['hasSuggestion'](_0x567a2e)){if('formatBlock'==_0x5439fc&&('imageStylePreApply'==_0x2a7d2e||'imageStylePostApply'==_0x2a7d2e)){const _0x4d10f9=_0x2b007c['getSuggestion'](_0x567a2e);if(_0x101256['newRange']){const _0xc38bcf=_0x4d10f9['getFirstRange']()['getContainedElement']();if(_0x3942ab['isBlockImage'](_0xc38bcf))continue;_0x2b007c['discardSuggestion'](_0x4d10f9),_0x156bb0=!0x0;}}if('insertion'==_0x5439fc&&'imageCaption'==_0x2a7d2e&&!_0x101256['newRange']){const _0x3b0e08=_0x2b007c['getSuggestion'](_0x567a2e);_0x3b0e08['next']&&_0x3b0e08['next']['isInContent']&&(_0x2b007c['discardSuggestion'](_0x3b0e08['next']),_0x156bb0=!0x0);}}}return _0x156bb0;}),this['_registerLegacyDescription'](_0x52a2b3);}['_registerLegacyDescription'](_0x42bdb9){const _0x3fe827=this['editor'],_0x23127c=_0x3fe827['locale'];_0x3fe827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5868be=>{if('formatBlock'!=_0x5868be['type']&&'formatInline'!=_0x5868be['type'])return;const {data:_0xf24ef9}=_0x5868be;if(!_0xf24ef9||'imageStyle'!=_0xf24ef9['commandName'])return;const _0x5843a7=_0xf24ef9['commandParams'][0x0]['value'];return _0x342c91('side'===_0x5843a7?Tt(_0x23127c,'FORMAT_SIDE_IMAGE'):_0x42bdb9[_0x5843a7]||_0x5843a7);function _0x342c91(_0x288254){return{'type':'format','content':Tt(_0x23127c,'*Format:*\x20%0',_0x288254)};}});}}class TrackChangesImportWord extends _0x3000a5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x55e213){super(_0x55e213),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x24dce2=this['editor'],_0x4cd5d5=_0x24dce2['commands']['get']('importWord'),_0x29b517=_0x24dce2['commands']['get']('trackChanges');_0x4cd5d5&&(_0x4cd5d5['on']('execute',(_0x365f84,[,_0x2cc086])=>{this['_trackChangesValueDuringImport']=_0x29b517['value'],_0x2cc086['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cd5d5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cd5d5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x29b517['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24dce2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1c02f8,_0x5c143c){const {suggestions:_0x25a859}=_0x5c143c,_0x3dbc18=this['editor']['commands']['get']('trackChanges'),_0x44865b=_0x3dbc18['value'];this['_trackChangesValueDuringImport']!==_0x44865b&&(_0x3dbc18['execute'](),this['_trackChangesExecuted']=!0x0),_0x25a859&&_0x25a859['forEach'](({id:_0x26b5c3,type:_0x49428f,author:_0x20e81a,created_at:_0xc3fbdc})=>{const _0x9786b={'id':_0x26b5c3,'type':_0x49428f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20e81a,'createdAt':_0xc3fbdc?new Date(_0xc3fbdc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x9786b);});}}class TrackChangesIndent extends _0x3000a5{['afterInit'](){const _0xfd82c3=this['editor'],_0xe93b8e=_0xfd82c3['plugins']['get']('TrackChangesEditing');if(_0xfd82c3['plugins']['has']('IndentEditing')&&(_0xe93b8e['enableCommand']('indent'),_0xe93b8e['enableCommand']('outdent')),_0xfd82c3['plugins']['has']('IndentBlock')){for(const _0x9c1469 of['indentBlock','outdentBlock'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x9c1469);if(_0xfd82c3['plugins']['has']('ListEditing')){for(const _0x2c1156 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xe93b8e['enableDefaultAttributesIntegration'](_0x2c1156);}}const _0x118e8a=_0xfd82c3['locale'];_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x118e8a,'FORMAT_INDENT')),_0xe93b8e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x118e8a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51a04e=this['editor'],_0x4ebf18=_0x51a04e['locale'],_0xd7b822=_0x51a04e['plugins']['get']('TrackChangesEditing');_0xd7b822['descriptionFactory']['registerDescriptionCallback'](_0x18b023=>{if('formatBlock'!=_0x18b023['type'])return;const {data:_0x24c6d0}=_0x18b023;if(!_0x24c6d0)return;if('indentBlock'!=_0x24c6d0['commandName']&&'outdentBlock'!=_0x24c6d0['commandName'])return;const _0x1de794=_0x18b023['getItems']()[0x0],_0x3db146=_0xd7b822['descriptionFactory']['getItemLabel'](_0x1de794);return'indentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Indent:*\x20%0',_0x3db146)}:'outdentBlock'==_0x24c6d0['commandName']?{'type':'format','content':Tt(_0x4ebf18,'*Outdent:*\x20%0',_0x3db146)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3000a5{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3000a5{['afterInit'](){const _0x306868=this['editor'];if(!_0x306868['plugins']['has']('LinkEditing'))return;const _0x383610=_0x306868['plugins']['get']('TrackChangesEditing'),_0x4cabf2=_0x306868['commands']['get']('link');_0x383610['enableDefaultAttributesIntegration']('link'),_0x383610['enableDefaultAttributesIntegration']('unlink');for(const _0x58b909 of _0x4cabf2['manualDecorators'])_0x383610['descriptionFactory']['registerAttributeLabel'](_0x58b909['id'],'link\x20('+_0x58b909['label']['toLowerCase']()+')');_0x383610['descriptionFactory']['registerDescriptionCallback'](_0x3e875e=>{if('attribute'!=_0x3e875e['type'])return;const {data:_0x1552ea}=_0x3e875e;if(!_0x1552ea||'linkHref'!=_0x1552ea['key'])return;const _0x117ca4=_0x1552ea['newValue'],_0x2ccfc7=_0x306868['locale'];return{'type':'format','content':null==_0x117ca4?Tt(_0x2ccfc7,'*Remove\x20link*'):Tt(_0x2ccfc7,'*Set\x20link:*\x20%0','\x22'+_0x117ca4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5227dd=this['editor'],_0x4c53ae=_0x5227dd['locale'];_0x5227dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea71fd=>{if('formatInline'!=_0xea71fd['type'])return;const {data:_0x4d3c05}=_0xea71fd;if(_0x4d3c05){if('link'==_0x4d3c05['commandName']){const _0x307b08=_0x4d3c05['commandParams'][0x0];return{'type':'format','content':Tt(_0x4c53ae,'*Set\x20link:*\x20%0','\x22'+_0x307b08+'\x22')};}return'unlink'==_0x4d3c05['commandName']?{'type':'format','content':Tt(_0x4c53ae,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3000a5{['afterInit'](){const _0x41c29c=this['editor'],_0x3e5f17=_0x41c29c['locale'];if(!_0x41c29c['plugins']['has']('LegacyListEditing'))return;const _0x1d683a=_0x41c29c['plugins']['get']('TrackChangesEditing'),_0x3c502b=_0x41c29c['plugins']['has']('LegacyTodoListEditing');function _0x37f9df(_0x1ffe5a){return()=>{const _0x55efa1=_0x41c29c['model']['document']['selection'],_0x45e7b1=_0x41c29c['commands']['get'](_0x1ffe5a);if(_0x45e7b1['value'])return void _0x41c29c['execute']('paragraph',{});const _0x18258f=_0x1ffe5a['slice'](0x0,-0x4),_0x585e10=function(_0x883368,_0x10ce3f,_0x1c4810){let _0x575fa6=Array['from'](_0x883368)['filter'](_0x30549f=>function(_0x437344,_0xd26d8c){return _0xd26d8c['checkChild'](_0x437344['parent'],'listItem')&&!_0xd26d8c['isObject'](_0x437344);}(_0x30549f,_0x1c4810));_0x575fa6=_0x575fa6['filter'](_0x2fe7d9=>!_0x2fe7d9['is']('element','listItem')||_0x2fe7d9['getAttribute']('listType')!=_0x10ce3f);const _0x3f48c0=new Set();for(const _0x5229ec of _0x575fa6)_0x5229ec['is']('element','listItem')?_0x3f48c0['add'](St(_0x5229ec)):_0x3f48c0['add'](_0x5229ec);return Array['from'](_0x3f48c0);}(_0x55efa1['getSelectedBlocks'](),_0x18258f,_0x41c29c['model']['schema']);_0x41c29c['model']['change'](()=>{for(const _0x5336db of _0x585e10)_0x1d683a['markBlockFormat'](_0x5336db,{'commandName':_0x1ffe5a,'commandParams':[{'forceValue':!_0x45e7b1['value']}],'formatGroupId':'blockName'},yt(_0x5336db));});};}function _0x47438c(_0x9af66a){return()=>{const _0x1823d4=function(_0x221333){let _0x3fb432=Array['from'](_0x221333);const _0x9b2a9a=_0x3fb432['findIndex'](_0x485775=>'listItem'!=_0x485775['name']);return _0x9b2a9a>-0x1&&(_0x3fb432=_0x3fb432['slice'](0x0,_0x9b2a9a)),_0x3fb432;}(_0x41c29c['model']['document']['selection']['getSelectedBlocks']()),_0x45ecde=_0x41c29c['model']['createRange'](_0x41c29c['model']['createPositionAt'](_0x1823d4[0x0],'before'),_0x41c29c['model']['createPositionAt'](_0x1823d4[_0x1823d4['length']-0x1],'end'));_0x41c29c['model']['change'](()=>{_0x1d683a['markBlockFormat'](_0x45ecde,{'commandName':_0x9af66a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x156f62){const _0x285172=new Set();for(const _0x30722b of _0x156f62){let _0x5644bc=_0x30722b['nextSibling'];for(;_0x5644bc&&_0x5644bc['getAttribute']('listIndent')>_0x30722b['getAttribute']('listIndent');)_0x285172['add'](_0x5644bc),_0x5644bc=_0x5644bc['nextSibling'];}return Array['from'](_0x285172);}(_0x1823d4));});};}_0x1d683a['enableCommand']('numberedList',_0x37f9df('numberedList')),_0x1d683a['enableCommand']('bulletedList',_0x37f9df('bulletedList')),_0x3c502b&&_0x1d683a['enableCommand']('todoList',_0x37f9df('todoList')),_0x1d683a['enableCommand']('indentList',_0x47438c('indentList')),_0x1d683a['enableCommand']('outdentList',_0x47438c('outdentList')),_0x3c502b&&_0x1d683a['enableCommand']('checkTodoList',()=>{const _0x5755b0=_0x41c29c['commands']['get']('checkTodoList'),_0x3354d9=Array['from'](_0x5755b0['_selectedElements']);_0x3354d9['filter'](_0x2bdf1e=>_0x2bdf1e['getAttribute']('todoListChecked')!=_0x5755b0['value']),_0x41c29c['model']['change'](()=>{for(const _0x1e2bd3 of _0x3354d9)_0x1d683a['markBlockFormat'](_0x1e2bd3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5755b0['value']}]});});}),_0x1d683a['descriptionFactory']['registerElementLabel']('listItem',_0x2f6ea1=>Tt(_0x3e5f17,'ELEMENT_LIST_ITEM',_0x2f6ea1)),_0x1d683a['descriptionFactory']['registerDescriptionCallback'](_0x150e4b=>{if('formatBlock'!=_0x150e4b['type']&&'formatInline'!=_0x150e4b['type'])return;const {data:_0x4614d5}=_0x150e4b;if(_0x4614d5){if('numberedList'==_0x4614d5['commandName']||'bulletedList'==_0x4614d5['commandName']||'todoList'==_0x4614d5['commandName'])switch(_0x4614d5['commandName']['replace']('List','')){case'bulleted':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28c6e5(Tt(_0x3e5f17,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Indent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4614d5['commandName'])return{'type':'format','content':Tt(_0x3e5f17,'*Outdent:*\x20%0',Tt(_0x3e5f17,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4614d5['commandName'])return _0x4614d5['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e5f17,'*Check\x20item*')}:{'type':'format','content':Tt(_0x3e5f17,'*Uncheck\x20item*')};}function _0x28c6e5(_0x2c4d13){return{'type':'format','content':Tt(_0x3e5f17,'*Change\x20to:*\x20%0',_0x2c4d13)};}});}}function St(_0x10a52d){const _0x6f740e=_0x10a52d['getAttribute']('listIndent');if(0x0==_0x6f740e)return _0x10a52d;let _0x266108=_0x10a52d;for(;_0x10a52d['previousSibling']&&_0x10a52d['previousSibling']['is']('element','listItem');){const _0xad7870=_0x10a52d['previousSibling']['getAttribute']('listIndent');if(_0xad7870==_0x6f740e)_0x266108=_0x10a52d['previousSibling'];else{if(_0xad7870<_0x6f740e)break;}_0x10a52d=_0x10a52d['previousSibling'];}return _0x266108;}function yt(_0x93d4f9){const _0xb97dfc=[];if(_0x93d4f9['is']('element','listItem')&&_0x93d4f9['getAttribute']('listIndent')>0x0){let _0xb9fd22=_0x93d4f9['nextSibling'];for(;_0xb9fd22&&'listItem'==_0xb9fd22['name']&&_0xb9fd22['getAttribute']('listIndent')==_0x93d4f9['getAttribute']('listIndent');)_0xb97dfc['push'](_0xb9fd22),_0xb9fd22=_0xb9fd22['nextSibling'];}return _0xb97dfc;}class TrackChangesLegacyListProperties extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1a98ce=this['editor']['config']['get']('list.properties'),_0x4021e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a98ce['styles']&&_0x4021e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1a98ce['reversed']&&_0x4021e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1a98ce['startIndex']&&_0x4021e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4021e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xfe8f10,_0xed927d={}){const _0x1ac0c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x434477=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ac0c0['markMultiRangeBlockFormat'](_0x434477,{'commandName':'listStyle','commandParams':[{'type':_0xed927d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e1beb,_0x2c84fe={}){const _0x3cfc40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9d4e=this['_getSuggestionBlocks'](_0x46586f=>_0x46586f['is']('element','listItem')&&'numbered'===_0x46586f['getAttribute']('listType'));if(_0x1b9d4e['length']<0x1)return;const _0x4b006a=_0x1b9d4e['map'](_0x185d3c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x185d3c,'before'),this['editor']['model']['createPositionAt'](_0x185d3c,0x0)));this['editor']['model']['change'](()=>{_0x3cfc40['markMultiRangeBlockFormat'](_0x4b006a,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c84fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x597efb,_0x904e83={}){const _0x34e251=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2434ce=this['_getSuggestionBlocks'](_0x51f734=>_0x51f734['is']('element','listItem')&&'numbered'===_0x51f734['getAttribute']('listType'));if(_0x2434ce['length']<0x1)return;const _0x35d0df=_0x2434ce['map'](_0x4dcc5d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dcc5d,'before'),this['editor']['model']['createPositionAt'](_0x4dcc5d,0x0)));this['editor']['model']['change'](()=>{_0x34e251['markMultiRangeBlockFormat'](_0x35d0df,{'commandName':'listStart','commandParams':[{'startIndex':_0x904e83['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a2752){if('formatBlock'!=_0x3a2752['type']&&'formatInline'!=_0x3a2752['type'])return;const _0x14539e=this['editor']['locale'],{data:_0x33dede}=_0x3a2752;if(!_0x33dede)return;let _0x47ab8a,_0x40b631;switch(_0x33dede['commandName']){case'listStyle':_0x47ab8a='*Change\x20to:*\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,Tt(_0x14539e,this['_getTranslationKeyForListStyle'](_0x33dede['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47ab8a=_0x33dede['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a)};break;case'listStart':_0x47ab8a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40b631={'type':'format','content':Tt(_0x14539e,_0x47ab8a,_0x33dede['commandParams'][0x0]['startIndex'])};}return _0x40b631;}['_getSuggestionBlocksForListStyle'](){const _0x547076=this['editor']['plugins']['get']('LegacyListUtils');let _0x257813=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x257813[0x0]?.['is']('element','listItem')&&_0x257813['unshift'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x257813[_0x257813['length']-0x1]?.['is']('element','listItem')&&_0x257813['push'](..._0x547076['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x257813=[...new Set(_0x257813)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x257813=_0x257813['filter'](_0x42bf22=>_0x42bf22['is']('element','listItem'))),_0x257813;}['_getSuggestionBlocks'](_0x308055){const _0x14254b=this['editor']['plugins']['get']('LegacyListUtils');let _0x3803bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x308055)['map'](_0x726160=>{const _0x9ff38a=this['editor']['model']['createPositionAt'](_0x726160,0x0);return[..._0x14254b['getSiblingNodes'](_0x9ff38a,'backward'),..._0x14254b['getSiblingNodes'](_0x9ff38a,'forward')];})['flat']();return _0x3803bd=[...new Set(_0x3803bd)],_0x3803bd;}['_getTranslationKeyForListStyle'](_0xe5da09){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xe5da09)||'default')['toUpperCase']()+'_LIST_'+_0xe5da09['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3000a5{['afterInit'](){const _0x497d72=this['editor'];if(!_0x497d72['plugins']['has']('MediaEmbedEditing'))return;const _0x39e86a=_0x497d72['plugins']['get']('TrackChangesEditing'),_0x577b8c=_0x497d72['locale'];_0x39e86a['enableCommand']('mediaEmbed'),_0x39e86a['descriptionFactory']['registerElementLabel']('media',_0x4fbd83=>Tt(_0x577b8c,'ELEMENT_MEDIA',_0x4fbd83));}}class TrackChangesMention extends _0x3000a5{['afterInit'](){const _0x1f2198=this['editor'];_0x1f2198['plugins']['has']('MentionEditing')&&_0x1f2198['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3000a5{['afterInit'](){const _0x215661=this['editor'];if(!_0x215661['plugins']['has']('MergeFieldsEditing'))return;const _0x21c873=_0x215661['plugins']['get']('TrackChangesEditing'),_0x38e706=_0x215661['locale'];_0x21c873['enableCommand']('insertMergeField'),_0x21c873['enableCommand']('insertMergeFieldBlock'),_0x21c873['enableCommand']('insertMergeFieldImage'),_0x21c873['descriptionFactory']['registerElementLabel']('mergeField',_0x14538e=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x14538e)),_0x21c873['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e9bee=>Tt(_0x38e706,'ELEMENT_MERGE_FIELD',_0x2e9bee)),_0x21c873['descriptionFactory']['registerDescriptionCallback'](_0x59eef7=>{if('insertion'!=_0x59eef7['type']&&'deletion'!=_0x59eef7['type'])return;const _0x2b73af=_0x59eef7['getContainedElement']();if(null==_0x2b73af)return;const _0x31bbe2=_0x215661['plugins']['get']('MergeFieldsEditing');let _0x154add;switch(_0x31bbe2['getMergeFieldType'](_0x2b73af)){case null:return;case'image':{const _0x119328=_0x31bbe2['unwrapAffixes'](_0x2b73af['getAttribute']('src'));_0x154add=_0x31bbe2['getLabel'](_0x119328)||_0x119328;break;}default:{const _0x211c15=_0x2b73af['getAttribute']('id');_0x154add=_0x31bbe2['getLabel'](_0x211c15)||_0x211c15;break;}}return'insertion'==_0x59eef7['type']?{'type':'insertion','content':Tt(_0x38e706,'*Insert:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x38e706,'*Remove:*\x20%0','\x22'+_0x154add+'\x22\x20'+Tt(_0x38e706,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3000a5{['afterInit'](){const _0x4eb965=this['editor'],_0x3fb630=_0x4eb965['plugins']['get']('TrackChangesEditing');_0x4eb965['plugins']['has']('MultiLevelList')&&(_0x3fb630['enableDefaultAttributesIntegration']('multiLevelList'),_0x3fb630['descriptionFactory']['registerDescriptionCallback'](_0x2b47fd=>this['handleDescriptions'](_0x2b47fd)));}['handleDescriptions'](_0x47c6a9){const _0x45e398=this['editor']['locale'],{data:_0x56b6df}=_0x47c6a9,_0x2098d5={'type':'format','content':''};if(_0x56b6df&&'listMarkerStyle'==_0x56b6df['key']){if(!_0x56b6df['oldValue'])return{'type':'format','content':Tt(_0x45e398,'*Set\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['newValue']+')'};if(!_0x56b6df['newValue']){let _0x48b277=_0x47c6a9['head'];for(;_0x48b277;){if(_0x48b277['data']&&'listType'==_0x48b277['data']['key']&&_0x48b277['data']['newValue'])return _0x2098d5;_0x48b277=_0x48b277['next'];}return{'type':'format','content':Tt(_0x45e398,'*Remove\x20format:*\x20%0',Tt(_0x45e398,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56b6df['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3000a5{['afterInit'](){const _0x9ee972=this['editor'];if(!_0x9ee972['plugins']['has']('PageBreakEditing'))return;_0x9ee972['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc2cc36=_0x9ee972['plugins']['get']('TrackChangesEditing'),_0xb8c1cd=_0x9ee972['locale'];_0xc2cc36['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f4693=>Tt(_0xb8c1cd,'ELEMENT_PAGE_BREAK',_0x4f4693));}}class TrackChangesParagraph extends _0x3000a5{['afterInit'](){const _0x444308=this['editor'];if(!_0x444308['plugins']['has']('Paragraph'))return;const _0x310ee3=_0x444308['locale'],_0x5cf220=_0x444308['plugins']['get']('TrackChangesEditing');_0x5cf220['descriptionFactory']['registerElementLabel']('paragraph',_0x5d3ef0=>Tt(_0x310ee3,'ELEMENT_PARAGRAPH',_0x5d3ef0)),_0x5cf220['enableDefaultAttributesIntegration']('paragraph'),_0x5cf220['enableCommand']('insertParagraph');const _0x943f2b=_0x5cf220['descriptionFactory'];_0x943f2b['registerDescriptionCallback'](_0x2bb270=>{if('insertion'!==_0x2bb270['type'])return;const {start:_0x27ddc0,end:_0x4974a9}=_0x2bb270['getFirstRange']();if(!_0x27ddc0['isTouching'](_0x4974a9)||!_0x27ddc0['nodeAfter'])return;const _0x2cabdd=_0x444308['model']['schema'],_0x4f965f=_0x27ddc0['nodeAfter'];return _0x2cabdd['isBlock'](_0x4f965f)&&!_0x2cabdd['isLimit'](_0x4f965f)&&_0x2cabdd['checkChild'](_0x4f965f,'$text')?{'type':'insertion','content':Tt(_0x310ee3,'*Insert:*\x20%0',_0x943f2b['getItemLabel'](_0x4f965f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142eb3=this['editor'],_0x1fd70b=_0x142eb3['locale'];_0x142eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c730=>{if('formatBlock'!=_0x16c730['type'])return;const {data:_0x1fbffe}=_0x16c730;return _0x1fbffe&&'paragraph'==_0x1fbffe['commandName']?{'type':'format','content':Tt(_0x1fd70b,'*Change\x20to:*\x20%0',Tt(_0x1fd70b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3000a5{['afterInit'](){const _0x3f257e=this['editor'];_0x3f257e['commands']['get']('replaceSource')&&_0x3f257e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3000a5{['afterInit'](){const _0x258bba=this['editor'];if(!_0x258bba['plugins']['has']('RemoveFormatEditing'))return;_0x258bba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3af7c1=this['editor'];_0x3af7c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0a82=>{if('formatBlock'!=_0x3d0a82['type']&&'formatInline'!=_0x3d0a82['type'])return;const {data:_0x1e8318}=_0x3d0a82;return _0x1e8318&&'removeFormat'==_0x1e8318['commandName']?{'type':'format','content':Tt(_0x3af7c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3000a5{['afterInit'](){const _0x5d928d=this['editor'];if(!_0x5d928d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1cc135=_0x5d928d['plugins']['get']('TrackChangesEditing');_0x1cc135['enableCommand']('goToPreviousRestrictedEditingException'),_0x1cc135['enableCommand']('goToNextRestrictedEditingException');const _0x151ec1=_0x5d928d['plugins']['get']('RestrictedEditingModeEditing');_0x151ec1['enableCommand']('trackChanges'),_0x151ec1['enableCommand']('acceptSuggestion'),_0x151ec1['enableCommand']('discardSuggestion'),_0x151ec1['enableCommand']('acceptAllSuggestions'),_0x151ec1['enableCommand']('discardAllSuggestions'),_0x151ec1['enableCommand']('acceptSelectedSuggestions'),_0x151ec1['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3000a5{['afterInit'](){const _0x517755=this['editor'];if(!_0x517755['plugins']['has']('ShiftEnter'))return;const _0x4f0a63=_0x517755['plugins']['get']('TrackChangesEditing');_0x4f0a63['enableCommand']('shiftEnter'),_0x4f0a63['descriptionFactory']['registerElementLabel']('softBreak',_0x46e0c1=>Tt(_0x517755['locale'],'ELEMENT_LINE_BREAK',_0x46e0c1));}}function Rt(_0x1cc7e7,_0x307ede,_0x1eb9ec){const _0x5f503b=[];for(const _0x452b00 of _0x307ede['getItems']())_0x452b00['hasAttribute'](_0x1cc7e7)&&_0x5f503b['push'](_0x1eb9ec['createRangeOn'](_0x452b00));return _0x5f503b;}class TrackChangesStandardEditingMode extends _0x3000a5{['afterInit'](){const _0x5b9749=this['editor'],_0xc1a859=_0x5b9749['plugins']['get']('TrackChangesEditing');_0x5b9749['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xc1a859['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5b278e=this['editor'],_0x3dd637=_0x5b278e['model'],_0x2ac8ac=_0x5b278e['locale'],_0x37f759=_0x5b278e['plugins']['get']('TrackChangesEditing'),_0x2f33e6='restrictedEditingException',_0x51c1fe=_0x5b278e['commands']['get'](_0x2f33e6);_0x37f759['enableCommand'](_0x2f33e6,(_0x55524d,_0x5c856c={})=>{const _0x58dcad=_0x3dd637['document']['selection'];if(_0x58dcad['isCollapsed'])return void _0x55524d(_0x5c856c);const _0x1b6057=void 0x0!==_0x5c856c['forceValue']?_0x5c856c['forceValue']:!_0x51c1fe['value'];_0x3dd637['change'](()=>{const _0x2ee769=Array['from'](_0x58dcad['getRanges']());for(const _0x253744 of _0x2ee769){const _0x1cd5b4=_0x1b6057?[_0x253744]:Rt(_0x2f33e6,_0x253744,_0x3dd637);for(const _0xd716a6 of _0x1cd5b4)_0x37f759['markInlineFormat'](_0xd716a6,{'commandName':_0x2f33e6,'commandParams':[{'forceValue':_0x1b6057}]});}});}),_0x37f759['descriptionFactory']['registerDescriptionCallback'](_0xe849aa=>{if('formatBlock'!=_0xe849aa['type']&&'formatInline'!=_0xe849aa['type'])return;const {data:_0x11401c}=_0xe849aa;return _0x11401c&&_0x11401c['commandName']==_0x2f33e6?_0x11401c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x2ac8ac,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x511587=this['editor'],_0x3e14ba=_0x511587['locale'],_0xfdc499=_0x511587['plugins']['get']('TrackChangesEditing'),_0x57401f='restrictedEditingExceptionBlock',_0x10f26c=this['editor']['commands']['get'](_0x57401f);_0xfdc499['enableCommand'](_0x57401f,(_0x559cf2,_0x2584ff={})=>{const _0xd21e8d=this['editor']['model']['document']['selection'],_0x1902f9=_0x2584ff&&void 0x0!==_0x2584ff['forceValue']?_0x2584ff['forceValue']:!_0x10f26c['value'];let _0x18b303=[];if(_0x1902f9){const _0xf9ffbe=Array['from'](_0xd21e8d['getSelectedBlocks']())['filter'](_0x36eb69=>function(_0x127692){return!!_0x127692['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x36eb69)||function(_0x2e88c2,_0x48980f){const _0x40adf0=_0x48980f['createContext'](_0x2e88c2['parent']);if(!_0x48980f['checkChild'](_0x40adf0,'restrictedEditingException'))return!0x1;if(!_0x48980f['checkChild'](_0x40adf0['push']('restrictedEditingException'),_0x2e88c2))return!0x1;return!0x0;}(_0x36eb69,this['editor']['model']['schema']));_0x18b303=ft(_0xf9ffbe,_0x511587['model']);}else{const _0x2a41bc=Array['from'](_0xd21e8d['getSelectedBlocks']())['map'](_0x229ced=>function(_0x41889f){let _0x21dbf2=_0x41889f;for(;_0x21dbf2['parent'];){if('restrictedEditingException'==_0x21dbf2['parent']['name'])return _0x21dbf2;_0x21dbf2=_0x21dbf2['parent'];}return null;}(_0x229ced))['filter'](_0x244bfc=>!!_0x244bfc);_0x18b303=ft(_0x2a41bc,_0x511587['model']);}_0x511587['model']['change'](()=>{for(const _0x5106ae of _0x18b303)_0xfdc499['markBlockFormat'](_0x5106ae,{'commandName':_0x57401f,'commandParams':[{'forceValue':_0x1902f9}]});});}),_0xfdc499['descriptionFactory']['registerDescriptionCallback'](_0x2ce367=>{const {data:_0xfc445}=_0x2ce367;if(_0xfc445&&_0xfc445['commandName']==_0x57401f)return _0xfc445['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3e14ba,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3000a5{['afterInit'](){const _0x2613b8=this['editor'];if(!_0x2613b8['plugins']['has']('Style')||!_0x2613b8['plugins']['has']('DataSchema'))return;const _0x4cf3c8=_0x2613b8['plugins']['get']('TrackChangesEditing'),_0x2e3efb=_0x2613b8['locale'],_0xe53009=_0x2613b8['config']['get']('style')||{},_0x2ba24b=_0x2613b8['plugins']['get']('GeneralHtmlSupport'),_0x4653fa=_0x2613b8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2613b8['plugins']['get']('DataSchema'),_0xe53009['definitions']);_0x4cf3c8['enableDefaultAttributesIntegration']('style');const _0x9cd26=new Set();for(const _0x493c24 of _0x4653fa['block']){const _0xbf35fb=_0x2ba24b['getGhsAttributeNameForElement'](_0x493c24['element']);_0x9cd26['add'](_0xbf35fb);}const _0x4ccbf3=new Set();for(const _0x568f7c of _0x4653fa['inline']){const _0x3a7cda=_0x2ba24b['getGhsAttributeNameForElement'](_0x568f7c['element']);_0x4ccbf3['add'](_0x3a7cda);for(const _0x114761 of _0x568f7c['ghsAttributes'])_0x4ccbf3['add'](_0x114761);}for(const _0x501dba of _0x9cd26)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x501dba,Tt(_0x2e3efb,'FORMAT_STYLE'));for(const _0x2804f2 of _0x4ccbf3)_0x4cf3c8['descriptionFactory']['registerAttributeLabel'](_0x2804f2,Tt(_0x2e3efb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24fd43=this['editor'],_0x4c5d82=_0x24fd43['locale'];_0x24fd43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53450f=>{if('formatBlock'!=_0x53450f['type']&&'formatInline'!=_0x53450f['type'])return;const {data:_0x45ce7d}=_0x53450f;return _0x45ce7d&&'style'===_0x45ce7d['commandName']?_0x45ce7d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4c5d82,'*Set\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x4c5d82,'*Remove\x20format:*\x20%0',_0x45ce7d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3000a5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3114af){super(_0x3114af),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37aa5b=this['editor'],_0x2413af=_0x37aa5b['model']['document']['selection'];if(!_0x37aa5b['plugins']['has']('TableEditing'))return;const _0x3a6532=_0x37aa5b['locale'],_0x4bfc04=_0x37aa5b['plugins']['get']('TrackChangesEditing'),_0x5abea7=_0x37aa5b['plugins']['get']('TableUtils');_0x4bfc04['descriptionFactory']['registerElementLabel']('table',_0x58c671=>Tt(_0x3a6532,'ELEMENT_TABLE',_0x58c671)),this['_setupColumnsRowsFixing'](),_0x4bfc04['enableCommand']('insertTable'),_0x4bfc04['enableCommand']('selectTableRow'),_0x4bfc04['enableCommand']('selectTableColumn');for(const _0x52fe0a of['insertTableRowAbove','insertTableRowBelow']){const _0xba4d82=_0x37aa5b['commands']['get'](_0x52fe0a);_0x4bfc04['enableCommand'](_0x52fe0a,_0x17dcf5=>{_0x37aa5b['model']['change'](_0x155e64=>{_0x17dcf5();const _0x90fe2e='above'===_0xba4d82['order'],_0x313fa1=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0xb6e077=_0x5abea7['getRowIndexes'](_0x313fa1),_0x1c1860=_0x90fe2e?_0xb6e077['first']-0x1:_0xb6e077['last']+0x1,_0x11299f=_0x313fa1[0x0]['findAncestor']('table'),_0x51df97=_0x5abea7['createTableWalker'](_0x11299f,{'startRow':_0x1c1860,'endRow':_0x1c1860}),_0x1c024b=Array['from'](_0x51df97)['map'](_0x4cd165=>_0x155e64['createRangeOn'](_0x4cd165['cell']));_0x4bfc04['markMultiRangeInsertion'](_0x1c024b,'tableRow');});});}for(const _0xd3b1be of['insertTableColumnLeft','insertTableColumnRight']){const _0x2c6250=_0x37aa5b['commands']['get'](_0xd3b1be);_0x4bfc04['enableCommand'](_0xd3b1be,_0x118170=>{_0x37aa5b['model']['change'](_0xd4981=>{_0x118170();const _0xbfc3b6='left'===_0x2c6250['order'],_0x1b6da6=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x33fb97=_0x5abea7['getColumnIndexes'](_0x1b6da6),_0x3deb3b=_0xbfc3b6?_0x33fb97['first']-0x1:_0x33fb97['last']+0x1,_0x174d2e=_0x1b6da6[0x0]['findAncestor']('table'),_0x32c4c7=_0x5abea7['createTableWalker'](_0x174d2e,{'startRow':0x0,'column':_0x3deb3b,'includeAllSlots':!0x1}),_0xa71f51=Array['from'](_0x32c4c7)['map'](_0x500f95=>_0xd4981['createRangeOn'](_0x500f95['cell']));_0x4bfc04['markMultiRangeInsertion'](_0xa71f51,'tableColumn');});});}for(const _0x1202b9 of['removeTableRow','removeTableColumn']){const _0x51820e=_0x1202b9['substr'](0xb),_0x5df66d=_0x51820e['toLowerCase'](),_0x4729f2=_0x5df66d['substr'](0x0,0x3)+'span',_0x563347='table'+_0x51820e,_0x487650='min'+_0x51820e,_0x3b7cae='max'+_0x51820e;_0x4bfc04['enableCommand'](_0x1202b9,()=>{_0x37aa5b['model']['change'](_0x4c7edf=>{const _0x57be59=_0x5abea7['getSelectionAffectedTableCells'](_0x2413af),_0x52ef91=_0x57be59[0x0]['findAncestor']('table');let _0x416ad0;if('removeTableRow'==_0x1202b9){const _0xf129ca=_0x5abea7['getRowIndexes'](_0x57be59);_0x416ad0={'startRow':_0xf129ca['first'],'endRow':_0xf129ca['last'],'includeAllSlots':!0x0};}else{const _0x11c506=_0x5abea7['getColumnIndexes'](_0x57be59);_0x416ad0={'startColumn':_0x11c506['first'],'endColumn':_0x11c506['last'],'includeAllSlots':!0x0};}const _0x4bb20f=_0x5abea7['createTableWalker'](_0x52ef91,_0x416ad0),_0x38e3f5=Array['from'](_0x4bb20f)['map'](({cell:_0x56642c})=>_0x56642c),_0x513744=Nt(_0x38e3f5['filter'](_0x2fa071=>_0x2fa071['hasAttribute'](_0x4729f2))),_0x5e0992=Nt(_0x38e3f5['filter'](_0x82b118=>!_0x82b118['hasAttribute'](_0x4729f2)))['map'](_0x26f9c2=>_0x4c7edf['createRangeOn'](_0x26f9c2)),_0x2caf7f=_0x4bfc04['markMultiRangeDeletion'](_0x5e0992,_0x563347);if(_0x2caf7f&&('tableRow'==_0x2caf7f['subType']||'tableColumn'==_0x2caf7f['subType'])){const _0x391c87=this['_getSuggestionCoords'](_0x2caf7f);for(const _0x287df8 of _0x513744){const _0x3dbe90=_0x4c7edf['createRangeOn'](_0x287df8),_0x563b63=_0x5abea7['getCellLocation'](_0x287df8),_0x3a1e39=_0x287df8['getAttribute'](_0x4729f2)-0x1,_0x5e22d9=_0x391c87[_0x487650],_0xfb4165=_0x391c87[_0x3b7cae];_0x5e22d9<=_0x563b63[_0x5df66d]&&_0x563b63[_0x5df66d]+_0x3a1e39<=_0xfb4165&&_0x2caf7f['addRange'](_0x3dbe90);}}});});}function _0x2039b2(_0x459ff8){const _0x5912d3=Array['from'](_0x2413af['getRanges']())['map'](_0x5c1174=>_0x2192a8['fromRange'](_0x5c1174));_0x37aa5b['model']['change'](_0x1d162e=>{const _0x3e7833=_0x1d162e['batch'];_0x459ff8=_0x459ff8['filter'](_0x33dcfa=>'$graveyard'!=_0x33dcfa['root']['rootName']),_0x1d162e['setSelection'](_0x459ff8),_0x37aa5b['commands']['get']('removeTableRow')['refresh'](),_0x37aa5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37aa5b['model']['enqueueChange'](()=>{_0x37aa5b['model']['enqueueChange'](_0x3e7833,_0x3977a3=>{const _0x4e6a86=_0x5912d3['filter'](_0x223fa2=>'$graveyard'!=_0x223fa2['root']['rootName']);_0x4e6a86['length']>0x0&&_0x3977a3['setSelection'](_0x4e6a86);for(const _0x362fb4 of _0x5912d3)_0x362fb4['detach']();});});});}function _0x1d5904(_0x344919){_0x37aa5b['model']['change'](_0x2f23d4=>{const _0x1308db=Array['from'](_0x2413af['getRanges']())['map'](_0x527f0f=>_0x2192a8['fromRange'](_0x527f0f)),_0x4f99bc=[];for(const _0x59fb4b of _0x344919)for(const _0x4e5ed9 of _0x59fb4b['getItems']({'shallow':!0x0}))_0x4f99bc['push'](_0x4e5ed9);for(const _0x382cb0 of _0x4f99bc)'$graveyard'!=_0x382cb0['root']['rootName']&&(_0x2f23d4['setSelection'](_0x2f23d4['createPositionAt'](_0x382cb0,0x0)),_0x37aa5b['commands']['get']('removeTableColumn')['refresh'](),_0x37aa5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21bec2=_0x1308db['filter'](_0x249666=>'$graveyard'!=_0x249666['root']['rootName']);_0x21bec2['length']>0x0&&_0x2f23d4['setSelection'](_0x21bec2);for(const _0xdde499 of _0x1308db)_0xdde499['detach']();});}function _0x1e2874(_0x114bda,_0x111e22){return _0x111e22['every'](_0xaa8786=>_0x114bda['some'](_0x5b9af5=>_0x5b9af5['end']['isEqual'](_0xaa8786['start'])||_0xaa8786['end']['isEqual'](_0x5b9af5['start'])));}function _0x59a481(_0x4a95bb,_0x47d6e8){return!_0x4a95bb['some'](_0x2bba19=>_0x47d6e8['some'](_0x1b8dc8=>_0x2bba19['isIntersecting'](_0x1b8dc8)))&&_0x4a95bb['some'](_0x2eecb5=>_0x47d6e8['some'](_0x3bef99=>_0x2eecb5['end']['isTouching'](_0x3bef99['start'])));}_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x1549fc=>{if('insertion'!=_0x1549fc['type']&&'deletion'!=_0x1549fc['type'])return;const _0x446c29=_0x1549fc['getContainedElement']();if(null!=_0x446c29&&_0x446c29['is']('element','table')){if('insertion'==_0x1549fc['type']){const _0x1fc55d=_0x1549fc['getItems']()['filter'](_0x16b32f=>_0x16b32f['is']('$textProxy'))['map'](_0x5963c0=>_0x5963c0['data']);if(_0x1fc55d['length'])return{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc55d['join']('\x20')+'\x22'))};}if('deletion'==_0x1549fc['type']){const _0x3a79e8=_0x1549fc['getItems']()['filter'](_0xbc5472=>_0xbc5472['is']('$textProxy'))['map'](_0x5a707d=>_0x5a707d['data']);if(_0x3a79e8['length'])return{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a79e8['join']('\x20')+'\x22'))};}}}),_0x4bfc04['descriptionFactory']['registerDescriptionCallback'](_0x740ca5=>{if('tableRow'==_0x740ca5['subType']){const _0x2b11ca=_0x740ca5['getItems']()['filter'](_0x528c68=>_0x528c68['is']('$textProxy'))['map'](_0x49b6c7=>_0x49b6c7['data']),_0x27569e=this['_getSuggestionCoords'](_0x740ca5),_0x1be2ad=_0x27569e['maxRow']-_0x27569e['minRow']+0x1;if('insertion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};if('deletion'==_0x740ca5['type'])return _0x2b11ca['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1be2ad,'\x22'+_0x2b11ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_ROW',_0x1be2ad))};}if('tableColumn'==_0x740ca5['subType']){const _0x52a8c9=_0x740ca5['getItems']()['filter'](_0x4bef2a=>_0x4bef2a['is']('$textProxy'))['map'](_0x47737a=>_0x47737a['data']),_0x1f970f=this['_getSuggestionCoords'](_0x740ca5),_0x3150d5=_0x1f970f['maxColumn']-_0x1f970f['minColumn']+0x1;if('insertion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3a6532,'*Insert:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};if('deletion'==_0x740ca5['type'])return _0x52a8c9['length']?{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3150d5,'\x22'+_0x52a8c9['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3a6532,'*Remove:*\x20%0',Tt(_0x3a6532,'ELEMENT_TABLE_COLUMN',_0x3150d5))};}}),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2039b2),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d5904),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2874),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59a481),_0x4bfc04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59a481);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4d1a9c=this['editor'],_0x379af0=_0x4d1a9c['model']['document']['selection'];return(_0x19e3e4,_0x53a547)=>{_0x4d1a9c['model']['change'](_0x53f385=>{const {commandName:_0x270332,commandParams:_0x5753a3}=_0x53a547;let _0x3b193d=_0x19e3e4[0x0]['end']['nodeBefore'];_0x5753a3&&_0x5753a3[0x0]&&!0x1===_0x5753a3[0x0]['forceValue']&&(_0x3b193d=_0x19e3e4[0x0]['start']['nodeAfter']);const _0x2344b1=_0x53f385['createRangeIn'](_0x3b193d);if('$graveyard'==_0x2344b1['root']['rootName'])return;const _0x40271b=Array['from'](_0x379af0['getRanges']())['map'](_0x2cef3a=>_0x2192a8['fromRange'](_0x2cef3a));_0x53f385['setSelection'](_0x2344b1),_0x4d1a9c['commands']['get'](_0x270332)['refresh'](),_0x5753a3['push']({'forceDefaultExecution':!0x0}),_0x4d1a9c['execute'](_0x270332,..._0x5753a3);const _0x243974=_0x40271b['filter'](_0x24b85f=>'$graveyard'!=_0x24b85f['root']['rootName']);_0x243974['length']>0x0&&_0x53f385['setSelection'](_0x243974);for(const _0x239763 of _0x40271b)_0x239763['detach']();});};}['_getCoordsForCells'](_0x5921a7){const _0xbb50f8=this['editor']['plugins']['get']('TableUtils');let _0x44dcd1=Number['MAX_SAFE_INTEGER'],_0xbfa339=Number['MIN_SAFE_INTEGER'],_0x5ae1e2=Number['MAX_SAFE_INTEGER'],_0x56ed31=Number['MIN_SAFE_INTEGER'];for(const _0x4c8b9a of _0x5921a7){if('$graveyard'==_0x4c8b9a['root']['rootName'])continue;const {row:_0x2dacec,column:_0x3b24fd}=_0xbb50f8['getCellLocation'](_0x4c8b9a),_0x3d312a=_0x4c8b9a['hasAttribute']('rowspan')?_0x4c8b9a['getAttribute']('rowspan')-0x1:0x0,_0x4bfde9=_0x4c8b9a['hasAttribute']('colspan')?_0x4c8b9a['getAttribute']('colspan')-0x1:0x0;_0x44dcd1=_0x2dacec<_0x44dcd1?_0x2dacec:_0x44dcd1,_0xbfa339=_0x2dacec+_0x3d312a>_0xbfa339?_0x2dacec+_0x3d312a:_0xbfa339,_0x5ae1e2=_0x3b24fd<_0x5ae1e2?_0x3b24fd:_0x5ae1e2,_0x56ed31=_0x3b24fd+_0x4bfde9>_0x56ed31?_0x3b24fd+_0x4bfde9:_0x56ed31;}return{'minRow':_0x44dcd1,'maxRow':_0xbfa339,'minColumn':_0x5ae1e2,'maxColumn':_0x56ed31};}['_setupColumnsRowsFixing'](){const _0x9d4fae=this['editor'],_0x1c7b73=_0x9d4fae['plugins']['get']('TrackChangesEditing'),_0x3302a0=_0x9d4fae['plugins']['get']('TableUtils');_0x9d4fae['model']['document']['on']('change:data',()=>{const _0x3129a7=Array['from'](_0x9d4fae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e2c0a,data:_0x39ec92}of _0x3129a7){const {group:_0x468ec3,id:_0x55ce67,subType:_0x11dec1}=_0x2522cc(_0x5e2c0a);if('suggestion'!=_0x468ec3)continue;if(null!=_0x39ec92['oldRange'])continue;const _0x24f4d1=_0x1c7b73['getSuggestion'](_0x55ce67);this['_tablePostFixingSubtypes']['includes'](_0x11dec1)&&this['_tableSuggestions']['add'](_0x24f4d1);}},{'priority':'low'});const _0x55c8ce=(_0x4a2091,_0x57f8ea)=>{let _0x18b91d=!0x1;const _0x5ccec6=_0x57f8ea['createRangeOn'](_0x4a2091),_0x5809f9=_0x4a2091['findAncestor']('table'),_0x321bd3=_0x3302a0['getCellLocation'](_0x4a2091);for(const _0x56a46b of this['_tableSuggestions']){const _0x4e4994=_0x56a46b['subType'],_0x582ea5=_0x4e4994['startsWith']('tablePaste'),_0x16a155=_0x4e4994['substr'](_0x582ea5?0xa:0x5),_0x3de5ee=_0x16a155['toLowerCase'](),_0x715b3d=_0x3de5ee['substr'](0x0,0x3)+'span',_0x39c457='min'+_0x16a155,_0x159aa7='max'+_0x16a155;if(!_0x56a46b['isInContent'])continue;if(_0x5809f9!=_0x56a46b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a46b['isIntersectingWithRange'](_0x5ccec6))continue;const _0x2e7817=_0x4a2091['hasAttribute'](_0x715b3d)?_0x4a2091['getAttribute'](_0x715b3d)-0x1:0x0,_0x3ea331=this['_getSuggestionCoords'](_0x56a46b),_0x4a56cc=_0x3ea331[_0x39c457],_0x4bfe64=_0x3ea331[_0x159aa7];_0x4a56cc<=_0x321bd3[_0x3de5ee]&&_0x321bd3[_0x3de5ee]+_0x2e7817<=_0x4bfe64&&(_0x56a46b['addRange'](_0x5ccec6),_0x18b91d=!0x0);}return _0x18b91d;};_0x9d4fae['model']['document']['registerPostFixer'](_0xfe6bba=>{let _0x37b019=!0x1;for(const _0x295499 of _0x9d4fae['model']['document']['differ']['getChanges']())if('insert'==_0x295499['type']){if('tableRow'==_0x295499['name']){for(const _0x4d9111 of _0x295499['position']['nodeAfter']['getChildren']())_0x37b019=_0x37b019||_0x55c8ce(_0x4d9111,_0xfe6bba);}else'tableCell'==_0x295499['name']&&(_0x37b019=_0x37b019||_0x55c8ce(_0x295499['position']['nodeAfter'],_0xfe6bba));}return _0x37b019;});}['_getSuggestionCoords'](_0x4b5afe){return this['_getCoordsForCells'](_0x4b5afe['getRanges']()['map'](_0x9c2234=>_0x9c2234['start']['nodeAfter']));}}function Nt(_0x4930fd){return Array['from'](new Set(_0x4930fd)['values']());}class TrackChangesTableMergeSplit extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1f3d8f=this['editor'],_0x507994=_0x1f3d8f['model']['document']['selection'],_0xf97f82=_0x1f3d8f['locale'];if(!_0x1f3d8f['plugins']['has']('TableEditing'))return;const _0x109f74=_0x1f3d8f['plugins']['get']('TrackChangesEditing'),_0x322241=_0x1f3d8f['plugins']['get']('TableUtils'),_0x34557d=_0x1f3d8f['plugins']['get'](TrackChangesTable);_0x34557d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x109f74['enableCommand']('mergeTableCells',()=>{const _0x4513ca=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection']);_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat'](_0x4513ca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f3d8f['commands']['get']('mergeTableCells')['on']('execute',(_0x5490a0,_0x1a7726)=>{_0x1f3d8f['commands']['get']('trackChanges')['value']&&(_0x1a7726['length']>0x0&&_0x1a7726[_0x1a7726['length']-0x1]&&_0x1a7726[_0x1a7726['length']-0x1]['forceDefaultExecution']||_0x109f74['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5490a0['stop']());},{'priority':'highest'});for(const _0x10e360 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x32c362=_0x1f3d8f['commands']['get'](_0x10e360);_0x109f74['enableCommand'](_0x10e360,()=>{const _0x49a639=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ea332=>_0x3ea332['is']('element','tableCell')),_0x4544e8=_0x32c362['value'];_0x1f3d8f['model']['change'](()=>{_0x109f74['markMultiRangeBlockFormat']([_0x49a639,_0x4544e8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2eda45 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x462095=_0x1f3d8f['commands']['get'](_0x2eda45);_0x109f74['enableCommand'](_0x2eda45,()=>{const _0x28b999=_0x322241['getSelectionAffectedTableCells'](_0x1f3d8f['model']['document']['selection'])[0x0],_0x299e57=_0x28b999['findAncestor']('table'),{column:_0xc27cee,row:_0x30ea43}=_0x322241['getCellLocation'](_0x28b999);let _0x38246c=[];if('horizontally'==_0x462095['direction']){const _0x336dae=_0x322241['createTableWalker'](_0x299e57,{'startRow':_0x30ea43,'endRow':_0x30ea43,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x336dae)['map'](_0x5b6c36=>_0x5b6c36['cell']);}else{const _0x3d5de9=_0x322241['createTableWalker'](_0x299e57,{'column':_0xc27cee,'includeAllSlots':!0x0});_0x38246c=Array['from'](_0x3d5de9)['map'](_0x492bdf=>_0x492bdf['cell']);}_0x1f3d8f['model']['change'](_0x427abb=>{_0x109f74['markBlockFormat'](_0x427abb['createRangeOn'](_0x28b999),{'commandName':_0x2eda45,'commandParams':[]},_0x38246c,_0x2eda45);});});}_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x33f6d3=>{if('formatBlock'!=_0x33f6d3['type']&&'formatInline'!=_0x33f6d3['type'])return;const {data:_0x10a2f5}=_0x33f6d3;return _0x10a2f5&&'mergeTableCells'==_0x10a2f5['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Merge\x20cells*')}:void 0x0;}),_0x109f74['descriptionFactory']['registerDescriptionCallback'](_0x20069b=>{if('formatBlock'!=_0x20069b['type']&&'formatInline'!=_0x20069b['type'])return;const {data:_0x666966}=_0x20069b;return _0x666966?'splitTableCellVertically'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x666966['commandName']?{'type':'format','content':Tt(_0xf97f82,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ccdab=_0x34557d['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b9882 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b9882,'accept',_0x3ccdab);for(const _0x313c99 of['splitTableCellVertically','splitTableCellHorizontally'])_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x313c99,'accept',_0x3ccdab);_0x109f74['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x558d7d=>{_0x1f3d8f['model']['change'](_0x1859eb=>{const _0x1a1600=Array['from'](_0x507994['getRanges']())['map'](_0x2bc59b=>_0x2192a8['fromRange'](_0x2bc59b));_0x1859eb['setSelection'](_0x558d7d),_0x1f3d8f['commands']['get']('mergeTableCells')['refresh'](),_0x1f3d8f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bf095=_0x1a1600['filter'](_0x31e3af=>'$graveyard'!=_0x31e3af['root']['rootName']);_0x2bf095['length']>0x0&&_0x1859eb['setSelection'](_0x2bf095);for(const _0x17d9c8 of _0x1a1600)_0x17d9c8['detach']();});});for(const _0x1bd4cb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x8c04a6=_0x1f3d8f['commands']['get'](_0x1bd4cb);_0x8c04a6['on']('set:isEnabled',(_0x35ca56,_0x27f541,_0x3aefa7)=>{if(_0x3aefa7){const _0x38e271=_0x1f3d8f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x952fb7=>_0x952fb7['is']('element','tableCell'));this['_areMergableCells'](_0x8c04a6['value'],_0x38e271)||(_0x35ca56['return']=!0x1,_0x35ca56['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24f4a7=this['editor']['commands']['get']('mergeTableCells'),_0x5b2e4c=this['editor']['plugins']['get']('TableUtils');if(!_0x24f4a7['isEnabled'])return!0x1;const _0x21524d=_0x5b2e4c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33c847 of _0x21524d)for(const _0x585684 of _0x21524d)if(_0x33c847!=_0x585684&&!this['_areMergableCells'](_0x33c847,_0x585684))return!0x1;return!0x0;}['_areMergableCells'](_0xbe7c14,_0x4803ac){const _0x8a6753=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11e825=this['editor']['model']['createRangeOn'](_0xbe7c14),_0x20c1fe=this['editor']['model']['createRangeOn'](_0x4803ac),_0xd11de2=new Set(),_0x1a40c4=new Set();for(const _0x286c96 of _0x8a6753['getSuggestions']())if(('insertion'==_0x286c96['type']||'deletion'==_0x286c96['type']||'mergeTableCells'==_0x286c96['subType'])&&_0x286c96['isInContent']){for(const _0x553bb1 of _0x286c96['getRanges']())_0x553bb1['containsRange'](_0x11e825,!0x0)&&_0xd11de2['add'](_0x286c96['type']+':'+_0x286c96['author']['id']),_0x553bb1['containsRange'](_0x20c1fe,!0x0)&&_0x1a40c4['add'](_0x286c96['type']+':'+_0x286c96['author']['id']);}if(_0xd11de2['size']!=_0x1a40c4['size'])return!0x1;for(const _0x2c2fd6 of _0xd11de2)if(!_0x1a40c4['has'](_0x2c2fd6))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x41649c=this['editor'];if(!_0x41649c['plugins']['has']('TableEditing'))return;const _0x41f1dc=_0x41649c['locale'],_0x5759c4=_0x41649c['plugins']['get']('TrackChangesEditing');_0x5759c4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5759c4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x41f1dc,'FORMAT_HEADER_ROW')),_0x5759c4['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x41f1dc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d03e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345678=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x345678),_0x4d03e9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x345678),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x569b86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4677c6=this['editor']['plugins']['get']('TableUtils');function _0x49a5c({showActiveMarker:_0x493999=!0x0,setDataAttribute:_0x4d7093=!0x0}={}){return(_0x15990f,_0x3fb4e2,_0x36e4ac)=>{const {type:_0x557a19,id:_0x2e7b7c}=_0x2522cc(_0x3fb4e2['markerName']);if(!_0x569b86['hasSuggestion'](_0x2e7b7c))return;const _0x32322d=_0x569b86['getSuggestion'](_0x2e7b7c),_0x208619=_0x32322d['data'];if('formatBlock'!=_0x32322d['type']||!_0x208619||'setTableColumnHeader'!=_0x208619['commandName'])return;if(_0x3fb4e2['item'])return void _0x15990f['stop']();if(!_0x36e4ac['consumable']['consume'](_0x3fb4e2['markerRange'],_0x15990f['name']))return;const _0x429699=_0x3fb4e2['markerRange']['start']['nodeAfter'],_0x3af0f2=_0x3fb4e2['markerRange']['end']['nodeBefore'],_0x4e8df3=_0x429699['parent']['parent'],{column:_0x4eea61}=_0x4677c6['getCellLocation'](_0x429699),{column:_0x3a40b4}=_0x4677c6['getCellLocation'](_0x3af0f2);for(let _0x137c8f=_0x4eea61;_0x137c8f<=_0x3a40b4;_0x137c8f++){const _0x58bcdb=_0x4677c6['createTableWalker'](_0x4e8df3,{'column':_0x137c8f,'includeAllSlots':!0x1});for(const _0x2fa837 of _0x58bcdb){const _0x3a4eca=_0x2fa837['cell'],_0x15c50a=_0x36e4ac['mapper']['toViewElement'](_0x3a4eca);_0x36e4ac['writer']['addClass']('ck-suggestion-marker-'+_0x557a19,_0x15c50a),_0x4d7093&&_0x36e4ac['writer']['setAttribute']('data-suggestion',_0x2e7b7c,_0x15c50a),_0x36e4ac['mapper']['bindElementToMarker'](_0x15c50a,_0x3fb4e2['markerName']),_0x493999&&(_0x569b86['activeMarkers']['includes'](_0x3fb4e2['markerName'])?_0x36e4ac['writer']['addClass']('ck-suggestion-marker--active',_0x15c50a):_0x36e4ac['writer']['removeClass']('ck-suggestion-marker--active',_0x15c50a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49a5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59efc1,_0x234240,_0x9ce90f)=>{_0x9ce90f['options']['showSuggestionHighlights']&&_0x49a5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59efc1,_0x234240,_0x9ce90f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443df3,_0x3431f7,_0x57e2dd)=>{const {type:_0x5ab132,id:_0x5db25f}=_0x2522cc(_0x3431f7['markerName']);if(!_0x569b86['hasSuggestion'](_0x5db25f))return;const _0x2638af=_0x569b86['getSuggestion'](_0x5db25f),_0x40c5d4=_0x2638af['data'];if('formatBlock'!=_0x2638af['type']||!_0x40c5d4||'setTableColumnHeader'!=_0x40c5d4['commandName'])return;const _0x188417=_0x57e2dd['mapper']['markerNameToElements'](_0x3431f7['markerName']);if(_0x188417){for(const _0x20e440 of _0x188417)_0x57e2dd['writer']['removeClass']('ck-suggestion-marker-'+_0x5ab132,_0x20e440),_0x57e2dd['writer']['removeClass']('ck-suggestion-marker--active',_0x20e440),_0x57e2dd['writer']['removeAttribute']('data-suggestion',_0x20e440),_0x57e2dd['mapper']['unbindElementFromMarkerName'](_0x20e440,_0x3431f7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x225ea5=this['editor'],_0x38c365=_0x225ea5['locale'];function _0x5b315b(_0x185298){return{'type':'format','content':Tt(_0x38c365,'*Format:*\x20%0',_0x185298)};}_0x225ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467be4=>{if('formatBlock'!=_0x467be4['type'])return;const {data:_0x32abd6}=_0x467be4;if(_0x32abd6){if('setTableRowHeader'==_0x32abd6['commandName']){const _0x416d7d=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x416d7d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32abd6['commandName']){const _0x42b178=_0x32abd6['commandParams'][0x0]['forceValue'];return _0x5b315b(Tt(_0x38c365,_0x42b178?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x572127=this['editor'];if(!_0x572127['plugins']['has']('TableEditing')||!_0x572127['config']['get']('table.enableFooters'))return;const _0x5a8d18=_0x572127['locale'],_0x55a084=_0x572127['plugins']['get']('TrackChangesEditing');_0x55a084['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x55a084['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x5a8d18,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3000a5{['afterInit'](){const _0x213ada=this['editor'],_0x4a1671=_0x213ada['locale'],_0x3f0ea1=_0x213ada['plugins']['get']('TrackChangesEditing');function _0x5d6682(_0x3bb942){return{'type':'format','content':''+Tt(_0x4a1671,'*Set\x20table\x20type:*\x20%0',_0x3bb942)};}_0x213ada['plugins']['has']('TableLayout')&&(_0x3f0ea1['enableCommand']('insertTableLayout'),_0x3f0ea1['enableDefaultAttributesIntegration']('tableType'),_0x3f0ea1['descriptionFactory']['registerElementLabel'](_0x5c7fec=>_0x5c7fec['is']('element','table')&&'layout'===_0x5c7fec['getAttribute']('tableType'),_0x42c33b=>Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE',_0x42c33b)),_0x3f0ea1['descriptionFactory']['registerDescriptionCallback'](_0x57935e=>{const {data:_0x51d4b4}=_0x57935e;if(_0x51d4b4&&'tableType'==_0x51d4b4['key'])switch(_0x51d4b4['newValue']){case'layout':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5d6682(Tt(_0x4a1671,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Mt['map'](_0x399e1f=>[_0x399e1f,null]));class TrackChangesTableClipboard extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x57946e=this['editor'];if(!_0x57946e['plugins']['has']('TableClipboard'))return;const _0x2d1944=_0x57946e['plugins']['get']('TrackChangesEditing'),_0x5e5eca=_0x57946e['plugins']['get']('TableUtils'),_0x42dd9c=_0x57946e['plugins']['get'](TrackChangesTable),_0x5583a5=_0x57946e['plugins']['get']('TableClipboard'),_0x44c371=_0x57946e['plugins']['get']('TableSelection'),_0x3c3b91=_0x57946e['plugins']['get'](ut);_0x42dd9c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x57946e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x57946e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50ae45=null,_0x52fdae=!0x1;_0x3c3b91['on']('contentInsertion',(_0x345315,_0xb61982)=>{_0x52fdae='paste'===_0xb61982['method'];}),_0x57946e['model']['on']('insertContent',(_0xc4caf6,_0x5debe4)=>{if(!_0x52fdae&&null===_0x44c371['getSelectedTableCells']())return;const [_0x2d3e8c,_0x141dc8]=_0x5debe4,_0x325ed4=_0x5debe4[_0x5debe4['length']-0x1];_0x325ed4&&_0x325ed4['forceDefaultExecution']||_0x2d1944['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x20446f,_0x4b2725,_0x4ac7fc,_0x5ca2e3,_0x4d7e8e){if(_0x4b2725&&!_0x4b2725['is']('documentSelection'))return!0x1;const _0x5d7a34=_0x4d7e8e['getTableIfOnlyTableInContent'](_0x20446f,_0x4ac7fc);if(!_0x5d7a34||!Bt(_0x5d7a34,void 0x0,_0x5ca2e3))return!0x1;const _0x380cce=_0x5ca2e3['getSelectionAffectedTableCells'](_0x4ac7fc['document']['selection']);if(!_0x380cce['length'])return!0x1;const _0x5a95a9=_0x380cce[0x0]['findAncestor']('table'),_0x243501=_0x5ca2e3['getRowIndexes'](_0x380cce),_0x134540=_0x5ca2e3['getColumnIndexes'](_0x380cce),_0x1e35e6={'startRow':_0x243501['first'],'endRow':_0x243501['last'],'startColumn':_0x134540['first'],'endColumn':_0x134540['last']};return 0x1==_0x380cce['length']&&(_0x1e35e6['endRow']+=_0x5ca2e3['getRows'](_0x5d7a34)-0x1,_0x1e35e6['endColumn']+=_0x5ca2e3['getColumns'](_0x5d7a34)-0x1),Bt(_0x5a95a9,_0x1e35e6,_0x5ca2e3);}(_0x2d3e8c,_0x141dc8,_0x57946e['model'],_0x5e5eca,_0x5583a5)&&(_0xc4caf6['stop'](),_0x50ae45={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x57946e['model']['change'](()=>{_0x57946e['model']['insertContent'](_0x5debe4[0x0],_0x5debe4[0x1],_0x5debe4[0x2],{'forceDefaultExecution':!0x0});const _0x429f37=_0x59fa6d(),{rowInsertionRanges:_0xeedb0e,columnInsertionRanges:_0x8ee323,insertionRanges:_0x499808,deletionRanges:_0x27d440,cells:_0x2d188b}=_0x50ae45;_0xeedb0e['length']&&_0x2d1944['markMultiRangeInsertion'](_0xeedb0e,'tablePasteRow',{'tablePasteChainId':_0x429f37}),_0x8ee323['length']&&_0x2d1944['markMultiRangeInsertion'](_0x8ee323,'tablePasteColumn',{'tablePasteChainId':_0x429f37}),_0x499808['length']&&(_0x2d1944['markMultiRangeInsertion'](_0x499808,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x499808['forEach'](_0x1fae7b=>_0x1fae7b['detach']?.())),_0x27d440['length']&&(_0x2d1944['markMultiRangeDeletion'](_0x27d440,'tablePaste',{'tablePasteChainId':_0x429f37,'skipNestingCheck':!0x0}),_0x27d440['forEach'](_0x3cd364=>_0x3cd364['detach']?.()));const _0x104bfa=_0x2d1944['markMultiRangeBlockFormat'](_0x2d188b['map'](({element:_0x11266c})=>_0x11266c),{'formatGroupId':_0x59fa6d()},[],'tablePasteCell',{'tablePasteChainId':_0x429f37});if(_0x104bfa){const _0x48561a=_0x104bfa['getMarkers'](),_0x2fd6be=[];for(const {element:_0xf73da3,attributes:_0x4b46dc}of _0x2d188b){if(!_0x4b46dc)continue;const _0x212f55=_0x57946e['model']['createRangeOn'](_0xf73da3),_0x202a69=_0x48561a['find'](_0x5d9c8e=>_0x5d9c8e['getRange']()['isEqual'](_0x212f55));_0x202a69&&_0x2fd6be['push']([_0x202a69['name'],_0x4b46dc]);}_0x2fd6be['length']&&_0x104bfa['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fd6be));}_0x50ae45=null;}));},{'priority':_0x12b650['high']+0xa}),_0x3c3b91['on']('contentInsertion',()=>{_0x52fdae=!0x1;},{'priority':'lowest'}),_0x57946e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46a009,_0x5177ba)=>{const [_0x2b04bf,_0xdecbb2,,_0x2c5f46]=_0x5177ba;if(!_0x50ae45)return;_0x46a009['stop']();const _0x193798=_0x2b04bf['cell'],_0x189cba=_0xdecbb2,_0xbf5579=wt(_0x193798),_0x5c3a96=wt(_0x189cba);_0x46a009['return']=_0x193798;let _0x20b990=null,_0x4cd0bd=null;if(_0x5c3a96||_0xbf5579){if(_0xbf5579&&!_0x5c3a96){_0x2c5f46['remove'](_0x193798['getChild'](0x0));for(const _0x324fd3 of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x324fd3,_0x193798,'end');const _0x15b35d=_0x50ae45['rowInsertionIndexes']['includes'](_0x2b04bf['row']),_0x37d517=_0x50ae45['columnInsertionIndexes']['includes'](_0x2b04bf['column']);_0x15b35d||_0x37d517||(_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeIn'](_0x193798)));}else _0x5c3a96&&!_0xbf5579&&(_0x4cd0bd=_0x2c5f46['createRangeIn'](_0x193798));}else{const _0xf5dc69=_0x2c5f46['createElement']('tableCellSuggestion'),_0x14b239=_0x2c5f46['createElement']('tableCellSuggestion');_0x2c5f46['wrap'](_0x2c5f46['createRangeIn'](_0x193798),_0x14b239),_0x2c5f46['insert'](_0xf5dc69,_0x193798,0x0);for(const _0x52b9bd of Array['from'](_0x189cba['getChildren']()))_0x2c5f46['insert'](_0x52b9bd,_0xf5dc69,'end');_0x20b990=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0xf5dc69)),_0x4cd0bd=_0x2192a8['fromRange'](_0x2c5f46['createRangeOn'](_0x14b239));}const _0x166c37=Array['from'](_0x189cba['getAttributes']())['filter'](([_0x4dc49b])=>Mt['includes'](_0x4dc49b));_0x50ae45['cells']['push']({'element':_0x193798,'attributes':_0x166c37['length']?Object['fromEntries'](_0x166c37):null}),_0x20b990&&_0x50ae45['insertionRanges']['push'](_0x20b990),_0x4cd0bd&&_0x50ae45['deletionRanges']['push'](_0x4cd0bd);},{'priority':'high'}),_0x5e5eca['on']('insertColumns',(_0x2a8fbf,_0x3b280e)=>{const [_0x44a51d,_0x51c087={}]=_0x3b280e;if(!_0x50ae45)return;const _0x1bba5c=_0x51c087['at']||0x0,_0x4c7992=_0x51c087['columns']||0x1;_0x50ae45['columnInsertionIndexes']=new Array(_0x4c7992)['fill'](_0x1bba5c)['map']((_0x48dc71,_0x42e3bf)=>_0x48dc71+_0x42e3bf);for(const {cell:_0x28c792}of _0x5e5eca['createTableWalker'](_0x44a51d,{'startColumn':_0x1bba5c,'endColumn':_0x1bba5c+_0x4c7992-0x1}))_0x50ae45['columnInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x28c792));},{'priority':'low'}),_0x5e5eca['on']('insertRows',(_0x2eb995,_0x10bf46)=>{const [_0x4b8735,_0x1702bd={}]=_0x10bf46;if(!_0x50ae45)return;const _0x4f65bb=_0x1702bd['at']||0x0,_0x26fa10=_0x1702bd['rows']||0x1;_0x50ae45['rowInsertionIndexes']=new Array(_0x26fa10)['fill'](_0x4f65bb)['map']((_0x5edaaf,_0x4a0a4e)=>_0x5edaaf+_0x4a0a4e);for(const {cell:_0x4ed00e}of _0x5e5eca['createTableWalker'](_0x4b8735,{'startRow':_0x4f65bb,'endRow':_0x4f65bb+_0x26fa10-0x1}))_0x50ae45['rowInsertionRanges']['push'](_0x57946e['model']['createRangeOn'](_0x4ed00e));},{'priority':'low'}),_0x2d1944['descriptionFactory']['registerDescriptionCallback'](_0x1e6db9=>{if(_0x1e6db9['subType']&&_0x1e6db9['subType']['startsWith']('tablePaste'))return _0x1e6db9['previous']?{}:{'type':'insertion','content':Tt(_0x57946e['locale'],'*Replace\x20table\x20cells*')};});const _0xa0721f=()=>!0x1;for(const _0x4d9997 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d9997,'join',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d9997,'join',_0xa0721f);_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa0721f),_0x2d1944['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x539708,_0xc7ac6e,_0x50d7e5)=>{const _0x39121a=_0x539708['map'](_0x588a81=>_0x588a81['getContainedElement']())['filter'](_0x2145f9=>_0x2145f9),_0x4497a0=new Map(_0x39121a['map'](_0x416cb9=>[_0x416cb9,null]));if(_0x50ae45){for(const {element:_0x3a344a,attributes:_0x3e2131}of _0x50ae45['cells'])_0x3e2131&&_0x4497a0['set'](_0x3a344a,_0x3e2131);}else{if(_0x50d7e5&&_0x50d7e5['markerAttributes'])for(const [_0xf35efa,_0x9e1b63]of Object['entries'](_0x50d7e5['markerAttributes'])){const _0x560331=_0x57946e['model']['markers']['get'](_0xf35efa),_0x10f5af=_0x560331?_0x560331['getRange']()['getContainedElement']():null;_0x10f5af&&_0x4497a0['set'](_0x10f5af,_0x9e1b63);}}_0x57946e['model']['change'](_0x38e0e3=>{for(const [_0x2754b8,_0x575253]of _0x4497a0)_0x38e0e3['setAttributes']({...Ot,..._0x575253},_0x2754b8);});});const _0x39e413=(_0x5e7e18,_0x5b9f49)=>{_0x2d1944['_suggestionFactory']['registerCustomCallback'](_0x5e7e18,'tablePaste',_0x5b9f49,(_0x1a49b0,_0x3f026b,_0x2dbdc5)=>{_0x57946e['model']['change'](_0x4fa5ac=>{const _0x4c7b64=[];for(const _0x2cdf85 of _0x1a49b0){const _0x329f4b=_0x2cdf85['start']['nodeAfter'];_0x329f4b['is']('element','tableCellSuggestion')&&_0x4c7b64['push'](_0x329f4b);}_0x2d1944['_suggestionFactory']['getSuggestionCallback'](_0x5e7e18,null,_0x5b9f49)(_0x1a49b0,_0x3f026b,_0x2dbdc5);for(const _0x4540b8 of _0x4c7b64)'$graveyard'!=_0x4540b8['root']['rootName']&&_0x4fa5ac['unwrap'](_0x4540b8);});});};_0x39e413('insertion','accept'),_0x39e413('insertion','discard'),_0x39e413('deletion','accept'),_0x39e413('deletion','discard'),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5deb6d=>{const _0x5e7d4d=_0x5deb6d['map'](_0x34b059=>_0x34b059['getContainedElement']()),_0x1c73d7=_0x5e7d4d[0x0]['findAncestor']('table'),{minRow:_0x2b15a6,maxRow:_0x29392b}=_0x42dd9c['_getCoordsForCells'](_0x5e7d4d);_0x5e5eca['removeRows'](_0x1c73d7,{'at':_0x2b15a6,'rows':_0x29392b-_0x2b15a6+0x1});}),_0x2d1944['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5c4269=>{const _0x79317f=_0x5c4269['map'](_0x58e59e=>_0x58e59e['getContainedElement']()),_0x2a35c0=_0x79317f[0x0]['findAncestor']('table'),{minColumn:_0x44d479,maxColumn:_0x5ea8cc}=_0x42dd9c['_getCoordsForCells'](_0x79317f);_0x5e5eca['removeColumns'](_0x2a35c0,{'at':_0x44d479,'columns':_0x5ea8cc-_0x44d479+0x1});});const _0x147995=(_0xf719c9,_0xca1960)=>{if(!_0xca1960['subType']||!_0xca1960['subType']['startsWith']('tablePaste'))return;const _0x1aec70=_0xca1960['attributes']['tablePasteChainId'],_0x2a238e=_0x2d1944['getSuggestions']()['filter'](_0x137916=>_0x137916['isInContent']&&_0x137916['attributes']&&_0x137916['attributes']['tablePasteChainId']==_0x1aec70);_0x2a238e['length']&&_0xca1960['getAllAdjacentSuggestions']()['length']!=_0x2a238e['length']&&_0x2a238e['reduce']((_0x49338a,_0x56090c)=>(_0x49338a['next']=_0x56090c,_0x56090c['previous']=_0x49338a,_0x56090c));};function _0x3bfd24(_0x3a46fc,_0x3bf57d=!0x0){const {id:_0x3dab46,authorId:_0x1cdb6f}=_0x2522cc(_0x3a46fc['markerName']),_0x806cad=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5bdc51=_0x2d1944['activeMarkers']['includes'](_0x3a46fc['markerName']);return _0x5bdc51&&_0x806cad['push']('ck-suggestion-marker--active'),{'classes':_0x806cad,'attributes':{'data-suggestion':_0x3dab46,'data-author-id':_0x1cdb6f},'priority':_0x5bdc51&&_0x3bf57d?0xbc2:0xbb8};}_0x2d1944['on']('suggestionLoaded',_0x147995,{'priority':'high'}),_0x2d1944['on']('suggestionUnloaded',_0x147995,{'priority':'high'}),_0x57946e['model']['document']['registerPostFixer'](()=>{let _0x405f99=!0x1;const _0x2dcd96=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d1ec4,data:_0x216dd8}of _0x2dcd96){const {group:_0x383ee4,type:_0x4f33f3,id:_0x3002b8}=_0x2522cc(_0x1d1ec4);if('suggestion'!=_0x383ee4||'deletion'!=_0x4f33f3||_0x216dd8['oldRange'])continue;if(!_0x2d1944['hasSuggestion'](_0x3002b8))continue;const _0x34de75=_0x2d1944['getSuggestion'](_0x3002b8)['getRanges'](),_0x332f46=_0x57946e['plugins']['get']('Users')['me'];for(const _0x67cb0f of _0x2d1944['getSuggestions']()){if(!_0x67cb0f['isInContent']||_0x67cb0f['author']!=_0x332f46)continue;if('formatBlock'!=_0x67cb0f['type']||'tablePasteCell'!=_0x67cb0f['subType'])continue;if(_0x67cb0f['getRanges']()['every'](_0x8d0482=>_0x34de75['some'](_0x4db7ec=>_0x4db7ec['containsRange'](_0x8d0482,!0x0)))){for(const _0x2bf474 of _0x67cb0f['getAllAdjacentSuggestions']())_0x2bf474['isInContent']&&(_0x2bf474['discard'](),_0x405f99=!0x0);}}}return _0x405f99;}),_0x57946e['model']['document']['registerPostFixer'](_0x79064e=>{const _0x143cdd=_0x57946e['commands']['get']('redo');if(!_0x143cdd||!_0x143cdd['_createdBatches']['has'](_0x79064e['batch']))return!0x1;let _0x5ce9cc=!0x1;const _0x36d816=_0x57946e['plugins']['get']('Users')['me'],_0x11c3f5=_0x57946e['model']['document']['differ']['getChanges'](),_0x59dc07=Array['from'](_0x57946e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x22bcea,data:_0x10020e})=>{const {group:_0x550567,subType:_0x4ef38a,authorId:_0x3275e4}=_0x2522cc(_0x22bcea);return'suggestion'==_0x550567&&'tablePaste'==_0x4ef38a&&_0x3275e4==_0x36d816['id']&&!_0x10020e['oldRange'];});for(const _0x3a9d9e of _0x11c3f5){if('insert'!=_0x3a9d9e['type']||'tableCellSuggestion'!=_0x3a9d9e['name']||0x1!=_0x3a9d9e['length'])continue;const _0x205b4d=_0x79064e['createRange'](_0x3a9d9e['position'],_0x3a9d9e['position']['getShiftedBy'](0x1));if(!_0x59dc07['find'](({data:_0x229388})=>_0x229388['newRange']['isEqual'](_0x205b4d))){for(const {name:_0x411b8e,data:_0x165e30}of _0x59dc07)if(_0x205b4d['containsRange'](_0x165e30['newRange'])){_0x79064e['updateMarker'](_0x411b8e,{'range':_0x205b4d}),_0x5ce9cc=!0x0;break;}}}return _0x5ce9cc;}),_0x57946e['model']['document']['registerPostFixer'](_0x12cf2f=>{let _0x4bb353=!0x1;const _0x16adc3=_0x57946e['plugins']['get']('Users')['me'],_0xb39ba1=_0x2d1944['getSuggestions']()['filter'](_0x4ac833=>_0x4ac833['isInContent']&&_0x4ac833['author']==_0x16adc3),_0x5d4cb8=new Set(),_0x606ab1=new Set();for(const _0x3aa08f of _0xb39ba1)if('tablePaste'==_0x3aa08f['subType'])for(const _0x2e8b5a of _0x3aa08f['getMarkers']()){const _0xc4c766=_0x2e8b5a['getRange']()['getContainedElement']();if(_0xc4c766){if(_0xc4c766['is']('element','tableCellSuggestion')&&wt(_0xc4c766)){_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x5d4cb8['add'](_0xc4c766),_0x4bb353=!0x0;const _0x1df10a=_0xc4c766['nextSibling'],_0x5ef808=_0xc4c766['previousSibling'],_0x4d32a6=_0x1df10a&&_0x1df10a['is']('element','tableCellSuggestion'),_0x317df0=_0x5ef808&&_0x5ef808['is']('element','tableCellSuggestion');_0x4d32a6&&!_0x5d4cb8['has'](_0x1df10a)&&_0x606ab1['add'](_0x1df10a),_0x317df0&&!_0x5d4cb8['has'](_0x5ef808)&&_0x606ab1['add'](_0x5ef808);}else _0xc4c766['is']('element','paragraph')&&_0xc4c766['isEmpty']&&(_0x3aa08f['removeMarker'](_0x2e8b5a['name']),_0x4bb353=!0x0);}}else{if('tablePasteCell'==_0x3aa08f['subType']){if(!_0x3aa08f['attributes']||!_0x3aa08f['attributes']['tablePasteChainId'])continue;const _0x20b661=_0x3aa08f['attributes']['markerAttributes'];if(_0x20b661&&Object['keys'](_0x20b661)['length'])continue;const _0x473066=_0x3aa08f['attributes']['tablePasteChainId'];let _0x4bab39=!0x0,_0x402aa2=!0x0;for(const _0x437354 of _0xb39ba1)if(_0x437354['subType']&&_0x437354['subType']['startsWith']('tablePaste')){if(!_0x437354['attributes']['tablePasteChainId']){_0x402aa2=!0x1;break;}if(_0x437354['id']!=_0x3aa08f['id']&&_0x437354['attributes']['tablePasteChainId']==_0x473066){_0x4bab39=!0x1;break;}}_0x402aa2&&_0x4bab39&&(_0x3aa08f['removeMarkers'](),_0x4bb353=!0x0);}}for(const _0x3cbaac of _0x5d4cb8)_0x12cf2f['remove'](_0x3cbaac);for(const _0x4849aa of _0x606ab1)_0x12cf2f['unwrap'](_0x4849aa);return _0x4bb353;}),_0x57946e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43823a=>_0x3bfd24(_0x43823a),'converterPriority':'high'}),_0x57946e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59deca,_0x131be1)=>_0x131be1['options']['showSuggestionHighlights']?_0x3bfd24(_0x59deca,!0x1):null,'converterPriority':'high'});const _0xe557cd=_0x57946e['editing']['view'];this['listenTo'](_0xe557cd['document'],'clipboardOutput',(_0x411c9d,_0x417417)=>{const _0x218460=[];for(const _0x44b764 of _0xe557cd['createRangeIn'](_0x417417['content'])['getItems']())_0x44b764['is']('element','suggestion-td')&&_0x218460['push'](_0x44b764);_0xe557cd['change'](_0x1d7337=>{for(const _0x576f01 of _0x218460)_0x1d7337['move'](_0x1d7337['createRangeIn'](_0x576f01),_0x1d7337['createPositionBefore'](_0x576f01)),_0x1d7337['remove'](_0x576f01);});});}}function wt(_0x3268a2){if(_0x3268a2['isEmpty'])return!0x0;const _0x41c67b=_0x3268a2['getChild'](0x0);return _0x41c67b['is']('element','paragraph')&&_0x41c67b['isEmpty'];}function Bt(_0x32a75b,_0x153d37={},_0x3ca0be){for(const {isAnchor:_0x31a7b1,cellHeight:_0xdfb05,cellWidth:_0x18ca16}of _0x3ca0be['createTableWalker'](_0x32a75b,{'includeAllSlots':!0x0,..._0x153d37}))if(!_0x31a7b1||0x1!=_0xdfb05||0x1!=_0x18ca16)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3000a5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e0077=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e0077['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e0077['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5e0077['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5e0077['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db8ed,_0x11776a){const _0x6cbdc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220417=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ca962=_0x11776a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c8515=_0x220417['getColumnGroupElement'](_0x1ca962);let _0x1dc274=_0x4c8515?_0x220417['getTableColumnsWidths'](_0x4c8515):null,_0x5a8dc8=_0x1ca962['getAttribute']('tableWidth')||null;const _0x1e2a87=_0x11776a['tableWidth']||_0x5a8dc8,_0x12a0ba=_0x11776a['columnWidths']||_0x1dc274,_0x18133d=this['editor']['plugins']['get']('Users')['me'];for(const _0x487bd5 of _0x6cbdc4['getSuggestions']()){const _0x414a34=_0x487bd5['getContainedElement']();if('resizeTable'===_0x487bd5['subType']&&_0x414a34===_0x1ca962){_0x487bd5['author']!==_0x18133d&&_0x487bd5['discard']();const _0x46d2da=_0x487bd5['data']['commandParams'];_0x5a8dc8=_0x46d2da[0x0]['tableWidth'],_0x1dc274=_0x46d2da[0x0]['columnWidths'];break;}}_0x1db8ed({'table':_0x1ca962,'tableWidth':_0x1e2a87,'columnWidths':_0x12a0ba}),_0x6cbdc4['markBlockFormat'](_0x1ca962,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a8dc8,'columnWidths':_0x1dc274}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2fb1d5){if('formatBlock'!=_0x2fb1d5['type']&&'formatInline'!=_0x2fb1d5['type'])return;const {data:_0x359d71}=_0x2fb1d5;if(_0x359d71&&'resizeTable'===_0x359d71['formatGroupId']){const _0x345c23='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x345c23)};}}}class TrackChangesTemplate extends _0x3000a5{['afterInit'](){const _0xc52707=this['editor'];_0xc52707['plugins']['has']('Template')&&_0xc52707['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3000a5{['afterInit'](){const _0x433df2=this['editor'];if(!_0x433df2['commands']['get']('insertTableOfContents'))return;_0x433df2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7f2bb7=_0x433df2['plugins']['get']('TrackChangesEditing'),_0x112278=_0x433df2['locale'];_0x7f2bb7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x330ae0=>Tt(_0x112278,'ELEMENT_TABLE_OF_CONTENTS',_0x330ae0));}}class TrackChangesTitle extends _0x3000a5{['afterInit'](){const _0x171625=this['editor'];if(!_0x171625['plugins']['has']('Title'))return;_0x171625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x171625['locale'],'ELEMENT_TITLE')),_0x171625['model']['document']['registerPostFixer'](_0xb903de=>{let _0x43e627=!0x1;const _0x4c979d=Array['from'](_0x171625['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c362,data:_0x484d59}of _0x4c979d){const {group:_0x145ee0}=_0x2522cc(_0x12c362);if('suggestion'!==_0x145ee0||!_0x484d59['newRange'])continue;const _0x4d27ad=_0x484d59['newRange'],_0x4d70e5=_0x4d27ad['end']['nodeBefore'];if(!_0x4d70e5||!_0x4d70e5['is']('element','title-content'))continue;if(!_0x4d27ad['start']['isTouching'](_0x4d27ad['end']))continue;const _0x303732=_0x171625['model']['schema']['getNearestSelectionRange'](_0x4d27ad['end'],'forward');if(_0x303732&&_0x303732['isCollapsed']){const _0x50f092=_0xb903de['createRange'](_0x4d27ad['start'],_0x303732['start']);_0x50f092['isEqual'](_0x4d27ad)||(_0xb903de['updateMarker'](_0x12c362,{'range':_0x50f092}),_0x43e627=!0x0);}_0x43e627||(_0xb903de['removeMarker'](_0x12c362),_0x43e627=!0x0);}return _0x43e627;});}}class TrackChangesUploadcare extends _0x3000a5{['afterInit'](){const _0x257326=this['editor'],_0x5d9966=_0x257326['plugins']['get']('TrackChangesEditing');_0x257326['plugins']['has']('Uploadcare')&&(_0x5d9966['enableCommand']('uploadcare'),_0x257326['plugins']['has']('UploadcareImageEdit')&&(_0x5d9966['enableCommand']('uploadcareImageEdit'),_0x5d9966['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d9966['descriptionFactory']['registerDescriptionCallback'](_0x187658=>{if('attribute'!=_0x187658['type'])return;const {data:_0x366d5c}=_0x187658;return _0x366d5c&&'uploadcareImageId'==_0x366d5c['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3000a5{['afterInit'](){const _0x231e1e=this['editor'],_0x20ebd3=_0x231e1e['plugins']['get']('TrackChangesEditing');_0x231e1e['plugins']['has']('UndoEditing')&&(_0x20ebd3['enableCommand']('undo'),_0x20ebd3['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3000a5{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xd836b1=this['editor'];if(!_0xd836b1['plugins']['has']('TableCaptionEditing'))return;_0xd836b1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3000a5{['tableProperties'];['tableCellProperties'];constructor(_0x4d654e){super(_0x4d654e),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 _0x3850cf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a667d of this['tableProperties'])_0x3850cf['enableCommand'](_0x1a667d,(_0x3009fe,_0x452345)=>{const _0x2106bf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a667d,[_0x2106bf],this['tableProperties'],'tableProperties',_0x3009fe,_0x452345);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x41226,_0x50baa1)=>this['handleDiscardAction'](this['tableProperties'],_0x41226,_0x50baa1)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x973fb4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x973fb4)&&_0x3850cf['enableCommand'](_0x973fb4,(_0x39a1e3,_0x2ed9e4)=>{const _0x5ec39a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x973fb4,_0x5ec39a,this['tableCellProperties'],'tableCellProperties',_0x39a1e3,_0x2ed9e4);});_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3850cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x138ba1,_0x147373)=>this['handleDiscardAction'](this['tableCellProperties'],_0x138ba1,_0x147373)),_0x3850cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3850cf['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3850cf['descriptionFactory']['registerDescriptionCallback'](_0x292ea2=>this['handleSuggestionDescription'](_0x292ea2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x557329,_0x51672b,_0x21936b,_0x21e6d8,_0x1cbc12,_0x2c1c4a){const _0x57732d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c1c4a['batch'],()=>{for(const _0x269880 of _0x51672b){if(this['_getSuggestion'](_0x269880,_0x21e6d8))_0x1cbc12(_0x2c1c4a);else{const _0x462293={};for(const _0x9bb9a4 of _0x21936b){const _0x336b2f=_0x269880['getAttribute'](_0x9bb9a4);void 0x0!==_0x336b2f&&(_0x462293[_0x9bb9a4]=_0x336b2f);}_0x1cbc12(_0x2c1c4a),_0x57732d['markBlockFormat'](_0x269880,{'commandParams':[_0x462293]},[],_0x21e6d8);}}});}['handleDiscardAction'](_0x3034b2,_0x1b91da,_0x3fa7b3){const _0x20273c=_0x1b91da[0x0]['start']['nodeAfter'],_0x4c787f=_0x3fa7b3['commandParams'][0x0];this['editor']['model']['change'](_0xd303e9=>{for(const _0x19fe71 of _0x3034b2)void 0x0!==_0x4c787f[_0x19fe71]?_0xd303e9['setAttribute'](_0x19fe71,_0x4c787f[_0x19fe71],_0x20273c):_0xd303e9['removeAttribute'](_0x19fe71,_0x20273c);});}['handleSuggestionDescription'](_0x2bc3d5){if(_0x2bc3d5['data'])switch(_0x2bc3d5['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x39c95c,_0x3ee22e){const _0x1f30c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fe6c0 of _0x1f30c9['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e2c87=_0x3fe6c0['getContainedElement']();if(_0x3fe6c0['subType']===_0x3ee22e&&_0x1e2c87===_0x39c95c)return _0x3fe6c0;}return null;}['_registerTablePropertiesAttributes'](){const _0x1380e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c81c2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x27d76d of _0x3c81c2){const _0x364c1f=_0x27d76d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1380e0['descriptionFactory']['registerAttributeLabel'](_0x27d76d,Tt(this['editor']['locale'],'FORMAT_'+_0x364c1f));}}}class TrackChangesLineHeight extends _0x3000a5{['afterInit'](){const _0x251ad9=this['editor'];if(!_0x251ad9['plugins']['has']('LineHeight'))return;const _0x167d0e=_0x251ad9['plugins']['get']('TrackChangesEditing'),_0x289e64=_0x251ad9['locale'];_0x167d0e['enableDefaultAttributesIntegration']('lineHeight'),_0x167d0e['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x289e64,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x3000a5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3b6cc3,_0x54b9f2,_0x1d950a,_0x366661,_0x1d267d,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a515){super(_0x28a515),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31a5c6,_0x1f39e4,_0x2fb687,_0x11a35e)=>{this['_model']['change'](()=>{for(const _0x5e1882 of[..._0x11a35e,..._0x2fb687])this['_model']['markers']['has'](_0x5e1882)&&_0x28a515['editing']['reconvertMarker'](_0x5e1882);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28a515['plugins']['get'](_0x3b6cc3),this['_suggestionsConversion']=_0x28a515['plugins']['get'](_0x54b9f2),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x28a515['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28a515['config']['get']('trackChanges.trackFormatChanges'),_0x28a515['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28a515['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x28a515,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x229af4=this['editor'];_0x229af4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5937b7,{writer:_0x55760a})=>{let _0x3817c0='suggestion:'+_0x5937b7['getAttribute']('suggestion-type')+':'+_0x5937b7['getAttribute']('id');return _0x5937b7['getAttribute']('marker-count')&&(_0x3817c0+=':'+_0x5937b7['getAttribute']('marker-count')),_0x55760a['createElement']('$marker',{'data-name':_0x3817c0});}}),_0x229af4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x229af4['model']['document']['registerPostFixer'](_0x5dcb0b=>{let _0x4316c4=!0x1;const _0x14c643=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']()),_0x5aa798=new Set();for(const {name:_0x35185b,data:_0x1a639d}of _0x14c643){const {group:_0x182067,type:_0x109447,subType:_0x237faf,id:_0x1510e2}=_0x2522cc(_0x35185b);if('suggestion'!==_0x182067)continue;const _0x4fceb5=_0x237faf?'suggestion:'+_0x109447+':'+_0x237faf+':'+_0x1510e2:'suggestion:'+_0x109447+':'+_0x1510e2,_0x597c54=_0x229af4['model']['markers']['getMarkersGroup'](_0x4fceb5),_0x171304=_0x229af4['model']['markers']['get'](_0x35185b),_0x23fe3f=this['_suggestions']['get'](_0x1510e2);if(null!=_0x1a639d['newRange']){'formatInline'==_0x109447&&(_0x4316c4=_0x4316c4||xt(_0x1a639d['newRange'],_0x35185b,_0x5dcb0b,_0x229af4['model']['schema']));const _0x118618='attribute'==_0x109447&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x237faf)),_0x586cd4='attribute'==_0x109447&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x237faf));if(_0x1a639d['newRange']['isCollapsed']||'$graveyard'==_0x1a639d['newRange']['root']['rootName']||'formatBlock'==_0x109447&&!Ut(_0x1a639d['newRange'])||_0x118618&&!Ut(_0x1a639d['newRange'])||_0x586cd4&&Gt(_0x1a639d['newRange'])||'deletion'==_0x109447&&Gt(_0x1a639d['newRange'])||_0x171304&&Ht(_0x171304,_0x597c54))_0x5dcb0b['removeMarker'](_0x35185b),_0x4316c4=!0x0;else{if(!_0x23fe3f||!_0x23fe3f['isInContent'])continue;if(_0x1a639d['newRange']&&_0x1a639d['oldRange']&&_0x1a639d['newRange']['isEqual'](_0x1a639d['oldRange']))continue;_0x5aa798['add'](_0x23fe3f);}}}return _0x5aa798['size']>0x0&&(_0x4316c4=!!this['_joinWithAdjacentSuggestions'](_0x5aa798)||_0x4316c4),_0x4316c4;}),_0x229af4['model']['document']['registerPostFixer'](_0x47491d=>{let _0x7131c1=!0x1;for(const _0x1ee7c2 of _0x229af4['model']['document']['differ']['getChanges']())if('insert'==_0x1ee7c2['type'])for(const _0x103b13 of this['_suggestions']['values']()){if(_0x103b13['isMultiRange']||!_0x103b13['isInContent'])continue;const _0x1462a3='formatBlock'==_0x103b13['type'],_0xf7d69e=this['_getAttributeKey'](_0x103b13),_0x3da633=_0xf7d69e&&this['_suggestionsConversion']['isBlockAttribute'](_0xf7d69e);if(!_0x1462a3&&!_0x3da633)continue;const _0x57baaf=_0x103b13['getFirstRange']();if(_0x57baaf['start']['parent']!=_0x57baaf['end']['parent']&&!_0x57baaf['end']['isAtEnd']){const _0x328eb3=_0x229af4['model']['createPositionAt'](_0x57baaf['start']['nodeAfter'],'end'),_0x35eb37=_0x229af4['model']['createRange'](_0x57baaf['start'],_0x328eb3);_0x47491d['updateMarker'](_0x103b13['getFirstMarker'](),{'range':_0x35eb37}),_0x7131c1=!0x0;}}return _0x7131c1;}),_0x229af4['model']['document']['registerPostFixer'](_0x35305d=>this['_processAttributeChanges'](_0x35305d)),_0x229af4['model']['document']['registerPostFixer'](_0x41be09=>!_0x41be09['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41be09)),_0x229af4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x229af4['model']['document']['on']('change:data',(_0x14034b,_0x826dbb)=>{if(!_0x826dbb['isLocal']||_0x826dbb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x34399d=_0x229af4['model']['document']['differ']['getChanges']();if(0x0==_0x34399d['length'])return;const _0x1f15ee=[],_0xff91a5=_0x34399d['filter'](_0x20b7e7=>'attribute'==_0x20b7e7['type']),_0x51abeb=_0x34399d['filter'](_0x35ec75=>'insert'==_0x35ec75['type']&&'$text'!=_0x35ec75['name']);for(const _0x1f70b7 of _0xff91a5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f70b7['attributeKey'])&&_0x1f15ee['push']({'key':_0x1f70b7['attributeKey'],'newValue':_0x1f70b7['attributeNewValue'],'oldValue':_0x1f70b7['attributeOldValue'],'range':$t(_0x1f70b7['range'],_0x229af4['model'])});for(const _0x43c75b of _0x51abeb){if('rename'!=_0x43c75b['action']&&'refresh'!=_0x43c75b['action'])continue;const _0x4b7413=Vt(_0x43c75b['position']['nodeAfter'],_0x229af4['model']),_0x5b2f65=_0x43c75b['before'];'rename'==_0x43c75b['action']&&_0x1f15ee['push']({'key':Ft,'newValue':_0x43c75b['name'],'oldValue':_0x5b2f65['name'],'range':_0x4b7413});for(const [_0x52519f,_0x1c7577]of _0x5b2f65['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x52519f))continue;const _0x19662a=_0x43c75b['attributes']['get'](_0x52519f);_0x1c7577!==_0x19662a&&_0x1f15ee['push']({'key':_0x52519f,'newValue':_0x19662a,'oldValue':_0x1c7577,'range':_0x4b7413});}for(const [_0x39009e,_0x10f3a6]of _0x43c75b['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x39009e)&&(_0x5b2f65['attributes']['has'](_0x39009e)||_0x1f15ee['push']({'key':_0x39009e,'newValue':_0x10f3a6,'oldValue':null,'range':_0x4b7413}));}0x0!=_0x1f15ee['length']&&_0x229af4['model']['enqueueChange'](_0x826dbb,_0x579de5=>{const _0x235bbc=_0x59fa6d();for(const {range:_0x24f21a,key:_0xd344bd,oldValue:_0x4f16a8,newValue:_0x23b110}of _0x1f15ee)this['markAttributeChange'](_0x24f21a,_0xd344bd,_0x4f16a8,_0x23b110,{'groupId':_0x235bbc});this['_reduceExistingSuggestions'](_0x579de5,_0x1f15ee);});},{'priority':'lowest'}),_0x229af4['model']['markers']['on']('update:suggestion',(_0x5336d5,_0x2d144b,_0x1def6b)=>{if(null==_0x1def6b){const {id:_0x2cf6e7}=_0x2522cc(_0x2d144b['name']),_0x4d4abc=this['_suggestions']['get'](_0x2cf6e7);_0x4d4abc&&_0x4d4abc['addMarkerName'](_0x2d144b['name']);}}),_0x229af4['model']['document']['on']('change:data',()=>{const _0x4a5e7d=Array['from'](_0x229af4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x51eb4c=>'suggestion'===_0x2522cc(_0x51eb4c['name'])['group']);if(0x0===_0x4a5e7d['length'])return;_0x4a5e7d['sort']((_0x5660d9,_0x42ec03)=>{const _0x527ab6=_0x5660d9['data']['oldRange'],_0x8ea964=_0x42ec03['data']['oldRange'];return null===_0x527ab6&&null===_0x8ea964?0x0:null===_0x527ab6&&null!==_0x8ea964?-0x1:null!==_0x527ab6&&null===_0x8ea964?0x1:_0x527ab6['start']['isBefore'](_0x8ea964['start'])?-0x1:0x1;});const _0x449651=new Set(),_0x497338=new Set();for(const {name:_0x7508dc,data:_0x856edd}of _0x4a5e7d){const {id:_0x2bb2be}=_0x2522cc(_0x7508dc);if(null===_0x856edd['oldRange']){const _0x14638b=this['_handleNewSuggestionMarker'](_0x7508dc);_0x497338['add'](_0x14638b);}else{const _0xca797f=this['_suggestions']['get'](_0x2bb2be);null!==_0x856edd['newRange']||_0xca797f['isInContent']?(_0x449651['add'](_0xca797f['head']),_0x497338['add'](_0xca797f)):this['_removeSuggestion'](_0xca797f);}}_0x497338['size']>0x0&&this['_refreshSuggestionsChain'](_0x497338);for(const _0x2b4c9a of _0x449651)this['fire']('suggestionChanged',_0x2b4c9a);}),_0x229af4['model']['on']('applyOperation',(_0x3c3341,_0x5a558b)=>{const _0x2b72c9=_0x5a558b[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b72c9['isDocumentOperation'])return;if(_0x2b72c9['batch']['isUndo']||!_0x2b72c9['batch']['isLocal'])return;let _0x1dc5f2,_0x409ff6;switch(_0x2b72c9['type']){case'insert':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['position']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;case'split':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['splitPosition']),_0x409ff6=_0x229af4['model']['createPositionAt'](_0x2b72c9['moveTargetPosition']);break;case'move':_0x1dc5f2=_0x229af4['model']['createPositionAt'](_0x2b72c9['targetPosition']),_0x409ff6=_0x1dc5f2['getShiftedBy'](_0x2b72c9['howMany']);break;default:return;}const _0x24079f=_0x229af4['model']['createRange'](_0x1dc5f2,_0x409ff6);_0x229af4['model']['change'](()=>{for(const {suggestion:_0x140536,meta:_0x143342}of this['_findSuggestions'](_0x24079f)){if(_0x140536['isMultiRange'])continue;if('formatInline'==_0x140536['type'])continue;const _0xadf9a3=this['_getAttributeKey'](_0x140536);if(_0xadf9a3&&this['_suggestionsConversion']['isBlockAttribute'](_0xadf9a3)&&'split'!=_0x2b72c9['type'])continue;const _0x4ad0a8=_0x140536['data']&&_0x140536['data']['multipleBlocks'];('formatBlock'!=_0x140536['type']||'split'==_0x2b72c9['type']&&!_0x4ad0a8)&&(_0x143342['containsRangeInObject']||'insertion'==_0x140536['type']&&_0x143342['isOwn']||_0x140536['getFirstRange']()['containsRange'](_0x24079f)&&this['_breakSuggestionMarker'](_0x140536,_0x1dc5f2,_0x409ff6));}});},{'priority':'lowest'}),_0x229af4['model']['on']('deleteContent',(_0x13ed40,_0x5af316)=>{const _0x40b3f7=_0x5af316[0x0],_0x26a1cf=_0x5af316[0x1];if(_0x26a1cf&&_0x26a1cf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40b3f7['isCollapsed'])return;const _0x402392=_0x229af4['model']['schema'],{start:_0x3f85c3,end:_0x5219ff}=_0x40b3f7['getFirstRange'](),_0x3b5806=_0x3f85c3['nodeAfter']&&_0x402392['isLimit'](_0x3f85c3['nodeAfter'])?null:_0x402392['getNearestSelectionRange'](_0x3f85c3,'forward'),_0x51e69d=_0x5219ff['nodeBefore']&&_0x402392['isLimit'](_0x5219ff['nodeBefore'])?null:_0x402392['getNearestSelectionRange'](_0x5219ff,'backward'),_0x3a3644=_0x229af4['model']['createRange'](_0x3b5806?_0x3b5806['start']:_0x3f85c3,_0x51e69d?_0x51e69d['end']:_0x5219ff);_0x229af4['model']['change'](_0x8f0458=>{this['markDeletion'](_0x3a3644);const _0x3bd7cf=_0x229af4['model']['schema']['getNearestSelectionRange'](_0x3a3644['start']);_0x40b3f7['is']('documentSelection')?_0x8f0458['setSelection'](_0x3bd7cf):_0x40b3f7['setTo'](_0x3bd7cf);}),_0x13ed40['stop']();},{'priority':_0x12b650['normal']+0xa}),_0x229af4['model']['on']('insertContent',(_0x134153,_0x1902db)=>{const _0x20bda8=_0x1902db[_0x1902db['length']-0x1];_0x20bda8&&_0x20bda8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x229af4['model']['change'](()=>{let _0x1ac479=_0x229af4['model']['insertContent'](_0x1902db[0x0],_0x1902db[0x1],_0x1902db[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ac479)return;_0x134153['return']=_0x1ac479['clone']();const _0x5cc3b0=_0x1ac479['end']['nodeBefore'],_0x20413b=_0x229af4['model']['schema'];_0x5cc3b0&&_0x20413b['isBlock'](_0x5cc3b0)&&!_0x20413b['isObject'](_0x5cc3b0)&&(_0x1ac479=_0x229af4['model']['createRange'](_0x1ac479['start'],_0x229af4['model']['createPositionAt'](_0x5cc3b0,'end'))),this['markInsertion'](_0x1ac479);}),_0x134153['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bb9da=new AcceptSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('acceptSuggestion',_0x4bb9da),this['enableCommand']('acceptSuggestion');const _0x3a8e95=new DiscardSuggestionCommand(_0x229af4,this['_suggestions']);_0x229af4['commands']['add']('discardSuggestion',_0x3a8e95),this['enableCommand']('discardSuggestion'),_0x229af4['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x229af4['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x229af4['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x4bb9da,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x229af4['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x229af4,_0x3a8e95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3f92dd=_0x229af4['plugins']['get'](_0x3b6cc3);this['listenTo'](_0x3f92dd,'addComment',(_0x29be78,{threadId:_0x24b79f})=>{const _0x33a501=this['_suggestions']['get'](_0x24b79f);_0x33a501&&_0x33a501['commentThread']&&0x1===_0x33a501['commentThread']['length']&&this['_updateSuggestionData'](_0x24b79f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f92dd,'removeComment',(_0x456bc9,{threadId:_0x31ac73})=>{const _0x1654da=this['_suggestions']['get'](_0x31ac73);_0x1654da&&_0x1654da['commentThread']&&!_0x1654da['commentThread']['length']&&this['_updateSuggestionData'](_0x31ac73,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa73e33){const _0x1c4eb7=_0x3b9af7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4edcbb=0x3d8d0df,_0x175c5c=0x3df5ab7^_0x4edcbb,_0x5c549c=window[_0x3b9af7([0x44,0x61,0x74,0x65])][_0x3b9af7([0x6e,0x6f,0x77])](),_0x37fbc2=_0xa73e33[_0x3b9af7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eab6b=new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159b77=>{_0x37fbc2[_0x3b9af7([0x6f,0x6e,0x63,0x65])](_0x3b9af7([0x72,0x65,0x61,0x64,0x79]),_0x159b77);}),_0x4e8c43={[_0x3b9af7([0x6b,0x74,0x79])]:_0x3b9af7([0x45,0x43]),[_0x3b9af7([0x75,0x73,0x65])]:_0x3b9af7([0x73,0x69,0x67]),[_0x3b9af7([0x63,0x72,0x76])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36]),[_0x3b9af7([0x78])]:_0x3b9af7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3b9af7([0x79])]:_0x3b9af7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3b9af7([0x61,0x6c,0x67])]:_0x3b9af7([0x45,0x53,0x32,0x35,0x36])},_0x4e0f0e=_0x37fbc2[_0x3b9af7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b9af7([0x67,0x65,0x74])](_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9fc1e7(){let _0x3cfe82,_0x4a3102=null,_0x76358a=null;try{if(_0x4e0f0e==_0x3b9af7([0x47,0x50,0x4c]))return _0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cfe82=_0x5d628a(),!_0x3cfe82)return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76358a=_0x450e54(_0x3cfe82[_0x3b9af7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cfe82[_0x3b9af7([0x6a,0x74,0x69])])),await _0x50d228()?_0x31a489()?_0x320fde()?_0x3b9af7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x393841()?(_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a3102=_0x5d540d(_0x3b9af7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c1772()):_0x3b9af7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b9af7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320fde(){const _0x2305f1=[_0x3b9af7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b9af7([0x74,0x72,0x69,0x61,0x6c])][_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c549c/0x3e8:0xe10*_0x175c5c;return _0x3cfe82[_0x3b9af7([0x65,0x78,0x70])]<_0x2305f1;}function _0x31a489(){const _0x37db05=_0x3cfe82[_0x3b9af7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37db05)return!0x1;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x54,0x43])))return!0x0;if(_0x37db05[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x52,0x54,0x43]))){if(_0x1ef5a0())return!0x0;if(_0x3bf3ec()||_0x9f1a3b())return!0x0;}return!0x1;}function _0x393841(){const _0x2fa108=_0x3cfe82[_0x3b9af7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fa108||0x0==_0x2fa108[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53c710}=new URL(window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fa108[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53c710))return!0x0;const _0x366d53=_0x53c710[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));return _0x2fa108[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b2951=>_0x3b2951[_0x3b9af7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9af7([0x2a])))[_0x3b9af7([0x6d,0x61,0x70])](_0x141161=>_0x141161[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])))[_0x3b9af7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5625ad=>_0x5625ad[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x6d,0x61,0x70])](_0x507495=>Array(_0x366d53[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x507495[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b9af7([0x66,0x69,0x6c,0x6c])](_0x507495[0x0]===_0x3b9af7([0x2a])?_0x3b9af7([0x2a]):'')[_0x3b9af7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x507495))[_0x3b9af7([0x73,0x6f,0x6d,0x65])](_0x4a2768=>_0x366d53[_0x3b9af7([0x65,0x76,0x65,0x72,0x79])]((_0x223588,_0x259f73)=>_0x4a2768[_0x259f73]===_0x223588||_0x4a2768[_0x259f73]===_0x3b9af7([0x2a])));}function _0x4c1772(){return _0x4a3102&&_0x76358a?new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x383af0,_0x161f15)=>{_0x4a3102[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x383af0,_0x161f15),_0x76358a[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x44edcb=>{_0x44edcb!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0x383af0(_0x44edcb);},_0x161f15);}):_0x4a3102||_0x76358a||_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x450e54(_0x337917,_0x576ee1){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d023e=>{if(_0x581e69())return _0x2d023e(_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]));_0x3ded30(),_0x37fbc2[_0x3b9af7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57e3cb=!0x1;const _0x33c4be=_0x59fa6d();function _0x4f9d49(_0x477c38){return!!_0x477c38&&(typeof _0x477c38===_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x477c38===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x477c38[_0x3b9af7([0x74,0x68,0x65,0x6e])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x477c38[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])]===_0x3b9af7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25047f(_0x5b76ab){_0x116d6d(_0x5b76ab)[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x304657=>{if(!_0x304657||_0x304657[_0x3b9af7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b9af7([0x6f,0x6b]))return _0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475cee(_0x461b7f(_0x33c4be+_0x576ee1))!=_0x304657[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b9af7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x53d066=>(_0x18ee21(),_0x53d066),()=>{const _0x2bdf5f=_0x1d13a0();return null==_0x2bdf5f?(_0x18ee21(),_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])):_0x3b9af7(_0x5c549c-_0x2bdf5f>(0x27d454df^_0x4edcbb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x2d023e)[_0x3b9af7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e0392=0x3ee3e5f^_0x4edcbb;function _0x18ee21(){const _0x8a9f38=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x34657e=_0x1198fa(_0x475cee(window[_0x3b9af7([0x4d,0x61,0x74,0x68])][_0x3b9af7([0x63,0x65,0x69,0x6c])](_0x5c549c/_0x5e0392)));window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a9f38,_0x34657e);}function _0x1d13a0(){const _0x473ca4=_0x3b9af7([0x6c,0x6c,0x63,0x74,0x2d])+_0x475cee(_0x461b7f(_0x337917)),_0x16b49a=window[_0x3b9af7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b9af7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473ca4);return _0x16b49a?window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1198fa(_0x16b49a),0x10)*_0x5e0392:null;}function _0x116d6d(_0x53e113){return new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6137,_0x530409)=>{_0x53e113[_0x3b9af7([0x74,0x68,0x65,0x6e])](_0x4b6137,_0x530409),window[_0x3b9af7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x530409,0x3d9041f^_0x4edcbb);});}}_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x123862,_0xaad40a)=>{if(_0xaad40a[0x0]!=_0x337917)return _0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaad40a[0x1]={..._0xaad40a[0x1],[_0x3b9af7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c4be};},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x68,0x69,0x67,0x68])}),_0x37fbc2[_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55f063=>{_0x4f9d49(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57e3cb=!0x0,_0x25047f(_0x55f063[_0x3b9af7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b9af7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b9af7([0x6c,0x6f,0x77])}),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>{_0x57e3cb||_0x2d023e(_0x3b9af7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x581e69(){return _0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b9af7([0x61,0x75,0x74,0x6f]);}function _0x3ded30(){_0x37fbc2[_0x3b9af7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b9af7([0x76,0x69,0x65,0x77])][_0x3b9af7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b9af7([0x61,0x75,0x74,0x6f]);}}function _0x5d540d(_0x1b5fb7){const _0x58978f=[new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45b7ed=>setTimeout(_0x45b7ed,0x3d1ee13^_0x4edcbb)),_0x2eab6b[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x793353=>{let _0x5d4704=0x0;_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x6f,0x6e])](_0x3b9af7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46cbb4,_0x1abaf9)=>{_0x1abaf9[0x0][_0x3b9af7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d4704++,_0x5d4704==(0x3d8d537^_0x4edcbb)&&(_0x793353(),_0x46cbb4[_0x3b9af7([0x6f,0x66,0x66])]());});}))];return window[_0x3b9af7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b9af7([0x72,0x61,0x63,0x65])](_0x58978f)[_0x3b9af7([0x74,0x68,0x65,0x6e])](()=>_0x1b5fb7);}async function _0xe0e0b8(){await _0x2eab6b,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b9af7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a12fd,_0x37fbc2[_0x3b9af7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b9af7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ef5a0(){return _0x602aa0(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4478f8(_0x3b9af7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b9af7([0x73,0x74,0x61,0x74,0x65])]==_0x3b9af7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3bf3ec(){return _0x602aa0(_0x3b9af7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x9f1a3b(){return _0x602aa0(_0x3b9af7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21daf9(_0x36e1ea){const _0x20cd18=_0x4bc47e();_0x37fbc2[_0x20cd18]=_0x3b9af7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36e1ea,_0x36e1ea!=_0x3b9af7([0x56,0x61,0x6c,0x69,0x64])&&_0xe0e0b8();}function _0x4bc47e(){const _0x10193a=window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b9af7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b9af7([0x6e,0x6f,0x77])]())[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b9af7([0x2e]),'');let _0x5c58c1=_0x3b9af7([0x52]);for(let _0x37744a=0x0;_0x37744a<_0x10193a[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37744a+=0x2){let _0x258cd2=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10193a[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37744a,_0x37744a+0x2));_0x258cd2>=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x258cd2-=_0x1c4eb7[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c58c1+=_0x1c4eb7[_0x258cd2];}return _0x5c58c1;}function _0x5d628a(){const _0x5752c1=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e]));if(0x3!=_0x5752c1[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e5b2d(_0x5752c1[0x1]);function _0x5e5b2d(_0x926cca){const _0x34825a=_0x28c1e4(_0x926cca);return _0x34825a&&_0x1b0c4a()?_0x34825a:null;function _0x1b0c4a(){const _0x5eb7bd=_0x34825a[_0x3b9af7([0x6a,0x74,0x69])],_0x364cc3=window[_0x3b9af7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dc039={..._0x34825a,[_0x3b9af7([0x6a,0x74,0x69])]:_0x5eb7bd[_0x3b9af7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5eb7bd[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dc039[_0x3b9af7([0x76,0x63])],_0x461b7f(_0x1dc039)==_0x364cc3;}}}async function _0x50d228(){let _0x4062a4=!0x0;try{const _0x1fdb38=_0x4e0f0e[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])](_0x3b9af7([0x2e])),[_0x134ffe,_0x491a36,_0x4e3f4c]=_0x1fdb38;return _0x300647(_0x134ffe),await _0x3f682c(_0x134ffe,_0x491a36,_0x4e3f4c),_0x4062a4;}catch{return!0x1;}function _0x300647(_0x5d7c1b){const _0x570437=_0x28c1e4(_0x5d7c1b);_0x570437&&_0x570437[_0x3b9af7([0x61,0x6c,0x67])]==_0x3b9af7([0x45,0x53,0x32,0x35,0x36])||(_0x4062a4=!0x1);}async function _0x3f682c(_0x986b55,_0x1b90c5,_0x14ae3b){const _0x164636=window[_0x3b9af7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b9af7([0x66,0x72,0x6f,0x6d])](_0x341bb6(_0x14ae3b),_0x204f2d=>_0x204f2d[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d82fe=new window[(_0x3b9af7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b9af7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x986b55+_0x3b9af7([0x2e])+_0x1b90c5),_0x2e27fb=window[_0x3b9af7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b9af7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e27fb)return;const _0x435a81=await _0x2e27fb[_0x3b9af7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b9af7([0x6a,0x77,0x6b]),_0x4e8c43,{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b9af7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e27fb[_0x3b9af7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x45,0x43,0x44,0x53,0x41]),[_0x3b9af7([0x68,0x61,0x73,0x68])]:{[_0x3b9af7([0x6e,0x61,0x6d,0x65])]:_0x3b9af7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435a81,_0x164636,_0x4d82fe)||(_0x4062a4=!0x1);}}function _0x28c1e4(_0x39ddca){return _0x39ddca[_0x3b9af7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b9af7([0x65,0x79]))?JSON[_0x3b9af7([0x70,0x61,0x72,0x73,0x65])](_0x341bb6(_0x39ddca)):null;}function _0x341bb6(_0x392167){return window[_0x3b9af7([0x61,0x74,0x6f,0x62])](_0x392167[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b9af7([0x2b]))[_0x3b9af7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b9af7([0x2f])));}function _0x461b7f(_0x3c81d2){let _0x306481=0x1505;function _0x5c8b20(_0x1a7adc){for(let _0x2bac02=0x0;_0x2bac02<_0x1a7adc[_0x3b9af7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bac02++){const _0x4cf3ef=_0x1a7adc[_0x3b9af7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bac02);_0x306481=(_0x306481<<0x5)+_0x306481+_0x4cf3ef,_0x306481&=_0x306481;}}function _0x689e9b(_0x2e0646){Array[_0x3b9af7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e0646)?_0x2e0646[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x689e9b):_0x2e0646&&typeof _0x2e0646==_0x3b9af7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b9af7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e0646)[_0x3b9af7([0x73,0x6f,0x72,0x74])]()[_0x3b9af7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x208563,_0x3fba8e])=>{_0x5c8b20(_0x208563),_0x689e9b(_0x3fba8e);}):_0x5c8b20(window[_0x3b9af7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e0646));}return _0x689e9b(_0x3c81d2),_0x306481>>>0x0;}function _0x475cee(_0x124eb7){return _0x124eb7[_0x3b9af7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b9af7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b9af7([0x30]));}function _0x1198fa(_0x56dd2d){return _0x56dd2d[_0x3b9af7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b9af7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b9af7([0x6a,0x6f,0x69,0x6e])]('');}function _0x602aa0(_0x653b53){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x68,0x61,0x73])](_0x653b53);}function _0x4478f8(_0x276c81){return _0x37fbc2[_0x3b9af7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b9af7([0x67,0x65,0x74])](_0x276c81);}function _0x2a12fd(){}function _0x3b9af7(_0x1d9b06){return _0x1d9b06['map'](_0x3fd939=>String['fromCharCode'](_0x3fd939))['join']('');}_0x21daf9(await _0x9fc1e7());}(this);}set['adapter'](_0x54e1a8){if(this['_adapter'])throw new _0x1d5f66('track-changes-adapter-already-set',this);this['_adapter']=_0x54e1a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe8540d=!0x1,toJSON:_0x3f601c=!0x1}={}){const _0x56dd4b=[];for(const _0x2e58b5 of this['_suggestions']['values']())_0xe8540d&&!_0x2e58b5['isInContent']||_0x56dd4b['push'](_0x2e58b5);return _0x3f601c?_0x56dd4b['map'](_0x6eafc=>_0x6eafc['toJSON']()):_0x56dd4b;}['getSuggestion'](_0x2781bc){const _0x325453=this['_suggestions']['get'](_0x2781bc);if(!_0x325453)throw new _0x1d5f66('track-changes-suggestion-not-found',this);return _0x325453;}['hasSuggestion'](_0x5d95fa){return this['_suggestions']['has'](_0x5d95fa);}['addSuggestionData'](_0x21f560){const {authorId:_0x5b75f8,id:_0x317c76,originalSuggestionId:_0x4c4797,attributes:_0x1af414}=_0x21f560,[_0x20ee09,_0x43efcc]=_0x21f560['type']['split'](':'),_0x191b0b=this['_suggestions']['get'](_0x317c76)||this['_createSuggestion'](_0x20ee09,_0x43efcc,_0x317c76,_0x5b75f8,_0x1af414,_0x4c4797);if(this['_addThreadToSuggestion'](_0x191b0b),this['_checkSuggestionCorrectness'](_0x191b0b,_0x20ee09,_0x43efcc||null,_0x5b75f8),_0x191b0b['createdAt']=_0x21f560['createdAt'],_0x191b0b['_isDataLoaded']=!0x0,_0x1af414&&_0x1af414['@external']){const _0x23aef0=_0x1af414['@external'],_0x4b2a62=this['_getExternalAuthor'](_0x23aef0['authorName']);_0x191b0b['authoredAt']=_0x23aef0['createdAt'],_0x191b0b['author']=_0x4b2a62,_0x191b0b['isExternal']=!0x0;}else _0x191b0b['authoredAt']=_0x21f560['createdAt'];switch(_0x21f560['data']&&(_0x191b0b['data']=_0x21f560['data']),_0x21f560['attributes']&&(_0x191b0b['attributes']=_0x21f560['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x191b0b['_saved']=!0x0),this['_suggestionState']['get'](_0x191b0b)){case'notReady':this['_suggestionState']['set'](_0x191b0b,'dataReady');break;case'markerReady':_0x191b0b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x191b0b])),this['_refreshSuggestionsChain'](new Set([_0x191b0b])),this['_suggestionState']['set'](_0x191b0b,'ready'),this['fire']('suggestionLoaded',_0x191b0b)):this['_suggestionState']['set'](_0x191b0b,'removed');}return _0x191b0b;}['acceptSuggestion'](_0x45f9bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x447f87 of _0x45f9bb['getAllAdjacentSuggestions']())_0x447f87['accept']();});});}['discardSuggestion'](_0x461453){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25526b of _0x461453['getAllAdjacentSuggestions']())_0x25526b['discard']();});});}['enableCommand'](_0x2acd5d,_0xed7daf){const _0x598510=this['editor']['commands']['get'](_0x2acd5d);if(!_0x598510)throw new _0x1d5f66('track-changes-command-not-found',this,{'commandName':_0x2acd5d});if(this['_enabledCommands']['has'](_0x598510))throw new _0x1d5f66('track-changes-enable-command-twice',this,{'commandName':_0x2acd5d});this['_enabledCommands']['add'](_0x598510),_0xed7daf&&_0x598510['on']('execute',(_0x554fb6,_0x62cfa9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x62cfa9['length']>0x0&&_0x62cfa9[_0x62cfa9['length']-0x1]&&_0x62cfa9[_0x62cfa9['length']-0x1]['forceDefaultExecution']?_0x62cfa9['pop']():(_0x554fb6['return']=_0xed7daf((..._0x570886)=>_0x598510['execute'](..._0x570886,{'forceDefaultExecution':!0x0}),..._0x62cfa9),_0x554fb6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4549c0){let _0x5633c4,_0xf967d8;const _0xbb79d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5633c4=_0x4549c0();}catch(_0x2bca63){_0xf967d8=_0x2bca63;}return _0xbb79d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf967d8&&_0x1d5f66['rethrowUnexpectedError'](_0xf967d8,this),_0x5633c4;}['markInsertion'](_0x5104a9,_0x45c91c=null,_0x38d54a={}){if(_0x5104a9['isCollapsed'])return null;const _0x416540=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38d54a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7d318c,meta:_0x219a6b}of this['_findSuggestions'](_0x5104a9,'insertion'))if(_0x219a6b['isOwn']){if(!_0x219a6b['isNextTo']){if(_0x219a6b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x7d318c,_0x38d54a))continue;return _0x7d318c;}if(zt(_0x7d318c,_0x38d54a))return _0x7d318c;this['_breakSuggestionMarker'](_0x7d318c,_0x5104a9['start'],_0x5104a9['end']);break;}if(_0x45c91c==_0x7d318c['subType']&&zt(_0x7d318c,_0x38d54a)){const _0x4fe278=_0x7d318c['getFirstRange']();return _0x4fe278['start']['isEqual'](_0x5104a9['end'])?this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x5104a9['start'],_0x4fe278['end'])):this['_setSuggestionRange'](_0x7d318c,this['_model']['createRange'](_0x4fe278['start'],_0x5104a9['end'])),_0x7d318c;}}const _0x599fb6=_0x59fa6d(),_0x29cc94=_0x416540['id'],_0x575d7e=_0x45c91c?'insertion:'+_0x45c91c:'insertion',_0x29dc56=this['_setSuggestionData']({'id':_0x599fb6,'type':_0x575d7e,'createdAt':new Date(),'authorId':_0x29cc94,'attributes':_0x38d54a});return this['_addSuggestionMarker'](_0x575d7e,_0x599fb6,_0x29cc94,_0x5104a9),_0x29dc56;}['markMultiRangeInsertion'](_0x5ad541,_0x5809ca='multi',_0x427101={}){const _0x42f14d=this['editor']['plugins']['get']('Users')['me'],_0x44388d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5809ca,'join');this['_trackingSessionId']&&(_0x427101['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dacc1 of this['getSuggestions']())if(_0x3dacc1['author']['id']==_0x42f14d['id']&&'insertion'==_0x3dacc1['type']&&_0x3dacc1['subType']==_0x5809ca&&zt(_0x3dacc1,_0x427101)&&(_0x44388d(_0x3dacc1['getRanges'](),_0x5ad541)||_0x44388d(_0x5ad541,_0x3dacc1['getRanges']()))){for(const _0x520578 of _0x5ad541)_0x3dacc1['addRange'](_0x520578);return _0x3dacc1;}for(const {suggestion:_0x4f7024,meta:_0x5b7c14}of this['_findSuggestions'](_0x5ad541,'insertion')){if(!_0x5b7c14['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b7c14['containsRangeInObject'])continue;if(!zt(_0x4f7024,_0x427101))continue;let _0xa94df0=!0x0;for(const _0x3df67f of _0x4f7024['getRanges']())for(const _0x121823 of _0x5ad541)if(!_0x3df67f['containsRange'](_0x121823)){_0xa94df0=!0x1;break;}if(_0xa94df0)return _0x4f7024;}const _0x35e934=_0x59fa6d(),_0x3d1c14=_0x42f14d['id'],_0x35a2c0='insertion:'+_0x5809ca,_0x3cbb92=this['_setSuggestionData']({'id':_0x35e934,'type':_0x35a2c0,'createdAt':new Date(),'authorId':_0x3d1c14,'attributes':_0x427101});for(const _0x2ed2e7 of _0x5ad541)this['_addSuggestionMarker'](_0x35a2c0,_0x35e934,_0x3d1c14,_0x2ed2e7,Suggestion['getMultiRangeId']());return _0x3cbb92;}['markInlineFormat'](_0x200825,_0x753d5,_0x1820b5=null,_0x4be0de={}){if(_0x1820b5=_0x1820b5||Pt(_0x753d5),_0x200825['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4be0de['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ee03a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');return this['forceDefaultExecution'](()=>_0x2ee03a([_0x200825],_0x753d5,_0x4be0de)),null;}const _0x76ede8=this['editor']['plugins']['get']('Users')['me'],_0x1ee423=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa6367a,meta:_0x6fa2a9}of this['_findSuggestions'](_0x200825,'insertion'))_0x6fa2a9['isOwn']&&!_0x6fa2a9['isInsideObject']&&_0x1ee423['push'](..._0xa6367a['getRanges']());}const _0x56193f=function(_0x17cd6d,_0x57d9d0){const _0x14521b=[];for(const _0x553680 of _0x57d9d0){const _0x41f575=_0x17cd6d['getIntersection'](_0x553680);_0x41f575&&_0x14521b['push'](_0x41f575);}return _0x14521b;}(_0x200825,_0x1ee423),_0x1a82ec=function(_0x199c5a,_0x247de3){const _0x5ba15c=[_0x199c5a];for(const _0x49569d of _0x247de3){let _0x546eb6=0x0;for(;_0x546eb6<_0x5ba15c['length'];){const _0x5c0046=_0x5ba15c[_0x546eb6]['getDifference'](_0x49569d);_0x5ba15c['splice'](_0x546eb6,0x1,..._0x5c0046),_0x546eb6+=_0x5c0046['length'];}}return _0x5ba15c;}(_0x200825,_0x1ee423);_0x56193f['length']&&this['_model']['change'](()=>{for(const _0x114afc of _0x56193f){const _0x216cb3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1820b5,'accept');this['forceDefaultExecution'](()=>_0x216cb3([_0x114afc],_0x753d5,_0x4be0de));}});for(const _0x4d9e62 of _0x1a82ec){let _0x496506=null,_0x73aac9=_0x4d9e62['start'],_0x232b67=_0x4d9e62['end'];for(const {suggestion:_0x5799de,meta:_0xdb61be}of this['_findSuggestions'](_0x4d9e62,'formatInline')){if(!_0xdb61be['isOwn'])continue;if(_0x5799de['subType']!=_0x1820b5)continue;if(!zt(_0x5799de,_0x4be0de))continue;const _0x311c5a=_0x5799de['getFirstRange']();if(_0x311c5a['containsRange'](_0x4d9e62,!0x0))return null;_0x73aac9=_0x73aac9['isBefore'](_0x311c5a['start'])?_0x73aac9:_0x311c5a['start'],_0x232b67=_0x232b67['isAfter'](_0x311c5a['end'])?_0x232b67:_0x311c5a['end'],_0x496506?_0x311c5a['start']['isBefore'](_0x496506['getFirstRange']()['start'])?(_0x496506['removeMarkers'](),_0x496506=_0x5799de):_0x5799de['removeMarkers']():_0x496506=_0x5799de;}const _0x2ad508=this['_model']['createRange'](_0x73aac9,_0x232b67);if(_0x496506)this['_setSuggestionRange'](_0x496506,_0x2ad508);else{const _0x4e462c=_0x59fa6d(),_0x43855b=_0x76ede8['id'];this['_setSuggestionData']({'id':_0x4e462c,'type':'formatInline:'+_0x1820b5,'data':_0x753d5,'createdAt':new Date(),'authorId':_0x43855b,'attributes':_0x4be0de}),this['_addSuggestionMarker']('formatInline:'+_0x1820b5,_0x4e462c,_0x43855b,_0x2ad508);}}return null;}['markBlockFormat'](_0x510c5a,_0x23333c,_0x51d547=[],_0x2dd136=null,_0x458ec2={}){_0x23333c['formatGroupId']||(_0x23333c['formatGroupId']=_0x23333c['commandName']),_0x23333c['multipleBlocks']=_0x510c5a['is']('range'),_0x2dd136=_0x2dd136||Pt(_0x23333c);const _0x33227e=_0x51d547['map'](_0x1f3105=>Vt(_0x1f3105,this['_model'])),_0x38e980=_0x510c5a['is']('range')?_0x510c5a:Vt(_0x510c5a,this['_model']);if(this['_trackingSessionId']&&(_0x458ec2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c85a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x3c85a4([_0x38e980],_0x23333c,_0x458ec2)),null;}_0x33227e['push'](_0x38e980);let _0x2827ec=!0x0;for(const _0x27a213 of _0x33227e)if(!this['_rangeIsInLocalUserInsertion'](_0x27a213)){_0x2827ec=!0x1;break;}if(_0x2827ec&&'always'!==this['_trackFormatChanges']){const _0x5aa47e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dd136,'accept');return this['forceDefaultExecution'](()=>_0x5aa47e([_0x38e980],_0x23333c,_0x458ec2)),null;}let _0x4bc514=null,_0x5cb569=_0x38e980['start'],_0x2254d3=_0x38e980['end'];for(const {suggestion:_0x4313d7,meta:_0x5d6602}of this['_findSuggestions'](_0x38e980,'formatBlock')){if(!_0x5d6602['isOwn'])continue;if(_0x5d6602['isNextTo']||_0x5d6602['containsRangeInObject']||_0x5d6602['isInsideObject'])continue;if(_0x4313d7['data']['formatGroupId']!=_0x23333c['formatGroupId'])continue;if(!zt(_0x4313d7,_0x458ec2))continue;const _0x5f3bdb=_0x4313d7['getFirstRange']();if(_0x4313d7['subType']==_0x2dd136){if(_0x5f3bdb['containsRange'](_0x38e980,!0x0))return null;_0x5cb569=_0x5cb569['isBefore'](_0x5f3bdb['start'])?_0x5cb569:_0x5f3bdb['start'],_0x2254d3=_0x2254d3['isAfter'](_0x5f3bdb['end'])?_0x2254d3:_0x5f3bdb['end'],_0x4bc514?_0x5f3bdb['start']['isBefore'](_0x4bc514['getFirstRange']()['start'])?(_0x4bc514['removeMarkers'](),_0x4bc514=_0x4313d7):_0x4313d7['removeMarkers']():_0x4bc514=_0x4313d7;}else{const _0x1c9fa0=_0x38e980['getIntersection'](_0x5f3bdb);this['_cutOutSuggestionMarker'](_0x4313d7,_0x1c9fa0);}}const _0x8d0b51=this['editor']['plugins']['get']('Users')['me'],_0xdbb85a=_0x59fa6d(),_0x168ffd=_0x8d0b51['id'];if(_0x4bc514)return this['_setSuggestionRange'](_0x4bc514,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x4bc514;{const _0x10d7c6=this['_setSuggestionData']({'id':_0xdbb85a,'type':'formatBlock:'+_0x2dd136,'data':_0x23333c,'createdAt':new Date(),'authorId':_0x168ffd,'attributes':_0x458ec2});return this['_addSuggestionMarker']('formatBlock:'+_0x2dd136,_0xdbb85a,_0x168ffd,this['_model']['createRange'](_0x5cb569,_0x2254d3)),_0x10d7c6;}}['markMultiRangeBlockFormat'](_0x5c0480,_0x5bb0c0,_0x4448f9=[],_0x1ac9c4=null,_0xe0c113={}){_0x5bb0c0['formatGroupId']||(_0x5bb0c0['formatGroupId']=_0x5bb0c0['commandName']);const _0x14a7bb=_0x5c0480[0x0];_0x5bb0c0['multipleBlocks']=_0x14a7bb['is']('range'),_0x1ac9c4=_0x1ac9c4||Pt(_0x5bb0c0);const _0x4e542e=_0x4448f9['map'](_0x263c01=>Vt(_0x263c01,this['_model'])),_0x5520f2=_0x14a7bb['is']('range')?_0x5c0480:_0x5c0480['map'](_0x165552=>Vt(_0x165552,this['_model']));if(this['_trackingSessionId']&&(_0xe0c113['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x22a742=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x22a742(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}_0x4e542e['push'](..._0x5520f2);let _0x2dc412=!0x0;for(const _0x5d55c1 of _0x4e542e)if(!this['_rangeIsInLocalUserInsertion'](_0x5d55c1)){_0x2dc412=!0x1;break;}if(_0x2dc412&&'always'!==this['_trackFormatChanges']){const _0x4d503c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'accept');return this['forceDefaultExecution'](()=>_0x4d503c(_0x5520f2,_0x5bb0c0,_0xe0c113)),null;}const _0x3b30e3=this['editor']['plugins']['get']('Users')['me'];for(const _0x21411f of this['getSuggestions']()){const _0x4f89da=_0x21411f['data'];if(_0x21411f['author']['id']!=_0x3b30e3['id'])continue;if('formatBlock'!=_0x21411f['type']||_0x4f89da['formatGroupId']!=_0x5bb0c0['formatGroupId'])continue;if(!zt(_0x21411f,_0xe0c113))continue;const _0x71f1f0=_0x21411f['subType']==_0x1ac9c4;for(let _0x5833a4=0x0;_0x5833a4<_0x5520f2['length'];_0x5833a4++){const _0x725153=_0x5520f2[_0x5833a4];for(const _0x1390ba of _0x21411f['getMarkers']()){const _0x45ba14=_0x1390ba['getRange']();if(_0x725153['isEqual'](_0x45ba14)){_0x71f1f0?(_0x5520f2['splice'](_0x5833a4,0x1),_0x5833a4--):_0x21411f['removeMarker'](_0x1390ba['name']);break;}}}}if(0x0==_0x5520f2['length'])return null;const _0x200e20=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac9c4,'join');for(const _0xee4016 of this['getSuggestions']()){const _0x3285e7=_0xee4016['data'];if(_0xee4016['author']['id']==_0x3b30e3['id']&&('formatBlock'==_0xee4016['type']&&_0x3285e7['formatGroupId']==_0x5bb0c0['formatGroupId']&&_0xee4016['subType']==_0x1ac9c4&&zt(_0xee4016,_0xe0c113)&&(_0x200e20(_0xee4016['getRanges'](),_0x5520f2)||_0x200e20(_0x5520f2,_0xee4016['getRanges']())))){for(const _0x168fde of _0x5520f2)_0xee4016['addRange'](_0x168fde);return _0xee4016;}}const _0x160d58=_0x59fa6d(),_0x2b14c7=_0x3b30e3['id'],_0x149bd1='formatBlock:'+_0x1ac9c4,_0x4e2296=this['_setSuggestionData']({'id':_0x160d58,'type':_0x149bd1,'data':_0x5bb0c0,'createdAt':new Date(),'authorId':_0x2b14c7,'attributes':_0xe0c113});for(const _0x2e7aff of _0x5520f2)this['_addSuggestionMarker'](_0x149bd1,_0x160d58,_0x2b14c7,_0x2e7aff,Suggestion['getMultiRangeId']());return _0x4e2296;}['markDeletion'](_0x22932b,_0x2d93bc=null,_0x158a44={}){if(_0x22932b['isCollapsed'])return null;const _0x43601d=this['editor']['plugins']['get']('Users')['me'],_0x3106a0=new _0x2192a8(_0x22932b['start'],_0x22932b['end']);this['_trackingSessionId']&&(_0x158a44['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x592ccd,meta:_0x46b620}of this['_findSuggestions'](_0x3106a0,'insertion'))if(_0x46b620['isOwn']&&!_0x46b620['isNextTo']){if(_0x592ccd['isMultiRange']){const _0x33fae0=_0x592ccd['getRanges']()['filter'](_0x1094e6=>'$graveyard'!=_0x1094e6['root']['rootName']);_0x33fae0['every'](_0x235203=>_0x3106a0['containsRange'](_0x235203,!0x0))&&_0x592ccd['discard']();if(_0x33fae0['some'](_0x4c7a89=>_0x4c7a89['containsRange'](_0x3106a0,!0x0))){const _0x3ffb1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d93bc,'accept');return this['forceDefaultExecution'](()=>_0x3ffb1a([_0x3106a0],null,_0x158a44)),null;}}else{const _0x52d410=_0x3106a0['getIntersection'](_0x592ccd['getFirstRange']());null!==_0x52d410&&_0x592ccd['_onDiscard']([_0x52d410],null,_0x158a44);}}if(_0x3106a0['detach'](),_0x3106a0['isCollapsed']||'$graveyard'==_0x3106a0['root']['rootName'])return null;let _0x1902c0=null,_0x84ff3d=_0x3106a0['start'],_0x5a8a7b=_0x3106a0['end'];const _0x31e0c6=this['_findSuggestions'](_0x3106a0,'deletion');for(const {suggestion:_0x5740be,meta:_0x1f3281}of _0x31e0c6){const _0x55efc9=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b);if(_0x1f3281['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f3281['containsRangeInObject']&&!_0x1f3281['isInsideObject'])){if(_0x5740be['isMultiRange']){if(!zt(_0x5740be,_0x158a44))continue;let _0x42b108=!0x0;for(const _0x31cfc3 of _0x5740be['getRanges']()){if(_0x31cfc3['containsRange'](_0x55efc9,!0x0))return _0x5740be;_0x55efc9['containsRange'](_0x31cfc3)||(_0x42b108=!0x1);}_0x42b108&&_0x5740be['discard']();}else{const _0x1d6fd7=_0x5740be['getFirstRange']();if(_0x1d6fd7['containsRange'](_0x55efc9,!0x0))return _0x5740be;if(!zt(_0x5740be,_0x158a44)){_0x55efc9['containsRange'](_0x1d6fd7)?_0x5740be['removeMarkers']():_0x1d6fd7['containsPosition'](_0x84ff3d)?_0x84ff3d=_0x1d6fd7['end']:_0x1d6fd7['containsPosition'](_0x5a8a7b)&&(_0x5a8a7b=_0x1d6fd7['start']);continue;}_0x84ff3d=_0x84ff3d['isBefore'](_0x1d6fd7['start'])?_0x84ff3d:_0x1d6fd7['start'],_0x5a8a7b=_0x5a8a7b['isAfter'](_0x1d6fd7['end'])?_0x5a8a7b:_0x1d6fd7['end'],_0x158a44=Object['assign']({},_0x5740be['attributes']),_0x1902c0?_0x1d6fd7['start']['isBefore'](_0x1902c0['getFirstRange']()['start'])?(_0x1902c0['removeMarkers'](),_0x1902c0=_0x5740be):_0x5740be['removeMarkers']():_0x1902c0=_0x5740be;}}}if(_0x1902c0)return this['_setSuggestionRange'](_0x1902c0,this['_model']['createRange'](_0x84ff3d,_0x5a8a7b)),_0x1902c0;{const _0x2dd1d1=_0x59fa6d(),_0x567af5=this['_model']['createRange'](_0x84ff3d,_0x5a8a7b),_0x3c7c49=_0x43601d['id'],_0x17c3a8=_0x2d93bc?'deletion:'+_0x2d93bc:'deletion',_0x37d5f4=this['_setSuggestionData']({'id':_0x2dd1d1,'type':_0x17c3a8,'createdAt':new Date(),'authorId':_0x3c7c49,'attributes':_0x158a44});return this['_addSuggestionMarker'](_0x17c3a8,_0x2dd1d1,_0x3c7c49,_0x567af5),_0x37d5f4;}}['markMultiRangeDeletion'](_0x21c31e,_0x2892a1='multi',_0x54d726={}){const _0x3023c1=this['editor']['plugins']['get']('Users')['me'],_0x612c3f=_0x21c31e['map'](_0x45c1b4=>new _0x2192a8(_0x45c1b4['start'],_0x45c1b4['end'])),_0xac51de=new Set();this['_trackingSessionId']&&(_0x54d726['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42d3f0,meta:_0x3748cf}of this['_findSuggestions'](_0x612c3f,'insertion'))_0x3748cf['isOwn']&&!_0x3748cf['isNextTo']&&_0xac51de['add'](_0x42d3f0);for(const _0x4d1195 of _0xac51de)if(_0x4d1195['isMultiRange']){const _0x2d5d49=_0x4d1195['getRanges']();(!_0x4d1195['attributes']||!_0x4d1195['attributes']['skipNestingCheck'])&&(_0x2d5d49['every'](_0x5974be=>_0x612c3f['some'](_0x587950=>_0x587950['containsRange'](_0x5974be,!0x0)))&&_0x4d1195['discard']());if(_0x612c3f['every'](_0x86017b=>_0x2d5d49['some'](_0x58a119=>_0x58a119['containsRange'](_0x86017b,!0x0)))){const _0x54bd63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x54bd63(_0x21c31e,null,_0x54d726)),null;}}else{const _0x31e13a=_0x4d1195['getFirstRange']();_0x612c3f['some'](_0x24e772=>_0x24e772['containsRange'](_0x31e13a,!0x0))&&_0x4d1195['discard']();if(_0x612c3f['every'](_0x3e6d1d=>_0x31e13a['containsRange'](_0x3e6d1d,!0x0))){const _0x458538=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'accept');return this['forceDefaultExecution'](()=>_0x458538(_0x612c3f,null,_0x54d726)),null;}}const _0x49d3ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2892a1,'join');let _0x3f6cb6=null;for(const _0x3d3457 of this['getSuggestions']())if(_0x3d3457['author']['id']==_0x3023c1['id']&&_0x3d3457['isInContent']&&'deletion'==_0x3d3457['type']&&_0x3d3457['subType']==_0x2892a1&&zt(_0x3d3457,_0x54d726)&&(_0x49d3ab(_0x3d3457['getRanges'](),_0x612c3f)||_0x49d3ab(_0x612c3f,_0x3d3457['getRanges']()))){if(_0x3f6cb6){if(_0x3d3457['commentThread']&&_0x3d3457['commentThread']['length'])continue;for(const _0x1aeb87 of _0x3d3457['getRanges']())_0x3f6cb6['isIntersectingWithRange'](_0x1aeb87)||_0x3f6cb6['addRange'](_0x1aeb87);_0x3d3457['removeMarkers']();}else{_0x3f6cb6=_0x3d3457;for(const _0x3ea474 of _0x612c3f)_0x3d3457['isIntersectingWithRange'](_0x3ea474)||_0x3d3457['addRange'](_0x3ea474);}}if(_0x3f6cb6)return _0x3f6cb6;_0xac51de['clear']();for(const {suggestion:_0x20e25f,meta:_0x360d7a}of this['_findSuggestions'](_0x612c3f,'deletion'))_0x360d7a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x360d7a['containsRangeInObject']&&!_0x360d7a['isInsideObject'])&&zt(_0x20e25f,_0x54d726)&&_0xac51de['add'](_0x20e25f);for(const _0x3baaa0 of _0xac51de){const _0x47cce6=_0x3baaa0['getRanges']();if(!_0x54d726||!_0x54d726['skipNestingCheck']){if(_0x612c3f['every'](_0x20f22f=>_0x47cce6['some'](_0x425063=>_0x425063['containsRange'](_0x20f22f,!0x0))))return _0x3baaa0;}(!_0x3baaa0['attributes']||!_0x3baaa0['attributes']['skipNestingCheck'])&&(_0x47cce6['every'](_0x1557ea=>_0x612c3f['some'](_0x3d659f=>_0x3d659f['containsRange'](_0x1557ea,!0x0)))&&_0x3baaa0['discard']());}const _0x41f1d9=_0x59fa6d(),_0x2702a1=_0x3023c1['id'],_0x18ff28='deletion:'+_0x2892a1,_0x18058d=this['_setSuggestionData']({'id':_0x41f1d9,'type':_0x18ff28,'createdAt':new Date(),'authorId':_0x2702a1,'attributes':_0x54d726});for(const _0x36c1e0 of _0x612c3f)_0x36c1e0['detach'](),_0x36c1e0['isCollapsed']||'$graveyard'==_0x36c1e0['root']['rootName']||this['_addSuggestionMarker'](_0x18ff28,_0x41f1d9,_0x2702a1,_0x36c1e0,Suggestion['getMultiRangeId']());return _0x18058d;}['markAttributeChange'](_0x44c65c,_0x3569da,_0x12b9f6,_0x427a0a,_0x1836bc){if(_0x44c65c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ae15c=this['editor']['plugins']['get']('Users')['me']['id'],_0x17a2b7=Array['from'](this['_suggestions']['values']())['filter'](_0xe161b5=>'attribute'==_0xe161b5['type']&&_0xe161b5['data']['key']==_0x3569da&&_0xe161b5['isIntersectingWithRange'](_0x44c65c));if(this['_trackingSessionId']&&(_0x1836bc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x37af2c=this['_findSuggestions'](_0x44c65c,'insertion')['filter'](({meta:_0x19a855})=>_0x19a855['isOwn']&&!_0x19a855['isInsideObject']&&!_0x19a855['isNextTo'])['map'](({suggestion:_0x115b31})=>_0x115b31);_0x17a2b7['unshift'](..._0x37af2c);}const _0x26d583=new Map([[_0x44c65c,_0x12b9f6]]);for(const _0x330b65 of _0x17a2b7){const _0x45a88c='attribute'==_0x330b65['type']?_0x330b65['data']['oldValue']:void 0x0,_0x58dfba=_0x330b65['getFirstRange'](),_0x522d92=Array['from'](_0x26d583['keys']())['find'](_0x164bde=>_0x164bde['isIntersecting'](_0x58dfba));if(!_0x522d92)continue;const _0x3f7bde=_0x522d92['getDifference'](_0x58dfba);this['_suggestionsConversion']['isBlockAttribute'](_0x3569da)&&'insertion'==_0x330b65['type']&&0x0!=_0x3f7bde['length']||(_0x26d583['delete'](_0x522d92),_0x3f7bde['forEach'](_0x15f435=>{_0x26d583['set'](_0x15f435,_0x12b9f6);}),'insertion'!=_0x330b65['type']&&_0x45a88c!=_0x427a0a&&_0x26d583['set'](_0x522d92['getIntersection'](_0x58dfba),_0x45a88c));}const _0x31c66a=[];for(const [_0x1389e8,_0x358389]of _0x26d583){const _0x31ce54=_0x59fa6d(),_0x1d569f={'key':_0x3569da,'oldValue':_0x358389,'newValue':_0x427a0a};_0x3569da['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':_0x3569da});const _0xaedf69=('attribute:'+(_0x3569da+'|'+Pt({'newValue':_0x427a0a})))['substring'](0x0,0x3c),_0xb95c68=this['_setSuggestionData']({'id':_0x31ce54,'type':_0xaedf69,'data':_0x1d569f,'createdAt':new Date(),'authorId':_0x2ae15c,'attributes':_0x1836bc});_0x31c66a['push'](_0xb95c68),this['_addSuggestionMarker'](_0xaedf69,_0x31ce54,_0x2ae15c,_0x1389e8);}return _0x31c66a;}['enableDefaultAttributesIntegration'](_0x572343){this['enableCommand'](_0x572343,(_0x3608a3,..._0x241fa3)=>{this['recordAttributeChanges'](()=>{_0x3608a3(..._0x241fa3);});});}['startTrackingSession'](_0x5b45cc){return this['_trackingSessionId']=void 0x0!==_0x5b45cc?_0x5b45cc:_0x59fa6d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x29fa2d){return'attribute'==_0x29fa2d['type']?Xt(_0x29fa2d['subType']):null;}['_applyOperationsAsSuggestions'](_0x2a33c4){if(0x0==_0x2a33c4['length'])return;const _0x250072=this['editor'],_0x398092=_0x250072['plugins']['get'](_0x1d267d),_0x385831=[];_0x250072['model']['change'](_0x5c9746=>{for(let _0x287cb5=0x0;_0x287cb5<_0x2a33c4['length'];_0x287cb5++){const _0x457df4=_0x2a33c4[_0x287cb5];if(_0x457df4['baseVersion']=_0x250072['model']['document']['version'],_0x457df4['isDocumentOperation']=!0x0,_0x398092['isMarkedRemoveOperation'](_0x457df4)){const _0x19640b=_0x18e42e(_0x457df4['newRange'],_0x250072['model']);_0x385831['unshift'](_0x2192a8['fromRange'](_0x19640b));}else switch(_0x457df4['type']){case'rename':{const _0x77edb3=_0x457df4['oldName'],_0x10522d=_0x457df4['newName'];if(_0x77edb3==_0x10522d)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x3d4439='$elementName',_0x508e60=_0x457df4['position'],_0x55790e=_0x250072['model']['createRange'](_0x508e60,_0x250072['model']['createPositionAt'](_0x508e60['nodeAfter'],'end'));this['markAttributeChange'](_0x55790e,_0x3d4439,_0x77edb3,_0x10522d,{'groupId':_0x59fa6d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x12286a=_0x457df4['oldValue'],_0x2a3585=_0x457df4['newValue'];if(_0x12286a==_0x2a3585)break;_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x508680=_0x457df4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x508680))break;const _0x49b092=_0x18e42e(_0x457df4['range'],_0x250072['model']);this['markAttributeChange'](_0x49b092,_0x508680,_0x12286a,_0x2a3585,{'groupId':_0x59fa6d()});break;}case'insert':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);if(_0x2a33c4[_0x287cb5+0x1]&&'move'==_0x2a33c4[_0x287cb5+0x1]['type'])break;const _0x3900c4=_0x457df4['position'],_0x33b166=_0x457df4['howMany'],_0x46da0a=_0x18e42e(_0x250072['model']['createRange'](_0x3900c4,_0x3900c4['getShiftedBy'](_0x33b166)),_0x250072['model']);this['markInsertion'](_0x46da0a);break;}case'split':{_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);const _0x229377=_0x457df4['splitPosition'],_0x4f9d7e=_0x457df4['moveTargetPosition'];this['markInsertion'](_0x250072['model']['createRange'](_0x229377,_0x4f9d7e));break;}case'move':case'remove':_0x5c9746['batch']['addOperation'](_0x457df4),_0x250072['model']['applyOperation'](_0x457df4);}}for(const _0x368ab4 of _0x385831)_0x368ab4['detach'](),this['markDeletion'](_0x368ab4);});}['_setSuggestionRange'](_0x19fcf6,_0x31edc8){const _0x198779=_0x19fcf6['getFirstMarker']();this['_model']['change'](_0x3d7bb5=>{_0x3d7bb5['updateMarker'](_0x198779,{'range':_0x31edc8});});}['_addThreadToSuggestion'](_0x34c2b7){const _0x3a9a82=_0x34c2b7['id'],_0x313a5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a9a82)||this['_commentsRepository']['addCommentThread']({'channelId':_0x313a5b,'threadId':_0x3a9a82,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x473d52=this['_commentsRepository']['getCommentThread'](_0x3a9a82);_0x473d52['unbind']('isRemovable'),_0x473d52['isRemovable']=!0x1,_0x34c2b7['commentThread']=_0x473d52;}['_checkSuggestionCorrectness'](_0x25ea90,_0x4e4403,_0xd58eeb,_0xf10a47){if(_0x25ea90['type']!=_0x4e4403||_0x25ea90['subType']!=_0xd58eeb||_0x25ea90['creator']['id']!=_0xf10a47)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d5f66('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e2832,_0x281aa0){const _0x4e67d8=_0x4e2832['getFirstRange']();if(_0x281aa0['isEqual'](_0x4e67d8))_0x4e2832['removeMarkers']();else{if(_0x4e67d8['containsRange'](_0x281aa0)){const _0x1f71ed=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x1f71ed));const _0x3a378=_0x59fa6d(),_0x4022cd=_0x4e2832['creator']['id'],_0xa1955e=_0x4e2832['type']+':'+_0x4e2832['subType'];this['_setSuggestionData']({'id':_0x3a378,'type':_0xa1955e,'createdAt':new Date(),'authorId':_0x4022cd,'data':_0x4e2832['data'],'attributes':_0x4e2832['attributes']});const _0x3ceb3b=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after'),_0x3ccf0b=this['_model']['createRange'](_0x3ceb3b,_0x4e67d8['end']);this['_addSuggestionMarker'](_0xa1955e,_0x3a378,_0x4022cd,_0x3ccf0b);}else{if(_0x4e67d8['containsPosition'](_0x281aa0['start'])){const _0x255050=this['_model']['createPositionAt'](_0x281aa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x4e67d8['start'],_0x255050));}else{const _0x14972f=this['_model']['createPositionAt'](_0x281aa0['end']['parent'],'after');this['_setSuggestionRange'](_0x4e2832,this['_model']['createRange'](_0x14972f,_0x4e67d8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35e8b0){for(const {suggestion:_0x506d2d,meta:_0x2da1dd}of this['_findSuggestions'](_0x35e8b0,'insertion')){if(!_0x2da1dd['isOwn'])continue;const _0x513178=_0x506d2d['getRanges']();for(const _0xd513fd of _0x513178)if(!_0x35e8b0['getDifference'](_0xd513fd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c3c53){return this['editor']['plugins']['get']('Users')['getUser'](_0x1c3c53);}['_getExternalAuthor'](_0x559263){const _0x4b16dc=this['editor']['plugins']['get']('Users'),_0x5a077e=_0x56801b('external:'+_0x559263),_0x31525b=_0x4b16dc['getUser'](_0x5a077e);return _0x31525b||_0x4b16dc['addUser']({'id':_0x5a077e,'name':_0x559263});}['_createSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x224628,_0x774bd,_0x2d27d5){const _0x229186=this['_getAuthorFromId'](_0x224628);if(!_0x229186)throw new _0x1d5f66('track-changes-user-not-found',this,{'authorId':_0x224628,'suggestionId':_0x31f99f});const _0x1d7f47=this['_suggestionFactory']['buildSuggestion'](_0x564be4,_0x5734a2,_0x31f99f,_0x229186,_0x774bd,_0x1b7745=>{this['_updateSuggestionData'](_0x31f99f,{'attributes':_0x1b7745});const _0x5310cd=this['getSuggestion'](_0x31f99f);this['_joinWithAdjacentSuggestions'](new Set([_0x5310cd])),this['_refreshSuggestionsChain'](new Set([_0x5310cd]));},_0x2d27d5);return this['listenTo'](_0x1d7f47,'accept',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d7f47,'discard',()=>{this['_updateSuggestionData'](_0x31f99f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31f99f,_0x1d7f47),this['_suggestionState']['set'](_0x1d7f47,'notReady'),_0x1d7f47;}['_breakSuggestionMarker'](_0xa5e6f6,_0x3c9a57,_0x2b7a57){const _0x157501=_0xa5e6f6['getFirstRange'](),_0x57e742=_0x157501['start'],_0x3e6265=_0x157501['end'];this['_setSuggestionRange'](_0xa5e6f6,this['_model']['createRange'](_0x57e742,_0x3c9a57));const _0x1a688d=_0x59fa6d(),_0x56db97=_0xa5e6f6['creator']['id'],_0xded813=_0xa5e6f6['type']+(_0xa5e6f6['subType']?':'+_0xa5e6f6['subType']:'');this['_setSuggestionData']({'id':_0x1a688d,'type':_0xded813,'createdAt':new Date(),'authorId':_0x56db97,'originalSuggestionId':_0xa5e6f6['_originalSuggestionId']||_0xa5e6f6['id'],'attributes':_0xa5e6f6['attributes'],'data':_0xa5e6f6['data']});const _0x52f47f=this['_getAttributeKey'](_0xa5e6f6);('formatBlock'==_0xa5e6f6['type']||_0x52f47f&&this['_suggestionsConversion']['isBlockAttribute'](_0x52f47f))&&(_0x2b7a57=this['_model']['createPositionBefore'](_0x2b7a57['parent'])),this['_addSuggestionMarker'](_0xded813,_0x1a688d,_0x56db97,this['_model']['createRange'](_0x2b7a57,_0x3e6265));}['_findSuggestions'](_0x9ccf57,_0x518c9e=null){const _0x1108a1=[],_0x4eafca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9ccf57)||(_0x9ccf57=[_0x9ccf57]);for(const _0x2f9aa7 of this['getSuggestions']()){if(!_0x2f9aa7['isInContent'])continue;if(_0x518c9e&&_0x2f9aa7['type']!=_0x518c9e)continue;let _0x18c987=!0x1;for(const _0x578910 of _0x2f9aa7['getRanges']()){for(const _0x19a344 of _0x9ccf57){const _0x28aaae=_0x19a344['start']['isEqual'](_0x578910['end'])||_0x19a344['end']['isEqual'](_0x578910['start']);if(_0x28aaae||_0x19a344['getIntersection'](_0x578910)){const _0x199e3d=_0x19a344['containsRange'](_0x578910)&&Dt(this['_model']['schema'],_0x578910['start'],_0x19a344),_0x42cfc8=_0x578910['containsRange'](_0x19a344)&&Dt(this['_model']['schema'],_0x19a344['start'],_0x578910);_0x1108a1['push']({'suggestion':_0x2f9aa7,'meta':{'isOwn':_0x4eafca==_0x2f9aa7['author'],'isNextTo':_0x28aaae,'isInsideObject':_0x199e3d,'containsRangeInObject':_0x42cfc8}}),_0x18c987=!0x0;break;}}if(_0x18c987)break;}}return _0x1108a1;}['_addSuggestionMarker'](_0x5b6da0,_0x39076b,_0x54a6a6,_0x1602c1,_0x1403be){this['_model']['change'](_0x5ecf48=>{let _0x194e70='suggestion:'+_0x5b6da0+':'+_0x39076b+':'+_0x54a6a6;_0x1403be&&(_0x194e70=_0x194e70+':'+_0x1403be),_0x5ecf48['addMarker'](_0x194e70,{'range':_0x1602c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ba997){const _0x1fce34=_0x3ba997['previous'],_0x171751=_0x3ba997['next'];_0x3ba997['previous']=null,_0x3ba997['next']=null,null!=_0x1fce34&&_0x1fce34['next']==_0x3ba997&&(_0x1fce34['next']=_0x171751),null!=_0x171751&&_0x171751['previous']==_0x3ba997&&(_0x171751['previous']=_0x1fce34),'ready'==this['_suggestionState']['get'](_0x3ba997)&&(this['_suggestionState']['set'](_0x3ba997,'removed'),this['fire']('suggestionUnloaded',_0x3ba997,_0x1fce34,_0x171751));}['_setSuggestionData'](_0x9846f4){const _0x1fc307=_0x9846f4['id'],_0x349236=this['addSuggestionData'](_0x9846f4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54a6ba=this['editor']['plugins']['get']('PendingActions'),_0x3060e4=_0x349236['hasComments'],_0x287a78=_0x349236['subType']?_0x349236['type']+':'+_0x349236['subType']:_0x349236['type'],_0x46e51d=this['editor']['locale'],_0x10561c=_0x54a6ba['add'](Tt(_0x46e51d,'PENDING_ACTION_SUGGESTION')),_0x1fcd2f={'id':_0x1fc307,'type':_0x287a78,'hasComments':_0x3060e4,'data':_0x9846f4['data']||null,'originalSuggestionId':_0x9846f4['originalSuggestionId']||null,'attributes':_0x349236['attributes']};this['_adapter']['addSuggestion'](_0x1fcd2f)['then'](_0x5ad569=>{_0x349236['_saved']=!0x0,_0x54a6ba['remove'](_0x10561c),_0x5ad569&&_0x5ad569['createdAt']&&(this['_suggestions']['get'](_0x1fc307)['createdAt']=_0x5ad569['createdAt']);})['catch'](_0x3f6a55=>{throw _0x29d360('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x349236['discard']();}),_0x349236['stopListening'](),this['_suggestions']['delete'](_0x349236['id']),this['_suggestionState']['delete'](_0x349236),_0x3f6a55;});}return _0x349236;}['_updateSuggestionData'](_0x35d5b4,_0x3af9e8){const _0x342f7e=this['editor']['plugins']['get']('PendingActions'),_0x37722b=this['getSuggestion'](_0x35d5b4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37722b['_saved']){const _0x26cfa3=_0x342f7e['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x35d5b4,_0x3af9e8)['then'](()=>{_0x342f7e['remove'](_0x26cfa3);});}else _0x37722b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x35d5b4,_0x3af9e8);});}}['_getSuggestionData'](_0x5b24f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d5f66('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b24f9);}['_handleNewSuggestionMarker'](_0x24a760){const {id:_0x22d2b3,type:_0x5ca5e9,subType:_0x238ab4,authorId:_0x583574}=_0x2522cc(_0x24a760),_0x116984=this['_suggestions']['get'](_0x22d2b3)||this['_createSuggestion'](_0x5ca5e9,_0x238ab4,_0x22d2b3,_0x583574,{});switch(this['_checkSuggestionCorrectness'](_0x116984,_0x5ca5e9,_0x238ab4,_0x583574),this['_suggestionState']['get'](_0x116984)){case'notReady':this['_getSuggestionData'](_0x22d2b3)['then'](_0x43daf6=>{let _0x4d8a83=Promise['resolve']();_0x43daf6['hasComments']&&(_0x4d8a83=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22d2b3})),_0x4d8a83['then'](()=>{this['addSuggestionData'](_0x43daf6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x116984,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22d2b3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x116984,'ready'),this['fire']('suggestionLoaded',_0x116984);break;case'ready':this['fire']('suggestionChanged',_0x116984);}return _0x116984['addMarkerName'](_0x24a760),_0x116984;}['_refreshSuggestionsChain'](_0x575865){const _0x44c94b=Array['from'](_0x575865),_0x20661e=_0x44c94b['filter'](_0x2bb1ed=>'attribute'==_0x2bb1ed['type']);this['_refreshAttributeSuggestionsChain'](_0x20661e);const _0x519507=_0x44c94b['filter'](_0x22d388=>!_0x22d388['isMultiRange']&&'attribute'!=_0x22d388['type']),_0x2a53d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ef974=>!_0x3ef974['isMultiRange']&&'attribute'!=_0x3ef974['type']),_0x130138=_0x2a53d2['filter'](_0x2fbc33=>!_0x575865['has'](_0x2fbc33)),_0x1d0c3e=new Map(_0x2a53d2['map'](_0x161b96=>[_0x161b96,this['_suggestionFactory']['getSuggestionCallback'](_0x161b96['type'],_0x161b96['subType'],'chain')])),_0x2bdffe=new Map(_0x2a53d2['map'](_0xa8bd63=>[_0xa8bd63,_0xa8bd63['getFirstRange']()])),_0x5940f9=new Set(),_0x4ab58e=new Set();for(let _0x566406=0x0;_0x566406<_0x519507['length'];_0x566406++)_0x1f0537(_0x519507[_0x566406],_0x519507,_0x566406+0x1);for(let _0x537db5=0x0;_0x537db5<_0x519507['length'];_0x537db5++)_0x1f0537(_0x519507[_0x537db5],_0x130138,0x0);const _0xa4b8da=new Set();for(let _0x3c2e16=0x0;_0x3c2e16<_0x519507['length'];_0x3c2e16++){const _0x30c372=_0x519507[_0x3c2e16];!_0x4ab58e['has'](_0x30c372)&&_0x30c372['previous']&&(_0xa4b8da['add'](_0x30c372['previous']),_0x30c372['previous']['next']===_0x30c372&&(_0x30c372['previous']['next']=null),_0x30c372['previous']=null),!_0x5940f9['has'](_0x30c372)&&_0x30c372['next']&&(_0xa4b8da['add'](_0x30c372['next']),_0x30c372['next']['previous']===_0x30c372&&(_0x30c372['next']['previous']=null),_0x30c372['next']=null);}function _0x1f0537(_0x3ad618,_0x3546e3,_0x41067e){for(let _0x7980c7=_0x41067e;_0x7980c7<_0x3546e3['length'];_0x7980c7++){const _0x414f6f=_0x149e28(_0x3ad618,_0x3546e3[_0x7980c7]);_0x414f6f&&(_0x414f6f[0x0]['next']=_0x414f6f[0x1],_0x414f6f[0x1]['previous']=_0x414f6f[0x0],_0x5940f9['add'](_0x414f6f[0x0]),_0x4ab58e['add'](_0x414f6f[0x1]));}}function _0x149e28(_0x28ef48,_0x135518){if(_0x28ef48['author']['id']!==_0x135518['author']['id'])return null;const _0x54bf54=_0x1d0c3e['get'](_0x28ef48)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518));if(!_0x54bf54)return null;return _0x1d0c3e['get'](_0x135518)(_0x28ef48,_0x135518,_0x2bdffe['get'](_0x28ef48),_0x2bdffe['get'](_0x135518))?_0x54bf54[0x1]['commentThread']&&_0x54bf54[0x1]['commentThread']['length']?null:_0x54bf54:null;}_0xa4b8da['size']&&this['_refreshSuggestionsChain'](_0xa4b8da);}['_refreshAttributeSuggestionsChain'](_0x3082b8){if(0x0==_0x3082b8['length'])return;const _0x361b46=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c5ee6=>'attribute'==_0x4c5ee6['type']&&_0x4c5ee6['_isDataLoaded']),_0x13a3a5=[],_0x15a27f=new Map();for(const _0x4ca728 of _0x361b46){const _0xf1d351=_0x56801b(_0x4ca728['attributes']);_0x15a27f['has'](_0xf1d351)||(_0x15a27f['set'](_0xf1d351,_0x13a3a5['length']),_0x13a3a5['push']([]));const _0x5e2290=_0x15a27f['get'](_0xf1d351);_0x13a3a5[_0x5e2290]['push'](_0x4ca728);}!(function(){_0x13a3a5['sort']((_0x5cb9de,_0x7d5f1f)=>{const _0x314a88=_0x5cb9de[0x0]['createdAt'],_0x315e6e=_0x7d5f1f[0x0]['createdAt'];return _0x314a88==_0x315e6e?_0x5cb9de[0x0]['attributes']['groupId']<_0x7d5f1f[0x0]['attributes']['groupId']?-0x1:0x1:_0x314a88<_0x315e6e?-0x1:0x1;});for(const _0xb292c4 of _0x13a3a5)_0xb292c4['sort']((_0x229822,_0x4c66f4)=>_0x229822['id']<_0x4c66f4['id']?-0x1:0x1);}());for(let _0x1689c5=0x0;_0x1689c5<_0x13a3a5['length'];_0x1689c5++){if(0x0==_0x13a3a5[_0x1689c5]['length'])continue;const _0x350b86=[];for(let _0x1be541=_0x1689c5+0x1;_0x1be541<_0x13a3a5['length'];_0x1be541++)0x0!=_0x13a3a5[_0x1be541]['length']&&_0x2b3b5c(_0x13a3a5[_0x1689c5],_0x13a3a5[_0x1be541])&&_0x350b86['push'](_0x1be541);for(const _0x30d00b of _0x350b86)_0x13a3a5[_0x1689c5]=_0x13a3a5[_0x1689c5]['concat'](_0x13a3a5[_0x30d00b]),_0x13a3a5[_0x30d00b]=[];}for(const _0x127e95 of _0x13a3a5)for(let _0x23cdfe=0x0;_0x23cdfe<_0x127e95['length'];_0x23cdfe++){const _0x5bf391=_0x127e95[_0x23cdfe+0x1]||null;_0x127e95[_0x23cdfe]['next']!==_0x5bf391&&(_0x127e95[_0x23cdfe]['next']=_0x5bf391);}for(const _0x111162 of _0x13a3a5)for(let _0x1c6efc=0x0;_0x1c6efc<_0x111162['length'];_0x1c6efc++){const _0x2708ff=_0x111162[_0x1c6efc-0x1]||null;_0x111162[_0x1c6efc]['previous']!==_0x2708ff&&(_0x111162[_0x1c6efc]['previous']=_0x2708ff);}function _0x2b3b5c(_0x2f0429,_0x3bcbfd){if(_0x2f0429[0x0]['attributes']['groupId']!==_0x3bcbfd[0x0]['attributes']['groupId']&&_0x2f0429[0x0]['author']!==_0x3bcbfd[0x0]['author'])return!0x1;if(!function(_0x17c1cd,_0x3a1fb3){if(!_0x17c1cd['hasComments']&&!_0x3a1fb3['hasComments'])return!0x0;if(_0x17c1cd['hasComments']&&_0x3a1fb3['hasComments'])return!0x1;if(_0x17c1cd['hasComments']&&_0x3a1fb3['createdAt']<_0x17c1cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a1fb3['hasComments']&&_0x17c1cd['createdAt']<_0x3a1fb3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2f0429[0x0],_0x3bcbfd[0x0]))return!0x1;const _0x5a8f5b=ot(_0x2f0429[0x0]['attributes'],['groupId','trackingSessionId']),_0x45648f=ot(_0x3bcbfd[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5a8f5b,_0x45648f))return!0x1;if(_0x2f0429[0x0]['attributes']['groupId']==_0x3bcbfd[0x0]['attributes']['groupId'])return!0x0;if(_0x2f0429[0x0]['attributes']['trackingSessionId']!==_0x3bcbfd[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2f0429['every'](_0x21a95b=>_0x3bcbfd['some'](_0x81c424=>_0x21a95b['getFirstRange']()['isEqual'](_0x81c424['getFirstRange']())))&&_0x3bcbfd['every'](_0x16ab30=>_0x2f0429['some'](_0x4e1243=>_0x16ab30['getFirstRange']()['isEqual'](_0x4e1243['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f5a04){const _0x222ffb=Array['from'](_0x3f5a04),_0x24ff35=this['getSuggestions']({'skipNotAttached':!0x0}),_0x454306=_0x24ff35['filter'](_0xbe2512=>!_0x3f5a04['has'](_0xbe2512)),_0x9ae7c9=new Map(_0x222ffb['map'](_0x4e032b=>[_0x4e032b,this['_suggestionFactory']['getSuggestionCallback'](_0x4e032b['type'],_0x4e032b['subType'],'join')])),_0x4a295e=new Map(_0x24ff35['map'](_0x353982=>[_0x353982,_0x353982['getRanges']()]));for(let _0x2544a3=0x0;_0x2544a3<_0x222ffb['length'];_0x2544a3++){if(_0x47fc67(this,_0x222ffb[_0x2544a3],_0x222ffb,_0x2544a3+0x1))return!0x0;}for(let _0x60a000=0x0;_0x60a000<_0x222ffb['length'];_0x60a000++){if(_0x47fc67(this,_0x222ffb[_0x60a000],_0x454306,0x0))return!0x0;}return!0x1;function _0x47fc67(_0x1faa98,_0x2e6fda,_0x4c9e09,_0x557ad6){for(let _0x1d6ffe=_0x557ad6;_0x1d6ffe<_0x4c9e09['length'];_0x1d6ffe++){const _0xc36c00=_0x4c9e09[_0x1d6ffe];if(_0xc36c00['type']!==_0x2e6fda['type']||_0xc36c00['author']['id']!==_0x2e6fda['author']['id']||_0xc36c00['subType']!==_0x2e6fda['subType'])continue;if(!jt(_0x2e6fda,_0xc36c00))continue;if('attribute'==_0x2e6fda['type']&&_0x2e6fda['data']['oldValue']!=_0xc36c00['data']['oldValue'])continue;if('attribute'==_0x2e6fda['type']&&_0x1faa98['_suggestionsConversion']['isBlockAttribute'](_0x2e6fda['data']['key']))continue;if('formatBlock'==_0x2e6fda['type']){const _0x5706ef=_0x1faa98['editor']['model'],_0x282d1d=_0x2e6fda['getContainedElement']();if(_0x282d1d&&(_0x5706ef['schema']['isObject'](_0x282d1d)||_0x5706ef['schema']['isLimit'](_0x282d1d)))continue;}const _0x213cd7=_0x9ae7c9['get'](_0x2e6fda),_0x5a7259=_0x4a295e['get'](_0x2e6fda),_0x5d1a9d=_0x4a295e['get'](_0xc36c00),_0x1225da=_0x2e6fda['commentThread']&&_0x2e6fda['commentThread']['length'],_0x35128f=_0xc36c00['commentThread']&&_0xc36c00['commentThread']['length'];if(!_0x1225da&&_0x213cd7(_0x5d1a9d,_0x5a7259))return _0x1faa98['_joinSuggestions'](_0xc36c00,_0x2e6fda),_0x4a295e['delete'](_0x2e6fda),!0x0;if(!_0x35128f&&_0x213cd7(_0x5a7259,_0x5d1a9d))return _0x1faa98['_joinSuggestions'](_0x2e6fda,_0xc36c00),_0x4a295e['delete'](_0xc36c00),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4a0f21,_0x5f24db){if(_0x4a0f21['isMultiRange']){for(const _0x5e2099 of _0x5f24db['getRanges']())_0x4a0f21['addRange'](_0x5e2099);}else{const _0x11f785=_0x5f24db['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4a0f21,this['_model']['createRange'](_0x4a0f21['getFirstRange']()['start'],_0x11f785));}_0x5f24db['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd903,_0x3ade69,_0x48ae3c){const _0x87365f=_0x2cd903['startsWith']('format')||_0x2cd903['startsWith']('attribute')?'FORMATTING':_0x2cd903['toUpperCase']();return Tt(this['editor']['locale'],_0x3ade69+'_'+_0x87365f+'_SUGGESTION_ANNOUNCEMENT',_0x48ae3c);}['_initAriaMarkerChangeAnnouncements'](){const _0x45c4dd=this['editor'];if(!_0x45c4dd['ui'])return;const {ariaLiveAnnouncer:_0xa5ec40}=_0x45c4dd['ui'];_0xf39aab(this['_model'],({left:_0x1e10b0,entered:_0x3ff869})=>{for(const _0x256a4f of _0x1e10b0){const {group:_0x26ced9,type:_0xa30f13}=_0x2522cc(_0x256a4f['name']);if('suggestion'===_0x26ced9){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0xa30f13,'LEAVE'));break;}}for(const _0x583171 of _0x3ff869){const {group:_0x242d97,type:_0x49893a}=_0x2522cc(_0x583171['name']);if('suggestion'===_0x242d97){_0xa5ec40['announce'](this['_getMarkerAnnouncementText'](_0x49893a,'ENTER',_0x43c0a4(_0x2f9019)));break;}}});}['_processAttributeChanges'](_0x36c5dd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x381366=this['editor'],_0x33b00e=_0x381366['model']['document']['differ']['getChanges']();if(0x0==_0x33b00e['length'])return!0x1;const _0x56bc25=[],_0x43354f=_0x33b00e['filter'](_0x186cde=>'attribute'==_0x186cde['type']),_0x291225=_0x33b00e['filter'](_0x6fd6d8=>'insert'==_0x6fd6d8['type']&&'$text'!=_0x6fd6d8['name']),_0xc6418f=_0x33b00e['filter'](_0x4c5412=>'remove'==_0x4c5412['type']&&'$text'!=_0x4c5412['name']);for(const _0x3b8ca6 of _0x43354f)_0x56bc25['push']({'key':_0x3b8ca6['attributeKey'],'newValue':_0x3b8ca6['attributeNewValue'],'oldValue':_0x3b8ca6['attributeOldValue'],'range':$t(_0x3b8ca6['range'],_0x381366['model'])});for(const _0x51fb2a of _0x291225){const _0x48ba1d=_0xc6418f['find'](_0x587db9=>_0x587db9['position']['isEqual'](_0x51fb2a['position']));_0x48ba1d&&_0x56bc25['push']({'key':Ft,'newValue':_0x51fb2a['name'],'oldValue':_0x48ba1d['name'],'range':_0x381366['model']['createRangeOn'](_0x51fb2a['position']['nodeAfter'])});}return 0x0!=_0x56bc25['length']&&this['_reduceExistingSuggestions'](_0x36c5dd,_0x56bc25);}['_processAttributeSuggestions'](_0x2f71de){let _0x1cd57b=!0x1;const _0x3ed20c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49c66e=>_0x49c66e['data']['newRange']&&_0x49c66e['name']['startsWith']('suggestion:attribute:'));for(const _0x19feb1 of _0x3ed20c){const {subType:_0xb32fa3,id:_0x5c604a}=_0x2522cc(_0x19feb1['name']),_0xd52669=_0xb32fa3['split']('|')[0x0];for(const _0x4df19c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4df19c['id']!=_0x5c604a&&'attribute'==_0x4df19c['type']&&_0x4df19c['data']&&_0x4df19c['data']['key']==_0xd52669&&_0x4df19c['getFirstRange']()['isIntersecting'](_0x19feb1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4df19c,_0x19feb1['data']['newRange'],_0x2f71de),_0x1cd57b=!0x0);}return _0x1cd57b;}['recordAttributeChanges'](_0x5882e2){this['_recordAttributeSuggestions']=!0x0,_0x5882e2();}['_reduceExistingSuggestions'](_0x1288b9,_0x2d4efe){if(0x0==_0x2d4efe['length'])return!0x1;let _0xcddca9=!0x1;for(const _0x505af0 of _0x2d4efe){const _0x4465f7=this['_findSuggestions'](_0x505af0['range'],'attribute')['filter'](_0x331c04=>!_0x331c04['meta']['isNextTo'])['map'](_0x72b6d5=>_0x72b6d5['suggestion']),_0x4d7e67=_0x56801b({'newValue':_0x505af0['newValue']});_0x4465f7['filter'](_0x3fd66a=>{const [_0x4ff310,_0x5e9862]=_0x3fd66a['subType']['split']('|');return _0x4ff310==_0x505af0['key']&&_0x5e9862!=_0x4d7e67;})['forEach'](_0x1718b9=>{this['_reduceSuggestionAttributeRange'](_0x1718b9,_0x505af0['range'],_0x1288b9),_0xcddca9=!0x0;});}return _0xcddca9;}['_reduceSuggestionAttributeRange'](_0x2e79e8,_0x3d53c0,_0x1e8185){const _0x26a6dd=_0x2e79e8['getFirstRange']()['getDifference'](_0x3d53c0);0x0!==_0x26a6dd['length']?0x1!==_0x26a6dd['length']?this['_breakSuggestionMarker'](_0x2e79e8,_0x3d53c0['start'],_0x3d53c0['end']):this['_setSuggestionRange'](_0x2e79e8,_0x26a6dd[0x0]):_0x1e8185['removeMarker'](_0x2e79e8['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4725bc){this['_editor']=_0x4725bc,this['_model']=_0x4725bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x13d83b,_0x444dad,_0x29956c,_0xcb068f,_0x3ff00d,_0x46ef17,_0x3455d5){return new Suggestion(this['_model'],{'type':_0x13d83b,'subType':_0x444dad,'id':_0x29956c,'originalSuggestionId':_0x3455d5,'author':_0xcb068f,'creator':_0xcb068f,'attributes':_0x3ff00d,'onAttributesChange':_0x46ef17,'onAccept':(..._0x120ce9)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'accept')(..._0x120ce9),'onDiscard':(..._0x1978e8)=>this['getSuggestionCallback'](_0x13d83b,_0x444dad,'discard')(..._0x1978e8)});}['registerCustomCallback'](_0xf749dc,_0x3e85c5,_0x1acb88,_0x457244){const _0x3d0703=_0xf749dc+':'+_0x3e85c5+':'+_0x1acb88;this['_customCallbacks']['set'](_0x3d0703,_0x457244);}['getSuggestionCallback'](_0x4c076f,_0x109454,_0x497cf0){const _0x380b1f=_0x4c076f+':'+_0x109454+':'+_0x497cf0;return this['_customCallbacks']['get'](_0x380b1f)||this['_defaultCallbacks']['get'](_0x4c076f+':'+_0x497cf0);}['_registerDefaultCallbacks'](){const _0x5a776a=()=>!0x1,_0x4c365b=_0xa69f44=>{_0xa69f44['sort']((_0x4f083e,_0x47d873)=>_0x4f083e['start']['isBefore'](_0x47d873['start'])?0x1:-0x1),this['_model']['change'](_0x3fa2a2=>{for(const _0x2a7435 of _0xa69f44){let _0x4340a4;_0x4340a4=_0x2a7435['end']['isAtEnd']&&_0x2a7435['end']['parent']==_0x2a7435['start']['nodeAfter']?_0x3fa2a2['createSelection'](_0x2a7435['start']['nodeAfter'],'on'):_0x3fa2a2['createSelection'](_0x2a7435),this['_model']['deleteContent'](_0x4340a4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x691f5e=(_0x5e9bc9,_0x11032e)=>{_0x11032e&&this['_model']['change'](_0x53a976=>{const {commandName:_0x1e5d5d,commandParams:_0x3e71b0=[]}=_0x11032e,_0xaa208a=_0x5e9bc9['map'](_0x1ce4f0=>(vt(_0x1ce4f0)&&(_0x1ce4f0=this['_model']['createRange'](_0x1ce4f0['end'])),_0x1ce4f0))['filter'](_0xc9572c=>'$graveyard'!==_0xc9572c['root']['rootName']);if(_0xaa208a['length']<0x1)return;const _0x5e2680=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd1b3af=>_0x2192a8['fromRange'](_0xd1b3af));_0x53a976['setSelection'](_0xaa208a);for(const _0x4af907 of this['_editor']['commands']['commands']())_0x4af907['refresh']();_0x3e71b0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e5d5d,..._0x3e71b0);const _0x5e9cdf=_0x5e2680['filter'](_0x3cf47e=>'$graveyard'!=_0x3cf47e['root']['rootName']);_0x5e9cdf['length']>0x0&&_0x53a976['setSelection'](_0x5e9cdf);for(const _0x44b26f of _0x5e2680)_0x44b26f['detach']();});},_0x52b2d2=(_0x5451dd,_0x23e535)=>0x1==_0x5451dd['length']&&0x1==_0x23e535['length']&&_0x5451dd[0x0]['end']['isEqual'](_0x23e535[0x0]['start']),_0x2e7730=(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)=>Wt(_0x14c99a,_0x4721bf,_0x545720,_0x55dfb9)?[_0x14c99a,_0x4721bf]:Wt(_0x4721bf,_0x14c99a,_0x55dfb9,_0x545720)?[_0x4721bf,_0x14c99a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a776a),this['_defaultCallbacks']['set']('insertion:discard',_0x4c365b),this['_defaultCallbacks']['set']('insertion:join',_0x52b2d2),this['_defaultCallbacks']['set']('insertion:chain',_0x2e7730),this['_defaultCallbacks']['set']('deletion:accept',_0x4c365b),this['_defaultCallbacks']['set']('deletion:discard',_0x5a776a),this['_defaultCallbacks']['set']('deletion:join',_0x52b2d2),this['_defaultCallbacks']['set']('deletion:chain',_0x2e7730),this['_defaultCallbacks']['set']('formatInline:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatInline:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x691f5e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a776a),this['_defaultCallbacks']['set']('formatBlock:join',_0x52b2d2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a776a),this['_defaultCallbacks']['set']('attribute:accept',_0x5a776a),this['_defaultCallbacks']['set']('attribute:discard',(_0x188c95,_0xd3056)=>{if(!_0xd3056)return;const _0x3ce2fa=this['_editor']['plugins']['get'](_0x54b9f2);this['_model']['change'](_0xd7ec62=>{if(_0xd3056['key']==Ft)for(const _0x5cfb66 of _0x188c95){const _0x4d02d8=_0x5cfb66['start']['nodeAfter'],_0x338c0d=_0xd3056['oldValue'];_0xd7ec62['rename'](_0x4d02d8,_0x338c0d);}else{if(_0x3ce2fa['isBlockAttribute'](_0xd3056['key'])){for(const _0x22a282 of _0x188c95)void 0x0!==_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x22a282['start']['nodeAfter']):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x22a282['start']['nodeAfter']);}else{for(const _0x1e55f9 of _0x188c95)_0xd3056['oldValue']?_0xd7ec62['setAttribute'](_0xd3056['key'],_0xd3056['oldValue'],_0x1e55f9):_0xd7ec62['removeAttribute'](_0xd3056['key'],_0x1e55f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52b2d2);}}function Dt(_0x494d9c,_0x5bdb5f,_0xe9db4b){for(const _0x397e44 of _0x5bdb5f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x397e44['root']==_0x397e44)return!0x1;if(!_0xe9db4b['containsItem'](_0x397e44))return!0x1;if(_0x494d9c['isObject'](_0x397e44)||_0x494d9c['isLimit'](_0x397e44))return!0x0;}return!0x1;}function vt(_0x58de5d){return _0x58de5d['end']['parent']==_0x58de5d['start']['nodeAfter']&&_0x58de5d['end']['isAtStart'];}function xt(_0x23d905,_0xa80ddd,_0x4e05ff,_0x59e117){const _0x532852=_0x10cb9d=>!_0x10cb9d['item']['is']('$textProxy')&&!_0x59e117['isObject'](_0x10cb9d['item']),_0x17ce78=_0x23d905['start']['getLastMatchingPosition'](_0x532852),_0x236687=_0x23d905['end']['getLastMatchingPosition'](_0x532852,{'direction':'backward'});return(!_0x23d905['start']['isEqual'](_0x17ce78)||!_0x23d905['end']['isEqual'](_0x236687))&&(_0x17ce78['isBefore'](_0x236687)?_0x4e05ff['updateMarker'](_0xa80ddd,{'range':_0x4e05ff['createRange'](_0x17ce78,_0x236687)}):_0x4e05ff['removeMarker'](_0xa80ddd),!0x0);}function Pt(_0xe8c469){return _0x56801b(_0xe8c469);}function Ut(_0x8fed7a){const _0x23fb2a=_0x8fed7a['start']['nodeAfter'];return _0x23fb2a&&_0x23fb2a['is']('element');}function Gt(_0x2da840){return vt(_0x2da840)||function(_0x3ec060){return _0x3ec060['start']['parent']==_0x3ec060['end']['nodeBefore']&&_0x3ec060['start']['isAtEnd'];}(_0x2da840);}function Ht(_0x748dd4,_0x310e50){try{const _0x159680=_0x748dd4['getRange']();for(const _0x174a98 of _0x310e50)if(_0x748dd4!==_0x174a98&&_0x159680&&_0x159680['isIntersecting'](_0x174a98['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x24ab39,_0x356355){return null==_0x24ab39['end']['nodeBefore']&&_0x24ab39['end']['parent']==_0x24ab39['start']['nodeAfter']?Vt(_0x24ab39['start']['nodeAfter'],_0x356355):_0x24ab39;}function Vt(_0x57bbcc,_0x5040f5){const _0x37ecb2=_0x5040f5['schema']['isObject'](_0x57bbcc)||_0x5040f5['schema']['isSelectable'](_0x57bbcc);return _0x5040f5['createRange'](_0x5040f5['createPositionAt'](_0x57bbcc,'before'),_0x37ecb2?_0x5040f5['createPositionAfter'](_0x57bbcc):_0x5040f5['createPositionAt'](_0x57bbcc,'end'));}function Wt(_0x237f52,_0x4729bc,_0x3b1063,_0x148a2b){return!!jt(_0x237f52,_0x4729bc)&&_0x3b1063['end']['isEqual'](_0x148a2b['start']);}function jt(_0x1226ec,_0x52acfd){if(!_0x1226ec['_isDataLoaded']||!_0x52acfd['_isDataLoaded'])return!0x1;const _0x37c2fa=new Set(Object['keys'](_0x1226ec['attributes'])),_0x1d2693=new Set(Object['keys'](_0x52acfd['attributes']));if(_0x37c2fa['delete']('groupId'),_0x1d2693['delete']('groupId'),0x0==_0x37c2fa['size']&&0x0==_0x1d2693['size'])return!0x0;if(_0x37c2fa['size']!=_0x1d2693['size'])return!0x1;const _0x2839a4={..._0x1226ec['attributes']},_0x2742c5={..._0x52acfd['attributes']};return delete _0x2839a4['groupId'],delete _0x2742c5['groupId'],JSON['stringify'](_0x2839a4)==JSON['stringify'](_0x2742c5);}function zt(_0x548b7e,_0x46d167){const _0x1a06c4=Kt(_0x548b7e['attributes']),_0x2be66e=Kt(_0x46d167);if(!_0x548b7e['_isDataLoaded'])return!0x1;for(const _0x10193b of Object['keys'](_0x2be66e))if(!st(_0x1a06c4[_0x10193b],_0x2be66e[_0x10193b]))return!0x1;return!0x0;}function Kt(_0x5d908c){const _0x29a9b4=Object['assign']({},_0x5d908c);return delete _0x29a9b4['skipNestingCheck'],delete _0x29a9b4['tablePasteChainId'],_0x29a9b4;}function Xt(_0xf63bf8){return _0xf63bf8['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
+ _0x2cad71(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c88de,_0x518002,_0x37cfc9,_0x77996){super(),this['model']=_0x518002,this['view']=_0x37cfc9,this['commentThreadController']=_0x77996,this['_editor']=_0x1c88de,this['_acceptCommand']=_0x1c88de['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c88de['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50324c,_0x2f578d)=>_0x50324c||_0x2f578d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2eda1f=>_0x2eda1f&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x333e0d=>_0x333e0d&&this['_editor']['model']['canEditAt'](_0x518002['getRanges']())),this['_pendingAction']=null,_0x37cfc9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37cfc9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37cfc9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37cfc9,'change:isDirty',()=>{_0x37cfc9['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 _0x575ffa=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x575ffa);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x219eee{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x156252,_0x3f14ee,_0x173b32,_0x1e0a4a){super(_0x156252),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a1a2d(_0x156252,Tt(_0x156252,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3f14ee['authoredAt']),this['bind']('authoredAt')['to'](_0x3f14ee),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',_0x3f14ee,'authoredAt',this,'descriptionParts',(_0x174ed2,_0x53de3b,_0x27d278)=>{const _0xd07eef=_0x27d278['map'](_0x28127c=>ht(_0x28127c['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x174ed2-0x1,_0x3f14ee['author']['name'],_0x53de3b?_0x1e0a4a['formatDateTime'](_0x53de3b):'',new DOMParser()['parseFromString'](_0xd07eef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x41b3a9(),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c1f69=>_0x3c1f69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3f14ee,this['_localUser']=_0x173b32,this['_config']=_0x1e0a4a,_0x1e0a4a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x414f5c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x537a1c}=this['_config'];this['commentsListView']=new _0x537a1c(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',_0x395550=>_0x395550+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x51504b,_0x54a5f5)=>_0x51504b||!!_0x54a5f5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c6ebe}=this['_config'],_0x310344=new _0x2c6ebe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4355f7=_0x310344['commentInputView'];return _0x310344['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4355f7,'value',(_0x1fe339,_0x3e05a8,_0x4e1e70)=>!!_0x4e1e70||_0x1fe339&&!_0x3e05a8),_0x4355f7['on']('submit',(_0x235d0c,_0x362af5)=>{this['fire']('addComment',_0x362af5),_0x4355f7['editor']['setData']('');}),_0x4355f7['on']('cancel',()=>this['focus']()),_0x4355f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x310344;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x18458b,_0x1fecbe,_0x302105,_0x36c490){super(_0x18458b,_0x1fecbe,_0x302105,_0x36c490),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x177728=>_0x177728&&_0x177728[0x0]?_0x177728[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f153b,_0x484c23)=>{let _0x106cac='';for(const _0x528d4e of _0x2f153b)_0x106cac+='<p>'+ht(_0x528d4e['content'],_0x528d4e['color'])+'</p>';return _0x484c23?_0x106cac:_0x47f1ed(_0x106cac,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x36c490['SuggestionView'](_0x18458b,_0x1fecbe,{'formatDateTime':_0x36c490['formatDateTime']}),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 _0x256180=this['bindTemplate'],_0x2fd056=[this['suggestionView']];return this['commentsListView']&&_0x2fd056['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2fd056['push'](this['commentThreadInputView']),_0x2fd056['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x256180['if']('isActive','ck-suggestion-wrapper--active'),_0x256180['to']('type',_0x14147f=>'ck-suggestion-'+_0x14147f),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':_0x256180['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2fd056};}['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));}}class SuggestionView extends _0x219eee{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e4622,_0x3fb770,_0x43a27a){super(_0x4e4622),this['_model']=_0x3fb770,this['_config']=_0x43a27a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3fb770),this['acceptButton']=this['_createButton'](Tt(_0x4e4622,'Accept\x20suggestion'),_0x464661,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x4e4622,'Discard\x20suggestion'),_0x58544e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf77222(_0x4e4622,_0x3fb770['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x41b3a9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5c0eff(),this['keystrokes']=new _0x14ab05(),this['focusCycler']=new _0x27ae21({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa700f8=>_0xa700f8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3c769f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3c769f['innerHTML']=this['description'],this['on']('change:description',(_0x5a83ea,_0x16727b,_0x54839d)=>{_0x3c769f['innerHTML']=_0x54839d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e7714=this['bindTemplate'],_0x5888a0=[{'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':_0x3e7714['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e7714['to']('authoredAt',_0x57b52a=>this['_config']['formatDateTime'](_0x57b52a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x5888a0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'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':_0x5888a0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33bbd5,_0x679088,_0x3673ad,_0x1d954b,_0x3ad481){const _0x37e9b7=new _0x3b1b8d(this['locale']);return _0x37e9b7['set']({'label':_0x33bbd5,'icon':_0x679088,'tooltip':!0x0,'tooltipPosition':_0x3ad481}),_0x37e9b7['extendTemplate']({'attributes':{'class':_0x3673ad}}),_0x37e9b7['on']('execute',()=>{this['fire'](_0x1d954b,this['_model']['id']);}),_0x37e9b7;}['_setupKeyboardNavigation'](){const _0x5a1a63=this['element'];this['keystrokes']['listenTo'](_0x5a1a63);for(const _0x40e224 of this['focusables'])this['focusTracker']['add'](_0x40e224['element']),this['keystrokes']['listenTo'](_0x40e224['element']);this['keystrokes']['set']('enter',(_0x41517c,_0x451495)=>{_0x5a1a63===_0x41517c['target']&&(this['focusCycler']['focusFirst'](),_0x451495());}),this['keystrokes']['set']('esc',(_0x4fd550,_0xc89eeb)=>{_0x5a1a63!==_0x4fd550['target']&&(this['focus'](),_0xc89eeb());});}}class TrackChangesUI extends _0x3000a5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x1d950a,_0x3b6cc3,_0x56e9b1,_0x359145];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ccc1d){super(_0x4ccc1d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3a24db=this['editor']['config'];_0x3a24db['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3a24db['define']('trackChanges.SuggestionView',SuggestionView),_0x3a24db['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3a24db['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ef04a,_0x49cbd2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b82f0,_0xc613c6]of this['_handleControllerBuffer']){const _0x259ce1=this['_suggestionToController']['has'](_0x2b82f0);_0x259ce1||_0xc613c6?_0x259ce1&&_0xc613c6&&this['_destroyController'](_0x2b82f0):this['_initializeController'](_0x2b82f0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x359145)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ef04a,_0x49cbd2);}['init'](){const _0x4f7d5f=this['editor'],_0x78e6cd=_0x4f7d5f['plugins']['get'](TrackChangesEditing),_0x4c85cc=_0x4f7d5f['plugins']['get'](_0x56e9b1),_0x284c62=_0x4f7d5f['plugins']['get'](_0x359145),_0x509ca6=_0x4f7d5f['plugins']['get'](_0x3b6cc3);this['_addUIComponentsToFactory'](),_0x284c62['addSourceCollector'](()=>{const _0x546aab=[];for(const [_0x554c67,_0x6a3cf3]of Array['from'](this['_suggestionToController'])){const _0x1683e5=_0x554c67['getAllAdjacentSuggestions'](),_0x3633f7=[];for(const _0x117d17 of _0x1683e5){if(!_0x117d17['isInContent'])continue;if(_0x117d17['isMultiRange']){_0x3633f7['push'](..._0x117d17['getRanges']());continue;}const _0x531ead=_0x117d17['getFirstRange']();if(_0x3633f7['length']>0x0){const _0x138242=_0x3633f7[0x0]['getJoined'](_0x531ead);if(_0x138242){_0x3633f7[0x0]=_0x138242;continue;}}_0x3633f7['push'](_0x531ead);}_0x546aab['push']([_0x6a3cf3['view'],_0x3633f7]);}return _0x546aab;}),this['listenTo'](_0x78e6cd,'suggestionLoaded',(_0x45fc8e,_0x526acd)=>{this['listenTo'](_0x526acd,'change:previous',(_0x2069c7,_0x3fbfe5,_0x294853,_0x111c4a)=>{_0x526acd['isInContent']&&(null==_0x294853?(this['_updateController'](_0x111c4a['head']),this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1)):(this['_updateController'](_0x294853['head']),null==_0x111c4a&&this['_handleSuggestionControllerDelayed'](_0x526acd,!0x0)));}),null!==_0x526acd['previous']?this['_updateController'](_0x526acd['head']):this['_handleSuggestionControllerDelayed'](_0x526acd,!0x1);}),this['listenTo'](_0x78e6cd,'suggestionUnloaded',(_0x881a79,_0x58ad64,_0x30c722)=>{this['stopListening'](_0x58ad64,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58ad64),this['_suggestionToController']['has'](_0x58ad64)&&this['_destroyController'](_0x58ad64),_0x30c722&&this['_updateController'](_0x30c722['head']);}),this['listenTo'](_0x78e6cd,'suggestionChanged',(_0x22835a,_0x5124ce)=>{this['_updateController'](_0x5124ce);}),this['listenTo'](_0x4c85cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x509ca6,'addComment',(_0x541413,{threadId:_0x25dc92,isFromAdapter:_0x5032c3})=>{if(_0x5032c3||!_0x78e6cd['hasSuggestion'](_0x25dc92))return;const _0x1f6b03=_0x78e6cd['getSuggestion'](_0x25dc92);this['_suggestionToController']['get'](_0x1f6b03)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x74c8b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b089f;for(const _0x555b64 in _0x74c8b9){const _0x4ee0cd=_0x555b64,_0x3e3f0f=_0x74c8b9[_0x4ee0cd];if('trackChangesLicenseKeyValid'==_0x3e3f0f||'trackChangesLicenseKeyInvalid'==_0x3e3f0f||'trackChangesLicenseKeyExpired'==_0x3e3f0f||'trackChangesLicenseKeyDomainLimit'==_0x3e3f0f||'trackChangesLicenseKeyNotAllowed'==_0x3e3f0f||'trackChangesLicenseKeyEvaluationLimit'==_0x3e3f0f||'trackChangesLicenseKeyUsageLimit'==_0x3e3f0f){delete _0x74c8b9[_0x4ee0cd],_0x2b089f=_0x3e3f0f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2b089f&&_0x74c8b9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2b089f&&_0x74c8b9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2b089f&&_0x74c8b9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2b089f&&_0x74c8b9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xe76f57){const _0x19fe4d=this['_suggestionToController']['get'](_0xe76f57);if(!_0x19fe4d)return null;return this['editor']['plugins']['get'](_0x56e9b1)['getByInnerView'](_0x19fe4d['view'])||null;}['getSuggestionForAnnotation'](_0x14635f){const _0x327a8c=this['_viewToController']['get'](_0x14635f['innerView']);return _0x327a8c?_0x327a8c['model']:null;}['_refreshActiveMarkers'](){const _0x554178=this['editor']['plugins']['get'](_0x56e9b1),_0x1e6d2a=this['editor']['plugins']['get'](TrackChangesEditing),_0x9d23d3=Array['from'](_0x554178['activeAnnotations'],_0x29ca30=>_0x29ca30['innerView'])['filter'](_0x32a6a5=>this['_viewToController']['has'](_0x32a6a5)),_0x77422a=[];for(const _0xaa5613 of _0x9d23d3){const _0x5d4c04=this['_viewToController']['get'](_0xaa5613)['model']['getAllAdjacentSuggestions']();_0x77422a['push'](..._0x5d4c04['reduce']((_0x560882,_0x150142)=>[..._0x560882,..._0x150142['getMarkerNames']()],[]));}_0x1e6d2a['activeMarkers']=_0x77422a;}['_addUIComponentsToFactory'](){const _0x594a44=this['editor'],_0x5dcc70=_0x594a44['locale'],_0x17b521=Tt(_0x5dcc70,'Track\x20changes'),_0x458f63=new _0x1bdbf2([{'type':'switchbutton','model':new _0x38a215({'withText':!0x0,'isToggleable':!0x0,'label':_0x17b521,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x594a44['plugins']['has']('TrackChangesPreview')&&_0x458f63['addMany']([{'type':'separator'},{'type':'button','model':new _0x38a215({'withText':!0x0,'label':Tt(_0x5dcc70,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4ee63a of _0x458f63)if(Yt(_0x4ee63a)){const _0x39fe7a=_0x594a44['commands']['get'](_0x4ee63a['model']['commandName']);_0x4ee63a['model']['bind']('isOn','isEnabled')['to'](_0x39fe7a,'value','isEnabled');}_0x594a44['ui']['componentFactory']['add']('trackChanges',_0x1e9a08=>this['_createToolbarButton'](_0x1e9a08,_0x458f63,_0x17b521)),_0x594a44['ui']['componentFactory']['add']('menuBar:trackChanges',_0xfb51bc=>this['_createMenuBarMenu'](_0xfb51bc,_0x458f63,_0x17b521));}['_createToolbarButton'](_0x143a62,_0x43c282,_0x3d2f21){const _0xfcc4d2=_0x249d7a(_0x143a62,_0x147e3d),_0x5653eb=this['editor']['commands']['get']('trackChanges');_0xfcc4d2['buttonView']['set']({'tooltip':_0x3d2f21,'label':_0x3d2f21,'icon':_0x1c5aba}),_0xfcc4d2['buttonView']['bind']('isOn')['to'](_0x5653eb,'value'),_0xfcc4d2['buttonView']['on']('execute',()=>{_0x5653eb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2d8af9(_0xfcc4d2,_0x43c282,{'role':'menu'});const _0x1daf1e=[];for(const _0x46b976 of _0x43c282)Yt(_0x46b976)&&_0x1daf1e['push'](this['editor']['commands']['get'](_0x46b976['model']['commandName']));const _0x2378b7=_0xfcc4d2['buttonView'];return _0x2378b7['actionView']['unbind']('isEnabled'),_0x2378b7['arrowView']['unbind']('isEnabled'),_0x2378b7['actionView']['bind']('isEnabled')['to'](_0x5653eb,'isEnabled'),_0x2378b7['arrowView']['bind']('isEnabled')['toMany'](_0x1daf1e,'isEnabled',(..._0x5e7286)=>_0x5e7286['some'](_0xade64=>_0xade64)),_0xfcc4d2['on']('execute',_0xd39c19=>{this['editor']['execute'](_0xd39c19['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xfcc4d2;}['_createMenuBarMenu'](_0x1989a9,_0xdbbd3,_0x1b3e4c){const _0x6f86e2=new _0x167357(_0x1989a9),_0x14bf77=this['editor']['commands']['get']('trackChanges');_0x6f86e2['buttonView']['set']({'label':_0x1b3e4c,'icon':_0x1c5aba});const _0x3c50b6=new _0xc933cf(_0x1989a9);for(const _0x5af2cc of _0xdbbd3){if('separator'==_0x5af2cc['type']){_0x3c50b6['items']['add'](new _0x51f4ef(_0x1989a9));continue;}const _0x5c784f=new _0x17cfe5(_0x1989a9,_0x6f86e2),_0x3ef497=new _0x47a13f(_0x1989a9),_0x5e8339=_0x5af2cc['model'];_0x3ef497['bind'](...Object['keys'](_0x5e8339))['to'](_0x5e8339),_0x3ef497['delegate']('execute')['to'](_0x6f86e2),_0x3ef497['on']('execute',()=>{this['editor']['execute'](_0x5e8339['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c784f['children']['add'](_0x3ef497),_0x3c50b6['items']['add'](_0x5c784f);}return _0x6f86e2['bind']('isEnabled')['to'](_0x14bf77,'isEnabled'),_0x6f86e2['panelView']['children']['add'](_0x3c50b6),_0x6f86e2;}['_initializeController'](_0x3b8411){const _0x130aca=this['editor'],_0x463489=_0x130aca['config'],_0x453cba=_0x130aca['plugins']['get'](_0x56e9b1),_0x394494=_0x130aca['plugins']['get'](_0x3b6cc3),_0x5990bf=_0x130aca['plugins']['get'](_0x359145),_0x256219=_0x130aca['plugins']['get'](_0x1d950a)['me'],_0x4c84ee=_0x463489['get']('trackChanges')['SuggestionThreadView'],_0x32c8a0=_0x463489['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fd1c0,CommentThreadInputView:_0x492faa}=_0x130aca['plugins']['get']('CommentsUI');let _0x5ec601,_0x4191f0,_0x365f8d;this['_annotationViews']['has'](_0x3b8411['id'])?(_0x4191f0=this['_annotationViews']['get'](_0x3b8411['id']),_0x5ec601=_0x4191f0['mainView']):(_0x5ec601=new _0x4c84ee(_0x130aca['locale'],_0x3b8411,_0x256219,{'disableComments':this['_disableComments'],'editorConfig':{..._0x463489['get']('comments.editorConfig'),'licenseKey':_0x463489['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x463489['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x463489['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x463489['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16d8dd(_0x463489['get']('locale'),_0x130aca['locale']),'CommentView':_0x463489['get']('comments')['CommentView'],'CommentsListView':_0x4fd1c0,'CommentThreadInputView':_0x492faa,'SuggestionView':_0x32c8a0}),_0x5ec601['suggestionView']['acceptButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x5ec601['suggestionView']['discardButton']['on']('execute',()=>{_0x130aca['editing']['view']['focus']();}),_0x4191f0=_0x453cba['createAnnotationView'](this['editor']['locale'],_0x5ec601),_0x4191f0['bind']('isDirty')['to'](_0x5ec601,'isDirty'),_0x4191f0['bind']('length')['to'](_0x5ec601),_0x4191f0['bind']('type')['to'](_0x5ec601,'type',_0x1b50bb=>'suggestion-'+_0x1b50bb),_0x5ec601['on']('escape',()=>{_0x365f8d['fire']('escape');}),this['_annotationViews']['set'](_0x3b8411['id'],_0x4191f0));const _0x2842f6=_0x394494['createCommentThreadController'](_0x3b8411['commentThread'],_0x5ec601),_0x799d2b=new SuggestionController(_0x130aca,_0x3b8411,_0x5ec601,_0x2842f6),_0x29830a=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x3b0ce5=>_0x3b0ce5['isInContent']);_0x5ec601['descriptionParts']=_0x130aca['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x29830a),this['_suggestionToController']['set'](_0x3b8411,_0x799d2b),this['_viewToController']['set'](_0x5ec601,_0x799d2b);const _0x5e7b3b=()=>{const _0x419586=[],_0x3ebf7e=_0x3b8411['getAllAdjacentSuggestions']()['filter'](_0x4931f0=>_0x4931f0['isInContent']);for(const _0x11b344 of _0x3ebf7e)_0x419586['push'](..._0x11b344['getMarkers']());return _0x35ad97(_0x130aca['editing'],_0x419586);};_0x365f8d=_0x453cba['createAnnotation']({'view':_0x4191f0,'target':_0x5e7b3b,'type':()=>'suggestion-'+_0x799d2b['view']['type'],'isVisible':!!_0x5e7b3b()}),_0x394494['_bindAnnotationToEditors'](_0x5ec601,_0x365f8d),_0x453cba['add'](_0x365f8d),_0x5990bf['registerAnnotation'](_0x365f8d);}['_destroyController'](_0x2e1997){const _0x34ecb7=this['editor']['plugins']['get'](_0x3b6cc3),_0x460230=this['editor']['plugins']['get'](_0x56e9b1),_0x43c37f=this['_suggestionToController']['get'](_0x2e1997),_0x136a8e=_0x43c37f['view'],_0x39d9da=_0x460230['getByInnerView'](_0x136a8e);_0x34ecb7['_unbindEditors'](_0x136a8e),_0x39d9da&&_0x460230['remove'](_0x39d9da),this['_suggestionToController']['delete'](_0x2e1997),this['_viewToController']['delete'](_0x136a8e),_0x43c37f['destroy']();}['_updateController'](_0x48ab30){if(!_0x48ab30['isInContent']||!this['_suggestionToController']['has'](_0x48ab30))return;const _0x4a560e=this['editor']['plugins']['get'](TrackChangesEditing),_0x20f41c=this['_suggestionToController']['get'](_0x48ab30),_0x2a7f33=_0x48ab30['getAllAdjacentSuggestions']();_0x20f41c['view']['descriptionParts']=_0x4a560e['descriptionFactory']['getDescriptions'](_0x2a7f33);}['destroy'](){for(const _0x562371 of this['_suggestionToController']['keys']())this['_destroyController'](_0x562371);for(const _0x409718 of this['_annotationViews']['values']())_0x409718['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x4e56a1){return'model'in _0x4e56a1;}class TrackChanges extends _0x3000a5{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x41eb8f];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x59035a){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x59035a;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x1b9830){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x1b9830);}['getSuggestions']({skipNotAttached:_0x2b3fb0=!0x1,toJSON:_0x402ed0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x2b3fb0,'toJSON':_0x402ed0});}['getSuggestion'](_0x249412){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x249412);}}const qt=['Pagination'];class TrackChangesData extends _0x3000a5{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c257e=this['editor'];if(_0x2c257e['config']['define']('trackChangesData.editorCreator',_0x523da1=>{const _0x48e0f2=_0x2c257e['model']['document']['getRootNames']()['reduce']((_0x5d6c62,_0x2b2258)=>(_0x5d6c62[_0x2b2258]='',_0x5d6c62),{});return _0x2c257e['constructor']['create'](_0x48e0f2,_0x523da1);}),'function'!=typeof _0x2c257e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d5f66('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2abb3f){return Zt(this['editor'],!0x0,_0x2abb3f);}['getDataWithDiscardedSuggestions'](_0x1e0a09){return Zt(this['editor'],!0x1,_0x1e0a09);}}class TrackChangesDataGetter extends _0x3000a5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x411540){function _0x45feb6(_0x1c0f1e){return _0x1c0f1e['map'](_0x139397=>String['fromCharCode'](_0x139397))['join']('');}super(_0x411540),this['result']='end',_0x411540[_0x45feb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45feb6([0x76,0x69,0x65,0x77])][_0x45feb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45feb6([0x61,0x75,0x74,0x6f]),_0x411540[_0x45feb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45feb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45feb6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45feb6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45feb6([0x6f,0x6b])});}['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 Qt(_0x1c4e25){return void 0x0!==_0x1c4e25['getRootsAttributes'];}async function Zt(_0x491eb5,_0x4d19c1,_0x22cb78){const _0x477deb=_0x2577bc(_0x491eb5,qt);if(_0x477deb['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x491eb5)){_0x477deb['roots']=Object['create'](null);for(const _0x323016 of _0x491eb5['model']['document']['getRootNames']())_0x477deb['roots'][_0x323016]={'modelAttributes':_0x491eb5['getRootAttributes'](_0x323016)};}const _0x316103=document['createDocumentFragment'](),_0x2aa01=_0x491eb5['config']['get']('trackChangesData')['editorCreator'],_0x3caf90=await _0x2aa01(_0x477deb,()=>function(_0x1f076c){const _0x4d3f35=document['createElement']('div');return _0x1f076c['appendChild'](_0x4d3f35),_0x4d3f35;}(_0x316103));!function(_0x27b626,_0x10a85a){const _0x154998=_0x27b626['model']['document']['getRootNames']()['reduce']((_0x21af3a,_0xcab5da)=>(_0x21af3a[_0xcab5da]=_0x27b626['data']['get']({'rootName':_0xcab5da}),_0x21af3a),{}),_0x5837a1=_0x27b626['plugins']['get']('Users')['users']['map'](_0x559e57=>({'id':_0x559e57['id'],'name':_0x559e57['name']})),_0x2a00ae=_0x27b626['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19d19c=_0x27b626['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c2a98=_0x10a85a['plugins']['get']('Users'),_0x461c61=_0x10a85a['plugins']['get']('TrackChangesEditing'),_0xc01ed7=_0x10a85a['plugins']['get']('CommentsRepository');for(const _0x3eb385 of _0xc01ed7['getCommentThreads']())_0x3eb385['remove']();for(const _0x3e1f33 of _0x5837a1)_0x3c2a98['getUser'](_0x3e1f33['id'])||_0x3c2a98['addUser'](_0x3e1f33);_0x3c2a98['me']||_0x3c2a98['useAnonymousUser']();for(const _0x2350cc of _0x19d19c)_0xc01ed7['addCommentThread'](_0x2350cc);for(const _0x4b5086 of _0x2a00ae)_0x461c61['addSuggestionData'](_0x4b5086);_0x10a85a['data']['set'](_0x154998);}(_0x491eb5,_0x3caf90),_0x3caf90['execute'](_0x4d19c1?'acceptAllSuggestions':'discardAllSuggestions');const _0x9e657=Qt(_0x3caf90)?_0x3caf90['getFullData'](_0x22cb78):_0x3caf90['data']['get'](_0x22cb78);return await _0x3caf90['destroy'](),_0x9e657;}class TrackChangesPreviewView extends _0x219eee{['options'];constructor(_0x5505e6,_0xc1751d){super(_0x5505e6),this['options']=_0xc1751d,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'](_0x165c85,_0x5d1fd3){if(!this['element'])return;const _0x43cdc2=[];for(const [_0x16dec4,_0x784423]of _0x165c85){const _0x47821f=document['createElement']('div');_0x47821f['setAttribute']('data-ck-root-name',_0x16dec4),_0x47821f['className']=_0x784423['classes']+'\x20ck-track-changes-preview__root-container',_0x47821f['innerHTML']=_0x784423['content'],_0x43cdc2['push'](_0x47821f);}_0x5d1fd3(this['element'],_0x43cdc2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x4dd781{constructor(_0x1a6faf){super(_0x1a6faf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a4766=this['editor'],_0x1dedaf=_0x1a4766['locale'],_0x3c7682=_0x1a4766['plugins']['get']('Dialog');let _0x4f2ae8;const _0x43f0ba=function(_0x4e822c){const _0x53b0e2={};if('editables'in _0x4e822c['ui']['view']){for(const [_0x1683d9,_0x7b7fef]of Object['entries'](_0x4e822c['ui']['view']['editables']))_0x53b0e2[_0x1683d9]=_0x7b7fef['element'];}else _0x53b0e2[_0x4e822c['model']['document']['getRootNames']()[0x0]]=_0x4e822c['ui']['view']['editable']['element'];return _0x53b0e2;}(_0x1a4766),_0x1b6bd0=function(_0x5c8bfa){let _0x4da1b8=0x0;for(const _0x3f4857 of Object['values'](_0x5c8bfa))_0x4da1b8=Math['max'](_0x4da1b8,_0x3f4857['getBoundingClientRect']()['width']);let _0x4724f7=0x0;for(const _0x77112f of Object['values'](_0x5c8bfa))_0x4724f7+=_0x77112f['getBoundingClientRect']()['height'];const _0x4d2e88=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa0f88b=Math['min'](_0x4724f7,_0x4d2e88);return{'width':_0x4da1b8,'height':_0xa0f88b};}(_0x43f0ba);_0x3c7682['show']({'id':'finalContentPreview','title':Tt(_0x1dedaf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x1dedaf,{'dialogRects':_0x1b6bd0}),'onHide':()=>{_0x4f2ae8['detachFromDom']();},'onShow':()=>{_0x1a4766['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x730d57=>{const _0x4dd512=this['_standarizeRootsData'](_0x730d57,_0x1a4766,_0x43f0ba);_0x3c7682['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4dd512,_0x1a4766['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f2ae8=new _0x3e0dbc(_0x1dedaf,[_0x3c7682['view']]),_0x4f2ae8['attachToDom'](),_0x4f2ae8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a4766['once']('destroy',()=>{_0x4f2ae8['detachFromDom']();});const _0x1c136d=_0x3c7682['view']['headerView']['class'];_0x3c7682['view']['headerView']['class']=_0x1c136d?_0x1c136d+'\x20ck-reset_all':'ck-reset_all',_0x3c7682['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c7682['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3b10a1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x53f94d=_0x3b10a1['previewMode'],_0x35248c={};if('$labels'===_0x53f94d){for(const _0x4bca70 of _0x3b10a1['getMergeFieldsIds']())_0x35248c[_0x4bca70]=_0x3b10a1['getLabel'](_0x4bca70)||_0x4bca70;}else{const _0x3b324b='$defaultValues'===_0x53f94d?_0x3b10a1['getDefaultValues']():_0x3b10a1['getDataSetValues'](_0x53f94d,!0x0);for(const _0x2178b5 of Object['entries'](_0x3b324b)){const [_0x320929,_0x25ea89]=_0x2178b5;_0x35248c[_0x320929]=null!==_0x25ea89?_0x25ea89:_0x3b10a1['getLabel'](_0x320929)||_0x320929;}}return{'mergeFieldsData':_0x35248c};}['_standarizeRootsData'](_0x125bca,_0x2feec8,_0x3cfc22){let _0x17ff67;if('string'==typeof _0x125bca){const _0x1d0541=_0x2feec8['model']['document']['getRootNames']()[0x0];_0x17ff67={[_0x1d0541]:_0x125bca};}else _0x17ff67=_0x125bca;const _0x4e4c9b=this['_fixMediaEmbeds'](_0x17ff67,_0x2feec8),_0x37d1b0=function(_0x261b5e,_0x282f9b){for(const [_0x20c033,_0x470f79]of _0x261b5e)_0x470f79['classes']=_0x282f9b[_0x20c033]['classList']['value']['replace']('ck-focused','');return _0x261b5e;}(this['_sortRoots'](_0x2feec8)['reduce']((_0x4acdb8,_0x4f8a4d)=>(_0x4acdb8['push']([_0x4f8a4d,{'content':_0x4e4c9b[_0x4f8a4d],'classes':''}]),_0x4acdb8),[]),_0x3cfc22);return _0x37d1b0;}['_fixMediaEmbeds'](_0x7f5fe4,_0x4d05b9){if(!_0x4d05b9['plugins']['has']('MediaEmbedEditing'))return _0x7f5fe4;const _0x9a929d=_0x4d05b9['plugins']['get']('MediaEmbedEditing');for(const [_0x5280da,_0x380a1e]of Object['entries'](_0x7f5fe4)){const _0x150509=document['createElement']('div');_0x150509['innerHTML']=_0x380a1e,(_0x150509['querySelectorAll']('figure.media')['forEach'](_0x783388=>{const _0x38f576=_0x783388['querySelector']('oembed');if(_0x38f576){const _0x3e020f=_0x38f576['getAttribute']('url');if(_0x3e020f){const _0x445652=_0x9a929d['registry']['getMediaViewElement'](new et(_0x4d05b9['editing']['view']['document']),_0x3e020f,{'elementName':'','renderForEditingView':!0x0}),_0x4fca08=document['createElement']('div');_0x4fca08['classList']['add']('ck-media__wrapper'),_0x445652['render'](_0x4fca08,_0x4d05b9['editing']['view']['domConverter']),_0x38f576['replaceWith'](_0x4fca08);}}}),_0x7f5fe4[_0x5280da]=_0x150509['innerHTML']);}return _0x7f5fe4;}['_sortRoots'](_0x2d229d){if(!function(_0x218d0e){return void 0x0!==_0x218d0e['getRootsAttributes'];}(_0x2d229d))return _0x2d229d['model']['document']['getRootNames']();const _0x499900=[],_0x564aab=new Map();for(const _0x58a315 of _0x2d229d['model']['document']['getRootNames']()){const _0x584cca=_0x2d229d['editing']['view']['getDomRoot'](_0x58a315)['getClientRects']()['item'](0x0);_0x499900['push'](_0x58a315),_0x564aab['set'](_0x58a315,_0x584cca);}return _0x499900['sort']((_0x2dfc56,_0x3cf0f8)=>{const _0x245424=_0x564aab['get'](_0x2dfc56),_0x1a1efd=_0x564aab['get'](_0x3cf0f8);return _0x245424['y']-_0x1a1efd['y']||_0x245424['x']-_0x1a1efd['x'];}),_0x499900;}}class TrackChangesPreview extends _0x3000a5{static get['requires'](){return[TrackChangesData,_0x52b772];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42ade7){super(_0x42ade7),_0x42ade7['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x42ade7['config']['define']('trackChanges.preview.renderFunction',(_0x3a9c93,_0x6ced30)=>{for(const _0x26cd05 of _0x6ced30)_0x3a9c93['appendChild'](_0x26cd05);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};